InvocationTargetException with JoGL

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

InvocationTargetException with JoGL

NickJPGeorge
So I *think* I'm getting close to making this whole "webstart" thing work- I've got my JNLP, and my jar that I signed.  I'm pretty new to jnlps, but I can make it work with more simple projects.   However, with JoGL, I keep getting an invocation target exception, that I'd love some help tracing down.  I'm not sure what would be useful for me to post here, this is my jnlp:  (I removed all the left brackets so it would display)
 ?xml version="1.0" encoding="UTF-8"?>    
 jnlp spec="1.0+"  codebase="http://localhost:80/test/"  >    
     
      security>    
         all-permissions/>    
      /security>    
       
      information>    
     title>BoxKill!</title>   
         vendor>Nick!</vendor>   
      /information>    
     
     resources>    
         j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>    
   
         jar href="IsoLauncher.jar" main="true" />    
     
         extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />  
     /resources>    
     
     application-desc main-class="isogame.IsoLauncher" />    
     
     update check="background"/>    
 /jnlp>    
and the error is

    java.lang.reflect.InvocationTargetException  
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
        at java.lang.reflect.Method.invoke(Unknown Source)  
        at com.sun.javaws.Launcher.executeApplication(Unknown Source)  
        at com.sun.javaws.Launcher.executeMainClass(Unknown Source)  
        at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)  
        at com.sun.javaws.Launcher.run(Unknown Source)  
       at java.lang.Thread.run(Unknown Source)  
   Caused by: java.lang.UnsatisfiedLinkError: com.jogamp.common.os.Platform.getPointerSizeInBitsImpl()I  
       at com.jogamp.common.os.Platform.getPointerSizeInBitsImpl(Native Method)  
       at com.jogamp.common.os.Platform.<clinit>(Platform.java:65)  
      at com.jogamp.common.nio.Buffers.nativeOrder(Buffers.java:252)  
       at com.jogamp.common.nio.Buffers.newDirectByteBuffer(Buffers.java:67)  
  .     at com.jogamp.common.jvm.JVMUtil.<clinit>(JVMUtil.java:58)  
  .     at javax.media.nativewindow.NativeWindowFactory.<clinit>(NativeWindowFactory.java:102)  
  .     at javax.media.opengl.GLProfile.initProfiles(GLProfile.java:855)  
  .     at javax.media.opengl.GLProfile.access$000(GLProfile.java:59)  
  .     at javax.media.opengl.GLProfile$1.run(GLProfile.java:989)  
  .     at java.security.AccessController.doPrivileged(Native Method)  
  .     at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:987)  
  .     at isogame.IsoFrame.<init>(IsoFrame.java:186)  
  .     at isogame.IsoLauncher.main(IsoLauncher.java:14)  
  .     ... 9 more  

Thanks so much for your help,
Nick
Reply | Threaded
Open this post in threaded view
|

Re: InvocationTargetException with JoGL

Michael Bien
  gluegen-rt natives are not found.

are you using our jnlp extension files for jogl? this should be handled
automatically if you use them.

best regards,
michael



On 03/13/2011 06:45 PM, NickJPGeorge [via jogamp] wrote:

