Opened 7 years ago

Closed 5 years ago

#743 closed defect (wontfix)

I2P 0.9.2 crashes w/ gij

Reported by: killyourtv Owned by:
Priority: minor Milestone:
Component: wrapper Version: 0.9.2
Keywords: gij Cc: killyourtv@…
Parent Tickets:

Description

In case we care about gij...

java version "1.5.0"
gij (GNU libgcj) version 4.4.5

Router logs set to WARN show:

10/13/12 xx:56:37 p.m. WARN  [impleAppMain] 2p.router.util.DecayingHashSet: New DHS TunnelBMP entryBytes = 32 cycle (s) = 60
10/13/12 xx:56:37 p.m. WARN  [impleAppMain] 2p.router.util.DecayingHashSet: New DHS RouterMV entryBytes = 8 cycle (s) = 120
10/13/12 xx:56:37 p.m. WARN  [impleAppMain] 2p.router.util.DecayingHashSet: New DHS TunnelIVV entryBytes = 16 cycle (s) = 600
10/13/12 xx:56:39 p.m. WARN  [JobQueue 1/1] r.transport.ntcp.NTCPTransport: Starting ntcp transport listening
10/13/12 xx:56:41 p.m. WARN  [JobQueue 1/1] ter.transport.udp.UDPTransport: Need introducers but we don't know any
10/13/12 xx:56:41 p.m. WARN  [JobQueue 1/1] ter.transport.udp.UDPTransport: Wanted to rebuild my SSU address, but couldn't specify either the direct or indirect info (needs introducers? false)
java.lang.Exception: source
   at net.i2p.router.transport.udp.UDPTransport.rebuildExternalAddress(UDPTransport.java:1467)
   at net.i2p.router.transport.udp.UDPTransport.rebuildExternalAddress(UDPTransport.java:1381)
   at net.i2p.router.transport.udp.UDPTransport.startup(UDPTransport.java:268)
   at net.i2p.router.transport.udp.UDPTransport.startListening(UDPTransport.java:1353)
   at net.i2p.router.transport.TransportManager.startListening(TransportManager.java:152)
   at net.i2p.router.transport.CommSystemFacadeImpl.startup(CommSystemFacadeImpl.java:55)
   at net.i2p.router.startup.BootCommSystemJob.runJob(BootCommSystemJob.java:43)
   at net.i2p.router.JobQueueRunner.runCurrentJob(JobQueueRunner.java:138)
   at net.i2p.router.JobQueueRunner.run(JobQueueRunner.java:79)
   at java.lang.Thread.run(libgcj.so.10)
   at net.i2p.util.I2PThread.run(I2PThread.java:85)
10/13/12 xx:56:41 p.m. WARN  [JobQueue 1/1] 2p.router.util.DecayingHashSet: New DHS UDPIMF entryBytes = 4 cycle (s) = 10
10/13/12 xx:56:41 p.m. WARN  [JobQueue 1/1] ter.transport.udp.UDPTransport: Need introducers but we don't know any
10/13/12 xx:56:41 p.m. WARN  [JobQueue 1/1] ter.transport.udp.UDPTransport: Wanted to rebuild my SSU address, but couldn't specify either the direct or indirect info (needs introducers? false)
java.lang.Exception: source
   at net.i2p.router.transport.udp.UDPTransport.rebuildExternalAddress(UDPTransport.java:1467)
   at net.i2p.router.transport.udp.UDPTransport.updateAddress(UDPTransport.java:1377)
   at net.i2p.router.transport.TransportManager.getAddresses(TransportManager.java:337)
   at net.i2p.router.transport.CommSystemFacadeImpl.createAddresses(CommSystemFacadeImpl.java:192)
   at net.i2p.router.Router.rebuildRouterInfo(Router.java:525)
   at net.i2p.router.Router.rebuildRouterInfo(Router.java:508)
   at net.i2p.router.transport.TransportManager.startListening(TransportManager.java:159)
   at net.i2p.router.transport.CommSystemFacadeImpl.startup(CommSystemFacadeImpl.java:55)
   at net.i2p.router.startup.BootCommSystemJob.runJob(BootCommSystemJob.java:43)
   at net.i2p.router.JobQueueRunner.runCurrentJob(JobQueueRunner.java:138)
   at net.i2p.router.JobQueueRunner.run(JobQueueRunner.java:79)
   at java.lang.Thread.run(libgcj.so.10)
   at net.i2p.util.I2PThread.run(I2PThread.java:85)
10/13/12 xx:56:41 p.m. WARN  [JobQueue 1/1] net.i2p.router.JobQueueRunner : Duration of 3148 (lag 8) on job BootCommSystemJob: Job 18: Boot Communication System
10/13/12 xx:56:42 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:43 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:43 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:44 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:46 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:46 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:46 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:47 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:47 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:48 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:48 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:49 p.m. WARN  [nal Reader 1] .client.ClientConnectionRunner: Disconnected
java.lang.Exception: Disconnected?
   at net.i2p.router.client.ClientConnectionRunner.disconnected(ClientConnectionRunner.java:483)
   at net.i2p.router.client.ClientMessageEventListener.disconnected(ClientMessageEventListener.java:128)
   at net.i2p.internal.QueuedI2CPMessageReader$QueuedI2CPMessageReaderRunner.run(QueuedI2CPMessageReader.java:53)
   at java.lang.Thread.run(libgcj.so.10)
   at net.i2p.util.I2PThread.run(I2PThread.java:85)
10/13/12 xx:56:49 p.m. WARN  [nal Reader 1] .client.ClientConnectionRunner: Stop the I2CP connection!  current leaseSet: null
java.lang.Exception: Stop client connection
   at net.i2p.router.client.ClientConnectionRunner.stopRunning(ClientConnectionRunner.java:149)
   at net.i2p.router.client.QueuedClientConnectionRunner.stopRunning(QueuedClientConnectionRunner.java:44)
   at net.i2p.router.client.ClientConnectionRunner.disconnected(ClientConnectionRunner.java:484)
   at net.i2p.router.client.ClientMessageEventListener.disconnected(ClientMessageEventListener.java:128)
   at net.i2p.internal.QueuedI2CPMessageReader$QueuedI2CPMessageReaderRunner.run(QueuedI2CPMessageReader.java:53)
   at java.lang.Thread.run(libgcj.so.10)
   at net.i2p.util.I2PThread.run(I2PThread.java:85)
10/13/12 xx:56:49 p.m. WARN  [nal Reader 1] 2p.router.client.ClientManager: Unregistering (dropping) a client connection
10/13/12 xx:56:50 p.m. WARN  [atSummarizer] .i2p.router.web.StatSummarizer: Graphing not supported with this JVM: Free Software Foundation, Inc. 1.5.0 (null 1.5.0)
10/13/12 xx:56:50 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:50 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:50 p.m. ERROR [7.0.0.1:7657] org.mortbay.jetty.Server      : EXCEPTION 
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
   at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
   at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
   at java.lang.Thread.run(libgcj.so.10)
10/13/12 xx:56:50 p.m. CRIT  [r 1 shutdown] net.i2p.router.Router         : Shutting down the router...
10/13/12 xx:56:50 p.m. CRIT  [r 1 shutdown] net.i2p.router.Router         : Starting final shutdown(3)
10/13/12 xx:56:50 p.m. WARN  [r 1 shutdown] net.i2p.router.Router         : Running shutdown task class net.i2p.util.SimpleTimer$Shutdown
10/13/12 xx:56:50 p.m. WARN  [r 1 shutdown] net.i2p.router.Router         : Running shutdown task class net.i2p.router.util.DecayingBloomFilter$Shutdown
10/13/12 xx:56:50 p.m. WARN  [r 1 shutdown] net.i2p.router.Router         : Running shutdown task class net.i2p.router.util.DecayingBloomFilter$Shutdown
10/13/12 xx:56:50 p.m. WARN  [r 1 shutdown] net.i2p.router.Router         : Running shutdown task class net.i2p.router.time.RouterTimestamper$Shutdown
10/13/12 xx:56:50 p.m. WARN  [r 1 shutdown] net.i2p.router.Router         : Running shutdown task class net.i2p.router.web.RouterConsoleRunner$ServerShutdown
10/13/12 xx:56:50 p.m. WARN  [JobQueue 4/4] net.i2p.router.JobQueue       : Job run too long for job DB Read Job [0ms lag and run time of 11915ms]
10/13/12 xx:56:50 p.m. WARN  [JobQueue 4/4] net.i2p.router.JobQueueRunner : Duration of 11915 (lag 0) on job ReadJob: Job 21: DB Read Job

Subtickets

Change History (8)

comment:1 Changed 7 years ago by zzz

  • Component changed from unspecified to apps/console

From google search:

http://jetty.4.n6.nabble.com/Problems-running-Jetty-on-Ubuntu-td11965.html

http://jira.codehaus.org/browse/JETTY-1238

http://dev.vaadin.com/ticket/2640

"Do not use GCJ with Jetty, it will not work."


Now, that may not be strictly true, we could try using the non-nio Connector. I actually have a patch I've been sitting on to do that for Java 5, as a result of the looping postman and I saw on eepsites. I figured it wasn't worth it though, as how would you overload your console like that... but it's worth a try to fix this issue.

comment:2 Changed 7 years ago by zzz

Reproduced here on gij 4.6.3. Although console came up and worked, sometimes. But I did get lots of the errors as above. Seemed to work fine in JamVM.

Fixed as described above in 0.9.2-15.

There may be keystore issues, I've opened #744 for that.

I also saw multiple NPEs in RouterInfo?.isHidden() that shouldn't be possible. But later they went away.

In logs above, router appears to shut itself down, don't know why, shouldn't happen due to a console problem. Didn't happen for me.

Leaving open for further testing, as there may be multiple additional problems.

comment:3 Changed 7 years ago by zzz

OP confirms that -15 fixes Jetty problem.

