From: Peter N. <pn...@kr...> - 2005-01-31 21:58:16
|
Hi, Jost Boekemeier schrieb: >>OK, here you go, since the log-file is 70k I just >>put it online [1] > > > Your link is not accessible for me. Is it possible to > search for the lines which contain "returning map for" > and post these only? sorry, must have been a temporarily problem... anyway: -------------snipp------------------------ Jan 31 21:04:26 JavaBridge DEBUG: returning map for class [Lorg.omg.WfBase.NameValue; Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 15 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 2 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 2 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 54 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 36 Jan 31 21:04:26 JavaBridge DEBUG: recv: 18 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 8 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 17 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 50 Jan 31 21:04:26 JavaBridge DEBUG: send: SETRESULTFROMOBJECT Jan 31 21:04:26 JavaBridge DEBUG: recv: 15 Jan 31 21:04:26 JavaBridge DEBUG: recv: 0 Jan 31 21:04:26 JavaBridge DEBUG: send: 0 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 55 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 37 Jan 31 21:04:26 JavaBridge DEBUG: recv: 55 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 37 Jan 31 21:04:26 JavaBridge DEBUG: recv: 54 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 36 Jan 31 21:04:26 JavaBridge DEBUG: recv: 18 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 8 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 17 Jan 31 21:04:26 JavaBridge DEBUG: end packet: 1 Jan 31 21:04:26 JavaBridge DEBUG: recv: 50 Jan 31 21:04:26 JavaBridge DEBUG: send: SETRESULTFROMSTRING .... .... java.lang.Throwable: child aborted connection during read at JavaBridge.setResultFromObject(Native Method) at JavaBridge.setResult(JavaBridge.java:588) at JavaBridge.Invoke(JavaBridge.java:916) at JavaBridge.trampoline(Native Method) at JavaBridge.Trampoline(JavaBridge.java:237) at JavaBridge.trampoline(Native Method) at JavaBridge.Trampoline(JavaBridge.java:237) at JavaBridge.trampoline(Native Method) at JavaBridge.Trampoline(JavaBridge.java:237) at JavaBridge.handleRequests(Native Method) at JavaBridge.run(JavaBridge.java:221) at java.lang.Thread.run(Thread.java:536) Jan 31 21:04:26 JavaBridge DEBUG: communication broken: ffffffff Jan 31 21:04:26 JavaBridge DEBUG: terminate communication channel: 817eff0 ----------snapp----------------------------------- >>It involves >>heavy usage of CORBA, so that might be causing the >>problem? > > > Could be, if you don't unwrap the value you've > received -- hmm, what does unwrap mean? I'll have a look at the EJB rmi(iiop example... > version 1.0.8 contains an example which > connects to a EJB service via rmi/iiop, so this should > work in general. Yes, just switched to cvs/1.0.8 yesterday, haven't looked into those examples yet. >>[1] http://www.niekom.de/pub/php-java-bridge.log > > > I get a "unable to connect". see above, but the link should generally be working. Cheers, Peter |
From: Jost B. <jos...@ya...> - 2005-02-01 19:24:50
|
> Jan 31 21:04:26 JavaBridge DEBUG: returning map for > class [Lorg.omg.WfBase.NameValue; Thanks. You're right, iterating over non-primitive values of arrays wasn't possible until now. I have just checked a fix into the CVS head. I am going to test and release 1.0.8 asap, hopefully this weekend. Until then please use PHP 5 and PHP/Java Bridge 1.0.7 with the following patch applied (see below). Thank you for reporting this bug. Regards, Jost Boekemeier --- Patch against 1.0.7 release: Index: java.c =================================================================== RCS file: /cvsroot/php-java-bridge/php-java-bridge/java.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- java.c 29 Jan 2005 10:09:33 -0000 1.37 +++ java.c 1 Feb 2005 19:07:35 -0000 1.38 @@ -599,6 +647,7 @@ zval *presult; MAKE_STD_ZVAL(presult); + ZVAL_NULL(presult); php_java_invoke("currentKey", iterator->java_iterator, 0, 0, presult); @@ -635,6 +684,7 @@ static void init_current_data(java_iterator *iterator TSRMLS_DC) { MAKE_STD_ZVAL(iterator->current_object); + ZVAL_NULL(iterator->current_object); php_java_invoke("currentData", iterator->java_iterator, 0, 0, iterator->curre nt_object); } Index: ChangeLog =================================================================== RCS file: /cvsroot/php-java-bridge/php-java-bridge/ChangeLog,v retrieving revision 1.46 retrieving revision 1.49 diff -u -r1.46 -r1.49 --- ChangeLog 29 Jan 2005 10:09:32 -0000 1.46 +++ ChangeLog 1 Feb 2005 19:07:35 -0000 1.49 @@ -1,3 +1,18 @@ +2005-02-01 Jost Boekemeier <jostb@intern> + + * java.c (iterator_current_key, init_current_data): PHP does not + necessarily return "clean" zvals. Zero out the allocated zval so + that setResultFromObject can initialize it properly. This fixes a + bug in the iterator interface which was not able to iterate over + arrays of non-primitive types. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |