Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Problem with tests results trend graphs on Hudson 3.1.2(Problem with tests results trend graphs from BIRT charts plugin 3.0.3 on Hudson 3.1.2)
Problem with tests results trend graphs on Hudson 3.1.2 [message #1323515] Wed, 30 April 2014 09:45 Go to next message
Olivier NEOCEL is currently offline Olivier NEOCEL
Messages: 5
Registered: April 2014
Junior Member
Hello,

I have a problem with tests results trend graphs from BIRT charts plugin 3.0.3 on Hudson 3.1.2 : they are not displayed on any Hudson job I have configured, all I have is a red cross and the alternate text (see attachment).

It is installed on a Tomcat 7.0.52 server.
OS is Windows XP Professional Version 2002 Service Pack 3 (!!)
JDK version used for the jobs is 1.6.0_45.
Maven version is, depending on the job, either 2.0.7 or 3.2.1.

I have disabled BIRT Charts plugin 3.0.3, shutdown Hudson, restarted Hudson, enabled plugin, shutdown Hudson, restarted Hudson and relaunched an existing job, same result.

I have tried with a brand new Huson job that never had complete failure before and launched several successful or unstable jobs, same result.

Any idea of what is wrong?

I would be happy to answer any of your questions about the jobs' or Hudson's configuration, etc.
Re: Problem with tests results trend graphs on Hudson 3.1.2 [message #1324284 is a reply to message #1323515] Wed, 30 April 2014 18:08 Go to previous messageGo to next message
Winston Prakash is currently offline Winston Prakash
Messages: 427
Registered: August 2011
Location: Fremont, CA USA
Senior Member
The URL corresponding to the generated image seems to be incorrect. Right click on the broken image and select "View Image Info" (Firefox) or "Open Image on a new Tab". Find the Location URL and check if it is correct.

Probably Hudson may be using wrong base URL. You can specify the correct base URL bu setting value the value at "Hudson URL" at Manage Hudson -> Configure System -> E-mail Notification


Winston Prakash
Eclipse Hudson team
Re: Problem with tests results trend graphs on Hudson 3.1.2 [message #1325923 is a reply to message #1324284] Thu, 01 May 2014 13:13 Go to previous messageGo to next message
Olivier NEOCEL is currently offline Olivier NEOCEL
Messages: 5
Registered: April 2014
Junior Member
Hi Winston,

Thanks for the tip.
I've tried to get the trend via its url directly, and I got an http 500 eror message from Tomcat :

HTTP 500 - java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice 

exception

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:607)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:365)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)                org.kohsuke.stapler.Stapler.service(Stapler.java:152)                javax.servlet.http.HttpServlet.service(HttpServlet.java:727)                hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)                hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)                hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)                hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)                hudson.security.HudsonFilter.doFilter(HudsonFilter.java:157)                hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)


Maybe something to do with Windows XP and sun.java2d.d3d.D3DGraphicsDevice?
I keep searching, yet any help would be appreciated.
Re: Problem with tests results trend graphs on Hudson 3.1.2 [message #1325983 is a reply to message #1325923] Thu, 01 May 2014 13:55 Go to previous messageGo to next message
Olivier NEOCEL is currently offline Olivier NEOCEL
Messages: 5
Registered: April 2014
Junior Member
And here is the root cause, if it can help :

java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice                sun.java2d.SurfaceManagerFactory.createCachingManager(SurfaceManagerFactory.java:48)                sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:54)                sun.java2d.SurfaceData.getDestSurfaceData(SurfaceData.java:123)                sun.java2d.SunGraphicsEnvironment.createGraphics(SunGraphicsEnvironment.java:377)                java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1137)                java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1125)                org.hudsonci.plugins.birtcharts.BirtChartSupport.render(BirtChartSupport.java:95)                org.eclipse.hudson.graph.Graph.createImage(Graph.java:120)                org.eclipse.hudson.graph.Graph.doPng(Graph.java:146)                hudson.tasks.test.AbstractTestResultAction.doGraph(AbstractTestResultAction.java:238)                hudson.tasks.test.TestResultProjectAction.doTrend(TestResultProjectAction.java:99)                sun.reflect.GeneratedMethodAccessor484.invoke(Unknown Source)                sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                java.lang.reflect.Method.invoke(Method.java:597)                org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:274)                org.kohsuke.stapler.Function.bindAndInvoke(Function.java:141)                org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:80)                org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:95)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:365)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)                org.kohsuke.stapler.Stapler.service(Stapler.java:152)                javax.servlet.http.HttpServlet.service(HttpServlet.java:727)                hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)                hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)                hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)                hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)                hudson.security.HudsonFilter.doFilter(HudsonFilter.java:157)                hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
Re: Problem with tests results trend graphs on Hudson 3.1.2 [message #1326268 is a reply to message #1325983] Thu, 01 May 2014 17:04 Go to previous messageGo to next message
Winston Prakash is currently offline Winston Prakash
Messages: 427
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Some kind of JDK graphics library issue. Can you try this

CATALINA_OPTS=-Djava.awt.headless=true


Winston Prakash
Eclipse Hudson team
Re: Problem with tests results trend graphs on Hudson 3.1.2 [message #1327488 is a reply to message #1326268] Fri, 02 May 2014 07:20 Go to previous messageGo to next message
Olivier NEOCEL is currently offline Olivier NEOCEL
Messages: 5
Registered: April 2014
Junior Member
Thanks Winston.

After setting CATALINA_OPTS=-Djava.awt.headless=true, I get basically the same problem, with an extra line in root cause :

sun.java2d.HeadlessGraphicsEnvironment.createGraphics(HeadlessGraphicsEnvironment.java:76)

Here is the full message :

HTTP 500 - java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice type Rapport d''exceptionmessage java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevicedescription Le serveur a rencontré une erreur interne qui l''a empêché de satisfaire la requête.exceptionjavax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:607)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:365)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)                org.kohsuke.stapler.Stapler.service(Stapler.java:152)                javax.servlet.http.HttpServlet.service(HttpServlet.java:727)                hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)                hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)                hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)                hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)                hudson.security.HudsonFilter.doFilter(HudsonFilter.java:157)                hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)

root cause

java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice                sun.java2d.SurfaceManagerFactory.createCachingManager(SurfaceManagerFactory.java:48)                sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:54)                sun.java2d.SurfaceData.getDestSurfaceData(SurfaceData.java:123)                sun.java2d.SunGraphicsEnvironment.createGraphics(SunGraphicsEnvironment.java:377)                sun.java2d.HeadlessGraphicsEnvironment.createGraphics(HeadlessGraphicsEnvironment.java:76)                java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1137)                java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1125)                org.hudsonci.plugins.birtcharts.BirtChartSupport.render(BirtChartSupport.java:95)                org.eclipse.hudson.graph.Graph.createImage(Graph.java:120)                org.eclipse.hudson.graph.Graph.doPng(Graph.java:146)                hudson.tasks.test.AbstractTestResultAction.doGraph(AbstractTestResultAction.java:238)                hudson.tasks.test.TestResultProjectAction.doTrend(TestResultProjectAction.java:99)                sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                java.lang.reflect.Method.invoke(Method.java:597)                org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:274)                org.kohsuke.stapler.Function.bindAndInvoke(Function.java:141)                org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:80)                org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:95)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:365)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)                org.kohsuke.stapler.Stapler.service(Stapler.java:152)                javax.servlet.http.HttpServlet.service(HttpServlet.java:727)                hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)                hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)                hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)                hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)                hudson.security.HudsonFilter.doFilter(HudsonFilter.java:157)                hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
Re: Problem with tests results trend graphs on Hudson 3.1.2 [message #1327861 is a reply to message #1327488] Fri, 02 May 2014 11:30 Go to previous messageGo to next message
Geoff Waymark is currently offline Geoff Waymark
Messages: 26
Registered: July 2012
Junior Member
I've seen this kind of thing once before and it turned out to be a corrupt JDK instance.

Could you install a new JDK and point at that and see if the issue it resolves itself?


Geoff Waymark
Eclipse Hudson team
Re: Problem with tests results trend graphs on Hudson 3.1.2 [message #1340899 is a reply to message #1327861] Thu, 08 May 2014 08:20 Go to previous messageGo to next message
Olivier NEOCEL is currently offline Olivier NEOCEL
Messages: 5
Registered: April 2014
Junior Member
Thanks Geoff.

I tried this, but it didn't work. After installing JDK 1.6_45 on Windows XP workstation, I got same error : 

Etat HTTP 500 - java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice type Rapport d''exceptionmessage java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevicedescription Le serveur a rencontré une erreur interne qui l''a empêché de satisfaire la requête.exceptionjavax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:607)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:365)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)                org.kohsuke.stapler.Stapler.service(Stapler.java:152)                javax.servlet.http.HttpServlet.service(HttpServlet.java:727)                hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)                hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)                hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)                hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)                hudson.security.HudsonFilter.doFilter(HudsonFilter.java:157)                hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)

root cause

java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.d3d.D3DGraphicsDevice                sun.java2d.SurfaceManagerFactory.createCachingManager(SurfaceManagerFactory.java:48)                sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:54)                sun.java2d.SurfaceData.getDestSurfaceData(SurfaceData.java:123)                sun.java2d.SunGraphicsEnvironment.createGraphics(SunGraphicsEnvironment.java:377)                sun.java2d.HeadlessGraphicsEnvironment.createGraphics(HeadlessGraphicsEnvironment.java:76)                java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1137)                java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1125)                org.hudsonci.plugins.birtcharts.BirtChartSupport.render(BirtChartSupport.java:95)                org.eclipse.hudson.graph.Graph.createImage(Graph.java:120)                org.eclipse.hudson.graph.Graph.doPng(Graph.java:146)                hudson.tasks.test.AbstractTestResultAction.doGraph(AbstractTestResultAction.java:238)                hudson.tasks.test.TestResultProjectAction.doTrend(TestResultProjectAction.java:99)                sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                java.lang.reflect.Method.invoke(Method.java:597)                org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:274)                org.kohsuke.stapler.Function.bindAndInvoke(Function.java:141)                org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:80)                org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:95)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:365)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)                org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)                org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)                org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)                org.kohsuke.stapler.Stapler.service(Stapler.java:152)                javax.servlet.http.HttpServlet.service(HttpServlet.java:727)                hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)                hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)                hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)                hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)                hudson.security.HudsonFilter.doFilter(HudsonFilter.java:157)                hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)


I didn't restart the workstation. Should I?
Re: Problem with tests results trend graphs on Hudson 3.1.2 [message #1355815 is a reply to message #1340899] Wed, 14 May 2014 22:22 Go to previous message
Winston Prakash is currently offline Winston Prakash
Messages: 427
Registered: August 2011
Location: Fremont, CA USA
Senior Member
As a last resort can you try

CATALINA_OPTS=-Djava.awt.headless=true -Dsun.java2d.d3d=false


Winston Prakash
Eclipse Hudson team
Previous Topic:Hudson/Ant issue with Websphere Application Server 7
Next Topic:htm publisher: behavior when build fails
Goto Forum:
  


Current Time: Sat Oct 25 07:53:04 GMT 2014

Powered by FUDForum. Page generated in 0.13672 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software