You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <php...@li...> - 2008-09-18 08:43:31
|
I willl be at the bottom of the Grand Canyon from Thursday September 18 through Saturday September 20. If your email cannot wait until after then, please contact Andre Torrez (to...@fe...). If I do not return to work on Monday, please send help! Thanks, Justin |
|
From: <php...@li...> - 2008-09-18 08:43:13
|
Hello, I want to build a standalone debian server able to create Jasper reports. I do not need tomcat or other stuff. I install php-java-bridge and a java machine: > # java -Djava.awt.headless=true -jar > /usr/lib/php5/20060613+lfs/JavaBridge.jar INET:8080 3 Next, in a remote php application I try to include : > $java_inc_filename = "http://$host:$port/JavaBridge/java/Java.inc"; > require_once($java_inc_filename); This throw an exception in the "jasper Server" and the remote php application failed to fetch the file. Did we miss something ? Thanks in advance, Benjamin. Server log : @8080 Sep 18 10:33:07 VMBridge INFO : VM : 1.6.0_07@http://java.sun.com/ Sep 18 10:33:07 VMBridge INFO : VMBridge version : 5.2.2 Sep 18 10:33:07 VMBridge INFO : logFile : Sep 18 10:33:07 VMBridge INFO : default logLevel : 3 Sep 18 10:33:07 VMBridge INFO : socket : INET:8080 Sep 18 10:33:07 VMBridge INFO : java.ext.dirs : /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext:/usr/java/packages/lib/ext Sep 18 10:33:07 VMBridge INFO : php.java.bridge.base: /root Sep 18 10:33:07 VMBridge INFO : thread pool size : 20 Sep 18 10:33:53 VMBridge ERROR: An exception occured: java.lang.IllegalArgumentException: Standard header not supported anymore. Use the extended header. java.lang.IllegalArgumentException: Standard header not supported anymore. Use the extended header. at php.java.bridge.Parser.initOptions(Parser.java:68) at php.java.bridge.Request.init(Request.java:181) at php.java.bridge.JavaBridge.run(JavaBridge.java:206) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) |
|
From: <php...@li...> - 2008-09-14 19:00:36
|
Hi, > Why not just [...] pass in the PHP script on standard input? because PHP needs a real file within the current working dir. Recent versions of PHP cannot include PHP files from urls anyway, unless you set the allow_url_include PHP option. However, you can subclass the php/java/script/PhpServletScriptEngine.java to do what you want. Please see: http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/server/php/java/script/PhpServletScriptEngine.java?view=markup You need to customize the protected Object eval(Reader reader, ScriptContext context, String name) throws ScriptException; method. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-14 18:48:43
|
Hi, > For a number of reasons, I would really prefer to use the > version of > Tomcat that comes with Ubuntu. the debian version starts Java as tomcat/root but fails to set the environment correctly: user.dir, user.home still point to /root. This is because the debian people do a user switch before executing java, but passing it the environment from root(!). NO web application can work correctly with such a setting. Seriously, don't use the debian-patched tomcat installation. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-13 17:25:03
|
Hi, On Tue, Sep 9, 2008 at 8:29 AM, <php...@li...> wrote: > [please use a standard tomcat installation!] For a number of reasons, I would really prefer to use the version of Tomcat that comes with Ubuntu. I think you are hung up on me not using a standard Tomcat installation. The exception was caused by the application running out of my home directory instead of as a WAR file that has been exploded in Tomcat's webaps directory. > the exception means that the bridge could not create a PHP file. > Please change the permissions so that the bridge can create PHP > files within the tomcat document root. The result is that PHP parses > and returns an empty file. My previous email already indicated I solved this problem by making the web directory of my application writable by Tomcat. I've verified that the PHP/Java Bridge is able to write files there my building a custom version of php-script.jar that does not delete the temp file. I've taken some time to dig into the PHP/Java Bridge code to try and see what is going wrong. I'm a little concerned about how the PHP/Java Bridge goes about calling PHP from Java. I see it creating a PHP temp file in my application's web directory containing the script I intend to run and then making a HTTP request to get that file back. When does PHP get executed in this process? The HTTP request is going to go to Tomcat, which is not going to call PHP to handle the PHP script. Why not just call PHP directly from Java and pass in the PHP script on standard input? That way you won't need to create a temp file or issue a HTTP request to process the PHP script. -- Jeff Weston PGP public key available from http://pgp.mit.edu/ PGP Key ID: 0x14B456ED |
|
From: <php...@li...> - 2008-09-11 09:51:06
|
Hi, > Is filling up /var/tmp with .php_java_bridge?????? sounds like a PHP or a FreeBSD bug to me. Please check this with the PHP and/or FreeBSD people. In line 853 of Java.inc the PHP code creates a pair of fifos: $mask = umask(0); $this->fifor = posix_mkfifo($this->iname, 0666); $this->oname = $this->name . ".o"; $this->fifo = posix_mkfifo($this->oname, 0666); umask($mask); and removes them immediately to create a hidden communication channel: unlink($this->iname); unlink($this->oname); unlink($this->name); This is a standard Unix programming practice. If PHP on FreeBSD cannot handle this correctly, please complain to either the PHP or FreeBSD maintainers. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-10 22:27:06
|
The php-java-bridge Is filling up /var/tmp with .php_java_bridge?????? Directories When I remove them the Java Bridge stops working. I need to re-install and restart apache to get it running again. Im running version 5.2.2 on FreeBSD 6.2 AMD64 & FreeBSD 7 AMD64 and FreeBSD 5.3 i386 They all have the same problem. Basic install following INSTALL directions Ed |
|
From: <php...@li...> - 2008-09-09 18:00:00
|
Hi Mani, I'm not a guru in php/java bridge, but I'm using it for several months to bridge the Moodle (PHP based LMS) and Java application I have developed, that uses threads to perform some background tasks. Actually, threads does not depends on php/java bridge. It is only started through php/java bridge, and it is performed in JVM. So, the answer is yes, you can use multi threading. Hope this helps, Zoran ----- Original Message ----- From: php...@li... To: php...@li... Date: Tue, 9 Sep 2008 22:17:00 +0530 Subject: [Php-java-bridge-users] Threading support? > > -----Inline Attachment Follows----- > > Hi, > > I am trying to write program in java to transfer files using multithreading > mechanism. The plan is to invoke this java program from PHP to send files. I > just want to know, Will php java bridge support multi threading? Is it > possible to achieve this task? > > Thanks, > Mani > ------------------------------------------------------------------------- > 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 > |
|
From: <php...@li...> - 2008-09-09 16:46:51
|
Hi, I am trying to write program in java to transfer files using multithreading mechanism. The plan is to invoke this java program from PHP to send files. I just want to know, Will php java bridge support multi threading? Is it possible to achieve this task? Thanks, Mani |
|
From: <php...@li...> - 2008-09-09 15:29:36
|
Hi, [please use a standard tomcat installation!] the exception means that the bridge could not create a PHP file. Please change the permissions so that the bridge can create PHP files within the tomcat document root. The result is that PHP parses and returns an empty file. The bridge creates the PHP files within the tomcat document root because some PHP versions have the habit to change the cwd to the location of the PHP file. Since one cannot get a servlet engine to listen on a port 80 anyway, a writeable tomcat document root is not a security problem. Use Apache or IIS to forward requests from port 80 to the servlet back end. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-08 20:30:26
|
Hi, On Mon, Sep 8, 2008 at 11:53 AM, <php...@li...> wrote: > Do you get a valid JSR223 script engine manager from the factory? > > Do you receive a javax.script.ScriptEngine? And is the script engine > indeed the php.java.bridge.PhpScriptEngine or is it some other > implementation? I'm not sure how to check these things. I added a toString() call on the script engine and got the following: "php.java.script.PhpServletScriptEngine@2b7bd9". Based on what I see there, I'm guessing that the correct implementation is being used. > Can you please start log4j (e.g. with: "java -jar log4j.jar" -- > please use the log4j contained in the bridge binary download) and > restart tomcat with the log level set to 4 (e.g. with: > JAVA_OPTS="-Dphp.java.bridge.default_log_level=4" sh catalina.sh > run) and check the log? Okay, I got logging working. The first thing I saw was an exception: "java.io.IOException: Permission denied". The stack trace is fairly lengthy, so I've attached it as a separate file (exception.txt). I think I'm getting this exception because the PHP/Java Bridge is attempting to create a temp file in my web directory, but the Tomcat user does not have write access to that directory. I remember seeing a system call to attempt to create a file in this directory when I was using strace to try and track down this problem yesterday. For now, I have made my web directory writable by tomcat (using chmod 777). When I ran the JSP again, I no longer see the exception in my log, but I still am not getting any output from PHP. This is the only other log entry I see related to the PHP/Java Bridge: Time: 8:18:05 PM Priority: DEBUG Thread: http-8180-Processor23 NDC: null Category: php.java.bridge.JavaBridge Location: null Message: created new bridge: php.java.bridge.JavaBridge@d0005e Throwable: null -- Jeff Weston PGP public key available from http://pgp.mit.edu/ PGP Key ID: 0x14B456ED |
|
From: <php...@li...> - 2008-09-08 18:53:34
|
Hi Jeff, > > You must edit the appropriate config file and switch > off the > > provided policy. > > I turned off the security manager for Tomcat completely. > This did not > work for me either. Do you get a valid JSR223 script engine manager from the factory? Do you receive a javax.script.ScriptEngine? And is the script engine indeed the php.java.bridge.PhpScriptEngine or is it some other implementation? Can you please start log4j (e.g. with: "java -jar log4j.jar" -- please use the log4j contained in the bridge binary download) and restart tomcat with the log level set to 4 (e.g. with: JAVA_OPTS="-Dphp.java.bridge.default_log_level=4" sh catalina.sh run) and check the log? Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-08 16:52:09
|
Hi. Thank you for your reply. I am still having the same problem. I've tried a variety of things in response to your reply. On Mon, Sep 8, 2008 at 1:09 AM, <php...@li...> wrote: > the current Tomcat version is 6.x, so I assume that you use the > version which came with debian. I am using Ubuntu 7.10 and the Tomcat package available in Ubuntu's package repositories. > Please either use the standard version of Tomcat with a standard > version of Java. Or please use the PHP/Java Bridge debian package > available from sourceforge. I looked at the PHP/Java Bridge Debian package available from SourceForge and saw that it installs a PHP configuration file, 'java.ini', and a bunch of files to '/usr/lib/php5/20060613+lfs'. Are these needed for calling PHP from Java, or are they only needed if you call Java from PHP? On the off chance they are needed to call PHP from Java, I installed them and restarted Apache. This did not solve my problem. I also switched out the JAR PHP/Java Bridge JAR files I am using for the ones included in the Debian package available from SourceForge. This did not solve my problem either. > We've recently tried to set up the binary file on a debian machine > and run into the same problems. Basically the tomcat version shipped > with the debian os is patched. It has additional features which > forbit accessing /bin/sh or /usr/bin/php for example. > > You must edit the appropriate config file and switch off the > provided policy. I turned off the security manager for Tomcat completely. This did not work for me either. -- Jeff Weston PGP public key available from http://pgp.mit.edu/ PGP Key ID: 0x14B456ED |
|
From: <php...@li...> - 2008-09-08 08:09:07
|
Hi, > First off, some background information about my setup. I am > running on > Ubuntu 7.10 (Gusty Gibbon). I am using Tomcat 5.5 as my web > server. I the current Tomcat version is 6.x, so I assume that you use the version which came with debian. Please either use the standard version of Tomcat with a standard version of Java. Or please use the PHP/Java Bridge debian package available from sourceforge. We've recently tried to set up the binary file on a debian machine and run into the same problems. Basically the tomcat version shipped with the debian os is patched. It has additional features which forbit accessing /bin/sh or /usr/bin/php for example. You must edit the appropriate config file and switch off the provided policy. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-06 19:11:50
|
Hi,
I'm having trouble calling PHP from a JSP in a web application I am
working on. I've been working on this for several hours now and have
run out of things to try. I've searched Google and the archives for
this mailing list, but have been unable to find a solution. I'm hoping
someone here can help me out.
First off, some background information about my setup. I am running on
Ubuntu 7.10 (Gusty Gibbon). I am using Tomcat 5.5 as my web server. I
am using Eclipse as my IDE. Java, Tomcat, and Eclipse have all been
installed from the Ubuntu package repositories. I am using version
5.2.2 of the PHP Java Bridge.
I have placed the following JARs in my WEB-INF/lib directory:
JavaBridge.jar
php-script.jar
php-servlet.jar
script-api.jar
I have placed the following lines in my WEB-INF/web.xml file:
<listener>
<listener-class>php.java.servlet.ContextLoaderListener</listener-class>
</listener>
I don't know if it matters or not, but I am also using version
2.0.11.2 of Apache Struts. The appropriate Struts JARs have also been
placed in the WEB-INF/lib directory and the WEB-INFO/web.xml file has
also been updated for Struts accordingly.
I have created a simple JSP with some basic HTML content (a variant of
"Hello World") and have placed the following code snippet inside the
JSP in an attempt to use PHP:
<%
out.print( "[Before]" );
javax.script.ScriptEngine e =
php.java.script.EngineFactory.getPhpScriptEngine( this,
application,
request,
response );
e.getContext().setWriter( out );
e.eval( "<?php echo \"Test\"; ?>" );
out.print( "[After]" );
%>
When I view this JSP in my web browser, I see "[Before][After]" with
nothing in between [Before] and [After], along with the rest of the
page contents. I am expecting the word "Test" to appear between
[Before] and [After].
I have tried various PHP snippets in the eval line, and none of them
work. Here are the other things I've tried:
e.eval( "<?php echo phpinfo(); ?>" );
e.eval( new java.io.FileReader( "/var/www/header.php" ));
I've checked the two Tomcat logs that are being written to,
'catalina.2008-09-06.log' and 'localhost.2008-09-06.log'. While I was
thrashing about with some earlier attempts at getting this to work, I
would see exceptions being logged in one or both of those log files,
as well as appearing in my browser when viewing the JSP. With this
current arrangement, nothing is being logged in those two log files
and I am not seeing an exception in the browser when viewing the JSP.
Without a stack trace or other error message, I am at a loss for how
to proceed with diagnosing my problem. Any help you could provide here
would be very much appreciated.
--
Jeff Weston
PGP public key available from http://pgp.mit.edu/
PGP Key ID: 0x14B456ED
|
|
From: <php...@li...> - 2008-09-04 09:37:32
|
Hi,
> Of course, the error is in the method declaration
Not really.
> *public Boolean isValidAccountNumber(String acctnum) { *
> *public boolean isValidAccountNumber(String acctnum) {*
from the PHP/Java Bridge's point of view both are equivalent, unless you define
define ("JAVA_PREFER_VALUES", 1);
before including java/Java.inc. The JAVA_PREFER_VALUES forces a round-trip for each primitive return value.
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
|
|
From: <php...@li...> - 2008-09-03 19:51:38
|
Hi,
> Try:
> $res = (bool) $IDEAS->isValidAccountNumber($acctnum) ;
No! PHP automatically casts a primitive value into a boolean, if it is part of the boolean expression. However, you cannot convert a PHP object into PHP value using a type cast. The only exception is the (string) type cast, which internally calls $res->__toString()[1].
Therefore the PHP/Java Bridge library contains two special procedures, one to fetch a PHP value from a Java object, the other one to cast a Java object into a PHP primitive type. Please see our documentation for details.
Regards,
Jost Boekemeier
[1] PHP's behaviour is insane, of course. In order to convert the following PHP object into a value one needs two type casts:
class Clazz_ONE {
function __toString() { return "1"; }
}
$one = new Clazz_ONE();
var_dump( (int) $one)
=> ERROR
var_dump( (int)(string) $one)
=> 1
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
|
|
From: <php...@li...> - 2008-09-03 16:04:11
|
Roger says:
>>You must change your method declaration by (notice the native boolean):
>>*public boolean isValidAccountNumber(String acctnum) {*
Thank you. I will try this when I get a chance and let you know. Since
it is working, I have moved to another assignment, but when I get time I
will try this. I appreciate the information. I wasn't aware of the
difference between boolean and Boolean.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
|
|
From: <php...@li...> - 2008-09-03 15:34:34
|
Of course, the error is in the method declaration, see:
*public Boolean isValidAccountNumber(String acctnum) { *
Java is performing an automatic typecasting from native boolean to object
java.lang.Boolean.
You must change your method declaration by (notice the native boolean):
*public boolean isValidAccountNumber(String acctnum) {*
Please test this change and give your feedback.
Greetings from Cartagena / Colombia
--
Roger Padilla
On Wed, Sep 3, 2008 at 9:57 AM, <php...@li...
> wrote:
> Benjamin wrote:
> >>I had a similar problem and I use java_values() to solve, try :
>
> >>if( java_values($IDEAS->isValidAccountNumber($acctnum)) ){
>
> That was it. Thanks so much Benjamin.
>
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
>
> -------------------------------------------------------------------------
> 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
>
--
Roger José Padilla Camacho
|
|
From: <php...@li...> - 2008-09-03 14:57:01
|
Benjamin wrote:
>>I had a similar problem and I use java_values() to solve, try :
>>if( java_values($IDEAS->isValidAccountNumber($acctnum)) ){
That was it. Thanks so much Benjamin.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
|
|
From: <php...@li...> - 2008-09-03 14:51:07
|
>>That's so strange... in PHP the number 1 is like true, that also not works >>for you? I believe the problem is that after the call, $res contains a Java Boolean object, not the boolean value of 0 or 1. I am trying the java_values approach now. Charles Shaffer Senior Analyst NTN-Bower Corporation |
|
From: <php...@li...> - 2008-09-03 14:39:54
|
That's so strange... in PHP the number 1 is like true, that also not works
for you?
On Wed, Sep 3, 2008 at 9:37 AM, <php...@li...
> wrote:
> >>Just try:
>
> >>// Notice the !
> >>if(!$res){
> >> ...
> >>}
>
> Same thing.
>
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
>
> -------------------------------------------------------------------------
> 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
>
--
Roger José Padilla Camacho
|
|
From: <php...@li...> - 2008-09-03 14:37:10
|
>>Just try:
>>// Notice the !
>>if(!$res){
>> ...
>>}
Same thing.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
|
|
From: <php...@li...> - 2008-09-03 14:17:19
|
I had a similar problem and I use java_values() to solve, try :
if( java_values($IDEAS->isValidAccountNumber($acctnum)) ){
...
}
Hope this Help,
Benjamin.
php...@li... a écrit :
>>> Try:
>>>
>
>
>>> $res = (bool) $IDEAS->isValidAccountNumber($acctnum) ;
>>> if ($res === false) {
>>>
>
> I tried
> $result = (bool)$IDEAS->isValidAccountNumber($acctnum);
> echo "result = $result";
>
> And got
> result = 1
>
> This can't be correct because I set up the isValidAccountNumber function
> to always return false.
>
> I tried
> $result = $IDEAS->isValidAccountNumber($acctnum);
> echo "result = $result";
>
> And got
> result = [[o:Boolean]:"false"]
>
> At least false is in there somewhere. I guess the question I should be
> asking is how do I extract the value from the Boolean object returned by
> Java?
>
> When I try
> $resval = $result->value;
> echo "resval = $resval";
>
> It takes a dump
> Error [[o:Exception]:"java.lang.Exception: GetProperty failed:
> [[o:Boolean]]->value.
> Cause: java.lang.NoSuchFieldException: value (with args:).
>
> If not value, then what?
>
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
>
> -------------------------------------------------------------------------
> 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
>
|
|
From: <php...@li...> - 2008-09-03 14:12:22
|
Just try:
// Notice the !
if(!$res){
...
}
On Wed, Sep 3, 2008 at 9:05 AM, <php...@li...
> wrote:
> >>Try:
>
> >>$res = (bool) $IDEAS->isValidAccountNumber($acctnum) ;
> >>if ($res === false) {
>
> I tried
> $result = (bool)$IDEAS->isValidAccountNumber($acctnum);
> echo "result = $result";
>
> And got
> result = 1
>
> This can't be correct because I set up the isValidAccountNumber function
> to always return false.
>
> I tried
> $result = $IDEAS->isValidAccountNumber($acctnum);
> echo "result = $result";
>
> And got
> result = [[o:Boolean]:"false"]
>
> At least false is in there somewhere. I guess the question I should be
> asking is how do I extract the value from the Boolean object returned by
> Java?
>
> When I try
> $resval = $result->value;
> echo "resval = $resval";
>
> It takes a dump
> Error [[o:Exception]:"java.lang.Exception: GetProperty failed:
> [[o:Boolean]]->value.
> Cause: java.lang.NoSuchFieldException: value (with args:).
>
> If not value, then what?
>
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
>
> -------------------------------------------------------------------------
> 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
>
--
Roger José Padilla Camacho
|