Ошибка запуска gameserver

  • Автор темы Автор темы Grekk
  • Дата начала Дата начала

Grekk

Прославленный
Участник
Старожил I степени
Сообщения
281
Розыгрыши
0
Решения
1
Репутация
85
Реакции
239
Баллы
1 425
Хроники
  1. Interlude
Исходники
Отсутствуют
Сборка
pwsoft
Подскажите в чем может быть проблема не стартует сборка на линуксе, хотя на винде все ок.
Вот sh файл для запуска
#!/bin/sh

# exit codes of GameServer:
# 0 normal shutdown
# 2 reboot attempt

while :; do
[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/z_`date +%Y-%m-%d_%H-%M-%S`_java.log"
[ -f log/stdout.log ] && mv log/stdout.log "log/z_`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
/home/jdk1.8.0_66/bin/java -Duser.timezone="Europe/Moscow" -server -Dfile.encoding=UTF-8 -Xms1024m -Xmx5120m -XX:AutoBoxCacheMax=10000 -XX:+RelaxAccessControlCheck -XX:+UseFastAccessorMethods -XX:+AlwaysPreTouch -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:+ClassUnloading -XX:MaxGCPauseMillis=25 -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=8 -XX:+CMSParallelRemarkEnabled -XX:+UseAdaptiveGCBoundary -XX:MaxTenuringThreshold=6 -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:CompileThreshold=1000 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxNewSize=144m -XX:NewSize=144m -XX:+UseBiasedLocking -cp ./libs/strixplatform-1.0.jar:./libs/commons-dbcp-1.4.jar:./libs/it_evader.jar:./libs/json-simple-1.1.1.jar:./libs/lameguard-1.9.5.null.jar:./libs/ecj.jar:./libs/guava-18.0.jar:./libs/bsf.jar:./libs/jython.jar:./libs/bsh-2.0b4.jar:./libs/java-engine.jar:./libs/c3p0-0.9.1.2.jar:./libs/bonecp-0.8.0.jar:./libs/log4j-1.2.15.jar:./libs/slf4j-api-1.6.3.jar:./libs/slf4j-nop-1.6.3.jar:./libs/javolution-5.5.1.jar:./libs/commons-io-2.6.jar:./libs/commons-logging-1.1.jar:./libs/commons-pool-1.5.4.jar:./libs/commons-lang3-3.3.2.jar:./libs/mysql-connector-java-5.1.35-bin.jar org.strixplatform.StrixPlatform net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done

ошибка
INFO: #Welcome to pwServer.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.strixplatform.StrixPlatform.main(StrixPlatform.java:46)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 14,530 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:389)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1038)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3422)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3322)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3762)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2531)
at com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:4852)
at com.jolbox.bonecp.ConnectionHandle.setAutoCommit(ConnectionHandle.java:1292)
at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:259)
at com.jolbox.bonecp.ConnectionHandle.recreateConnectionHandle(ConnectionHandle.java:281)
at com.jolbox.bonecp.ConnectionHandle.close(ConnectionHandle.java:512)
at net.sf.l2j.L2DatabaseFactory.load(L2DatabaseFactory.java:64)
at net.sf.l2j.L2DatabaseFactory.init(L2DatabaseFactory.java:40)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:582)
... 5 more
Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2914)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3332)
... 18 more
 
дополню вот какие библиотеки есть, подозреваю что какая то библиотека не правильно указана в запуске, но могу ошибаться
 

Вложения

  • libs.webp
    libs.webp
    47,8 КБ · Просмотры: 17
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
 
Connection Pool проверить, возможно логин аллокейтнул слишком много, и гейму просто не осталось.
 
Назад
Сверху Снизу