OAI 500 Error

75 views
Skip to first unread message

Joyner Library

unread,
Feb 17, 2025, 5:13:38 PM2/17/25
to DSpace Technical Support
Dear DSpace Community,

We got a report that someone was trying to access oai records at

https://thescholarship.ecu.edu/server/oai/request?verb=ListRecords&metadataPrefix=oai_dc&set=com_10342_122

but received a 500 error. Please help me troubleshoot this error.

I noticed an error in the tomcat logs but don't know what file or record to edit.
  SXXP0003: Error reported by XML parser: Invalid byte 1 of 1-byte UTF-8 sequence.
Error on line 7 column 158
  SXXP0003: Error reported by XML parser: Invalid byte 1 of 1-byte UTF-8 sequence.
Error on line 1 column 2084 

I have attached the dspace log because it has a more detailed version of the error.

Thank you,
Nick
dspace-log-2025-02-17.txt

Nurminen, Miika

unread,
Feb 24, 2025, 12:16:54 PM2/24/25
to dspac...@googlegroups.com
Hello Nick,

OAI configuration is located under dspace/config/crosswalks/oai

All of these files are XML (or XML-based XSL Transformations), so the
error message implies that some the these XML files is invalid.
Candidates include

- xoai.xml or description.xml that include general configuration e.g.
regarding metadata formats, or
- metadataFormats/oai_dc.xsl that provides the logic for oai_dc format.

Please check these with XML validator/parser and correct if needed - or
compare with default ones such as
https://github.com/DSpace/DSpace/blob/dspace-7_x/dspace/config/crosswalks/oai/metadataFormats/oai_dc.xsl

More details on OAI implementation:
https://wiki.lyrasis.org/display/DSDOC7x/OAI+2.0+Server


Best regards,
Miika Nurminen

On 18.2.2025 0:13, Joyner Library wrote:
> Dear DSpace Community,
>
> We got a report that someone was trying to access oai records at
>
> https://thescholarship.ecu.edu/server/oai/request?
> verb=ListRecords&metadataPrefix=oai_dc&set=com_10342_122 <https://
> thescholarship.ecu.edu/server/oai/request?
> verb=ListRecords&metadataPrefix=oai_dc&set=com_10342_122>
>
> but received a 500 error. Please help me troubleshoot this error.
>
> I noticed an error in the tomcat logs but don't know what file or record
> to edit.
>   SXXP0003: Error reported by XML parser: Invalid byte 1 of 1-byte
> UTF-8 sequence.
> Error on line 7 column 158
>   SXXP0003: Error reported by XML parser: Invalid byte 1 of 1-byte
> UTF-8 sequence.
> Error on line 1 column 2084
>
> I have attached the dspace log because it has a more detailed version of
> the error.
>
> Thank you,
> Nick
>
> --
> All messages to this mailing list should adhere to the Code of Conduct:
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx <https://
> www.lyrasis.org/about/Pages/Code-of-Conduct.aspx>
> ---
> You received this message because you are subscribed to the Google
> Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dspace-tech...@googlegroups.com <mailto:dspace-
> tech+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/dspace-
> tech/9fee7789-59c3-424a-af91-4a87b77f2ed0n%40googlegroups.com <https://
> groups.google.com/d/msgid/dspace-tech/9fee7789-59c3-424a-
> af91-4a87b77f2ed0n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Andrew Thompson

unread,
Feb 24, 2025, 5:29:25 PM2/24/25
to DSpace Technical Support
I'd also check that your XML files are encoded correctly using UTF-8.
Reply all
Reply to author
Forward
0 new messages