Problem starting client with Java 6

Hi,

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?

Thanks
Patrick

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!

Hi Patrick,

goto document&settings/youruserfolder/Application Data/Sun/Java/Deployment/cache.

Empty that one.

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!

So you could give that a try!

HJK:
goto document&settings/youruserfolder/Application Data/Sun/Java/Deployment/cache.

Any idea where this is in Vista? The directory structure has changed and I can’t find anything. (I’m an OS X guy, anyways)

I’m having a similar problem with the Vista test machine we just received.

Thanks,
-Stephen

on Vista this is

C:\Users\UserName\AppData\LocalLow\Sun\Java\Deployment

Harjo: I have cleared the cache and deleted the .servoy directory. No luck.

Is there a version of Norton Internet Security installed?

Yes, was preinstalled, but is basically not in use (turned off). What part makes problems?

Try to de-install (not shutdown) and try to connect again.
Than buy a REAL virusscanner/firewall ;-)

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…

Thanks for the tip, Harjo.

yeah, said it before:
http://forum.servoy.com/viewtopic.php?t=7765&highlight

Norton s…ks! :evil:

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.

you can also try to de-install java 6 and try the latest 1.5.(11? I believe)
that one is also compatible with Vista.

I know, that works. But I really want to see this working with Java 6!

did you also try to de-install java 6 and re-install Java 6?

Yes.

Windows->Control Panel->Java->Network Settings->
Select the Direct Connection

(i think you have use browser settings or something like that)

Johan, you are the man! That was it. I have never messed with that setting, but switching to direct connection solved the issue.

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.

How do I

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).

Thanks,

Rafi