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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
|
2
|
3
(3) |
4
|
|
5
(1) |
6
(4) |
7
|
8
(6) |
9
(3) |
10
(1) |
11
(1) |
|
12
|
13
(2) |
14
(3) |
15
(9) |
16
(5) |
17
(3) |
18
|
|
19
|
20
(2) |
21
(5) |
22
(5) |
23
(2) |
24
|
25
|
|
26
|
27
|
28
(4) |
29
(2) |
30
(2) |
|
|
|
From: <php...@li...> - 2006-11-03 22:12:33
|
On Nov 3, 2006, at 1:54 PM, php-java-bridge-
us...@li... wrote:
> I'm using php-java-bridge-3.1.8, and have run into something really
> confusing when creating
> HashMaps.
>
> I have a method in a Java class that accepts a HashMap. If I
> create an
> empty HashMap in
> php and add elements with put like this:
>
> $h = new java("java.util.HashMap");
> $h->put(0 , "Some Text");
>
> ...and pass that to my class I can get it's value with get(0) no
> problem.
> However if I create
> the HashMap in php with something like this:
>
> $h = new java("java.util.HashMap", array(0=>"Some Text"));
>
> ...and pass that to the java class it wasn't able to get the key
> 0. Also,
> trying to use $h->get(0)
> within php didn't work either.
Since the PHP array type is not directly compatible with a HashMap -
even though they are basically the same concept of key/value pairs -
you have to be careful when moving values back and forth between the
two. I have found that building a PHP array with all the values I
need first and then using a simple FOREACH loop to populate my Java
HashMap works great. Here's an example:
<?php
...
// build a request array
$request['key1'] = "value1";
$request['key2'] = "true";
$request['key3'] = 2342;
$request['key4'] = "internet";
// == Prepare the request HashMap for Java ==
$j_request = new Java("java.util.HashMap");
foreach ($request AS $key => $val) {
$j_request->put($key,stripslashes($val));
}
// To get your PHP array back from a HashMap just use the following
$original_request_array = java_values($j_request);
...
?>
Since Java is so strongly "typed" I have also run into a lot of
problems with PHP's loose typing and Java.
Hope this helps a bit.
>
> What I found is that the key to the resulting HashMap using the latter
> syntax isn't an
> Integer 0, but rather an Object of the class
> php.java.bridge.Request$PhpArrayKey.
>
> I see that creating a Vector directly from an array in a similar
> manner such
> as:
>
> $h = new java("java.util.Vector", array(44.6, 5, 5.6, "some string"));
>
> ...works fine, and I get elements with all the expected data types
> in java.
>
> Is this the expected behavior and possible something I missed in the
> documentation?
Nope. This is just an issue with data types between PHP and Java. I
don't think you missed anything in the docs. The doc's for the
Bridge don't really discuss the intricacies of handling different
data types between PHP and Java. Maybe that is a good section to add
to the documentation. I'll add that to my list.
Jon Koerber
(spladow)
> It had
> me going for hours. I see that there's at least one other email on
> the list
> were someone
> couldn't read a value with get()...possibly the same issue.
>
> Thanks in advance.
>
> Tom
>
> _________________________________________________________________
> Try the next generation of search with Windows Live Search today!
> http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-
> us&source=hmtagline
>
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2006-11-03 21:54:25
|
I'm using php-java-bridge-3.1.8, and have run into something really
confusing when creating
HashMaps.
I have a method in a Java class that accepts a HashMap. If I create an
empty HashMap in
php and add elements with put like this:
$h = new java("java.util.HashMap");
$h->put(0 , "Some Text");
...and pass that to my class I can get it's value with get(0) no problem.
However if I create
the HashMap in php with something like this:
$h = new java("java.util.HashMap", array(0=>"Some Text"));
...and pass that to the java class it wasn't able to get the key 0. Also,
trying to use $h->get(0)
within php didn't work either.
What I found is that the key to the resulting HashMap using the latter
syntax isn't an
Integer 0, but rather an Object of the class
php.java.bridge.Request$PhpArrayKey.
I see that creating a Vector directly from an array in a similar manner such
as:
$h = new java("java.util.Vector", array(44.6, 5, 5.6, "some string"));
...works fine, and I get elements with all the expected data types in java.
Is this the expected behavior and possible something I missed in the
documentation? It had
me going for hours. I see that there's at least one other email on the list
were someone
couldn't read a value with get()...possibly the same issue.
Thanks in advance.
Tom
_________________________________________________________________
Try the next generation of search with Windows Live Search today!
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline
|
|
From: <php...@li...> - 2006-11-03 17:50:49
|
Hi all,
I am trying to build an install php java bridge on my centos 4.4 box.
But I alway got an error I don't understand.
rpmbuild --rebuild php-java-bridge-3.1.8-1.src.rpm
...
----------------------------------------------------------------------
Libraries have been installed in:
/usr/src/redhat/BUILD/php-java-bridge-3.1.8/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
cd /usr/src/redhat/BUILD/php-java-bridge-3.1.8/server; make CFLAGS="-g
-O2" GCJFLAGS=" `echo -g -O2|sed 's/-D[^ ]*//g'`" install
make[1]: Entering directory `/usr/src/redhat/BUILD/php-java-bridge-3.1.8/server'
if /bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I.
-I. -I. -DEXTENSION_DIR="\"/usr/lib/php4\""
-I/usr/java/j2sdk1.4.2_13/include
-I/usr/java/j2sdk1.4.2_13/include/linux -D_REENTRANT -g -O2 -MT
natcJavaBridge.lo -MD -MP -MF ".deps/natcJavaBridge.Tpo" -c -o
natcJavaBridge.lo natcJavaBridge.c; \
then mv -f ".deps/natcJavaBridge.Tpo" ".deps/natcJavaBridge.Plo"; else
rm -f ".deps/natcJavaBridge.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -DEXTENSION_DIR=\"/usr/lib/php4\"
-I/usr/java/j2sdk1.4.2_13/include
-I/usr/java/j2sdk1.4.2_13/include/linux -D_REENTRANT -g -O2 -MT
natcJavaBridge.lo -MD -MP -MF .deps/natcJavaBridge.Tpo -c
natcJavaBridge.c -fPIC -DPIC -o .libs/natcJavaBridge.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DEXTENSION_DIR=\"/usr/lib/php4\"
-I/usr/java/j2sdk1.4.2_13/include
-I/usr/java/j2sdk1.4.2_13/include/linux -D_REENTRANT -g -O2 -MT
natcJavaBridge.lo -MD -MP -MF .deps/natcJavaBridge.Tpo -c
natcJavaBridge.c -o natcJavaBridge.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link --tag=CC gcc -g -O2 -o
libnatcJavaBridge.la -rpath /usr/lib/php4 -shared -avoid-version
-prefer-pic natcJavaBridge.lo -lrt
gcc -shared .libs/natcJavaBridge.o -lrt -Wl,-soname
-Wl,libnatcJavaBridge.so -o .libs/libnatcJavaBridge.so
ar cru .libs/libnatcJavaBridge.a natcJavaBridge.o
ranlib .libs/libnatcJavaBridge.a
creating libnatcJavaBridge.la
(cd .libs && rm -f libnatcJavaBridge.la && ln -s
../libnatcJavaBridge.la libnatcJavaBridge.la)
if gcc -DHAVE_CONFIG_H -I. -I. -I.
-DEXTENSION_DIR="\"/usr/lib/php4\"" -I/usr/java/j2sdk1.4.2_13/include
-I/usr/java/j2sdk1.4.2_13/include/linux -D_REENTRANT -g -O2 -MT
java.o -MD -MP -MF ".deps/java.Tpo" -c -o java.o java.c; \
then mv -f ".deps/java.Tpo" ".deps/java.Po"; else rm -f
".deps/java.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/Base64EncodingOutputBuffer.o
-MD -MP -MF "php/java/bridge/.deps/Base64EncodingOutputBuffer.Tpo" -c
-o php/java/bridge/Base64EncodingOutputBuffer.o `test -f
'php/java/bridge/Base64EncodingOutputBuffer.java' || echo
'./'`php/java/bridge/Base64EncodingOutputBuffer.java; \
then mv -f "php/java/bridge/.deps/Base64EncodingOutputBuffer.Tpo"
"php/java/bridge/.deps/Base64EncodingOutputBuffer.Po"; else rm -f
"php/java/bridge/.deps/Base64EncodingOutputBuffer.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/BaseThreadPool.o -MD -MP -MF
"php/java/bridge/.deps/BaseThreadPool.Tpo" -c -o
php/java/bridge/BaseThreadPool.o `test -f
'php/java/bridge/BaseThreadPool.java' || echo
'./'`php/java/bridge/BaseThreadPool.java; \
then mv -f "php/java/bridge/.deps/BaseThreadPool.Tpo"
"php/java/bridge/.deps/BaseThreadPool.Po"; else rm -f
"php/java/bridge/.deps/BaseThreadPool.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/ChainsawLogger.o -MD -MP -MF
"php/java/bridge/.deps/ChainsawLogger.Tpo" -c -o
php/java/bridge/ChainsawLogger.o `test -f
'php/java/bridge/ChainsawLogger.java' || echo
'./'`php/java/bridge/ChainsawLogger.java; \
then mv -f "php/java/bridge/.deps/ChainsawLogger.Tpo"
"php/java/bridge/.deps/ChainsawLogger.Po"; else rm -f
"php/java/bridge/.deps/ChainsawLogger.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/ClassicParserString.o -MD -MP
-MF "php/java/bridge/.deps/ClassicParserString.Tpo" -c -o
php/java/bridge/ClassicParserString.o `test -f
'php/java/bridge/ClassicParserString.java' || echo
'./'`php/java/bridge/ClassicParserString.java; \
then mv -f "php/java/bridge/.deps/ClassicParserString.Tpo"
"php/java/bridge/.deps/ClassicParserString.Po"; else rm -f
"php/java/bridge/.deps/ClassicParserString.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/ClassicResponse.o -MD -MP -MF
"php/java/bridge/.deps/ClassicResponse.Tpo" -c -o
php/java/bridge/ClassicResponse.o `test -f
'php/java/bridge/ClassicResponse.java' || echo
'./'`php/java/bridge/ClassicResponse.java; \
then mv -f "php/java/bridge/.deps/ClassicResponse.Tpo"
"php/java/bridge/.deps/ClassicResponse.Po"; else rm -f
"php/java/bridge/.deps/ClassicResponse.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/ConstructorCache.o -MD -MP -MF
"php/java/bridge/.deps/ConstructorCache.Tpo" -c -o
php/java/bridge/ConstructorCache.o `test -f
'php/java/bridge/ConstructorCache.java' || echo
'./'`php/java/bridge/ConstructorCache.java; \
then mv -f "php/java/bridge/.deps/ConstructorCache.Tpo"
"php/java/bridge/.deps/ConstructorCache.Po"; else rm -f
"php/java/bridge/.deps/ConstructorCache.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/DefaultOptions.o -MD -MP -MF
"php/java/bridge/.deps/DefaultOptions.Tpo" -c -o
php/java/bridge/DefaultOptions.o `test -f
'php/java/bridge/DefaultOptions.java' || echo
'./'`php/java/bridge/DefaultOptions.java; \
then mv -f "php/java/bridge/.deps/DefaultOptions.Tpo"
"php/java/bridge/.deps/DefaultOptions.Po"; else rm -f
"php/java/bridge/.deps/DefaultOptions.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/DynamicClassLoader.o -MD -MP
-MF "php/java/bridge/.deps/DynamicClassLoader.Tpo" -c -o
php/java/bridge/DynamicClassLoader.o `test -f
'php/java/bridge/DynamicClassLoader.java' || echo
'./'`php/java/bridge/DynamicClassLoader.java; \
then mv -f "php/java/bridge/.deps/DynamicClassLoader.Tpo"
"php/java/bridge/.deps/DynamicClassLoader.Po"; else rm -f
"php/java/bridge/.deps/DynamicClassLoader.Tpo"; exit 1; fi
if gcj -fjni -g -O2 -MT php/java/bridge/DynamicJavaBridgeClassLoader.o
-MD -MP -MF "php/java/bridge/.deps/DynamicJavaBridgeClassLoader.Tpo"
-c -o php/java/bridge/DynamicJavaBridgeClassLoader.o `test -f
'php/java/bridge/DynamicJavaBridgeClassLoader.java' || echo
'./'`php/java/bridge/DynamicJavaBridgeClassLoader.java; \
then mv -f "php/java/bridge/.deps/DynamicJavaBridgeClassLoader.Tpo"
"php/java/bridge/.deps/DynamicJavaBridgeClassLoader.Po"; else rm -f
"php/java/bridge/.deps/DynamicJavaBridgeClassLoader.Tpo"; exit 1; fi
./php/java/bridge/DynamicJavaBridgeClassLoader.java:52: error: Class
`php.java.bridge.DynamicJavaBridgeClassLoader' already defined in
php/java/bridge/DynamicJavaBridgeClassLoader.java:52.
public class DynamicJavaBridgeClassLoader extends DynamicClassLoader {
^
./php/java/bridge/DynamicJavaBridgeClassLoader.java:56: confused by
earlier errors, bailing out
make[1]: *** [php/java/bridge/DynamicJavaBridgeClassLoader.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/php-java-bridge-3.1.8/server'
make: *** [/usr/src/redhat/BUILD/php-java-bridge-3.1.8/modules/stamp] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.33708 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.33708 (%build)
Any ideas?
|