ShinyProxy: Controls unresponsive and screen goes gray

Hi,

This is a similar symptom to other posts on here but i suspect its not the same.

Originally I was running SP behind NGINX with ssl and Keycloak auth but I’ve stripped it right back. SP runs stand alone of port 80, no SSL, no authentication and no proxy. Still I get the page load with plots populated with data but the controls to filter data have no influence on what I see and eventually the screen goes grey, similar to activity timeout, except it is after a minute or so. In my ShinyProxy log i have the following:

019-03-07 13:44:54.080 INFO 25684 — [ XNIO-2 task-2] c.s.docker.client.DefaultDockerClient : Starting container with Id: bf65aee567d65bd8f09be424b3370c5ff82a419b0cdd847db2a1bda8293f4566
2019-03-07 13:44:56.499 WARN 25684 — [ XNIO-2 task-2] e.o.shinyproxy.ShinyProxyTestStrategy : Container unresponsive, trying again (2/10): http://localhost:20000
2019-03-07 13:44:58.742 INFO 25684 — [ XNIO-2 task-2] e.o.containerproxy.service.ProxyService : Proxy activated [user: TshNCdgMYugt5Atnk0qv65PN4Um3QC97XU2Bb007] [spec: 01_Prescribing] [id: 846f09fa-7fda-465b-b458-0679f95f736a]
2019-03-07 13:45:05.705 ERROR 25684 — [ XNIO-2 I/O-1] org.xnio.listener : XNIO001007: A channel event listener threw an exception

java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
at eu.openanalytics.containerproxy.util.DelegatingStreamSourceConduit.read(DelegatingStreamSourceConduit.java:117) ~[containerproxy-0.5.0.jar!/:0.5.0]
at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at io.undertow.util.Transfer$TransferListener.handleEvent(Transfer.java:212) ~[undertow-core-1.4.22.Final.jar!/:1.4.22.Final]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [xnio-nio-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.nio.WorkerThread.run(WorkerThread.java:561) [xnio-nio-3.3.8.Final.jar!/:3.3.8.Final]

i have the follow repeated 11 times
9-03-07 13:46:02.402 ERROR 25684 — [ XNIO-2 I/O-1] org.xnio.listener : XNIO001007: A channel event listener threw an exception

java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
at eu.openanalytics.containerproxy.util.DelegatingStreamSourceConduit.read(DelegatingStreamSourceConduit.java:117) ~[containerproxy-0.5.0.jar!/:0.5.0]
at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at io.undertow.util.Transfer$TransferListener.handleEvent(Transfer.java:212) ~[undertow-core-1.4.22.Final.jar!/:1.4.22.Final]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [xnio-nio-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.nio.WorkerThread.run(WorkerThread.java:561) [xnio-nio-3.3.8.Final.jar!/:3.3.8.Final]

finally it stops the container after it has been active for only 2 minutes AND i had interacted with it:

019-03-07 13:46:05.526 INFO 25684 — [tiveProxyKiller] e.o.c.service.HeartbeatService : Releasing inactive proxy [user: TshNCdgMYugt5Atnk0qv65PN4Um3QC97XU2Bb007] [spec: 01_Prescribing] [id: 846f09fa-7fda-465b-b458-0679f95f736a] [silence: 64556ms]
2019-03-07 13:46:05.569 ERROR 25684 — [ XNIO-2 I/O-1] org.xnio.listener : XNIO001007: A channel event listener threw an exception

java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
at eu.openanalytics.containerproxy.util.DelegatingStreamSourceConduit.read(DelegatingStreamSourceConduit.java:117) ~[containerproxy-0.5.0.jar!/:0.5.0]
at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at io.undertow.util.Transfer$TransferListener.handleEvent(Transfer.java:212) ~[undertow-core-1.4.22.Final.jar!/:1.4.22.Final]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [xnio-nio-3.3.8.Final.jar!/:3.3.8.Final]
at org.xnio.nio.WorkerThread.run(WorkerThread.java:561) [xnio-nio-3.3.8.Final.jar!/:3.3.8.Final]

2019-03-07 13:46:05.768 INFO 25684 — [pool-2-thread-1] e.o.containerproxy.service.ProxyService : Proxy released [user: TshNCdgMYugt5Atnk0qv65PN4Um3QC97XU2Bb007] [spec: 01_Prescribing] [id: 846f09fa-7fda-465b-b458-0679f95f736a]

nothing in the containers stderr log beside regular attaching package and listening on 0.0.0.0:3838

and nothing additional in stdout

Any help you can provide would be awesome.

Hi @edd,

Are you using Java 9? If so, can you give it a try with Java 8?

I am using Java 8

I have temporarily fixed this by using the previous .jar i had. I built manually from source