Jump to content
  • 0

Question

Posted (edited)

Hello everyone,

 

So 10 years ago i have had a project and now because of nostalgic feelings wan't to run server and see how l2j world has been changed since then...

 

Getting back to the topic:

I'm trying to run latest free aCis server but receiving error while running RegisterGameServer (keep in mind that database has been imported smoothly)

 

Here's the error that I'm receiving:

                        aCis gameserver registering
                        ____________________________

OPTIONS : a number : register a server ID, if available and existing on list.
          list : get a list of IDs. A '*' means the id is already used.
          clean : unregister a specified gameserver.
          cleanall : unregister all gameservers.
          exit : exit the program.

Your choice? 1

Exception in thread "main" java.lang.ExceptionInInitializerError
        at net.sf.l2j.L2DatabaseFactory$SingletonHolder.<clinit>(L2DatabaseFacto
ry.java:164)
        at net.sf.l2j.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:32)
        at net.sf.l2j.loginserver.GameServerTable.loadRegisteredGameServers(Game
ServerTable.java:110)
        at net.sf.l2j.loginserver.GameServerTable.<init>(GameServerTable.java:57
)
        at net.sf.l2j.loginserver.GameServerTable$SingletonHolder.<clinit>(GameS
erverTable.java:399)
        at net.sf.l2j.loginserver.GameServerTable.getInstance(GameServerTable.ja
va:391)
        at net.sf.l2j.gsregistering.GameServerRegister.main(GameServerRegister.j
ava:143)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
 Could not create connection to database server.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.Util.getInstance(Util.java:386)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
568)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2304)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:346)
        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManag
erDataSource.java:131)
        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnecti
on(WrapperConnectionPoolDataSource.java:161)
        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnecti
on(WrapperConnectionPoolDataSource.java:147)
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.initializeAu
tomaticTestTable(C3P0PooledConnectionPoolManager.java:987)
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.createPooled
ConnectionPool(C3P0PooledConnectionPoolManager.java:910)
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getPool(C3P0
PooledConnectionPoolManager.java:397)
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getPool(C3P0
PooledConnectionPoolManager.java:414)
        at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(A
bstractPoolBackedDataSource.java:145)
        at net.sf.l2j.L2DatabaseFactory.<init>(L2DatabaseFactory.java:81)
        at net.sf.l2j.L2DatabaseFactory$SingletonHolder.<clinit>(L2DatabaseFacto
ry.java:160)
        ... 6 more
Caused by: java.lang.NullPointerException
        at com.mysql.jdbc.ConnectionImpl.getServerCharacterEncoding(ConnectionIm
pl.java:3279)
        at com.mysql.jdbc.MysqlIO.sendConnectionAttributes(MysqlIO.java:1940)
        at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(My
sqlIO.java:1866)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1252)
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2486)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
519)
        ... 26 more
Press any key to continue . . .

EDIT: sorry forgot to mention machines details:

OS - Windows Server 2012 R2

Java JDK 8

 

Any help will be appreciated.

 

Thank you.

 

Edited by Grosniuhas

6 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, Grosniuhas said:

Could not create connection to database server.

Errors says it all.

  • 0
Posted
8 hours ago, SweeTs said:

Errors says it all.

He felt nostalgia for Lineage 2 so instead of download a system and join a low rate - mid rate he open server to use //gmspeed 3 :kappa:

 

Ontopic: You didn't install database or your db settings are wrong.

  • 0
Posted
9 hours ago, SweeTs said:

Errors says it all.

Thank you SweeTs, have missed that - Top man!

 

38 minutes ago, Kara` said:

He felt nostalgia for Lineage 2 so instead of download a system and join a low rate - mid rate he open server to use //gmspeed 3 :kappa:

  

Ontopic: You didn't install database or your db settings are wrong.

I made it clear that i wan't to check how L2j has changed not L2 in general.

All database tables are in - checked...

  • 0
Posted (edited)

It's definitively a miss on connection parameters (if you successfully added tables). Check your LS and GS configs regarding it. Db name, user and password must be correct.

 

Caused by: java.lang.NullPointerException
        at com.mysql.jdbc.ConnectionImpl.getServerCharacterEncoding(ConnectionIm
pl.java:3279)

You probably used exotic charset. Try to use regular alphanumerical stuff.

Edited by Tryskell
  • 0
Posted
7 hours ago, Tryskell said:

It's definitively a miss on connection parameters (if you successfully added tables). Check your LS and GS configs regarding it. Db name, user and password must be correct.

 


Caused by: java.lang.NullPointerException
        at com.mysql.jdbc.ConnectionImpl.getServerCharacterEncoding(ConnectionIm
pl.java:3279)

You probably used exotic charset. Try to use regular alphanumerical stuff.

 

Thank you for your replay!

 

So i have fixed it by doing everything from scratched as i could't identify problem(everything seemed to be as it should) only this time i have done few things differently:

*Used older version of MySQL server(previously used newest, now 5.7)

*Used other version of Eclipse

*Used older version of SVN

*Used database name acis(previously l2jdb - even thought i have changed it everywhere on previous installation)

*Used simple password for database "example"(Previously used "ExampeExample123)

 

So as i said previously i don't know what caused problem even you have identified and suggested fix for the error. I can only guess that database name for some reason has caused the problem as well as it's password - maybe.

 

Anyway - thank you a lot for your time and suggestions/solutions! Much appreciated!

 

Guest
This topic is now closed to further replies.


  • Posts

    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • L2REBORN x10  l2reborn x1   LU4 MASTERWORRK BOHPTS - TOP PRICE discord - adver745645
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock