0 Replies Latest reply on Dec 31, 2002 6:24 PM by Guy Rouillier

    Exception if Jetty port changed while running

    Guy Rouillier Newbie

      I downloaded 3.0.4 binary, unzipped on Windows 2000 Pro, and ran it. Jetty couldn't bind its address 8080 because that was already in use. So I went into

      \jboss-3.0.4\server\default\deploy\jbossweb.sar\META-INF

      and modified jboss-service.xml to changed Jetty's port to 8085. To my surprise, it restarted itself successfully. I let it sit for about a minute, then I started up jmx-console. I got the exception at the bottom of this message. I then stopped JBoss and restarted it - this exception did not reappear. So it seems to only happen if you change Jetty's port while JBoss is running. And it only seems to happen if you start jmx-console (maybe starting anything - but not if you just leave JBoss idle).

      2002-12-31 18:05:22,121 ERROR [STDERR] java.lang.IllegalAccessError: try to access class org.mortbay.util.ByteArrayPool$Pool from class org.mortbay.util.ByteArrayPool
      2002-12-31 18:05:22,131 ERROR [STDERR] at org.mortbay.util.ByteArrayPool.returnByteArray(ByteArrayPool.java:74)
      2002-12-31 18:05:22,141 ERROR [STDERR] at org.mortbay.util.LineInput.destroy(LineInput.java:656)
      2002-12-31 18:05:22,151 ERROR [STDERR] at org.mortbay.http.ChunkableInputStream.destroy(ChunkableInputStream.java:188)
      2002-12-31 18:05:22,161 ERROR [STDERR] at org.mortbay.http.HttpConnection.destroy(HttpConnection.java:1119)
      2002-12-31 18:05:22,181 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:829)
      2002-12-31 18:05:22,181 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
      2002-12-31 18:05:22,191 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
      2002-12-31 18:05:22,201 ERROR [STDERR] at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
      2002-12-31 18:05:22,221 ERROR [STDERR] at java.lang.Thread.run(Thread.java:484)
      2002-12-31 18:05:22,411 ERROR [STDERR] java.lang.IllegalAccessError: try to access class org.mortbay.util.ByteArrayPool$Pool from class org.mortbay.util.ByteArrayPool
      2002-12-31 18:05:22,421 ERROR [STDERR] at org.mortbay.util.ByteArrayPool.returnByteArray(ByteArrayPool.java:74)
      2002-12-31 18:05:22,431 ERROR [STDERR] at org.mortbay.util.LineInput.destroy(LineInput.java:656)
      2002-12-31 18:05:22,441 ERROR [STDERR] at org.mortbay.http.ChunkableInputStream.destroy(ChunkableInputStream.java:188)
      2002-12-31 18:05:22,451 ERROR [STDERR] at org.mortbay.http.HttpConnection.destroy(HttpConnection.java:1119)
      2002-12-31 18:05:22,461 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:829)
      2002-12-31 18:05:22,481 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
      2002-12-31 18:05:22,491 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
      2002-12-31 18:05:22,501 ERROR [STDERR] at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
      2002-12-31 18:05:22,511 ERROR [STDERR] at java.lang.Thread.run(Thread.java:484)