Opened 8 years ago

Closed 8 years ago

#541 closed defect (worksforme)

Issues with font handling for jRobin on OpenJDK 1.6.0-23

Reported by: DISABLED Owned by:
Priority: minor Milestone: 0.8.11
Component: unspecified Version: 0.8.10
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

Error 500: /viewstat.jsp Could not initialize class sun.font.FontManager?

java.lang.NoClassDefFoundError?: Could not initialize class sun.font.FontManager?

at sun.java2d.SunGraphicsEnvironment?$2.run(SunGraphicsEnvironment?.java:179)
at java.security.AccessController?.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment?.<init>(SunGraphicsEnvironment?.java:163)
at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:253)
at sun.reflect.NativeConstructorAccessorImpl?.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl?.newInstance(NativeConstructorAccessorImpl?.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl?.newInstance(DelegatingConstructorAccessorImpl?.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at java.awt.GraphicsEnvironment?.getLocalGraphicsEnvironment(GraphicsEnvironment?.java:82)
at java.awt.image.BufferedImage?.createGraphics(BufferedImage?.java:1152)
at org.jrobin.graph.ImageWorker?.resize(Unknown Source)
at org.jrobin.graph.ImageWorker?.<init>(Unknown Source)
at org.jrobin.graph.RrdGraph?.<init>(Unknown Source)
at net.i2p.router.web.SummaryRenderer?.render(SummaryRenderer?.java:170)
at net.i2p.router.web.SummaryListener?.renderPng(SummaryListener?.java:197)
at net.i2p.router.web.StatSummarizer?.locked_renderPng(StatSummarizer?.java:211)
at net.i2p.router.web.StatSummarizer?.renderPng(StatSummarizer?.java:191)
at net.i2p.router.web.jsp.viewstat_jsp._jspService(viewstat_jsp.java:107)
at org.apache.jasper.runtime.HttpJspBase?.service(HttpJspBase?.java:94)
at javax.servlet.http.HttpServlet?.service(HttpServlet?.java:689)
at org.mortbay.jetty.servlet.ServletHolder?.handle(ServletHolder?.java:428)
at org.mortbay.jetty.servlet.WebApplicationHandler?.dispatch(WebApplicationHandler?.java:473)
at org.mortbay.jetty.servlet.ServletHandler?.handle(ServletHandler?.java:568)
at net.i2p.router.web.LocaleWebAppHandler?.handle(LocaleWebAppHandler?.java:90)
at org.mortbay.http.HttpContext?.handle(HttpContext?.java:1535)
at org.mortbay.jetty.servlet.WebApplicationContext?.handle(WebApplicationContext?.java:633)
at org.mortbay.http.HttpContext?.handle(HttpContext?.java:1487)
at org.mortbay.http.HttpServer?.service(HttpServer?.java:909)
at org.mortbay.http.HttpConnection?.service(HttpConnection?.java:820)
at org.mortbay.http.HttpConnection?.handleNext(HttpConnection?.java:986)
at org.mortbay.http.HttpConnection?.handle(HttpConnection?.java:837)
at org.mortbay.http.SocketListener?.handleConnection(SocketListener?.java:245)
at org.mortbay.util.ThreadedServer?.handle(ThreadedServer?.java:357)
at org.mortbay.util.ThreadPool?$PoolThread?.run(ThreadPool?.java:534)


I2P Version and Running Environment

I2P version: 0.8.10-0
Java version: Sun Microsystems Inc. 1.6.0_23 (OpenJDK Runtime Environment 1.6.0_23-b23)
Platform: Linux amd64 3.0.0-1-amd64
Processor: Core i7/i5 (32nm) (corei)
Jbigi: Locally optimized native BigInteger? library loaded from file
Encoding: UTF-8

Note that system information, log timestamps, and log messages may provide clues to your location; please review everything you include in a bug report.

Subtickets

Change History (3)

comment:1 Changed 8 years ago by killyourtv

I've seen this on headless systems without any TrueType? fonts installed.

comment:2 Changed 8 years ago by killyourtv

Going by the kernel version that you pasted, I'm guessing that you may be running Ubuntu or Debian. If you install a TTF package (and restart I2P), this problem will go away. One such package (pulled in automatically by the non-headless openjdk packages) is ttf-dejavu.

comment:3 Changed 8 years ago by killyourtv

Resolution: worksforme
Status: newclosed

Closing this ticket since it's not really a bug: graphing simply needs a ttf font to be available.

Note: See TracTickets for help on using tickets.