Opened 6 years ago

Closed 6 years ago

#918 closed defect (not a bug)

Ошибка 500: /config.jsp INTERNAL_SERVER_ERROR

Reported by: DISABLED Owned by:
Priority: major Milestone: 0.9.6
Component: api/crypto Version: 0.9.5
Keywords: Cc:
Parent Tickets: Sensitive: no

Description (last modified by zzz)

java.lang.NullPointerException
     at gnu.crypto.prng.AsyncFortunaStandalone.rotateBuffer(AsyncFortunaStandalone.java:113)
     at gnu.crypto.prng.AsyncFortunaStandalone.fillBlock(AsyncFortunaStandalone.java:156)
     at gnu.crypto.prng.BasePRNGStandalone.nextByteInternal(BasePRNGStandalone.java:167)
     at gnu.crypto.prng.BasePRNGStandalone.nextByte(BasePRNGStandalone.java:105)
     at net.i2p.util.FortunaRandomSource.nextBits(FortunaRandomSource.java:237)
     at net.i2p.util.FortunaRandomSource.signedNextLong(FortunaRandomSource.java:148)
     at net.i2p.util.FortunaRandomSource.nextLong(FortunaRandomSource.java:141)
     at net.i2p.router.web.FormHandler.getNewNonce(FormHandler.java:241)
     at net.i2p.router.web.jsp.config_jsp._jspService(config_jsp.java:399)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
     at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
     at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
     at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
     at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
     at net.i2p.router.web.LocaleWebAppHandler.handle(LocaleWebAppHandler.java:93)
     at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
     at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
     at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
     at org.mortbay.jetty.Server.handle(Server.java:326)
     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
     at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
     at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(libgcj.so.13)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(libgcj.so.13)
     at java.lang.Thread.run(libgcj.so.13)
=========
I2P version: 0.9.5-0-deb1q1
Java version: Free Software Foundation, Inc. 1.5.0 (null 1.5.0)
Wrapper version: none
Server version: 6.1.26
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux x86_64 3.5.0-27-generic
Processor: Mobile Athlon II/Turion II/Phenom II/Sempron/V-series (Regor/Caspian/Champlain, 45 nm) (athlon64)
Jbigi: Locally optimized native BigInteger library loaded from file
Encoding: UTF-8
Charset: UTF-8

Subtickets

Change History (3)

comment:1 Changed 6 years ago by killyourtv

You'll have much better luck with OpenJDK. The Debian packages depend on

openjdk-6-jre-headless | openjdk-7-jre-headless | default-jre-headless | java5-runtime-headless | java6-runtime-headless

and in Quantal default-jre pulls in openjdk-7-jre, so openjdk should be installed. You can change the default java with

sudo update-alternatives --config java

comment:2 Changed 6 years ago by zzz

Component: router/generalapi/crypto
Description: modified (diff)

Agreed. This NPE is "impossible" (_fullBuffers at line 113 is final and therefore can't be null). A bug in the horrible Gnu gij.

Please switch to OpenJDK and report results.

comment:3 Changed 6 years ago by zzz

Resolution: not a bug
Status: newclosed

Assuming this is a gij bug.

Note: See TracTickets for help on using tickets.