You can subscribe to this list here.
| 2003 |
Jan
|
Feb
(55) |
Mar
(100) |
Apr
(203) |
May
(330) |
Jun
(190) |
Jul
(302) |
Aug
(323) |
Sep
(197) |
Oct
(245) |
Nov
(490) |
Dec
(330) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(194) |
Feb
(400) |
Mar
(416) |
Apr
(415) |
May
(359) |
Jun
(381) |
Jul
(491) |
Aug
(311) |
Sep
(291) |
Oct
(273) |
Nov
(355) |
Dec
(266) |
| 2005 |
Jan
(306) |
Feb
(303) |
Mar
(520) |
Apr
(346) |
May
(255) |
Jun
(221) |
Jul
(171) |
Aug
(247) |
Sep
(147) |
Oct
(125) |
Nov
(165) |
Dec
(65) |
| 2006 |
Jan
(90) |
Feb
(53) |
Mar
(121) |
Apr
(103) |
May
(113) |
Jun
(103) |
Jul
(104) |
Aug
(67) |
Sep
(78) |
Oct
(82) |
Nov
(78) |
Dec
(70) |
| 2007 |
Jan
(77) |
Feb
(76) |
Mar
(63) |
Apr
(30) |
May
(47) |
Jun
(41) |
Jul
(44) |
Aug
(44) |
Sep
(49) |
Oct
(33) |
Nov
(25) |
Dec
(21) |
| 2008 |
Jan
(45) |
Feb
(13) |
Mar
(15) |
Apr
(12) |
May
(9) |
Jun
(33) |
Jul
(30) |
Aug
(7) |
Sep
(20) |
Oct
(17) |
Nov
(20) |
Dec
(10) |
| 2009 |
Jan
(8) |
Feb
(5) |
Mar
(12) |
Apr
(17) |
May
(19) |
Jun
(97) |
Jul
(77) |
Aug
(33) |
Sep
(24) |
Oct
(41) |
Nov
(16) |
Dec
(32) |
| 2010 |
Jan
(24) |
Feb
(14) |
Mar
(50) |
Apr
(71) |
May
(70) |
Jun
(64) |
Jul
(45) |
Aug
(62) |
Sep
(32) |
Oct
(4) |
Nov
(12) |
Dec
(2) |
| 2011 |
Jan
(1) |
Feb
(3) |
Mar
(4) |
Apr
(3) |
May
(6) |
Jun
(1) |
Jul
(4) |
Aug
(3) |
Sep
(4) |
Oct
(6) |
Nov
(3) |
Dec
(3) |
| 2012 |
Jan
(4) |
Feb
(8) |
Mar
(6) |
Apr
(10) |
May
(2) |
Jun
(3) |
Jul
(11) |
Aug
(10) |
Sep
(4) |
Oct
|
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
(9) |
Apr
(1) |
May
(8) |
Jun
(2) |
Jul
(5) |
Aug
(2) |
Sep
|
Oct
(3) |
Nov
(10) |
Dec
(8) |
| 2014 |
Jan
(3) |
Feb
(12) |
Mar
(9) |
Apr
(12) |
May
(2) |
Jun
|
Jul
(3) |
Aug
(1) |
Sep
(1) |
Oct
(4) |
Nov
|
Dec
(2) |
| 2015 |
Jan
(1) |
Feb
(3) |
Mar
(4) |
Apr
(9) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(7) |
Oct
(9) |
Nov
(7) |
Dec
(9) |
| 2016 |
Jan
(7) |
Feb
(5) |
Mar
(5) |
Apr
(5) |
May
(8) |
Jun
(4) |
Jul
(5) |
Aug
(4) |
Sep
(6) |
Oct
(7) |
Nov
(2) |
Dec
(3) |
| 2017 |
Jan
(7) |
Feb
(8) |
Mar
(7) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
(5) |
Aug
(8) |
Sep
(4) |
Oct
(2) |
Nov
(3) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2021 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
(5) |
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <jue...@we...> - 2004-06-02 23:51:27
|
You mean overworked because that guy spends the third night in =
succession on release preparations (till around 4:00 AM yesterday and =
the day before)? ;-)
=20
Actually, that's a last-minute bugfix - good timing, Seth :-) I've =
already finished all testing and am about to upload the zip to =
SourceForge within the next half hour.
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Brandon Goodin
Gesendet: Do 03.06.2004 01:41
An: spr...@li...
Betreff: RE: [Springframework-developer] Possible Bug in =
DefaultMessageSourceResolver
1.0.2? what's that? i remember something about an overworked guy who was
going to release that a while back ;-)
Brandon
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of j=FCrgen h=F6ller [werk3AT]
Sent: Wednesday, June 02, 2004 5:31 PM
To: spr...@li...
Subject: Re: [Springframework-developer] Possible Bug in
DefaultMessageSourceResolver
It's indeed a bug! Just fixed - will make it into 1.0.2.
Juergen
________________________________
Von: spr...@li... im Auftrag =
von
Seth Ladd
Gesendet: Mi 02.06.2004 23:52
An: spr...@li...
Betreff: [Springframework-developer] Possible Bug in
DefaultMessageSourceResolver
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I think this usage should be possible, so please let me know if this
isn't supported.
I am writing some custom validation in onBindAndValidate, and am
rejecting a field in a map. The specific code is:
errors.rejectValue("accepted['"+agencyName+"']",
~ "errors.required", new Object[] {
~ new DefaultMessageSourceResolvable(
~ new String[]{"signatureCommand.accept.dept."+agencyName})
~ }, null);
My bean looks like:
public class Command {
~ public Map getAccepted();
}
However, when I attempt to reject the field accepted['tax'], I receive a
NPE:
java.lang.NullPointerException
~ at
org.springframework.validation.DefaultMessageCodesResolver.resolveMes
sageCodes(DefaultMessageCodesResolver.java:103)
~ at
org.springframework.validation.BindException.resolveMessageCodes(Bind
Exception.java:163)
~ at
org.springframework.validation.BindException.rejectValue(BindExceptio
n.java:152)
~ at
com.hic.eboss.web.SignatureController.onBindAndValidate(SignatureCont
roller.java:143)
This is because the Class of accepted['tax'] was not found (because its
value is null). There was a similar problem w/ null values in a Map
with the registering of custom property editors.
I believe that DefaultMessageCodesResolver should just handle the case
where the Class is null.
Hope that helps,
Thanks!
Seth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAvkwKKZsFSwtW+wIRAnTzAJ415fKDkJsvj6ZdvKnD3x3LSRbjPgCfXSZs
SQpDKva/NQVTp60gFSZKrSM=3D
=3DUbsm
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Brandon G. <ma...@ph...> - 2004-06-02 23:39:37
|
1.0.2? what's that? i remember something about an overworked guy who was
going to release that a while back ;-)
Brandon
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of j=FCrgen h=F6ller [werk3AT]
Sent: Wednesday, June 02, 2004 5:31 PM
To: spr...@li...
Subject: Re: [Springframework-developer] Possible Bug in
DefaultMessageSourceResolver
It's indeed a bug! Just fixed - will make it into 1.0.2.
Juergen
________________________________
Von: spr...@li... im Auftrag von
Seth Ladd
Gesendet: Mi 02.06.2004 23:52
An: spr...@li...
Betreff: [Springframework-developer] Possible Bug in
DefaultMessageSourceResolver
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I think this usage should be possible, so please let me know if this
isn't supported.
I am writing some custom validation in onBindAndValidate, and am
rejecting a field in a map. The specific code is:
errors.rejectValue("accepted['"+agencyName+"']",
~ "errors.required", new Object[] {
~ new DefaultMessageSourceResolvable(
~ new String[]{"signatureCommand.accept.dept."+agencyName})
~ }, null);
My bean looks like:
public class Command {
~ public Map getAccepted();
}
However, when I attempt to reject the field accepted['tax'], I receive a
NPE:
java.lang.NullPointerException
~ at
org.springframework.validation.DefaultMessageCodesResolver.resolveMes
sageCodes(DefaultMessageCodesResolver.java:103)
~ at
org.springframework.validation.BindException.resolveMessageCodes(Bind
Exception.java:163)
~ at
org.springframework.validation.BindException.rejectValue(BindExceptio
n.java:152)
~ at
com.hic.eboss.web.SignatureController.onBindAndValidate(SignatureCont
roller.java:143)
This is because the Class of accepted['tax'] was not found (because its
value is null). There was a similar problem w/ null values in a Map
with the registering of custom property editors.
I believe that DefaultMessageCodesResolver should just handle the case
where the Class is null.
Hope that helps,
Thanks!
Seth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAvkwKKZsFSwtW+wIRAnTzAJ415fKDkJsvj6ZdvKnD3x3LSRbjPgCfXSZs
SQpDKva/NQVTp60gFSZKrSM=3D
=3DUbsm
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Seth L. <se...@eh...> - 2004-06-02 23:34:47
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 jürgen höller [werk3AT] wrote: | It's indeed a bug! Just fixed - will make it into 1.0.2. Great, thanks! Seth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows XP) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAvmQNKZsFSwtW+wIRAtylAJ0boiXxyd+/jmN/d4XbylQkQZpJ0wCdEDo5 dS5auzihFHjPrxaimjRPtRQ= =Wb2V -----END PGP SIGNATURE----- |
|
From: <jue...@we...> - 2004-06-02 23:31:34
|
It's indeed a bug! Just fixed - will make it into 1.0.2.
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Seth Ladd
Gesendet: Mi 02.06.2004 23:52
An: spr...@li...
Betreff: [Springframework-developer] Possible Bug in =
DefaultMessageSourceResolver
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I think this usage should be possible, so please let me know if this
isn't supported.
I am writing some custom validation in onBindAndValidate, and am
rejecting a field in a map. The specific code is:
errors.rejectValue("accepted['"+agencyName+"']",
~ "errors.required", new Object[] {
~ new DefaultMessageSourceResolvable(
~ new String[]{"signatureCommand.accept.dept."+agencyName})
~ }, null);
My bean looks like:
public class Command {
~ public Map getAccepted();
}
However, when I attempt to reject the field accepted['tax'], I receive a
NPE:
java.lang.NullPointerException
~ at
org.springframework.validation.DefaultMessageCodesResolver.resolveMes
sageCodes(DefaultMessageCodesResolver.java:103)
~ at
org.springframework.validation.BindException.resolveMessageCodes(Bind
Exception.java:163)
~ at
org.springframework.validation.BindException.rejectValue(BindExceptio
n.java:152)
~ at
com.hic.eboss.web.SignatureController.onBindAndValidate(SignatureCont
roller.java:143)
This is because the Class of accepted['tax'] was not found (because its
value is null). There was a similar problem w/ null values in a Map
with the registering of custom property editors.
I believe that DefaultMessageCodesResolver should just handle the case
where the Class is null.
Hope that helps,
Thanks!
Seth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAvkwKKZsFSwtW+wIRAnTzAJ415fKDkJsvj6ZdvKnD3x3LSRbjPgCfXSZs
SQpDKva/NQVTp60gFSZKrSM=3D
=3DUbsm
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Colin S. <col...@ex...> - 2004-06-02 22:34:54
|
This is a good idea. There's already usage with dates, in a number of=20 files, but switching to a version is more useful... Alef Arendsen wrote: > While browsing through the codebase I came across a couple of a few=20 > classes that were introduced after 1.0. I think it=92s a good thing to=20 > start using the @since tag to allow for users to see whether or not=20 > the current release they=92re using already contains the functionality. > > Objections to adding them when I stumble upon classes introduced after=20 > 1.0? > > Cheers, > > Alef > |
|
From: Alef A. <al...@jt...> - 2004-06-02 22:15:36
|
While browsing through the codebase I came across a couple of a few classes that were introduced after 1.0. I think it's a good thing to start using the @since tag to allow for users to see whether or not the current release they're using already contains the functionality. =20 Objections to adding them when I stumble upon classes introduced after 1.0? =20 Cheers, Alef |
|
From: Seth L. <se...@eh...> - 2004-06-02 21:52:18
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I think this usage should be possible, so please let me know if this
isn't supported.
I am writing some custom validation in onBindAndValidate, and am
rejecting a field in a map. The specific code is:
errors.rejectValue("accepted['"+agencyName+"']",
~ "errors.required", new Object[] {
~ new DefaultMessageSourceResolvable(
~ new String[]{"signatureCommand.accept.dept."+agencyName})
~ }, null);
My bean looks like:
public class Command {
~ public Map getAccepted();
}
However, when I attempt to reject the field accepted['tax'], I receive a
NPE:
java.lang.NullPointerException
~ at
org.springframework.validation.DefaultMessageCodesResolver.resolveMes
sageCodes(DefaultMessageCodesResolver.java:103)
~ at
org.springframework.validation.BindException.resolveMessageCodes(Bind
Exception.java:163)
~ at
org.springframework.validation.BindException.rejectValue(BindExceptio
n.java:152)
~ at
com.hic.eboss.web.SignatureController.onBindAndValidate(SignatureCont
roller.java:143)
This is because the Class of accepted['tax'] was not found (because its
value is null). There was a similar problem w/ null values in a Map
with the registering of custom property editors.
I believe that DefaultMessageCodesResolver should just handle the case
where the Class is null.
Hope that helps,
Thanks!
Seth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAvkwKKZsFSwtW+wIRAnTzAJ415fKDkJsvj6ZdvKnD3x3LSRbjPgCfXSZs
SQpDKva/NQVTp60gFSZKrSM=
=Ubsm
-----END PGP SIGNATURE-----
|
|
From: Hunter K. <re...@ei...> - 2004-06-02 17:17:33
|
I don't understand the rational of that. It seems very rare that you'd w= ant=20 to pass the same value multiple times into the constructor... I personally would expect "if the number of defined constructor-args exac= tly=20 match a defined constructor, and the types match, call that constructor". I don't think I'd like a constructor-arg to be matched any number of time= s... H On Wednesday 02 June 2004 18:01, j=FCrgen h=F6ller [werk3AT] wrote: > Sorry, step back: This is actually intended behavior. If you don't spec= ify > an index, the constructor argument value is considered generic, to be > matched any number of times. So in your case, simply add index attribut= es: > > <bean > id=3D"personType" > class=3D"com.marathon.util.sdo.DefaultType"> > > <constructor-arg index=3D"0"><ref bean=3D"entityType"/></constructo= r-arg> > <constructor-arg index=3D"1"><value>m:Person</value></constructor-a= rg> > > Juergen > > > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...]On Behalf > Of j=FCrgen h=F6ller [werk3AT] > Sent: Wednesday, June 02, 2004 6:40 PM > To: spr...@li... > Subject: Re: [Springframework-developer] Bug? > > > Indeed, that's a bug! I've just fixed it; will be part of 1.0.2. > > Juergen > > > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...]On Behalf > Of Andy Depue > Sent: Wednesday, June 02, 2004 6:17 PM > To: spr...@li... > Subject: [Springframework-developer] Bug? > > > I think I'm seeing a bug in Spring, but thought I'd bounce it off other= s > first. I have a class with multiple constructors, two of which are def= ined > as follows: > public DefaultType(Type superType, String qualifiedName) > and: > public DefaultType(Type superType, String uri, String name) > > I use the following XML to configure: > > <bean > id=3D"personType" > class=3D"com.marathon.util.sdo.DefaultType"> > > <constructor-arg><ref bean=3D"entityType"/></constructor-arg> > <constructor-arg><value>m:Person</value></constructor-arg> > <property name=3D"typeProperties"> > <list> > ... > </list> > </property> > </bean> > > Spring will call the second constructor instead of the first, passing i= n > "m:Person" to both String parameters, equivalent to this: > new DefaultType(entityType, "m:Person", "m:Person") > > Am I doing something wrong, or is this a bug? This is with Spring 1.0.= 1 > (release) > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the one > installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the one > installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the one > installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: <jue...@we...> - 2004-06-02 17:02:08
|
Sorry, step back: This is actually intended behavior. If you don't =
specify an index, the constructor argument value is considered generic, =
to be matched any number of times. So in your case, simply add index =
attributes:
<bean
id=3D"personType"
class=3D"com.marathon.util.sdo.DefaultType">
<constructor-arg index=3D"0"><ref =
bean=3D"entityType"/></constructor-arg>
<constructor-arg =
index=3D"1"><value>m:Person</value></constructor-arg>
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of j=FCrgen h=F6ller [werk3AT]
Sent: Wednesday, June 02, 2004 6:40 PM
To: spr...@li...
Subject: Re: [Springframework-developer] Bug?
Indeed, that's a bug! I've just fixed it; will be part of 1.0.2.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Andy Depue
Sent: Wednesday, June 02, 2004 6:17 PM
To: spr...@li...
Subject: [Springframework-developer] Bug?
I think I'm seeing a bug in Spring, but thought I'd bounce it off others =
first. I have a class with multiple constructors, two of which are =
defined=20
as follows:
public DefaultType(Type superType, String qualifiedName)
and:
public DefaultType(Type superType, String uri, String name)
I use the following XML to configure:
<bean
id=3D"personType"
class=3D"com.marathon.util.sdo.DefaultType">
<constructor-arg><ref bean=3D"entityType"/></constructor-arg>
<constructor-arg><value>m:Person</value></constructor-arg>
<property name=3D"typeProperties">
<list>
...
</list>
</property>
</bean>
Spring will call the second constructor instead of the first, passing in =
"m:Person" to both String parameters, equivalent to this:
new DefaultType(entityType, "m:Person", "m:Person")
Am I doing something wrong, or is this a bug? This is with Spring 1.0.1 =
(release)
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: <jue...@we...> - 2004-06-02 16:40:58
|
Indeed, that's a bug! I've just fixed it; will be part of 1.0.2.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Andy Depue
Sent: Wednesday, June 02, 2004 6:17 PM
To: spr...@li...
Subject: [Springframework-developer] Bug?
I think I'm seeing a bug in Spring, but thought I'd bounce it off others =
first. I have a class with multiple constructors, two of which are =
defined=20
as follows:
public DefaultType(Type superType, String qualifiedName)
and:
public DefaultType(Type superType, String uri, String name)
I use the following XML to configure:
<bean
id=3D"personType"
class=3D"com.marathon.util.sdo.DefaultType">
<constructor-arg><ref bean=3D"entityType"/></constructor-arg>
<constructor-arg><value>m:Person</value></constructor-arg>
<property name=3D"typeProperties">
<list>
...
</list>
</property>
</bean>
Spring will call the second constructor instead of the first, passing in =
"m:Person" to both String parameters, equivalent to this:
new DefaultType(entityType, "m:Person", "m:Person")
Am I doing something wrong, or is this a bug? This is with Spring 1.0.1 =
(release)
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Hunter K. <re...@ei...> - 2004-06-02 16:40:44
|
I was fairly confused for awhile when using MethodInvokingFactoryBean, and
found out that the fancy conversions you use when defining properties on
beans don't happen to the arguments passed into the
MethodInvokingFactoryBean.
I thought this was rather un-Spring like, personally, but assumed it was an
oversight, or hadn't been needed, or whatever.
I whipped up the following subclass that sorts things out nicely. It's a bit
naive, and it doesn't find any registered PropertyEditors defined in the
context or anything, but it works for the bare bones stuff.
As a side note, I found that there really isn't any API support for finding
registered custom property editors in the context - the only thing that was
available to use was AbstractBeanFactory.getCustomEditors(). I was thinking
that it would be handy for _some_ interface to expose this - possibly
ConfigurableBeanFactory, where registerCustomEditor is defined.
Anyway, here's the class. I just slapped it into my project, I've never
set up a build of spring on my local box (I haven't had to - it works great :)
so I haven't tried to make it official, written tests, or anything like that.
Maybe this is something that could get included, or maybe the functionality
folded in MethodInvokingFactoryBean?
H
----
public class TypeConvertingMethodInvokingFactoryBean extends
MethodInvokingFactoryBean
{
public void prepare() throws ClassNotFoundException, NoSuchMethodException
{
super.prepare();
BeanWrapperImpl wrapper = new BeanWrapperImpl();
Object[] args = getArguments();
Method method = getPreparedMethod();
Class[] requiredTypes = method.getParameterTypes();
for (int i=0; i < args.length; i++)
args[i] = wrapper.doTypeConversionIfNecessary(args[i],
requiredTypes[i]);
setArguments(args);
}
}
|
|
From: Andy D. <an...@ma...> - 2004-06-02 16:17:18
|
I think I'm seeing a bug in Spring, but thought I'd bounce it off others
first. I have a class with multiple constructors, two of which are defined
as follows:
public DefaultType(Type superType, String qualifiedName)
and:
public DefaultType(Type superType, String uri, String name)
I use the following XML to configure:
<bean
id="personType"
class="com.marathon.util.sdo.DefaultType">
<constructor-arg><ref bean="entityType"/></constructor-arg>
<constructor-arg><value>m:Person</value></constructor-arg>
<property name="typeProperties">
<list>
...
</list>
</property>
</bean>
Spring will call the second constructor instead of the first, passing in
"m:Person" to both String parameters, equivalent to this:
new DefaultType(entityType, "m:Person", "m:Person")
Am I doing something wrong, or is this a bug? This is with Spring 1.0.1
(release)
|
|
From: Alef A. <al...@jt...> - 2004-06-02 12:09:32
|
Have we reached a conclusion on this one? There is a question on the = forum about non-String keys in maps. Alef -----Original Message----- From: spr...@li... = [mailto:spr...@li...] On Behalf = Of Colin Sampaleanu Sent: Wednesday, April 28, 2004 5:07 AM To: spr...@li... Subject: Re: [Springframework-developer] non-String keys for map entries btw Thomas, a few people have suggested a variation of your first choice = below. However, while that covers having a key that's a bean reference,=20 it doesn't cover the case where it's defined inline (as a value or other = type)... tho...@tr... wrote: >I too think this would be valuable. > >I'd like to keep it simple. The following seems to me the most = consistent with >the current syntax and with the Map interface itself: > ><map> > <entry keyref=3D"myBean"> > <ref bean=3D"myTarget"/> > </entry> ></map> > >or=20 > ><map> > <entry> > <key> > <ref bean=3D"myKeyBean"/> > </key> > <value> > <ref bean=3D"myTargetBean"/> > </value> > </entry> ></map> > >This should also be valid, but I would not recommend using it: > ><map> > <entry> > <key> > <ref bean=3D"myKeyBean"/> > </key> > <ref bean=3D"myTargetBean"/> > </entry> ></map> > > >Thomas > > > >Quoting Colin Sampaleanu <col...@ex...>: > > =20 > >>I agree it would be very good to have. I've been hit a few times by = the=20 >>lack. >> >>I am ok with your syntax, given that probably most of the uses will=20 >>still be the simple case. An alternative would be to have another kind = >>of entry allowed >> >><map> >> <complexentry> >> <key> >> <ref bean=3D"myKey"/> >> </key> >> <value> >> <ref bean=3D"myTarget"/> >> </value> >> </complexentry> >></map> >> >>'complexentry' is just a name I came up with now. I don't really like = it=20 >>or think it that suitable... >> >>Colin >> >> >>j=FCrgen h=F6ller [werk3AT] wrote: >> >> =20 >> >>>A colleague of mine just suggested that <entry> tags in XML bean = definitions >>> =20 >>> >>should also support non-String keys: After all, a java.util.Map can = take any >>Object as key. >> =20 >> >>>So instead of just the current: >>> >>><map> >>> <entry key=3D"myKey"> >>> <ref bean=3D"myTarget"/> >>> </entry> >>></map> >>> >>>We could also support something like the following: >>> >>><map> >>> <entry> >>> <key> >>> <ref bean=3D"myKey"/> >>> </key> >>> <ref bean=3D"myTarget"/> >>> </entry> >>></map> >>> >>>The problem is the syntax: It looks odd to have the <ref> Map value = at the >>> =20 >>> >>same level as the <key> subtag, with the latter having a nested <ref> >>again... >> =20 >> >>>Any ideas? >>> >>>Juergen >>> =20 >>> ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. = Take an Oracle 10g class now, and we'll give you the exam FREE.=20 http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Jozsa K. <dy...@on...> - 2004-06-02 09:11:38
|
Sorry about my question, I see it's the FactoryBean interface which is=20
in charge of this functionality.
dyn
j=FCrgen h=F6ller [werk3AT] wrote:
> You need to fetch the LocalSessionFactoryBean itself here, rather than =
the object it exposes:
>=20
> LocalSessionFactoryBean lsfb =3D (LocalSessionFactoryBean) ctx.getBea=
n("&mySessionFactory");
>=20
> This is rarely necessary, but works with any FactoryBean: Simply prepen=
d a "&" to the bean name.
>=20
> Juergen
>=20
>=20
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...]On Behalf
> Of Jozsa Kristof
> Sent: Wednesday, June 02, 2004 10:28 AM
> To: spr...@li...
> Subject: [Springframework-developer] access to
> (LocalSessionFactoryBean).createDatabaseSchema()
>=20
>=20
> Hi,
>=20
> I'd like to create my database schema with my configured=20
> LocalSessionFactoryBean's convenient method createDatabaseSchema(). I=20
> configured my LSFB the usual way:
>=20
> <bean id=3D"sessionFactory"=20
> class=3D"org.springframework.orm.hibernate.LocalSessionFactoryBean">
> <property name=3D"dataSource"><ref local=3D"oracleDS"/></property>
> ...
> </bean>
>=20
> ..but if I pull that bean 'sessionFactory' from the spring container, i=
t=20
> will be a type of net.sf.hibernate.SessionFactoryImpl, the default=20
> implementation of the hibernate SessionFactory interface. How could I=20
> invoke the method mentioned to create the database schema then? (I can'=
t=20
> really see either how the resulting bean could be a total different typ=
e=20
> than the configured one, but that has minor priority compared to my=20
> original question).
>=20
> As a side note, I never really understood why Hibernate doesn't let=20
> access the used Configuration from the SessionFactory instance, which=20
> could be use to feed SchemaExport and create the schema..
>=20
> tia,
> dyn
--=20
.Digital.Yearning.for.Networked.Assassination.and.Xenocide.
|
|
From: Jozsa K. <dy...@on...> - 2004-06-02 09:08:17
|
Hmm that's a smart trick to know about :) Is it documented how a bean=20
can expose an other, not itself? I guess I could use that at other=20
places too..
thanks,
dyn
j=FCrgen h=F6ller [werk3AT] wrote:
> You need to fetch the LocalSessionFactoryBean itself here, rather than =
the object it exposes:
>=20
> LocalSessionFactoryBean lsfb =3D (LocalSessionFactoryBean) ctx.getBea=
n("&mySessionFactory");
>=20
> This is rarely necessary, but works with any FactoryBean: Simply prepen=
d a "&" to the bean name.
>=20
> Juergen
>=20
>=20
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...]On Behalf
> Of Jozsa Kristof
> Sent: Wednesday, June 02, 2004 10:28 AM
> To: spr...@li...
> Subject: [Springframework-developer] access to
> (LocalSessionFactoryBean).createDatabaseSchema()
>=20
>=20
> Hi,
>=20
> I'd like to create my database schema with my configured=20
> LocalSessionFactoryBean's convenient method createDatabaseSchema(). I=20
> configured my LSFB the usual way:
>=20
> <bean id=3D"sessionFactory"=20
> class=3D"org.springframework.orm.hibernate.LocalSessionFactoryBean">
> <property name=3D"dataSource"><ref local=3D"oracleDS"/></property>
> ...
> </bean>
>=20
> ..but if I pull that bean 'sessionFactory' from the spring container, i=
t=20
> will be a type of net.sf.hibernate.SessionFactoryImpl, the default=20
> implementation of the hibernate SessionFactory interface. How could I=20
> invoke the method mentioned to create the database schema then? (I can'=
t=20
> really see either how the resulting bean could be a total different typ=
e=20
> than the configured one, but that has minor priority compared to my=20
> original question).
>=20
> As a side note, I never really understood why Hibernate doesn't let=20
> access the used Configuration from the SessionFactory instance, which=20
> could be use to feed SchemaExport and create the schema..
>=20
> tia,
> dyn
--=20
.Digital.Yearning.for.Networked.Assassination.and.Xenocide.
|
|
From: <jue...@we...> - 2004-06-02 08:29:54
|
You need to fetch the LocalSessionFactoryBean itself here, rather than =
the object it exposes:
LocalSessionFactoryBean lsfb =3D (LocalSessionFactoryBean) =
ctx.getBean("&mySessionFactory");
This is rarely necessary, but works with any FactoryBean: Simply prepend =
a "&" to the bean name.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Jozsa Kristof
Sent: Wednesday, June 02, 2004 10:28 AM
To: spr...@li...
Subject: [Springframework-developer] access to
(LocalSessionFactoryBean).createDatabaseSchema()
Hi,
I'd like to create my database schema with my configured=20
LocalSessionFactoryBean's convenient method createDatabaseSchema(). I=20
configured my LSFB the usual way:
<bean id=3D"sessionFactory"=20
class=3D"org.springframework.orm.hibernate.LocalSessionFactoryBean">
<property name=3D"dataSource"><ref local=3D"oracleDS"/></property>
...
</bean>
..but if I pull that bean 'sessionFactory' from the spring container, it =
will be a type of net.sf.hibernate.SessionFactoryImpl, the default=20
implementation of the hibernate SessionFactory interface. How could I=20
invoke the method mentioned to create the database schema then? (I can't =
really see either how the resulting bean could be a total different type =
than the configured one, but that has minor priority compared to my=20
original question).
As a side note, I never really understood why Hibernate doesn't let=20
access the used Configuration from the SessionFactory instance, which=20
could be use to feed SchemaExport and create the schema..
tia,
dyn
--=20
.Digital.Yearning.for.Networked.Assassination.and.Xenocide.
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Jozsa K. <dy...@on...> - 2004-06-02 08:22:08
|
Hi, I'd like to create my database schema with my configured LocalSessionFactoryBean's convenient method createDatabaseSchema(). I configured my LSFB the usual way: <bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean"> <property name="dataSource"><ref local="oracleDS"/></property> ... </bean> ..but if I pull that bean 'sessionFactory' from the spring container, it will be a type of net.sf.hibernate.SessionFactoryImpl, the default implementation of the hibernate SessionFactory interface. How could I invoke the method mentioned to create the database schema then? (I can't really see either how the resulting bean could be a total different type than the configured one, but that has minor priority compared to my original question). As a side note, I never really understood why Hibernate doesn't let access the used Configuration from the SessionFactory instance, which could be use to feed SchemaExport and create the schema.. tia, dyn -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide. |
|
From: Darren D. <da...@da...> - 2004-06-02 05:45:47
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 02 June 2004 01:32, Mike Cannon-Brookes wrote: > Stable here (running HEAD) - just release it already :) > > PS It's already June 2nd here - I know Sydney time is ahead of the > world, but that surely makes it hard to make a release in May ;) When you're as experienced at waiting for releases as SiteMesh users, it=20 doesn't seem so bad eh Mike? (giggle) ;-) =2D --=20 Darren Davison Public Key: http://www.davison.uk.net/pages/key.htm =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAvWl+KLMLAN01aw0RAjVlAKCWXLtJB3cPYgVol0MPP6zZ29fHaACgl74c qjnIlidoaFjZyGl/o6hPZ4I=3D =3DjyzP =2D----END PGP SIGNATURE----- |
|
From: <jue...@we...> - 2004-06-02 01:15:55
|
For the umpteenth time, I've committed all my changes to CVS HEAD... :-) = This time, a couple of refinements in the beans area, in terms of the = introspection cache and in terms of exception usage, plus a bugfix in = the MessageFormat handling of our MessageSources. =20 Thomas, I've also refined WebLogicNativeJdbcExtractor's implementation: = I've introduced a NativeJdbcExtractorAdapter base class that all = extractors derive from now, simplifying their implementations. = Furthermore, WebLogicNativeJdbcExtractor caches the = "getVendorConnection" Method object now. =20 I'm gonna give the current codebase a sanity check with werk3AT apps = tomorrow morning, and finally-finally-finally upload the release to = SourceForge during the day. And afterwards, I'll take a couple of days = off ;-) =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Mike Cannon-Brookes Gesendet: Mi 02.06.2004 02:32 An: spr...@li... Betreff: Re: [Springframework-developer] Preparing for 1.0.2 Stable here (running HEAD) - just release it already :) PS It's already June 2nd here - I know Sydney time is ahead of the world, but that surely makes it hard to make a release in May ;) Cheers, Mike On Tue, 1 Jun 2004 09:11:45 -1000, se...@eh... <se...@eh...> = wrote: > > Quoting "j=FCrgen h=F6ller [werk3AT]" <jue...@we...>: > > > Repeated complaints that there were no default editors for =3D > > java.lang.Boolean, java.lang.Integer etc prompted that change. What = we =3D > > register by default now are standard instances of = CustomBooleanEditor =3D > > and CustomNumberEditor; in the latter case, using =3D > > Integer.parseInt/toString and co rather than a NumberFormat = instance. > > =3D20 > > Of course, those defaults can still be overridden by the usual =3D > > registerCustomEditor calls, typically with custom instances of =3D > > CustomBooleanEditor and CustomNumberEditor. What makes those editors = =3D > > "custom" is that they're configurable, in contrast to most other =3D > > PropertyEditors. We just provide default instances of them now, but = =3D > > still allow for registering customized instances. > > OK, thanks for the update! That will certainly cut down on some code. = Though I > like having the option of registering my own instances. Another = reason I like > Spring: great defaults, but easy to customize. > > Seth > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle = 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Mike Cannon-B. <mca...@gm...> - 2004-06-02 00:32:02
|
Stable here (running HEAD) - just release it already :) PS It's already June 2nd here - I know Sydney time is ahead of the world, but that surely makes it hard to make a release in May ;) Cheers, Mike On Tue, 1 Jun 2004 09:11:45 -1000, se...@eh... <se...@eh...> wro= te: >=20 > Quoting "j=FCrgen h=F6ller [werk3AT]" <jue...@we...>: >=20 > > Repeated complaints that there were no default editors for =3D > > java.lang.Boolean, java.lang.Integer etc prompted that change. What we = =3D > > register by default now are standard instances of CustomBooleanEditor = =3D > > and CustomNumberEditor; in the latter case, using =3D > > Integer.parseInt/toString and co rather than a NumberFormat instance. > > =3D20 > > Of course, those defaults can still be overridden by the usual =3D > > registerCustomEditor calls, typically with custom instances of =3D > > CustomBooleanEditor and CustomNumberEditor. What makes those editors = =3D > > "custom" is that they're configurable, in contrast to most other =3D > > PropertyEditors. We just provide default instances of them now, but =3D > > still allow for registering customized instances. >=20 > OK, thanks for the update! That will certainly cut down on some code. T= hough I > like having the option of registering my own instances. Another reason I= like > Spring: great defaults, but easy to customize. >=20 > Seth >=20 > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: <se...@eh...> - 2004-06-01 19:17:47
|
Quoting "jürgen höller [werk3AT]" <jue...@we...>: > Repeated complaints that there were no default editors for = > java.lang.Boolean, java.lang.Integer etc prompted that change. What we = > register by default now are standard instances of CustomBooleanEditor = > and CustomNumberEditor; in the latter case, using = > Integer.parseInt/toString and co rather than a NumberFormat instance. > =20 > Of course, those defaults can still be overridden by the usual = > registerCustomEditor calls, typically with custom instances of = > CustomBooleanEditor and CustomNumberEditor. What makes those editors = > "custom" is that they're configurable, in contrast to most other = > PropertyEditors. We just provide default instances of them now, but = > still allow for registering customized instances. OK, thanks for the update! That will certainly cut down on some code. Though I like having the option of registering my own instances. Another reason I like Spring: great defaults, but easy to customize. Seth ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
|
From: <bro...@ya...> - 2004-06-01 18:44:20
|
Hi all,
Just to let you know i have run with the
WebLogicNativeJdbcExtractor Thomas checked in (using a
cvs build)all of today and it works a treat, no
problems at all, thank-you for all your help and
thank-you for the nativeExtractor :-)
Bronwen
--- Thomas Risberg <tho...@tr...> wrote: >
Bronwen,
>
> This was a good exercise. Thanks for your help
> tracking things down. I
> have added a WebLogicNativeJdbcExtractor that uses
> reflection. We
> probably should test this in WLS 6.1 and 7.0 as
> well.
>
> Juergen - do you want to wait for 1.0.3 so we have
> more time to test and
> refine it. It's in the sandbox for now.
>
> Thomas
>
>
> Bronwen Cassidy wrote:
>
> >The last message, I got it :-) now I just want to
> laugh.. the method to get
> >the native driver is:
> >
> >// con is cast to
> weblogic.jdbc.wrapper.PoolConnection, this returns
> the
> >oracle.jdbc.OracleConnection and from there it all
> works, now to figure out
> >all the others :-)
> >public Connection getNativeConnection(Connection
> con) throws SQLException {
> > PoolConnection pConnection =
> (PoolConnection) con;
> > return pConnection.getVendorConnection();
> > }
> >
> >I am happy to send this to you, problem would be it
> would need weblogic.jar
> >:-( as it is specific cast, unless I used
> reflection, let me know what you
> >would like, send it, use reflection etc etc.
> >
> >And a million thanx for all your help
> >All the best to spring
> >Bronwen
> >
> >-----Original Message-----
> >From:
>
spr...@li...
>
>[mailto:spr...@li...]
> On Behalf Of
> >jürgen höller [werk3AT]
> >Sent: 31 May 2004 23:39
> >To: spr...@li...
> >Subject: Re: [Springframework-developer]
> OracleLobCreator
> >
> >OK, seems like Weblogic's pool is among the ones
> that completely wrap all
> >JDBC objects: You don't even get the native
> Connection on
> >getMetaData().getConnection()...
> >
> >So I'm afraid you'll have to write a
> WeblogicNativeJdbcExtractor that knows
> >how to unwrap weblogic.jdbc.wrapper.PoolConnection.
> Check the latter's
> >signatures: Does it have a method like
> "getPhysicalConnection()"? Such a
> >method would be that basis for implementing
> getNativeConnection.
> >
> >Juergen
> >
> >
> >________________________________
> >
> >Von:
>
spr...@li...
> im Auftrag von
> >Bronwen Cassidy
> >Gesendet: Di 01.06.2004 01:20
> >An: spr...@li...
> >Betreff: RE: [Springframework-developer] re:
> OracleLobCreator
> >
> >
> >
> >Hi,
> >If I understand your question, OracleLobHandler
> works in a test case without
> >weblogics pool, only using the
> oracle.jdbc.pool.OracleDataSource datasource
> >bean defined as:
> ><bean id="dataSource"
> class="oracle.jdbc.pool.OracleDataSource">
> > <property
>
>name="driverType"><value>oracle.jdbc.OracleDriver</value></property>
> > <property
>
>name="URL"><value>jdbc:oracle:thin:@localhost:1521:ROBIN</value></property>
> > <property
> name="user"><value>talentstudio</value></property>
> > <property
>
>name="password"><value>talentstudio</value></property>
> > </bean>
> >In deployment I have set up a weblogic pool using
> oracle thin driver, not a
> >weblogic oracle driver.
> >
> >So from what I can determine weblogic pool + oracle
> driver +
> >oracleLobHandler throws the exception and
> >Oracle jdbc pool + oracleLobHandler (as in test
> case) works.
> >
> >The printouts:
> >
> >template.getDataSource().getConnection()=
>
>weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_OracleConnection@112
> >
> >connection.getMetaData().getConnection() =
>
>weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_OracleConnection@112
> >
> >-----Original Message-----
> >From:
>
spr...@li...
>
>[mailto:spr...@li...]
> On Behalf Of
> >jürgen höller [werk3AT]
> >Sent: 31 May 2004 22:52
> >To: spr...@li...
> >Subject: Re: [Springframework-developer] re:
> OracleLobCreator
> >
> >Can you check what kind of wrappers the DataSource
> returns? Simply fetch the
> >DataSource, invoke getConnection() and see what
> kind of handle it returns
> >(System.out.println). Furthermore, invoke
> >getConnection().getMetaData().getConnection() and
> see whether this is the
> >native Connection (System.out.println again).
> >
> >However, if you have properly specified
> SimpleNativeJdbcExtractor for
> >OracleLobHandler's "nativeJdbcExtractor" property
> and still get that
> >exception, then I assume that Weblogic's own Oracle
> JDBC driver doesn't use
> >the OracleConnection class at all. This would mean
> that OracleLobHandler
> >cannot be used with it.
> >
> >Do I understand correctly that OracleLobHandler
> plus
> >SimpleNativeJdbcExtractor work properly with
> Oracle's original JDBC driver
> >plus Weblogic's connection pool?
> >
> >Juergen
> >
> >
> >________________________________
> >
> >Von:
>
spr...@li...
> im Auftrag von
> >Bronwen Cassidy
> >Gesendet: Di 01.06.2004 00:24
> >An: spr...@li...
> >Betreff: RE: [Springframework-developer] re:
> OracleLobCreator
> >
> >
> >
> >Hi,
> >
> >OK the results when changing the driver for the
> pool from jdbc:oracle:thin
> >to: jdbc:weblogic:oracle using
> SimpleNativeJdbcExtractor
> >
> >
> >Error:
>
>org.springframework.dao.DataAccessResourceFailureException:
> Could not create
> >Oracle LOB; nested exception is
> org.springframework.dao.In
> >validDataAccessApiUsageException: OracleLobHandler
> needs to work on
> >oracle.jdbc.OracleConnection - specify a proper
> NativeJdbcExtractor
> >
>
>org.springframework.dao.InvalidDataAccessApiUsageException:
> OracleLobHandler
> >needs to work on oracle.jdbc.OracleConnection -
> specify a
> >proper NativeJdbcExtractor
> > at
>
>org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.getOr
> >acleConnection(OracleLobHandler.java:366)
> > at
>
=== message truncated ===
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
|
|
From: snpe <sn...@sn...> - 2004-06-01 18:09:30
|
Hello Torsten, I like cvs version my favorite tools beacuse I have 56k modem too and it is more easily for upgrade I learn eclipse plugins, too Eclipse 3.0M8 have too more bugs and I waiting for You and 1.0.3 version in CVS Thanks Haris Peco On Tuesday 01 June 2004 02:55 pm, Torsten Juergeleit wrote: > Haris, > > the CVS head version of Spring IDE is not complete > right now. I have to sync CVS head with my local > version of v1.0.3 this week (it takes very long with > an 56k analog modem :-( yes, no DSL yet). > > Meanwhile you can use the labled version 1.0.1. This > version is complete and tested with M8. > > Just curious, why do you need the CVS version of > Spring IDE? > > Cheers, > Torsten > > --- snpe <sn...@sn...> wrote: > > Hello, > > I try compile spring-ide with eclipse (M9 RC1), > > but I haven't classes > > BeansViewSorter, BeansViewLabelDecorater > > > > Is cvs spring-ide complete for M9 ? > > > > regards > > Haris Peco > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the > > market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the > > exam FREE. > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > > > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: <tho...@tr...> - 2004-06-01 16:34:54
|
Juergen, I did some additional tests with the WebLogicNativeJdbcExtractor. It works fine in 8.1 with the imagedb application as well as my own tests. It does not seem to work in 7.0 - I'll keep looking for a solution there. Thomas Quoting "jürgen höller [werk3AT]" <jue...@we...>: > Unfortunately Guillaume told me about a performance issues that has been = > introduce with the garbage collection fixes - at 1:00 AM. I've = > integrated and tested his fix already, but wasn't able to do the actual = > release anymore - at 3:45 AM. I've had an external workshop today, so = > can only do the release tonight. > > BTW, Brandon, have you had a chance to check out the refined iBATIS SQL = > Maps 2.0 support from CVS? > > Juergen > > > -----Original Message----- > From: spr...@li... on behalf of = > tho...@tr... > Sent: Tue 6/1/2004 4:25 PM > To: spr...@li... > Subject: Re: [Springframework-developer] release? > =20 > Brandon, > > There's always that last fix that you want to squeeze in :-). The last = > word > from Juergen was that it is definitely going to happen later today. > > Thomas > > Quoting Brandon Goodin <ma...@ph...>: > > > Didn't I read something about a release that was supposed to go out > > yesterday? :D > > > > > > > > Brandon Goodin > > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. = > > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: <jue...@we...> - 2004-06-01 16:22:47
|
That's odd - I don't really know why this has changed since 1.0.1. Might = be worth tracking down the root cause: For example, log an exception = from the constructor of your class to see the instantiation stacktraces = (or use a debugger to see those stacktraces). On the other hand, it's = good that it seems to behave properly now rather than the other way = round... Juergen -----Original Message----- From: spr...@li... on behalf of = Mike Cannon-Brookes Sent: Tue 6/1/2004 9:18 AM To: spr...@li... Subject: Re: [Springframework-developer] Strange 'double' singleton bug =20 I just tried to reproduce it with our code against CVS HEAD and can't replicate it. Against 1.0.1 I can replicate it every time though. Should I just assume it's fixed in Spring CVS HEAD and therefore will be fixed in the next release? Cheers, Mike=20 On Fri, 28 May 2004 14:55:29 +0200, j=FCrgen h=F6ller [werk3AT] <jue...@we...> wrote: >=20 > Mike, >=20 > Your approach seems to be perfectly OK. I've just tried to reproduce = your issue but wasn't able to: I always get a single instance, no matter = if implementing ApplicationListener or not. Could you double-check the = effect, and possibly send a minimal test case that reproduces the = problem? >=20 > Juergen >=20 > ________________________________ >=20 > Von: spr...@li... im Auftrag = von Mike Cannon-Brookes > Gesendet: Fr 28.05.2004 08:39 > An: Spring Developer > Betreff: [Springframework-developer] Strange 'double' singleton bug >=20 >=20 >=20 >=20 > I'm not sure if this is a bug or not, it's certainly strange = behaviour. >=20 > We had a singleton bean that was operating normally, but when we make > it implement ApplicationListener - we get _two_ instances of it > created. (Tested by simply putting a debug point in the constructor - > two separate beans are created) >=20 > Here's the config snippet: >=20 > <bean id=3D"macroManager" > class=3D"com.atlassian.renderer.macro.DefaultMacroManager"> > <constructor-arg> > <ref local=3D"macroStateStore"/> > </constructor-arg> > <constructor-arg> > <list> > <ref local=3D"beanMacroLoader"/> > <ref local=3D"classpathMacroLoader"/> > </list> > </constructor-arg> > </bean> >=20 > Is this a known bug, a feature or am I not meant to use > ApplicationListener this way? (if it's a bug it's quite serious I'd > say) >=20 > I want to do it this way because another part of Confluence fires an > event to say that all setup has finished - and I want this bean to > listen for that event and further initialize itself. >=20 > I just guessed that in Spring I would just need to implement the > ApplicationListener interface and listen for events - if I need to do > anything else, let me know :) >=20 > Cheers, > Mike >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle = 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle = 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id=8166&op=3Dclick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. = Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id=8166&op=3Dick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |