You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Chris Stephens <ch...@liveoakinteractive.com> on 2006/07/12 19:20:29 UTC

any success with php-java-bridge and Nutch?

Has anyone had success getting Nutch to work with the php-java-bridge?  
I've been playing around with this for about a day and a half and have 
not been able to get passed the error:

java stack trace: java.lang.Exception: CreateInstance failed: new 
org.apache.nutch.searcher.NutchBean. Cause: 
java.lang.NullPointerException at 
org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96) at 
org.apache.nutch.searcher.NutchBean.(NutchBean.java:84) at 
org.apache.nutch.searcher.NutchBean.(NutchBean.java:73) at 
java.lang.reflect.Constructor.newInstance(libgcj.so.7) at 
php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:547) at 
php.java.bridge.Request.handleRequest(Request.java:503) at 
php.java.bridge.Request.handleRequests(Request.java:533) at 
php.java.bridge.JavaBridge.run(JavaBridge.java:192) at 
php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37) 
Caused by: java.lang.NullPointerException at 
org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96) ...8 more

I do have a proper searcher.dir entry in my nutch-site.xml, and my index 
does have data.  My class path currently looks like:
 :/usr/java/jdk1.5.0_06:/usr/java/jdk1.5.0_06/lib:/usr/local/nutch/lib:/usr/local/nutch:/usr/local/nutch/conf/nutch-default.xml:/usr/local/nutch/conf/nutch-site.xml

I would appreciate any reports on nutch working with php-java-bridge and 
information about stability.

-Chris Stephens

Re: any success with php-java-bridge and Nutch?

Posted by Matt Timion <ad...@honda-search.com>.
Wow... that's a cool site Sudhi.

As for the php java bridge, My site's front end is a custom php script.  It 
just parses the XML from 
http://localhost:8080/opensearch?query=urlencoded+search+string+here and 
then outputs it according to my php functions.

It's secure (8080 is only available to localhost) and fast.

----- Original Message ----- 
From: "Sudhi Seshachala" <su...@yahoo.com>
To: <nu...@lucene.apache.org>
Sent: Wednesday, July 26, 2006 7:58 AM
Subject: Re: any success with php-java-bridge and Nutch?


> For http://www.myopensourcejobs.com, we are uisng similar to OpensourceXML
>  That works like a champ.
>
>  I am not sure, if PHP-Java bridge would have any difference in terrms of 
> perf.
>
>  Thanks
>  Sudhi
>
> Stefan Neufeind <ap...@stefan-neufeind.de> wrote:
>  Chris Stephens wrote:
>> Has anyone had success getting Nutch to work with the php-java-bridge?
>> I've been playing around with this for about a day and a half and have
>> not been able to get passed the error:
>>
>> java stack trace: java.lang.Exception: CreateInstance failed: new
>> org.apache.nutch.searcher.NutchBean. Cause:
>> java.lang.NullPointerException at
>> org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96) at
>> org.apache.nutch.searcher.NutchBean.(NutchBean.java:84) at
>> org.apache.nutch.searcher.NutchBean.(NutchBean.java:73) at
>> java.lang.reflect.Constructor.newInstance(libgcj.so.7) at
>> php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:547) at
>> php.java.bridge.Request.handleRequest(Request.java:503) at
>> php.java.bridge.Request.handleRequests(Request.java:533) at
>> php.java.bridge.JavaBridge.run(JavaBridge.java:192) at
>> php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37)
>> Caused by: java.lang.NullPointerException at
>> org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96) ...8 more
>>
>> I do have a proper searcher.dir entry in my nutch-site.xml, and my index
>> does have data. My class path currently looks like:
>> :/usr/java/jdk1.5.0_06:/usr/java/jdk1.5.0_06/lib:/usr/local/nutch/lib:/usr/local/nutch:/usr/local/nutch/conf/nutch-default.xml:/usr/local/nutch/conf/nutch-site.xml
>>
>>
>> I would appreciate any reports on nutch working with php-java-bridge and
>> information about stability.
>
> Do you really need a real php-java-bridge for that? We're using the
> OpenSearch XML-output from nutch in a php-application andlocking down
> access to nutch only from localhost. Works fine ...
> (Though if someone gets the php-java-bridge to work that would be cool! 
> :-)
>
>
> Regards,
> Stefan
>
>
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 


