aspose file tools*
The moose likes Beginning Java and the fly likes Meta search engine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Meta search engine " Watch "Meta search engine " New topic
Author

Meta search engine

Indira purohit
Greenhorn

Joined: Apr 09, 2013
Posts: 6
Hello Everyone ,
I am trying to build a meta search engine , deploying it on Netbeans ...Struts Framework Having a null pointer exception ... Tried all that`s possible ... means of removing it .. no clue y it isnt working



[Thumbnail for Capture.PNG]

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

Welcome to the Ranch. Please copy and paste the text of the error message next time you ask a question - it's easier to read than a screenshot, and screenshots are not searchable (the search function of the forums doesn't work on images).

NullPointerExceptions are usually easy to track down. Look at the error message. It shows you a stack trace - the sequence of methods that was called up to the point where the exception happened. It tells you exactly where the NullPointerException occurred: in line 535 of RequestProcessor.java.

So, open up RequestProcessor.java and go to line 535. A NullPointerException happens when you try to call a method on a variable that's null. Check what method is being called on line 535. Why is the variable that you call the method on, null?

Also have a look at TestingHtmlParser line 204.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Indira purohit
Greenhorn

Joined: Apr 09, 2013
Posts: 6
@Jesper de Jong : sorry was not aware point noted
Checked the line too ... Nothing seems wrong !!
Will recheck it
Thank you
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1398
    
    6

Could you please show us the code, this might help us to figure out the issue.


Swastik
Indira purohit
Greenhorn

Joined: Apr 09, 2013
Posts: 6
Actually its a code from Google code ..
webpage
Checked it out ...
Tired making few changes did not work and now landed up on ... Null pointer exception
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Indira purohit wrote:Actually its a code from Google code ..
webpage
Checked it out ...
Tired making few changes did not work and now landed up on ... Null pointer exception


So did you follow this?
Jesper de Jong wrote:NullPointerExceptions are usually easy to track down. Look at the error message. It shows you a stack trace - the sequence of methods that was called up to the point where the exception happened. It tells you exactly where the NullPointerException occurred: in line 535 of RequestProcessor.java.

So, open up RequestProcessor.java and go to line 535. A NullPointerException happens when you try to call a method on a variable that's null. Check what method is being called on line 535. Why is the variable that you call the method on, null?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Indira purohit
Greenhorn

Joined: Apr 09, 2013
Posts: 6
@Maneesh Godbole : Sorry , i actually posted in again ... Wondering something else.. could have gone wrong
Yup looked on the suggestions .. Still isnt working
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Yes. If you are still getting a NPE, its not working
Did you run your application in the debugger to see which variable is null as Jesper suggested?
Indira purohit
Greenhorn

Joined: Apr 09, 2013
Posts: 6
Maneesh Godbole wrote:Yes. If you are still getting a NPE, its not working
Did you run your application in the debugger to see which variable is null as Jesper suggested?

Yup , did that ... no error found in debugging ... Will try it again with patience Hope it works
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36508
    
  16
Is it your own Google Code project?
If there was a null exception, there must have been an error. You simply didn’t find it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Meta search engine
 
Similar Threads
Seo
Java Meta-Search Engine
how to make a basic search engine for an intranet
Who can beat google ?
What is Meta Search Engine?