Discussion:
[Dspace-tech] DSpace 5.1 - oai 500
Konstantinos Koumoutsos
2015-08-06 07:48:22 UTC
Permalink
Hello

I am using dspace 5.1 and while requesting the oai page
http://nemertes.lis.upatras.gr/oai/request/ i got 500 (logs attached). I
tried the following with no luck.

[***@nemertes html]# /data/dspacenew/bin/dspace oai clean-cache
OAI 2.0 manager action started
Purging cached OAI responses.

[***@nemertes html]# /data/dspacenew/bin/dspace oai import -c
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...
java.lang.IllegalStateException: Can't overwrite cause with
java.io.IOException: Invalid white space character (0x17) 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
(0x17) in text to output
... 23 more
Caused by: java.io.IOException: Invalid white space character (0x17) 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
[***@nemertes html]#

Do you know what that error means?

Many thanks.
Kostas
Konstantinos Koumoutsos
2015-08-17 11:52:03 UTC
Permalink
Hello All.

Any help on this?

Thanks.
Regards
Kostas

On Thu, Aug 6, 2015 at 10:48 AM, Konstantinos Koumoutsos <
Post by Konstantinos Koumoutsos
Hello
I am using dspace 5.1 and while requesting the oai page
http://nemertes.lis.upatras.gr/oai/request/ i got 500 (logs attached). I
tried the following with no luck.
OAI 2.0 manager action started
Purging cached OAI responses.
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...
java.lang.IllegalStateException: Can't overwrite cause with
java.io.IOException: Invalid white space character (0x17) 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
(0x17) in text to output
... 23 more
Caused by: java.io.IOException: Invalid white space character (0x17) 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
Do you know what that error means?
Many thanks.
Kostas
Andrea Schweer
2015-08-17 21:59:35 UTC
Permalink
Hi Kostas,
Post by Konstantinos Koumoutsos
[...]
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid white space
character (0x17) in text to output
I'd guess that this means one of your items has this character in its
metadata. I'm not sure how you'd go about finding the culprit. Is there
any more information in the DSpace log file?

cheers,
Andrea
--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


------------------------------------------------------------------------------
helix84
2015-08-18 07:50:04 UTC
Permalink
Hi Kostas,

I filed a bug report for you, you can click watch to be notified of any
changes:
https://jira.duraspace.org/browse/DS-2705

As it can take some time before someone takes it up to fix it in code,
meanwhile you can try to find and remove the offending character from your
metadata. You can try something like this:

SELECT handle, text_valueFROM metadatavalue, handleWHERE
metadatavalue.resource_id = handle.resource_idAND text_value LIKE
E'%\u0017%';



Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Loading...