Still crashes for OP w/ wrapper; works on runplain. Works for me w/ wrapper (gij 4.3.4 and 4.6.3)

Wrapper debug logs from OP:

:59:45 | read a packet STARTED : 
:59:45 | JVM signaled that it was started.
:59:45 | INFO: Jetty 6.1.26 logging to I2P logs using class org.mortbay.jetty.Server
:59:49 | WrapperManager Debug: Processing control event(WRAPPER_CTRL_HUP_EVENT)
:59:49 | WrapperSimpleApp Debug: controlEvent(205) Stopping
:59:49 | WrapperManager Debug: WrapperManager.stop(0) called by thread: Wrapper-Control-Event-Monitor
:59:49 | WrapperManager Debug: Send a packet STOP : 0
:59:49 | WrapperManager Debug: Pausing for 1,000ms to allow a clean shutdown...
:59:49 | read a packet STOP : 0
:59:49 | JVM requested a shutdown. (0)
:59:49 | wrapperStopProcess(0, FALSE) called.
:59:49 | Sending stop signal to JVM

so it looks like the wrapper is getting a HUP (from the JVM?) But OP says setting wrapper.signal.mode.hup=IGNORE in wrapper.config does not fix it.

Alternative is that our signal handler in routerconsole is getting a HUP - but it spews in router logs if that happens, and we don't see that.

Our 'shutting down the router...' log is from ShutdownHook?, which means somebody killed the JVM, we didn't do it to ourselves.

out of ideas for the moment.

comment:4 Changed 7 years ago by killyourtv

  • Cc killyourtv@… added

Interesting: If the eepsite is enabled, one will see

11/20/12 2:18:06 a.m. ERROR [7.0.0.1:7658] org.mortbay.jetty.Server : EXCEPTION
     java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
     at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
     at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
     at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
     at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
     at java.lang.Thread.run(libgcj.so.10)

...every time the console is loaded. For example, I hit F5 several times and the following was logged.

11/20/12 2:19:51 a.m. ↓↓↓ 1 similar message omitted ↓↓↓
11/20/12 2:19:50 a.m. ERROR [7.0.0.1:7658] org.mortbay.jetty.Server : EXCEPTION
     java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
     at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
     at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
     at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
     at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
     at java.lang.Thread.run(libgcj.so.10)
11/20/12 2:19:49 a.m. ERROR [7.0.0.1:7658] org.mortbay.jetty.Server : EXCEPTION
     java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
     at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
     at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
     at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
     at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
     at java.lang.Thread.run(libgcj.so.10)
11/20/12 2:19:48 a.m. ↓↓↓ 2 similar messages omitted ↓↓↓
11/20/12 2:19:46 a.m. ERROR [7.0.0.1:7658] org.mortbay.jetty.Server : EXCEPTION
     java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
     at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
     at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
     at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
     at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
     at java.lang.Thread.run(libgcj.so.10)
11/20/12 2:19:45 a.m. ↓↓↓ 8 similar messages omitted ↓↓↓
11/20/12 2:19:37 a.m. ERROR [7.0.0.1:7658] org.mortbay.jetty.Server : EXCEPTION
     java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
     at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
     at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
     at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
     at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
     at java.lang.Thread.run(libgcj.so.10)
11/20/12 2:19:36 a.m. ↓↓↓ 27 similar messages omitted ↓↓↓
11/20/12 2:19:09 a.m. ERROR [7.0.0.1:7658] org.mortbay.jetty.Server : EXCEPTION
     java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
     at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:743)
     at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
     at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
     at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.10)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.10)
     at java.lang.Thread.run(libgcj.so.10)

Initially I got these same errors but on port 7657. The eepsite *can* be accessed.

(Reporting in case 'we care' about this).

I2P 0.9.3-0 w/ gij 4.4.5

comment:5 follow-up: Changed 7 years ago by zzz

Related: #715

The console problem was fixed in 0.9.3 as described above and in #715

The eepsite problem requires a manual change to jetty.xml after install and first run. The change is to switch from the NIO to BIO connector. This is documented in the jetty.xml shipped with 0.9.3. See #715 comment 3 for details.

comment:6 in reply to: ↑ 5 Changed 7 years ago by killyourtv

Replying to zzz:

Related: #715

The console problem was fixed in 0.9.3 as described above and in #715

The eepsite problem requires a manual change to jetty.xml after install and first run. The change is to switch from the NIO to BIO connector. This is documented in the jetty.xml shipped with 0.9.3. See #715 comment 3 for details.

Indeed...I just found it kinda surprising that I was getting new NIO errors logged for the eepsite each time that the router console was loaded (but without my accessing the eepsite itself).

comment:7 Changed 6 years ago by zzz

  • Component changed from apps/console to wrapper

Remaining issue is with wrapper - see comment 3 above.

comment:8 Changed 5 years ago by zzz

  • Resolution set to wontfix
  • Status changed from new to closed

I think GCJ/GIJ is pretty much dead. And we now require Java 6 as of 0.9.12.

Note: See TracTickets for help on using tickets.