Jump to content
  • 0

[HELP] npe στο spawntable - autospawnhandler


Question

Posted

καλησπερα στο forum!

εχω ενα error στον server μου που με ταλεπορει καιρο...

μηπως μπορει καποιος να βοηθησει??

 


AutoSpawnHandler??: An error occurred while initializing spawn instance (Object ID
268478949): java.lang.NullPointerException??

java.lang.NullPointerException??

    at javolution.util.FastMap??$Entry.access$100(Unknown Source)
    at javolution.util.FastMap??.addEntry(Unknown Source)
    at javolution.util.FastMap??.put(Unknown Source)
    at net.sf.l2j.gameserver.datatables.SpawnTable??.addNewSpawn(SpawnTable??.ja

va:170)

    at net.sf.l2j.gameserver.model.AutoSpawnHandler??$AutoSpawner??.run(AutoSpaw??

nHandler.java:523)

    at java.util.concurrent.Executors$RunnableAdapter??.call(Unknown Source)
    at java.util.concurrent.FutureTask??$Sync.innerRunAndReset(Unknown Source)

    at java.util.concurrent.FutureTask??.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor??$ScheduledFutureTask??.

access$101(Unknown Source)

    at java.util.concurrent.ScheduledThreadPoolExecutor??$ScheduledFutureTask??.

runPeriodic(Unknown Source)

    at java.util.concurrent.ScheduledThreadPoolExecutor??$ScheduledFutureTask??.

run(Unknown Source)

    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)

6 answers to this question

Recommended Posts

  • 0
Posted

to code ειναι απο αλλο παλικαρι απλα εγω εχω το ιδιο error.

σε εμενα ειναι στη γραμμη 169

 

            _log.fine("SpawnTable: Spawning completed, total number of NPCs in the world: "
                + _npcSpawnCount);

    }

    public L2Spawn getTemplate(int id)
    {
        return _spawntable.get(id);
    }

    public void addNewSpawn(L2Spawn spawn, boolean storeInDb)
    {
        _highestId++;
        spawn.setId(_highestId);
        _spawntable.put(_highestId, spawn);            <<<<<<<<<<<<<< LINE 169

        if (storeInDb)
        {
            java.sql.Connection con = null;

            try
            {
                con = L2DatabaseFactory.getInstance().getConnection();
                PreparedStatement statement = con.prepareStatement("INSERT INTO spawnlist (id,count,npc_templateid,locx,locy,locz,heading,respawn_delay,loc_id) values(?,?,?,?,?,?,?,?,?)");
                statement.setInt(1, spawn.getId());
                statement.setInt(2, spawn.getA-beep-t());
                statement.setInt(3, spawn.getNpcid());
                statement.setInt(4, spawn.getLocx());
                statement.setInt(5, spawn.getLocy());
                statement.setInt(6, spawn.getLocz());
                statement.setInt(7, spawn.getHeading());
                statement.setInt(8, spawn.getRespawnDelay() / 1000);
                statement.setInt(9, spawn.getLocation());
                statement.execute();
                statement.close();
            }
            catch (Exception e)
            {
                // problem with storing spawn
                _log.warning("SpawnTable: Could not store spawn in the DB:" + e);
            }

  • 0
Posted

line 482 sto diko m

 

				if (locationIndex == locationCount)
					locationIndex = 0;

				spawnInst._lastLocIndex = locationIndex;
			}

			// Set the X, Y and Z co-ordinates, where this spawn will take
			// place.
			final int x = locationList[locationIndex].getX();
			final int y = locationList[locationIndex].getY();
			final int z = locationList[locationIndex].getZ();
			final int heading = locationList[locationIndex].getHeading();
                                                                                     <<<<<<<<<<< line 482
			// Fetch the template for this NPC ID and create a new spawn.
			L2NpcTemplate npcTemp = NpcTable.getInstance().getTemplate(spawnInst.getNpcId());
			if (npcTemp == null)
			{
				_log.warning("Couldnt find NPC id" + spawnInst.getNpcId()+ " Try to update your DP");
				return;
			}
			L2Spawn newSpawn = new L2Spawn(npcTemp);

			newSpawn.setLocx(x);
			newSpawn.setLocy(y);

 

ευχαρηστω π προσπαθεις να με βοηθησεις!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • @ERROR501, I’ve been waiting for the “big update” since last October, and at this point, it’s starting to feel like an empty promise. You’re better off implementing your own minimum detection server-side instead of relying on AAC to fix their issues; despite what their website claims about blocking everything, it clearly falls short.
    • We are taking new orders. Kindly DM us on Telegram!
    • Hello everyone!  I’d like to share an experience that might serve as a lesson for anyone planning to work with third-party protection services—specifically, Active Anticheat. I know this might sound like a strange job request, but  our player base mostly consists of veteran of Lineage 2 players who are used to using bots as part of their gameplay experience. As server administrators, we decided to adapt to our users. That’s why we approached Active Anticheat with a proposal: Allow bot usage under certain conditions. We explained everything in detail, and they agreed.   📌 February – A Promising Start On February 16th, we contacted Active Anticheat to request a custom antibot system. The idea was to kick players using bots during specific times (like sieges), but allow them to log back in without bots afterward. After a few discussions, both sides agreed on the following solution: Bots allowed during regular days. During siege events, anyone using a bot would be automatically kicked. Kicked players could log back in without using bots. The deal was priced at $5,000, which we already paid on March 31st, 2025. Active Anticheat promised delivery by the end of April, or at the latest, by May. Screenshot:  Deal 1 Deal 2   🕐 May – The Delays Begin We followed up multiple times in May, only to finally hear back on May 26th: “It won’t be ready this month. But we’re working on a big update coming in June.” That update? Still nowhere to be seen, even as I’m writing this post. Screenshot:  Delayed   🔁 Plan B – L2Walker Rejected, Adrenaline Offered With our server launch schedule getting tighter, we needed an alternative. At the end of June, we asked Active Anticheat: “Can you at least allow L2Walker access to the server?” Their response on June 28th: “L2Walker can’t be allowed. But we can allow Adrenaline (free & paid version) and L2Helper for $2,000 + $300 (for a new license).” We agreed, hoping it would be a temporary fix while waiting for the promised “big update” (which we had already paid $5,000 for, remember?). Screenshot:  New Offer 1 New Offer 2 New Offer 3   ❌ AA Failed Their setup took about a week. We ran 2–3 rounds of testing using clean clients. The result? Adrenaline (both free and paid) couldn’t connect to our server. It couldn’t detect the Lineage 2 client, because the custom Active Anticheat protection was blocking it. We reached out to Active Anticheat for support, and their response? “You should contact Adrenaline support to enable free Adrenaline for your server. Adrenaline blocks it by default when Active Anticheat is detected.” Then we tested Premium Adrenaline. And it still didn’t work. Active Anticheat stood firm: “It’s not our fault. Adrenaline blocked us—not the other way around.” Screenshot: Failed 1 Failed 2   💸 The Bitter Reality Today, we’re still waiting for answers. No reply. No fix. No update. No refund. We’ve spent a total of $7,300 and received nothing functional in return. And this, despite their full agreement with our initial plan.  
  • 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