You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by ianwong <yi...@hotmail.com> on 2009/01/09 03:43:07 UTC

about NullPointerException

Hi, 

Sometimes, I get same follows exception. Could you offer me a solution?

[ERROR] 15:56:57 Exception in method: handleRequest Exception is: null
java.lang.NullPointerException
	at java.util.Hashtable.get(Hashtable.java:334)
	at org.apache.hadoop.ipc.Client.getConnection(Client.java:519)
	at org.apache.hadoop.ipc.Client.call(Client.java:493)
	at org.apache.hadoop.ipc.RPC.call(RPC.java:265)
	at
org.apache.nutch.searcher.DistributedSearch$Client.getSummary(DistributedSearch.java:334)
	at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java:344)
-- 
View this message in context: http://www.nabble.com/about-NullPointerException-tp21365273p21365273.html
Sent from the Nutch - User mailing list archive at Nabble.com.


Re: Search on custom field

Posted by Cool The Breezer <te...@yahoo.com>.
The format of range query was wrong. It should be availability:0-10000. Still got another problem. I am sure somebody already faced this problem. Any pointer wuld be enough solve this issue

java.lang.ClassCastException: org.apache.nutch.searcher.Query$Phrase
	at org.apache.nutch.searcher.Query$Clause.getTerm(Query.java:97)
	at org.apache.nutch.searcher.RawFieldQueryFilter.filter(RawFieldQueryFilter.java:74)
	at org.apache.nutch.searcher.QueryFilters.filter(QueryFilters.java:109)
	at org.apache.nutch.searcher.IndexSearcher.search(IndexSearcher.java:94)
	at org.apache.nutch.searcher.NutchBean.search(NutchBean.java:189)
	at org.apache.nutch.searcher.NutchBean.search(NutchBean.java:182)


--- On Fri, 1/9/09, Cool The Breezer <te...@yahoo.com> wrote:

> From: Cool The Breezer <te...@yahoo.com>
> Subject: Search on custom field
> To: nutch-user@lucene.apache.org
> Date: Friday, January 9, 2009, 5:22 AM
> Hi,
>    I am trying to search on custom field which I have
> already added using custom plugins. There were some
> discussions on this topic earlier and as per that I added  a
> new QueryFilter, called Availability and following is the
> plugin.xml structure
> 
> <extension
> id="org.apache.nutch.searcher.classitrend.query.Availability"
>               name="Nutch Availability Query
> Filter"
>              
> point="org.apache.nutch.searcher.QueryFilter">
>       <implementation id="availability"
>                      
> class="org.apache.nutch.searcher.classitrend.query.Availability">
>         <parameter name="fields"
> value="availability"/>
>       </implementation>
>       
>    </extension>
> 
> But still when I am searching using range query like
> availability:{0 TO 10000}, it return nothing.
> I debugged the code and found that the actual query
> generated does not use "availability" as a field
> rather it used availability as a value for all default
> fields.
> I am struggling to solve this from one day. Appreciate your
> help on this.
> 
> regards,
> RB


      

Search on custom field

Posted by Cool The Breezer <te...@yahoo.com>.
Hi,
   I am trying to search on custom field which I have already added using custom plugins. There were some discussions on this topic earlier and as per that I added  a new QueryFilter, called Availability and following is the plugin.xml structure

<extension id="org.apache.nutch.searcher.classitrend.query.Availability"
              name="Nutch Availability Query Filter"
              point="org.apache.nutch.searcher.QueryFilter">
      <implementation id="availability"
                      class="org.apache.nutch.searcher.classitrend.query.Availability">
        <parameter name="fields" value="availability"/>
      </implementation>
      
   </extension>

But still when I am searching using range query like availability:{0 TO 10000}, it return nothing.
I debugged the code and found that the actual query generated does not use "availability" as a field rather it used availability as a value for all default fields.
I am struggling to solve this from one day. Appreciate your help on this.

regards,
RB



      

Re: about NullPointerException

Posted by ianwong <yi...@hotmail.com>.
where is the log file for nutch query server? 

logs/hadoop.log?





ianwong wrote:
> 
> Hi, 
> 
> Sometimes, I get same follows exception. Could you offer me a solution?
> 
> [ERROR] 15:56:57 Exception in method: handleRequest Exception is: null
> java.lang.NullPointerException
> 	at java.util.Hashtable.get(Hashtable.java:334)
> 	at org.apache.hadoop.ipc.Client.getConnection(Client.java:519)
> 	at org.apache.hadoop.ipc.Client.call(Client.java:493)
> 	at org.apache.hadoop.ipc.RPC.call(RPC.java:265)
> 	at
> org.apache.nutch.searcher.DistributedSearch$Client.getSummary(DistributedSearch.java:334)
> 	at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java:344)
> 

-- 
View this message in context: http://www.nabble.com/about-NullPointerException-tp21365273p21369127.html
Sent from the Nutch - User mailing list archive at Nabble.com.