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

Playground ist stuck when namespace option is missing #571

Open
TobiasNx opened this issue Nov 18, 2024 · 0 comments
Open

Playground ist stuck when namespace option is missing #571

TobiasNx opened this issue Nov 18, 2024 · 0 comments

Comments

@TobiasNx
Copy link
Contributor

TobiasNx commented Nov 18, 2024

When trying to handle-marcxml without configuring the namespace but that has no namespace the playground stucks in an endless procession window.

When trying to run this code on the CLI, the process breaks:

$ '/home/tobias/Downloads/metafix-runner-1.1.2/bin/metafix-runner' '/home/tobias/Downloads/Unbenannter Ordner/playground.flux' 
Exception in thread "main" java.lang.AssertionError: unknown or unexpected state: IN_STREAM
	at org.metafacture.biblio.marc21.Marc21Encoder.literal(Marc21Encoder.java:195)
	at org.metafacture.biblio.marc21.MarcXmlHandler.endElement(MarcXmlHandler.java:135)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:618)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1728)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2899)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
	at org.metafacture.xml.XmlDecoder.process(XmlDecoder.java:73)
	at org.metafacture.xml.XmlDecoder.process(XmlDecoder.java:44)
	at org.metafacture.io.FileOpener.process(FileOpener.java:158)
	at org.metafacture.io.FileOpener.process(FileOpener.java:41)
	at org.metafacture.flux.parser.StringSender.process(StringSender.java:43)
	at org.metafacture.flux.parser.Flow.start(Flow.java:118)
	at org.metafacture.flux.parser.FluxProgramm.start(FluxProgramm.java:168)
	at org.metafacture.runner.Flux.main(Flux.java:87)

It seems that something is not correct here.

This issue was reported by hbz Verbundgruppe in context of #569 and by @dr0i in context of #567

@dr0i dr0i changed the title Strange exception (which is not catched by playground) due to missing namespace option Exception not catched by playground when namespace option is missing Nov 18, 2024
@dr0i dr0i changed the title Exception not catched by playground when namespace option is missing Playground ist stuck when namespace option is missing Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant