Opened 2 years ago

Closed 22 months ago

#2507 closed defect (fixed)

Imagegen fails on Java 11

Reported by: Reportage Owned by:
Priority: minor Milestone: 0.9.41
Component: apps/other Version: 0.9.40
Keywords: imagegen, java 11 Cc:
Parent Tickets: Sensitive: no


Error 500: /imagegen/id java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE

java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
     at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
     at java.desktop/java.awt.image.BufferedImage.createGraphics(
     at com.docuverse.identicon.NineBlockIdenticonRenderer2.renderQuilt(
     at com.docuverse.identicon.NineBlockIdenticonRenderer2.render(
     at net.i2p.imagegen.IdenticonServlet.doGet(
     at javax.servlet.http.HttpServlet.service(
     at javax.servlet.http.HttpServlet.service(
     at org.eclipse.jetty.servlet.ServletHolder.handle(
     at org.eclipse.jetty.servlet.ServletHandler.doHandle(
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(
     at org.eclipse.jetty.server.session.SessionHandler.doHandle(
     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
     at org.eclipse.jetty.servlet.ServletHandler.doScope(
     at org.eclipse.jetty.server.session.SessionHandler.doScope(
     at org.eclipse.jetty.server.handler.ContextHandler.doScope(
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(
     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
     at org.eclipse.jetty.servlets.gzip.GzipHandler.handle(
     at net.i2p.router.web.HostCheckHandler.handle(
     at org.eclipse.jetty.server.handler.HandlerCollection.handle(
     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
     at org.eclipse.jetty.server.Server.handle(
     at org.eclipse.jetty.server.HttpChannel.handle(
     at org.eclipse.jetty.server.HttpConnection.onFillable(
     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
     at org.eclipse.jetty.util.thread.QueuedThreadPool$
     at java.base/


Change History (3)

comment:1 Changed 2 years ago by zzz

Full version info please.
Can't reproduce, works for me here:

Java version:	Oracle Corporation 11.0.3 (OpenJDK Runtime Environment 11.0.3+7-Ubuntu-1ubuntu218.10.1)
Wrapper version:	3.5.39
Server version:	9.2.25.v20180606
Servlet version:	Jasper JSP 2.3 Engine
JSTL version:	standard-taglib 1.2.0
Platform:	Linux amd64 4.18.0-18-generic
Processor:	Bulldozer (bulldozer)
JBigI status:	Locally optimized library loaded from file
GMP version:	6.0.0
JBigI version:	3
JCpuId version:	3
Encoding:	UTF-8
Charset:	UTF-8
Built By:	zzz
Last edited 2 years ago by zzz (previous) (diff)

comment:2 Changed 2 years ago by Reportage

I2P:		0.9.40-3+ Wrapper: 3.5.34  Built by: dr|z3d
Platform:	Linux amd64 4.15.0-47-generic
Processor:	corei  Intel model 79  [Jcpuid version: 3]
Java:		Oracle Corporation 11.0.3 (OpenJDK Runtime Environment 11.0.3+7-Ubuntu-1ubuntu218.04.1)
Jetty:		9.2.28.v20190418 Servlet: Jasper JSP 2.3 Engine
JBigI:		Locally optimized library loaded from file [version: 3] GMP: 6.0.0
JSTL:		standard-taglib 1.2.0 Encoding: UTF-8 Charset: UTF-8

comment:3 Changed 22 months ago by zzz

Milestone: undecided0.9.41
Resolution: fixed
Sensitive: unset
Status: newclosed

error caught in dd4bb4d65f0f60090b25e8419404a9d8e087acdc 0.9.40-13-rc but I can't do anything about a class not found anyway, and can't reproduce it here. Our installs look similar but something is obviously different about yours. The error will be caught and the browser will get a 403, that's the best I can do.

Note: See TracTickets for help on using tickets.