Login  Register

InvocationTargetException with JoGL

Posted by NickJPGeorge on Mar 13, 2011; 5:45pm
URL: https://forum.jogamp.org/InvocationTargetException-with-JoGL-tp2673306.html

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