Page 1 of 1

The problem with Java

Posted: Wed Apr 11, 2012 11:15 pm
by Plus
L2J Revision Number: 5201
L2JDP Revision Number: 8696

All the good time of day, starting with the audit server, which I pointed out above, when you try to run registergameserver.exe & bat, I get an error, which I had never experienced what could be the problem tell me!

Text the Error:

Code: Select all

 Error: There was an error while attempting to retrieve the list of currently registered GameServers.Reason: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.Exception in thread "main" java.lang.NullPointerException        at com.l2jserver.tools.gsregistering.GameServerRegister.<init>(GameServerRegister.java:46)        at com.l2jserver.tools.gsregistering.BaseGameServerRegister.startCMD(BaseGameServerRegister.java:279)        at com.l2jserver.tools.gsregistering.BaseGameServerRegister.main(BaseGameServerRegister.java:187) 

Re: The problem with Java

Posted: Thu Apr 12, 2012 12:41 am
by tukune
Run mysql server.
Setup loginserver.properties

Re: The problem with Java

Posted: Thu Apr 12, 2012 10:40 am
by Plus
IamOR wrote:Run mysql server.
Setup loginserver.properties
The fact that you wrote this of course meet the following, poprobyval Myskl replace the current server, the result of the former, does not run.

There is some suggestion from anyone? Thank you in advance.

Re: The problem with Java

Posted: Thu Apr 12, 2012 5:22 pm
by MELERIX
no, is just that in order to use "RegisterGameserver", first you have to add proper MySQL info (user and password) in login.properties.

Re: The problem with Java

Posted: Fri Apr 13, 2012 4:46 am
by Plus
All configuration files contain private information onto to connect to the database, but even under this condition there is the old bug, checked whether the files are not blocked by the server and so on. The older building servers that work has started on the Java 6, and now the new is not wanted.
A sample configuration as those of:

Code: Select all

 # ---------------------------------------------------------------------------# Database# ---------------------------------------------------------------------------# Specify the appropriate driver and url for the database you're using.# Examples:# Driver = com.mysql.jdbc.Driver (default)# Driver = org.hsqldb.jdbcDriver# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriverDriver = com.mysql.jdbc.Driver # Database URL# URL = jdbc:mysql://localhost/l2jls (default)# URL = jdbc:hsqldb:hsql://localhost/l2jls# URL = jdbc:sqlserver://localhost/database = l2jls/user = sa/password =URL = jdbc:mysql://localhost/l2jls # Database user info (default is "root" but it's not recommended)Login = l2jserver # Database connection passwordPassword = l2jserver_67Ghs8JH79 # Default: 10MaximumDbConnections = 10 # Default: 0MaximumDbIdleTime = 0 

Re: The problem with Java

Posted: Fri Apr 13, 2012 5:02 am
by MELERIX
we use Java 7 now.

Re: The problem with Java

Posted: Fri Apr 13, 2012 3:02 pm
by Plus
Now I have a server installed Java 7.
In general, the problem is still relevant.