- edited description
[UNIX] mdkt.compiler : Unable to compile the source
- OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)
- Description: Ubuntu 18.04.1 LTS
[16/10 10:53:36] Error executing script!
org.mdkt.compiler.CompilationException: Unable to compile the source
[kind=ERROR, line=23, message=package com.l2jserver.gameserver.handler does not exist]
[kind=ERROR, line=24, message=package com.l2jserver.gameserver.model.effects does not exist]
[kind=ERROR, line=26, message=package handlers.effecthandlers.consume does not exist]
[kind=ERROR, line=32, message=package handlers.effecthandlers.custom does not exist]
[kind=ERROR, line=50, message=package handlers.effecthandlers.instant does not exist]
at org.mdkt.compiler.InMemoryJavaCompiler.compileAll(InMemoryJavaCompiler.java:106)
at org.mdkt.compiler.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:126)
at com.l2jserver.gameserver.scripting.ScriptEngineManager.compileScript(ScriptEngineManager.java:179)
at com.l2jserver.gameserver.scripting.ScriptEngineManager.executeScript(ScriptEngineManager.java:190)
at com.l2jserver.gameserver.scripting.ScriptEngineManager.executeScript(ScriptEngineManager.java:197)
at com.l2jserver.gameserver.handler.EffectHandler.executeScript(EffectHandler.java:65)
at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:197)
at com.l2jserver.gameserver.GameServer.main(GameServer.java:460)
Exception in thread "main" java.lang.NullPointerException
at com.l2jserver.gameserver.scripting.ScriptEngineManager.runMain(ScriptEngineManager.java:233)
at com.l2jserver.gameserver.scripting.ScriptEngineManager.executeScript(ScriptEngineManager.java:192)
at com.l2jserver.gameserver.scripting.ScriptEngineManager.executeScript(ScriptEngineManager.java:197)
at com.l2jserver.gameserver.handler.EffectHandler.executeScript(EffectHandler.java:65)
at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:197)
at com.l2jserver.gameserver.GameServer.main(GameServer.java:460)
Comments (17)
-
reporter -
reporter - edited description
-
-
reporter why u use windows for server? omg..
java -version
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)
all works, but server not loads. Maybe you'll be stopping to write bugs in core? Because I don't understand what I must to do in this situation, you don't provide any of standards, and I can't understand how it works. With servers I work in unix only, so you can take a little advice to me how I can fix this err. Or remove out this InMemoryJavaCompiler sht..
-
reporter CostanzoPablo NA, you solve for WinOS. I use another type of OS, unix
-
reporter - changed title to [UNIX] mdkt.compiler : Unable to compile the source
-
Yes, I can confirm that in Linux I have the same problem
-
I have the same problem. Windows 2012 R2, Java 10.0.2
-
on windows view that.. working...
https://bitbucket.org/l2jserver/l2j_server/issues/283/npe-error-executing-script-in-gamesever
-
- MYSQL Ver: mysql Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using EditLine wrapper
- JAVA Ver:openjdk version "10.0.2" 2018-07-17
- OS: Ubuntu
- L2J Server: Latest
Login works fine as shown below
lineage2@coeus:~/server/login$ java -Xms128m -Xmx256m -jar l2jlogin.jar [03/11 02:36:24] Using HikariCP connection pool. [03/11 02:36:24] Loading LoginController... [03/11 02:36:24] Cached 10 KeyPairs for RSA communication [03/11 02:36:24] Stored 20 keys for Blowfish communication [03/11 02:36:24] GameServerTable: Loaded 127 server names. [03/11 02:36:24] HikariPool-1 - Starting... [03/11 02:36:24] HikariPool-1 - Start completed. [03/11 02:36:24] GameServerTable: Loaded 0 registered Game Servers. [03/11 02:36:24] GameServerTable: Cached 10 RSA keys for Game Server communication. [03/11 02:36:24] Loaded 2 IP Bans. [03/11 02:36:24] Listening for GameServers on 127.0.0.1:9014 [03/11 02:36:24] Telnet server is currently disabled. [03/11 02:36:24] L2LoginServer: is now listening on: *:2106 [03/11 02:36:24] Looking for UPnP Gateway Devices... [03/11 02:36:33] No UPnP gateways found. ^Clineage2@coeus:~/server/login$
But Game does not
lineage2@coeus:~/server/game$ java -Xms512m -Xmx2g -jar l2jserver.jar Nov 03, 2018 2:37:00 AM com.l2jserver.gameserver.GameServer printSection INFO: -----------------------------------=[ Network Configuration ] Nov 03, 2018 2:37:00 AM com.l2jserver.Config$IPConfigData load INFO: Using automatic network configuration. Nov 03, 2018 2:37:00 AM com.l2jserver.Config$IPConfigData autoIpConfig INFO: Adding new subnet: 192.168.1.0/24 address: 192.168.1.132 Nov 03, 2018 2:37:00 AM com.l2jserver.Config$IPConfigData autoIpConfig INFO: Adding new subnet: 127.0.0.0/8 address: 127.0.0.1 Nov 03, 2018 2:37:00 AM com.l2jserver.Config$IPConfigData autoIpConfig INFO: Adding new subnet: 0.0.0.0/0 address: x.x.x.x Nov 03, 2018 2:37:00 AM com.l2jserver.Config load WARNING: Could not load HexID file (./config/hexid.txt). Hopefully login will give us one. Nov 03, 2018 2:37:00 AM com.l2jserver.Config load INFO: Loaded 6 filter words. [03/11 02:37:00] ------------------------------------------------=[ Database ] [03/11 02:37:00] Using MySQL DAO Factory. [03/11 02:37:00] Using HikariCP connection pool. [03/11 02:37:00] GameServer: Used memory: 12MB. [03/11 02:37:00] HikariPool-1 - Starting... [03/11 02:37:01] HikariPool-1 - Start completed. [03/11 02:37:01] Updated characters online status. [03/11 02:37:01] Cleaned 0 elements from database in 0 s [03/11 02:37:01] Cleaned 0 expired timestamps from database. [03/11 02:37:01] BitSetIDFactory: 102912 id's available. [03/11 02:37:01] ---------------------------------------------------=[ World ] [03/11 02:37:01] InstanceManager: Multiverse Instance created. [03/11 02:37:01] InstanceManager: Universe Instance created. [03/11 02:37:01] InstanceManager: Loaded 160 instance names. [03/11 02:37:01] L2World: (128 by 136) World Region Grid set up. [03/11 02:37:01] MapRegionManager: Loaded 57 map regions. [03/11 02:37:01] GlobalVariablesManager: Loaded 0 variables. [03/11 02:37:01] ----------------------------------------------------=[ Data ] [03/11 02:37:01] CategoryData: Loaded 124 Categories. [03/11 02:37:01] SecondaryAuthData: Loaded 328 forbidden passwords. [03/11 02:37:01] -------------------------------------------------=[ Effects ] [03/11 02:37:02] Error executing script! org.mdkt.compiler.CompilationException: Unable to compile the source [kind=ERROR, line=23, message=package com.l2jserver.gameserver.handler does not exist] [kind=ERROR, line=24, message=package com.l2jserver.gameserver.model.effects does not exist] [kind=ERROR, line=26, message=package handlers.effecthandlers.consume does not exist] [kind=ERROR, line=27, message=package handlers.effecthandlers.consume does not exist]
-
any solution for this on Linux?
never mind... it turned out i was on develop branch... maybe on master ill have luck... and it will finally start on ubuntu.
-
Same here on ubuntu. Java home:
echo $JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
-
I found the problem source. They are using semicolon ";" classpath delimiter instead of ":". Need to fix com.l2jserver.gameserver.scripting.ScriptEngineManager, that line: https://bitbucket.org/l2jserver/l2j_server/src/0ac4798f7ff255722115defef24b73e2d5522765/src/main/java/com/l2jserver/gameserver/scripting/ScriptEngineManager.java?at=develop&fileviewer=file-view-default#ScriptEngineManager.java-54 I'm not a Java genius, so I just fixed only at my server. Hope someone can fix it in repository.
-
Fixed, pls merge this pull request)
-
-
- changed status to resolved
-
- changed status to closed
- Log in to comment