java.io.IOException: Error parsing foxml:xmlContent

Sakai JIRA | Javier Molina | 3 years ago
  1. 0

    Hi all, I am working with fscu to try to migrate from legacy to akubra low level storage. I configured both lls appropriately and run the command below. /opt/fedora/fedora-3.6/fcrepo-store-util-0.1.0-SNAPSHOT/bin$ ./fcsu copy legacy akubra Then after sometime (I think it uses a DB to stage the file names to transfer) I can see messages about the transfer progress, however I see messages, like the one at the end of the e-mail, very often after some examination it seems that objects that contain an xml entry for audit:auditTrail won't work and just be ignored by fscu. Has anyone have some advice on how to make fscu work properly with those entries? Thanks, Javier WARN Error parsing Fedora object; ignoring: 2009/0325/16/31/changeme_70 java.io.IOException: Error parsing foxml:xmlContent at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readXMLContent(FOXMLReader.java:220) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readDatastreamVersion(FOXMLReader.java:158) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readDatastream(FOXMLReader.java:128) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readObject(FOXMLReader.java:86) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readObject(FOXMLReader.java:70) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.legacy.Util.readObject(Util.java:37) ~[fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.legacy.LegacyFedoraStore$1.computeNext(LegacyFedoraStore.java:188) [fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.legacy.LegacyFedoraStore$1.computeNext(LegacyFedoraStore.java:182) [fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:136) [guava-collections-r03.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:131) [guava-collections-r03.jar:na] at com.github.cwilper.fcrepo.store.util.commands.BatchObjectCommand.execute(BatchObjectCommand.java:29) [fcrepo-store-util-0.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.util.StoreUtil.execute(StoreUtil.java:43) [fcrepo-store-util-0.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.util.StoreUtil.main(StoreUtil.java:51) [fcrepo-store-util-0.1.0-SNAPSHOT.jar:na] Caused by: java.io.IOException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The prefix "audit" for element "audit:auditTrail" is not bound. at com.github.cwilper.fcrepo.dto.core.io.XMLUtil.prettyPrint(XMLUtil.java:124) ~[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.core.io.XMLUtil.prettyPrint(XMLUtil.java:102) ~[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.core.InlineXML.<init>(InlineXML.java:66) ~[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readXMLContent(FOXMLReader.java:218) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] ... 12 common frames omitted Caused by: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The prefix "audit" for element "audit:auditTrail" is not bound. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:723) ~[na:1.6.0_27] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317) ~[na:1.6.0_27] at com.github.cwilper.fcrepo.dto.core.io.XMLUtil.prettyPrint(XMLUtil.java:119) ~[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na] ... 15 common frames omitted Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The prefix "audit" for element "audit:auditTrail" is not bound. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:550) ~[na:1.6.0_27] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:713) ~[na:1.6.0_27] ... 17 common frames omitted Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The prefix "audit" for element "audit:auditTrail" is not bound. at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:450) ~[na:1.6.0_27] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:238) ~[na:1.6.0_27] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:528) ~[na:1.6.0_27] ... 18 common frames omitted

    Sakai JIRA | 3 years ago | Javier Molina
    java.io.IOException: Error parsing foxml:xmlContent
  2. 0

    Hi all, I am working with fscu to try to migrate from legacy to akubra low level storage. I configured both lls appropriately and run the command below. /opt/fedora/fedora-3.6/fcrepo-store-util-0.1.0-SNAPSHOT/bin$ ./fcsu copy legacy akubra Then after sometime (I think it uses a DB to stage the file names to transfer) I can see messages about the transfer progress, however I see messages, like the one at the end of the e-mail, very often after some examination it seems that objects that contain an xml entry for audit:auditTrail won't work and just be ignored by fscu. Has anyone have some advice on how to make fscu work properly with those entries? Thanks, Javier WARN Error parsing Fedora object; ignoring: 2009/0325/16/31/changeme_70 java.io.IOException: Error parsing foxml:xmlContent at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readXMLContent(FOXMLReader.java:220) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readDatastreamVersion(FOXMLReader.java:158) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readDatastream(FOXMLReader.java:128) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readObject(FOXMLReader.java:86) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readObject(FOXMLReader.java:70) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.legacy.Util.readObject(Util.java:37) ~[fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.legacy.LegacyFedoraStore$1.computeNext(LegacyFedoraStore.java:188) [fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.legacy.LegacyFedoraStore$1.computeNext(LegacyFedoraStore.java:182) [fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:136) [guava-collections-r03.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:131) [guava-collections-r03.jar:na] at com.github.cwilper.fcrepo.store.util.commands.BatchObjectCommand.execute(BatchObjectCommand.java:29) [fcrepo-store-util-0.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.util.StoreUtil.execute(StoreUtil.java:43) [fcrepo-store-util-0.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.store.util.StoreUtil.main(StoreUtil.java:51) [fcrepo-store-util-0.1.0-SNAPSHOT.jar:na] Caused by: java.io.IOException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The prefix "audit" for element "audit:auditTrail" is not bound. at com.github.cwilper.fcrepo.dto.core.io.XMLUtil.prettyPrint(XMLUtil.java:124) ~[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.core.io.XMLUtil.prettyPrint(XMLUtil.java:102) ~[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.core.InlineXML.<init>(InlineXML.java:66) ~[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na] at com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readXMLContent(FOXMLReader.java:218) ~[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na] ... 12 common frames omitted Caused by: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The prefix "audit" for element "audit:auditTrail" is not bound. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:723) ~[na:1.6.0_27] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317) ~[na:1.6.0_27] at com.github.cwilper.fcrepo.dto.core.io.XMLUtil.prettyPrint(XMLUtil.java:119) ~[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na] ... 15 common frames omitted Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The prefix "audit" for element "audit:auditTrail" is not bound. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:550) ~[na:1.6.0_27] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:713) ~[na:1.6.0_27] ... 17 common frames omitted Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The prefix "audit" for element "audit:auditTrail" is not bound. at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:450) ~[na:1.6.0_27] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:238) ~[na:1.6.0_27] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:528) ~[na:1.6.0_27] ... 18 common frames omitted

    Sakai JIRA | 3 years ago | Javier Molina
    java.io.IOException: Error parsing foxml:xmlContent
  3. 0

    iDART / Mailing Lists

    sourceforge.net | 1 year ago
    javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The content of elements must consist of well-formed character data or markup.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem generating pdfs with acts_as_flying_saucer

    Stack Overflow | 6 years ago | Max Williams
    org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException: Premature end of file.
  6. 0

    Reference is not allowed in prolog

    Stack Overflow | 2 years ago | sunleo
    org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2; Reference is not allowed in prolog.

  1. Tahir 1 times, last 4 months ago
14 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.sun.org.apache.xml.internal.utils.WrappedRuntimeException

    The prefix "audit" for element "audit:auditTrail" is not bound.

    at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM()
  2. Java RT
    TransformerImpl.transform
    1. com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:450)[na:1.6.0_27]
    2. com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:238)[na:1.6.0_27]
    3. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:528)[na:1.6.0_27]
    4. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:713)[na:1.6.0_27]
    5. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317)[na:1.6.0_27]
    5 frames
  3. com.github.cwilper
    LegacyFedoraStore$1.computeNext
    1. com.github.cwilper.fcrepo.dto.core.io.XMLUtil.prettyPrint(XMLUtil.java:119)[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na]
    2. com.github.cwilper.fcrepo.dto.core.io.XMLUtil.prettyPrint(XMLUtil.java:102)[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na]
    3. com.github.cwilper.fcrepo.dto.core.InlineXML.<init>(InlineXML.java:66)[fcrepo-dto-core-1.1.0-SNAPSHOT.jar:na]
    4. com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readXMLContent(FOXMLReader.java:218)[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na]
    5. com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readDatastreamVersion(FOXMLReader.java:158)[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na]
    6. com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readDatastream(FOXMLReader.java:128)[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na]
    7. com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readObject(FOXMLReader.java:86)[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na]
    8. com.github.cwilper.fcrepo.dto.foxml.FOXMLReader.readObject(FOXMLReader.java:70)[fcrepo-dto-foxml-1.1.0-SNAPSHOT.jar:na]
    9. com.github.cwilper.fcrepo.store.legacy.Util.readObject(Util.java:37)[fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na]
    10. com.github.cwilper.fcrepo.store.legacy.LegacyFedoraStore$1.computeNext(LegacyFedoraStore.java:188)[fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na]
    11. com.github.cwilper.fcrepo.store.legacy.LegacyFedoraStore$1.computeNext(LegacyFedoraStore.java:182)[fcrepo-store-legacy-0.1.0-SNAPSHOT.jar:na]
    11 frames
  4. Guava
    AbstractIterator.hasNext
    1. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:136)[guava-collections-r03.jar:na]
    2. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:131)[guava-collections-r03.jar:na]
    2 frames
  5. com.github.cwilper
    StoreUtil.main
    1. com.github.cwilper.fcrepo.store.util.commands.BatchObjectCommand.execute(BatchObjectCommand.java:29)[fcrepo-store-util-0.1.0-SNAPSHOT.jar:na]
    2. com.github.cwilper.fcrepo.store.util.StoreUtil.execute(StoreUtil.java:43)[fcrepo-store-util-0.1.0-SNAPSHOT.jar:na]
    3. com.github.cwilper.fcrepo.store.util.StoreUtil.main(StoreUtil.java:51)[fcrepo-store-util-0.1.0-SNAPSHOT.jar:na]
    3 frames