LWJGL
May 23, 2013, 19:46:58 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: 1 [2]
  Print  
Author Topic: What Exactly is Dreaded Error 7?  (Read 9728 times)
AGP
Newbie
*
Posts: 41


« Reply #15 on: June 11, 2009, 08:34:16 »

Thanks a lot.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2239



« Reply #16 on: June 11, 2009, 14:11:14 »

Quote
Fatal error occured (7): Racer
java.lang.InstantiationException: Racer
   at java.lang.Class.newInstance0(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:752)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:640)
   at java.lang.Thread.run(Unknown Source)

The problem is that your Racer class cannot be instantiated because it has a non-default constructor. Create a constructor that does not take any arguments (the current one takes a boolean argument).
I dont even understand why you are creating a new instance of Racer in the init code and why the applet has ever worked.

I have updated the AppletLoader to print a stacktrace if one such occurs.
Logged

Matzon
Administrator
Demigod
*****
Posts: 2239



« Reply #17 on: June 11, 2009, 14:14:13 »

btw, to debug:
  • create folder for offline loading of applet - copy all the resources down into it
  • add the parameters seen in the above eclipse link to the applet environment BUT change the last 'n' to 'y' so that it waits on launch
  • create eclipse project
  • debug remote app
  • add lwjgl source to step debug
Logged

AGP
Newbie
*
Posts: 41


« Reply #18 on: June 12, 2009, 00:32:40 »

Matzon, thanks a whole lot for both tips. As for there not being a standard constructor, I didn't even know I needed one and the javadocs don't say you do. In the past, all my applets must have had simple constructors. That's one that I might never have figured out myself, pal. So again, thank you for your help.
Logged
AGP
Newbie
*
Posts: 41


« Reply #19 on: June 12, 2009, 01:29:10 »

So now I am getting an error 7: null message (hey it's progress!). Anyway, if I could have your updated AppletLoader so see its stack trace it would help a lot because as far as I can tell there should be nothing null in my applet. I appreciate your help and hope not to be bothering you too much.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2239



« Reply #20 on: June 12, 2009, 01:54:41 »

until the next release you can always use the nightly build: https://www.newdawnsoftware.com/hudson/view/LWJGL/job/LWJGL/lastSuccessfulBuild/
Logged

AGP
Newbie
*
Posts: 41


« Reply #21 on: June 13, 2009, 09:31:31 »

Thanks a lot again.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!