We're updating the issue view to help you get more done. 

Unknown XML parsing error after upgrade from 5.2 to 5.3 (CommandBox)

Description

I'm trying to get CommandBox running on Lucee 5.3 but I can't use this version because after an in-place upgrade from 5.2 to 5.3, Lucee begins downloading all extensions EVERY TIME IT STARTS. This, of course, has a very large delay and is not necessary. I have tracked the error down to some sort of exception in the CFMLEngineImpl class. There is a call to XMLConfigAdmin.hasRHExtensions() and if it throws an exception, the try catch simply re-downloads the extension again. The catch is also empty which swallows the error so there is no way to tell what is happening.

The exception is:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 org.xml.sax.SAXException: Premature end of file. org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file. at lucee.runtime.text.xml.ThrowingErrorHandler.fatalError(ThrowingErrorHandler.java:44) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:180) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1014) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) at lucee.runtime.text.xml.XMLUtil.parse(XMLUtil.java:250) at lucee.runtime.text.xml.XMLUtil.parse(XMLUtil.java:217) at lucee.runtime.text.xml.XMLUtil.createDocument(XMLUtil.java:1245) at lucee.runtime.config.XMLConfigAdmin.<init>(XMLConfigAdmin.java:241) at lucee.runtime.config.XMLConfigAdmin.hasRHExtensions(XMLConfigAdmin.java:6308) at lucee.runtime.engine.CFMLEngineImpl.<init>(CFMLEngineImpl.java:317) at lucee.runtime.engine.CFMLEngineImpl.getInstance(CFMLEngineImpl.java:612) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at lucee.loader.engine.CFMLEngineFactory.getEngine(CFMLEngineFactory.java:1418) at lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:365) at lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:261) at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:167) at lucee.runtime.script.BaseScriptEngineFactory.<init>(BaseScriptEngineFactory.java:59) at lucee.runtime.script.LuceeScriptEngineFactory.<init>(LuceeScriptEngineFactory.java:27) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) at java.util.ServiceLoader$1.next(ServiceLoader.java:480) at javax.script.ScriptEngineManager.initEngines(ScriptEngineManager.java:122) at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:84) at javax.script.ScriptEngineManager.<init>(ScriptEngineManager.java:75) at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:263) at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:152) at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:509) Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) ... 43 more

Environment

None

Status

Assignee

Michael Offner

Reporter

Brad Wood

Labels

None

Sprint

None

Fix versions

Affects versions

5.3.2.41

Priority

New