Opened 9 years ago

Closed 9 years ago

#740 closed defect (not a bug)

ip2 router down

Reported by: DISABLED Owned by:
Priority: major Milestone: 0.9.3
Component: apps/console Version: 0.9.2
Keywords: Cc: Zlatin Balevsky
Parent Tickets: Sensitive: no

Description (last modified by zzz)

Erreur 500: /helpCould not initialize class sun.text.normalizer.NormalizerImpl

java.lang.NoClassDefFoundError: Could not initialize class sun.text.normalizer.NormalizerImpl 
     at Source) 
     at java.text.RBCollationTables.<init>(Unknown Source) 
     at java.text.RuleBasedCollator.<init>(Unknown Source) 
     at java.text.Collator.getInstance(Unknown Source) 
     at java.text.Collator.getInstance(Unknown Source) 
     at net.i2p.router.web.SummaryHelper$ 
     at net.i2p.router.web.SummaryHelper$ 
     at java.util.Arrays.mergeSort(Unknown Source) 
     at java.util.Arrays.sort(Unknown Source) 
     at java.util.Collections.sort(Unknown Source) 
     at net.i2p.router.web.SummaryHelper.getDestinations( 
     at net.i2p.router.web.SummaryBarRenderer.renderDestinationsHTML( 
     at net.i2p.router.web.SummaryBarRenderer.renderSummaryHTML( 
     at net.i2p.router.web.SummaryHelper.renderSummaryBar( 
     at net.i2p.router.web.jsp.help_005ffr_jsp._jspService( 
     at org.apache.jasper.runtime.HttpJspBase.service( 
     at javax.servlet.http.HttpServlet.service( 
     at org.mortbay.jetty.servlet.ServletHolder.handle( 
     at org.mortbay.jetty.servlet.ServletHandler.handle( 
     at org.mortbay.jetty.servlet.SessionHandler.handle( 
     at org.mortbay.jetty.handler.ContextHandler.handle( 
     at org.mortbay.jetty.webapp.WebAppContext.handle( 
     at net.i2p.router.web.LocaleWebAppHandler.handle( 
     at org.mortbay.jetty.handler.ContextHandlerCollection.handle( 
     at org.mortbay.jetty.handler.HandlerCollection.handle( 
     at org.mortbay.jetty.handler.HandlerWrapper.handle( 
     at org.mortbay.jetty.Server.handle( 
     at org.mortbay.jetty.HttpConnection.handleRequest( 
     at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete( 
     at org.mortbay.jetty.HttpParser.parseNext( 
     at org.mortbay.jetty.HttpParser.parseAvailable( 
     at org.mortbay.jetty.HttpConnection.handle( 
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
     at java.util.concurrent.ThreadPoolExecutor$ Source) 
     at Source) 
Version d'I2P & environnement d'exécution

I2P version: 0.9.1-0
Java version: Sun Microsystems Inc.1.6.0_31 (Java(TM) SE Runtime Environment1.6.0_31-b05)
Wrapper version: 3.5.14
Server version: 6.1.26
Platform: Windows 7x866.1
Processor: Core i3 or i5/i7 mobile (32nm) (corei)
Jbigi: Locally optimized native BigInteger library loaded from file
Encoding: Cp1252
Charset: windows-1252


Change History (4)

comment:1 Changed 9 years ago by zzz

Component: unspecifiedapps/console
Description: modified (diff)
Priority: minormajor

Hmm. The error is down in the Java library. From a quick Google search, the only solution I can find is reinstalling Java. But your Java is recent.

We can catch the error but that seems like a big hack. Will keep researching.

comment:2 Changed 9 years ago by zzz

To elaborate on the proposed solution, we would catch the Error and fall back to String.compareTo(). Or have a centralized static test, e.g.:

static final boolean collatorGood;
try {
    collatorGood = true;
} catch (Throwable t) {
    collatorGood = false;

    if (collatorGood)

comment:3 Changed 9 years ago by Zlatin Balevsky

Cc: Zlatin Balevsky added

NoClassDefFound usually means corrupt installation. Add workarounds only if a clean reinstall doesn't fix it, but windows users should make sure they get their java from and not any third-party packaging/deployment/update service.

comment:4 Changed 9 years ago by zzz

Resolution: not a bug
Status: newclosed

Yeah, thanks zab. For a minute there I liked my workaround (who doesn't love a good hack?) but it's really bad to start working around faulty JVM installations.

@OP, sorry, please reinstall Java, from

Note: See TracTickets for help on using tickets.