943,983 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1575
  • Java RSS
Oct 2nd, 2005
0

search engine problem

Expand Post »
hi I have a problem working a project for my school assignment
but I keep getting this error and I have no idea what the problem is.
Can anyone tell me what is wrong with it?

the erroe messeges are

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at SearchGui.showResults(SearchGui.java:46)
at SearchGui.invokeSearch(SearchGui.java:76)
at SearchGui.access$500(SearchGui.java:27)
at SearchGui$1$1.caretUpdate(SearchGui.java:118)
at javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:367)
at javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:3232)
at javax.swing.text.JTextComponent$MutableCaretEvent.mouseReleased(JTextComponent.java:3288)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



I also attached the project if anyone wants to take a look
Attached Files
File Type: zip Assignment.zip (868.4 KB, 11 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tidus0728 is offline Offline
1 posts
since Oct 2005
Oct 2nd, 2005
0

Re: search engine problem

It means that probably some kind of datastructure hasn't been initialized.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shephunts is offline Offline
5 posts
since Sep 2005
Oct 2nd, 2005
0

Re: search engine problem

Quote originally posted by tidus0728 ...
at SearchGui.showResults(SearchGui.java:46)
I'm hoping the SearchGui is a class of yours....

Go to this class, look in your showResults method and then look at line 45 (From the top of the java page...) and there will me an object some where in that line that is null.

Regards,

Nate
Reputation Points: 11
Solved Threads: 8
Posting Whiz in Training
hooknc is offline Offline
216 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Help with Jtree
Next Thread in Java Forum Timeline: Decimal to hex conversion with recursion





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC