Can't start client...

Questions, answers, tips and ideas on Servoy Client

Can't start client...

Postby john.allen » Sat Aug 28, 2010 11:28 am

I'm running a Servoy 3.5.12 solution that has been fine for several months with no changes that I know to either the server or the clients. (Right now I know of one client that reported the issue and then I tried launching a client from my Mac and also couldn't launch it.) I did launch a client successfully from the server machine however. I don't think this is the signed/unsigned problem that was going on a while ago. No outside Java plugins are on the server at all and, as I said, this has been running now for several months without a problem. Java on the server is 1.6.0_18 and on my Mac it is 1.6.0_20. Not sure what it is on the client that reported the problem. Below is the console output. Any help greatly appreciated as always...
Java Web Start 1.6.0_20
Using JRE version 1.6.0_20-b02-279-10M3065 Java HotSpot(TM) 64-Bit Server VM

Aug 28, 2010 2:04:36 AM com.servoy.j2db.util.Debug log
INFO: Starting Servoy from /Users/John
Aug 28, 2010 2:04:36 AM com.servoy.j2db.util.Debug log
INFO: Servoy 3.5.12 build-526 on Mac OS X using Java 1.6.0_20
Aug 28, 2010 2:04:36 AM com.servoy.j2db.util.Debug error
SEVERE: Throwable
java.net.SocketException: factory already defined
at java.rmi.server.RMISocketFactory.setSocketFactory(RMISocketFactory.java:94)
at com.servoy.j2db.J2DBClient.a(Unknown Source)
at com.servoy.j2db.J2DBClient.v(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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1812)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1532)
at com.sun.javaws.Launcher.run(Launcher.java:135)
at java.lang.Thread.run(Thread.java:637)
Aug 28, 2010 2:04:36 AM com.servoy.j2db.util.Debug error
SEVERE: Already factory registered com.sun.deploy.net.protocol.rmi.DeployRMISocketFactory
Aug 28, 2010 2:04:37 AM com.servoy.j2db.util.Debug error
SEVERE: Error getting the service servoy.IRepository from host 171.65.98.109:1099
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:230)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1812)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1532)
at com.sun.javaws.Launcher.run(Launcher.java:135)
at java.lang.Thread.run(Thread.java:637)
Aug 28, 2010 2:04:37 AM com.servoy.j2db.util.Debug error
SEVERE: Error getting the service servoy.IDataServer from host 171.65.98.109:1099
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:230)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1812)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1532)
at com.sun.javaws.Launcher.run(Launcher.java:135)
at java.lang.Thread.run(Thread.java:637)
Aug 28, 2010 2:04:42 AM com.servoy.j2db.util.Debug error
SEVERE: Fatal Exception
Aug 28, 2010 2:04:42 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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1812)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1532)
at com.sun.javaws.Launcher.run(Launcher.java:135)
at java.lang.Thread.run(Thread.java:637)
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Can't start client...

Postby Harjo » Sat Aug 28, 2010 11:54 am

Hi John,

did you tried, the direct connection, option inside java panel? (under network)
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4307
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Can't start client...

Postby john.allen » Sat Aug 28, 2010 12:10 pm

Hi Harjo,

Thanks for the reply. Not sure what you mean by 'direct connection/java panel/under network'. I tried to reinstall the client (url:8080, etc.) on my machine. As mentioned it works on the server (localhost:8080) although it didn't seem to the first time I tried there either... This is 3.5.12...

Probably off to bed now...
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Can't start client...

Postby ROCLASI » Sat Aug 28, 2010 12:17 pm

Hi John,

The network settings can be found in your Java Preferences (on Mac in /Applications/Utilities/).
Java Preferences.png
Java Preferences.png (75.49 KiB) Viewed 2895 times

network settings.png
network settings.png (32.93 KiB) Viewed 2895 times


You have something similar under Windows in the Java Control Panel.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Twitter: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5342
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Can't start client...

Postby john.allen » Sat Aug 28, 2010 7:21 pm

OK. I thought that was some setting in Servoy, not the Java Control Panel/Preferences. Never seen the 'direct connection' part before and hadn't ever heard it discussed here...

First off: worked like a charm on my Mac. Set it to direct connection and immediately it worked... Turned it off and it no longer worked. Reset it to direct connection and worked again. Thanks! I can't have the client check it as she won't be there now so won't be able to see if she had the same problem or not but I presume she did. However all this does leave me with some questions:

1) Why did this never come up before? As mentioned this solution has been running for awhile on this server, clients and I had always been able to connect fine without this.

2) What is the meaning of the 'direct connection'? Should every client always be told to set their Java Preferences this way? Is this something new? My work sometimes means that I won't follow Servoy things as closely as I'd like and so sometimes I'll go a few weeks without monitoring the forum but I'm still kind of surprised I haven't heard of this before...

3) It did start up fine and everything looks good but I did get this console message.
INFO: Scheduler scheduler_$_one started.
Exception Object: org.mozilla.javascript.EvaluatorException: The undefined value has no properties.
MSG: The undefined value has no properties.

Do you think that's anything to worry about? Not sure what it is referring to.

Thanks a lot Harjo and Robert for the help!

P.S. Oh, one thing that really helps me to keep up with things Servoy when I'm busy is getting the daily email from the Servoy Forum. But the delivery seems really erratic these days. I get the RSS feed but that's a lot harder for me to keep up with than the email summary. When it's working it's nice because whenever I get on the Forum it knows that and doesn't send the email but if I miss a day or two then it sends the summary. But now it is off sometimes for weeks and I've checked my preferences on it and they seem fine... Oh well...
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Can't start client...

Postby jcompagner » Mon Aug 30, 2010 11:50 am

i guess that specific client has some proxy settings or something when he installed servoy.
I dont know exactly at what time an install of java has direct connection or proxy/system settings.
But this is already for a long time the same thing.

In servoy 5 you can enable the tunnel and configure it in Http&Socket mode (or socket only)
And socket means that the tunnel does use direct socket connections, so plain rmi not tunneled over http.
The side effect of using the tunnel code that it isnt affected by the java control network panel setting at all.

So the tunnel in socket mode is a replacement of the 2 way socket, and can as extra feature also tunnel over http if there are firewall/proxies that has to be used.

If you configure it in Http&Socket mode then through profiles (see the admin pages) you can configure it per client.
So one client that doesnt need http tunneling can just use a normal url like http://server/servoy-client/mysolution.jnlp.
and one that needs http that client can use the url: http://server/servoy-client/http/mysolution.jnlp
where there is a http profile that sets the property:

system.property.SocketFactory.tunnelConnectionMode=http
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8284
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can't start client...

Postby john.allen » Fri Sep 03, 2010 4:11 am

Well can't say that I understand exactly what is going on but... The situation here is that someone on the the hospital network has no admin rights on their computer so the user can't even change their Java Control Panel settings (can't even access the control panel). We tried to get the hospital IT to change it remotely but in that process the individual's PC started having other problems and in the end they came around and switched computers. On the new computer she still doesn't have access to that Java Control Panel. Nevertheless for some reason it all started working again. I guess that there must be some network change that caused it but can't say for sure. It is however working again! So months (more like a couple of years actually) it works, one day it doesn't without doing that 'direct connection' (for myself logging in from home and from the aforementioned user at work). Then presto it starts working again... Oh well... All's well that ends well I guess...
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 0 guests