Export of converted datasets fails
Posted: 19 Jul 2017 11:04
Hi,
I have a problem with exporting my old datasets; These were created under ecoinvent 3.2. and with openLCA V1.4.
I then imported them into a new ecoinvent 3.3. database and with openLCA 1.6, using the openLCA conversion script.
The import worked properly, (although I had to set all default providers by hand, but this is a conceptional issue I guess), but I am not able to export these datasets anymore.
When trying to export, I get an error message, either when exporting flows or processes. Below the error message obtained when exporting a single (exemplary) flow:
3356680 ModalContext ERROR org.openlca.io.ilcd.ILCDExport Export of component RootEntity [type=Flow, refId=818777fb-29c2-4d1f-a273-d229eff8bb30, name=Aluminium current collector, for Li-Ion battery failed
org.openlca.ilcd.io.DataStoreException: Cannot load class org.openlca.ilcd.flows.Flow from entry /flows/818777fb-29c2-4d1f-a273-d229eff8bb30.json
at org.openlca.ilcd.io.ZipStore.unmarshal(ZipStore.java:156)
at org.openlca.ilcd.io.ZipStore.get(ZipStore.java:83)
at org.openlca.io.ilcd.output.FlowExport.run(FlowExport.java:42)
at org.openlca.io.ilcd.ILCDExport.tryExport(ILCDExport.java:64)
at org.openlca.io.ilcd.ILCDExport.export(ILCDExport.java:45)
at org.openlca.app.wizards.io.ILCDExportWizard.runExport(Unknown Source)
at org.openlca.app.wizards.io.ILCDExportWizard.lambda$0(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:221)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:276)
at org.openlca.ilcd.io.XmlBinder.unmarshal(XmlBinder.java:130)
at org.openlca.ilcd.io.XmlBinder.fromStream(XmlBinder.java:110)
at org.openlca.ilcd.io.ZipStore.unmarshal(ZipStore.java:153)
... 7 more
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(ErrorHandlerWrapper.java:203)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
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:1465)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:999)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:243)
... 12 more
Any idea of what I might have to modify in my datasets so that the export works again?
Many thanks in advance!
Jens
I have a problem with exporting my old datasets; These were created under ecoinvent 3.2. and with openLCA V1.4.
I then imported them into a new ecoinvent 3.3. database and with openLCA 1.6, using the openLCA conversion script.
The import worked properly, (although I had to set all default providers by hand, but this is a conceptional issue I guess), but I am not able to export these datasets anymore.
When trying to export, I get an error message, either when exporting flows or processes. Below the error message obtained when exporting a single (exemplary) flow:
3356680 ModalContext ERROR org.openlca.io.ilcd.ILCDExport Export of component RootEntity [type=Flow, refId=818777fb-29c2-4d1f-a273-d229eff8bb30, name=Aluminium current collector, for Li-Ion battery failed
org.openlca.ilcd.io.DataStoreException: Cannot load class org.openlca.ilcd.flows.Flow from entry /flows/818777fb-29c2-4d1f-a273-d229eff8bb30.json
at org.openlca.ilcd.io.ZipStore.unmarshal(ZipStore.java:156)
at org.openlca.ilcd.io.ZipStore.get(ZipStore.java:83)
at org.openlca.io.ilcd.output.FlowExport.run(FlowExport.java:42)
at org.openlca.io.ilcd.ILCDExport.tryExport(ILCDExport.java:64)
at org.openlca.io.ilcd.ILCDExport.export(ILCDExport.java:45)
at org.openlca.app.wizards.io.ILCDExportWizard.runExport(Unknown Source)
at org.openlca.app.wizards.io.ILCDExportWizard.lambda$0(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:221)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:276)
at org.openlca.ilcd.io.XmlBinder.unmarshal(XmlBinder.java:130)
at org.openlca.ilcd.io.XmlBinder.fromStream(XmlBinder.java:110)
at org.openlca.ilcd.io.ZipStore.unmarshal(ZipStore.java:153)
... 7 more
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(ErrorHandlerWrapper.java:203)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
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:1465)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:999)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:243)
... 12 more
Any idea of what I might have to modify in my datasets so that the export works again?
Many thanks in advance!
Jens