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.



×
×
  • Create New...