Jump to content
  • 0

Community Board ?


Question

Posted

i have custom board before was working fine but now i got error when i press " alt+ B " in game  any can help me to fix it ?

 

 

java.lang.NullPointerException
at com.l2jarchid.gameserver.communitybbs.Manager.TopBBSManager.parsecmd(TopBBSManager.java:59)
at com.l2jarchid.gameserver.communitybbs.CommunityBoard.handleCommands(CommunityBoard.java:158)
at com.l2jarchid.gameserver.network.clientpackets.RequestShowBoard.runImpl(RequestShowBoard.java:56)
at com.l2jarchid.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:78)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

14 answers to this question

Recommended Posts

  • 0
Posted

Doublecheck ur code,you forgot smth

i check it the code is same like before when was work i dont see something different

  • 0
Posted

i check it the code is same like before when was work i dont see something different

it's hard to help you without viewing the code... also u could give us more info like... when does the error appears? when u press alt+b? when u press top pvp/pk or top adena, or something like that?..

  • 0
Posted

it's hard to help you without viewing the code... also u could give us more info like... when does the error appears? when u press alt+b? when u press top pvp/pk or top adena, or something like that?..

just when i press alt+b in game nothing happen only write me this error in GS console

  • 0
Posted

It tries to parse a command but doesn't find any, so NPE.

 

TopBBSManager.java:59 => post code 10 lines +-.

 

line  50 - 70

50                         }
51			
52			String content = HtmCache.getInstance().getHtm(fileName);
53			if (Config.L2F_SMPT_SERVER_ENABLED)
54			{
55			content = content.replaceAll("%passreset%", "  |  <a action=\"bypass _bbstop;lostpass\">Reset Password</a>");
56			}
57			else
58			{
59				content = content.replaceAll("%passreset%", "");
60			}
61			
62			//buffer
63			if (Config.ALLOW_BUFFER_COMMUNITY)
64			{
65			content = content.replaceAll("%CBbuffer%", "  |  <a action=\"bypass _bbstop;buffer\">Gatekeeper</a>");
66			}
67			else
68			{
69				content = content.replaceAll("%CBbuffer%", "");
70			}

  • 0
Posted

hm... something strange...

/offtopic Buffer in community board is easy to exploit with Hplex, and cheaters can take gmspeed, frenzy, whatever they want, i talk coz i have experienced it, i adivse you to take it off.

 

  • 0
Posted

hm... something strange...

/offtopic Buffer in community board is easy to exploit with Hplex, and cheaters can take gmspeed, frenzy, whatever they want, i talk coz i have experienced it, i adivse you to take it off.

 

it is fine dont worry i not use option " buffer , GK, shop" they are disable from DP config

  • 0
Posted

I have to say it's kinda strange... Have you disabled reset password option?

 

not i use default DP settings

 

@@ -188,4 +188,10 @@
#  - off =  no community Board
CommunityType = Full
+CustomCommunityBoard = True
+#enables postable teleporter in Custom CB
+CustomTeleportBoard = False
+#enables postable buffer in Custom CB
+CustomBufferBoard = False
+ColorCommunityBoard = True
BBSDefault = _bbshome

  • 0
Posted

i have custom board before was working fine but now i got error when i press " alt+ B " in game  any can help me to fix it ?

 

 

java.lang.NullPointerException
at com.l2jarchid.gameserver.communitybbs.Manager.TopBBSManager.parsecmd(TopBBSManager.java:59)
at com.l2jarchid.gameserver.communitybbs.CommunityBoard.handleCommands(CommunityBoard.java:158)
at com.l2jarchid.gameserver.network.clientpackets.RequestShowBoard.runImpl(RequestShowBoard.java:56)
at com.l2jarchid.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:78)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Same here.

  • 0
Posted

tnx again to all for your help :)

fixed im a just blind :P

 

if (command.equals("_bbstop") || command.equals("_bbshome"))
		{
			fileName = "data/html/CommunityBoard/Custom/CustomIndex.htm";

after checking all night i see my folder name is Customs not Custom  :)

  • 0
Posted

Put a null check for content, or at least throw a useful exception/warning.

 

String content = HtmCache.getInstance().getHtm(fileName);
if (content.isEmpty())
{
     log.warning("File named: " + fileName + " couldn't be loaded.");
     return;
}

You got a NPE because content string stays empty (in that time, because file wasn't existing).

 

And you shouldn't use archid (nor sell it, in case of Fort), no support since years.

  • 0
Posted

Put a null check for content, or at least throw a useful exception/warning.

 

String content = HtmCache.getInstance().getHtm(fileName);
if (content.isEmpty())
{
     log.warning("File named: " + fileName + " couldn't be loaded.");
     return;
}

You got a NPE because content string stays empty (in that time, because file wasn't existing).

 

And you shouldn't use archid (nor sell it, in case of Fort), no support since years.

okc tnx again :) i will do it now

Guest
This topic is now closed to further replies.


  • Posts

    • New user panel SOURCE $ 200 for source code. R$ 1000,00 BRL for source code.    
    • User panel 2.0 + New features.    
    • Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
  • 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