>
> So I *think* I'm getting close to making this whole "webstart" thing work-
> I've got my JNLP, and my jar that I signed.  I'm pretty new to jnlps, but I
> can make it work with more simple projects.   However, with JoGL, I keep
> getting an invocation target exception, that I'd love some help tracing
> down.  I'm not sure what would be useful for me to post here, this is my
> jnlp:
>
>   <?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
>
>
>
>       BoxKill!
>           Nick!
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> and the error is
>
>      java.lang.reflect.InvocationTargetException
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>          at java.lang.reflect.Method.invoke(Unknown Source)
>          at com.sun.javaws.Launcher.executeApplication(Unknown Source)
>          at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
>          at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
>          at com.sun.javaws.Launcher.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
>     Caused by: java.lang.UnsatisfiedLinkError:
> com.jogamp.common.os.Platform.getPointerSizeInBitsImpl()I
>         at com.jogamp.common.os.Platform.getPointerSizeInBitsImpl(Native
> Method)
>         at com.jogamp.common.os.Platform.(Platform.java:65)
>        at com.jogamp.common.nio.Buffers.nativeOrder(Buffers.java:252)
>         at com.jogamp.common.nio.Buffers.newDirectByteBuffer(Buffers.java:67)
>    .     at com.jogamp.common.jvm.JVMUtil.(JVMUtil.java:58)
>    .     at
> javax.media.nativewindow.NativeWindowFactory.(NativeWindowFactory.java:102)
>    .     at javax.media.opengl.GLProfile.initProfiles(GLProfile.java:855)
>    .     at javax.media.opengl.GLProfile.access$000(GLProfile.java:59)
>    .     at javax.media.opengl.GLProfile$1.run(GLProfile.java:989)
>    .     at java.security.AccessController.doPrivileged(Native Method)
>    .     at javax.media.opengl.GLProfile.(GLProfile.java:987)
>    .     at isogame.IsoFrame.(IsoFrame.java:186)
>    .     at isogame.IsoLauncher.main(IsoLauncher.java:14)
>    .     ... 9 more
>
> Thanks so much for your help,
> Nick
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/InvocationTargetException-with-JoGL-tp2673306p2673306.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/

Reply | Threaded
Open this post in threaded view
|

Re: InvocationTargetException with JoGL

NickJPGeorge
Hmm... so far as I know, the only two jnlp files I'm using are the one I posted above, and the one it references,
"http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp"

Is that correct?

I use eclipse to edit, I have glugen-rt.jar referencing a local copy jogl\lib.  Do I need to specify the jnlps somewhere inside the jar?

Thanks,
Nick
Reply | Threaded
Open this post in threaded view
|

Re: InvocationTargetException with JoGL

NickJPGeorge
In reply to this post by Michael Bien
huh, just noticed that the gears demo at http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/ gives me the same error.
Reply | Threaded
Open this post in threaded view
|

Re: InvocationTargetException with JoGL

Michael Bien
In reply to this post by NickJPGeorge
  On 03/13/2011 07:06 PM, NickJPGeorge [via jogamp] wrote:
> Hmm... so far as I know, the only two jnlp files I'm using are the one I
> posted above, and the one it references,
> "http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp"
> Is that correct?

thats jogl1.

our extension would look like:
<extension name="newt-all-awt"
href="http://jogamp.org/deployment/webstart-next/newt-all-awt.jnlp"/>
this would give you everything.

> I use eclipse to edit, I have glugen-rt.jar referencing a local copy
> jogl\lib.  Do I need to specify the jnlps somewhere inside the jar?
no. all path-info in the jar manifest is ignored when run with webstart.

> Thanks,
> Nick
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/InvocationTargetException-with-JoGL-tp2673306p2673373.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/

Reply | Threaded
Open this post in threaded view
|

Re: InvocationTargetException with JoGL

Michael Bien
In reply to this post by NickJPGeorge
  the site is no longer maintained. Please use the resources hosted on
jogamp.org

On 03/13/2011 07:39 PM, NickJPGeorge [via jogamp] wrote:
> huh, just noticed that the gears demo at
> http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/
> gives me the same error.
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/InvocationTargetException-with-JoGL-tp2673306p2673540.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/

Reply | Threaded
Open this post in threaded view
|

Re: InvocationTargetException with JoGL

NickJPGeorge
bah, I was afraid of that.  I swapped in your resource, and it's getting closer.  I still get an invocation target exception though:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.javaws.Launcher.executeApplication(Unknown Source)
        at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
        at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
        at com.sun.javaws.Launcher.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
        at isogame.IsoFrame.<init>(IsoFrame.java:199)
        at isogame.IsoLauncher.main(IsoLauncher.java:14)
        ... 9 more
