The java version on the servoy server =
java version “1.6.0_18”
Java™ SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot™ Client VM (build 16.0-b13, mixed mode)
clients :
java version “1.6.0_20”
Java™ SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot™ Client VM (build 16.3-b01, mixed mode, sharing)
We turned on Java logging together with the java console because users often close the java console.
I went trough all the log information and came across the following messages :
Besides the errors shown below :
- we also saw a database error ( violation of constraint ) in the clients java log.
Normaly these are shown in the server log, but it is not in the serverlog.
- there is some log output missing in the java log.(written with patricks log plugin)
where there should be pairs of 3 lines of output, in some cases there are only (the last)two.
In the code, the last two lines can only be output to log if the first one is also output.
Also
In the java logs :
<record>
<date>2010-09-16T09:17:33</date>
<millis>1284621453139</millis>
<sequence>10</sequence>
<logger>com.sun.deploy</logger>
<level>FINE</level>
<class>com.sun.deploy.util.LoggerTraceListener</class>
<method>print</method>
<thread>10</thread>
<message>Exceptie bij het uitvoeren van berekening: calc_inkoopbedrag van tabel inkorderkaarten, fout java.util.ConcurrentModificationException
</message>
</record>
<record>
<date>2010-09-16T09:17:33</date>
<millis>1284621453186</millis>
<sequence>11</sequence>
<logger>com.sun.deploy</logger>
<level>FINE</level>
<class>com.sun.deploy.util.LoggerTraceListener</class>
<method>print</method>
<thread>10</thread>
<message>ERROR - Debug - error executing calc: calc_inkoopbedrag
java.lang.RuntimeException: Exceptie bij het uitvoeren van berekening: calc_inkoopbedrag van tabel inkorderkaarten, fout
java.util.ConcurrentModificationException
at com.servoy.j2db.scripting.Zi.Za(Zi.java:53)
at com.servoy.j2db.scripting.Zi.Za(Zi.java:85)
at com.servoy.j2db.dataprocessing.FoundSet.getCalculationValue(FoundSet.java:1271)
at com.servoy.j2db.dataprocessing.Record.getValue(Record.java:361)
at com.servoy.j2db.dataprocessing.Zh.run(Zh.java:1)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
at java.util.AbstractList$Itr.next(Unknown Source)
at com.servoy.j2db.dataprocessing.Zhd.foundSetChanged(Zhd.java:85)
at com.servoy.j2db.dataprocessing.Zxb.foundSetChanged(Zxb.java:6)
at com.servoy.j2db.dataprocessing.Zxb.Za(Zxb.java:3)
at com.servoy.j2db.dataprocessing.Zxb.Za(Zxb.java:8)
at com.servoy.j2db.dataprocessing.Zsb.Za(Zsb.java:255)
at com.servoy.j2db.dataprocessing.FoundSet.getRelatedFoundSet(FoundSet.java:961)
at com.servoy.j2db.dataprocessing.Record.getRelatedFoundSet(Record.java:93)
at com.servoy.j2db.dataprocessing.Record.getValue(Record.java:360)
at com.servoy.j2db.dataprocessing.Record.get(Record.java:265)
at com.servoy.j2db.scripting.Zjb.get(Zjb.java:32)
at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1641)
at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1740)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1679)
at org.mozilla.javascript.gen.c134._c0(calc_inkoopbedrag:15)
at org.mozilla.javascript.gen.c134.call(calc_inkoopbedrag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3127)
at org.mozilla.javascript.gen.c134.call(calc_inkoopbedrag)
at com.servoy.j2db.scripting.Ztb.executeFunction(Ztb.java:196)
at com.servoy.j2db.scripting.Zi.Za(Zi.java:38)
... 7 more
</message>
</record>
<record>
and
<record>
<date>2010-09-13T15:39:45</date>
<millis>1284385185248</millis>
<sequence>6</sequence>
<logger>sun.plugin</logger>
<level>FINE</level>
<class>com.sun.deploy.util.LoggerTraceListener</class>
<method>print</method>
<thread>10</thread>
<message> Reader.java:596 (09/13 15:39:45.248)[ <==196607 0] Stack Trace: at com.neoteris.NeoterisStatic.readByte(Unknown Source)
</message>
</record>
and
<record>
<date>2010-09-13T16:06:24</date>
<millis>1284386784719</millis>
<sequence>213</sequence>
<logger>sun.plugin</logger>
<level>FINE</level>
<class>com.sun.deploy.util.LoggerTraceListener</class>
<method>print</method>
<thread>10</thread>
<message> Reader.java:596 (09/13 16:06:24.719)[ <==196607 0] Stack Trace: at java.lang.Thread.run(Unknown Source)
</message>
</record>
<record>
<date>2010-09-13T16:06:24</date>
<millis>1284386784719</millis>
<sequence>214</sequence>
<logger>sun.plugin</logger>
<level>FINE</level>
<class>com.sun.deploy.util.LoggerTraceListener</class>
<method>print</method>
<thread>10</thread>
<message>sun.plugin2.main.client.PluginMain: unrecognized message ID 46
</message>
</record>
<record>
<date>2010-09-13T16:06:27</date>
<millis>1284386787954</millis>
<sequence>215</sequence>
<logger>sun.plugin</logger>
<level>FINE</level>
<class>com.sun.deploy.util.LoggerTraceListener</class>
<method>print</method>
<thread>10</thread>
<message>JVM heartbeat .. Exception, send ts: 27584996324, now ts: 27595006625, dT 10010301
</message>
</record>
In the servoy_log.txt on the server we regular see
(often the time in the message is somewhere during midnight. I guess that these are from users that shut there pc without closing Servoy >?):
2010-09-16 03:25:40,970 ERROR [TaskExecuter[1]] com.servoy.j2db.dataprocessing.Zm - Error flushing message buffer to client BF6C021E-DAAF-4E5E-9961-
71CF67392EE0
java.rmi.ConnectException: Connection refused to host: 172.16.161.231; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
at $Proxy11.isAlive(Unknown Source)
at com.servoy.j2db.dataprocessing.ClientProxy.Zc(ClientProxy.java:11)
at com.servoy.j2db.dataprocessing.Zz.run(Zz.java:9)
at com.servoy.j2db.util.Zid.run(Zid.java:27)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.servoy.j2db.util.rmi.Zs.createSocket(Zs.java:103)
... 11 more