• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception in Thread in Multi-Class  RSS feed

 
Wayne Williamson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception in thread "main" java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:1093)
at java.awt.Container.add(Container.java:417)
at AcmeSelfServe.createUserInterface(AcmeSelfServe.java:109)
at AcmeSelfServe.<init>(AcmeSelfServe.java:55)
at AcmeSelfServe.main(AcmeSelfServe.java:190)

I do not understand what I did and having a hard time what to look for. Has to have multiply classes






 
Knute Snortum
Sheriff
Posts: 4279
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception in thread "main" java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:1093)
at java.awt.Container.add(Container.java:417)

at AcmeSelfServe.createUserInterface(AcmeSelfServe.java:109)
at AcmeSelfServe.<init>(AcmeSelfServe.java:55)
at AcmeSelfServe.main(AcmeSelfServe.java:190)

Don't have to worry about the bolded text -- this class is part of Java.

Exception in thread "main" java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:1093)
at java.awt.Container.add(Container.java:417)
at AcmeSelfServe.createUserInterface(AcmeSelfServe.java:109)
at AcmeSelfServe.<init>(AcmeSelfServe.java:55)
at AcmeSelfServe.main(AcmeSelfServe.java:190)


This is your class, and where you should start looking.

Exception in thread "main" java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:1093)
at java.awt.Container.add(Container.java:417)
at AcmeSelfServe.createUserInterface(AcmeSelfServe.java:109)
at AcmeSelfServe.<init>(AcmeSelfServe.java:55)
at AcmeSelfServe.main(AcmeSelfServe.java:190)

This is the class and method that the error started in.

Exception in thread "main" java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:1093)
at java.awt.Container.add(Container.java:417)
at AcmeSelfServe.createUserInterface(AcmeSelfServe.java:109)
at AcmeSelfServe.<init>(AcmeSelfServe.java:55)
at AcmeSelfServe.main(AcmeSelfServe.java:190)

This is the Java file and line number. Unfortunately, your line numbers don't match up, but I was able to see this:



Can you see what you did wrong in the last line?
 
Wayne Williamson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!