ronancpl / HeavenMS

An improved server based on MapleSolaxia (v83 MapleStory private server)
GNU Affero General Public License v3.0
1.02k stars 732 forks source link

Can't go past character select screen with java 7 #218

Closed Arufonsu closed 6 years ago

Arufonsu commented 6 years ago

no scripts error, no sql errors used the jdk x64 installer provided here. added the (JCE) Unlimited Strength files to the right folders. but not i can't get in the game... no errors in console, just a dc saying already logged in, tried to set logged in to 0 in database, no solution the game was playable with java 8, but after uninstalling it and try the jdk 7 and jces, i can't go past char screen.

same problem from: http://forum.ragezone.com/f566/moopledev-v83-rev-120-unable-1062463/

ronancpl commented 6 years ago

I'm sorry for the inconvenience, but personally I won't look towards Java 8 compatibility. Still, if anyone manages to make Java 8 run smoothly on their side and wants to share their find, I will gladly be accepting a pull request for it.

Arufonsu commented 6 years ago

don't worry! it was my problem if anyone encounters problems... uninstall java 8! it overwrites java 7 even if you have it installed.. now every script seems to load without problems anyways, i can't pass the start game now, im stuck even after copying all the java policy files :(

ronancpl commented 6 years ago

Did you test locally already?

Arufonsu commented 6 years ago

yes, local and public i was running a server public and playing with a friend but when downgrade from java 8 -> java 7 i can go past character select

no scripts error, no sql errors used the jdk x64 installer you provided added the (JCE) Unlimited Strength files to the right folders but not i can't get in the game... no errors in console, just a loop back saying already logged in, tried to set logged in to 0 in database, no solution also there's no loopback adapter on... tried locally, and public (ports are open), im going crazy here lol

i was reading in forums, and im not the only one with this problem on moopledev based sources in v83... probably the wrong JCE files? i can't tell what's wrong. everything was fine with java 8, except for the scripts... it's weird! i have ran maplestory servers before >_<

jaydenseah commented 6 years ago

Have you tried drop SQL and re-extract all SQL again?

lucashenriquebl commented 6 years ago

check ip.

Arufonsu commented 6 years ago

having only java jdk-7u79-windows-x64 installed and the policy files properly placed, also recompiled with netbeans using the core files and java 1.7. then yes, tried with a fresh SQL and the problem persist about it: tried with 127.0.0.1 and a localhost with 127.0.0.1 and the problem persist so is not a ports problem, which should be not because yesterday i was playing with a friend using my wan ip along with nashorn and java 8... im not saying i like java 8 (it has a lot of problems with the scripts so im trying to move back to 7 you see ToT'''...) PD here's an error message i got after leaving the server open for a while: (it's weird, my firewall it's disabled, no antivirus on background and...)

java.io.IOException: Se ha forzado la interrupci¾n de una conexi¾n existente por el host remoto
        at sun.nio.ch.SocketDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(Unknown Source)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
        at sun.nio.ch.IOUtil.read(Unknown Source)
        at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
        at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:273)
        at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:44)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:690)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

which means "The interruption of an existing connection has been forced by the remote host"

also, this is what happens when i try to select a character -first attemp:

Log: sessions.txt
IoSession with /127.0.0.1:53856 opened on 29-06-2018 09:54

-dc:

Log: sessions.txt
IoSession with /127.0.0.1:53891 opened on 29-06-2018 09:55

EDIT: just installed java 8 again, placed the jce 8 files in their folders, and tada everything works fine except for scripts... what's going on? why java 8 allows me to start game and i can't with java 7_79?

so

java 8 = everything OK except for some events/party quests java 7= everything OK (scripts) but you can't "start" game on character selection screen. btw this is windows 10 home, i don't know if that has anything to do with this. but is totally a java 7 problem here, help please! Image and video hosting by TinyPic

ronancpl commented 6 years ago

You should check if there's any references towards other platforms on the system's path or Java's classpath, since those can make the program behave oddly. On a clean environment system there should be no issues like that when opening the server.

Arufonsu commented 6 years ago

close this! tried on a cheap VPS with windows 7 ultimate x64 and everything works smooth 👍 ! might want to add on readme notes: windows 10 and home series might have problems with java 7

ronancpl commented 6 years ago

Hmm, I don't think w10 with Home Basic could be a issue. One of the machines I run the structure runs it finely, using Java 7 by default.