Jump to content
  • 0

[Help] Error While Restoring Clans!


Question

Posted (edited)

Hello everybody !

 

After every server restart clans can't be restored.

The error is :

 

Error while restoring clan : java.lang.NullPointerException

(This error is repeated for every clan)

the next line is :

Restored 8 clans from database

clan exists in clan_data but is like there is not!

 

It comes from net.sf.l2j.gameserver.model.L2Clan.java and the file is 100% unmodified!

I am sure I was using this pack in the past without problems. Now I just re-compiled the source!

 

I was thinking if it's the problem comes from jdk version but I tried to run the server and compile the source with jdk6 , jdk7 and jdk8

 

Any idea? thank you in advance

Edited by Spidey*

8 answers to this question

Recommended Posts

  • 0
Posted

Check log folder for detailed info about the npe. Then check that file and provide the line. And whats the pack.

  • 0
Posted

the error is not saved in the error log.

just another one coming from clans

 

 

java.lang.NullPointerException
    at net.sf.l2j.gameserver.model.L2Clan.setLevel(L2Clan.java:805)
    at net.sf.l2j.gameserver.model.L2Clan.changeLevel(L2Clan.java:2385)
    at net.sf.l2j.gameserver.model.L2Clan.levelUpClan(L2Clan.java:2359)
    at net.sf.l2j.gameserver.model.actor.instance.L2VillageMasterInstance.onBypassFeedback(L2VillageMasterInstance.java:155)
    at net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:350)
    at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:82)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
7 Ìáú 2015 2:52:25 ìì net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer runImpl

pack is old based in L2jteon as far I remember

  • 0
Posted

 

  
public void setLevel(int level)
    {
        _level = level;
        if(_forum == null)
        {
            if(_level >= 2)
            {
                _forum = ForumsBBSManager.getInstance().getForumByName("ClanRoot").getChildByName(_name);
                if(_forum == null) // Line 806
                {
                    _forum = ForumsBBSManager.getInstance().createNewForum(_name,ForumsBBSManager.getInstance().getForumByName("ClanRoot"),Forum.CLAN,Forum.CLANMEMBERONLY,getClanId());
                }
            }
        }
    }
I see it's ok ( I never modified this file , and it was working fine)
  • 0
Posted

sorry for double post .

I tried //pledge setlevel 1 and it works fine

//pledge setlevel 2-5 is not!

 

java.lang.NullPointerException
        at net.sf.l2j.gameserver.model.L2Clan.setLevel(L2Clan.java:805)
        at net.sf.l2j.gameserver.model.L2Clan.changeLevel(L2Clan.java:2385)
        at net.sf.l2j.gameserver.handler.admincommandhandlers.AdminPledge.useAd
minCommand(AdminPledge.java:120)
        at net.sf.l2j.gameserver.network.clientpackets.SendBypassBuildCmd.runIm
pl(SendBypassBuildCmd.java:68)
        at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L
2GameClientPacket.java:82)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
  • 0
Posted (edited)

Put this

                if(_forum == null) // Line 806
                {
                    _forum = ForumsBBSManager.getInstance().createNewForum(_name,ForumsBBSManager.getInstance().getForumByName("ClanRoot"),Forum.CLAN,Forum.CLANMEMBERONLY,getClanId());
                }

Under if (_forum != null)

            if (_forum != null)
            {
                if(_forum == null) // Line 806
                {
                    _forum = ForumsBBSManager.getInstance().createNewForum(_name,ForumsBBSManager.getInstance().getForumByName("ClanRoot"),Forum.CLAN,Forum.CLANMEMBERONLY,getClanId());
                }
            }

Or simply use (fix errors if any) this one

    public void setLevel(int level)
    {
        _level = level;
        
        if (_level >= 2 && _forum == null)
        {
            final Forum forum = ForumsBBSManager.getInstance().getForumByName("ClanRoot");
            if (forum != null)
            {
                _forum = forum.getChildByName(_name);
                if (_forum == null)
                    _forum = ForumsBBSManager.getInstance().createNewForum(_name, ForumsBBSManager.getInstance().getForumByName("ClanRoot"), Forum.CLAN, Forum.CLANMEMBERONLY, _clanId);
            }
        }
    }
Edited by SweeTs
Guest
This topic is now closed to further replies.


  • Posts

    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • Ave is trustworthy,fast  and reliable.His work is amazing!100% satisfied with his services!
    • SMMTOOL.ORG ТВОЙ ПРЯМОЙ ПОСТАВЩИК TG/YouTube/MAX ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ПОЧЕМУ МЫ? • Свой софт — работаем без посредников и переплат. • Скорость до 50.000.000 в сутки. • Минимальный **** — всего ~5%. ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Услуги Telegram ПРАЙС-ЛИСТ (ЗА 1000 ЕД.) ПОДПИСЧИКИ (LIFETIME) ➥ 1.2$ — RU База ➥ 1.2$ — Китай База ➥ 1$ — Ultra Fast Группа (~80₽) ➥ 1$ — Ultra Fast (~80₽) ➥ 0.99$ — Super Fast (~80₽) ➥ 0.8$ — Fast (~64₽) ➥ 0.55$ — Normal (~40₽) ➥ 0.44$ — 100K+ Only (~35₽) ПОДПИСЧИКИ (Дневные) ➥ 0.7$ — 60 дней РУ (~55₽) ➥ 0.5$ — 30 Дней РУ (~40₽) ➥ 0.7$ — 60 Дней Китай (~55₽) ➥ 0.5$ — 60 Дней Китай (~40₽) ОПТИМИЗАЦИЯ КАНАЛОВ И БОТОВ ➥ 1.5$ — Подписчики из Поиска Китай (~120₽) ➥ 1.5$ — Подписчики из Поиска РУ База (~120₽) ➥ 1$ — Подписчики из Поиска МИКС (~₽80) ➥ 0.8$ — Бот Старты из Поиска (~64₽) АКТИВНОСТЬ И БОТЫ ➥ 0.7$ — Реакции на Комменты (Позитивные) + Подписчики (Бонус) ➥ 0.7$ — Реакции на Комменты (Негативные) + Подписчики (Бонус) ➥ 0.08$ — Просмотры постов ➥ 0.08$ — Реакции (Любые) ➥ 0.18$ — Запуски ботов МИКС ➥ 0.4$ — Запуски ботов РУ ➥ 0.4$ — Запуски ботов Китай ➥ 0.18$ — Запуски ботов + сообщение (/settings) ➥ 0.5$ — Рефералы в боты ➥ 0.3$ — Репост Истории + просмотр ➥ 0.3$ — Лайк Истории + просмотр Услуги YouTube АКТИВНОСТЬ ➥ 8$ — Кастомные Комментарии Живые Юзеры ➥ 15$ — Кастом Позитивные Комментарии + Лайк + Просмотр Видео ➥ 10$ — Рандомные Позитивные Комментарии + Лайк + Просмотр Видео ➥ 0.55$ — Поделиться Видео Живые Юзеры ➥ 0.5$ — Зрители Эфира (15мин) Живые Юзеры ➥ 18$ — Живые Просмотры Видео 60мин+ Видео ➥ 5$ — Рандомные Позитивные Комментарии ➥ 0.5$ — Лайк под Видео ➥ 0.7$ — Просмотр Видео МИКС + Монетизация Услуги MAX ПОДПИСЧИКИ (LIFETIME) ➥ 22$ — Публичные Каналы ПОДПИСЧИКИ (Дневные) ➥ 15$ — 90 дней ➥ 12$ — 60 дней ➥ 8$ — 30 дней АКТИВНОСТЬ И БОТЫ ➥ 3.50$ — Просмотры на пост ➥ 7$ — Макс Репосты ➥ 8$ — Положительные Реакции ➥ 13$ — Реакция ➥ 13$ — Реакция ➥ 13$ — Реакция ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ БОНУСЫ И ОФФЕРЫ КЭШБЭК ДО 10% для крупных реселлеров API доступ для ваших панелей ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ОПЛАТА: Crypto | LOLZ Market САЙТ: SMMTOOL.ORG Telegram: SMMTOOL_ORG
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..