Can't checkout solutions

ROCLASI:
Is that what you changed just before it stopped working ? Or did it work before with the tunnel as well ?
If it all worked before then try to find out what has changed in your environment (your machine, network, server).

I’ve never tried to checkout on this configuration before. It’s the same server but we have re-installed Servoy and now we use MS SQL Server 2005.
I have changed the database servers urls in Developer with the new details.

I have just tried with the HTTP Tunnel disabled but no success. However now I don’t even have a timeout and get the error message just after I click.
And now I have the exception I had in the past:

2009-07-29 13:03:49,566 ERROR [Worker-10] com.servoy.j2db.util.Debug - Error getting the repository from host AG-DEV:1099
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
	java.io.EOFException
	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.eclipse.team.RepositoryAccessPoint.Zg(RepositoryAccessPoint.java:37)
	at com.servoy.eclipse.team.RepositoryAccessPoint.Zd(RepositoryAccessPoint.java:67)
	at com.servoy.eclipse.team.RepositoryAccessPoint.Za(RepositoryAccessPoint.java:101)
	at com.servoy.eclipse.team.ui.NewSolutionWizard$4.runInWorkspace(NewSolutionWizard.java:2)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.io.EOFException
	at java.io.DataInputStream.readByte(Unknown Source)
	... 11 more

So I’ll try to use a clean Workspace again as it was what fixed my problem in the past.

do you use the latest 4.1.x release?

disable compressing on both sides (so your team server admin pages and your developer admin pages and start both again), see if that matters.

jcompagner:
do you use the latest 4.1.x release?

disable compressing on both sides (so your team server admin pages and your developer admin pages and start both again), see if that matters.

I have the version 4.1.3 on both sides.
Before changing compress I have uninstalled and reinstalled Servoy (on Developer side). I have tried again (without changing the compress yet) but I got the same error.
I have disabled compress, restarted both, but I get the same error:

2009-07-29 15:39:11,552 ERROR [Worker-3] com.servoy.j2db.util.Debug - Error getting the repository from host ag-dev: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.eclipse.team.RepositoryAccessPoint.Zg(RepositoryAccessPoint.java:37)
at com.servoy.eclipse.team.RepositoryAccessPoint.Zd(RepositoryAccessPoint.java:67)
at com.servoy.eclipse.team.RepositoryAccessPoint.Za(RepositoryAccessPoint.java:101)
at com.servoy.eclipse.team.ui.NewSolutionWizard$4.runInWorkspace(NewSolutionWizard.java:2)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

if you get no jrmp endpoint that means that one of the sides talk a different protocol
So 1 of the 2 is very likely still talking compressed.

jcompagner:
if you get no jrmp endpoint that means that one of the sides talk a different protocol
So 1 of the 2 is very likely still talking compressed.

I’ve double-checked and on the server SocketFactory.compress is not ticked and on the developer admin page it is not ticked as well.
Here are the servoy.properties of each side (I have removed useless data and login/pwd):
-Server:

#servoy
#Wed Jul 29 15:37:25 BST 2009
ApplicationServer.pingDelay=300
ServerManager.numberOfServers=2
SocketFactory.compress=false
SocketFactory.useSSL=true
SocketFactory.useTwoWaySocket=true
dbserver.skipSysTables=false
log4j.appender.configservlet=com.servoy.j2db.util.SlidingWindowAppender
log4j.appender.configservlet.layout=com.servoy.j2db.util.Log4JHTMLTableLayout
log4j.appender.configservlet.layout.dateTimeFormat=yyyy-MM-dd HH\:mm
log4j.appender.configservlet.windowSize=1000
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=%%servoy_app_server_dir%%\\servoy_log.txt
log4j.appender.file.MaxBackupIndex=1
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d %p [%t] %c - %m%n
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%t] %c - %m%n
log4j.debug=false
log4j.logger.com.servoy.j2db.util.Debug=WARN
log4j.logger.org.apache.wicket=WARN
log4j.rootCategory=WARN, file, configservlet
pushLnfToMac=false
rmi.connection.timeout=120
server.0.URL=jdbc\:sqlserver\://localhost\:1433;DatabaseName\=servoy_repository;SelectMethod\=cursor
server.0.catalog=<none>
server.0.connectionValidationType=0
server.0.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
server.0.enabled=true
server.0.maxConnectionsActive=10
server.0.maxConnectionsIdle=5
server.0.maxPreparedStatementsIdle=100
server.0.schema=<none>
server.0.serverName=repository_server
server.1.URL=jdbc\:sqlserver\://localhost\:1433;DatabaseName\=db_ag;SelectMethod\=cursor
server.1.catalog=<none>
server.1.connectionValidationType=0
server.1.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
server.1.enabled=true
server.1.maxConnectionsActive=30
server.1.maxConnectionsIdle=20
server.1.maxPreparedStatementsIdle=100
server.1.schema=<none>
server.1.serverName=ag
server.1.validationQuery=
servoy.allowExistingClientActivate=true
servoy.allowSolutionBrowsing=true
servoy.application_server.startRepositoryAsTeamProvider=true
servoy.clientDesktopShortcutCreation=false
servoy.clientJarLoadOption=eager
servoy.didFirstTimeInit=true
servoy.disableDataChangeNotify=false
servoy.disableServersidePack=false
servoy.fastClientStartup=false
servoy.initialClientHeap=128
servoy.maxClientHeap=512
servoy.rmiStartPort=1099
servoy.use.client.timezone=true
servoy.useObjectPool=false
servoy.vmClientArgs=-XX\:SoftRefLRUPolicyMSPerMB\=3600000
servoy.webclient.enableAnchors=false
servoy.webclient.nice.urls=false
servoy.webclient.templates.use_local_ids=false
servoy.webclient.useAjax=true
useSystemPrintDialog=false
usedRMIRegistryPort=1099