Re: any success with php-java-bridge and Nutch?

Posted by Sudhi Seshachala <su...@yahoo.com>.
For http://www.myopensourcejobs.com, we are uisng similar to OpensourceXML
  That works like a champ.
   
  I am not sure, if PHP-Java bridge would have any difference in terrms of perf.
   
  Thanks
  Sudhi

Stefan Neufeind <ap...@stefan-neufeind.de> wrote:
  Chris Stephens wrote:
> Has anyone had success getting Nutch to work with the php-java-bridge? 
> I've been playing around with this for about a day and a half and have 
> not been able to get passed the error:
> 
> java stack trace: java.lang.Exception: CreateInstance failed: new 
> org.apache.nutch.searcher.NutchBean. Cause: 
> java.lang.NullPointerException at 
> org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96) at 
> org.apache.nutch.searcher.NutchBean.(NutchBean.java:84) at 
> org.apache.nutch.searcher.NutchBean.(NutchBean.java:73) at 
> java.lang.reflect.Constructor.newInstance(libgcj.so.7) at 
> php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:547) at 
> php.java.bridge.Request.handleRequest(Request.java:503) at 
> php.java.bridge.Request.handleRequests(Request.java:533) at 
> php.java.bridge.JavaBridge.run(JavaBridge.java:192) at 
> php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37) 
> Caused by: java.lang.NullPointerException at 
> org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96) ...8 more
> 
> I do have a proper searcher.dir entry in my nutch-site.xml, and my index 
> does have data. My class path currently looks like:
> :/usr/java/jdk1.5.0_06:/usr/java/jdk1.5.0_06/lib:/usr/local/nutch/lib:/usr/local/nutch:/usr/local/nutch/conf/nutch-default.xml:/usr/local/nutch/conf/nutch-site.xml 
> 
> 
> I would appreciate any reports on nutch working with php-java-bridge and 
> information about stability.

Do you really need a real php-java-bridge for that? We're using the 
OpenSearch XML-output from nutch in a php-application andlocking down 
access to nutch only from localhost. Works fine ...
(Though if someone gets the php-java-bridge to work that would be cool! :-)


Regards,
Stefan


 		
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 

Re: any success with php-java-bridge and Nutch?

Posted by Stefan Neufeind <ap...@stefan-neufeind.de>.
Chris Stephens wrote:
> Has anyone had success getting Nutch to work with the php-java-bridge?  
> I've been playing around with this for about a day and a half and have 
> not been able to get passed the error:
> 
> java stack trace: java.lang.Exception: CreateInstance failed: new 
> org.apache.nutch.searcher.NutchBean. Cause: 
> java.lang.NullPointerException at 
> org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96) at 
> org.apache.nutch.searcher.NutchBean.(NutchBean.java:84) at 
> org.apache.nutch.searcher.NutchBean.(NutchBean.java:73) at 
> java.lang.reflect.Constructor.newInstance(libgcj.so.7) at 
> php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:547) at 
> php.java.bridge.Request.handleRequest(Request.java:503) at 
> php.java.bridge.Request.handleRequests(Request.java:533) at 
> php.java.bridge.JavaBridge.run(JavaBridge.java:192) at 
> php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37) 
> Caused by: java.lang.NullPointerException at 
> org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96) ...8 more
> 
> I do have a proper searcher.dir entry in my nutch-site.xml, and my index 
> does have data.  My class path currently looks like:
> :/usr/java/jdk1.5.0_06:/usr/java/jdk1.5.0_06/lib:/usr/local/nutch/lib:/usr/local/nutch:/usr/local/nutch/conf/nutch-default.xml:/usr/local/nutch/conf/nutch-site.xml 
> 
> 
> I would appreciate any reports on nutch working with php-java-bridge and 
> information about stability.

Do you really need a real php-java-bridge for that? We're using the 
OpenSearch XML-output from nutch in a php-application andlocking down 
access to nutch only from localhost. Works fine ...
(Though if someone gets the php-java-bridge to work that would be cool! :-)


Regards,
  Stefan