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: <tri...@tr...> - 2003-09-23 01:36:38
|
Rod & Trevor,
After a closer look I'm convince that Trevor is right - the finally block is the
safest place to close all resources. Did not consider non SQLExceptions, but as
you point out, they would not be caught and we could leave resultsets open.
Thomas
> Trevor
>
> I think you're right, although I wasn't responsible for the current error
> handling and am probably not best placed to comment.
>
> I guess the first thing is break the current code with more rigorous tests,
> which you seem to have done, before trying any changes.
>
> Regards,
> Rod
>
> ----- Original Message -----
> From: "Trevor Cook" <pr...@se...>
> To: "Spring Developers" <spr...@li...>
> Sent: Monday, September 22, 2003 2:39 AM
> Subject: [Springframework-developer] potential JdbcTemplate bug
>
>
> > I'm currently rewriting some of the tests for the jdbc package, and I have
> > encountered a potential problem. Specifically, in the JdbcTemplate
> > "doWithResultSetFromPreparedQuery" method, exception handling does not
> > appear to always work. Recently changes were made which placed various
> > "close" calls in a catch (SQLException) block. However, if a Spring
> > exception is thrown (I noticed this by running a SqlFunction which
> returned
> > more than 1 row, thus throwing an "InvalidDataAccessApiUsageException")
> the
> > "SQLException" catch is NOT called, and the method exits without closing
> > resultset/preparedstatements, etc. Note that while I noticed this in the
> > single method, this behaviour permeates the JdbcTemplate.
> >
> > The current ("paraphrased") code is:
> >
> > <code>
> > try {
> > ... various code ...
> > SQLWarning warning = ps.getWarnings();
> > rs.close();
> > ps.close();
> > throwExceptionOnWarningIfNotIgnoringWarnings(warning);
> > } catch (SQLException ex) {
> > if (rs != null) {
> > try {
> > rs.close();
> > } catch (SQLException ignore) {}
> > }
> > if (ps != null) {
> > try {
> > ps.close();
> > } catch (SQLException ignore) {}
> > }
> > throw getExceptionTranslator().translate("JdbcTemplate.query(psc) with
> > PreparedStatementCreator [" + psc + "]", null, ex);
> > } finally {
> > DataSourceUtils.closeConnectionIfNecessary(con, this.dataSource);
> > }
> > </code>
> >
> > I propose changing it to:
> >
> > <code>
> > try {
> > ... various code ...
> > SQLWarning warning = ps.getWarnings();
> > throwExceptionOnWarningIfNotIgnoringWarnings(warning);
> > } catch (SQLException ex) {
> > throw getExceptionTranslator().translate("JdbcTemplate.query(psc) with
> > PreparedStatementCreator [" + psc + "]", null, ex);
> > } finally {
> > if (rs != null) {
> > try {
> > rs.close();
> > } catch (SQLException ignore) {}
> > }
> > if (ps != null) {
> > try {
> > ps.close();
> > } catch (SQLException ignore) {}
> > }
> > DataSourceUtils.closeConnectionIfNecessary(con, this.dataSource);
> > }
> > </code>
> >
> > I believe this will ensure resources are closed regardless of
> > success/failure, and still allow Spring exceptions and "translated"
> > SQLExceptions to propogate as designed. If anyone sees any holes in this
> > (specifically Rod/Thomas who I believe have done the most work on the jdbc
> > packages) please let me know. Otherwise (and barring exceptions) I will
> > make the changes and commit them with the updated tests tomorrow.
> >
> > Trevor D. Cook
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Springframework-developer mailing list
> > Spr...@li...
> > https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
|
|
From: Alef A. \(JTeam\) <al...@jt...> - 2003-09-22 21:36:51
|
If nobody's busy doing it already, I'll see what I can do on the javamail package. I've got a devnull mailer lying around somewhere that we use for testing, maybe I can integrate it somehow... By the way, up to 76,7 now... Alef -----Oorspronkelijk bericht----- Van: spr...@li... [mailto:spr...@li...] Namens Rod Johnson Verzonden: Saturday, September 20, 2003 11:17 PM Aan: spr...@li... Onderwerp: [Springframework-developer] Test coverage I think one of the things that has contributed to the success and quality of Spring is our commitment to a good test suite. I've put a fair bit more work into the test suite over the weekend, with the upgrade to EasyMock 1.0 and new test suites for Velocity etc. I'm really pleased that everyone is emphasising tests in new coding, but there is a still a bit of catchup to do. With this and Alef's new tag tests, test coverage is now 75.8%. I'd like to see this go above 80% before 1.0RC1. So I think we should all kick in and add tests to our areas of interest. Please run the Clover analysis as a starting point. Current major gaps include: - XSLT support. I wrote this code so I guess I really should do the tests but I'm not sure I have time. (These days I work entirely test first, but I wrote that last year.) If any of the dev team are using this, maybe they could take a look? It might require some refactoring. - jdbc.core.support: No tests for incrementer support. Can the developers looking after this please try to add some tests? Any volunteers for these or other areas in which tests can be improved? Regards, Rod ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Rod J. <rod...@in...> - 2003-09-22 07:11:07
|
Trevor
I think you're right, although I wasn't responsible for the current error
handling and am probably not best placed to comment.
I guess the first thing is break the current code with more rigorous tests,
which you seem to have done, before trying any changes.
Regards,
Rod
----- Original Message -----
From: "Trevor Cook" <pr...@se...>
To: "Spring Developers" <spr...@li...>
Sent: Monday, September 22, 2003 2:39 AM
Subject: [Springframework-developer] potential JdbcTemplate bug
> I'm currently rewriting some of the tests for the jdbc package, and I have
> encountered a potential problem. Specifically, in the JdbcTemplate
> "doWithResultSetFromPreparedQuery" method, exception handling does not
> appear to always work. Recently changes were made which placed various
> "close" calls in a catch (SQLException) block. However, if a Spring
> exception is thrown (I noticed this by running a SqlFunction which
returned
> more than 1 row, thus throwing an "InvalidDataAccessApiUsageException")
the
> "SQLException" catch is NOT called, and the method exits without closing
> resultset/preparedstatements, etc. Note that while I noticed this in the
> single method, this behaviour permeates the JdbcTemplate.
>
> The current ("paraphrased") code is:
>
> <code>
> try {
> ... various code ...
> SQLWarning warning = ps.getWarnings();
> rs.close();
> ps.close();
> throwExceptionOnWarningIfNotIgnoringWarnings(warning);
> } catch (SQLException ex) {
> if (rs != null) {
> try {
> rs.close();
> } catch (SQLException ignore) {}
> }
> if (ps != null) {
> try {
> ps.close();
> } catch (SQLException ignore) {}
> }
> throw getExceptionTranslator().translate("JdbcTemplate.query(psc) with
> PreparedStatementCreator [" + psc + "]", null, ex);
> } finally {
> DataSourceUtils.closeConnectionIfNecessary(con, this.dataSource);
> }
> </code>
>
> I propose changing it to:
>
> <code>
> try {
> ... various code ...
> SQLWarning warning = ps.getWarnings();
> throwExceptionOnWarningIfNotIgnoringWarnings(warning);
> } catch (SQLException ex) {
> throw getExceptionTranslator().translate("JdbcTemplate.query(psc) with
> PreparedStatementCreator [" + psc + "]", null, ex);
> } finally {
> if (rs != null) {
> try {
> rs.close();
> } catch (SQLException ignore) {}
> }
> if (ps != null) {
> try {
> ps.close();
> } catch (SQLException ignore) {}
> }
> DataSourceUtils.closeConnectionIfNecessary(con, this.dataSource);
> }
> </code>
>
> I believe this will ensure resources are closed regardless of
> success/failure, and still allow Spring exceptions and "translated"
> SQLExceptions to propogate as designed. If anyone sees any holes in this
> (specifically Rod/Thomas who I believe have done the most work on the jdbc
> packages) please let me know. Otherwise (and barring exceptions) I will
> make the changes and commit them with the updated tests tomorrow.
>
> Trevor D. Cook
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Trevor C. <pr...@se...> - 2003-09-22 01:38:53
|
I'm currently rewriting some of the tests for the jdbc package, and I have
encountered a potential problem. Specifically, in the JdbcTemplate
"doWithResultSetFromPreparedQuery" method, exception handling does not
appear to always work. Recently changes were made which placed various
"close" calls in a catch (SQLException) block. However, if a Spring
exception is thrown (I noticed this by running a SqlFunction which returned
more than 1 row, thus throwing an "InvalidDataAccessApiUsageException") the
"SQLException" catch is NOT called, and the method exits without closing
resultset/preparedstatements, etc. Note that while I noticed this in the
single method, this behaviour permeates the JdbcTemplate.
The current ("paraphrased") code is:
<code>
try {
... various code ...
SQLWarning warning = ps.getWarnings();
rs.close();
ps.close();
throwExceptionOnWarningIfNotIgnoringWarnings(warning);
} catch (SQLException ex) {
if (rs != null) {
try {
rs.close();
} catch (SQLException ignore) {}
}
if (ps != null) {
try {
ps.close();
} catch (SQLException ignore) {}
}
throw getExceptionTranslator().translate("JdbcTemplate.query(psc) with
PreparedStatementCreator [" + psc + "]", null, ex);
} finally {
DataSourceUtils.closeConnectionIfNecessary(con, this.dataSource);
}
</code>
I propose changing it to:
<code>
try {
... various code ...
SQLWarning warning = ps.getWarnings();
throwExceptionOnWarningIfNotIgnoringWarnings(warning);
} catch (SQLException ex) {
throw getExceptionTranslator().translate("JdbcTemplate.query(psc) with
PreparedStatementCreator [" + psc + "]", null, ex);
} finally {
if (rs != null) {
try {
rs.close();
} catch (SQLException ignore) {}
}
if (ps != null) {
try {
ps.close();
} catch (SQLException ignore) {}
}
DataSourceUtils.closeConnectionIfNecessary(con, this.dataSource);
}
</code>
I believe this will ensure resources are closed regardless of
success/failure, and still allow Spring exceptions and "translated"
SQLExceptions to propogate as designed. If anyone sees any holes in this
(specifically Rod/Thomas who I believe have done the most work on the jdbc
packages) please let me know. Otherwise (and barring exceptions) I will
make the changes and commit them with the updated tests tomorrow.
Trevor D. Cook
|
|
From: Colin S. <col...@ex...> - 2003-09-21 16:37:17
|
There is actually another advantage to using the alternate server. It doesn't seem to be 24-hour delayed like the general anonymous server. Now I'm not sure SF wants this known, but on the other hand, they made the address of the alternate server public, and their upgraded CVS infrastructure is supposedly only days away from being deployed, so anybody that needs up to day anon CVS access may as well use the alternate servers. Mark McNally wrote: >Colin, > >Thank you for the tip. Via the alternate server, I can again access the >repository via eclipse. > >I also installed Tortoise out of curiosity - very nice. > >Mark > >-----Original Message----- >From: spr...@li... >[mailto:spr...@li...] On Behalf >Of Colin Sampaleanu >Sent: Wednesday, September 17, 2003 10:43 PM >To: Mark McNally >Cc: spr...@li... >Subject: Re: [Springframework-developer] Re: Anonymous CVS access via >Eclipse 3.0M3 > >Mark, > >Give TortoiseCVS a try as well: > http://www.tortoisecvs.org/ >It is integrated into Windows Explorer, and frankly, while I do use the >Eclipse CVS integration when I am in Eclipse, I find Tortoise can do >everything else the rest of the time, and works great. > >As for problems with CVS access to SourceForge from Eclipse, I think >this is due to the different timeout values that various clients have. >Eclipse seems to have a pretty low timeout, while command-line cvs will >work in the same circumstances. SF is at fault in any case, but until >they resolve the situation, what you may try doing is hitting the >'alternate' servers available via port 80, as described here. I find >them much more responsive: > > >http://sourceforge.net/docman/display_doc.php?docid=14033&group_id=1#fir >ewall > > >Mark McNally wrote: > > > >>Rod and Rajeev, Thank you for your responses. I am back in business >> >> >now! > > >>I have kept my Eclipse 3.0M3 installation but am now using a separate >>cvs client. I actually tried two different programs WinCVS and >>SmartCVS and, so far, have found SmartCVS - http://www.smartcvs.com/ - >> >> > > > >>to be much easier to setup and use. >> >>Mark >> >> |
|
From: Alef A. \(JTeam\) <al...@jt...> - 2003-09-21 15:18:11
|
Hi all, When testing applications, it might be handy for users (like me) to have some mockup context classes available. This would include classes like StaticApplicationContext and StatisWebApplicationContext. Maybe adding a separate ant-target that creates a jar with mockup classes is an idea? What do you think? Alef == JTeam B.V. Donker Curtiusstraat 7-412 1051 JL Amsterdam T: +31 20 486 20 36 M: +31 6 24 11 1996 F: +31 84 837 00 00 E: al...@jt... W: www.jteam.nl |
|
From: Darren D. <da...@da...> - 2003-09-21 00:54:38
|
On Saturday 20 September 2003 22:16, Rod Johnson wrote: > Current major gaps include: > - XSLT support. I wrote this code so I guess I really should do the tests > but I'm not sure I have time. (These days I work entirely test first, but I > wrote that last year.) If any of the dev team are using this, maybe they > could take a look? It might require some refactoring. I may be able to help out a little on this next week. Although I've switched mostly to Velocity, I was using XSLT support a lot recently. -- Darren Davison Public Key: http://www.davison.uk.net/key.jsp |
|
From: Rod J. <rod...@in...> - 2003-09-20 21:17:15
|
I think one of the things that has contributed to the success and quality of Spring is our commitment to a good test suite. I've put a fair bit more work into the test suite over the weekend, with the upgrade to EasyMock 1.0 and new test suites for Velocity etc. I'm really pleased that everyone is emphasising tests in new coding, but there is a still a bit of catchup to do. With this and Alef's new tag tests, test coverage is now 75.8%. I'd like to see this go above 80% before 1.0RC1. So I think we should all kick in and add tests to our areas of interest. Please run the Clover analysis as a starting point. Current major gaps include: - XSLT support. I wrote this code so I guess I really should do the tests but I'm not sure I have time. (These days I work entirely test first, but I wrote that last year.) If any of the dev team are using this, maybe they could take a look? It might require some refactoring. - jdbc.core.support: No tests for incrementer support. Can the developers looking after this please try to add some tests? Any volunteers for these or other areas in which tests can be improved? Regards, Rod |
|
From: Trevor C. <pr...@se...> - 2003-09-20 20:33:57
|
I've started modifying the jdbc tests. I'll post when they're ready/committed. T -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Rod Johnson Sent: September 19, 2003 7:21 AM To: spr...@li... Subject: [Springframework-developer] Mock objects All, I've just upgraded from EasyMock 0.8 to 1.0. See the bottom of http://www.easymock.org/Documentation.html for the new features, and why doing this was worthwhile. I've upgraded the Jar (same name, so no project changes needed). I've also needed to change a number of test classes because of tighter behaviour in 1.0. For example, some tests incorrectly used setReturnValue(null) instead of setVoidCallable(). Also the JdbcTemplate tests needed changing to allow more than one call to DataSource.getConnection(). Thomas, I assume this is to get the metadata to be able to look up error codes? There are still a lot of deprecations. However, I think we can live with these and gradually update the code to get rid of them. The principal updates to remove the deprecations are: - EasyMock.controlFor() should change to MockControl.createControl() - mockControl.activate() => replay() - remove import of EasyMock I've only made these changes in tests I otherwise needed to change. I may try a global replace later today. We still need to upgrade from Mock Object 0.07 to 0.09. However, this breaks a number of the JDBC tests, which I don't have time to look at now. Any volunteers? (Trevor? I think this breaks some of your code.) Regards, Rod ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003 |
|
From: Trevor C. <pr...@se...> - 2003-09-20 20:25:56
|
We do the same thing with plain ant and "default.properties".
T
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Colin Sampaleanu
Sent: September 20, 2003 3:25 PM
To: Rod Johnson
Cc: spr...@li...
Subject: Re: [Springframework-developer] Mock Objects
btw, I don't know if it's worth making a change, but more often than
not, the general practice with ant projects and maven projects that I've
seen is to have build.properties be a file which is not checked into CVS
(sometimes there is a build.properties.sample checked in), with this
file used for developer specific overrides. Maven adds an optional
project.properties file, which generally _is_ checked in if it exists.
Properties from project.properties are overriden by properties from
build.properties.
I'm a big fan of consistency where it doesn't hurt anything, so maybe it
makes sense to rename build.properties to project.properties, and have
something like this at the top of the build.xml file
<!-- Load local and user build preferences -->
<property file="${user.home}/build.properties"/>
<property file="build.properties"/>
<property file="project.properties"/>
This is consistent with Maven's order, although personally I've always
thought that making the build.properties in the user home the most
dominant was somewhat backwards; I think it should be the source of
defaults, but be overriden by project properties.
Regards,
Colin
Rod Johnson wrote:
>Thanks Colin, I've fixed this.
>
>----- Original Message -----
>From: "Colin Sampaleanu" <col...@ex...>
>To: "Rod Johnson" <rod...@in...>
>Cc: <spr...@li...>
>Sent: Friday, September 19, 2003 11:42 PM
>Subject: Re: [Springframework-developer] Mock Objects
>
>
>
>
>>Test running seems to be broken, with the build.properties and build.xml
>>that's in CVS. That is,
>>
>> <batchtest fork="yes" todir="${reports.dir}">
>> <fileset dir="test" includes="${test.includes}"
>>excludes="${test.excludes}"/>
>> </batchtest>
>>
>>should be
>>
>> <batchtest fork="yes" todir="${reports.dir}">
>> <fileset dir="${testbuild.dir}"
>>includes="${test.includes}" excludes="${test.excludes}"/>
>> </batchtest>
>>
>>or no tests run...
>>
>>
>>Rod Johnson wrote:
>>
>>
>>
>>>I've now updated all the deprecated EasyMock APIs in the test suite.
>>>
>>>
>Please
>
>
>>>remember to update before working on any tests: I've modified a large
>>>proportion of the test suite.
>>>
>>>Regards,
>>>Rod
>>>
>>>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
|
|
From: Alef A. \(JTeam\) <al...@jt...> - 2003-09-20 19:53:04
|
Everybody, I've just added documentation for the tags Spring comes with. It's located in docs/taglib. I'd like to ask someone how knows something about the spring:theme tag and the spring:htmlEscape tag to document those, since I've never used those. I can imagine what htmlEscape does, but have no clue about themes (heard something on the list once, but that's all ;-). Maybe it's an idea to put the taglib documentation on the website as well... One thing: I've made references to the API-docs in there, and used href including ../api/org/springframe/etcetera/Bla.html... On the website, I saw the API documentation included 1.0m1 in the URL... This will be a problem when putting the taglib docs online... Also, I've added a transform tag (servlet/tags/TransformTag). It's supposed to render properties from for instance reference data using the some PropertyEditor that's currently used (the tag can only be used inside <spring:bind>). Have a look at the documentation what it can do for you. While at it, I've revised the tests for the tags a little bit (each tag has a separate test now, to make things a bit more readable and stuff). Alef |
|
From: Colin S. <col...@ex...> - 2003-09-20 19:25:14
|
btw, I don't know if it's worth making a change, but more often than
not, the general practice with ant projects and maven projects that I've
seen is to have build.properties be a file which is not checked into CVS
(sometimes there is a build.properties.sample checked in), with this
file used for developer specific overrides. Maven adds an optional
project.properties file, which generally _is_ checked in if it exists.
Properties from project.properties are overriden by properties from
build.properties.
I'm a big fan of consistency where it doesn't hurt anything, so maybe it
makes sense to rename build.properties to project.properties, and have
something like this at the top of the build.xml file
<!-- Load local and user build preferences -->
<property file="${user.home}/build.properties"/>
<property file="build.properties"/>
<property file="project.properties"/>
This is consistent with Maven's order, although personally I've always
thought that making the build.properties in the user home the most
dominant was somewhat backwards; I think it should be the source of
defaults, but be overriden by project properties.
Regards,
Colin
Rod Johnson wrote:
>Thanks Colin, I've fixed this.
>
>----- Original Message -----
>From: "Colin Sampaleanu" <col...@ex...>
>To: "Rod Johnson" <rod...@in...>
>Cc: <spr...@li...>
>Sent: Friday, September 19, 2003 11:42 PM
>Subject: Re: [Springframework-developer] Mock Objects
>
>
>
>
>>Test running seems to be broken, with the build.properties and build.xml
>>that's in CVS. That is,
>>
>> <batchtest fork="yes" todir="${reports.dir}">
>> <fileset dir="test" includes="${test.includes}"
>>excludes="${test.excludes}"/>
>> </batchtest>
>>
>>should be
>>
>> <batchtest fork="yes" todir="${reports.dir}">
>> <fileset dir="${testbuild.dir}"
>>includes="${test.includes}" excludes="${test.excludes}"/>
>> </batchtest>
>>
>>or no tests run...
>>
>>
>>Rod Johnson wrote:
>>
>>
>>
>>>I've now updated all the deprecated EasyMock APIs in the test suite.
>>>
>>>
>Please
>
>
>>>remember to update before working on any tests: I've modified a large
>>>proportion of the test suite.
>>>
>>>Regards,
>>>Rod
>>>
>>>
|
|
From: Rod J. <rod...@in...> - 2003-09-20 16:36:54
|
Attention Velocity users: I've just changed the Velocity support to use the VelocityEngine model rather than a Velocity singleton. This is partly to make testing easier (I plan to add some Velocity tests) but also in case there's ever a need to have a different Velocity setup for different controller servlets. As you know, I hate singletons. And the VelocityConfigurer implementation was a bit misleading in that using two in different servlet XML in the same JVM with different config could have produced unexpected results. This should be backward compatible. The VelocityView now looks for a VelocityConfiguration implementation such as VelocityConfigurer in the current application context hierarchy (it can be shared in the root web app context). The name of this bean doesn't matter. Anyway, please check your Velocity applications against the latest in CVS before we release M2 and let me know if there are any problems. Regards, Rod |
|
From: Rod J. <rod...@in...> - 2003-09-20 15:13:23
|
Thanks Colin, I've fixed this.
----- Original Message -----
From: "Colin Sampaleanu" <col...@ex...>
To: "Rod Johnson" <rod...@in...>
Cc: <spr...@li...>
Sent: Friday, September 19, 2003 11:42 PM
Subject: Re: [Springframework-developer] Mock Objects
> Test running seems to be broken, with the build.properties and build.xml
> that's in CVS. That is,
>
> <batchtest fork="yes" todir="${reports.dir}">
> <fileset dir="test" includes="${test.includes}"
> excludes="${test.excludes}"/>
> </batchtest>
>
> should be
>
> <batchtest fork="yes" todir="${reports.dir}">
> <fileset dir="${testbuild.dir}"
> includes="${test.includes}" excludes="${test.excludes}"/>
> </batchtest>
>
> or no tests run...
>
>
> Rod Johnson wrote:
>
> >I've now updated all the deprecated EasyMock APIs in the test suite.
Please
> >remember to update before working on any tests: I've modified a large
> >proportion of the test suite.
> >
> >Regards,
> >Rod
> >
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by:ThinkGeek
> >Welcome to geek heaven.
> >http://thinkgeek.com/sf
> >_______________________________________________
> >Springframework-developer mailing list
> >Spr...@li...
> >https://lists.sourceforge.net/lists/listinfo/springframework-developer
> >
> >
>
>
|
|
From: Kopylenko, D. <dko...@ac...> - 2003-09-20 00:52:02
|
Hello everyone, F.Y.Y Hibernate joins Jboss group http://www.theserverside.com/home/thread.jsp?thread_id=21482&article_count=1 24 Regards, Dmitriy. |
|
From: Colin S. <col...@ex...> - 2003-09-19 22:42:49
|
Test running seems to be broken, with the build.properties and build.xml
that's in CVS. That is,
<batchtest fork="yes" todir="${reports.dir}">
<fileset dir="test" includes="${test.includes}"
excludes="${test.excludes}"/>
</batchtest>
should be
<batchtest fork="yes" todir="${reports.dir}">
<fileset dir="${testbuild.dir}"
includes="${test.includes}" excludes="${test.excludes}"/>
</batchtest>
or no tests run...
Rod Johnson wrote:
>I've now updated all the deprecated EasyMock APIs in the test suite. Please
>remember to update before working on any tests: I've modified a large
>proportion of the test suite.
>
>Regards,
>Rod
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Springframework-developer mailing list
>Spr...@li...
>https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
|
|
From: Rod J. <rod...@in...> - 2003-09-19 20:21:58
|
All, I've just upgraded from EasyMock 0.8 to 1.0. See the bottom of http://www.easymock.org/Documentation.html for the new features, and why doing this was worthwhile. I've upgraded the Jar (same name, so no project changes needed). I've also needed to change a number of test classes because of tighter behaviour in 1.0. For example, some tests incorrectly used setReturnValue(null) instead of setVoidCallable(). Also the JdbcTemplate tests needed changing to allow more than one call to DataSource.getConnection(). Thomas, I assume this is to get the metadata to be able to look up error codes? There are still a lot of deprecations. However, I think we can live with these and gradually update the code to get rid of them. The principal updates to remove the deprecations are: - EasyMock.controlFor() should change to MockControl.createControl() - mockControl.activate() => replay() - remove import of EasyMock I've only made these changes in tests I otherwise needed to change. I may try a global replace later today. We still need to upgrade from Mock Object 0.07 to 0.09. However, this breaks a number of the JDBC tests, which I don't have time to look at now. Any volunteers? (Trevor? I think this breaks some of your code.) Regards, Rod |
|
From: Rod J. <rod...@in...> - 2003-09-19 20:20:39
|
I've now updated all the deprecated EasyMock APIs in the test suite. Please remember to update before working on any tests: I've modified a large proportion of the test suite. Regards, Rod |
|
From: Mark M. <mar...@co...> - 2003-09-18 04:54:17
|
Colin, Thank you for the tip. Via the alternate server, I can again access the repository via eclipse. I also installed Tortoise out of curiosity - very nice. Mark -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Colin Sampaleanu Sent: Wednesday, September 17, 2003 10:43 PM To: Mark McNally Cc: spr...@li... Subject: Re: [Springframework-developer] Re: Anonymous CVS access via Eclipse 3.0M3 Mark, Give TortoiseCVS a try as well: http://www.tortoisecvs.org/ It is integrated into Windows Explorer, and frankly, while I do use the Eclipse CVS integration when I am in Eclipse, I find Tortoise can do everything else the rest of the time, and works great. As for problems with CVS access to SourceForge from Eclipse, I think this is due to the different timeout values that various clients have. Eclipse seems to have a pretty low timeout, while command-line cvs will work in the same circumstances. SF is at fault in any case, but until they resolve the situation, what you may try doing is hitting the 'alternate' servers available via port 80, as described here. I find them much more responsive: http://sourceforge.net/docman/display_doc.php?docid=14033&group_id=1#fir ewall Mark McNally wrote: > Rod and Rajeev, Thank you for your responses. I am back in business now! > > I have kept my Eclipse 3.0M3 installation but am now using a separate > cvs client. I actually tried two different programs WinCVS and > SmartCVS and, so far, have found SmartCVS - http://www.smartcvs.com/ - > to be much easier to setup and use. > > Mark > |
|
From: Colin S. <col...@ex...> - 2003-09-18 03:43:10
|
Mark, Give TortoiseCVS a try as well: http://www.tortoisecvs.org/ It is integrated into Windows Explorer, and frankly, while I do use the Eclipse CVS integration when I am in Eclipse, I find Tortoise can do everything else the rest of the time, and works great. As for problems with CVS access to SourceForge from Eclipse, I think this is due to the different timeout values that various clients have. Eclipse seems to have a pretty low timeout, while command-line cvs will work in the same circumstances. SF is at fault in any case, but until they resolve the situation, what you may try doing is hitting the 'alternate' servers available via port 80, as described here. I find them much more responsive: http://sourceforge.net/docman/display_doc.php?docid=14033&group_id=1#firewall Mark McNally wrote: > Rod and Rajeev, Thank you for your responses. I am back in business now! > > I have kept my Eclipse 3.0M3 installation but am now using a separate > cvs client. I actually tried two different programs WinCVS and > SmartCVS and, so far, have found SmartCVS - http://www.smartcvs.com/ - > to be much easier to setup and use. > > Mark > > _________________________________________________________________ > Compare Cable, DSL or Satellite plans: As low as $29.95. > https://broadband.msn.com > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Mark M. <mg...@ho...> - 2003-09-18 00:18:25
|
Rod and Rajeev, Thank you for your responses. I am back in business now! I have kept my Eclipse 3.0M3 installation but am now using a separate cvs client. I actually tried two different programs WinCVS and SmartCVS and, so far, have found SmartCVS - http://www.smartcvs.com/ - to be much easier to setup and use. Mark _________________________________________________________________ Compare Cable, DSL or Satellite plans: As low as $29.95. https://broadband.msn.com |
|
From: Christophe V. <c.v...@pa...> - 2003-09-17 18:55:32
|
Hello,
Is there an official way to have more than one form on the same page? Or to have a form (eg. a loginbox) on a "normal" index page?
The problem when you try to do something like that is that when you use the <spring:bind> tag, you'll get an exception if you haven't gone through your formcontroller (because there are no errors bound, and you can't create the BindStatus).
I solved the problem by putting a null check for the errors in BindTag, wich allows the page to be rendered even if you haven't gone through the controller (yet).
This method has two disadvantages:
- you no langer get an exception if you try to bind something which doesn't exist (in case of a typo, ...), but that was exactly what I wanted to be able to do :)
- if you have a form on the page, and you haven't gone through the controller yet, you're not able to prefill any values (because that is what you normally accomplish with getFormBackingObject() ).
The latter was solved by extending the tag and defining an extra attribute, altValue, which will be used for the BindStatus value if no errors where found (errors == null) in the requestContext (which is only possible if you haven't gone through the controller yet).
By extending, you have different tags, and you can keep the exceptions in forms where you don't need the extra functionality.
This way, one can have multiple forms on the same page, which will be handled by different controllers, and can be prefilled should one choose to.
From ExtBindTag.doStartTagInternal():
// retrieve errors object
this.errors = getRequestContext().getErrors(name, false);
if(this.errors == null) {
BindStatus status = new BindStatus(this.property,this.altValue, null,null);
this.pageContext.setAttribute(STATUS_VARIABLE_NAME,status);
return EVAL_BODY_INCLUDE;
}
Now I am able to do something like this on the main index page (written in JSP 2):
<form action="${url}" method="post">
<table>
//fill in the nick, with the value found in the cookie
//once we submitted, the "normal" status.value will be used, and not the
//value of the cookie
<spring:extBind path="userCredentials.nick" altValue="${cookie.nick.value}">
<tr><td>Nickname:</td></tr>
<tr><td><input type="text" name="nick" value="${status.value}"/></td></tr>
<tr><td>${status.errorMessage}</td></tr>
</spring:extBind>
//we don't need to prefill the password, use normal tag
<spring:bind path="userCredentials.password">
<tr><td>Password:</td></tr>
<tr><td><input type="password" name="password"/></td></tr>
<tr><td>${status.errorMessage}</td></tr>
</spring:bind>
<tr><td><input type="submit" value="login"/></td></tr>
</table>
</form>
If there was another (better :) way to solve this problem, please let me know.
Otherwise, this is probably a usefull extension.
--
Kind regards,
Christophe Vanfleteren
|
|
From: Rod J. <rod...@in...> - 2003-09-17 07:40:41
|
> I have checked in the changes for supporting stored procedures returning result > sets. For Oracle you would declare an SqlOutParameter with a type of > oracle.jdbc.OracleTypes.CURSOR along with a RowCallbackHandler that will map or > process the returned rows. Thanks Thomas, I know a lot of users want this functionality. > I have also made a change so if you call execute without calling compile, the > framework will automatically compile you prepared statement or stored procedure > instead of just throwing an exception. This is more inline with how JDO handles > this. Does this apply to all RDBMS operations? Regards, Rod |
|
From: <tri...@tr...> - 2003-09-17 01:56:29
|
I have checked in the changes for supporting stored procedures returning result
sets. For Oracle you would declare an SqlOutParameter with a type of
oracle.jdbc.OracleTypes.CURSOR along with a RowCallbackHandler that will map or
process the returned rows.
For databases where you don't explicitly declare the result sets that are
returned (SQL Server, Sybas, DB2) you would declare an SqlReturnResultSet
parameter with a RowCallBackHandler. You can specify multiple parameters and
RowCallBackHandlers if your procedure returns multiple result sets.
Postgres is supposed to support this in 7.4 and you would declare it the same
way as Oracle except the type would be java.sql.Types.OTHER.
This is an example of an Oracle procedure:
class MySPwithRS extends StoredProcedure {
private List results = new LinkedList();
MySPwithRS(DataSource ds) {
super(ds, "pkg_test.get_emp");
setFunction(true);
declareParameter(new SqlOutParameter("rs", oracle.jdbc.OracleTypes.CURSOR,
new RowCallbackHandlerImpl()));
compile();
}
Object execute() {
Map in = new HashMap();
Map out = execute(in);
out.put("rs", results);
return out;
}
private class RowCallbackHandlerImpl implements RowCallbackHandler {
public void processRow(ResultSet rs) throws SQLException {
results.add(rs.getString(2));
}
}
}
I have also made a change so if you call execute without calling compile, the
framework will automatically compile you prepared statement or stored procedure
instead of just throwing an exception. This is more inline with how JDO handles
this.
Thomas
|
|
From: Rajeev K. <Ra...@cu...> - 2003-09-16 22:15:00
|
I am also having the same problem with eclipse 2.1.1 and 3.0M3. However, WinCVS works fine for me. ----- Original Message ----- From: "Mark McNally" <mg...@ho...> To: <spr...@li...> Sent: Tuesday, September 16, 2003 10:34 AM Subject: [Springframework-developer] Anonymous CVS access via Eclipse 3.0M3 > Hello, > > I am wondering if others are having problems with Anonymous CVS access of > the springframework repository. > > I am not sure if the issue is with the repository, my cvs client (Eclipse) > or something else. I am attempting access via Eclipse but nothing below the > head node appears in the Eclipse cvs browser. I see no error messages when I > refresh but still no content is visible. I also tried to connect with the > Hibernate repository and experienced the same symptoms. > > I have had intermittent connectivity problems for awhile but, before > upgrading to version 3.0M3 of Eclipse several days ago, I was usually able > to pull down the files. I may revert to back to version 2.1 and give it a > try but thought I'd throw this out here first. > > My repository identification string looks like this: > :pserver:ano...@cv...:/cvsroot/springframework > > > Rod, Thank you for writing such a great book. I refer to and recommend it > often. > Also, thanks to all who have continued to advance this elegant framework and > supporting documentation. > > Mark > > _________________________________________________________________ > Use custom emotions -- try MSN Messenger 6.0! > http://www.msnmessenger-download.com/tracking/reach_emoticon > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |