It means that the method Hits.doc expects an int as argument but was
given a string. You should explicitly convert the value in PHP using
intval for example.
If you plan to use PHP/Java Bridge heavily, I recommend you learn to
decode such exception reports because they will provide the only clue
as to what's wrong with your code!
On Tue, Dec 16, 2008 at 1:34 PM,
<php...@li...> wrote:
> I am getting the following error when trying to use lucene search not quite sure what it means...
>
> Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:Hits]]->doc((o:int)[o:String]). Cause: java.lang.IllegalArgumentException VM: 1.4.2@http://gcc.gnu.org/java/" at: #-6 java.lang.reflect.Method.invoke(libgcj.so.7rh) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1079) #-4 php.java.bridge.Request.handleRequest(Request.java:405) #0 http://localhost:8080/JavaBridge/java/Java.inc(328): java_ThrowExceptionProxyFactory->getProxy(11, 'java.lang.Strin...', 'java.lang.Illeg...', true) #1 http://localhost:8080/JavaBridge/java/Java.inc(485): java_Arg->getResult(true) #2 http://localhost:8080/JavaBridge/java/Java.inc(491): java_Client->getWrappedResult(true) #3 http://localhost:8080/JavaBridge/java/Java.inc(695): java_Client->getResult() #4 http://localhost:8080/JavaBridge/java/Java.inc(1837): java_Client->invokeMethod(5, 'doc', Array) #5 http://localhost:8080/JavaBridge/java/Java.inc(1955): java_JavaProxy->__call('doc', Array) #6 http://localhost:8080/JavaBridge/java/Java.inc(2131): java_AbstractJav in http://localhost:8080/JavaBridge/java/Java.inc on line 291
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|