I’m very grateful that you answer me, Ken !
I removed the Animator, so I replaced my code by the following one :
pbuffer.display() ;
System.out.println( “get buffered image.” );
BufferedImage image = pbuffer.getBufferedImage() ;
But, I can call the display() method only once time because after I obtain the following error :
Exception in thread “Thread-21”
javax.media.opengl.GLException: javax.media.opengl.GLException: Error making context current: 0
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
at com.sun.opengl.impl.GLPbufferImpl.maybeDoSingleThreadedWorkaround(GLPbufferImpl.java:199)
at com.sun.opengl.impl.GLPbufferImpl.display(GLPbufferImpl.java:88)
at com.rfs.j2ee.KiWI.web.servlet.graph3d.PBufferManager.executePBuffer(PBufferManager.java:106)
at com.rfs.j2ee.KiWI.web.servlet.graph3d.Process.run(Graph3dImage.java:434)
Caused by: javax.media.opengl.GLException: Error making context current: 0
at com.sun.opengl.impl.windows.WindowsGLContext.makeCurrentImpl(WindowsGLContext.java:169)
at com.sun.opengl.impl.windows.WindowsPbufferGLContext.makeCurrentImpl(WindowsPbufferGLContext.java:102)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:127)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
at com.sun.opengl.impl.GLPbufferImpl$DisplayOnEventDispatchThreadAction.run(GLPbufferImpl.java:233)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I already reuse the same pbuffer, in order to increase the processing speed.
I don’t cause -Dsun.java2d.noddraw=true.
I don’t have any GUI elements created by the JVM.
My graphics card is an Intel 82845G/GL/GE/PE/GV Graphics Controller.
The drivers are the lastest ones.
And, I work on windows XP professional sp1.
I already made many tests of the same code, on the same computer, in a classic java application and it worked. Also, JBoss is installed in local. So, I think that the graphics card isn’t the problem.
Maybe, it’s a problem with JBoss, and not with Jogl…