Skip to main content

Strange error with ant run-server

2 replies [Last post]
morrisford
Offline
Joined: 2008-03-17

I am getting the plan deployment on a new checkout of preview3. I have not seen this error before and cannot find what is going on. Looks like there is a badly formatted xml file but I have run pre3 on other systems. The java on this system is 6_18, don't know if that is a problem.

After more testing I found that this error occurs whenever I change a property through the web admin and save it. I also tried java 6_14.

[java] -----------------------------------------------------------
[java] Wonderland web server started successfully.
[java] Log files are in /home/ubuntu/.wonderland-server/0.5-preview3/log
[java] Web server running on http://184.73.245.119:8080/
[java] -----------------------------------------------------------
[java] Feb 28, 2010 12:09:01 AM org.jdesktop.wonderland.common.utils.ScannedClassLoader createDB
[java] WARNING: Scanned classes in 0 ms.
[java] Feb 28, 2010 12:09:07 AM org.jdesktop.wonderland.servermanager.client.PingDataCollector serverStarted
[java] WARNING: Connect to server 184.73.245.119 1139
[java] Feb 28, 2010 12:10:12 AM org.jdesktop.wonderland.runner.DeploymentManager getPlan
[java] WARNING: Error loading plan
[java] java.io.IOException: Error decoding plan file
[java] at org.jdesktop.wonderland.runner.DeploymentManager.loadPlan(DeploymentManager.java:149)
[java] at org.jdesktop.wonderland.runner.DeploymentManager.getPlan(DeploymentManager.java:95)
[java] at org.jdesktop.wonderland.runner.DeploymentManager.savePlan(DeploymentManager.java:166)
[java] at org.jdesktop.wonderland.runner.servlet.RunnerServlet.doEditSave(RunnerServlet.java:180)
[java] at org.jdesktop.wonderland.runner.servlet.RunnerServlet.doEditForm(RunnerServlet.java:146)
[java] at org.jdesktop.wonderland.runner.servlet.RunnerServlet.processRequest(RunnerServlet.java:78)
[java] at org.jdesktop.wonderland.runner.servlet.RunnerServlet.doGet(RunnerServlet.java:449)
[java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
[java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[java] at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
[java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
[java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
[java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
[java] at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
[java] at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
[java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
[java] at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
[java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
[java] at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
[java] at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
[java] at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
[java] at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
[java] at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
[java] at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
[java] at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
[java] at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
[java] at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
[java] at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
[java] at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
[java] at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
[java] at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
[java] at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
[java] at java.lang.Thread.run(Thread.java:619)
[java] Caused by: javax.xml.bind.UnmarshalException
[java] - with linked exception:
[java] [org.xml.sax.SAXParseException: Premature end of file.]
[java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:315)
[java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:514)
[java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
[java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
[java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
[java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:194)
[java] at org.jdesktop.wonderland.runner.DeploymentPlan.decode(DeploymentPlan.java:111)
[java] at org.jdesktop.wonderland.runner.DeploymentManager.loadPlan(DeploymentManager.java:147)
[java] ... 32 more
[java] Caused by: org.xml.sax.SAXParseException: Premature end of file.
[java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
[java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
[java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
[java] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1059)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
[java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
[java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
[java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
[java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
[java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
[java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
[java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
[java] ... 37 more

Message was edited by: morrisford

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kaplanj
Offline
Joined: 2004-07-13

Good find! I'd noticed that error, but never managed to track down the cause. It seems harmless -- do you see any problems saving the values? It is definitely worth filing a bug.

morrisford
Offline
Joined: 2008-03-17

I was seeing some loss of properties but I could not conclusively tie it to the occurrance of this error. I think they were related but then I stopped losing properties. The error could be provoked by changing the value of a property and the clicking save.