404 Not found and in Log SEVERE: null java.lang.NullPointerException at oracle.dbtools.common.util.URIs.normalizeBackslashes(URIs.java:490) Using ORDS to Access APEX 5 (Doc ID 2259120.1)

Last updated on APRIL 30, 2017

Applies to:

Oracle REST Data Services - Version 3.0.9 and later
Information in this document applies to any platform.

Symptoms

On : ORDS 3..X


When attempting to access APEX 5 or the images URL using ORDS running in Standalone mode the following error occurs.

ERROR
-----------------------
404 Not Found

and in screen log

<DATE/TIME> :INFO:oejs.Server:main: Started @345979ms
<DATE/TIME> oracle.dbtools.standalone.JettyDefaultHandler handle
SEVERE: null
java.lang.NullPointerException
at oracle.dbtools.common.util.URIs.normalizeBackslashes(URIs.java:490)
at oracle.dbtools.common.util.URIs.normalize(URIs.java:472)
at oracle.dbtools.common.util.URIs.resolve(URIs.java:205)
at oracle.dbtools.standalone.JettyDefaultHandler.permanentRedirect(JettyDefaultHandler.java:181)
at oracle.dbtools.standalone.JettyDefaultHandler.handle(JettyDefaultHandler.java:90)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98)
at org.eclipse.jetty.server.Server.handle(Server.java:461)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
at java.lang.Thread.run(Thread.java:745)

....


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1.Configure ORDS to access APEX
2. Start it in Standalone mode
3.Enter the images URL or apex URL and  get 404 error for all of them


Changes

Recently installed this ORDS to access APEX

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms