Can't checkout solutions

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

Re: Can't checkout solutions

Postby Gabi Boros » Mon Jan 18, 2010 10:20 am

what is the error in the log file (servoy_log.txt) on the client side ?
Gabi Boros
Servoy
Gabi Boros
 
Posts: 404
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Can't checkout solutions

Postby jcompagner » Mon Jan 18, 2010 12:19 pm

this setting:

servoy.application_server.startRepositoryAsTeamProvider is true on the server and then should be false in the developer (localhost)

what kind of error do you get in the log? (full stacktrace)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can't checkout solutions

Postby Nikki Stokes » Tue Jan 19, 2010 7:34 am

Hi,

Thanks for your replies.

I can't find this setting (servoy.application_server.startRepositoryAsTeamProvider) in the servoy.properties file on my Windows box that has developer installed. I'm not running the Server on my windows box as a Windows service because I want to use the one on my Linux server instead.

The error that Developer throws on opening is:

2010-01-19 16:23:16,156 ERROR [Thread-3] com.servoy.j2db.util.Debug - Throwable
com.servoy.j2db.persistence.RepositoryException: Could not find repository server: 'repository_server'
at com.servoy.j2db.persistence.ServerManager.getRepositoryServer(ServerManager.java:170)
at com.servoy.j2db.server.ApplicationServer.initFromSerclipse(ApplicationServer.java:156)
at com.servoy.eclipse.core.ServoyModel.startAppServer(ServoyModel.java:223)
at com.servoy.eclipse.core.util.SplashHandler$1.run(SplashHandler.java:3)
at java.lang.Thread.run(Unknown Source)

Hope that makes sense to someone!

The host servoy.yawarra is resolvable by my machine, and I have a database server connection set up in developer that points to the location of the postgres database for the repository database.

I feel like I'm really close but missing something obvious. Hope you can see it. Thanks for your help.
Nikki Stokes
 
Posts: 9
Joined: Wed May 30, 2007 1:28 pm

Re: Can't checkout solutions

Postby jcompagner » Tue Jan 19, 2010 6:24 pm

go to the admin pages of your developer install
so http://localhost:8080/servoy-admin

then under Admin Settings you will see:

servoy.application_server.startRepositoryAsTeamProvider:

that must be set to false for the developer if you dont use it as a team server and you dont have a repository db server
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can't checkout solutions

Postby Nikki Stokes » Wed Jan 20, 2010 3:03 am

Hi Johan,

Thanks for your reply.

I haven't installed Servoy Server as a Windows service, so I don't think I can run the server on my local machine. When I run C:\Program Files\Servoy\application_server\servoy_server.bat the server doesn't launch and there's nothing at http://localhost:8080/servoy-admin.

Does this mean I have to reinstall Servoy Developer, and include the Windows service, just so I can tell Developer that I don't want to use the Windows service for my repository?

Thanks.

Nikki
Nikki Stokes
 
Posts: 9
Joined: Wed May 30, 2007 1:28 pm

Re: Can't checkout solutions

Postby jcompagner » Wed Jan 20, 2010 1:40 pm

i am not talking about the windows service.

your local developer also has a http server embedded.

Just start your developer..

Then go to the http://localhost:8080

then you will get the developers pages.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can't checkout solutions

Postby Nikki Stokes » Thu Jan 21, 2010 9:21 am

Ok, I didn't realise that. I've now started developer, and accessed the pages at localhost:8080/servoy-admin.

My servoy.application_server.startRepositoryAsTeamProvider was already set to false. My SocketFactory.compress was true, and I've now set that to false.

