- Joined
- Apr 29, 2008
- Messages
- 1,297
- Reaction score
- 509
Commonly faced problems.
Please do note, these errors are at the top of the errors that you see in your ChannelServer and/or WorldServer or LoginServer.
NOTE : If possible, please do try to avoid using launchers and launch the server files one by one.
Program to check for errors during startup
Errors when starting server
This means that you have an event script that doesn't exist or is empty and/or doesn't work. Players can still play normally though.
Solution : Either remove the script, or fix it.
This means that either you're opening the batch files too fast or the IP settings for your login server and channel server is wrong.
Solution : Wait for 15 seconds before starting the next batch and see if the error still occurs. If it does, please check the login server as well as the channel server's configuration.
It means you're using an outdated or incompatible version of mina-core.jar.
Solution : Replace all the mina-core.jar with the one in your source. If you have it in your java/jre/lib/ext folders, replace it there as well.
Solutionlace them in the correct directories...
Follow this too...Java SE 7 use Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7
Java SE 6 use Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6
It means, you did not place your JCE folders in the correct places.
Solution : Download the JCE files, through
C:\Program Files\Java\jdk<version>\jre\lib\security\
AND
C:\Program Files\Java\jre<version>\lib\security\
This means that your database settings is not correct.
Solution : Please check that the database exist and is using the correct port.
This means that the port is already in use
Solution : Close all your batch files and try again. If the problem persists, restart your computer. If the problem is still there, close all other applications.
Pretty much what it says. It means your WZ files are missing / invalid
Solution : Make a folder called "wz" without the " in where you start your server, then place the WZ files from your MapleStory folder or the XML WZ files into that folder.
Unregistered ID or Cannot create character or login button stuck.
or
It means, that there is a missing column in one of the tables.
Solution : If you're getting "Unregistered ID", execute this query
If you're unable to make a character and that error pops out, execute this :
You would need to change xxxx to the missing column name which is shown in the batch files.
TYPE would be either integer or text. These are the most common types, and you should try to see which one the column is.
Client closes
The map you were in has crashed, or you were disconnected by a malicious program (hack).
Solution: Just log back in, if it happens again, you'll have to change your map in the SQL.
There's an invalid object that isn't in your WZ file.
Solution: If you're getting that error, please try to use clean WZ files, for both your server and yourself.
You have an invalid packet or opcode.
Solution : Revert what you changed, or if it's already in the source, try making a thread.
Stuck at character selection screen then brings you to the login screen.
Other people get "Unable to connect to game server" but I can login just fine!
People can't get pass character selection screen but I can!
I compiled but there's no changes?!
Ports to forward
Which VPS is the best?
Changing the starting map
Why mobs are not moving
Java is not recognized as an internal or external command
java.io.IOException: An existing connection was forcibly closed by the remote host
That would be all the commonly faced problems / errors by most people who starts a server. Any other problems / suggestions will be added upon request or when I'm free.
IMPORTANT NOTE : Please do provide more information in your help thread when making one and provide screenshots of your batch files.
Also, any threads, which contains one of the above mentioned problems but didn't try any of the solutions, your thread will be deleted.
Please do note, these errors are at the top of the errors that you see in your ChannelServer and/or WorldServer or LoginServer.
NOTE : If possible, please do try to avoid using launchers and launch the server files one by one.
Program to check for errors during startup
Original Link
Xerixe said:Just figured I made something for all the people who're facing troubles starting their server.
This is only for common issues such as JCE files not placed, MySQL settings, port in used and whether or not the source (compiled jar file) in the extension folder. It also checks whether or not MySQL is running.
Note : This does not guarantee that you will not face any errors. This is only used to detect common errors / mistakes done while setting up a server.
Anyway, it's pretty self explanatory, just press Start to start the check and click Settings to modify the MySQL settings.
If you have any suggestions, feel free to tell me and I'll try to add it in.
Also, it'd be great if you can suggest a name for it. I couldn't think of any / something to describe what it does.
P/S : I couldn't test the part where it checks if MySQL is running or not. Since MySQL doesn't want to stop for me. I tried stopping service via MySQL Admin / Task Manager, doesn't work. But everything else should work fine tho.
Updates :
v1.1 - It now shows your WAN IP.
v1.2 - Fixed checking whether or not MySQL is running ( Localhost only )
P/s: Attachments are reuploaded for every update.
Errors when starting server
Code:
java.lang.NullPointerException
at scripting.event.EventScriptManager.init(EventScriptManager.java:xx)
at net.channel.ChannelServer.run(ChannelServer.java:xxx)
at net.channel.ChannelServer.main(ChannelServer.java:xxx)
This means that you have an event script that doesn't exist or is empty and/or doesn't work. Players can still play normally though.
Solution : Either remove the script, or fix it.
Code:
Exception in thread "main" java.lang.RuntimeException: Could not connect to worl
d server.
This means that either you're opening the batch files too fast or the IP settings for your login server and channel server is wrong.
Solution : Wait for 15 seconds before starting the next batch and see if the error still occurs. If it does, please check the login server as well as the channel server's configuration.
Code:
Exception in thread "pool-1-thread-1" java.lang.IncompatibleClassChangeError: Cl
butt org.apache.mina.filter.codec.ProtocolCodecFilter does not implement the requ
ested interface org.apache.mina.core.filterchain.IoFilter
It means you're using an outdated or incompatible version of mina-core.jar.
Solution : Replace all the mina-core.jar with the one in your source. If you have it in your java/jre/lib/ext folders, replace it there as well.
Code:
The Jurisdiction policy files are not signed by a trust signer
Code:
C:\Program Files\Java\jre6\lib
C:\Program Files\Java\jre6\lib\ext\
C:\Program Files\Java\jre6\lib\security\
C:\Program Files\Java\jdk YOURVERSION\lib
C:\Program Files\Java\jdk YOURVERSION\jre\lib\ext\
C:\Program Files\Java\jdk YOURVERSION\jre\lib\security
Java SE 6 use Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6
Code:
org.apache.mina.filter.codec.ProtocolDecoderException : java.lang.IllegalStateException : Ciper not initialized
It means, you did not place your JCE folders in the correct places.
Solution : Download the JCE files, through
You must be registered to see links
. Then copy it to :C:\Program Files\Java\jdk<version>\jre\lib\security\
AND
C:\Program Files\Java\jre<version>\lib\security\
Code:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientC onnectionException: Could not
create connection to database server. Attempted reconnect 3 times. Giving up.
This means that your database settings is not correct.
Solution : Please check that the database exist and is using the correct port.
Code:
java.rmi.server.ExportException :
Port already in use: 1099; nested exception
This means that the port is already in use
Solution : Close all your batch files and try again. If the problem persists, restart your computer. If the problem is still there, close all other applications.
Code:
Loading WZ file failed
Pretty much what it says. It means your WZ files are missing / invalid
Solution : Make a folder called "wz" without the " in where you start your server, then place the WZ files from your MapleStory folder or the XML WZ files into that folder.
Unregistered ID or Cannot create character or login button stuck.
Code:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'xxxx' in 'field list'
Code:
java.sql.SQLException: Column 'xxxx' not found.
It means, that there is a missing column in one of the tables.
Solution : If you're getting "Unregistered ID", execute this query
Code:
ALTER TABLE `accounts` ADD COLUMN `xxxx` TYPE default '';
If you're unable to make a character and that error pops out, execute this :
Code:
ALTER TABLE `characters` ADD COLUMN `xxxx` TYPE default '';
You would need to change xxxx to the missing column name which is shown in the batch files.
TYPE would be either integer or text. These are the most common types, and you should try to see which one the column is.
Client closes
Code:
Error Code -2147483648
Solution: Just log back in, if it happens again, you'll have to change your map in the SQL.
Code:
Error code -2147287038 (Unknown error 0x80030002)
Solution: If you're getting that error, please try to use clean WZ files, for both your server and yourself.
Code:
Error Code : 38
Solution : Revert what you changed, or if it's already in the source, try making a thread.
Stuck at character selection screen then brings you to the login screen.
If other people can play, but you cant, please install Microsoft Loopback Adaptor.
Windows Vista / 7 : Click here
Windows XP : Click here
Windows Vista / 7 : Click here
Windows XP : Click here
Other people get "Unable to connect to game server" but I can login just fine!
This means that you have not port-forwarded properly or your windows firewall is blocking the ports
Solution : Find a proper guide to port-forward and also try disabling your firewall.
Solution : Find a proper guide to port-forward and also try disabling your firewall.
People can't get pass character selection screen but I can!
This means that your settings and/or your ports aren't forwarded. To test if your ports are forwarded, ask your friends to try this site : http://<yourip>:7575
Solution : If it pops out a download, it means your ports are forwared. Make sure the IP set in ServerConstants.java or world.properties is not 127.0.0.1 / localhost but instead, your WAN IP. If it doesn't pop out a download, it's your ports / firewall.
Solution : If it pops out a download, it means your ports are forwared. Make sure the IP set in ServerConstants.java or world.properties is not 127.0.0.1 / localhost but instead, your WAN IP. If it doesn't pop out a download, it's your ports / firewall.
I compiled but there's no changes?!
This means that there's conflicting files in the java ext folders.
Solution : Navigate to your java folders. It's located in
Find all the compiled server files in there, example : MoopleDEV.jar, MapleBlade.jar, OdinMS.jar and etc. Delete all of them.
Important note :Do NOT place any of the compiled server files in these folders anymore. It is totally unnecessary as well as a waste of time.
Do not delete mina-core, mysql-connector, slf4j<something>.jar. Keep them in there.
Solution : Navigate to your java folders. It's located in
Code:
jdk<version>\jre\lib\ext
jre<version>\lib\ext
Important note :Do NOT place any of the compiled server files in these folders anymore. It is totally unnecessary as well as a waste of time.
Do not delete mina-core, mysql-connector, slf4j<something>.jar. Keep them in there.
Ports to forward
There has been many mistakes regarding the ports that should be forwarded.
Ports that should be forwarded :
Ports that should be forwarded :
Code:
7575 ~ 7594 - Yes, 7575,7576 until 7594. This is for the 20 channels.
8484 - Login Server
80 - Web server. Unless the port for your web server has been changed manually, it will be port 80.
Which VPS is the best?
Changing the starting map
In MapleCharacter, saveToDB()
Find
Under it, you will seePHP:if (map == null) {
Change 0, to the mapid.PHP:ps.setInt(20, 0);
loadCharFromDB
find
under it, something likePHP:if (ret.map == null) {
Change 0 to map.PHP:ret.map = mapFactory.getMap(0);
Why mobs are not moving
You are most likely in Hide.
Solution: Look in the top right corner of your screen where your skills are. Right click the skill that looks like Dark Sight. Attack a few mobs or use !killall (if you have it) and the mobs that died will start moving again.
Solution: Look in the top right corner of your screen where your skills are. Right click the skill that looks like Dark Sight. Attack a few mobs or use !killall (if you have it) and the mobs that died will start moving again.
Java is not recognized as an internal or external command
java.io.IOException: An existing connection was forcibly closed by the remote host
This means that the client closed unexpectedly. There is several causes for this. One, the client closed via [ ALT + F4, Task Manager ] < Unsure. Client closed due to packet error, client closed due to invalid WZ file ( e.g. : non-existent hair )
Solution : Firstly, you have to figure out what the cause is. However, though this error will show and will not actually show what caused it, you can remove it by adding
Below
in MapleServerHandler.java
Solution : Firstly, you have to figure out what the cause is. However, though this error will show and will not actually show what caused it, you can remove it by adding
Code:
if (cause.toString().contains("IOException")) return;
Code:
public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
That would be all the commonly faced problems / errors by most people who starts a server. Any other problems / suggestions will be added upon request or when I'm free.
IMPORTANT NOTE : Please do provide more information in your help thread when making one and provide screenshots of your batch files.
Also, any threads, which contains one of the above mentioned problems but didn't try any of the solutions, your thread will be deleted.
Last edited by a moderator: