search engine problem

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2005
Posts: 1
Reputation: tidus0728 is an unknown quantity at this point 
Solved Threads: 0
tidus0728 tidus0728 is offline Offline
Newbie Poster

search engine problem

 
0
  #1
Oct 2nd, 2005
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, 4 views)
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 5
Reputation: shephunts is an unknown quantity at this point 
Solved Threads: 0
shephunts shephunts is offline Offline
Newbie Poster

Re: search engine problem

 
0
  #2
Oct 2nd, 2005
It means that probably some kind of datastructure hasn't been initialized.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 216
Reputation: hooknc is an unknown quantity at this point 
Solved Threads: 8
hooknc hooknc is offline Offline
Posting Whiz in Training

Re: search engine problem

 
0
  #3
Oct 2nd, 2005
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 1506 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC