Client failing to start

I have a user reporting a startup issue with Servoy. When she launches the client, it hangs at a blank screen with “Start Repository” in the status bar at the bottom of the window.

Her’s is the only system at her particular location (this solution is used by many users as many locations around Texas) with this problem. All are running XP. Some are still on Java 1.5 and others (including her’s) are on 1.6.

I had her go through a clean-reinstall process, but the error still persists.

As part of the reinstall process I did have her turn on Java console logging, so I do have the following log output. (see below)

For the record, our server is a G5 running OS X 10.4.11. The Servoy version is 3.5.5 and the server’s Java is 1.5.0_13-121.

Any ideas here?

Java Web Start 1.6.0_05
Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
Apr 11, 2008 7:41:47 AM com.servoy.j2db.util.Debug log
INFO: Starting Servoy from C:\Documents and Settings\cml1\Desktop
Apr 11, 2008 7:41:47 AM com.servoy.j2db.util.Debug log
INFO: Servoy 3.5.5 build-518 on Windows XP using Java 1.6.0_05
Apr 11, 2008 7:41:48 AM com.servoy.j2db.util.Debug error
SEVERE: Throwable
java.net.SocketException: factory already defined
            at java.rmi.server.RMISocketFactory.setSocketFactory(Unknown Source)
            at com.servoy.j2db.J2DBClient.a(Unknown Source)
            at com.servoy.j2db.J2DBClient.G(Unknown Source)
            at com.servoy.j2db.J2DBClient.a(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)
Apr 11, 2008 7:41:48 AM com.servoy.j2db.util.Debug error
SEVERE: Already factory registered com.sun.deploy.net.protocol.rmi.DeployRMISocketFactory
Apr 11, 2008 7:41:49 AM com.servoy.j2db.util.Debug error
SEVERE: Error getting the service servoy.IRepository from host www.thetrc.org:1099
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.getServerService(Unknown Source)
            at com.servoy.j2db.J2DBClient.goto(Unknown Source)
            at com.servoy.j2db.ClientState.dataBaseInit(Unknown Source)
            at com.servoy.j2db.J2DBClient.dataBaseInit(Unknown Source)
            at com.servoy.j2db.J2DBClient.a(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)
Apr 11, 2008 7:41:49 AM com.servoy.j2db.util.Debug error
SEVERE: Error getting the service servoy.IDataServer from host www.thetrc.org:1099
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.getServerService(Unknown Source)
            at com.servoy.j2db.J2DBClient.e(Unknown Source)
            at com.servoy.j2db.ClientState.new(Unknown Source)
            at com.servoy.j2db.J2DBClient.new(Unknown Source)
            at com.servoy.j2db.J2DBClient.a(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)
Apr 11, 2008 7:41:54 AM com.servoy.j2db.util.Debug error
SEVERE: Fatal Exception
Apr 11, 2008 7:41:54 AM com.servoy.j2db.util.Debug error
SEVERE: Throwable
java.lang.NullPointerException
            at com.servoy.j2db.ClientState.a(Unknown Source)
            at com.servoy.j2db.J2DBClient.a(Unknown Source)
            at com.servoy.j2db.ClientState.new(Unknown Source)
            at com.servoy.j2db.J2DBClient.new(Unknown Source)
            at com.servoy.j2db.J2DBClient.a(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)

Thanks,
-Stephen

Have you cleared java cache?

IT2Be:
Have you cleared java cache?

They should have as part of the clean-reinstall process.

Is that typically the issue? I could ask them to do it again.

thanks,
-Stephen

No not typically but it could be the reason…

UPDATE:

IT at the location in question thinks there may have been something in a recent windows update (WindowsXP) which has broken the ability of an updated PC to use the Servoy Client.

They took one of the working PCs, updated it and it then it stopped working.

They are not sure which update it is, but it was probably something recent. Currently, they are installing and uninstalling updates one at a time to see which one is the culprit.

I will let everyone know what they report.

Anyone else have a similar experience?

As an OS X jockey, I must admit not knowing much about such things–thankfully. ;-) (sorry couldn’t resist)

-Stephen

I’m not sure how, but having Firefox set as the default browser seems to have been the cause of the error.

From the IT rep on-site:

Colleen had her default Internet browser set to Mozilla Firefox. This seems to have been causing the Java errors in Servoy. The application started up fine when I changed the default Internet browser to Internet Explorer. I’m not a Java programmer, so I don’t know why this would have an affect on your application. How does the application interface with the web browser?

It would be great if a patch were available to allow Colleen to switch her default browser back to Firefox. If not, then I would encourage you to include this caveat in your documentation. It was a difficult problem for me to track down, and documenting it might save other people time and frustration if it is encountered again.

Is this a known issue or has anyone seen this before?

Very strange…

-Stephen

I am using (and used lots of times) Windows XP + Firefox for smart client and it works.
Did you try to clear the Firefox cache? Are there any proxy configuration differences between FF and IE on that machine?

There was another thread with a similar error message… maybe it helps: