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
(1) |
3
(3) |
|
4
|
5
|
6
(6) |
7
(6) |
8
|
9
(1) |
10
(3) |
|
11
(1) |
12
(1) |
13
(4) |
14
(4) |
15
|
16
|
17
(8) |
|
18
(1) |
19
(4) |
20
(13) |
21
(6) |
22
(8) |
23
(7) |
24
(3) |
|
25
(6) |
26
(2) |
27
(1) |
28
(4) |
29
(7) |
30
(11) |
|
|
From: Nicolas G. <nic...@gm...> - 2005-09-22 21:42:57
|
Yes, you're right. I've reviewing all the code again.the difference was
this:
In the first code I do this:
$i=3Dnew java("java.lang.Integer",1);
$i=3D1;
$Cliente=3D$h->get($i);
echo "Cliente:".$Cliente->toString();
see that line in red, I didn't post it in the previous mail :(
now I understand why didn't work. When I do "$i=3D1" I make the $i a long. =
So,
the only way that we can handle Integer is with the java constructor.
On 9/22/05, Abbett, Jonathan <Jon...@ch...> wrote:
>
> Very interesting.
>
> I thought in your initial e-mail you said that using new java("
> java.lang.Integer", 1) gave you the same fatal error?
>
> > Also:
> >
> > $i=3Dnew java("java.lang.Integer",1);
> > $Cliente=3D$h->get($i);
> > echo "Cliente:".$Cliente->toString();
> >
> >
> > both return :
> >
> > Fatal error: Call to a member function toString() on a non-object.
>
>
> Did something else change in your implementation as well?
>
> (make sure you send your responses to the listserver, not just me!)
>
> Best,
> Jon
>
> ________________________________________
> From: Nicolas Granelli [mailto:nic...@gm...]
> Sent: Thursday, September 22, 2005 4:02 PM
> To: Abbett, Jonathan
> Subject: Re: [Php-java-bridge-users] HashMap->get()
>
> the $h is not null, because $h->size() return the correct value.
>
> I've tried with:
>
> $i=3Dnew java("java.lang.Integer", 1);
> $Cliente=3D$h->get($i);
>
> instead of:
>
> $Cliente=3D$h->get(1);
>
> and you know what? works just fine!!!!
>
>
> The problem was that the "1" was interpretated as a java Long, not an
> Integer. I get this solution from the other thread: "Primitives Types".
>
> Thanks a lot.
> This projects is very very good :)
>
> On 9/21/05, Abbett, Jonathan <Jon...@ch...>
> wrote:
> Based on the error, it seems like $h is null. Whatever is providing you
> with the HashMap object needs to be looked at more closely... I doubt it'=
s a
> problem with the PHP-Java bridge.
> --Jon
>
>
> ________________________________________
> From: php...@li... [mailto:
> php...@li...] On Behalf Of Nicolas
> Granelli
> Sent: Tuesday, September 20, 2005 7:04 PM
> To: php-java-bridge
> Subject: [Php-java-bridge-users] HashMap->get()
>
> I can't get to work the get method of a HashMap, that I get from Java (i'=
m
> not creating from php)
>
> I try:
>
> $Cliente=3D$h->get(1); //where $h is the HashMap
>
>
> Also:
>
> $i=3Dnew java("java.lang.Integer",1);
> $Cliente=3D$h->get($i);
> echo "Cliente:".$Cliente->toString();
>
>
> both return :
>
> Fatal error: Call to a member function toString() on a non-object.
>
>
>
|
|
From: Bharath T. <bh...@mv...> - 2005-09-22 19:45:42
|
Hi Jost Yes, HibRepository.java is my class. Let me double check on the config properties -----Original Message----- From: Jost Boekemeier [mailto:jos...@ya...]=20 Sent: Thursday, September 22, 2005 12:19 PM To: Bharath Thirunavukkarasu; php...@li... Subject: Ant: [Php-java-bridge-users] exception when using a method that takes a boolean Hi, >Caused by: >java.lang.NullPointerException at >com.apostek.service.system.repository.impl.hibernate.HibRepository.getS essionContext(HibRepository.java:176) at this sounds as if some config properties are missing. Is HibRepository.java one of your classes? Regards, Jost Boekemeier =09 =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Ben G. <be...@ja...> - 2005-09-22 18:44:10
|
SQUILLACE MASSIMO wrote: > It requires an int. In one of several attempts I called the method > with an object of class java.lang.Integer and the error message > simply became: > > Fatal error: Uncaught [class java.lang.Exception: > java.lang.Exception: Invoke failed: [class > com.ibm.mq.MQQueueManager]->accessQueue(class java.lang.String, class > java.lang.Integer). Cause: java.lang.IllegalArgumentException: > java.lang.ClassCastException@1a786c3] Shouldn't java autobox/autounbox Integer to int and vice versa? It will if you are using java 1.5 at least. -- Ben Gollmer Jatosoft LLC |
|
From: Jost B. <jos...@ya...> - 2005-09-22 16:18:58
|
Hi, >Caused by: >java.lang.NullPointerException at >com.apostek.service.system.repository.impl.hibernate.HibRepository.getSessionContext(HibRepository.java:176) at this sounds as if some config properties are missing. Is HibRepository.java one of your classes? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-09-22 16:08:37
|
Hi,
> <?php
> $qMgr = new Java('com.ibm.mq.MQQueueManager');
> $mqc = new JavaClass('com.ibm.mq.MQC');
> $openOptions = $mqc->MQOO_INPUT_AS_Q_DEF |
> $mqc->MQOO_OUTPUT;
> $sdlq =
> $qMgr->accessQueue('SYSTEM.DEFAULT.LOCAL.QUEUE',
> $openOptions);
can you please set the java.log_level to 4 and send
the complete log for the above statements.
Please also send the *exact* version of the JVM you
use.
I have tested on two different machines, Solaris with
JRE1.5.0 and Linux with blackdown java 1.4.1. The
above code works on all of them. (I have tested with
php/java bridge 2.0.8, but that shouldn't make a
difference. The coerce code hasn't changed since
version 2.0.7).
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|
|
From: SQUILLACE M. <msq...@so...> - 2005-09-22 13:15:43
|
Jost,
> What about extending java_require() so that it can
> load jar files from a given directory?
That would be great, and more so if one could mix directories and single
jar files in the same call!
...
> If it requires an int then I think we wouldn't see the
ClassCastException.
> php ints (which are actually longs) are transferred as <L
v=3D"longval"/>.
> coerce can convert the longval into a int, but it cannot convert
> it into a java.lang.Integer.
...
> In general we cannot auto-convert a long to a
> java.lang.Integer without altering the value. If such
> a conversion is necessary I think the user must do
> this, for example by calling "new
> java("java.lang.Integer", $phpLongValue);"
I'm sure you are right, but still don't understand what I am supposed to
do ... here are a few snippets and their outcome.
1) Let's start with a method invocation where all required parameters
are missing:
<?php
$qMgr =3D new Java('com.ibm.mq.MQQueueManager');
$sdlq =3D $qMgr->accessQueue();
?>
Script output:
=20
Fatal error: Uncaught [class java.lang.Exception:
java.lang.Exception:
Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue. Cause:
java.lang.NoSuchMethodException: accessQueue(). Candidates: [public=20
synchronized com.ibm.mq.MQQueue com.ibm.mq.MQQueueManager.accessQueue
=20
java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)
throws com.ibm.mq.MQException, public synchronized com.ibm.mq.MQQueue
com.ibm.mq.MQQueueManager.accessQueue(java.lang.String,int) throws=20
com.ibm.mq.MQException]]
thrown in /opt/phpexe/jbridge/mqt.php on line 3
/var/log/php-java-bridge.log:
Java.lang.NoSuchMethodException: accessQueue(). Candidates: [public=20
synchronized com.ibm.mq.MQQueue com.ibm.mq.MQQueueManager.accessQueue
=20
java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)
throws com.ibm.mq.MQException, public synchronized com.ibm.mq.MQQueue
com.ibm.mq.MQQueueManager.accessQueue(java.lang.String,int) throws=20
com.ibm.mq.MQException]=20
at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:966)
at php.java.bridge.Request.handleRequests(Request.java:190)
at php.java.bridge.JavaBridge.run(JavaBridge.java:142)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20)
2) What I think the snippet should look like:
<?php
$qMgr =3D new Java('com.ibm.mq.MQQueueManager');
$mqc =3D new JavaClass('com.ibm.mq.MQC');
$openOptions =3D $mqc->MQOO_INPUT_AS_Q_DEF | $mqc->MQOO_OUTPUT;
// gettype($openOptions) returns 'integer' at this point (value:17)
$sdlq =3D $qMgr->accessQueue('SYSTEM.DEFAULT.LOCAL.QUEUE',
$openOptions);
?>
Script output:
=20
Fatal error: Uncaught [class java.lang.Exception:
java.lang.Exception:=20
Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue(class
java.lang.String,
class java.lang.Long). Cause: java.lang.IllegalArgumentException:=20
java.lang.ClassCastException@181edf4]
thrown in /opt/phpexe/jbridge/mqt.php on line 6
/var/log/php-java-bridge.log:
java.lang.IllegalArgumentException:
java.lang.ClassCastException@12d3205
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:978)
at php.java.bridge.Request.handleRequests(Request.java:190)
at php.java.bridge.JavaBridge.run(JavaBridge.java:142)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20)
3) Let's try with a java.lang.Integer:
<?php
$qMgr =3D new Java('com.ibm.mq.MQQueueManager');
$mqc =3D new JavaClass('com.ibm.mq.MQC');
$openOptions =3D $mqc->MQOO_INPUT_AS_Q_DEF | $mqc->MQOO_OUTPUT;
// gettype($openOptions) returns 'integer' at this point (value:17)
$inte =3D new Java('java.lang.Integer', $openOptions);
$sdlq =3D $qMgr->accessQueue('SYSTEM.DEFAULT.LOCAL.QUEUE', $inte);
?>
Script output:
=20
Fatal error: Uncaught [class java.lang.Exception:
java.lang.Exception:
Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue(class
java.lang.String,=20
class java.lang.Integer). Cause: java.lang.IllegalArgumentException:=20
java.lang.ClassCastException@2f1921]
thrown in /opt/phpexe/jbridge/mqt.php on line 7
/var/log/php-java-bridge.log:
java.lang.IllegalArgumentException:
java.lang.ClassCastException@2f1921
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:978)
at php.java.bridge.Request.handleRequests(Request.java:190)
at php.java.bridge.JavaBridge.run(JavaBridge.java:142)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20)
In the "candidates" list from the first snippet there is a=20
com.ibm.mq.MQQueueManager.accessQueue(java.lang.String,int)
confirming what one can read from the documentation, where the method is
defined like this:
public synchronized MQQueue accessQueue(String queueName, int
openOptions)
IMHO it really looks like the method is expecting an int for the second
parameter.
If coerce converts the longvals to int, why the error in the second
snippet?
If the method expected a java.lang.Integer instead, why the error in the
last snippet?
Massimo
|
|
From: SQUILLACE M. <msq...@so...> - 2005-09-22 10:16:07
|
Ben, > Shouldn't java autobox/autounbox Integer to int and vice versa? > It will if you are using java 1.5 at least. I have a working PHP script that lists all the Java properties of the VM, and reports: ... java.vm.version: 1.5.0_01-b08 ... Massimo |
|
From: Bharath T. <bh...@mv...> - 2005-09-22 06:22:33
|
When trying to access a java method with a Boolean param=20
$jcl_sysController =3D new JavaClass("com.xxx.service.SysController");
$jobj_serviceManager =3D $jcl_sysController->getInstance();
=20
$jobj_repository =3D $jobj_serviceManager->getRepository();
$jobj_memberService =3D $jobj_serviceManager->getMemberService();
=20
$jobj_repository->begin(false);
I get this exception
java stack trace: [o(ByteArrayOutputStream):"java.lang.Exception: Invoke
failed:
[o(HibRepository):"com.xxx.service.system.repository.impl.hibernate.HibR
epository@1006d75"]->begin((boolean)o(Boolean):"false"). Cause:
java.lang.NullPointerException at
php.java.bridge.JavaBridge.setException(JavaBridge.java:560) at
php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1175) at
php.java.bridge.Request.handleRequest(Request.java:204) 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.NullPointerException at
com.apostek.service.system.repository.impl.hibernate.HibRepository.getSe
ssionContext(HibRepository.java:176) at
com.xxx.service.system.repository.impl.AbstractRepository.begin(Abstract
Repository.java:53) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1137) ... 4 more "]
Couldn't figure out why?
Any idea
Regards
Bharath
|