Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use branch to test generating MarcXml by passing data through Metamorph #2

Merged
merged 1 commit into from
May 18, 2020

Conversation

dr0i
Copy link
Contributor

@dr0i dr0i commented May 18, 2020

@hagbeck hagbeck merged commit c1bd09b into hagbeck:master May 18, 2020
@hagbeck
Copy link
Owner

hagbeck commented May 18, 2020

I've merged your PR. And it works fine with the test data. Now I've applied the solution to a part of the target data and get an NPE in org.metafacture.biblio.marc21.MarcXmlEncoder.literal(MarcXmlEncoder.java:181)

Exception in thread "main" org.metafacture.metamorph.MetamorphException: Error while exectuing the Metamorph transformation pipeline: null
at org.metafacture.metamorph.DefaultErrorHandler.error(DefaultErrorHandler.java:33)
at org.metafacture.metamorph.Metamorph.send(Metamorph.java:329)
at org.metafacture.metamorph.Metamorph.dispatch(Metamorph.java:312)
at org.metafacture.metamorph.Metamorph$1.literal(Metamorph.java:200)
at org.metafacture.mangling.StreamFlattener.literal(StreamFlattener.java:105)
at org.metafacture.metamorph.Metamorph.literal(Metamorph.java:287)
at org.metafacture.biblio.marc21.MarcXmlHandler.startElement(MarcXmlHandler.java:63)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
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.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at org.metafacture.xml.XmlDecoder.process(XmlDecoder.java:65)
at org.metafacture.xml.XmlDecoder.process(XmlDecoder.java:42)
at org.metafacture.io.FileOpener.process(FileOpener.java:91)
at org.metafacture.io.FileOpener.process(FileOpener.java:40)
at org.metafacture.flux.parser.StringSender.process(StringSender.java:38)
at org.metafacture.flux.parser.Flow.start(Flow.java:110)
at org.metafacture.flux.parser.FluxProgramm.start(FluxProgramm.java:156)
at org.metafacture.runner.Flux.main(Flux.java:79)
Caused by: java.lang.NullPointerException
at org.metafacture.biblio.marc21.MarcXmlEncoder.literal(MarcXmlEncoder.java:181)
at org.metafacture.metamorph.Metamorph.receive(Metamorph.java:369)
at org.metafacture.metamorph.Data.receive(Data.java:36)
at org.metafacture.metamorph.Metamorph.send(Metamorph.java:327)
... 23 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants