[FIXED] Olympiad: Failed

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
GHBB
Posts: 3
Joined: Sun Jul 18, 2010 2:18 pm

[FIXED] Olympiad: Failed

Post by GHBB » Sun Dec 29, 2019 4:27 am

Hello. in new build i have error in my Centos 7
https://www.l2jserver.com/centos.html

[INFO ] 2019-12-28 23:13:44 Olympiad: Failed to load data from database, trying to load from file.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.l2jserver.gameserver.model.olympiad.Olympiad.getInstance(Olympiad.java:1042)
at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:287)
at com.l2jserver.gameserver.GameServer.main(GameServer.java:449)
Caused by: java.lang.NullPointerException
at com.l2jserver.gameserver.model.olympiad.Olympiad.load(Olympiad.java:203)
at com.l2jserver.gameserver.model.olympiad.Olympiad.<init>(Olympiad.java:174)
at com.l2jserver.gameserver.model.olympiad.Olympiad$SingletonHolder.<clinit>(Olympiad.java:1046)
... 3 more

GHBB
Posts: 3
Joined: Sun Jul 18, 2010 2:18 pm

Re: Olympiad: Failed

Post by GHBB » Sun Dec 29, 2019 7:23 pm

In file Olympiad.java
if (!loaded) {
_log.log(Level.INFO, "Failed to load data from database, trying to load from file.");

//_currentCycle = olympiad().getCurrentCycle();
//_period = olympiad().getPeriod();
//_olympiadEnd = olympiad().getOlympiadEnd();
//_validationEnd = olympiad().getValidationEnd();
//_nextWeeklyChange = olympiad().getNextWeeklyChange();
}
I comment fields. and all work....

[INFO ] 2019-12-29 20:37:02 GameServer: ------------------------------------------------=[ Olympiad ]
[INFO ] 2019-12-29 20:37:02 Olympiad: Failed to load data from database, trying to load from file.
[INFO ] 2019-12-29 20:37:02 Olympiad: Loading Olympiad System....
[INFO ] 2019-12-29 20:37:02 Olympiad: Currently in Olympiad Period
[INFO ] 2019-12-29 20:37:02 Olympiad: 3802 minutes until period ends
[INFO ] 2019-12-29 20:37:02 Olympiad: Next weekly change is in 10079 minutes
[INFO ] 2019-12-29 20:37:02 Olympiad: Loaded 0 Nobles
[INFO ] 2019-12-29 20:37:02 Olympiad: Competition Period Starts in 0 days, 0 hours and 0 mins.
[INFO ] 2019-12-29 20:37:02 Olympiad: Event starts/started : Sun Dec 29 18:00:02 EET 2019
[INFO ] 2019-12-29 20:37:02 Hero: Loaded 0 Heroes.
[INFO ] 2019-12-29 20:37:02 Hero: Loaded 0 all time Heroes.

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6982
Joined: Tue Aug 11, 2009 3:36 am

Re: Olympiad: Failed

Post by Zoey76 » Sun Jan 12, 2020 12:01 am

Using Eclipse 4.16 - OpenJDK14 - MariaDB 10.4 - L2J Server 2.6.2.0

Post Reply