Smart Client "cannot find dataservice"

Questions, answers, tips and ideas on Servoy Client

Smart Client "cannot find dataservice"

Postby JuanMartin » Mon Feb 09, 2009 10:36 am

Hello
I have a problem when I try to conect to my server with the smart client, I have this message
"cannot find dataservice, it may not be running on server"

In web client, all is ok but with smart client I have this message in all computers.
My basedata is MySql.
I try to re-install Java and change the version of Java and nothing.
The servoy.log on server is ok, no there are errors.
The only no mormail is in .service_log I have this line:

ADVERTENCIA: Could not get url for /javax/servlet/resources/web-app_2_5.xsd

I don´t have Firewall, in ny network

Thanks.
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Smart Client "cannot find dataservice"

Postby IT2Be » Mon Feb 09, 2009 11:11 am

Please enable the Java console on the client and see what message you see in there...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Re: Smart Client "cannot find dataservice"

Postby JuanMartin » Mon Feb 09, 2009 11:38 am

This is my java consola:

Java Web Start 1.6.0_11
Usar versión JRE 1.6.0_11 Java HotSpot(TM) Client VM
Directorio local del usuario = C:\Documents and Settings\cri
----------------------------------------------------
c: borrar ventana de consola
f: finalizar objetos en la cola de finalización
g: liberación de recursos
h: presentar este mensaje de ayuda
m: imprimir sintaxis de memoria
o: activar registro
p: recargar configuración de proxy
q: ocultar consola
r: recargar configuración de norma
s: volcar propiedades del sistema y de despliegue
t: volcar lista de subprocesos
v: volcar pila de subprocesos
0-5: establecer nivel de rastreo en <n>
----------------------------------------------------
09-feb-2009 9:37:27 com.servoy.j2db.util.Debug log
INFO: Starting Servoy from C:\Documents and Settings\cri\Escritorio
09-feb-2009 9:37:27 com.servoy.j2db.util.Debug log
INFO: Servoy 4.1.0 build-651 on Windows XP using Java 1.6.0_11
09-feb-2009 9:37:31 com.servoy.j2db.util.Debug error
GRAVE: Throwable
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
at $Proxy0.getIDataServer(Unknown Source)
at com.servoy.j2db.J2DBClient.Ze(J2DBClient.java:245)
at com.servoy.j2db.ClientState.dataServerInit(ClientState.java:158)
at com.servoy.j2db.J2DBClient.dataServerInit(J2DBClient.java:316)
at com.servoy.j2db.J2DBClient.startupApplication(J2DBClient.java:875)
at com.servoy.j2db.J2DBClient.main(J2DBClient.java:167)
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)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
at com.servoy.j2db.util.rmi.Zp.createSocket(Zp.java:3)
... 21 more
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Smart Client "cannot find dataservice"

Postby JuanMartin » Tue Feb 10, 2009 11:24 am

I think there are many not normal lines:

at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)

But i don´t know what is the problem
Can someone help me
Thanks.
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Smart Client "cannot find dataservice"

Postby Harjo » Tue Feb 10, 2009 11:49 am

it looks like a firewall issue.

are you having a firewall on, on your developer/server?
and did you open port 8080 and 1099 (default, could be different in your case) ?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Smart Client "cannot find dataservice"

Postby andres_achiary » Tue Feb 10, 2009 2:32 pm

i had this problem a long time ago and it happened because the port was already in use by some other application... change the deault port and see what it happens
andres_achiary
 
Posts: 31
Joined: Tue Aug 19, 2008 5:19 pm

Re: Smart Client "cannot find dataservice"

Postby JuanMartin » Tue Feb 10, 2009 3:55 pm

I change the port for 1095 and it´s the same problem
Normay I use 8080 and 1099 ports
I don´t have any firewall, and the firewall of windows is disable at the moment
Web-Cliente is ok, on the network and out of my network, but the problem is smart-client, don´t work.
Always is the same message:

"Cannot find dataservice, it may not be running on server"


Thanks
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Smart Client "cannot find dataservice"

Postby Harjo » Tue Feb 10, 2009 4:06 pm

and if you try localhost on the server itself??

