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!

Unable to use ORDS 25.1 in container based development environment because of SyntaxError: Unexpected end of input

doberkoflerApr 23 2025 — edited Apr 23 2025

I noticed a major problem in our development environment when using version 24.4 and 25.1.

We have been stuck with version 24.3 because of a bug in the error handling of 24.4 and are now testing 25.1 but it seems as if something would have changed in 24.4 and 25.1 that prevents us again from upgrading.

In our development environment we run ORDS in a container and update the static resources (js, css, …) to our web application using a volume shared between the host and the container.

This basically means that when compiling our Typescript sources the output is put to a directory shared with the container running ORDS and ORDS then uses the standalone jetty server to service the static resources to the web application.

All the way up to version 24.3 this worked as expected but starting with 24.4 something is broken as some of the generated resources are cut off when send back to web browser causing the browser to throw a SyntaxError: Unexpected end of input.

Clearly there is lot can could be causing this problem but when testing we discovered that simply switching back from ORDS 25.1 to 24.3 fixes the problem and this seems a string indicator that the problem relates or is caused by ORDS itself.

It feels like some king of caching problem but guess this is always my goto explanation when investigating this kind of problems.

There are workarounds by for example stopping and starting the ORDS container but this tremendously slows down the development process and basically makes it impossible to work efficiently.

I also noticed that after a second build ORDS reports errors of the following type:

2025-04-23 08:09:21 2025-04-23T06:09:21.462Z INFO writeError: status=500, message=java.nio.file.NoSuchFileException: /opt/ords/doc_root/lj_unittest/chunk-MPJFXMSF.js, response=ErrorResponse@25492137{500,GET@628b117 http://127.0.0.1:8080/q/p/lj_unittest/chunk-MPJFXMSF.js HTTP/1.1}
2025-04-23 08:09:21 java.nio.file.NoSuchFileException: /opt/ords/doc_root/lj_unittest/chunk-MPJFXMSF.js
2025-04-23 08:09:21 at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
2025-04-23 08:09:21 at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
2025-04-23 08:09:21 at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
2025-04-23 08:09:21 at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:261)
2025-04-23 08:09:21 at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
2025-04-23 08:09:21 at java.base/java.nio.file.Files.newByteChannel(Files.java:432)
2025-04-23 08:09:21 at org.eclipse.jetty.io.IOResources$PathToSinkCopier.<init>(IOResources.java:351)
2025-04-23 08:09:21 at org.eclipse.jetty.io.IOResources$PathToSinkCopier.<init>(IOResources.java:345)
2025-04-23 08:09:21 at org.eclipse.jetty.io.IOResources.copy(IOResources.java:255)
2025-04-23 08:09:21 at org.eclipse.jetty.server.ResourceService.writeHttpContent(ResourceService.java:714)
2025-04-23 08:09:21 at org.eclipse.jetty.server.ResourceService.sendData(ResourceService.java:662)
2025-04-23 08:09:21 at org.eclipse.jetty.server.ResourceService.doGet(ResourceService.java:199)
2025-04-23 08:09:21 at org.eclipse.jetty.server.handler.ResourceHandler.handle(ResourceHandler.java:173)
2025-04-23 08:09:21 at oracle.dbtools.standalone.StaticResourcesHandler.handle(StaticResourcesHandler.java:33)
2025-04-23 08:09:21 at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1060)
2025-04-23 08:09:21 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:181)
2025-04-23 08:09:21 at org.eclipse.jetty.server.Handler$Sequence.handle(Handler.java:805)
2025-04-23 08:09:21 at org.eclipse.jetty.server.Handler$Wrapper.handle(Handler.java:740)
2025-04-23 08:09:21 at org.eclipse.jetty.server.handler.EventsHandler.handle(EventsHandler.java:81)
2025-04-23 08:09:21 at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:597)
2025-04-23 08:09:21 at org.eclipse.jetty.server.Server.handle(Server.java:181)
2025-04-23 08:09:21 at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:661)
2025-04-23 08:09:21 at org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:406)
2025-04-23 08:09:21 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322)
2025-04-23 08:09:21 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99)
2025-04-23 08:09:21 at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
2025-04-23 08:09:21 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:478)
2025-04-23 08:09:21 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:441)
2025-04-23 08:09:21 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293)
2025-04-23 08:09:21 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:201)
2025-04-23 08:09:21 at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:311)
2025-04-23 08:09:21 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979)
2025-04-23 08:09:21 at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209)
2025-04-23 08:09:21 at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164)
2025-04-23 08:09:21 at java.base/java.lang.Thread.run(Thread.java:1583)

Any help is appreciated.

Comments
Post Details
Added on Apr 23 2025
8 comments
378 views