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: Jost B. <jos...@ya...> - 2005-12-21 19:05:19
|
Hi Marc,
> I'm using the bridge 3.0.3a, php 4.3.10 and java
> 1.5.0_06.
> According to the documentation this should work:
> $str = new Java("java.lang.String", "hello world");
> echo (string)$str;
as of PHP/Java Bridge version 3, php4 and below is no
longer supported, although php4 still works as good
(or as bad) as in previous releases.
The new documentation and the new 3.x features are
written and tested against php versions 5.x or 6.x.
[in php4]
> I have to call
> echo $str->toString();
> Is this a bug?
Well, that's how the Sam's ext/java extension used to
work. The bridge checks if it runs in zend engine 1 or
zend engine 2 and sets the protocol options
accordingly. Based on the received protocol header the
backend selects the appropriate writer, either Sam
Ruby's coerce/select or the new code.
I think there's no reason to upgrade to php/java
bridge version3 if you want to use it with php4.
However, the new code allows us to reduce the number
of round-trips and to make the implementation more
than 3 times faster in future versions. But this can
work in php5 and above only.
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: marc r. <mar...@ho...> - 2005-12-21 14:16:52
|
Hi,
I'm using the bridge 3.0.3a, php 4.3.10 and java 1.5.0_06.
According to the documentation this should work:
$str = new Java("java.lang.String", "hello world");
echo (string)$str;
the expected output is: "hello world"
the actual output is: "Object"
Php does not cast the string, I have to call
echo $str->toString();
explicitly to get the output "hello world".
Is this a bug?
Marc
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
|
|
From: Jost B. <jos...@ya...> - 2005-12-19 19:57:20
|
Hi,
> [64 bit integer]
> > ... it should be Long in java
>
> I think this depends on the VM's memory model.
Correction: Ecma 334 specifies that a long has 64
bits, too, the previous behaviour was more correct.
But this doesn't invalidate the reason for the change.
Users who want to create a long can always call:
$l = new java("java.lang.Long", val);
If necessary the bridge coerces the Long into a long.
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: Jost B. <jos...@ya...> - 2005-12-19 19:29:41
|
Hi Marek, > description should be putted into docs. Done[1] on the main page php-java-bridge.sf.net. Rest of the documentation will follow automatically. Thanks! (Part of the discussion about this change is archived: http://sourceforge.net/mailarchive/forum.php?thread_id=8255109&forum_id=42415) [64 bit integer] > ... it should be Long in java I think this depends on the VM's memory model. Regards, Jost Boekemeier [1] setting "java.ext_java_compatibility=On" currently doesn't work in php5, that's a bug. ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
|
From: Marek L. <ma...@le...> - 2005-12-19 15:23:37
|
Marek Lewczuk wrote: > Hi, > If this is a proper behavior (it should be, because php's integer is 32 > bit, so it should be Long in java) mistake: it should be Integer in java ;-) |
|
From: Marek L. <ma...@le...> - 2005-12-19 15:20:47
|
Hi,
the docs says that php's "exact number" is converted into java's "Long"
- that was working in previous versions, but the latest version uses
Integer. Below the test case:
$test = new Java("java.util.Vector", array((integer) 1, (integer) 2));
print java_instanceof($test->elementAt(0), new
JavaClass("java.lang.Integer")); // output true
print java_instanceof($test->elementAt(0), new
JavaClass("java.lang.Long")); // output false
If this is a proper behavior (it should be, because php's integer is 32
bit, so it should be Long in java) then proper description should be
putted into docs.
ML
|
|
From: Jost B. <jos...@ya...> - 2005-12-15 18:55:28
|
Hi,
> java.lang.NullPointerException"] thrown in
> h:\wamp\www\testjava.php on
> line 9
> public void index(String DataDir, String IndexDir)
> throws Exception {
is it possible print the stack trace? Please see this
(http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/tests.php5/printStackTrace.php?rev=1.5&view=markup)
as an example how to print a stack trace.
If the null pointer appears in the PHP/Java Bridge
code, please open a ticket (please use
http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233)
BTW: Catching exceptions using try/catch is a good
idea anyway, especially if your java code reports
these exceptions to php level.
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: Arturo <art...@ug...> - 2005-12-14 13:22:50
|
I thought it was solved (caused it ran changing that dir!), but
strangely not... going to try debugging the code of the index method,
but it seems unstable. I can't find the logfile! I'm on Windows XP.
Cheers,
Arturo.
El mi=C3=A9, 14-12-2005 a las 14:09 +0100, art...@ug... escribi=C3=B3:
> Answering myself,
>=20
> The problem seems to happens with the second parameter of the index
> method, that contains a character '_'. This cause null exception! is it=
a
> bug? Changing that directory to something else like 'h:\test' solve the
> problem.
>=20
> Cheers,
>=20
> Arturo.
>=20
> > Hello,
> >
> > I'm using version 3.0.2 with PHP 5.0.4. I don't know why i'm getting =
this
> > strange error:
> >
> > Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke fail=
ed:
> > [o(Indexador)]->index((String)o(String), (String)o(String)). Cause:
> > java.lang.NullPointerException"] thrown in h:\wamp\www\testjava.php o=
n
> > line 9
> >
> > with this piece of code:
> >
> > <?php
> >
> > java_require("h:/search_engine/lucene-1.4.3.jar;h:/search_engine/Inde=
xador.jar");
> > $indexer =3D new Java("org.ew.lucene.Indexador");
> > $indexer->index("h:\puleva2\puleva2\data","h:\search_engine\index");
> >
> > ?>
> >
> > the index method is defined as follows:
> >
> > public void index(String DataDir, String IndexDir) throws Exception {
> >
> > }
> >
> > Any help is appreciated.
> >
> > Regards,
> >
> > Arturo.
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo=
g
> > files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUN=
K!
> > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick
> > _______________________________________________
> > php-java-bridge-users mailing list
> > php...@li...
> > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
> >
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log =
files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <art...@ug...> - 2005-12-14 13:09:15
|
Answering myself,
The problem seems to happens with the second parameter of the index
method, that contains a character '_'. This cause null exception! is it a
bug? Changing that directory to something else like 'h:\test' solve the
problem.
Cheers,
Arturo.
> Hello,
>
> I'm using version 3.0.2 with PHP 5.0.4. I don't know why i'm getting this
> strange error:
>
> Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed:
> [o(Indexador)]->index((String)o(String), (String)o(String)). Cause:
> java.lang.NullPointerException"] thrown in h:\wamp\www\testjava.php on
> line 9
>
> with this piece of code:
>
> <?php
>
> java_require("h:/search_engine/lucene-1.4.3.jar;h:/search_engine/Indexador.jar");
> $indexer = new Java("org.ew.lucene.Indexador");
> $indexer->index("h:\puleva2\puleva2\data","h:\search_engine\index");
>
> ?>
>
> the index method is defined as follows:
>
> public void index(String DataDir, String IndexDir) throws Exception {
>
> }
>
> Any help is appreciated.
>
> Regards,
>
> Arturo.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <art...@ug...> - 2005-12-14 12:57:59
|
Hello,
I'm using version 3.0.2 with PHP 5.0.4. I don't know why i'm getting this
strange error:
Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed:
[o(Indexador)]->index((String)o(String), (String)o(String)). Cause:
java.lang.NullPointerException"] thrown in h:\wamp\www\testjava.php on
line 9
with this piece of code:
<?php
java_require("h:/search_engine/lucene-1.4.3.jar;h:/search_engine/Indexador.jar");
$indexer = new Java("org.ew.lucene.Indexador");
$indexer->index("h:\puleva2\puleva2\data","h:\search_engine\index");
?>
the index method is defined as follows:
public void index(String DataDir, String IndexDir) throws Exception {
}
Any help is appreciated.
Regards,
Arturo.
|
|
From: Abbett, J. <Jon...@ch...> - 2005-12-13 21:22:03
|
Of course, now that you've said those magic words, my problem has
mysteriously vanished. The failure situations I described now work!
(BTW, I'm running PHP 5 with Bridge v2.0.7)
Thanks for your help all the same.
--Jonathan
-----Original Message-----
From: Jost Boekemeier [mailto:jos...@ya...]=20
Sent: Tuesday, December 13, 2005 2:24 PM
To: Abbett, Jonathan; php...@li...
Subject: RE: [Php-java-bridge-users] How to pass a "boolean", not
"java.lang.Boolean"?
Hi Jonathan,
> $object->setValue(true);
I could not reproduce the above problem using the
following test code:
public class test { =20
=20
public Object getBoolean(boolean b) {return new
Boolean(b);} =20
}
<?php =20
=20
=20
java_require(getcwd()); =20
=20
$test =3D new Java("test"); =20
=20
echo $test->getBoolean(true); =20
=20
echo $test->getBoolean(false);=20
php 4.3.9, bridge 2.0.8.
Can you please set the java.log_level to 5 and attach
the log at the end of the ticket
(http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1379741&gro=
up_
id=3D117793&atid=3D679233)
BTW: Is it possible to upgrade to php5 and bridge
version 3.0.2? PHP5 eliminates this problem altogether
as the bridge no longer needs to coerce the return
values. All the examples you've given should work as
expected, you can even cast java values to boolean or
other php types.=20
Regards,
Jost Boekemeier
=09
=09
=09
___________________________________________________________=20
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: Jost B. <jos...@ya...> - 2005-12-13 19:32:13
|
Hi Juan, if I remember correctly, the bridge cannot open a TCP port in this AS so that it has to use a TCP tunnel for the entire communication. [#|2005-12-13T11:43:05.921+0500|INFO|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=19;|WebModule[/JavaBridge] > JavaBridge DEBUG: @5c6110 re-directing to port# > 9567|#] The above should not appear, you should get a security exception instead. Maybe this depends on the OS and the exception appears too late (i.e. the selected communication channel turns out to be unusable and the bridge has no chance to inform the client about this). I'll check this. Do you have the command "truss" installed on your machine? If so, can you please open a ticket and append the result of truss php -f testJavaBasic.php at the end of the created ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233). Thank you very much for the bug report. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-12-13 19:24:20
|
Hi Jonathan,
> $object->setValue(true);
I could not reproduce the above problem using the
following test code:
public class test {
public Object getBoolean(boolean b) {return new
Boolean(b);}
}
<?php
java_require(getcwd());
$test = new Java("test");
echo $test->getBoolean(true);
echo $test->getBoolean(false);
php 4.3.9, bridge 2.0.8.
Can you please set the java.log_level to 5 and attach
the log at the end of the ticket
(http://sourceforge.net/tracker/index.php?func=detail&aid=1379741&group_id=117793&atid=679233)
BTW: Is it possible to upgrade to php5 and bridge
version 3.0.2? PHP5 eliminates this problem altogether
as the bridge no longer needs to coerce the return
values. All the examples you've given should work as
expected, you can even cast java values to boolean or
other php types.
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: Jost B. <jos...@ya...> - 2005-12-13 18:54:55
|
Hi Jonathan, [$object->setValue(true) not working] I have created a ticket for this, please see http://sourceforge.net/tracker/index.php?func=detail&aid=1379741&group_id=117793&atid=679233 for details. I will look at this asap. Thank you very much for the bug report. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-12-13 18:38:57
|
Hi Mark,
the syntax for namspace access is different than the
syntax for property access. For example if you have a
class
public interface php {
public interface java {
public class bridge {
public enum JavaBridge = {UNITS, VOLUME, SCORE};
}
}
}
the JavaBridge would be accessed via:
$bridge = new
JavaClass('php$java$bridge$JavaBridge');
echo $bridge->UNITS;
this is to avoid name clashes with the class:
$bridge = new
JavaClass("php.java.bridge.JavaBridge");
The different syntax makes sense, an I hope the PHP6
developers don't make the same mistake that sun made;
if you compile and place the above php.class into your
classpath, then no java developer can access the class
php.java.bridge.JavaBridge anymore because the java
compiler automatically rewrites the syntax
php.java.bridge.JavaBridge into
php$java$bridge$JavaBridge and stores this into the
.class file.
However, the real fun begins if you compile and place
the following java.class into your classpath:
public interface java {
public class lang {
public enum String = {one, two};
}
}
After that a new java.lang.String() will return the
above enum. -- But I guess this problem is caught by
the java bytecode verifier...
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: Juan A. G. <jg...@co...> - 2005-12-13 17:23:45
|
Hi,
=20
I deployed JavaBridge.war 2.0.8 on Sun Java System Application Server =
8.1 on a Solaris 10 box.
When I execute php -f testJavaBasic.php, I never get a response from the =
AS.
=20
These are the entries in the AS log:
=20
[#|2005-12-13T11:43:05.919+0500|INFO|sun-appserver-ee8.1|javax.enterprise=
.system.container.web|_ThreadID=3D19;|WebModule[/JavaBridge] JavaBridge =
DEBUG: @5c6110 --> <C v=3D"java.lang.System" p=3D"C" i=3D"11190680" >|#]
=20
[#|2005-12-13T11:43:05.920+0500|INFO|sun-appserver-ee8.1|javax.enterprise=
.system.container.web|_ThreadID=3D19;|WebModule[/JavaBridge] JavaBridge =
DEBUG: @5c6110 --> </C>|#]
=20
[#|2005-12-13T11:43:05.921+0500|INFO|sun-appserver-ee8.1|javax.enterprise=
.system.container.web|_ThreadID=3D19;|WebModule[/JavaBridge] JavaBridge =
DEBUG: @5c6110 <-- <O v=3D"1" i=3D"11190680"/>|#]
=20
[#|2005-12-13T11:43:05.921+0500|INFO|sun-appserver-ee8.1|javax.enterprise=
.system.container.web|_ThreadID=3D19;|WebModule[/JavaBridge] JavaBridge =
DEBUG: @5c6110 re-directing to port# 9567|#]
=20
[#|2005-12-13T11:43:05.922+0500|INFO|sun-appserver-ee8.1|javax.enterprise=
.system.container.web|_ThreadID=3D19;|WebModule[/JavaBridge] JavaBridge =
DEBUG: @5c6110 waiting for context: 13|#]
=20
This is testJavaBasic.php:
=20
<?php
// Obtienen el nombre del OS en el que se esta ejecutando PHP
$system =3D new JavaClass('java.lang.System');
$time =3D $system->currentTimeMillis();
echo $time;
//$os =3D $system->getProperty('os.name');
//echo $os . "\n\n";
?>
=20
Any idea about why JavaBridge never response?
=20
Thanks for the help.
=20
Regards,
=20
Juan Andr=E9s
*************************************************************************=
*
Nota: La informaci=F3n transmitida a trav=E9s de este correo =
electr=F3nico es confidencial y est=E1 dirigida =FAnicamente a su =
destinatario. Su reproducci=F3n, lectura o uso est=E1 prohibido a =
cualquier persona o entidad diferente. Aunque Computec S.A. ha realizado =
su mejor esfuerzo para asegurar que el presente mensaje y sus archivos =
anexos se encuentran libre de virus y defectos que puedan llegar a =
afectar los computadores o sistemas que lo reciban, no se hace =
responsable por la eventual transmisi=F3n de virus o programas da=F1inos =
por este conducto, y por lo tanto es responsabilidad del destinatario =
confirmar la existencia de este tipo de elementos al momento de =
recibirlo y abrirlo. Ni Computec S.A. ni ninguna de sus divisiones o =
dependencias aceptan responsabilidad alguna por eventuales da=F1os o =
alteraciones derivados de la recepcion o uso del presente mensaje.
*************************************************************************=
*
Note: The information transmitted through this E-mail is confidential =
and is intended to reach only its addressee. Reproduction and usage of =
this message or its contents, in whole or in part, are strictly =
forbidden without the prior written consent of Computec S.A. Computec =
S.A. has made its best efforts to ensure that this message and any =
attached files are free of any virus or other potentially harmful =
content, but makes no representations to this effect. Addressee shall =
assume full responsibility for ensuring that opening or reading this =
message and any attachments will not result in harm to their system. =
Neither Computec nor any of its divisions accepts any responsibility for =
damages arising from opening or reading this message or any attachments =
thereto.
*************************************************************************=
*
|
|
From: Abbett, J. <Jon...@ch...> - 2005-12-13 15:37:45
|
Greetings all...
Unfortunately, I have another question about how to pass a variable
without it being converted by the Bridge into something unexpected.
I have a method that accepts a small-b "boolean" as its only argument.
I've tried a few different strategies, but the variable I provide always
ends up a "java.lang.Boolean," and causes a NoSuchMethodException.
Here's what I've tried:
// getBoolean returns a boolean primitive
$boolean_class =3D new java_class('java.lang.Boolean');
$object->setValue($boolean_class->getBoolean('true'));
----
$object->setValue(0);
----
$object->setValue(true);
----
// booleanValue() returns a boolean primitive
$boolean =3D new java('java.lang.Boolean', 'true');
$object->setValue($boolean->booleanValue());
---
$object->setValue((boolean)'true');
No luck with any of them. Suggestions?
Thanks!
Jon Abbett
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Jonathan Abbett
Children's Hospital Informatics Program
1 Autumn Street, Fifth Floor
Boston, MA 02215
617-355-8334
http://www.chip.org
|
|
From: Mark S. <mar...@me...> - 2005-12-12 20:56:40
|
Hi,
I've been using the bridge for a couple of months now and this is the
first problem I've had with it.
I'm having trouble accessing the enum listed below.
public class Test {
public static enum Values {
UNITS, VOLUME, SCORE
}
In java I would reference it as Test.Values.UNITS
In php I'm calling $values = $test->Values after I instantiate the class
and I get the following error:
java stack trace: [o(ByteArrayOutputStream):"java.lang.Exception:
GetProperty failed: [o(Test):"@0"]->Values. Cause:
java.lang.NoSuchFieldException: Values (with args:). Candidates: [] at
php.java.bridge.JavaBridge.setException(JavaBridge.java:560) at
php.java.bridge.JavaBridge.GetSetProp(JavaBridge.java:1303) at
php.java.bridge.Request.handleRequest(Request.java:202) at
php.java.bridge.Request.handleRequests(Request.java:221) at
php.java.bridge.JavaBridge.run(JavaBridge.java:233) at
php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20) Caused by:
java.lang.NoSuchFieldException: Values (with args:). Candidates: [] at
php.java.bridge.JavaBridge.GetSetProp(JavaBridge.java:1286) ... 4 more "]
I've also tried $values = $test->Values() which does not throw an error
but if I try to get the following I get another error:
$values->UNITS
"java.lang.Exception: GetProperty failed:
[o(EnumMap$Values):"[]"]->UNITS. Cause: java.lang.NoSuchFieldException:
UNITS (with args:).
Can you tell me what I'm doing wrong.
Thanks
|
|
From: Jost B. <jos...@ya...> - 2005-12-10 16:50:40
|
Hi, echo java_inspect() might do what you want. See http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-java-bridge/php-java-bridge/documentation/API/html/java_8c.html#a46 However, in the future we might need something better. For example when the bridge will be integrated into an IDE it might become necessary to ask for the signature of a specific object method, etc. ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
|
From: Gerald A. P. <gap...@gm...> - 2005-12-10 08:54:11
|
Hi! Is there any way I could display/list the available methods of my Java Object through PHP? Just like Python's dictionary... TIA! Gerald |
|
From: Abbett, J. <Jon...@ch...> - 2005-12-06 14:34:30
|
Jost-- The logging problem is entirely unrelated, it just forced us to restart Apache. I'll try the configuration change you suggested. Thanks! Jon -----Original Message----- From: Jost Boekemeier [mailto:jos...@ya...]=20 Sent: Monday, December 05, 2005 5:08 PM To: Abbett, Jonathan; php...@li... Subject: RE: [Php-java-bridge-users] Orphaned httpd's Hi Jonathan, the bridge starts a standalone backend only if all of these options are missing or have no value. Either: java.hosts=3D<value> java.servlet=3D<value> or java.socketname=3D<value> So I suggest to kill the java child which blocks apache and to start apache again. When you've set one of the above options, for example java.hosts=3D127.0.0.1:8080 java.servlet=3DOn and do a pstree | fgrep httpd and still see that the httpd forks a java child, then there's something wrong with your setup, for example php may read a different php.ini than expected. Regarding the huge log, I don't know what causes this. Maybe the log level is too high in your php.ini? Hope it helps. Regards, Jost Boekemeier =09 =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-12-05 22:07:50
|
Hi Jonathan, the bridge starts a standalone backend only if all of these options are missing or have no value. Either: java.hosts=<value> java.servlet=<value> or java.socketname=<value> So I suggest to kill the java child which blocks apache and to start apache again. When you've set one of the above options, for example java.hosts=127.0.0.1:8080 java.servlet=On and do a pstree | fgrep httpd and still see that the httpd forks a java child, then there's something wrong with your setup, for example php may read a different php.ini than expected. Regarding the huge log, I don't know what causes this. Maybe the log level is too high in your php.ini? Hope it helps. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Abbett, J. <Jon...@ch...> - 2005-12-05 17:07:40
|
On one of our machines, we run a web application with a Tomcat server and a PHP site that uses the PHP-Java Bridge. Twice, the Tomcat application has caused the mod_jk.log file to exceed two gigabytes, essentially bringing down Tomcat and Apache. Once we shutdown Tomcat and cleared the log file, we tried to restart Apache, which failed: [root@pingsvr root]# service httpd start starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs We then looked for a process that was bound to port 80: # ps auxw|grep httpd root 27852 0.0 0.0 13288 2916 ? S Nov20 0:00 /u1/apache2/bin/httpd -k start -DSSL # netstat -pan|grep ":80" tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 32104/java =20 tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 32104/java =20 tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN 32104/java =20 tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 32104/java =20 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 27853/java =20 You'll see that process 27853 is bound to port 80, and its parent is "java". Our sysadmin insists that Tomcat doesn't bind to port 80 in our setup and that "php-java-bridge constantly causes this orphaned httpd problem when restarting apache." Is there anything we can do on our side to alleviate this problem? Is there some improvement to the php-java-bridge that's necessary? Thanks! Jon Abbett |
|
From: Jost B. <jos...@ya...> - 2005-12-03 17:30:57
|
Hi Cedric, > Well, already have the answer. They don't seem to be > keen to change it :p Okay, I'll look at this for 2.0.9 and 3.0.0. Please see PR1372398 for details. (https://sourceforge.net/tracker/index.php?func=detail&aid=1372398&group_id=117793&atid=679233) Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: <ced...@e-...> - 2005-12-02 08:50:22
|
Well, already have the answer. They don't seem to be keen to change it = :p ID: 35514 Updated by: sn...@ph... Reported By: cedric dot champeau at e-manation dot com -Status: Open +Status: Wont fix -Bug Type: Unknown/Other Function +Bug Type: Scripting Engine problem Operating System: All PHP Version: 5.1.1 New Comment: And it will stay like that, too bad. > -----Message d'origine----- > De : php...@li...=20 > [mailto:php...@li...] De=20 > la part de C=E9dric CHAMPEAU > Envoy=E9 : vendredi 2 d=E9cembre 2005 09:43 > =C0 : php...@li... > Objet : RE: [Php-java-bridge-users] Building with PHP 5.1.1 >=20 > You were right : the API has changed from 5.1.0 to 5.1.1.=20 > I'll submit a bug > report to the PHP team. >=20 >=20 > [root@lorien tmp]# grep -r "ZEND_API void=20 > zend_fetch_debug_backtrace" php* > php-5.0.5/Zend/zend_builtin_functions.c:ZEND_API void > zend_fetch_debug_backtrace > (zval *return_value, int skip_last TSRMLS_DC) > php-5.0.5/Zend/zend_builtin_functions.h:ZEND_API void > zend_fetch_debug_backtrace > (zval *return_value, int skip_last TSRMLS_DC); > php-5.1.0/Zend/zend_builtin_functions.c:ZEND_API void > zend_fetch_debug_backtrace > (zval *return_value, int skip_last TSRMLS_DC) > php-5.1.0/Zend/zend_builtin_functions.h:ZEND_API void > zend_fetch_debug_backtrace > (zval *return_value, int skip_last TSRMLS_DC); > php-5.1.1/Zend/zend_builtin_functions.c:ZEND_API void > zend_fetch_debug_backtrace > (zval *return_value, int skip_last, int provide_object TSRMLS_DC) > php-5.1.1/Zend/zend_builtin_functions.h:ZEND_API void > zend_fetch_debug_backtrace > (zval *return_value, int skip_last, int provide_object TSRMLS_DC);=20 > =20 > =20 >=20 > > -----Message d'origine----- > > De : C=E9dric CHAMPEAU [mailto:ced...@e-...]=20 > > Envoy=E9 : vendredi 2 d=E9cembre 2005 09:35 > > =C0 : 'php...@li...' > > Objet : RE: [Php-java-bridge-users] Building with PHP 5.1.1 > >=20 > > >=20 > > > have you already reported this to the PHP release > > > team? If PHP5.1.1 is really ABI incompatible with > > > 5.1.0, then this a serious bug which must be fixed > > > immediately! > >=20 > > Wow, didn't know it was so serious. I did not report=20 > > anything. I'll try to do it. > >=20 > > >=20 > > > (They cannot change the public API in the middle of a > > > release. If this is necessary, then they must adjust > > > the API_VERSION_NO and change the version number to > > > 5.2). > > >=20 > > >=20 > > > > My problem now is about that 403 error with Tomcat > > > when=20 > > > > trying to do "PUT" on the servlet... > > >=20 > > > I could reproduce this problem. As a workaround > > > please change the java.servlet parameter to > > >=20 > > > java.servlet=3D"/JavaBridge/foo.php" > > >=20 > > > I will fix this bug for version 3.0.0RC2, which will > > > be available tomorrow. Thank you very much for > > > reporting this bug! > >=20 > > Thanks ! > >=20 > > C=E9dric > >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep=20 > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. =20 > DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dick > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >=20 >=20 |