Error message when loading the game

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Error message when loading the game

grimlak24
TripleA keeps sending this error message when I try to load the program:

Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired.  Parser will use a default
ErrorHandler to print the first 10 errors.  Please call
the 'setErrorHandler' method to fix this.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2480: Attribute value "Light Cavalry" of type ID must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2486: Attribute value "Elite Cavalry" of type ID must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2488: Attribute value "Undead Warrior" of type ID must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2704: Attribute value "buyElite Cavalry" of type ID must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2706: Attribute value "Elite Cavalry" of type IDREF must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2712: Attribute value "buyUndead Warrior" of type ID must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2714: Attribute value "Undead Warrior" of type IDREF must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2749: Attribute value "High ElvesFrontier" of type ID must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2755: Attribute value "buyLight Cavalry" of type IDREF must be a name.
Error: URI=jar:file:/C:/Program%20Files%20(x86)/TripleA/triplea_1_2_5_5/bin/triplea.jar!/games/strategy/engine/xml/ Line=2757: Attribute value "buyElite Cavalry" of type IDREF must be a name.
Could not parse:C:\Users\Darek\triplea\maps\warhammer1.0\games\warhammer1.3.xml error at line:2895 column:11
org.xml.sax.SAXParseException: The element type "game" must be terminated by the matching end-tag "</game>".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at games.strategy.engine.data.GameParser.getDocument(GameParser.java:174)
        at games.strategy.engine.data.GameParser.parse(GameParser.java:90)
        at games.strategy.engine.framework.ui.NewGameChooserEntry.<init>(NewGameChooserEntry.java:27)
        at games.strategy.engine.framework.ui.NewGameChooserModel.createEntry(NewGameChooserModel.java:163)
        at games.strategy.engine.framework.ui.NewGameChooserModel.populateFromDirectory(NewGameChooserModel.java:180)
        at games.strategy.engine.framework.ui.NewGameChooserModel.populate(NewGameChooserModel.java:82)
        at games.strategy.engine.framework.ui.NewGameChooserModel.<init>(NewGameChooserModel.java:35)
        at games.strategy.engine.framework.startup.mc.GameSelectorModel.loadDefaultGame(GameSelectorModel.java:217)
        at games.strategy.engine.framework.startup.ui.MainFrame.<init>(MainFrame.java:61)
        at games.strategy.engine.framework.GameRunner2$1.run(GameRunner2.java:61)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

I'm not sure why it's doing it. Any Help?
Reply | Threaded
Open this post in threaded view
|

Re: Error message when loading the game

Veqryn
Administrator
yes,
it appears you have some custom games installed that do not work.

please delete or move ALL of your custom games, and it should work

they are in two locations, the first being the games folder of triplea in program files, the other being in your documents and settings or users folder
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Error message when loading the game

ComradeKev
Administrator
In reply to this post by grimlak24
grimlak24 wrote
Line=2480: Attribute value "Light Cavalry" of type ID must be a Name.
The lines in the dump like this are telling you what's wrong.  You've got errors in the XML, likely capitalization or 'space' related.  Those line numbers don't match exactly, but they should get you close.  If you want, attach the XML here and I or someone can look at it for you.
If emailing me at ComradeKev at yahoo.com , please add TripleA to the subject line
Reply | Threaded
Open this post in threaded view
|

Re: Error message when loading the game

grimlak24
In reply to this post by Veqryn
The custom game that isn't working is the one I was trying to put together. I used the Map Editor Parts 1 and 2, and when I tried to test out the mod, it keeps coming up with this error.

I fixed all the naming problems, now the error report leaves this:
Could not parse:C:\Users\Darek\triplea\maps\warhammer1.0\games\warhammer1.3.xml error at line:2895 column:11
org.xml.sax.SAXParseException: The element type "game" must be terminated by the matching end-tag "</game>".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at games.strategy.engine.data.GameParser.getDocument(GameParser.java:174)
        at games.strategy.engine.data.GameParser.parse(GameParser.java:90)
        at games.strategy.engine.framework.ui.NewGameChooserEntry.<init>(NewGameChooserEntry.java:27)
        at games.strategy.engine.framework.ui.NewGameChooserModel.createEntry(NewGameChooserModel.java:163)
        at games.strategy.engine.framework.ui.NewGameChooserModel.populateFromDirectory(NewGameChooserModel.java:180)
        at games.strategy.engine.framework.ui.NewGameChooserModel.populate(NewGameChooserModel.java:82)
        at games.strategy.engine.framework.ui.NewGameChooserModel.<init>(NewGameChooserModel.java:35)
        at games.strategy.engine.framework.startup.mc.GameSelectorModel.loadDefaultGame(GameSelectorModel.java:217)
        at games.strategy.engine.framework.startup.ui.MainFrame.<init>(MainFrame.java:61)
        at games.strategy.engine.framework.GameRunner2$1.run(GameRunner2.java:61)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Reply | Threaded
Open this post in threaded view
|

Re: Error message when loading the game

grimlak24
warhammer1.3.xml

Here's the XML file
Reply | Threaded
Open this post in threaded view
|

Re: Error message when loading the game

Veqryn
Administrator
In reply to this post by grimlak24
ya, you are missing some tags

for example, you are missing the <production> tag at the beginning of the production list

you could be missing more tags

just open up the xml in notepad++ and compare it to ww2v3's xml, and make sure all major section tags are there
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Error message when loading the game

grimlak24
In reply to this post by grimlak24
I fixed the production tag problem as well as all naming problems. Still ending up getting errors.
I'll upload the revised xml file so someone can take a look at it if they feel up to it.
All help is greatly appreciated!
warhammer1.3.xml

Error code was:

Could not parse:C:\Users\Darek\triplea\maps\warhammer1.0\games\warhammer1.3.xml
java.lang.IllegalStateException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at games.strategy.engine.data.GameParser.parse(GameParser.java:92)
        at games.strategy.engine.framework.ui.NewGameChooserEntry.<init>(NewGameChooserEntry.java:27)
        at games.strategy.engine.framework.ui.NewGameChooserModel.createEntry(NewGameChooserModel.java:163)
        at games.strategy.engine.framework.ui.NewGameChooserModel.populateFromDirectory(NewGameChooserModel.java:180)
        at games.strategy.engine.framework.ui.NewGameChooserModel.populate(NewGameChooserModel.java:82)
        at games.strategy.engine.framework.ui.NewGameChooserModel.<init>(NewGameChooserModel.java:35)
        at games.strategy.engine.framework.startup.mc.GameSelectorModel.loadDefaultGame(GameSelectorModel.java:217)
        at games.strategy.engine.framework.startup.ui.MainFrame.<init>(MainFrame.java:61)
        at games.strategy.engine.framework.GameRunner2$1.run(GameRunner2.java:61)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.startOfMarkup(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at games.strategy.engine.data.GameParser.getDocument(GameParser.java:174)
        at games.strategy.engine.data.GameParser.parse(GameParser.java:90)
        ... 16 more