-Developer:

#servoy
#Wed Jul 29 17:03:35 BST 2009
ApplicationServer.pingDelay=300
ServerManager.numberOfServers=2
SocketFactory.compress=false
SocketFactory.useSSL=false
SocketFactory.useTwoWaySocket=true
log4j.appender.configservlet=com.servoy.j2db.util.SlidingWindowAppender
log4j.appender.configservlet.layout=com.servoy.j2db.util.Log4JHTMLTableLayout
log4j.appender.configservlet.layout.dateTimeFormat=yyyy-MM-dd HH\:mm
log4j.appender.configservlet.windowSize=1000
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=%%servoy_app_server_dir%%\\servoy_log.txt
log4j.appender.file.MaxBackupIndex=1
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d %p [%t] %c - %m%n
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%t] %c - %m%n
log4j.debug=false
log4j.logger.com.servoy.j2db.util.Debug=WARN
log4j.logger.org.apache.wicket=WARN
log4j.rootCategory=WARN, file, configservlet
rmi.connection.timeout=120
server.0.URL=jdbc\:sqlserver\://ag-dev\:1433;DatabaseName\=servoy_repository;SelectMethod\=cursor
server.0.catalog=<none>
server.0.connectionValidationType=0
server.0.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
server.0.enabled=true
server.0.maxConnectionsActive=10
server.0.maxConnectionsIdle=5
server.0.maxPreparedStatementsIdle=100
server.0.schema=<none>
server.0.serverName=repository_server
server.1.URL=jdbc\:sqlserver\://ag-dev\:1433;DatabaseName\=db_ag;SelectMethod\=cursor
server.1.catalog=<none>
server.1.connectionValidationType=0
server.1.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
server.1.enabled=true
server.1.maxConnectionsActive=10
server.1.maxConnectionsIdle=5
server.1.maxPreparedStatementsIdle=100
server.1.schema=<none>
server.1.serverName=ag
servoy.application_server.startRepositoryAsTeamProvider=true
servoy.didFirstTimeInit=true
servoy.rmiStartPort=1099

I hope it can help :roll:

look at your network settings, they are not the same
Also disable ssl on both sides, after that you can also try to disable 2way on both sides but that shouldnt matter to much

Team an develop must be ‘exactly’ sync with the network settings.

Just one question about this server and dev configuration:
I understood that your server is “ag” running servoy repository on sql

Why does the dev conf has his own repository pointing to the ag repository (like in servoy 3.5 multi dev) ?

the repository database sql connection that you have in your developer is something that you dont need.

Fixed!

Apparently, as you said, it was because the network settings were different. Server was using SSL and Developer not.
I’m learning once again :lol:

Actually I though use SSL was only for solutions settings not when you access using developer.

By the way, you said that I don’t need a connection to the server repository in developer to be able to checkout?! I’ll try it next time.

Many thanks for your help!

I have the same problem, but none of the above solutions seems to fix it.

I’m using Developer 4.1.4 on a Windows XP box, with my repository database as a PostgresQL database running under Debian Linux on server#1 (postgres.ourbusiness) and Servoy Server running under Debian Linux on server#2 (servoy.ourbusiness), and both hostnames resolve successfully on both servers.

I’ve set up Servoy Server via the web GUI (http://servoy.ourbusiness:8080/servoy-admin/) and it’s connecting fine to the repository database (on server#1), adding various tables and users as I create them.

I did not install the iAnywhere database or the Windows service when I installed Developer (although I did previously, and was able to checkout and view the sample solutions via the local services just fine), and so I don’t have any solutions in the repository to checkout and I haven’t set up a repository_server connection in Developer (although doing this still didn’t seem to help).

When I try to checkout solutions, I use ‘servoy.ourbusiness’, and the username and password for the administrative user I set up on the Server via the web GUI.

I repeatedly get the message:
Cannot get solutions from: servoy.ourbusiness
Error getting the repository from host servoy.ourbusiness:1099

I get an almost identical message if I create a quick demo sample and try to share it (i.e. try and check it into the repository).

My servoy.application_server.startRepositoryAsTeamProvider is set to true, I’ve turned off SSL on both the Server abd Developer, and matched up all the network settings as much as I can see. I can’t find the ‘compress’ settings at either end.

What am I missing and how do I get this to work?

what is the error in the log file (servoy_log.txt) on the client side ?

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)

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.

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

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

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.

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:

[attachment=0]servoy_error.png[/attachment]

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.(Unknown Source)
at java.net.Socket.(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.

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.

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.

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.