Jump to content
  • 0

Game server console error


Question

Posted (edited)

Hi to all developers i have this console error when i target any npc in my server (acis pack) can any one help me?

 

 

Failed reading: [C] Action ; java.lang.NullPointerException
        at com.l2jmega.gameserver.instancemanager.RaidBossInfoManager.getRaidBossRespawnTime(RaidBossInfoManager.java:78)
        at com.l2jmega.gameserver.model.actor.Npc.horus(Npc.java:1983)
        at com.l2jmega.gameserver.model.actor.Npc.showChatWindow(Npc.java:1498)
        at com.l2jmega.gameserver.model.actor.Npc.showChatWindow(Npc.java:1437)
        at com.l2jmega.gameserver.model.actor.Npc.onAction(Npc.java:524)
        at com.l2jmega.gameserver.network.clientpackets.Action.runImpl(Action.java:117)
        at com.l2jmega.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:52)
        at com.l2jmega.gameserver.network.L2GameClient.run(L2GameClient.java:843)
        at com.l2jmega.commons.concurrent.ThreadPool$TaskWrapper.run(ThreadPool.java:224)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)

Edited by Vision

4 answers to this question

Recommended Posts

  • 0
Posted
6 hours ago, DocuWin said:

Hi to all developers i have this console error when i target any npc in my server (acis pack) can any one help me?

 

 

Failed reading: [C] Action ; java.lang.NullPointerException
        at com.l2jmega.gameserver.instancemanager.RaidBossInfoManager.getRaidBossRespawnTime(RaidBossInfoManager.java:78)
        at com.l2jmega.gameserver.model.actor.Npc.horus(Npc.java:1983)
        at com.l2jmega.gameserver.model.actor.Npc.showChatWindow(Npc.java:1498)
        at com.l2jmega.gameserver.model.actor.Npc.showChatWindow(Npc.java:1437)
        at com.l2jmega.gameserver.model.actor.Npc.onAction(Npc.java:524)
        at com.l2jmega.gameserver.network.clientpackets.Action.runImpl(Action.java:117)
        at com.l2jmega.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:52)
        at com.l2jmega.gameserver.network.L2GameClient.run(L2GameClient.java:843)
        at com.l2jmega.commons.concurrent.ThreadPool$TaskWrapper.run(ThreadPool.java:224)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)

Few things about the pack:

the pack you using has alot of problems and backdoors, i recommend you to find a developer to help you remove them

 

Few things about the error:

its a common NPE in Brasil people have got use to it and ignore them you did some action on this Horus boss and the developer did not predict that in some place the code would be "null" so here you have it, adding a null check will solve this

 

Few things on how to find that error:

look closely the error says that was generated on

com.l2jmega.gameserver.instancemanager.RaidBossInfoManager.getRaidBossRespawnTime(RaidBossInfoManager.java:78)

this gives you the place and the line to look what happent

respectively RaidBossInfoManager.java:78

so looking at this file on that line is what you have to do, then if you dont know what to do come back here and ask what to do on those lines.

OR

pay a developer to do this for you

 

:summon:@Kara br pack your expertise

  • 0
Posted
18 hours ago, DocuWin said:

Hi to all developers i have this console error when i target any npc in my server (acis pack) can any one help me?

 

 

Failed reading: [C] Action ; java.lang.NullPointerException
        at com.l2jmega.gameserver.instancemanager.RaidBossInfoManager.getRaidBossRespawnTime(RaidBossInfoManager.java:78)
        at com.l2jmega.gameserver.model.actor.Npc.horus(Npc.java:1983)
        at com.l2jmega.gameserver.model.actor.Npc.showChatWindow(Npc.java:1498)
        at com.l2jmega.gameserver.model.actor.Npc.showChatWindow(Npc.java:1437)
        at com.l2jmega.gameserver.model.actor.Npc.onAction(Npc.java:524)
        at com.l2jmega.gameserver.network.clientpackets.Action.runImpl(Action.java:117)
        at com.l2jmega.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:52)
        at com.l2jmega.gameserver.network.L2GameClient.run(L2GameClient.java:843)
        at com.l2jmega.commons.concurrent.ThreadPool$TaskWrapper.run(ThreadPool.java:224)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)

 

Post the getRaidBossRespawnTime.java here. 

  • 0
Posted

@Kara

 

 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jmega.gameserver.instancemanager;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Logger;

import com.l2jmega.L2DatabaseFactory;

/**
 * @author rapfersan92
 */
public class RaidBossInfoManager
{
    private static final Logger _log = Logger.getLogger(RaidBossInfoManager.class.getName());
    
    private final Map<Integer, Long> _raidBosses;
    
    public static RaidBossInfoManager getInstance()
    {
        return SingletonHolder._instance;
    }
    
    protected RaidBossInfoManager()
    {
        _raidBosses = new ConcurrentHashMap<>();
        load();
    }
    
    public void load()
    {
        try (Connection con = L2DatabaseFactory.getInstance().getConnection())
        {
            PreparedStatement statement;
            ResultSet rs;
            
            statement = con.prepareStatement("SELECT boss_id, respawn_time FROM grandboss_data UNION SELECT boss_id, respawn_time FROM raidboss_spawnlist ORDER BY boss_id");
            rs = statement.executeQuery();
            while (rs.next())
            {
                int bossId = rs.getInt("boss_id");
                    _raidBosses.put(bossId, rs.getLong("respawn_time"));
            }
            rs.close();
            statement.close();
        }
        catch (Exception e)
        {
            _log.warning("Exception: RaidBossInfoManager load: " + e);
        }
        
        _log.info("RaidBossInfoManager: Loaded " + _raidBosses.size() + " instances.");
    }
    
    public void updateRaidBossInfo(int bossId, long respawnTime)
    {
        _raidBosses.put(bossId, respawnTime);
    }
    
    public long getRaidBossRespawnTime(int bossId)
    {
        return _raidBosses.get(bossId);
    }
    
    private static class SingletonHolder
    {
        protected static final RaidBossInfoManager _instance = new RaidBossInfoManager();
    }
}
 

  • 0
Posted

getRaidBossRespawnTime return null because there is no such boss info. So basically it load data from SQL but for that specific ID (idk which) there is no info so it return null, either replace with a null check and return 0 or do your check at that method.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Server Description L2 Karma is a permanent Interlude 1x server built on L2J with retail-like mechanics and a long-term vision — not a seasonal reset or wipe server. We focus on competitive longevity, fair play, and a community where every player matters. Core Features ✔ True x1 Experience (XP / SP / Adena / Drop / Spoil) ✔ Retail mechanics — no forced progression shortcuts ✔ Single-box only (1 client per player — no multi-boxing advantage) ✔ No Pay-to-Win & strict anti-RMT policy ✔ Already live and active with players progressing ✔ Long-term commitment — 3-year guarantee ✔ Designed for meaningful PvP and community cohesion 📏 Server Rules No Multi-Boxing Advantage — Only one client per account is allowed. No Pay-to-Win Items or Services — VIP runes are optional and do not lock content. No Bots, Scripts, or Automation — Zero tolerance. Suspicious accounts will be banned. No Exploit Abuse — Reporting exploits immediately avoids penalties. No RMT / Real Money Trading — Strict enforcement — economy integrity matters. Fair Play Only — Harassment and racism are not allowed in chat or Discord. Respect Admin Decisions — Official rulings are final to keep the server stable. 📥 How to Join 🔗 Website: https://l2karma.org 🔗 Discord: https://discord.gg/VV9RAfmnth Chronicle: Interlude Rates: x1 (Classic) Box Limit: Single Box 🧠 What Makes Us Different ✔ Permanent World — No resets ever ✔ Designed for players tired of wipe-cycle servers ✔ Community-centric growth — not rinse-and-repeat launches ✔ Competitive but fair environment ✔ Events, structured seasons, and ongoing content support
    • A widespread proxy service, operating through hijacked devices, has been shut down in a cross-industry effort led by Google. The network, known as IPIDEA, functioned by secretly converting millions of personal devices into proxies for malicious actors. The Mechanism of the Scheme The operation distributed hidden code within seemingly legitimate free apps and VPN services. Once installed, this code enrolled the user’s device into a pool of residential IP addresses. These addresses were then sold anonymously, primarily to cybercriminal and state-sponsored groups, to mask the origin of attacks, fraud, and espionage. Key impacts of the network included: Facilitating operations for more than 550 identified threat actors. Exposing unsuspecting device owners to potential legal and security risks by associating their IP addresses with criminal traffic. The Takedown Strategy Google and its partners disrupted the service by: Seizing core operational domains. Using Google Play Protect to detect and remove malicious applications. Coordinating with infrastructure providers to prevent the network from reestablishing itself. The action highlights the necessity of continuous user awareness, developer diligence in code reviews, and proactive industry cooperation to maintain cybersecurity. Front Companies Associated with IPIDEA IPIDEA masked its activities under various brand names, such as: Proxy Brands: 360 Proxy, 922 Proxy, Luna Proxy, IP2World, ABC Proxy. VPN Brands: Door VPN, Radish VPN, Galleon VPN. SDK Brands: PacketSDK, HexSDK (the toolkits used to embed proxy code).   Choosing Ethical Proxy Services Alternatives For lawful purposes like market research, ad verification, or data aggregation, selecting a transparent and consensual provider is essential. Reputable services obtain explicit user permission for their networks and enforce strict compliance measures. Examples of Established Providers: Bright Data: A leading, consent-based residential proxy network. Oxylabs: Provides large-scale proxy solutions for enterprise needs. MoMoProxy: Maintains a large pool of residential IPs for tasks like web scraping.   Only $850/1TB.  https://momoproxy.com   Identifying a Legitimate Provider: A trustworthy service will typically demonstrate: Informed Consent: Networks are built with the clear agreement of participants. Robust Compliance: Proactive systems to prevent abuse and respect website terms. Operational Transparency: Public-facing policies, identifiable corporate structure, and genuine customer support. Conduct thorough due diligence. Opt for providers that are clear about their IP sources and maintain strong anti-abuse policies, ensuring your legitimate activities do not inadvertently support harmful operations.
    • Lineage 2 Interlude Developer – Cliente + Datapack Hola, soy developer especializado en Lineage 2 Interlude con experiencia tanto en cliente como datapack/core. ✔ Desarrollo datapack (Java, scripts, quests, balance PvP/PvE) ✔ Fixes core / geodata / exploits ✔ Sistemas custom (events, Olympiad, instancias, mods PvP) ✔ Cliente: interface mods, system patches, .dat edits, UI personalizada ✔ Optimización y estabilidad de servidor ✔ Trabajo freelance o colaboración fija Si necesitáis soporte dev o mejoras para vuestro servidor Interlude, podéis contactarme por DM. Portfolio y ejemplos disponibles bajo petición.
  • 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..