Jump to content
  • 0

acis-rev(401) Gameserver error Question


Question

Posted (edited)

Hi to all DEVELOPERS i have these two errors.. can any one help me? where am i doing wrong and i have these two errors? acis pack rev(401)

 

i passed the xml files normally.. and  i passed them on the system etcitemsgrp and armorgrp

 

[Fatal Error] :1:1: Content is not allowed in prolog.
Error loading file .\data\xml\items\armors
org.xml.sax.SAXParseException; systemId: file:/C:/Users/USER/Desktop/acis%20401/gameserver/./data/xml/items/armors/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
        at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
        at net.sf.l2j.gameserver.data.DocumentBase.parse(DocumentBase.java:86)
        at net.sf.l2j.gameserver.data.DocumentItem.parse(DocumentItem.java:18)
        at net.sf.l2j.gameserver.data.xml.ItemData.load(ItemData.java:46)
        at net.sf.l2j.gameserver.data.xml.ItemData.<init>(ItemData.java:26)
        at net.sf.l2j.gameserver.data.xml.ItemData$SingletonHolder.<clinit>(ItemData.java:93)
        at net.sf.l2j.gameserver.data.xml.ItemData.getInstance(ItemData.java:88)
        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:160)
        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:115)
[Fatal Error] :1:1: Content is not allowed in prolog.
Error loading file .\data\xml\items\etcitems
org.xml.sax.SAXParseException; systemId: file:/C:/Users/USER/Desktop/acis%20401/gameserver/./data/xml/items/etcitems/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
        at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
        at net.sf.l2j.gameserver.data.DocumentBase.parse(DocumentBase.java:86)
        at net.sf.l2j.gameserver.data.DocumentItem.parse(DocumentItem.java:18)
        at net.sf.l2j.gameserver.data.xml.ItemData.load(ItemData.java:46)
        at net.sf.l2j.gameserver.data.xml.ItemData.<init>(ItemData.java:26)
        at net.sf.l2j.gameserver.data.xml.ItemData$SingletonHolder.<clinit>(ItemData.java:93)
        at net.sf.l2j.gameserver.data.xml.ItemData.getInstance(ItemData.java:88)
        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:160)
        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:115)

 

Edited by Vision

12 answers to this question

Recommended Posts

  • 0
Posted (edited)
20 hours ago, andy1984 said:

show xml of etcitems

@andy1984

<?xml version="1.0" encoding="UTF-8"?>
<list>

        <item id="9500" type="EtcItem" name="Star Ornament">
        <set name="material" val="PAPER" />
        <set name="price" val="1" />
        <set name="is_stackable" val="true" />    
    </item>
    
        <item id="9501" type="EtcItem" name="Event Coin Lv.1">
        <set name="material" val="PAPER" />
        <set name="price" val="1" />
        <set name="is_stackable" val="true" />    
    </item>
    
        <item id="9502" type="EtcItem" name="Tournament Point's Lv.1">
        <set name="material" val="PAPER" />
        <set name="price" val="1" />
        <set name="is_stackable" val="true" />
    </item>
    
        <item id="9503" type="EtcItem" name="Ticket Donate">
        <set name="material" val="PAPER" />
        <set name="price" val="1" />
        <set name="is_stackable" val="true" />    
    </item>
    
    <item id="9504" type="EtcItem" name="Noblesse Status">
        <set name="default_action" val="skill_reduce" />
        <set name="material" val="PAPER" />
        <set name="weight" val="120" />
        <set name="equip_reuse_delay" val="30" />        
        <set name="price" val="500000" />
        <set name="handler" val="NoblesItem" />
        <set name="is_stackable" val="true" />    
    </item>

</list>

19 hours ago, splicho said:

It literally tells you where the error is 

 

[Fatal Error] :1:1: Content is not allowed in prolog.
Error loading file .\data\xml\items\armors
org.xml.sax.SAXParseException; systemId: file:/C:/Users/USER/Desktop/acis%20401/gameserver/./data/xml/items/armors/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

 

@splicho Can you tell me the solution because i dont know..and Im learning now slowly

Edited by DocuWin
  • 0
Posted (edited)
On 11/4/2022 at 7:21 PM, DocuWin said:

[spoiler]Hi to all DEVELOPERS i have these two errors.. can any one help me? where am i doing wrong and i have these two errors? acis pack rev(401)

 

i passed the xml files normally.. and  i passed them on the system etcitemsgrp and armorgrp

 

[Fatal Error] :1:1: Content is not allowed in prolog.
Error loading file .\data\xml\items\armors
org.xml.sax.SAXParseException; systemId: file:/C:/Users/USER/Desktop/acis%20401/gameserver/./data/xml/items/armors/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
        at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
        at net.sf.l2j.gameserver.data.DocumentBase.parse(DocumentBase.java:86)
        at net.sf.l2j.gameserver.data.DocumentItem.parse(DocumentItem.java:18)
        at net.sf.l2j.gameserver.data.xml.ItemData.load(ItemData.java:46)
        at net.sf.l2j.gameserver.data.xml.ItemData.<init>(ItemData.java:26)
        at net.sf.l2j.gameserver.data.xml.ItemData$SingletonHolder.<clinit>(ItemData.java:93)
        at net.sf.l2j.gameserver.data.xml.ItemData.getInstance(ItemData.java:88)
        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:160)
        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:115)
[Fatal Error] :1:1: Content is not allowed in prolog.
Error loading file .\data\xml\items\etcitems
org.xml.sax.SAXParseException; systemId: file:/C:/Users/USER/Desktop/acis%20401/gameserver/./data/xml/items/etcitems/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
        at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
        at net.sf.l2j.gameserver.data.DocumentBase.parse(DocumentBase.java:86)
        at net.sf.l2j.gameserver.data.DocumentItem.parse(DocumentItem.java:18)
        at net.sf.l2j.gameserver.data.xml.ItemData.load(ItemData.java:46)
        at net.sf.l2j.gameserver.data.xml.ItemData.<init>(ItemData.java:26)
        at net.sf.l2j.gameserver.data.xml.ItemData$SingletonHolder.<clinit>(ItemData.java:93)
        at net.sf.l2j.gameserver.data.xml.ItemData.getInstance(ItemData.java:88)
        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:160)
        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:115)[/spoiler]

 

DOMParser cannot access read. 

- Try to run in the root of the disk.

- Check encoding.
- Remove the % from the name.(I did not work with this library, but there is a chance of influence.) I prefer jdom2

Edited by Psygrammator
  • 0
Posted (edited)

Yours:

 

 <item id="9504" type="EtcItem" name="Noblesse Status">
        <set name="default_action" val="skill_reduce" />
        <set name="material" val="PAPER" />
        <set name="weight" val="120" />
        <set name="equip_reuse_delay" val="30" />        
        <set name="price" val="500000" />
        <set name="handler" val="NoblesItem" />
        <set name="is_stackable" val="true" />    
    </item>

 

 

Try to use this one:

<?xml version="1.0" encoding="UTF-8"?>
<list>

    <item id="9504" type="EtcItem" name="Noblesse Item">
        <set name="material" val="PAPER" />
        <set name="price" val="10000" />
        <set name="is_stackable" val="true" />
        <set name="is_tradable" val="true" />
        <set name="is_dropable" val="false" />
        <set name="is_sellable" val="false" />
        <set name="handler" val="NoblesItem"/>
  </item>
</list>

 

Use this item alone without any item on this xml and try..

Edited by 'Baggos'
  • 0
Posted
On 11/7/2022 at 2:54 PM, &#x27;Baggos&#x27; said:

Yours:

 

 <item id="9504" type="EtcItem" name="Noblesse Status">
        <set name="default_action" val="skill_reduce" />
        <set name="material" val="PAPER" />
        <set name="weight" val="120" />
        <set name="equip_reuse_delay" val="30" />        
        <set name="price" val="500000" />
        <set name="handler" val="NoblesItem" />
        <set name="is_stackable" val="true" />    
    </item>

 

 

Try to use this one:

<?xml version="1.0" encoding="UTF-8"?>
<list>

    <item id="9504" type="EtcItem" name="Noblesse Item">
        <set name="material" val="PAPER" />
        <set name="price" val="10000" />
        <set name="is_stackable" val="true" />
        <set name="is_tradable" val="true" />
        <set name="is_dropable" val="false" />
        <set name="is_sellable" val="false" />
        <set name="handler" val="NoblesItem"/>
  </item>
</list>

 

Use this item alone without any item on this xml and try..

 

@'Baggos' ekana auto pou mou eipes alla otan mpika sto game kai ekana create item mou lei (This item doesnt exist)

to erwtima einai twra pws mporw na perasw auta ta items sto source? epidei den exw idea kai twra mathenw siga siga

  • 0
Posted
40 minutes ago, DocuWin said:

 

@'Baggos' ekana auto pou mou eipes alla otan mpika sto game kai ekana create item mou lei (This item doesnt exist)

to erwtima einai twra pws mporw na perasw auta ta items sto source? epidei den exw idea kai twra mathenw siga siga

<set name="handler" val="NoblesItem"/>

Για να χρησιμοποιηθεί το παραπάνω, θα πρέπει να υπάρχει στο project, κώδικας για το noblesse item. Έχεις κάτι τέτοιο?

Δεν είναι ανάγκη να τα περάσεις τα item(datapack) στα source, αν είναι για προσωπική σου χρήση. Ωστόσο, θα πρέπει να έχεις τα source του project, το Eclipse και java-jdk.

  • 0
Posted
48 minutes ago, DocuWin said:

 

@'Baggos' ekana auto pou mou eipes alla otan mpika sto game kai ekana create item mou lei (This item doesnt exist)

to erwtima einai twra pws mporw na perasw auta ta items sto source? epidei den exw idea kai twra mathenw siga siga

 

pws ksereis katarxas oti mporei na mpei me aplo copy paste?

katalaveneis oti ta XML sou prepei na ta ftiaxneis monos sou ?

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

    • Hello friends, good morning, good afternoon or good evening, depending on the time you are seeing this! I have been trying to decompile and compile again with only the classes that I want LineageEffect.u for a few days now, but I have not been successful. Could someone help me by clearing up some doubts about how I can do this work and be successful?!
    • **INTERLUDE REMASTERED** Moonland is a server that's been running for about three years without wipe, and they don't plan on wiping it anytime soon. I'm selling my items or even the account due to not having much time to play anymore. I'm selling only for $$$. Not going to disclose my nickname in the server, but here are some of the items: Lvl 5 equipment for both mage and fighter +100 mage pvp set 2mastery jewels for fighter, 2 for mage, blessed antharas, blessed queen ant, ring of fallen angel, earring of fafurion. 1k + col, VIP cosmetics for armor, agathion and weapons(duals + mage wep)   I'm only selling for real money via paypal or cs2 skins so don't offer me anything else.
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...