Can't checkout solutions

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

Can't checkout solutions

Postby Foobrother » Mon Jul 06, 2009 2:06 pm

Hi everybody,

I'm trying to checkout the solutions from a remote server.
I entered:
- myServer:8080 as Server Address
- Administration page login as User
- Administration page password as Password

I've pressed Next. It says "Loading Solutions". And after 20-30sec I get an error saying: "Cannot get solutions from myServer:8080. Error getting the repository from host myServer:8080"

I've tried with the database port instead of 8080: not working either.
I've tried with the login/pwd of the database: not working
I've checked if the database was On and if there was a solution in the repository: everything is ok
I've tried with myServer instead of myServer:8080: can't connect to the server
I've double-checked the login/pwd of the administration page: they are ok

Do I do something wrong?
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't checkout solutions

Postby ROCLASI » Mon Jul 06, 2009 3:37 pm

Hi FooBrother,

You need to connect to myServer:8080, so you did that right.
Also you need to have access to the RMI port (usually 1099). See if that is blocked somewhere in your firewall settings.
And to be able to checkout solutions from your Servoy server you need to have servoy.application_server.startRepositoryAsTeamProvider set to true in the servoy-admin pages.

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: Can't checkout solutions

Postby lvostinar » Mon Jul 06, 2009 4:40 pm

Maybe there is a more explicit error in the log (with stack trace)?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: Can't checkout solutions

Postby Foobrother » Mon Jul 06, 2009 5:14 pm

Actually I forgot to put TeamProvider to True. However nothing changed.
I have set the it to true, then saved and restarted the server. I've also restart my developer. But nothing changed.

For RMI port, I can connect to other solutions on another server with my computer and the myServer also hosted solutions before and I have not changed its network settings since this period. :x

Here is the error I get in the log when I try to checkout:
Code: Select all
2009-07-06 16:21:01,455 ERROR [Worker-4] com.servoy.j2db.util.Debug - Error getting the repository from host AG-Dev:8080
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


EDIT: I can run also run the solution that I want to checkout from the server, on my computer (where I run developer)
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't checkout solutions

Postby Foobrother » Tue Jul 07, 2009 11:11 am

I've tried with the firewall, of both my computer and the server, OFF. But no change :(
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't checkout solutions

Postby Gabi Boros » Tue Jul 07, 2009 11:31 am

you need :
- servoy.application_server.startRepositoryAsTeamProvider set to true
- connect to myServer[:rmi_port] where rmi_port is the server rmi port , if not specified, 1099 is used
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Can't checkout solutions

Postby ROCLASI » Tue Jul 07, 2009 11:34 am

Gabi Boros wrote: - connect to myServer[:rmi_port] where rmi_port is the server rmi port , if not specified, 1099 is used

Ah! That's what's wrong. So don't use 8080.
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: Can't checkout solutions

Postby Foobrother » Tue Jul 07, 2009 4:03 pm

Works now!

Thx :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't checkout solutions

Postby Foobrother » Fri Jul 10, 2009 5:07 pm

Another question.

And if Developer is running on the server?
I have tried:
Code: Select all
localhost
serverUserName
serverPwd

localhost:1099
serverUserName
serverPwd

localhost
dbUserName
dbPwd

localhost:5432 (db is PostgreSQL)
dbUserName
dbPwd

Always get the same message:
Application Server does not accept client connections

But the server is working normally and I can connect to the solution. Ports used are 8080 for web and 1099 for smart
Also, do I have to have the Server ON or OFF to be able to checkout? I assume ON but need a confirmation.
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't checkout solutions

Postby Foobrother » Mon Jul 13, 2009 12:55 pm

I don't understand.

On another server with the same DBMS and configured the same way I use:
Code: Select all
localhost
dbLogin
dbPwd
and it works perfectly.

But on this server it is not working. TeamProvider is ON, and the login/pwd are correct. I don't understand
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't checkout solutions

Postby Foobrother » Mon Jul 13, 2009 1:10 pm

SOLVED!

Interesting, I had to put the domain name of the server instead of localhost and my servoy administration login/pwd :roll:
Could someone explain me when you have to put your db account details and when you have to put your servoy administration account details to checkout? It's not clear for me :shock:
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't checkout solutions

Postby Foobrother » Tue Jul 14, 2009 6:12 pm

I'm getting crazy with this checkouts!! :evil:

This time my details seem to be accepted when I checkout. I select the solution's HEAD and click "Finish". Then an error message says that the "User Login or Password is wrong"! :shock:
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't checkout solutions

Postby Gabi Boros » Wed Jul 15, 2009 9:26 am

hi,

when connection to a Servoy team server you need to
enter the followings :

server_address[:server_rmi_port] ,where <server_address> is the name or ip of
the Servoy team server, and <server_rmi_port> is the "servoy.rmiStartPort" property of
the team server (default is 1099)

and

user, password , of an existing user from the Servoy team server.

there is a special case if you are using "localhost" as server_address; in this case
you will connect to the Servoy team server started by the developer, and you will not
need to enter a user/password
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Can't checkout solutions

Postby Foobrother » Wed Jul 15, 2009 9:54 am

Apparently there is something wrong. I've tried that first:
Code: Select all
Server: AG-DEV:1099
Server Login
Server Pwd

Result: I can select the solution's HEAD but when I click "Finish" I get this error
Cannot Checkout 'mySolution'
: is an invalid character in resource name 'servoy_AG-DEV:1099_resources'


So I've tried:
Code: Select all
Server: AG-DEV
Server Login
Server Pwd

Result: I can select the solution's HEAD but when I click "Finish" I get this error
Cannot Checkout 'mySolution'
Invalid Username or Password


However I can access the admin page of the server with exactly the same username and password.

:roll:
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't checkout solutions

Postby Gabi Boros » Wed Jul 15, 2009 10:55 am

can you check if you have this problems if you
checkout into a clean workspace, and without using the port in the server name ?
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Next

Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 5 guests