[richfaces-issues] [JBoss JIRA] Commented: (RF-4160) Opening Treenode causes java.lang.NoClassDefFoundError

Charles Crouch (JIRA) jira-events at lists.jboss.org
Fri Aug 22 11:38:45 EDT 2008


    [ https://jira.jboss.org/jira/browse/RF-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12426230#action_12426230 ] 

Charles Crouch commented on RF-4160:
------------------------------------

Comment from Nick B...
"Charles,

We've explored JDK AWT code and found the following:

String osName = System.getProperty("os.name");

headless = defaultHeadless =  Boolean.valueOf(("Linux".equals(osName) || "SunOS".equals(osName)) && (System.getenv("DISPLAY") == null));

This code should make JDK go to headless mode on Linux/SunOS headless
machines. But that could not happen on alternative UNIX machines, e.g. MacOS
servers. Here's the entry in Apple Mailing List describing the similar
issue: http://lists.apple.com/archives/java-dev/2007/apr/msg00220.html .

Usage of alternative AWT implementations not requiring OS resources like PJA
http://www.eteks.com/pja/en/ can solve this issue, but it will bring another
problems: performance, compatibility, lack of support etc.

So I do not have any other solution for the problem than setting headless
property to true. Maybe I could find some other workaround if I knew OS and
JVM version. Can you please provide some more info about that?

Best regards,
  Nick Belaevski"


> Opening Treenode causes java.lang.NoClassDefFoundError
> ------------------------------------------------------
>
>                 Key: RF-4160
>                 URL: https://jira.jboss.org/jira/browse/RF-4160
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.3
>            Reporter: Charles Crouch
>            Assignee: Nick Belaevski
>            Priority: Critical
>             Fix For: Future
>
>
> One of our users is hitting a NoClassDefFoundError when opening a Treenode :
> 10:53:45,561 ERROR [[default]] Servlet.service() for servlet default threw exception
> java.lang.NoClassDefFoundError
> at sun.java2d.SunGraphicsEnvironment.createGraphics(SunGraphicsEnvironment.java:337)
> at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1143)
> at org.ajax4jsf.resource.Java2Dresource.getImage(Java2Dresource.java:115)
> at org.ajax4jsf.resource.Java2Dresource.send(Java2Dresource.java:89)
> at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycle.java:223)
> at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:159)
> at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:336)
> at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
> at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
> at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:198)
> at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) 
> We don't want to have everyone set java.awt.headless=true in order to run our app, which does appear to fix this problem.
> Are there any other options?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list