when I try to start a client with Java 6, I get all kinds of errors. After clearing all caches, I manage to start the client but end with an error stating that the repository could not be found.
In the trace I see these errors
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
at java.util.AbstractList$Itr.next(Unknown Source)
at com.sun.deploy.net.proxy.DeployProxySelector.select(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
at com.sun.javaws.LaunchDownload$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
and
java.net.SocketException: factory already defined
java.net.SocketException: factory already defined
at java.rmi.server.RMISocketFactory.setSocketFactory(Unknown Source)
at com.servoy.j2db.J2DBClient.bi(Unknown Source)
at com.servoy.j2db.J2DBClient.if(Unknown Source)
at com.servoy.j2db.J2DBClient.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
and
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at com.servoy.j2db.J2DBClient.aG(Unknown Source)
at com.servoy.j2db.ClientState.dataBaseInit(Unknown Source)
at com.servoy.j2db.J2DBClient.dataBaseInit(Unknown Source)
at com.servoy.j2db.J2DBClient.if(Unknown Source)
at com.servoy.j2db.J2DBClient.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
If I go back to Java 5 there is no problem at all. Does anybody know what the problem is and how this can be prevented?
We have come across something similar, one of my clients upgraded to Java 1.6 (Windows XP), and Servoy client refuses to load on 1 PC out of 18… We cannot understand why.
It freezes when opening the solution and then gives the error
message "cannot register client".
And was / is there a solution? Bad news is: the machine in question is my development machine. So currently I am unable to start whatever client on my machine. Any help / ideas greatly appreciated!
For some reason we had also a client that could not connect with the same message. Clearing the default java cache, & /.servoy folder or IE cache did’nt help. The thing above helped!
Very interesting. Actually, I don’t use a virus scanner at all (I need to work ). So I had almost everything disabled except for mail checking. Now I also disabled mail checking and now the client did start, but it took maybe 10 minutes!?
I guess I de-install the Norton sucker. Anyway, it’s a bit strange that this only occurs with Java 6…
I de-installed Norton completely, cleared the cache and deleted the .servoy directory: no luck!
I am getting a “Repository not found” error and in the trace I see this:
java.net.SocketException: factory already defined
java.net.SocketException: factory already defined
at java.rmi.server.RMISocketFactory.setSocketFactory(Unknown Source)
at com.servoy.j2db.J2DBClient.bi(Unknown Source)
at com.servoy.j2db.J2DBClient.if(Unknown Source)
at com.servoy.j2db.J2DBClient.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
and
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at com.servoy.j2db.J2DBClient.aG(Unknown Source)
at com.servoy.j2db.ClientState.dataBaseInit(Unknown Source)
at com.servoy.j2db.J2DBClient.dataBaseInit(Unknown Source)
at com.servoy.j2db.J2DBClient.if(Unknown Source)
at com.servoy.j2db.J2DBClient.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.rmi.NoSuchObjectException: object not exported
java.rmi.NoSuchObjectException: object not exported
at sun.rmi.transport.ObjectTable.unexportObject(Unknown Source)
at java.rmi.server.UnicastRemoteObject.unexportObject(Unknown Source)
at com.servoy.j2db.J2DBClient.aA(Unknown Source)
at com.servoy.j2db.ClientState.shutDown(Unknown Source)
at com.servoy.j2db.J2DBClient.shutDown(Unknown Source)
at com.servoy.j2db.J2DBClient$6.windowClosing(Unknown Source)
at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I really have no way of starting a client currently. Any help/ideas greatly appreciated.
patrick:
java.net.SocketException: factory already defined
Exclude the Servoy application server from proxy usage, to use a proxy Java registers a socketFactory of its own, conflicting with the one from Servoy.
Exclude the Servoy application server from proxy usage, to use a proxy Java registers a socketFactory of its own, conflicting with the one from Servoy.
?
Also, how can I set ‘Direct Connect’ on Java on Mac?
I have a client with lots of Proxy issues with Servoy (works fine with no proxies, but can’t start client properly when proxies turned on).