narrowtux / SmartModInserter

Manages mods for factorio
GNU Lesser General Public License v3.0
38 stars 12 forks source link

Content is not allowed in prolog #11

Closed nihaals closed 3 years ago

nihaals commented 8 years ago

I have no idea about java and the mod manager worked great, until after a couple of relaunches (messing around with packs) it just wouldn't load. I checked the process with Task Manager (I have Windows 10) and it wasn't using more memory to load it, it was just staying the same. I tried launching with java web start launcher instead of standard javaw.exe and it would give these errors.

Launch File

PK

Exeption

JNLParseException[ Could not parse launch file. Error at line 1.] at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main.access$000(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. 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.XMLErrorReporter.reportError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.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.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source) at com.sun.deploy.xml.XMLParser.parse(Unknown Source) at com.sun.deploy.xml.XMLParser.parse(Unknown Source) ... 8 more

Wrapped Exeption

org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. 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.XMLErrorReporter.reportError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.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.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source) at com.sun.deploy.xml.XMLParser.parse(Unknown Source) at com.sun.deploy.xml.XMLParser.parse(Unknown Source) at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main.access$000(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

ChristopherWirtOfficial commented 8 years ago

The jar is not meant to be run with Java Web Start as it is not a JNLP. That is all that this exception tells you. The source of the original problem is unlikely to be found from these errors, unfortunately :/

narrowtux commented 8 years ago

Can you do 2 things for me?

First, open cmd and run

java -version

And tell me what this says. Sometimes, if you have multiple versions of Java installed, it will select the wrong one.

If the version was 8.x, try to run the jar directly

java -jar path/to/modmanager.jar

If that crashes, please paste the exception here. The ones you posted are just because you ran this with Java web start, which is not how you run this ;) Christopher Wirt notifications@github.com schrieb am Fr., 8. Apr. 2016 um 18:11:

The jar is not meant to be run with Java Web Start as it is not a JNLP. That is all that this exception tells you. The source of the original problem is unlikely to be found from these errors, unfortunately :/

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/narrowtux/SmartModInserter/issues/11#issuecomment-207496728

nihaals commented 8 years ago

I got version 1.8.0_77 and that second command worked as randomly, after like 5 mins of doing nothing it worked. Next time it breaks I will try it again. I'm still not sure what happened as I did close all the javaw.exe processes before and it din't work but now if I get 2 processes of it the second one works fine. I'm going to keep it open just in-case someone else has this. I think it's something to do with opening it a ton of times within 10 mins?