Defect #410

Problem generating attachment thumbnails

Added by Vicente J. Ruiz Jurado about 12 years ago. Updated about 12 years ago.

Status:ClosedStart date:
Priority:UrgentDue date:
Assignee:-% Done:

100%

Category:-Estimated time:0.00 hour
Target version:-
Resolution: Tags:

Description

Problem accessing /attachment/zXA624m2EqF. Reason:

Could not initialize class sun.awt.X11GraphicsEnvironment
Caused by:

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
at org.waveprotocol.box.server.attachment.AttachmentService.makeThumbnail(AttachmentService.java:147)
at org.waveprotocol.box.server.attachment.AttachmentService.buildAndStoreMetadataWithThumbnail(AttachmentService.java:115)
at org.waveprotocol.box.server.rpc.AttachmentServlet.doGet(AttachmentServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:350)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Thread.java:636)

Associated revisions

Revision 564ecb96
Added by Vicente J. Ruiz Jurado about 12 years ago

Fix for #410: upload attachment exception

History

#1 Updated by Vicente J. Ruiz Jurado about 12 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Seems that:
-Djava.awt.headless=true
should fix the issue
http://code.google.com/p/kaptcha/wiki/FrequentlyAskedQuestions

Also available in: Atom PDF