Login  Register

Re: Migration from 2.0 to 2.3.1, Exception in thread "main" java.lang.NoSuchFieldError: DEBUG_STATS_FORNAME

Posted by Djak on Sep 19, 2015; 4:14pm
URL: https://forum.jogamp.org/SOLVED-Migration-from-2-0-to-2-3-1-Exception-in-thread-main-java-lang-NoSuchFieldError-DEBUG-STATS-FE-tp4035330p4035332.html

Hi elect,
thanks for your advice but I also need to use fixed pipeline on some targets :) therefore I have multi renderer implementations.

About my problem, I really don't understand the "java.lang.NoSuchFieldError: DEBUG_STATS_FORNAME" error. I decompiled com.jogamp.common.util.ReflectionUtil.class of the gluegen-rt.jar that I use to be sure, and the field is well present and public :/

[EDIT]
I also just tested to put:
---
  System.out.println("MainOneTriangleAWT.main(): " + ReflectionUtil.DEBUG);
  System.out.println("MainOneTriangleAWT.main(): " + ReflectionUtil.DEBUG_STATS_FORNAME);
---  

in the main but I have this output:

---
MainOneTriangleAWT.main(): false
Exception in thread "main"
java.lang.NoSuchFieldError: DEBUG_STATS_FORNAME
        at gengine2d.jogl.MainOneTriangleAWT.main(MainOneTriangleAWT.java:51)
---