Can not find dataservice, it may not be running on server

Questions, answers, tips and ideas on Servoy Client

Can not find dataservice, it may not be running on server

Postby udrescu_bogdan » Wed Oct 06, 2010 6:21 pm

Hello,

We are receiving inputs from some of our end-users saying that they receive this error message in smart client and can not use it. They have no firewall active.

Beside the firewall, which is not the case, what could be the cause of this error and how can be solved?

Greetings,
Bogdan.
udrescu_bogdan
 
Posts: 336
Joined: Fri Jun 18, 2010 3:27 pm
Location: Craiova, Romania

Re: Can not find dataservice, it may not be running on server

Postby Kahuna » Wed Oct 06, 2010 7:27 pm

udrescu_bogdan wrote:Hello,

We are receiving inputs from some of our end-users saying that they receive this error message in smart client and can not use it. They have no firewall active.

Beside the firewall, which is not the case, what could be the cause of this error and how can be solved?

Greetings,
Bogdan.


We experienced this for the first time today too - OK on one PC and not on another - same LAN - connecting to the server over the web. Because we figured the system was well broken and Java reinstall did not fix it (and a system Restore did nothing) we ended up bringing forward a system upgrade for that PC to Win 7 - Now OK again. But it would be very useful to know the reason!!!
(Servoy Version: 6.0.7 Win XP / 7 - SQL Server 2008 R2)
Ian Cordingley (Kahuna)
Kahuna
 
Posts: 1235
Joined: Thu Oct 26, 2006 1:39 am
Location: 1/2 NE UK 1/2 Olvera Spain

Re: Can not find dataservice, it may not be running on server

Postby jcompagner » Thu Oct 07, 2010 9:26 am

what is your network settings in the admin pages? (rmihostname, do you use 2way or the tunnel)

What is the clients error in the java webstart console
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can not find dataservice, it may not be running on server

Postby Foobrother » Thu Oct 07, 2010 9:47 am

We don't know why. But when we have this error (cannot find dataservice), we go into Java>Network Settings and set it to "Direct Connection". Then it works fine :D
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: Can not find dataservice, it may not be running on server

Postby jcompagner » Thu Oct 07, 2010 10:01 am

yes that is a known issue.

For that there are 2 solutions

1> change it on the client to direct connection

2> configure the server to use the http&socket tunnel
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can not find dataservice, it may not be running on server

Postby udrescu_bogdan » Thu Oct 07, 2010 3:04 pm

java.rmi.server.hostname: 127.0.0.1
SocketFactory.useTwoWaySocket: true
SocketFactory.tunnelConnectionMode: http
udrescu_bogdan
 
Posts: 336
Joined: Fri Jun 18, 2010 3:27 pm
Location: Craiova, Romania

Re: Can not find dataservice, it may not be running on server

Postby Foobrother » Thu Oct 07, 2010 3:41 pm

Still doesn't work?

Have you tried to change it on the client to direct connection or/and to configure the server to use the http&socket tunnel?
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: Can not find dataservice, it may not be running on server

Postby udrescu_bogdan » Thu Oct 07, 2010 5:00 pm

I'm waiting an answer from the users. I told them to try direct connection.

I have changed the tunnelConnectionMode to http&socket. Can Servoy automatically change the mode from socket to http in a proper manner in case it encounter problems with the network and fails the data transfer using sockets? Or it's safe to let it on http only?

Thanks,
Bogdan.
udrescu_bogdan
 
Posts: 336
Joined: Fri Jun 18, 2010 3:27 pm
Location: Craiova, Romania

Re: Can not find dataservice, it may not be running on server

Postby jcompagner » Thu Oct 07, 2010 5:33 pm

this setting:

SocketFactory.tunnelConnectionMode: http

only makes sense if you also set the property: SocketFactory.rmiServerFactory
else it wont do anything.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can not find dataservice, it may not be running on server

Postby udrescu_bogdan » Fri Oct 08, 2010 8:52 am

I have noticed that the TwoWaySocket setting exists also in client's preferences. Is this the only one? What about the TunnelConnectionMode? If I changed it on the server will the clients be affected by the change or they will have the old setting?

In general, if I change preferences on server that also can be changed from the client, like NumberFormat, or this TwoWaySocket property, how can I force all clients to read them from the server and override their local settings?

Greetings,
Bogdan.
udrescu_bogdan
 
Posts: 336
Joined: Fri Jun 18, 2010 3:27 pm
Location: Craiova, Romania

Re: Can not find dataservice, it may not be running on server

Postby jcompagner » Fri Oct 08, 2010 11:18 am

this:

SocketFactory.tunnelConnectionMode

will always be pushed, same for its TunnelConnectionMode

2 way socket is a client property because clients dont have to use that if they are in the same local lan of the server.. But normally you dont want to set this at the clients to false if the server is true
You cant push this property to be changed if the client did set it them self.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can not find dataservice, it may not be running on server

Postby udrescu_bogdan » Sat Oct 09, 2010 8:52 pm

Hello,

I'm glad to tell you that we received a notification from a client and it worked with Direct Connection on true. :D

Thank you,
Bogdan.
udrescu_bogdan
 
Posts: 336
Joined: Fri Jun 18, 2010 3:27 pm
Location: Craiova, Romania

Re: Can not find dataservice, it may not be running on serve

Postby servoydevguy » Wed Apr 13, 2011 12:05 am

I upgraded our solution from servoy 5.2.7 to 6 b1 today. With 5.2.7 we were using the following settings to connect to our solution in our datacenter:

Code: Select all
ServerManager.numberOfServers=8
SocketFactory.SSLKeystorePassphrase=
SocketFactory.SSLKeystorePath=
SocketFactory.compress=true
SocketFactory.rmiServerFactory=com.servoy.j2db.server.rmi.tunnel.ServerTunnelRMISocketFactoryFactory
SocketFactory.useSSL=true
SocketFactory.useTwoWaySocket=true

system.property.com.sebster.tunnel.http.client.chunked=false
system.property.com.sebster.tunnel.http.client.closeRequestOnFlush=false


These settings worked fine in 5.2.7. Now I get the "Cannot find dataservice..." error and in my Java console I get the error:

SEVERE: couldn't instantiate the rmi socketfactory
java.lang.NoSuchMethodException: com.servoy.j2db.server.rmi.tunnel.ClientTunnelRMISocketFactoryFactory.<init>(java.net.URL, com.servoy.j2db.IApplication, java.util.Properties, com.servoy.j2db.util.rmi.IReconnectListener)

Do these settings no longer make sense for Servoy 6?

-----------------------------------------------------------------------
Bobby Drake
Lead Software Engineer
Softwear, BV
Servoy 6.0.0
DB: External PostgreSQL 9.x (via TCP/IP)
OS: Mac 10.6, Windows 7
User avatar
servoydevguy
 
Posts: 26
Joined: Sat Jul 31, 2010 11:47 pm
Location: Wormerveer, NL

Re: Can not find dataservice, it may not be running on serve

Postby jcompagner » Wed Apr 13, 2011 10:06 am

That's a bug in 6b1, will be fixed in the next release.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 14 guests