|
From: <art...@ug...> - 2005-12-14 13:09:15
|
Answering myself,
The problem seems to happens with the second parameter of the index
method, that contains a character '_'. This cause null exception! is it a
bug? Changing that directory to something else like 'h:\test' solve the
problem.
Cheers,
Arturo.
> Hello,
>
> I'm using version 3.0.2 with PHP 5.0.4. I don't know why i'm getting this
> strange error:
>
> Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed:
> [o(Indexador)]->index((String)o(String), (String)o(String)). Cause:
> java.lang.NullPointerException"] thrown in h:\wamp\www\testjava.php on
> line 9
>
> with this piece of code:
>
> <?php
>
> java_require("h:/search_engine/lucene-1.4.3.jar;h:/search_engine/Indexador.jar");
> $indexer = new Java("org.ew.lucene.Indexador");
> $indexer->index("h:\puleva2\puleva2\data","h:\search_engine\index");
>
> ?>
>
> the index method is defined as follows:
>
> public void index(String DataDir, String IndexDir) throws Exception {
>
> }
>
> Any help is appreciated.
>
> Regards,
>
> Arturo.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|