Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

500 Internal Server Error displaying pdf, xls, and other content-type after migrating from mod_plsql

medlocrfApr 23 2020 — edited Apr 23 2020

ORDS 18.4

Tomcat 8.5.31

openjdk version "1.8.0_242"

Migrated from mod_plsql to ORDS 18.4 and one application fails to display various documents stored in the database.  With the following error:

InternalServerException [statusCode=500, reasons=[An unexpected error with the following message occurred: application/pdf;]]

at oracle.dbtools.http.errors.ServletResponseExceptionMapper.mapError(ServletResponseExceptionMapper.java:89)

at oracle.dbtools.http.errors.ErrorPageRenderer.<init>(ErrorPageRenderer.java:43)

It seems to be appending a semicolon to the Content-type:

==== Headers from Results ====

Content-type: application/pdf;

Content-Length: 144699

I'm not sure why it's adding the semicolon and how I can get rid of it - assuming that is the issue.  Any help?

Comments

Post Details

Added on Apr 23 2020
1 comment
134 views