|
From: <php...@li...> - 2010-01-17 17:59:32
|
Hi,
I have a question.
Can I do something like this:
ResultSet rs = QueryExecutionFactory.create(q, m).execSelect();
(where ResultSet rs is a java interface, QueryExecutionFactory.create(q,m) returns a java interface and execSelect() function is declared in this interface).
with PHP/Java Bridge?
In Java I can.
How can I do that?
I have tried this:
$query = Java("com.hp.hpl.jena.query.QueryFactory")->create($sparqlString); //---OK.
$rs = Java("com.hp.hpl.jena.query.QueryExecutionFactory")->create($query, $modelD2RQ)->execSelect(); //---crash here
but it replies:
java stack trace: java.lang.Exception: Invoke failed:
[[o:Response$UndeclaredThrowableErrorMarker]]->execSelect. Cause:
java.lang.NoSuchMethodException: execSelect(). Candidates: [] VM:
1.6.0_17@http://java.sun.com/ at
php.java.bridge.JavaBridge.checkM(JavaBridge.java:1091) at
php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1029) at
php.java.bridge.Request.handleRequest(Request.java:415) at
php.java.bridge.Request.handleRequests(Request.java:491) at
php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) at
php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
Caused by: java.lang.NoSuchMethodException: execSelect(). Candidates:
[] ... 6 more
Thanks in advance.
_________________________________________________________________
Una nueva experiencia de búsqueda está aquí
http://www.bing.com/?mkt=es-MX&FORM=M006IR&Publ=WLHMTAG&Crea=TEXT_M006IR_Bing_ES_SaveTimeClicks_1X1
|
|
From: <php...@li...> - 2010-04-13 13:40:54
|
Hi all i have been trying to use the php java bridge and I am getting this error can any one help. *Warning*: fread() [function.fread<http://localhost/JavaBridge/function.fread>]: Length parameter must be greater than 0 in * C:\wamp\www\JavaBridge\java\Java.inc* on line *1027* *Fatal error*: in *C:\wamp\www\JavaBridge\java\Java.inc* on line *869* -- Nyika Alex +254716398997 "The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvelous structure of reality. It is enough if one tries merely to comprehend a little of this mystery every day. Never lose a holy curiosity." - Albert Einstein |
|
From: <php...@li...> - 2010-04-13 15:49:23
|
Hi, > C:\wamp\www\JavaBridge\java\Java.inc* on line *1027* thank you very much for the bug report. This is a regression. Since PHP/Java Bridge 6 the bridge requires HTTP/1.1 chunked connections. So the code in line 1026ff is now completely wrong: Line 1027 is: $len=$this->headers['content_length']; for($str=fread($this->socket,$len); strlen($str)<$len; $str.=fread($this->socket,$len-strlen($str))); I guess we've tested the code against servers which send both, the CONTENT_LENGTH and Transfer-Encoding: chunked header fields. I will fix this for the upcoming version 6.1.2. Thanks again for this bug report. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2010-04-13 17:15:29
|
Hi again,
please forget what I've said. The PHP/Java Bridge code is correct.
Java.inc is difficult to read because it doesn't contain any
indentation. Here's the code from Protocol.inc:
function read($size) {
if(is_null($this->headers)) $this->parseHeaders();
if (isset($this->headers["http_error"])) {
$len = $this->headers['content_length'];
for($str=fread($this->socket, $len); strlen($str)<$len;
$str.=fread($this->socket,$len-strlen($str)));
$this->shutdownBrokenConnection($str);
}
return $this->fread(JAVA_RECV_SIZE);
}
Error messages are reported with Content-Length set:
send(3, "PUT /JavaBridge/JavaBridge.phpjavabridge HTTP/1.1\r\nHost:
127.0.0.1:8080\r\nCache-Control: no-cache\r\nPragma: no-cache\r
\nTransfer-Encoding: chunked\r\n\r\n24\r\n\177C<H p=\"1\" v=
\"java.lang.System\"></H>\r\n", 188, 0) = 188
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, -1) = 1 ([{fd=3,
revents=POLLIN}])
recv(3, "HTTP/1.1 404 Not Found\r\nServer: Apache-Coyote/1.1\r
\nContent-Type: text/html;charset=utf-8\r\nContent-Length: 952
But the back end response would be interesting nevertheless. Can you
please edit the Java.inc read function as follows and send the output?
function read($size) {
if(is_null($this->headers)) $this->parseHeaders();
if (isset($this->headers["http_error"])) {
//$len = $this->headers['content_length'];
//for($str=fread($this->socket, $len); strlen($str)<$len;
$str.=fread($this->socket,$len-strlen($str)));
$str = fread($this->socket, JAVA_RECV_SIZE);
$this->shutdownBrokenConnection($str);
}
return $this->fread(JAVA_RECV_SIZE);
}
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2010-04-14 15:30:11
|
Fixed in CVS head ( http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/META-INF/java/Protocol.inc?r1=1.43&r2=1.44&sortby=date ) and in the current 6.1.2 download. You should now see the Tomcat HTTP error message in your PHP page. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2010-01-17 19:18:21
|
Hi, like other containers (EJB for example), the PHP/Java Bridge container terminates the current transaction if a java.lang.RuntimeException or java.lang.Error crosses the container boundary. However, it does not terminate it immediately, to give you a chance to clear the error condition before the PHP script terminates. Please see http://php-java-bridge.sourceforge.net/pjb/docs/php-api/JavaBridge/_JavaProxy.inc.html#functionjava_last_exception_clear for details. Please see our FAQ entry "Why doesn't the bridge throw a java.lang.RuntimeException or Error as a PHP JavaException by default?" > [[o:Response$ > UndeclaredThrowableErrorMarker]]->execSelect. Cause: > java.lang.NoSuchMethodException: execSelect(). Candidates: [] VM: please take a look at the error message again; your code: $query = Java("com.hp.hpl.jena.query.QueryFactory")->create($sparqlString); //---OK. has thrown a java.lang.Error or java.lang.RuntimeException, which is reported as a PHP warning. In the next step you ignore the warning, take the RuntimeException and try to invoke execSelect() on it, which fails, of course. If you want java.lang.Error and java.lang.RuntimeException to fail fast, define("JAVA_PREFER_VALUES", true) before including Java.inc. Regards, Jost Boekemeier |
|
From: <php...@li...> - 2010-01-21 01:05:27
|
Hi,
As you adviced me, I have tried to catch a RuntimeException before the execSelect call, but I have no success.
Here is the Java Code I want to transform to PHP code with PHP/Java Bridge:
import de.fuberlin.wiwiss.d2rq.*;
import com.hp.hpl.jena.query.*;
class pruebaSPARQL{
public pruebaSPARQL()
{
super();
}
public static void main(String argv[])
{
// Load mapping file
ModelD2RQ m = new ModelD2RQ("D:/DOCUMENTOS/alejandro/Maestria/tesis/egresados/herramientas/d2r-server-0.7/mapvariasLapOnto.n3");
String sparql =
"PREFIX onto: <http://localhost/egresados/site/egresado.owl#>" +
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" +
"SELECT DISTINCT ?carrera WHERE {" +
" ?egresado onto:Carrera ?carrera . " +
"}";
Query q = QueryFactory.create(sparql);
ResultSet rs = QueryExecutionFactory.create(q, m).execSelect();
while (rs.hasNext()) {
QuerySolution row = rs.nextSolution();
System.out.println("Carrera: " + row.getLiteral("carrera").getString());
}
}
}
According to "http://jena.sourceforge.net/ARQ/javadoc/com/hp/hpl/jena/query/package-summary.html", QueryExecutionFactory.create(q, m) returns a QueryExecution Java interface and the execSelect() call should returns a ResultSet Java interface.
Is there (with PHP/Java Bridge) any special thing I have to consider when I work with Java interfaces rather than classes?.
Here is what I have tried with PHP/Java Bridge.
<?php
define ("JAVA_PREFER_VALUES", true);
require_once("http://localhost:8080/egresados/java/Java.inc");
class PRUEBA
{
public function execute()
{
$java_library_path = "D:\\DOCUMENTOS\\alejandro\\Maestria\\tesis\\egresados\\herramientas\\Jena-2.6.2\\lib\\;D:\\DOCUMENTOS\\alejandro\\Maestria\\tesis\\egresados\\herramientas\\d2r-server-0.7\\lib\\";
try {
java_require($java_library_path);
$modelD2RQ = new Java("de.fuberlin.wiwiss.d2rq.ModelD2RQ", "D:\\DOCUMENTOS\\alejandro\\Maestria\\tesis\\egresados\\herramientas\\d2r-server-0.7\\mapvariasLapOnto.n3");
$sparqlString = htmlentities("PREFIX onto: <http://localhost/egresados/site/egresado.owl#>" .
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" .
"SELECT DISTINCT ?carrera WHERE {" .
" ?egresado onto:Carrera ?carrera . " .
"}");
echo $sparqlString;
$query = Java("com.hp.hpl.jena.query.QueryFactory")->create($sparqlString);
$rs = Java("com.hp.hpl.jena.query.QueryExecutionFactory")->create($query, $modelD2RQ)->execSelect();
/*while($rs.hasNext()){
//$row = new java("com.hp.hpl.jena.query.QuerySolution");
$row = $rs.nextSolution();
echo $row.getLiteral("carrera").getString();
}*/
}catch (JavaException $ex) {
$trace = new Java("java.io.ByteArrayOutputStream");
$ex->printStackTrace(new Java("java.io.PrintStream", $trace));
print "java stack trace: $trace\n";
}
}
}
?>
Sincerly, thank you very much.
> Date: Sun, 17 Jan 2010 20:18:14 +0100
> To: php...@li...
> From: php...@li...
> Subject: Re: [Php-java-bridge-users] Help
>
> Hi,
>
> like other containers (EJB for example), the PHP/Java Bridge container
> terminates the current transaction if a java.lang.RuntimeException or
> java.lang.Error crosses the container boundary. However, it does not
> terminate it immediately, to give you a chance to clear the error condition
> before the PHP script terminates.
>
> Please see
> http://php-java-bridge.sourceforge.net/pjb/docs/php-api/JavaBridge/_JavaProxy.inc.html#functionjava_last_exception_clear
> for details.
>
> Please see our FAQ entry "Why doesn't the bridge throw a
> java.lang.RuntimeException or Error as a PHP JavaException by default?"
>
>
> > [[o:Response$
> > UndeclaredThrowableErrorMarker]]->execSelect. Cause:
> > java.lang.NoSuchMethodException: execSelect(). Candidates: [] VM:
>
> please take a look at the error message again; your code:
>
> $query = Java("com.hp.hpl.jena.query.QueryFactory")->create($sparqlString);
> //---OK.
>
> has thrown a java.lang.Error or java.lang.RuntimeException, which is
> reported as a PHP warning. In the next step you ignore the warning, take the
> RuntimeException and try to invoke execSelect() on it, which fails, of
> course.
>
> If you want java.lang.Error and java.lang.RuntimeException to fail fast,
> define("JAVA_PREFER_VALUES", true) before including Java.inc.
>
>
> Regards,
> Jost Boekemeier
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
_________________________________________________________________
Juega y gana con Samsung y Windows Live
http://www.equipatucasa.com.mx
|
|
From: <php...@li...> - 2010-01-22 10:43:30
|
Hi,
> Here is the Java Code I want to transform to PHP code with PHP/Java
Bridge:
Quick and dirty translation:
<?php require_once("java/Java.inc");
$here=getcwd();
java_autoload("$here/d2r-server-0.7/lib;$here/ARQ-2.8.2/lib");
use de\fuberlin\wiwiss\d2rq\ModelD2RQ as ModelD2RQ;
use com\hp\hpl\jena\query\QueryFactory as QueryFactory;
use com\hp\hpl\jena\query\QueryExecutionFactory as QueryExecutionFactory;
try {
class PruebaSPARQL {
public static function test() {
global $here;
$m = new ModelD2RQ("$here/mapping-iswc.n3");
$sparql = "SELECT * WHERE {}";
$q = QueryFactory::create($sparql);
$rs = QueryExecutionFactory::create($q, $m)->execSelect();
while (java_is_true(rs.hasNext())) {
$row = $rs->nextSolution();
echo "Carrera: " . $row->getLiteral("carrera")->getString();
}
}
}
pruebaSPARQL::test();
} catch (Exception $e) {
echo "exception:$e";
}
?>
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2010-01-22 10:59:25
|
BTW: Which PHP version and which OS do you use? While testing the above code against the latest PHP 5.3.1, it appears that PHP 5.3.1 on Windows discards all error messages(!). Please use a stable PHP version instead (PHP 5.2.x). > Is there (with PHP/Java Bridge) any special thing I have to consider when > I work with Java interfaces rather than classes?. Your code is correct. Except for $rs->hasNext(), which returns a Boolean object. Your loop while($rs->hasNext()) never returns. Use an explicit boolean cast: while((boolean)(string)$rs->hasNext()); or while(java_is_true($rs->hasNext()); I think the reason why your query fails is that ModelD2RQ cannot parse an UTF-8 file. But that's a d2rq issue, I think. *Warning*: Unchecked exception detected: [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared java.lang.RuntimeException detected. java.lang.Exception: CreateInstance failed: new de.fuberlin.wiwiss.d2rq.ModelD2RQ((o:String)[o:String]). Cause: de.fuberlin.wiwiss.d2rq.D2RQException: d2rq:uriPattern 'C:\wamp\www/mapping-iswc.n3#organizations/@@organizations.OrgID@@' contains characters not allowed in URIs (E50) VM: 1.6.0_16@http://java.sun.com/" at: #-22 de.fuberlin.wiwiss.d2rq.map.ResourceMap.buildValu[...]esult(false) #2 C:\wamp\www\java\Java.inc(220): java_Client->getWrappedResult(false) #3 C:\wamp\www\java\Java.inc(320): java_Client->getInternalResult() #4 C:\wamp\www\java\Java.inc(1157): java_Client->createObject('de.fuberlin.wiw...', Array) #5 C:\wamp\www\java\Java.inc(44) : eval()'d code(1): Java->Java(Array) #6 C:\wamp\www\index.php(15): de\fuberlin\wiwiss\d2rq\ModelD2RQ->__construct('C:\wamp\www/map...') #7 C:\wamp\www\index.php(26): PruebaSPARQL::test() #8 {main}] in * C:\wamp\www\java\Java.inc* on line *121* *Warning*: Unchecked exception detected: [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared java.lang.RuntimeException detected. java.lang.Exception: Invoke failed: [[c:QueryExecutionFactory]]->create((o:Query)[o:Query], (i:QuerySolution)[o:Response$UndeclaredThrowableErrorMarker]). Cause: java.lang.IllegalArgumentException: argument type mismatch VM: 1.6.0_16@ http://java.sun.com/" at: #-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 sun.reflect.NativeMethodAccessorImpl.invoke(Un[...]\Java.inc(977): java_Client->invokeMethod(4, 'create', Array) #5 C:\wamp\www\java\Java.inc(44) : eval()'d code(1): java_invoke(Object(JavaClass), 'create', Array) #6 [internal function]: com\hp\hpl\jena\query\QueryExecutionFactory::__callStatic('create', Array) #7 C:\wamp\www\index.php(18): com\hp\hpl\jena\query\QueryExecutionFactory::create(Object(java_InternalJava), Object(de\fuberlin\wiwiss\d2rq\ModelD2RQ)) #8 C:\wamp\www\index.php(26): PruebaSPARQL::test() #9 {main}] in *C:\wamp\www\java\Java.inc* on line *121* exception:[[o:Exception]:"java.lang.Exception: Invoke failed: [[o:Response$UndeclaredThrowableErrorMarker]]->execSelect. Cause: java.lang.NoSuchMethodException: execSelect(). Candidates: [] VM: 1.6.0_16@ http://java.sun.com/" at: #-6 php.java.bridge.JavaBridge.checkM(JavaBridge.java:1091) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1029) #-4 php.java.bridge.Request.handleRequest(Request.java:415) #-3 php.java.bridge.Request.handleRequests(Request.java:491) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 C:\wamp\www\java\Java.inc(136): java_ThrowExceptionProxyFactory->getProxy(6, 'com.hp.hpl.jena...', 'T', true) #1 C:\wamp\www\java\Java.inc(219): java_Arg->getResult(true) #2 C:\wamp\www\java\Java.inc(221): java_Client->getWrappedResult(true) #3 C:\wamp\www\java\Java.inc(337): java_Client->getResult() #4 C:\wamp\www\java\Java.inc(1063): java_Client->invokeMethod(5, 'execSelect', Array) #5 C:\wamp\www\java\Java.inc(1237): java_JavaProxy->__call('execSelect', Array) #6 [internal function]: java_exception->__call('execSelect', Array) #7 C:\wamp\www\index.php(18): java_InternalException->execSelect() #8 C:\wamp\www\index.php(26): PruebaSPARQL::test() #9 {main}] *Fatal error*: An unchecked exception occured during script execution. Please check the server log files for details. in *C:\wamp\www\java\Java.inc * on line *461* Regards, Jost Boekemeier |
|
From: <php...@li...> - 2010-01-22 15:17:18
|
Thank you very much Jost, I solved the problem just last night and you were right. I could catch the two Runtime Exceptions before the execSelect() call using the java_values() function. The problem was in the arguments format I was using. You are right about the while loop. Here, the java_values function saved me again. It's probable that it is not the right way to solve it, so I will follow your advices. Either way I just starting and I think PHP / Java Bridge is a magnificent tool. I hope not to bother too often. Thanks again. > Date: Fri, 22 Jan 2010 11:59:09 +0100 > To: php...@li... > From: php...@li... > Subject: Re: [Php-java-bridge-users] Help > > BTW: Which PHP version and which OS do you use? While testing the above code > against the latest PHP 5.3.1, it appears that PHP 5.3.1 on Windows discards > all error messages(!). > > Please use a stable PHP version instead (PHP 5.2.x). > > > > Is there (with PHP/Java Bridge) any special thing I have to consider when > > I work with Java interfaces rather than classes?. > > Your code is correct. Except for $rs->hasNext(), which returns a Boolean > object. Your loop > > while($rs->hasNext()) > > never returns. Use an explicit boolean cast: > > while((boolean)(string)$rs->hasNext()); > > or > > while(java_is_true($rs->hasNext()); > > I think the reason why your query fails is that ModelD2RQ cannot parse an > UTF-8 file. But that's a d2rq issue, I think. > > > *Warning*: Unchecked exception detected: > [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared > java.lang.RuntimeException detected. java.lang.Exception: CreateInstance > failed: new de.fuberlin.wiwiss.d2rq.ModelD2RQ((o:String)[o:String]). Cause: > de.fuberlin.wiwiss.d2rq.D2RQException: d2rq:uriPattern > 'C:\wamp\www/mapping-iswc.n3#organizations/@@organizations.OrgID@@' contains > characters not allowed in URIs (E50) VM: 1.6.0_16@http://java.sun.com/" at: > #-22 de.fuberlin.wiwiss.d2rq.map.ResourceMap.buildValu[...]esult(false) #2 > C:\wamp\www\java\Java.inc(220): java_Client->getWrappedResult(false) #3 > C:\wamp\www\java\Java.inc(320): java_Client->getInternalResult() #4 > C:\wamp\www\java\Java.inc(1157): > java_Client->createObject('de.fuberlin.wiw...', Array) #5 > C:\wamp\www\java\Java.inc(44) : eval()'d code(1): Java->Java(Array) #6 > C:\wamp\www\index.php(15): > de\fuberlin\wiwiss\d2rq\ModelD2RQ->__construct('C:\wamp\www/map...') #7 > C:\wamp\www\index.php(26): PruebaSPARQL::test() #8 {main}] in * > C:\wamp\www\java\Java.inc* on line *121* > > *Warning*: Unchecked exception detected: > [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared > java.lang.RuntimeException detected. java.lang.Exception: Invoke failed: > [[c:QueryExecutionFactory]]->create((o:Query)[o:Query], > (i:QuerySolution)[o:Response$UndeclaredThrowableErrorMarker]). Cause: > java.lang.IllegalArgumentException: argument type mismatch VM: 1.6.0_16@ > http://java.sun.com/" at: #-9 > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 > sun.reflect.NativeMethodAccessorImpl.invoke(Un[...]\Java.inc(977): > java_Client->invokeMethod(4, 'create', Array) #5 > C:\wamp\www\java\Java.inc(44) : eval()'d code(1): > java_invoke(Object(JavaClass), 'create', Array) #6 [internal function]: > com\hp\hpl\jena\query\QueryExecutionFactory::__callStatic('create', Array) > #7 C:\wamp\www\index.php(18): > com\hp\hpl\jena\query\QueryExecutionFactory::create(Object(java_InternalJava), > Object(de\fuberlin\wiwiss\d2rq\ModelD2RQ)) #8 C:\wamp\www\index.php(26): > PruebaSPARQL::test() #9 {main}] in *C:\wamp\www\java\Java.inc* on line *121* > exception:[[o:Exception]:"java.lang.Exception: Invoke failed: > [[o:Response$UndeclaredThrowableErrorMarker]]->execSelect. Cause: > java.lang.NoSuchMethodException: execSelect(). Candidates: [] VM: 1.6.0_16@ > http://java.sun.com/" at: #-6 > php.java.bridge.JavaBridge.checkM(JavaBridge.java:1091) #-5 > php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1029) #-4 > php.java.bridge.Request.handleRequest(Request.java:415) #-3 > php.java.bridge.Request.handleRequests(Request.java:491) #-2 > php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) #-1 > php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 > C:\wamp\www\java\Java.inc(136): java_ThrowExceptionProxyFactory->getProxy(6, > 'com.hp.hpl.jena...', 'T', true) #1 C:\wamp\www\java\Java.inc(219): > java_Arg->getResult(true) #2 C:\wamp\www\java\Java.inc(221): > java_Client->getWrappedResult(true) #3 C:\wamp\www\java\Java.inc(337): > java_Client->getResult() #4 C:\wamp\www\java\Java.inc(1063): > java_Client->invokeMethod(5, 'execSelect', Array) #5 > C:\wamp\www\java\Java.inc(1237): java_JavaProxy->__call('execSelect', Array) > #6 [internal function]: java_exception->__call('execSelect', Array) #7 > C:\wamp\www\index.php(18): java_InternalException->execSelect() #8 > C:\wamp\www\index.php(26): PruebaSPARQL::test() #9 {main}] > *Fatal error*: An unchecked exception occured during script execution. > Please check the server log files for details. in *C:\wamp\www\java\Java.inc > * on line *461* > > > Regards, > Jost Boekemeier > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users _________________________________________________________________ Juega y gana con Samsung y Windows Live http://www.equipatucasa.com.mx |
|
From: <php...@li...> - 2010-01-25 20:01:48
|
Hi, You are right about the while loop. Here, the java_values function saved me > again. It's probable that it is not the right way to solve it, so I will > follow your advices. > java_values(...) is the right way. The java_is_null(), java_is_true() and java_is_false() tests exist because I thought they're easier to read than an expression like "if (java_values($jobject) === true) ... ". Regards, Jost Boekemeier |