Caused by: javax.media.opengl.GLException: No profile available: [GL2, GL3bc, GL4bc, GL2GL3, GL3, GL4, GL2ES2, GLES2, GL2ES1, GLES1], GLAvailability[Native[GL4bc false, GL4 false, GL3bc false, GL3 false, GL2 false, GL2ES1 false, GLES1 false, GL2ES2 false, GLES2 false], Profiles[, default null]]
        at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:995)
        ... 11 more


Thank you so much for your help,
Nick
Reply | Threaded
Open this post in threaded view
|

Re: InvocationTargetException with JoGL

Michael Bien

please clear the webstart cache and try one of those:
http://jogamp.org/deployment/webstart/application-version.jnlp

http://jogamp.org/deployment/webstart/jogl-demos/Gears.jnlp

you should be able to copy the jnlps and just adopt it for your
application. If it still don't work... please report back or file a bug
report.

thanks,
michael


On 03/13/2011 07:51 PM, NickJPGeorge [via jogamp] wrote:

>
> bah, I was afraid of that.  I swapped in your resource, and it's getting
> closer.  I still get an invocation target exception though:
>
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at com.sun.javaws.Launcher.executeApplication(Unknown Source)
> at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
> at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
> at com.sun.javaws.Launcher.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.ExceptionInInitializerError
> at isogame.IsoFrame.(IsoFrame.java:199)
> at isogame.IsoLauncher.main(IsoLauncher.java:14)
> ... 9 more
> Caused by: javax.media.opengl.GLException: No profile available: [GL2,
> GL3bc, GL4bc, GL2GL3, GL3, GL4, GL2ES2, GLES2, GL2ES1, GLES1],
> GLAvailability[Native[GL4bc false, GL4 false, GL3bc false, GL3 false, GL2
> false, GL2ES1 false, GLES1 false, GL2ES2 false, GLES2 false], Profiles[,
> default null]]
> at javax.media.opengl.GLProfile.(GLProfile.java:995)
> ... 11 more
>
>
> Thank you so much for your help,
> Nick
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/InvocationTargetException-with-JoGL-tp2673306p2673596.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/

Reply | Threaded
Open this post in threaded view
|

Re: InvocationTargetException with JoGL

NickJPGeorge
bah, I get ExceptionInInitializerError-  I guess the problem is with my computer.  I'll stop bothering you on your Sunday now.

thanks,
Nick

On Sun, Mar 13, 2011 at 3:00 PM, Michael Bien [via jogamp] <[hidden email]> wrote:

please clear the webstart cache and try one of those:
http://jogamp.org/deployment/webstart/application-version.jnlp

http://jogamp.org/deployment/webstart/jogl-demos/Gears.jnlp

you should be able to copy the jnlps and just adopt it for your
application. If it still don't work... please report back or file a bug
report.

thanks,
michael


On 03/13/2011 07:51 PM, NickJPGeorge [via jogamp] wrote:

>
> bah, I was afraid of that.  I swapped in your resource, and it's getting
> closer.  I still get an invocation target exception though:
>
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at com.sun.javaws.Launcher.executeApplication(Unknown Source)
> at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
> at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
> at com.sun.javaws.Launcher.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.ExceptionInInitializerError
> at isogame.IsoFrame.(IsoFrame.java:199)
> at isogame.IsoLauncher.main(IsoLauncher.java:14)
> ... 9 more
> Caused by: javax.media.opengl.GLException: No profile available: [GL2,
> GL3bc, GL4bc, GL2GL3, GL3, GL4, GL2ES2, GLES2, GL2ES1, GLES1],
> GLAvailability[Native[GL4bc false, GL4 false, GL3bc false, GL3 false, GL2
> false, GL2ES1 false, GLES1 false, GL2ES2 false, GLES2 false], Profiles[,
> default null]]
> at javax.media.opengl.GLProfile.(GLProfile.java:995)
> ... 11 more
>
>
> Thank you so much for your help,
> Nick
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/InvocationTargetException-with-JoGL-tp2673306p2673596.html
> To start a new topic under jogamp, email [hidden email]
>
http://michael-bien.com/




If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/InvocationTargetException-with-JoGL-tp2673306p2673636.html
To unsubscribe from InvocationTargetException with JoGL, click here.