|
From: <php...@li...> - 2008-10-11 19:07:37
|
Hi,
regarding the Netbeans issue. I attempted to solve the issue, but no luck
yet. To just summarize the status:
-ran the war installation part
-copied the java bridge and php-script jar files to the java.ext.dirs.
-the simple code I am trying to run is (without the try/catch):
InvocablePhpScriptEngine engine = new InvocablePhpScriptEngine();
String s = "<?php echo 'HelloWorld!\n'; ?>";
System.out.println("here");
engine.eval(new StringReader(s));
System.out.println("here2");
String name = (String)
((Invocable)engine).invokeFunction("java_get_server_name", new Object[]{});
System.out.println("PHP/Java communication port: " + name);
engine.eval((Reader)null);
-this leads to the reported error of the null pointer exception when
obtaining a handler.
I suspect the problem may lie in setting the properties of the bridge in the
java code. In my code
I set them as follows:
System.setProperty("php.java.bridge.default_log_level", "3");
System.setProperty("php.java.bridge.default_log_file", "");
System.setProperty("php.java.bridge.php_exec", "php-cgi");
Now, I am running this on Windows, where the location of the php-cgi.exe
file is "c:\php\php-cgi.exe" (which is part of the standard php 5.2.6
download together with the php5ts.dll library).
I attempted to set the "php.java.bridge.php_exec" property to this location
(in different variations), but that did not work.
Could you please inform what is the proper way to set these properties (in
order to rule out this potential cause)?
Regards,
Bart
On Wed, Oct 8, 2008 at 8:45 PM, <php...@li...
> wrote:
> Hi,
>
> > 8) ran the code resulting in the error reported in the
> > email below.
>
> we're sorry, but we could not reproduce this problem.
>
>
> Please open a bug report (please use
> http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and
> include a piece of test code and the php executable (php-cgi.exe,php5ts.dll)
> and the JavaBridge.jar and php-script.jar you've used for the test. Please
> also include the error message.
>
>
> Regards,
> Jost Boekemeier
>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
--
The new is always the old. Everything that's old was once new, and
everything that's new will one day be old. The oldest thing of all is the
present, because there's never been anything else but the present. No one
has ever lived in the past, and no one lives in the future, either.
|