http://localhost:8080

are you using, some kind of proxy?
did you tried java with direct connection? (under network, in the java preference panel)
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Smart Client "cannot find dataservice"

Postby JuanMartin » Tue Feb 10, 2009 5:21 pm

When I try on server I have this message of java:


"No se puede iniciar la aplicación"
"Starting of webstart clients not possible from developer (running an application server)"

I don´t have any proxy or similar
and the conexion Java is direct at this moment
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Smart Client "cannot find dataservice"

Postby ROCLASI » Tue Feb 10, 2009 5:35 pm

Hi Juan,

In the Java control panel under Network make sure you use Direct Connection.

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

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

Re: Smart Client "cannot find dataservice"

Postby JuanMartin » Tue Feb 10, 2009 5:53 pm

Yes, in Java control panel, I use Direct Connection is ok the is the same problem.

All the problems started when I put on automatic the services of sybase.
I´m not sure if my sybase.config is ok. This is actually my sybase.config:

-ti 0 -x tcpip{dobroadcast=no;port=2638} -qs -qw -o "c:/servoy/application_server/sybase_db/sybase_log.txt"
"c:/servoy/application_server/database/servoy_repository.db"
"c:/servoy/application_server/database/user_data.db"
"c:/servoy/application_server/database/example.db"
"c:/servoy/application_server/database/log_data.db"
"c:/servoy/application_server/database/udm.db"
"c:/servoy/application_server/database/pdf_forms.db"
"c:/servoy/application_server/database/bug_db.db"

My proyect it´s on MySql and the name is intranet

Thanks
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Smart Client "cannot find dataservice"

Postby rgansevles » Mon Feb 16, 2009 12:09 pm

JuanMartin wrote:"Starting of webstart clients not possible from developer (running an application server)"


Are you running Developer and ApplicationServer on the same machine? if so, they probably conflict in ports.
Additionally, you cannot connect with the smart client to Developer, you will have to use the built-in smart-client there.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Smart Client "cannot find dataservice"

Postby JuanMartin » Tue Feb 17, 2009 5:59 pm

Thanks rgansevles.

I have only running ApplicationServer on the same machine
I use 1099 port and I proved with the 10990 too
Telnet is ok for 1099, but I can´t conect to the server with the smart client
On the server, the smart client works

If I put in java.rmiStartPort on server the External IP I have this message:

"No licenses or trial licenses left. Exiting"

And on the server log:

Error getting client info: Proxy[IClient,RemoteObjectInvocationHandler[UnicastRef2 [liveRef: [endpoint:[192.168.0.2:3001](remote),objID:[-5461085d:11f84f3a34b:-7ffd, -2969956359685996155]]]]]

Thanks
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Smart Client "cannot find dataservice"

Postby Harjo » Tue Feb 17, 2009 8:39 pm

I think your are using a proxy?

try direct connection, under java control panel -> Network
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Smart Client "cannot find dataservice"

Postby kwpsd » Tue Feb 17, 2009 9:59 pm

We installed Servoy on a new Windows Vista 64-bit computer (to act as a Servoy server) and ended up with a myriad of problems...this being one of them!

Using the 'netstat -a' command, we found that Sybase SQL port 2638 and Servoy Server port 8080 were open and LISTENING, however, the RMI port 1099 didn't show up. Using the 'telnet' command to port 1099 resulted in a message stating that a connection could not be established. Conflicting information at best..here's why.

A failure to 'telnet' to port 1099 indicates that some other application/service/system thing is already using the port, but, if that is true, then you would expect to see port 1099 to appear in 'netstat -a' as LISTENING. Microsoft at its best, eh? The conclusion we made was that Windows Vista is (secretly) using port 1099 even though it's a reserved port for Java RMI.

So, how to get around this? We added the following key to the Window Registry location:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Create a new multi-string value key (REG_MULTI_SZ) in this location and name it 'Reserved'. For the range value, enter '1099-1099'. Save and close the registry editor, then re-start the computer.

Disclaimer: we do not know what the ramifications to Windows Vista are, if any, for reserving port 1099. If you know of any, please let us know.

I hope this helps!

Kim
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Next

Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 9 guests