When I start developer I still get this message in the log:
2010-01-21 18:12:05,062 ERROR [Thread-3] com.servoy.j2db.util.Debug - Throwable
com.servoy.j2db.persistence.RepositoryException: Could not find repository server: 'repository_server'
at com.servoy.j2db.persistence.ServerManager.getRepositoryServer(ServerManager.java:170)
at com.servoy.j2db.server.ApplicationServer.initFromSerclipse(ApplicationServer.java:156)
at com.servoy.eclipse.core.ServoyModel.startAppServer(ServoyModel.java:223)
at com.servoy.eclipse.core.util.SplashHandler$1.run(SplashHandler.java:3)
at java.lang.Thread.run(Unknown Source)

and I can't share solutions or checkout anything from the repository.

The error dialogue I'm getting is on attempted checkout is:

servoy_error.png
erorr message dialogue on attempted checkout
servoy_error.png (11.54 KiB) Viewed 6939 times


and the log files read:

2010-01-21 18:15:27,750 ERROR [SignallingChannel] com.servoy.j2db.util.Debug - Signalling channel of the 2 way socket read exception
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at com.servoy.j2db.util.rmi.Zj.run(Zj.java:5)
2010-01-21 18:15:27,750 ERROR [SignallingChannel] com.servoy.j2db.util.Debug - Trying to reconnect to the server
2010-01-21 18:15:28,734 ERROR [SignallingChannel] com.servoy.j2db.util.Debug - Reconnect of the signalling channel failed, waiting 5 seconds.
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 java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.servoy.j2db.util.rmi.Zj.Zb(Zj.java:65)
at com.servoy.j2db.util.rmi.Zj.run(Zj.java:20)

and so on repeatedly...

Thanks for your patience.
Nikki Stokes
 
Posts: 9
Joined: Wed May 30, 2007 1:28 pm

Re: Can't checkout solutions

Postby jcompagner » Thu Jan 21, 2010 10:44 am

Compressing is disabled on both sides?
make also sure that ssl is disabled (on both sides) and you could also disabled 2 way socket and then fill in at the rmi host name servoy.yawarra (thats your server hostname right?)

then startRepositoryAsTeamProvider must be enabled on the server and disabled on the developer.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can't checkout solutions

Postby Nikki Stokes » Thu Jan 21, 2010 12:35 pm

The SocketFactory.compress setting does not appear in the server-side GUI (http://servoy.yawarra:8080/servoy-admin ... k-settings) but it does appear in the developer settings (http://localhost:8080/servoy-admin/network-settings). It's off in developer, and I tried adding the string SocketFactory.compress=false to the servoy.properties file on the server and restarting, but I'm still getting the same error messages, and the setting is still not showing up in the server GUI.

startRepositoryAsTeamProvider is enabled on the server and disabled on the developer, ssl is disabled on both and I turned off the two-way socket and entered the rmi hostname (servoy.yawarra) into both.

Still getting the same error messages.

Can you confirm that this is something I should be able to get working with the licences I currently have - two developer licences, no separate client licences yet? I understand that developer includes some client licences for testing purposes, but I just wondered if the set-up I have is not how I'm supposed to be using it with developer and that's why it's not working.

What I'm trying to achieve is to use an external postgres database for my repository, rather than the built in iAnywhere database, and to run the Servoy Server off our Linux server so the two developers can share solutions without needing either Windows machine to be running to serve the solutions.
Nikki Stokes
 
Posts: 9
Joined: Wed May 30, 2007 1:28 pm

Re: Can't checkout solutions

Postby jcompagner » Thu Jan 21, 2010 12:43 pm

compressing should be on the server. If not then it is very likely that you dont have the same installation on both ends..

Server and developer should be of the same servoy version.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can't checkout solutions

Postby Nikki Stokes » Fri Jan 22, 2010 2:56 am

Thank you! You nailed the problem.

We installed on the Windows boxes from an .exe file and onto the server from a .jar file, and discovered we'd used files downloaded at different times, and so they were different versions of 4.1.

We now have the same version on both and everything is working.

Thank you so much for your help and your patience.
Nikki Stokes
 
Posts: 9
Joined: Wed May 30, 2007 1:28 pm

Previous

Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 8 guests

cron