org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

JIRA | Chris Hoffman | 4 years ago
  1. 0

    [CSPACE-5766] JasperReports-related intermittent failures require tomcat restart - CollectionSpace

    collectionspace.org | 1 year ago
    org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
  2. 0

    In our 2.4 deployments with Jasper server 4.0.1, we have semi-frequent reporting failures. In the UI they appear as errors on reporting "error creating reporterror". In the logs, we have seen a couple types of errors: Restarting tomcat seems to fix these. 1) in catalina.out and cspace-app.log {code} 2012-12-13 06:05:42,487 (22303104) [TP-Processor10] INFO org.apache.commons.httpclient.auth.AuthChallengeProcessor: basic authentication scheme selected 2012-12-13 06:05:48,158 (22308775) [TP-Processor7] INFO org.apache.commons.httpclient.auth.AuthChallengeProcessor: basic authentication scheme selected 2012-12-13 06:05:49,387 (22310004) [TP-Processor7] ERROR org.collectionspace.chain.csp.persistence.services.connection.ReturnedDocument: Got error : <html><head><title>Apache Tomcat/6.0.33 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.jboss.resteasy.spi.UnhandledException: java.lang.InternalError: Can't connect to X11 window server using 'ucjeps.cspace.berkeley.edu:10.0' as the value of the DISPLAY variable. org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) ... <p><b>root cause</b> <pre>java.lang.InternalError: Can't connect to X11 window server using 'ucjeps.cspace.berkeley.edu:10.0' as the value of the DISPLAY variable. sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52) sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155) java.security.AccessController.doPrivileged(Native Method) sun.awt.X11GraphicsEnvironment.&lt;clinit&gt;(X11GraphicsEnvironment.java:131) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:169) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) net.sf.jasperreports.engine.util.JRStyledTextParser.&lt;clinit&gt;(JRStyledTextParser.java:88) {code} 2) In another Jira we report another error. I'll find that and connect it.

    JIRA | 4 years ago | Chris Hoffman
    org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
  3. 0

    In our 2.4 deployments with Jasper server 4.0.1, we have semi-frequent reporting failures. In the UI they appear as errors on reporting "error creating reporterror". In the logs, we have seen a couple types of errors: Restarting tomcat seems to fix these. 1) in catalina.out and cspace-app.log {code} 2012-12-13 06:05:42,487 (22303104) [TP-Processor10] INFO org.apache.commons.httpclient.auth.AuthChallengeProcessor: basic authentication scheme selected 2012-12-13 06:05:48,158 (22308775) [TP-Processor7] INFO org.apache.commons.httpclient.auth.AuthChallengeProcessor: basic authentication scheme selected 2012-12-13 06:05:49,387 (22310004) [TP-Processor7] ERROR org.collectionspace.chain.csp.persistence.services.connection.ReturnedDocument: Got error : <html><head><title>Apache Tomcat/6.0.33 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.jboss.resteasy.spi.UnhandledException: java.lang.InternalError: Can't connect to X11 window server using 'ucjeps.cspace.berkeley.edu:10.0' as the value of the DISPLAY variable. org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) ... <p><b>root cause</b> <pre>java.lang.InternalError: Can't connect to X11 window server using 'ucjeps.cspace.berkeley.edu:10.0' as the value of the DISPLAY variable. sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52) sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155) java.security.AccessController.doPrivileged(Native Method) sun.awt.X11GraphicsEnvironment.&lt;clinit&gt;(X11GraphicsEnvironment.java:131) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:169) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) net.sf.jasperreports.engine.util.JRStyledTextParser.&lt;clinit&gt;(JRStyledTextParser.java:88) {code} 2) In another Jira we report another error. I'll find that and connect it.

    JIRA | 4 years ago | Chris Hoffman
    org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RESTEasy NotSupportedException returning NPE

    Stack Overflow | 2 years ago | tarka
    org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
  6. 0

    Worklight notification error in console.log

    Stack Overflow | 4 years ago | RenegadeAndy
    org.jboss.resteasy.spi.UnhandledException: org.springframework.dao.InvalidDataAccessApiUsageException: Multiple DISTINCT aggregates are not supported at this time. {SELECT COUNT(DISTINCT t0.DEVICE), COUNT(DISTINCT t1.ID) FROM NOTIFICATION_DEVICE t0 INNER JOIN NOTIFICATION_USER t1 ON t0.USERSUBSCRIPTIONID = t1.ID WHERE (t0.APPLICATIONID IN (?, ?) AND t0.PLATFORM = ?)} [code=30000, state=42Z02]; nested exception is &lt;openjpa-1.2.2-r422266:898935 nonfatal user error&gt; org.apache.openjpa.persistence.ArgumentException: Multiple DISTINCT aggregates are not supported at this time. {SELECT COUNT(DISTINCT t0.DEVICE), COUNT(DISTINCT t1.ID) FROM NOTIFICATION_DEVICE t0 INNER JOIN NOTIFICATION_USER t1 ON t0.USERSUBSCRIPTIONID = t1.ID WHERE (t0.APPLICATIONID IN (?, ?) AND t0.PLATFORM = ?)} [code=30000, state=42Z02]

    16 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jboss.resteasy.spi.UnhandledException

      java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

      at org.jboss.resteasy.core.SynchronousDispatcher.unwrapException()
    2. RESTEasy JAX-RS Implementation
      HttpServletDispatcher.service
      1. org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)
      2. org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)
      3. org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
      4. org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
      5. org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534)
      6. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
      7. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
      8. org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
      9. org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
      10. org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
      10 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame