[Dspace-tech] error running oai import

12 views
Skip to first unread message

Jose Blanco

unread,
Aug 26, 2015, 2:32:14 PM8/26/15
to Dspace-Tech
Not sure what is causing this:

[Fatal Error] :22:134: The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "atom:entry" is not bound.
SystemId Unknown; Line #22; Column #134; org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 134; The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "atom:entry" is not bound.
OAI 2.0 manager action started
Clearing index
Index cleared
Using full import.
Full import
100 items imported so far...
200 items imported so far...
300 items imported so far...
400 items imported so far...
500 items imported so far...
600 items imported so far...
700 items imported so far...
800 items imported so far...
900 items imported so far...
1000 items imported so far...
1100 items imported so far...
1200 items imported so far...
1300 items imported so far...
1400 items imported so far...
java.lang.IllegalStateException: Can't overwrite cause with java.io.IOException: Invalid white space character (0x1) in text to output
        at java.lang.Throwable.initCause(Throwable.java:456)
        at com.ctc.wstx.compat.Jdk14Impl.setInitCause(Jdk14Impl.java:70)
        at com.ctc.wstx.exc.WstxException.<init>(WstxException.java:46)
        at com.ctc.wstx.exc.WstxIOException.<init>(WstxIOException.java:16)
        at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:505)
        at com.lyncode.xoai.dataprovider.xml.xoai.Element$Field.write(Element.java:204)
        at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
        at com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:220)
        at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
        at com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223)
        at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
        at com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223)
        at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
        at com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223)
        at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
        at com.lyncode.xoai.dataprovider.xml.xoai.Metadata.write(Metadata.java:95)
        at org.dspace.xoai.app.XOAI.index(XOAI.java:276)
        at org.dspace.xoai.app.XOAI.index(XOAI.java:211)
        at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:198)
        at org.dspace.xoai.app.XOAI.index(XOAI.java:131)
        at org.dspace.xoai.app.XOAI.main(XOAI.java:405)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid white space character (0x1) in text to output
        ... 23 more
Caused by: java.io.IOException: Invalid white space character (0x1) in text to output
        at com.ctc.wstx.sw.XmlWriter.throwInvalidChar(XmlWriter.java:525)
        at com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:501)
        at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:503)
        ... 22 more

Jose Blanco

unread,
Aug 26, 2015, 2:32:27 PM8/26/15
to Dspace-Tech
I found the problem. I had items that did not have metadata in my test environment.

-Jose
Reply all
Reply to author
Forward
0 new messages