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: Darren D. <da...@da...> - 2005-03-12 11:16:45
|
What's the official line on deprecating methods or retaining complete backward compatibility in 1.2? Example:=20 I've made changes to AbstractXsltView to allow it work with Source implementations rather than Nodes which is more flexible (see SPR-730), but I've kept the createDomNode() method for BC. Problem is, subclasses MUST override/implement one of the methods only, but I can't make either of them abstract in the superclass to enforce this unless I remove createDomNode and make the new createXsltSource abstract. This would break existing projects that dropped spring-1.2.jar into them. For now, I've deprecated createDomNode but I wondered if we have an agreed policy on what 1.2 means in terms of BC / deprecation. Cheers, --=20 Darren Davison Public Key: #DD356B0D |
|
From: Juergen H. <ju...@in...> - 2005-03-12 10:14:18
|
Colin, Since last night, I get an assertion failure in ContextSingletonBeanFactoryLocatorTests' testGetInstance. Did you recently change something there? Could you please have a look at it? Juergen |
|
From: Darren D. <da...@sh...> - 2005-03-12 02:47:49
|
1110595662
FAILED
[junit] Testcase: testNaming took 0,014 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,011 sec
[junit] Testsuite: org.springframework.jmx.export.naming.PropertiesNamingStrategyTests
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,011 sec
[junit] Testcase: testNaming took 0,001 sec
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,777 sec
[junit] Testsuite: org.springframework.jmx.support.ConnectorServerFactoryBeanTests
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,777 sec
[junit] Testcase: testStartupWithLocatedServer took 0,637 sec
[junit] Testcase: testStartupWithSuppliedServer took 0,049 sec
[junit] Testcase: testRegisterWithMBeanServer took 0,046 sec
[junit] Testcase: testNoRegisterWithMBeanServer took 0,033 sec
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0,299 sec
[junit] Testsuite: org.springframework.jmx.support.HtmlAdapterHostTests
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0,299 sec
[junit] Testcase: testStartAndStop took 0,231 sec
[junit] Testcase: testStartAndStopWithConfiguredPort took 0,052 sec
[junit] FAILED
[junit] expected:<text/html> but was:<null>
[junit] junit.framework.ComparisonFailure: expected:<text/html> but was:<null>
[junit] at org.springframework.jmx.support.HtmlAdapterHostTests.assertAdapter(HtmlAdapterHostTests.java:73)
[junit] at org.springframework.jmx.support.HtmlAdapterHostTests.testStartAndStopWithConfiguredPort(HtmlAdapterHostTests.java:51)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
This is an automated mail from one of the SF Compile Farm machines.
The machine name noted in the subject encountered a failure building
or running the Spring test suite. The last few lines of the output
were included for info.
NB: No further mail will be sent from this machine until a
manual reset occurs on the cf-shell machine, although builds will
continue as scheduled.
See http://springframework.sourceforge.net/test/ for further
information.
|
|
From: <al...@jt...> - 2005-03-11 23:39:00
|
<html><head>
<style>
.white { color:#FFFFFF }.index { background-color:#FFFFFF }.index-passed { =
color:#004400 }.index-failed { color:#FF0000; font-weight:bold }.index-head=
er { font-weight:bold }.link { font-family:arial,helvetica,sans-serif; font=
-size:10pt; color:#FFFFFF; text-decoration:none; }.tab-table { margin: 0em =
0em 0.5em 0em; }.tabs { font-family:arial,helvetica,sans-serif; font-size:8=
pt; color:#000000; font-weight:bold; padding: 0em 2em; background-color:#EE=
EEEE; }.tabs-link { color:#000000; text-decoration:none; }.tabs-link:visite=
d { color:#000000; text-decoration:none; }.tabs-selected { font-family:aria=
l,helvetica,sans-serif; font-size:8pt; color:#000000; font-weight:bold; pad=
ding: 0em 2em; }.tabs-selected { border: inset; }.header-title { font-famil=
y:arial,helvetica,sans-serif; font-size:12pt; color:#000000; font-weight:bo=
ld; }.header-label { font-weight:bold; }.header-data { font-family:arial,he=
lvetica,sans-serif; font-size:10pt; color:#000000; }.modifications-data { f=
ont-family:arial,helvetica,sans-serif; font-size:8pt; color:#000000; }.modi=
fications-sectionheader { background-color:#000066; font-family:arial,helve=
tica,sans-serif; font-size:10pt; color:#FFFFFF; }.modifications-oddrow { ba=
ckground-color:#CCCCCC }.modifications-evenrow { background-color:#FFFFCC }=
.changelists-oddrow { background-color:#CCCCCC }.changelists-evenrow { back=
ground-color:#FFFFCC }.changelists-file-spacer { background-color:#FFFFFF }=
.changelists-file-evenrow { background-color:#EEEEEE }.changelists-file-odd=
row { background-color:#FFFFEE }.changelists-file-header { background-color=
:#666666; font-family:arial,helvetica,sans-serif; font-size:8pt; color:#FFF=
FFF; }.compile-data { font-family:arial,helvetica,sans-serif; font-size:8pt=
; color:#000000; }.compile-error-data { font-family:arial,helvetica,sans-se=
rif; font-size:8pt; color:#FF0000; }.compile-warn-data { font-family:arial,=
helvetica,sans-serif; font-size:8pt; color:#CC9900; }.compile-sectionheader=
{ background-color:#000066; font-family:arial,helvetica,sans-serif; font-s=
ize:10pt; color:#FFFFFF; }.distributables-data { font-family:arial,helvetic=
a,sans-serif; font-size:8pt; color:#000000; }.distributables-sectionheader =
{ background-color:#000066; font-family:arial,helvetica,sans-serif; font-si=
ze:10pt; color:#FFFFFF; }.distributables-oddrow { background-color:#CCCCCC =
}.unittests-sectionheader { background-color:#000066; font-family:arial,hel=
vetica,sans-serif; font-size:10pt; color:#FFFFFF; }.unittests-oddrow { back=
ground-color:#CCCCCC }.unittests-data { font-family:arial,helvetica,sans-se=
rif; font-size:8pt; color:#000000; }.unittests-error { font-family:arial,he=
lvetica,sans-serif; font-size:8pt; color:#901090; }.unittests-failure { fon=
t-family:arial,helvetica,sans-serif; font-size:8pt; color:#FF0000; }.checks=
tyle-oddrow { background-color:#CCCCCC }.checkstyle-data { font-family:aria=
l,helvetica,sans-serif; font-size:8pt; color:#000000; }.checkstyle-sectionh=
eader { background-color:#000066; font-family:arial,helvetica,sans-serif; f=
ont-size:10pt; color:#FFFFFF; }
</style>
</head><body>
<p>
<table width=3D"98%" border=3D"0" cellspacing=3D"0" cellpadding=3D"2" align=
=3D"center"><tr><td class=3D"header-title">BUILD COMPLETE - =
build.222</td></tr><tr><td class=3D"header-data"><span class=
=3D"header-label">Date of build: </span>03/12/2005 00:16:01</td></tr><=
tr><td class=3D"header-data"><span class=3D"header-label">Time to build:&nb=
sp;</span>23 minutes 8 seconds</td></tr><tr><td class=3D"header-data"><span=
class=3D"header-label">Last changed: </span>03/11/2005 19:55:45</td><=
/tr><tr><td class=3D"header-data"><span class=3D"header-label">Last log ent=
ry: </span>Document that release() is safe to call multiple times</td>=
</tr></table><p>
<p>
<p>
<table xmlns=3D"http://www.w3.org/TR/html4/strict.dtd" width=3D"98%" border=
=3D"0" cellspacing=3D"0" cellpadding=3D"2" align=3D"center"><tr><td class=
=3D"compile-sectionheader"> Errors/Warnings: (=
1394) </td></tr><tr><td><pre class=3D"compile-error-data=
">Test org.springframework.apptests.jpetstore.AllTests FAILEDTest org.sprin=
gframework.apptests.jpetstore.AllTests FAILED<br class=3D"none"/>Java Resul=
t: 2<br class=3D"none"/>Java Result: 2<br class=3D"none"/>Java Result: 2<br=
class=3D"none"/>Java Result: 1<br class=3D"none"/></pre></td></tr><tr><td>=
<pre class=3D"compile-data">Note: Some input files use or override a deprec=
ated API.<br class=3D"none"/>Note: Recompile with -deprecation for details.=
<br class=3D"none"/>Note: /jteam/build2/checkout/spring/spring/mock/org/spr=
ingframework/mock/web/MockHttpSession.java uses or overrides a deprecated A=
PI.<br class=3D"none"/>Note: Recompile with -deprecation for details.<br cl=
ass=3D"none"/>Note: Some input files use or override a deprecated API.<br c=
lass=3D"none"/>Note: Recompile with -deprecation for details.<br class=3D"n=
one"/># ----------------------------------------------------------------<b=
r class=3D"none"/>#<br class=3D"none"/># Spring Autobuilds - automatic app=
lication deployment and testing<br class=3D"none"/>#<br class=3D"none"/># =
target application: buildtest<br class=3D"none"/># target server: tomcat4<=
br class=3D"none"/>#<br class=3D"none"/># this output is recorded in the f=
ile:<br class=3D"none"/># ../../target/autobuilds/reports/buildtest_tomcat=
4_build_2005-03-12.log<br class=3D"none"/># ------------------------------=
----------------------------------<br class=3D"none"/>waiting 75 seconds fo=
r server to warmup...<br class=3D"none"/># -------------------------------=
---------------------------------<br class=3D"none"/># Starting unit tests=
for buildtest<br class=3D"none"/># --------------------------------------=
--------------------------<br class=3D"none"/>Rhino classes (js.jar) not fo=
und - Javascript disabled<br class=3D"none"/>## --------------------------=
--------------------------------------<br class=3D"none"/>## Stopping serv=
er tomcat4<br class=3D"none"/>## -----------------------------------------=
-----------------------<br class=3D"none"/>## ----------------------------=
------------------------------------<br class=3D"none"/>## Starting server=
tomcat4<br class=3D"none"/>## -------------------------------------------=
---------------------<br class=3D"none"/># -------------------------------=
---------------------------------<br class=3D"none"/>#<br class=3D"none"/>#=
Spring Autobuilds - automatic application deployment and testing<br class=
=3D"none"/>#<br class=3D"none"/># target application: buildtest<br class=
=3D"none"/># target server: tomcat5<br class=3D"none"/>#<br class=3D"none"=
/># this output is recorded in the file:<br class=3D"none"/># ../../targe=
t/autobuilds/reports/buildtest_tomcat5_build_2005-03-12.log<br class=3D"non=
e"/># ----------------------------------------------------------------<br =
class=3D"none"/>waiting 75 seconds for server to warmup...<br class=3D"none=
"/># ----------------------------------------------------------------<br c=
lass=3D"none"/># Starting unit tests for buildtest<br class=3D"none"/># -=
---------------------------------------------------------------<br class=3D=
"none"/>Rhino classes (js.jar) not found - Javascript disabled<br class=3D"=
none"/>## ----------------------------------------------------------------=
<br class=3D"none"/>## Stopping server tomcat5<br class=3D"none"/>## ----=
------------------------------------------------------------<br class=3D"no=
ne"/>## ----------------------------------------------------------------<b=
r class=3D"none"/>## Starting server tomcat5<br class=3D"none"/>## ------=
----------------------------------------------------------<br class=3D"none=
"/># ----------------------------------------------------------------<br c=
lass=3D"none"/>#<br class=3D"none"/># Spring Autobuilds - automatic applic=
ation deployment and testing<br class=3D"none"/>#<br class=3D"none"/># tar=
get application: buildtest<br class=3D"none"/># target server: jetty4<br c=
lass=3D"none"/>#<br class=3D"none"/># this output is recorded in the file:=
<br class=3D"none"/># ../../target/autobuilds/reports/buildtest_jetty4_bui=
ld_2005-03-12.log<br class=3D"none"/># -----------------------------------=
-----------------------------<br class=3D"none"/>waiting 75 seconds for ser=
ver to warmup...<br class=3D"none"/># ------------------------------------=
----------------------------<br class=3D"none"/># Starting unit tests for =
buildtest<br class=3D"none"/># -------------------------------------------=
---------------------<br class=3D"none"/>Rhino classes (js.jar) not found -=
Javascript disabled<br class=3D"none"/>## -------------------------------=
---------------------------------<br class=3D"none"/>## Stopping server je=
tty4<br class=3D"none"/>## -----------------------------------------------=
-----------------<br class=3D"none"/>## ----------------------------------=
------------------------------<br class=3D"none"/>## Starting server jetty=
4<br class=3D"none"/>## --------------------------------------------------=
--------------<br class=3D"none"/># --------------------------------------=
--------------------------<br class=3D"none"/>#<br class=3D"none"/># Sprin=
g Autobuilds - automatic application deployment and testing<br class=3D"non=
e"/>#<br class=3D"none"/># target application: jpetstore<br class=3D"none"=
/># target server: tomcat4<br class=3D"none"/>#<br class=3D"none"/># this=
output is recorded in the file:<br class=3D"none"/># ../../target/autobui=
lds/reports/jpetstore_tomcat4_build_2005-03-12.log<br class=3D"none"/># --=
--------------------------------------------------------------<br class=3D"=
none"/>Note: /jteam/build2/checkout/spring/spring/autobuilds/apps/jpetstore=
/src/org/springframework/autobuilds/jpetstore/web/view/DomifyCheckout.java =
uses or overrides a deprecated API.<br class=3D"none"/>Note: Recompile with=
-deprecation for details.<br class=3D"none"/>waiting 75 seconds for server=
to warmup...<br class=3D"none"/># ---------------------------------------=
-------------------------<br class=3D"none"/># Starting unit tests for jpe=
tstore<br class=3D"none"/># ----------------------------------------------=
------------------<br class=3D"none"/># ----------------------------------=
------------------------------<br class=3D"none"/># Stopping HSQLDB<br cla=
ss=3D"none"/># -----------------------------------------------------------=
-----<br class=3D"none"/># -----------------------------------------------=
-----------------<br class=3D"none"/># Starting HSQLDB<br class=3D"none"/>=
# ----------------------------------------------------------------<br clas=
s=3D"none"/>## -----------------------------------------------------------=
-----<br class=3D"none"/>## Stopping server tomcat4<br class=3D"none"/>## =
----------------------------------------------------------------<br class=
=3D"none"/>## ------------------------------------------------------------=
----<br class=3D"none"/>## Starting server tomcat4<br class=3D"none"/>## =
----------------------------------------------------------------<br class=
=3D"none"/># -------------------------------------------------------------=
---<br class=3D"none"/>#<br class=3D"none"/># Spring Autobuilds - automati=
c application deployment and testing<br class=3D"none"/>#<br class=3D"none"=
/># target application: jpetstore<br class=3D"none"/># target server: tom=
cat5<br class=3D"none"/>#<br class=3D"none"/># this output is recorded in =
the file:<br class=3D"none"/># ../../target/autobuilds/reports/jpetstore_t=
omcat5_build_2005-03-12.log<br class=3D"none"/># -------------------------=
---------------------------------------<br class=3D"none"/>Note: /jteam/bui=
ld2/checkout/spring/spring/autobuilds/apps/jpetstore/src/org/springframewor=
k/autobuilds/jpetstore/web/view/DomifyCheckout.java uses or overrides a dep=
recated API.<br class=3D"none"/>Note: Recompile with -deprecation for detai=
ls.<br class=3D"none"/>waiting 75 seconds for server to warmup...<br class=
=3D"none"/># -------------------------------------------------------------=
---<br class=3D"none"/># Starting unit tests for jpetstore<br class=3D"non=
e"/># ----------------------------------------------------------------<br =
class=3D"none"/># --------------------------------------------------------=
--------<br class=3D"none"/># Stopping HSQLDB<br class=3D"none"/># ------=
----------------------------------------------------------<br class=3D"none=
"/># ----------------------------------------------------------------<br c=
lass=3D"none"/># Starting HSQLDB<br class=3D"none"/># -------------------=
---------------------------------------------<br class=3D"none"/>## ------=
----------------------------------------------------------<br class=3D"none=
"/>## Stopping server tomcat5<br class=3D"none"/>## ---------------------=
-------------------------------------------<br class=3D"none"/>## --------=
--------------------------------------------------------<br class=3D"none"/=
>## Starting server tomcat5<br class=3D"none"/>## -----------------------=
-----------------------------------------<br class=3D"none"/>/jteam/build2/=
checkout/spring/spring/src/org/springframework/web/servlet/mvc/multiaction/=
MultiActionController.java:433: warning - Tag @see: can't find bindAndValid=
ate in org.springframework.web.servlet.mvc.multiaction.MultiActionControlle=
r<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springfra=
mework/web/servlet/mvc/multiaction/MultiActionController.java:433: warning =
- Tag @see: can't find setMessageCodesResolver in org.springframework.web.s=
ervlet.mvc.multiaction.MultiActionController<br class=3D"none"/>/jteam/buil=
d2/checkout/spring/spring/src/org/springframework/jmx/export/assembler/Inte=
rfaceBasedMBeanInfoAssembler.java:152: warning - Tag @see: can't find isPub=
licInInterface(java.lang.reflect.Method, String) in org.springframework.jmx=
.export.assembler.InterfaceBasedMBeanInfoAssembler<br class=3D"none"/>/jtea=
m/build2/checkout/spring/spring/src/org/springframework/jmx/export/assemble=
r/InterfaceBasedMBeanInfoAssembler.java:124: warning - Tag @see: can't find=
isPublicInInterface(java.lang.reflect.Method, String) in org.springframewo=
rk.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler<br class=3D"none"/=
>/jteam/build2/checkout/spring/spring/src/org/springframework/jmx/export/as=
sembler/InterfaceBasedMBeanInfoAssembler.java:138: warning - Tag @see: can'=
t find isPublicInInterface(java.lang.reflect.Method, String) in org.springf=
ramework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler<br class=3D"=
none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/jdbc/su=
pport/lob/OracleLobHandler.java:76: warning - Tag @see: reference not found=
: oracle.sql.BLOB<br class=3D"none"/>/jteam/build2/checkout/spring/spring/s=
rc/org/springframework/jdbc/support/lob/OracleLobHandler.java:76: warning -=
Tag @see: reference not found: oracle.sql.CLOB<br class=3D"none"/>/jteam/b=
uild2/checkout/spring/spring/src/org/springframework/jdbc/support/lob/Oracl=
eLobHandler.java:115: warning - Tag @see: reference not found: oracle.sql.B=
LOB#DURATION_SESSION<br class=3D"none"/>/jteam/build2/checkout/spring/sprin=
g/src/org/springframework/jdbc/support/lob/OracleLobHandler.java:115: warni=
ng - Tag @see: reference not found: oracle.sql.BLOB#MODE_READWRITE<br class=
=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/jdb=
c/support/lob/OracleLobHandler.java:115: warning - Tag @see: reference not =
found: oracle.sql.CLOB#DURATION_SESSION<br class=3D"none"/>/jteam/build2/ch=
eckout/spring/spring/src/org/springframework/jdbc/support/lob/OracleLobHand=
ler.java:115: warning - Tag @see: reference not found: oracle.sql.CLOB#MODE=
_READWRITE<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/=
springframework/jdbc/support/lob/OracleLobHandler.java:154: warning - Tag @=
see: reference not found: oracle.jdbc.OracleConnection<br class=3D"none"/>/=
jteam/build2/checkout/spring/spring/src/org/springframework/jdbc/support/lo=
b/OracleLobHandler.java:164: warning - Tag @see: reference not found: oracl=
e.sql.BLOB#createTemporary<br class=3D"none"/>/jteam/build2/checkout/spring=
/spring/src/org/springframework/jdbc/support/lob/OracleLobHandler.java:164:=
warning - Tag @see: reference not found: oracle.sql.CLOB#createTemporary<b=
r class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframew=
ork/jdbc/support/nativejdbc/JBossNativeJdbcExtractor.java:49: warning - Tag=
@see: reference not found: org.jboss.resource.adapter.jdbc.WrappedConnecti=
on#getUnderlyingConnection<br class=3D"none"/>/jteam/build2/checkout/spring=
/spring/src/org/springframework/jdbc/support/nativejdbc/JBossNativeJdbcExtr=
actor.java:49: warning - Tag @see: reference not found: org.jboss.resource.=
adapter.jdbc.WrappedStatement#getUnderlyingStatement<br class=3D"none"/>/jt=
eam/build2/checkout/spring/spring/src/org/springframework/jdbc/support/nati=
vejdbc/JBossNativeJdbcExtractor.java:49: warning - Tag @see: reference not =
found: org.jboss.resource.adapter.jdbc.WrappedResultSet#getUnderlyingResult=
Set<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springf=
ramework/jdbc/support/nativejdbc/WebLogicNativeJdbcExtractor.java:45: warni=
ng - Tag @see: reference not found: weblogic.jdbc.extensions.WLConnection#g=
etVendorConnection<br class=3D"none"/>/jteam/build2/checkout/spring/spring/=
src/org/springframework/jdbc/support/nativejdbc/WebSphereNativeJdbcExtracto=
r.java:49: warning - Tag @see: reference not found: com.ibm.ws.rsadapter.jd=
bc.WSJdbcConnection<br class=3D"none"/>/jteam/build2/checkout/spring/spring=
/src/org/springframework/jdbc/support/nativejdbc/WebSphereNativeJdbcExtract=
or.java:49: warning - Tag @see: reference not found: com.ibm.ws.rsadapter.j=
dbc.WSJdbcUtil#getNativeConnection<br class=3D"none"/>/jteam/build2/checkou=
t/spring/spring/src/org/springframework/jdbc/support/nativejdbc/WebSphereNa=
tiveJdbcExtractor.java:49: warning - Tag @see: reference not found: com.ibm=
.ejs.cm.proxy.ConnectionProxy#getPhysicalConnection<br class=3D"none"/>/jte=
am/build2/checkout/spring/spring/src/org/springframework/orm/hibernate3/Loc=
alSessionFactoryBean.java:339: warning - Tag @see: reference not found: org=
.hibernate.UserType<br class=3D"none"/>/jteam/build2/checkout/spring/spring=
/src/org/springframework/orm/hibernate3/SessionFactoryUtils.java:155: warni=
ng - Tag @see: reference not found: org.hibernate.impl.SessionFactoryImpl<b=
r class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframew=
ork/orm/hibernate3/SessionFactoryUtils.java:155: warning - Tag @see: refere=
nce not found: org.hibernate.jca.JCASessionFactoryImpl<br class=3D"none"/>/=
jteam/build2/checkout/spring/spring/src/org/springframework/orm/ibatis/SqlM=
apClientFactoryBean.java:198: warning - Tag @see: reference not found: com.=
ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig<br class=3D"non=
e"/>/jteam/build2/checkout/spring/spring/src/org/springframework/orm/ibatis=
/SqlMapClientFactoryBean.java:198: warning - Tag @see: reference not found:=
com.ibatis.sqlmap.engine.transaction.jta.JtaTransactionConfig<br class=3D"=
none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/orm/iba=
tis/SqlMapClientFactoryBean.java:226: warning - Tag @see: reference not fou=
nd: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig<br clas=
s=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/or=
m/ibatis/SqlMapClientFactoryBean.java:226: warning - Tag @see: reference no=
t found: com.ibatis.sqlmap.engine.transaction.jta.JtaTransactionConfig<br c=
lass=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework=
/transaction/jta/WebLogicJtaTransactionManager.java:66: warning - Tag @see:=
reference not found: weblogic.transaction.TransactionManager#forceResume<b=
r class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframew=
ork/transaction/jta/WebLogicServerTransactionManagerFactoryBean.java:45: wa=
rning - Tag @see: reference not found: weblogic.transaction.TxHelper#getTra=
nsactionManager<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src=
/org/springframework/transaction/jta/WebSphereTransactionManagerFactoryBean=
.java:49: warning - Tag @see: reference not found: com.ibm.ws.Transaction.T=
ransactionManagerFactory#getTransactionManager<br class=3D"none"/>/jteam/bu=
ild2/checkout/spring/spring/src/org/springframework/transaction/jta/WebSphe=
reTransactionManagerFactoryBean.java:49: warning - Tag @see: reference not =
found: com.ibm.ejs.jts.jta.JTSXA#getTransactionManager<br class=3D"none"/>/=
jteam/build2/checkout/spring/spring/src/org/springframework/transaction/jta=
/WebSphereTransactionManagerFactoryBean.java:49: warning - Tag @see: refere=
nce not found: com.ibm.ejs.jts.jta.TransactionManagerFactory#getTransaction=
Manager<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/spr=
ingframework/util/ObjectUtils.java:31: warning - Tag @see: reference not fo=
und: org.apache.commons.lang.ObjectUtils<br class=3D"none"/>/jteam/build2/c=
heckout/spring/spring/src/org/springframework/util/StringUtils.java:47: war=
ning - Tag @see: reference not found: org.apache.commons.lang.StringUtils<b=
r class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframew=
ork/web/servlet/handler/metadata/PathMap.java:31: warning - @@org.apache.co=
mmons.attributes.Indexed() is an unknown tag.<br class=3D"none"/>/jteam/bui=
ld2/checkout/spring/spring/src/org/springframework/web/servlet/mvc/multiact=
ion/ParameterMethodNameResolver.java:119: warning - Tag @link: can't find d=
efaultMethodName in org.springframework.web.servlet.mvc.multiaction.Paramet=
erMethodNameResolver<br class=3D"none"/>/jteam/build2/checkout/spring/sprin=
g/src/org/springframework/web/servlet/mvc/multiaction/ParameterMethodNameRe=
solver.java:100: warning - Tag @link: can't find logicalMappings in org.spr=
ingframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver<br cla=
ss=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/w=
eb/servlet/mvc/multiaction/ParameterMethodNameResolver.java:100: warning - =
Tag @link: can't find paramName in org.springframework.web.servlet.mvc.mult=
iaction.ParameterMethodNameResolver<br class=3D"none"/>/jteam/build2/checko=
ut/spring/spring/src/org/springframework/web/servlet/mvc/multiaction/Parame=
terMethodNameResolver.java:100: warning - Tag @link: can't find logicalMapp=
ings in org.springframework.web.servlet.mvc.multiaction.ParameterMethodName=
Resolver<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/sp=
ringframework/web/servlet/mvc/multiaction/ParameterMethodNameResolver.java:=
100: warning - Tag @link: can't find paramName in org.springframework.web.s=
ervlet.mvc.multiaction.ParameterMethodNameResolver<br class=3D"none"/>/jtea=
m/build2/checkout/spring/spring/src/org/springframework/web/servlet/mvc/mul=
tiaction/ParameterMethodNameResolver.java:100: warning - Tag @link: can't f=
ind logicalMappings in org.springframework.web.servlet.mvc.multiaction.Para=
meterMethodNameResolver<br class=3D"none"/>/jteam/build2/checkout/spring/sp=
ring/src/org/springframework/web/servlet/mvc/multiaction/ParameterMethodNam=
eResolver.java:100: warning - Tag @link: can't find paramName in org.spring=
framework.web.servlet.mvc.multiaction.ParameterMethodNameResolver<br class=
=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/web=
/servlet/mvc/multiaction/ParameterMethodNameResolver.java:100: warning - Ta=
g @link: can't find logicalMappings in org.springframework.web.servlet.mvc.=
multiaction.ParameterMethodNameResolver<br class=3D"none"/>/jteam/build2/ch=
eckout/spring/spring/src/org/springframework/web/servlet/mvc/multiaction/Pa=
rameterMethodNameResolver.java:100: warning - Tag @link: can't find paramNa=
me in org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameRe=
solver<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/spri=
ngframework/web/servlet/mvc/multiaction/ParameterMethodNameResolver.java:10=
0: warning - @param argument "an" is not a parameter name.<br class=3D"none=
"/>/jteam/build2/checkout/spring/spring/src/org/springframework/web/servlet=
/mvc/multiaction/ParameterMethodNameResolver.java:119: warning - Tag @link:=
can't find defaultMethodName in org.springframework.web.servlet.mvc.multia=
ction.ParameterMethodNameResolver<br class=3D"none"/>/jteam/build2/checkout=
/spring/spring/src/org/springframework/web/servlet/mvc/multiaction/Paramete=
rMethodNameResolver.java:119: warning - Tag @link: can't find defaultMethod=
Name in org.springframework.web.servlet.mvc.multiaction.ParameterMethodName=
Resolver<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/sp=
ringframework/web/servlet/mvc/multiaction/ParameterMethodNameResolver.java:=
119: warning - Tag @link: can't find defaultMethodName in org.springframewo=
rk.web.servlet.mvc.multiaction.ParameterMethodNameResolver<br class=3D"none=
"/>/jteam/build2/checkout/spring/spring/src/org/springframework/web/servlet=
/view/xslt/AbstractXsltView.java:267: warning - @param argument "root" is n=
ot a parameter name.<br class=3D"none"/>Error on line 3 column 3 of file:/j=
team/build2/checkout/spring/spring/docs/reference/src/webintegration.xml:<b=
r class=3D"none"/>Error reported by XML parser: name expected (found "<"=
)<br class=3D"none"/>Transformation failed: Run-time errors were reported<b=
r class=3D"none"/>Error on line 3 column 3 of file:/jteam/build2/checkout/s=
pring/spring/docs/reference/src/webintegration.xml:<br class=3D"none"/>Erro=
r reported by XML parser: name expected (found "<")<br class=3D"none"/>T=
ransformation failed: Run-time errors were reported<br class=3D"none"/>Erro=
r on line 3 column 3 of file:/jteam/build2/checkout/spring/spring/docs/refe=
rence/src/webintegration.xml:<br class=3D"none"/>Error reported by XML pars=
er: name expected (found "<")<br class=3D"none"/>Transformation failed: =
Run-time errors were reported<br class=3D"none"/>USAGE<br class=3D"none"/>F=
op [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-pcl|-ps|-txt|-a=
t|-print] <outfile><br class=3D"none"/>[OPTIONS]<br class=3D"none"/>-=
d debug mode<br class=3D"none"/>-x dump configuration set=
tings<br class=3D"none"/>-q quiet mode<br class=3D"none"/>-c cfg.x=
ml use additional configuration file cfg.xml<br class=3D"none"/>-l lang =
the language to use for user information<br class=3D"none"/>-s f=
or area tree XML, down to block areas only<br class=3D"none"/>[INPUT]<br cl=
ass=3D"none"/>infile xsl:fo input file (the same as the next)<br=
class=3D"none"/>-fo infile xsl:fo input file<br class=3D"none"/>-xm=
l infile xml input file, must be used together with -xsl<br class=3D"=
none"/>-xsl stylesheet xslt stylesheet<br class=3D"none"/><br class=3D"no=
ne"/>[OUTPUT]<br class=3D"none"/>outfile input will be rendered a=
s pdf file into outfile<br class=3D"none"/>-pdf outfile input will be =
rendered as pdf file (outfile req'd)<br class=3D"none"/>-awt i=
nput will be displayed on screen<br class=3D"none"/>-mif outfile input=
will be rendered as mif file (outfile req'd)<br class=3D"none"/>-pcl outfi=
le input will be rendered as pcl file (outfile req'd)<br class=3D"none=
"/>-ps outfile input will be rendered as PostScript file (outfile req=
'd)<br class=3D"none"/>-txt outfile input will be rendered as text fil=
e (outfile req'd)<br class=3D"none"/>-txt.encoding encoding use the encodi=
ng for the output file.<br class=3D"none"/>the encoding must be a valid jav=
a encoding.<br class=3D"none"/>-svg outfile input will be rendered as =
an svg slides file (outfile req'd)<br class=3D"none"/>-at outfile rep=
resentation of area tree as XML (outfile req'd)<br class=3D"none"/>-print =
input file will be rendered and sent to the printer<br class=3D"n=
one"/>see options with "-print help"<br class=3D"none"/>[Examples]<br class=
=3D"none"/>Fop foo.fo foo.pdf<br class=3D"none"/>Fop -fo foo.fo -pdf foo.pd=
f (does the same as the previous line)<br class=3D"none"/>Fop -xsl foo.xsl =
-xml foo.xml -pdf foo.pdf<br class=3D"none"/>Fop foo.fo -mif foo.mif<br cla=
ss=3D"none"/>Fop foo.fo -print or Fop -print foo.fo<br class=3D"none"/>Fop =
foo.fo -awt<br class=3D"none"/></pre></td></tr></table><p>
<table xmlns=3D"http://www.w3.org/TR/html4/strict.dtd" width=3D"98%" border=
=3D"0" cellspacing=3D"0" cellpadding=3D"2" align=3D"center"><tr><td class=
=3D"compile-sectionheader"> Javadoc Errors/War=
nings: (50) </td></tr><tr><td><pre class=3D"compile-data=
">/jteam/build2/checkout/spring/spring/src/org/springframework/web/servlet/=
mvc/multiaction/MultiActionController.java:433: warning - Tag @see: can't f=
ind bindAndValidate in org.springframework.web.servlet.mvc.multiaction.Mult=
iActionController<br class=3D"none"/>/jteam/build2/checkout/spring/spring/s=
rc/org/springframework/web/servlet/mvc/multiaction/MultiActionController.ja=
va:433: warning - Tag @see: can't find setMessageCodesResolver in org.sprin=
gframework.web.servlet.mvc.multiaction.MultiActionController<br class=3D"no=
ne"/>/jteam/build2/checkout/spring/spring/src/org/springframework/jmx/expor=
t/assembler/InterfaceBasedMBeanInfoAssembler.java:152: warning - Tag @see: =
can't find isPublicInInterface(java.lang.reflect.Method, String) in org.spr=
ingframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler<br class=
=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/jmx=
/export/assembler/InterfaceBasedMBeanInfoAssembler.java:124: warning - Tag =
@see: can't find isPublicInInterface(java.lang.reflect.Method, String) in o=
rg.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler<br=
class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframewo=
rk/jmx/export/assembler/InterfaceBasedMBeanInfoAssembler.java:138: warning =
- Tag @see: can't find isPublicInInterface(java.lang.reflect.Method, String=
) in org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssemb=
ler<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springf=
ramework/jdbc/support/lob/OracleLobHandler.java:76: warning - Tag @see: ref=
erence not found: oracle.sql.BLOB<br class=3D"none"/>/jteam/build2/checkout=
/spring/spring/src/org/springframework/jdbc/support/lob/OracleLobHandler.ja=
va:76: warning - Tag @see: reference not found: oracle.sql.CLOB<br class=3D=
"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/jdbc/s=
upport/lob/OracleLobHandler.java:115: warning - Tag @see: reference not fou=
nd: oracle.sql.BLOB#DURATION_SESSION<br class=3D"none"/>/jteam/build2/check=
out/spring/spring/src/org/springframework/jdbc/support/lob/OracleLobHandler=
.java:115: warning - Tag @see: reference not found: oracle.sql.BLOB#MODE_RE=
ADWRITE<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/spr=
ingframework/jdbc/support/lob/OracleLobHandler.java:115: warning - Tag @see=
: reference not found: oracle.sql.CLOB#DURATION_SESSION<br class=3D"none"/>=
/jteam/build2/checkout/spring/spring/src/org/springframework/jdbc/support/l=
ob/OracleLobHandler.java:115: warning - Tag @see: reference not found: orac=
le.sql.CLOB#MODE_READWRITE<br class=3D"none"/>/jteam/build2/checkout/spring=
/spring/src/org/springframework/jdbc/support/lob/OracleLobHandler.java:154:=
warning - Tag @see: reference not found: oracle.jdbc.OracleConnection<br c=
lass=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework=
/jdbc/support/lob/OracleLobHandler.java:164: warning - Tag @see: reference =
not found: oracle.sql.BLOB#createTemporary<br class=3D"none"/>/jteam/build2=
/checkout/spring/spring/src/org/springframework/jdbc/support/lob/OracleLobH=
andler.java:164: warning - Tag @see: reference not found: oracle.sql.CLOB#c=
reateTemporary<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/=
org/springframework/jdbc/support/nativejdbc/JBossNativeJdbcExtractor.java:4=
9: warning - Tag @see: reference not found: org.jboss.resource.adapter.jdbc=
.WrappedConnection#getUnderlyingConnection<br class=3D"none"/>/jteam/build2=
/checkout/spring/spring/src/org/springframework/jdbc/support/nativejdbc/JBo=
ssNativeJdbcExtractor.java:49: warning - Tag @see: reference not found: org=
.jboss.resource.adapter.jdbc.WrappedStatement#getUnderlyingStatement<br cla=
ss=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/j=
dbc/support/nativejdbc/JBossNativeJdbcExtractor.java:49: warning - Tag @see=
: reference not found: org.jboss.resource.adapter.jdbc.WrappedResultSet#get=
UnderlyingResultSet<br class=3D"none"/>/jteam/build2/checkout/spring/spring=
/src/org/springframework/jdbc/support/nativejdbc/WebLogicNativeJdbcExtracto=
r.java:45: warning - Tag @see: reference not found: weblogic.jdbc.extension=
s.WLConnection#getVendorConnection<br class=3D"none"/>/jteam/build2/checkou=
t/spring/spring/src/org/springframework/jdbc/support/nativejdbc/WebSphereNa=
tiveJdbcExtractor.java:49: warning - Tag @see: reference not found: com.ibm=
.ws.rsadapter.jdbc.WSJdbcConnection<br class=3D"none"/>/jteam/build2/checko=
ut/spring/spring/src/org/springframework/jdbc/support/nativejdbc/WebSphereN=
ativeJdbcExtractor.java:49: warning - Tag @see: reference not found: com.ib=
m.ws.rsadapter.jdbc.WSJdbcUtil#getNativeConnection<br class=3D"none"/>/jtea=
m/build2/checkout/spring/spring/src/org/springframework/jdbc/support/native=
jdbc/WebSphereNativeJdbcExtractor.java:49: warning - Tag @see: reference no=
t found: com.ibm.ejs.cm.proxy.ConnectionProxy#getPhysicalConnection<br clas=
s=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/or=
m/hibernate3/LocalSessionFactoryBean.java:339: warning - Tag @see: referenc=
e not found: org.hibernate.UserType<br class=3D"none"/>/jteam/build2/checko=
ut/spring/spring/src/org/springframework/orm/hibernate3/SessionFactoryUtils=
.java:155: warning - Tag @see: reference not found: org.hibernate.impl.Sess=
ionFactoryImpl<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/=
org/springframework/orm/hibernate3/SessionFactoryUtils.java:155: warning - =
Tag @see: reference not found: org.hibernate.jca.JCASessionFactoryImpl<br c=
lass=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework=
/orm/ibatis/SqlMapClientFactoryBean.java:198: warning - Tag @see: reference=
not found: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransactionConfig=
<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springfram=
ework/orm/ibatis/SqlMapClientFactoryBean.java:198: warning - Tag @see: refe=
rence not found: com.ibatis.sqlmap.engine.transaction.jta.JtaTransactionCon=
fig<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springf=
ramework/orm/ibatis/SqlMapClientFactoryBean.java:226: warning - Tag @see: r=
eference not found: com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransacti=
onConfig<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/sp=
ringframework/orm/ibatis/SqlMapClientFactoryBean.java:226: warning - Tag @s=
ee: reference not found: com.ibatis.sqlmap.engine.transaction.jta.JtaTransa=
ctionConfig<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org=
/springframework/transaction/jta/WebLogicJtaTransactionManager.java:66: war=
ning - Tag @see: reference not found: weblogic.transaction.TransactionManag=
er#forceResume<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/=
org/springframework/transaction/jta/WebLogicServerTransactionManagerFactory=
Bean.java:45: warning - Tag @see: reference not found: weblogic.transaction=
.TxHelper#getTransactionManager<br class=3D"none"/>/jteam/build2/checkout/s=
pring/spring/src/org/springframework/transaction/jta/WebSphereTransactionMa=
nagerFactoryBean.java:49: warning - Tag @see: reference not found: com.ibm.=
ws.Transaction.TransactionManagerFactory#getTransactionManager<br class=3D"=
none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/transac=
tion/jta/WebSphereTransactionManagerFactoryBean.java:49: warning - Tag @see=
: reference not found: com.ibm.ejs.jts.jta.JTSXA#getTransactionManager<br c=
lass=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework=
/transaction/jta/WebSphereTransactionManagerFactoryBean.java:49: warning - =
Tag @see: reference not found: com.ibm.ejs.jts.jta.TransactionManagerFactor=
y#getTransactionManager<br class=3D"none"/>/jteam/build2/checkout/spring/sp=
ring/src/org/springframework/util/ObjectUtils.java:31: warning - Tag @see: =
reference not found: org.apache.commons.lang.ObjectUtils<br class=3D"none"/=
>/jteam/build2/checkout/spring/spring/src/org/springframework/util/StringUt=
ils.java:47: warning - Tag @see: reference not found: org.apache.commons.la=
ng.StringUtils<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/=
org/springframework/web/servlet/handler/metadata/PathMap.java:31: warning -=
@@org.apache.commons.attributes.Indexed() is an unknown tag.<br class=3D"n=
one"/>/jteam/build2/checkout/spring/spring/src/org/springframework/web/serv=
let/mvc/multiaction/ParameterMethodNameResolver.java:119: warning - Tag @li=
nk: can't find defaultMethodName in org.springframework.web.servlet.mvc.mul=
tiaction.ParameterMethodNameResolver<br class=3D"none"/>/jteam/build2/check=
out/spring/spring/src/org/springframework/web/servlet/mvc/multiaction/Param=
eterMethodNameResolver.java:100: warning - Tag @link: can't find logicalMap=
pings in org.springframework.web.servlet.mvc.multiaction.ParameterMethodNam=
eResolver<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/s=
pringframework/web/servlet/mvc/multiaction/ParameterMethodNameResolver.java=
:100: warning - Tag @link: can't find paramName in org.springframework.web.=
servlet.mvc.multiaction.ParameterMethodNameResolver<br class=3D"none"/>/jte=
am/build2/checkout/spring/spring/src/org/springframework/web/servlet/mvc/mu=
ltiaction/ParameterMethodNameResolver.java:100: warning - Tag @link: can't =
find logicalMappings in org.springframework.web.servlet.mvc.multiaction.Par=
ameterMethodNameResolver<br class=3D"none"/>/jteam/build2/checkout/spring/s=
pring/src/org/springframework/web/servlet/mvc/multiaction/ParameterMethodNa=
meResolver.java:100: warning - Tag @link: can't find paramName in org.sprin=
gframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver<br class=
=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframework/web=
/servlet/mvc/multiaction/ParameterMethodNameResolver.java:100: warning - Ta=
g @link: can't find logicalMappings in org.springframework.web.servlet.mvc.=
multiaction.ParameterMethodNameResolver<br class=3D"none"/>/jteam/build2/ch=
eckout/spring/spring/src/org/springframework/web/servlet/mvc/multiaction/Pa=
rameterMethodNameResolver.java:100: warning - Tag @link: can't find paramNa=
me in org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameRe=
solver<br class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/spri=
ngframework/web/servlet/mvc/multiaction/ParameterMethodNameResolver.java:10=
0: warning - Tag @link: can't find logicalMappings in org.springframework.w=
eb.servlet.mvc.multiaction.ParameterMethodNameResolver<br class=3D"none"/>/=
jteam/build2/checkout/spring/spring/src/org/springframework/web/servlet/mvc=
/multiaction/ParameterMethodNameResolver.java:100: warning - Tag @link: can=
't find paramName in org.springframework.web.servlet.mvc.multiaction.Parame=
terMethodNameResolver<br class=3D"none"/>/jteam/build2/checkout/spring/spri=
ng/src/org/springframework/web/servlet/mvc/multiaction/ParameterMethodNameR=
esolver.java:100: warning - @param argument "an" is not a parameter name.<b=
r class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframew=
ork/web/servlet/mvc/multiaction/ParameterMethodNameResolver.java:119: warni=
ng - Tag @link: can't find defaultMethodName in org.springframework.web.ser=
vlet.mvc.multiaction.ParameterMethodNameResolver<br class=3D"none"/>/jteam/=
build2/checkout/spring/spring/src/org/springframework/web/servlet/mvc/multi=
action/ParameterMethodNameResolver.java:119: warning - Tag @link: can't fin=
d defaultMethodName in org.springframework.web.servlet.mvc.multiaction.Para=
meterMethodNameResolver<br class=3D"none"/>/jteam/build2/checkout/spring/sp=
ring/src/org/springframework/web/servlet/mvc/multiaction/ParameterMethodNam=
eResolver.java:119: warning - Tag @link: can't find defaultMethodName in or=
g.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver<b=
r class=3D"none"/>/jteam/build2/checkout/spring/spring/src/org/springframew=
ork/web/servlet/view/xslt/AbstractXsltView.java:267: warning - @param argum=
ent "root" is not a parameter name.<br class=3D"none"/></pre></td></tr></ta=
ble><p>
<table width=3D"98%" border=3D"0" cellspacing=3D"0" cellpadding=3D"2" align=
=3D"center"><tr><td colspan=3D"4" class=3D"unittests-sectionheader"> =
Unit Tests: (2934) </td></tr><tr><td><tabl=
e width=3D"98%" border=3D"0" cellspacing=3D"0" cellpadding=3D"2" align=3D"c=
enter"><tr><td class=3D"unittests-data"> failure =
</td><td width=3D"40%" class=3D"unittests-data">testHelpPage</td><td width=
=3D"40%" class=3D"unittests-data">org.springframework.apptests.jpetstore.Al=
lTests</td></tr><tr class=3D"unittests-oddrow"><td class=3D"unittests-data"=
> failure </td><td width=3D"40%" class=3D"unittes=
ts-data">testPurchase</td><td width=3D"40%" class=3D"unittests-data">org.sp=
ringframework.apptests.jpetstore.AllTests</td></tr><tr><td class=3D"unittes=
ts-data"> failure </td><td width=3D"40%" class=3D=
"unittests-data">testSearch</td><td width=3D"40%" class=3D"unittests-data">=
org.springframework.apptests.jpetstore.AllTests</td></tr><tr class=3D"unitt=
ests-oddrow"><td class=3D"unittests-data"> failure =
</td><td width=3D"40%" class=3D"unittests-data">testHelpPage</td><td widt=
h=3D"40%" class=3D"unittests-data">org.springframework.apptests.jpetstore.A=
llTests</td></tr><tr><td class=3D"unittests-data"> failure =
</td><td width=3D"40%" class=3D"unittests-data">testPurchase</td>=
<td width=3D"40%" class=3D"unittests-data">org.springframework.apptests.jpe=
tstore.AllTests</td></tr><tr class=3D"unittests-oddrow"><td class=3D"unitte=
sts-data"> failure </td><td width=3D"40%" class=
=3D"unittests-data">testSearch</td><td width=3D"40%" class=3D"unittests-dat=
a">org.springframework.apptests.jpetstore.AllTests</td></tr></table></td></=
tr><tr></tr><tr><td colspan=3D"2"> </td></tr><tr><td colspan=3D"4" cla=
ss=3D"unittests-sectionheader"> Unit Test Error De=
tails: (6) </td></tr><tr><td class=3D"unittests-data" c=
olspan=3D"2"> Test: testHelpPage</td></tr><tr><td class=
=3D"unittests-data" colspan=3D"2"> Class: org.springfra=
mework.apptests.jpetstore.AllTests</td></tr><tr><td class=3D"unittests-data=
" colspan=3D"2"> Type: junit.framework.AssertionFailedError<=
/td></tr><tr><td class=3D"unittests-data" colspan=3D"2"> Mes=
sage: Exception: com.meterware.httpunit.HttpInternalErrorException: Error o=
n HTTP request: 500 Internal Error [http://localhost:13084/jpetstore/shop/h=
elp.do?param=3Dfreemarker]</td></tr><tr><td class=3D"unittests-failure" col=
span=3D"2"><pre>junit.framework.AssertionFailedError: Exception: com.meterw=
are.httpunit.HttpInternalErrorException: Error on HTTP request: 500 Interna=
l Error [http://localhost:13084/jpetstore/shop/help.do?param=3Dfreemarker]<=
br>=09at org.springframework.apptests.jpetstore.AllTests.testHelpPage(Unkno=
wn Source)<br>=09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Met=
hod)<br>=09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces=
sorImpl.java:39)<br>=09at sun.reflect.DelegatingMethodAccessorImpl.invoke(D=
elegatingMethodAccessorImpl.java:25)<br>=09at java.lang.Thread.run(Thread.j=
ava:534)</pre></td></tr><tr><td class=3D"unittests-data" colspan=3D"2"> =
Test: testPurchase</td></tr><tr><td class=3D"unittests-dat=
a" colspan=3D"2"> Class: org.springframework.apptests.j=
petstore.AllTests</td></tr><tr><td class=3D"unittests-data" colspan=3D"2"> =
Type: junit.framework.AssertionFailedError</td></tr><tr><td =
class=3D"unittests-data" colspan=3D"2"> Message: Exception: =
com.meterware.httpunit.HttpInternalErrorException: Error on HTTP request: 5=
00 Internal Error [http://localhost:13084/jpetstore/shop/index.do]</td></tr=
><tr><td class=3D"unittests-failure" colspan=3D"2"><pre>junit.framework.Ass=
ertionFailedError: Exception: com.meterware.httpunit.HttpInternalErrorExcep=
tion: Error on HTTP request: 500 Internal Error [http://localhost:13084/jpe=
tstore/shop/index.do]<br>=09at org.springframework.apptests.jpetstore.AllTe=
sts.testPurchase(Unknown Source)<br>=09at sun.reflect.NativeMethodAccessorI=
mpl.invoke0(Native Method)<br>=09at sun.reflect.NativeMethodAccessorImpl.in=
voke(NativeMethodAccessorImpl.java:39)<br>=09at sun.reflect.DelegatingMetho=
dAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>=09at java.la=
ng.Thread.run(Thread.java:534)</pre></td></tr><tr><td class=3D"unittests-da=
ta" colspan=3D"2"> Test: testSearch</td></tr><tr><td cl=
ass=3D"unittests-data" colspan=3D"2"> Class: org.spring=
framework.apptests.jpetstore.AllTests</td></tr><tr><td class=3D"unittests-d=
ata" colspan=3D"2"> Type: junit.framework.AssertionFailedErr=
or</td></tr><tr><td class=3D"unittests-data" colspan=3D"2"> =
Message: Exception: com.meterware.httpunit.HttpInternalErrorException: Erro=
r on HTTP request: 500 Internal Error [http://localhost:13084/jpetstore/sho=
p/index.do]</td></tr><tr><td class=3D"unittests-failure" colspan=3D"2"><pre=
>junit.framework.AssertionFailedError: Exception: com.meterware.httpunit.Ht=
tpInternalErrorException: Error on HTTP request: 500 Internal Error [http:/=
/localhost:13084/jpetstore/shop/index.do]<br>=09at org.springframework.appt=
ests.jpetstore.AllTests.testSearch(Unknown Source)<br>=09at sun.reflect.Nat=
iveMethodAccessorImpl.invoke0(Native Method)<br>=09at sun.reflect.NativeMet=
hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>=09at sun.refle=
ct.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25=
)<br>=09at java.lang.Thread.run(Thread.java:534)</pre></td></tr><tr><td cla=
ss=3D"unittests-data" colspan=3D"2"> Test: testHelpPage=
</td></tr><tr><td class=3D"unittests-data" colspan=3D"2"> Cl=
ass: org.springframework.apptests.jpetstore.AllTests</td></tr><tr><td =
class=3D"unittests-data" colspan=3D"2"> Type: junit.framewor=
k.AssertionFailedError</td></tr><tr><td class=3D"unittests-data" colspan=3D=
"2"> Message: Exception: com.meterware.httpunit.HttpInternal=
ErrorException: Error on HTTP request: 500 Internal Error [http://localhost=
:13084/jpetstore/shop/help.do?param=3Dfreemarker]</td></tr><tr><td class=3D=
"unittests-failure" colspan=3D"2"><pre>junit.framework.AssertionFailedError=
: Exception: com.meterware.httpunit.HttpInternalErrorException: Error on HT=
TP request: 500 Internal Error [http://localhost:13084/jpetstore/shop/help.=
do?param=3Dfreemarker]<br>=09at org.springframework.apptests.jpetstore.AllT=
ests.testHelpPage(Unknown Source)<br>=09at sun.reflect.NativeMethodAccessor=
Impl.invoke0(Native Method)<br>=09at sun.reflect.NativeMethodAccessorImpl.i=
nvoke(NativeMethodAccessorImpl.java:39)<br>=09at sun.reflect.DelegatingMeth=
odAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>=09at java.l=
ang.Thread.run(Thread.java:534)</pre></td></tr><tr><td class=3D"unittests-d=
ata" colspan=3D"2"> Test: testPurchase</td></tr><tr><td=
class=3D"unittests-data" colspan=3D"2"> Class: org.spr=
ingframework.apptests.jpetstore.AllTests</td></tr><tr><td class=3D"unittest=
s-data" colspan=3D"2"> Type: junit.framework.AssertionFailed=
Error</td></tr><tr><td class=3D"unittests-data" colspan=3D"2"> =
Message: Exception: com.meterware.httpunit.HttpInternalErrorException: E=
rror on HTTP request: 500 Internal Error [http://localhost:13084/jpetstore/=
shop/index.do]</td></tr><tr><td class=3D"unittests-failure" colspan=3D"2"><=
pre>junit.framework.AssertionFailedError: Exception: com.meterware.httpunit=
.HttpInternalErrorException: Error on HTTP request: 500 Internal Error [htt=
p://localhost:13084/jpetstore/shop/index.do]<br>=09at org.springframework.a=
pptests.jpetstore.AllTests.testPurchase(Unknown Source)<br>=09at sun.reflec=
t.NativeMethodAccessorImpl.invoke0(Native Method)<br>=09at sun.reflect.Nati=
veMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>=09at sun.=
reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja=
va:25)<br>=09at java.lang.Thread.run(Thread.java:534)</pre></td></tr><tr><t=
d class=3D"unittests-data" colspan=3D"2"> Test: testSea=
rch</td></tr><tr><td class=3D"unittests-data" colspan=3D"2"> =
Class: org.springframework.apptests.jpetstore.AllTests</td></tr><tr><=
td class=3D"unittests-data" colspan=3D"2"> Type: junit.frame=
work.AssertionFailedError</td></tr><tr><td class=3D"unittests-data" colspan=
=3D"2"> Message: Exception: com.meterware.httpunit.HttpInter=
nalErrorException: Error on HTTP request: 500 Internal Error [http://localh=
ost:13084/jpetstore/shop/index.do]</td></tr><tr><td class=3D"unittests-fail=
ure" colspan=3D"2"><pre>junit.framework.AssertionFailedError: Exception: co=
m.meterware.httpunit.HttpInternalErrorException: Error on HTTP request: 500=
Internal Error [http://localhost:13084/jpetstore/shop/index.do]<br>=09at o=
rg.springframework.apptests.jpetstore.AllTests.testSearch(Unknown Source)<b=
r>=09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>=09a=
t sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java=
:39)<br>=09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet=
hodAccessorImpl.java:25)<br>=09at java.lang.Thread.run(Thread.java:534)</pr=
e></td></tr><tr><td colspan=3D"2"> </td></tr></table><p>
<table width=3D"98%" border=3D"0" cellspacing=3D"1" cellpadding=3D"2" align=
=3D"center"><tr><td colspan=3D"6" class=3D"modifications-sectionheader"> =
Modifications since last build: =
(32) </td></tr><tr class=3D"modifications-evenrow"><td =
class=3D"modifications-data">modified</td><td class=3D"modifications-data">=
colins</td><td class=3D"modifications-data">src/org/springframework/beans/f=
actory/access/BeanFactoryReference.java</td><td class=3D"modifications-data=
">Document that release() is safe to call multiple times</td></tr><tr class=
=3D"modifications-oddrow"><td class=3D"modifications-data">modified</td><td=
class=3D"modifications-data">colins</td><td class=3D"modifications-data">s=
rc/org/springframework/context/access/ContextBeanFactoryReference.java</td>=
<td class=3D"modifications-data">allow DefaultBeanFactoryReference/ContextB=
eanFactoryReference to support multiple calls to BeanFactoryReference's rel=
ease(). Add unit tests</td></tr><tr class=3D"modifications-evenrow"><td cla=
ss=3D"modifications-data">modified</td><td class=3D"modifications-data">col=
ins</td><td class=3D"modifications-data">test/org/springframework/beans/fac=
tory/access/DefaultBeanFactoryReferenceTests.java</td><td class=3D"modifica=
tions-data">allow DefaultBeanFactoryReference/ContextBeanFactoryReference t=
o support multiple calls to BeanFactoryReference's release(). Add unit test=
s</td></tr><tr class=3D"modifications-oddrow"><td class=3D"modifications-da=
ta">added</td><td class=3D"modifications-data">colins</td><td class=3D"modi=
fications-data">test/org/springframework/context/access/ContextBeanFactoryR=
eferenceTests.java</td><td class=3D"modifications-data">allow DefaultBeanFa=
ctoryReference/ContextBeanFactoryReference to support multiple calls to Bea=
nFactoryReference's release(). Add unit tests</td></tr><tr class=3D"modific=
ations-evenrow"><td class=3D"modifications-data">modified</td><td class=3D"=
modifications-data">colins</td><td class=3D"modifications-data">src/org/spr=
ingframework/beans/factory/access/DefaultBeanFactoryReference.java</td><td =
class=3D"modifications-data">allow DefaultBeanFactoryReference/ContextBeanF=
actoryReference to support multiple calls to BeanFactoryReference's release=
(). Add unit tests</td></tr><tr class=3D"modifications-oddrow"><td class=3D=
"modifications-data">added</td><td class=3D"modifications-data">colins</td>=
<td class=3D"modifications-data">test/org/springframework/beans/factory/acc=
ess/DefaultBeanFactoryReferenceTests.java</td><td class=3D"modifications-da=
ta">allow DefaultBeanFactoryReference to support multiple calls to BeanFact=
oryReference's release()</td></tr><tr class=3D"modifications-evenrow"><td c=
lass=3D"modifications-data">modified</td><td class=3D"modifications-data">c=
olins</td><td class=3D"modifications-data">src/org/springframework/beans/fa=
ctory/access/DefaultBeanFactoryReference.java</td><td class=3D"modification=
s-data">allow DefaultBeanFactoryReference to support multiple calls to Bean=
FactoryReference's release()</td></tr><tr class=3D"modifications-oddrow"><t=
d class=3D"modifications-data">added</td><td class=3D"modifications-data">d=
avison</td><td class=3D"modifications-data">test/org/springframework/web/se=
rvlet/view/xslt/DoAbstractXsltViewTests.java</td><td class=3D"modifications=
-data">SPR-747 and SPR-730 (partially) resolved. ErrorListener injection a=
nd re-cache templates.</td></tr><tr class=3D"modifications-evenrow"><td cla=
ss=3D"modifications-data">added</td><td class=3D"modifications-data">daviso=
n</td><td class=3D"modifications-data">test/org/springframework/web/servlet=
/view/xslt/errors.xsl</td><td class=3D"modifications-data">SPR-747 and SPR-=
730 (partially) resolved. ErrorListener injection and re-cache templates.<=
/td></tr><tr class=3D"modifications-oddrow"><td class=3D"modifications-data=
">added</td><td class=3D"modifications-data">davison</td><td class=3D"modif=
ications-data">test/org/springframework/web/servlet/view/xslt/valid.xsl</td=
><td class=3D"modifications-data">SPR-747 and SPR-730 (partially) resolved.=
ErrorListener injection and re-cache templates.</td></tr><tr class=3D"mod=
ifications-evenrow"><td class=3D"modifications-data">modified</td><td class=
=3D"modifications-data">davison</td><td class=3D"modifications-data">src/or=
g/springframework/web/servlet/view/xslt/AbstractXsltView.java</td><td class=
=3D"modifications-data">SPR-747 and SPR-730 (partially) resolved. ErrorLis=
tener injection and re-cache templates.</td></tr><tr class=3D"modifications=
-oddrow"><td class=3D"modifications-data">modified</td><td class=3D"modific=
ations-data">klr8</td><td class=3D"modifications-data">src/org/springframew=
ork/web/servlet/tags/BindTag.java</td><td class=3D"modifications-data">Brou=
ght taglib documentation up-to-date.</td></tr><tr class=3D"modifications-ev=
enrow"><td class=3D"modifications-data">modified</td><td class=3D"modificat=
ions-data">klr8</td><td class=3D"modifications-data">src/org/springframewor=
k/web/servlet/tags/NestedPathTag.java</td><td class=3D"modifications-data">=
Brought taglib documentation up-to-date.</td></tr><tr class=3D"modification=
s-oddrow"><td class=3D"modifications-data">modified</td><td class=3D"modifi=
cations-data">klr8</td><td class=3D"modifications-data">src/org/springframe=
work/web/servlet/tags/package.html</td><td class=3D"modifications-data">Bro=
ught taglib documentation up-to-date.</td></tr><tr class=3D"modifications-e=
venrow"><td class=3D"modifications-data">modified</td><td class=3D"modifica=
tions-data">klr8</td><td class=3D"modifications-data">src/org/springframewo=
rk/web/servlet/tags/spring.tld</td><td class=3D"modifications-data">Brought=
taglib documentation up-to-date.</td></tr><tr class=3D"modifications-oddro=
w"><td class=3D"modifications-data">modified</td><td class=3D"modifications=
-data">klr8</td><td class=3D"modifications-data">docs/taglib/listing.html</=
td><td class=3D"modifications-data">Brought taglib documentation up-to-date=
.</td></tr><tr class=3D"modifications-evenrow"><td class=3D"modifications-d=
ata">modified</td><td class=3D"modifications-data">klr8</td><td class=3D"mo=
difications-data">docs/taglib/introduction.html</td><td class=3D"modificati=
ons-data">Brought taglib documentation up-to-date.</td></tr><tr class=3D"mo=
difications-oddrow"><td class=3D"modifications-data">modified</td><td class=
=3D"modifications-data">klr8</td><td class=3D"modifications-data">docs/tagl=
ib/tag/BindErrorsTag.html</td><td class=3D"modifications-data">Brought tagl=
ib documentation up-to-date.</td></tr><tr class=3D"modifications-evenrow"><=
td class=3D"modifications-data">modified</td><td class=3D"modifications-dat=
a">klr8</td><td class=3D"modifications-data">docs/taglib/tag/BindTag.html</=
td><td class=3D"modifications-data">Brought taglib documentation up-to-date=
.</td></tr><tr class=3D"modifications-oddrow"><td class=3D"modifications-da=
ta">added</td><td class=3D"modifications-data">klr8</td><td class=3D"modifi=
cations-data">docs/taglib/tag/EscapeBodyTag.html</td><td class=3D"modificat=
ions-data">Brought taglib documentation up-to-date.</td></tr><tr class=3D"m=
odifications-evenrow"><td class=3D"modifications-data">modified</td><td cla=
ss=3D"modifications-data">klr8</td><td class=3D"modifications-data">docs/ta=
glib/tag/HtmlEscapeTag.html</td><td class=3D"modifications-data">Brought ta=
glib documentation up-to-date.</td></tr><tr class=3D"modifications-oddrow">=
<td class=3D"modifications-data">modified</td><td class=3D"modifications-da=
ta">klr8</td><td class=3D"modifications-data">docs/taglib/tag/MessageTag.ht=
ml</td><td class=3D"modifications-data">Brought taglib documentation up-to-=
date.</td></tr><tr class=3D"modifications-evenrow"><td class=3D"modificatio=
ns-data">added</td><td class=3D"modifications-data">klr8</td><td class=3D"m=
odifications-data">docs/taglib/tag/NestedPathTag.html</td><td class=3D"modi=
fications-data">Brought taglib documentation up-to-date.</td></tr><tr class=
=3D"modifications-oddrow"><td class=3D"modifications-data">modified</td><td=
class=3D"modifications-data">klr8</td><td class=3D"modifications-data">doc=
s/taglib/tag/ThemeTag.html</td><td class=3D"modifications-data">Brought tag=
lib documentation up-to-date.</td></tr><tr class=3D"modifications-evenrow">=
<td class=3D"modifications-data">modified</td><td class=3D"modifications-da=
ta">klr8</td><td class=3D"modifications-data">docs/taglib/tag/TransformTag.=
html</td><td class=3D"modifications-data">Brought taglib documentation up-t=
o-date.</td></tr><tr class=3D"modifications-oddrow"><td class=3D"modificati=
ons-data">modified</td><td class=3D"modifications-data">klr8</td><td class=
=3D"modifications-data">src/org/springframework/web/servlet/tags/RequestCon=
textAwareTag.java</td><td class=3D"modifications-data">JavaDoc cleanup.</td=
></tr><tr class=3D"modifications-evenrow"><td class=3D"modifications-data">=
modified</td><td class=3D"modifications-data">klr8</td><td class=3D"modific=
ations-data">src/org/springframework/web/util/UrlPathHelper.java</td><td cl=
ass=3D"modifications-data">JavaDoc cleanup.</td></tr><tr class=3D"modificat=
ions-oddrow"><td class=3D"modifications-data">modified</td><td class=3D"mod=
ifications-data">dkopylenko</td><td class=3D"modifications-data">.classpath=
</td><td class=3D"modifications-data">Added cglib-nodep-2.1.jar to the ecli=
pse classpath</td></tr><tr class=3D"modifications-evenrow"><td class=3D"mod=
ifications-data">modified</td><td class=3D"modifications-data">colins</td><=
td class=3D"modifications-data">src/org/springframework/web/servlet/mvc/mul=
tiaction/ParameterMethodNameResolver.java</td><td class=...
[truncated message content] |
|
From: Darren D. <da...@sh...> - 2005-03-11 23:23:41
|
1110583416
FAILED
[junit] Testcase: testNaming took 0,007 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,027 sec
[junit] Testsuite: org.springframework.jmx.export.naming.PropertiesNamingStrategyTests
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,027 sec
[junit] Testcase: testNaming took 0 sec
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,317 sec
[junit] Testsuite: org.springframework.jmx.support.ConnectorServerFactoryBeanTests
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,317 sec
[junit] Testcase: testStartupWithLocatedServer took 0,096 sec
[junit] Testcase: testStartupWithSuppliedServer took 0,08 sec
[junit] Testcase: testRegisterWithMBeanServer took 0,072 sec
[junit] Testcase: testNoRegisterWithMBeanServer took 0,049 sec
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0,389 sec
[junit] Testsuite: org.springframework.jmx.support.HtmlAdapterHostTests
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0,389 sec
[junit] Testcase: testStartAndStop took 0,274 sec
[junit] Testcase: testStartAndStopWithConfiguredPort took 0,084 sec
[junit] FAILED
[junit] expected:<text/html> but was:<null>
[junit] junit.framework.ComparisonFailure: expected:<text/html> but was:<null>
[junit] at org.springframework.jmx.support.HtmlAdapterHostTests.assertAdapter(HtmlAdapterHostTests.java:73)
[junit] at org.springframework.jmx.support.HtmlAdapterHostTests.testStartAndStopWithConfiguredPort(HtmlAdapterHostTests.java:51)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
This is an automated mail from one of the SF Compile Farm machines.
The machine name noted in the subject encountered a failure building
or running the Spring test suite. The last few lines of the output
were included for info.
NB: No further mail will be sent from this machine until a
manual reset occurs on the cf-shell machine, although builds will
continue as scheduled.
See http://springframework.sourceforge.net/test/ for further
information.
|
|
From: Colin S. <col...@ex...> - 2005-03-11 22:44:34
|
The plan we (Rod and I) hatched after discussing things at TSSJS was that instead of shipping this stuff directly, we would ship a version based on Annogen, so that could be compiled with all the other normal code, and would have the benefit of also workin with JDK 1.4. However the fly in that ointment is that Annogen does not apparently support arrays in Annotations, and the TxAttribute Annotation does use those. Colin Sampaleanu wrote: > Parallel to the 'spring' module is a module called samples. Inside > that is a > tiger > project which contains the transaction Annotations stuff, including a > unit test, as well as some more experimental JMX Annotation stuff that > Rob did. Also inside samples is a > tiger-samples/jpetstore-annotations > project which is a version of the JPetstore that is almost identical > to the commons-attribute version of the petstore, except it uses the > Annotations code. The latter depends on the code from the 'tiger' > project. > > The ant builds and Eclipse projects for these both use and expect JDK > 1.5. There's no IDEA projects, since I don't use IDEA. > > Colin > > Juergen Hoeller wrote: > >> Well, we could simply give this a try - we'll see whether defining >> annotation classes and writing annotations access works with "-target >> 1.3". >> Generics shouldn't be a problem when just accessing an API - that should >> (hopefully) not require "-target 1.5". Anyway, let's give this a try! >> >> On this occasion: Where does the JDK 1.5 transaction annotation code >> reside? >> I can't find it in Spring CVS yet... We need to proceed quickly here; >> after >> all, 1.2 RC1 is less than a week a way. >> >> Juergen >> >> >> -----Original Message----- >> From: spr...@li... >> [mailto:spr...@li...]On Behalf >> Of Colin Sampaleanu >> Sent: Friday, March 11, 2005 10:34 PM >> To: spr...@li... >> Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 >> rc1 >> >> >> We we do need to include the actual Annotation source files somewhere... >> >> On top of that, yes, you access the actual annotations via calls like >> Annotation ann = targetClass.getAnnotation(filter); >> or >> Annotation ann = targetMethod.getAnnotation(filter); >> >> Now Annotation itself is for the most part just a regular Interface, but >> it does have a method in it >> Class<? extends Annotation> annotationType(); >> which is 1.5 syntax specific, so I personally think 1.3 code is going to >> barf on trying to use this interface, never mind that in practice, any >> code which gets the annotation will quickly try to see if it's a >> specific type (subclass) of Annotation (since this is just a marker >> interface that does nothing by itself), and do something with it, so >> really the code that manipulates the Annotations themselves would have >> to be compiled as 1.5 as well. >> >> Colin >> >> Juergen Hoeller wrote: >> >> >> >>> Well, we only want to *access* annotations through the corresponding >>> JDK >>> >> >> 1.5 >> >> >>> API. That should be possible with -source 1.3 and -target 1.3 too, if I >>> understand the issue correctly. >>> >>> The only thing we can't do is include annotations in our sources and >>> expect >>> them to be compiled into the class files. Please let me know if I'm >>> completely mistaken :-) >>> >>> Juergen >>> >>> >>> -----Original Message----- >>> From: spr...@li... >>> [mailto:spr...@li...]On Behalf >>> Of Colin Sampaleanu >>> Sent: Friday, March 11, 2005 10:01 PM >>> To: spr...@li... >>> Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 >>> rc1 >>> >>> >>> I think JDK 1.5 generating 1.3 compatible code would hopefully work >>> fine. But realistically, we _do_ want to use annotations, as in the >>> current Tx Annotations code... So there the problem becomes that if >>> everything is in the same codebase, you can't really compile some parts >>> with -1.3, and some with -1.5. >>> >>> Juergen Hoeller wrote: >>> >>> >>> >>> >>> >>>> Well, as long as we just compile against JDK 1.5 API or jars built >>>> with >>>> >>> >> JDK >> >> >>>> 1.5 (like hibernate-annotations.jar), we should be able to build >>>> with -target 1.3 on JDK 1.5. Thinks just become hard if we intend to >>>> >>>> >>>> >>> >>> include >>> >>> >>> >>> >>>> annotations in some of our files or use generics. >>>> >>>> Admittedly, I haven't played with JDK 1.5 generating 1.3-compatible >>>> class >>>> files yet... >>>> >>>> Juergen >>>> >>>> >>>> -----Original Message----- >>>> From: spr...@li... >>>> [mailto:spr...@li...]On >>>> Behalf >>>> Of Colin Sampaleanu >>>> Sent: Friday, March 11, 2005 12:51 AM >>>> To: spr...@li... >>>> Subject: Re: [Springframework-developer] Hibernate 3 annotations in >>>> 1.2 >>>> rc1 >>>> >>>> >>>> Short of switching to separate source modules (hint hint :-) ), that's >>>> going to be pretty hard to do. We can compile with JDK 1.5, for lower >>>> target versions, but then if you don't specify a 1.5 target >>>> version, the >>>> annotations stuff would blow up. >>>> >>>> >>>> Juergen Hoeller wrote: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>> Thanks for the suggestion, Dan! I've prototypically added such an >>>>> AnnotationsSessionFactoryBean. >>>>> However, the Hibernate3 annotations jar is built with JDK 1.5, so we >>>>> can only build and ship this class if our build process switches to >>>>> JDK 1.5 required too. We might switch to building with JDK 1.5 >>>>> anyway, >>>>> though, for our new transaction annotation feature that we'd like to >>>>> ship in Spring 1.2. >>>>> Juergen >>>>> >>>>> -----Original Message----- >>>>> *From:* spr...@li... >>>>> [mailto:spr...@li...]*On >>>>> Behalf Of *Washusen, Dan >>>>> *Sent:* Thursday, March 10, 2005 7:09 AM >>>>> *To:* spr...@li... >>>>> *Subject:* RE: [Springframework-developer] Hibernate 3 annotations >>>>> in 1.2 rc1 >>>>> >>>>> Incase anyone is interested; I’ve attached an implementation of >>>>> the bean definition I described below. >>>>> >>>>> Cheers, >>>>> >>>>> Dan >>>>> >>>>> ---------------------------------------------------------------------- >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> >>>> >>>> >>>> >>>> >>>> >>>>> *From:* spr...@li... >>>>> [mailto:spr...@li...] *On >>>>> Behalf Of *Washusen, Dan >>>>> *Sent:* Wednesday, 9 March 2005 12:29 PM >>>>> *To:* spr...@li... >>>>> *Subject:* [Springframework-developer] Hibernate 3 annotations in >>>>> 1.2 rc1 >>>>> >>>>> Hey guys, >>>>> >>>>> I’ve bean mucking around with Hibernate 3 (with annotations) >>>>> support in nightly build. All is going well but I thought I would >>>>> offer some feedback… >>>>> >>>>> 1. I had to extend the >>>>> org.springframework.orm.hibernate3.LocalSessionFactoryBean >>>>> class and override the newConfiguration() method to return >>>>> an instance of org.hibernate.cfg.AnnotationConfiguration. >>>>> 2. I then moved the list of mappings (from hibernate2) >>>>> specified by mappingResources into the hibernate.cfg.xml >>>>> file (using the format specified by the Hibernate >>>>> annotations page) and specified the location using the >>>>> configLocation property. >>>>> >>>>> Pretty easy really… >>>>> >>>>> A provided extension of LocalSessionFactoryBean that had support >>>>> for annotated classes would be nice. The bean definition could >>>>> look something like: >>>>> >>>>> <bean id="sessionFactory" >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> class="org.springframework.orm.hibernate3.AnnotationsLocalSessionFactoryBe >>>> >>>> >>> >> a >> >> >>>> >>> >>> n >>> >>> >>> >>> >>>> "> >>>> >>>> >>>> >>>> >>>> >>>> >>>>> <property name="dataSource"> >>>>> >>>>> <ref local="dataSource"/> >>>>> >>>>> </property> >>>>> >>>>> <property name="mappingPackage"> >>>>> >>>>> <value>some.package</value> >>>>> >>>>> </property> >>>>> >>>>> <property name="annotatedClasses"> >>>>> >>>>> <list> >>>>> >>>>> <value>com.package.Foo</value> >>>>> >>>>> <value>com.package.Bar</value> >>>>> >>>>> </list> >>>>> >>>>> </property> >>>>> >>>>> </bean> >>>>> >>>>> Cheers, >>>>> >>>>> Dan >>>>> >>>>> www.sensis.com.au >>>>> >>>>> A leading Australian advertising, information >>>>> >>>>> and directories business. >>>>> >>>>> >>>>> www.yellowpages.com.au >>>>> www.whitepages.com.au >>>>> www.citysearch.com.au >>>>> www.whereis.com.au >>>>> www.telstra.com.au >>>>> www.tradingpost.com.au >>>>> >>>>> This email and any attachments are intended only for the use of the >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> recipient and may be confidential and/or legally privileged. >>>> >>>> >>>> >>>> >>>> >>>> >>>>> Sensis Pty Ltd disclaims liability for any errors, omissions, >>>>> viruses, >>>>> >>>>> >>>>> >>>> >>> loss >>> >>> >>> >>> >>>>> >>>> >>>> and/or damage arising from using, opening or transmitting this email. >>>> >>>> >>>> >>>> >>>> >>>> >>>>> If you are not the intended recipient you must not use, interfere >>>>> with, >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> disclose, copy or retain this email and you should notify the sender >>>> immediately by return email or by contacting Sensis Pty Ltd by >>>> telephone >>>> >>> >> on >> >> >>>> [+61 3 8653 5000] >>>> >>>> >>>> >>>> >>>> >>>> >>>>> www.sensis.com.au >>>>> >>>>> A leading Australian advertising, information >>>>> >>>>> and directories business. >>>>> >>>>> >>>>> www.yellowpages.com.au >>>>> www.whitepages.com.au >>>>> www.citysearch.com.au >>>>> www.whereis.com.au >>>>> www.telstra.com.au >>>>> www.tradingpost.com.au >>>>> >>>>> This email and any attachments are intended only for the use of the >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> recipient and may be confidential and/or legally privileged. >>>> >>>> >>>> >>>> >>>> >>>> >>>>> Sensis Pty Ltd disclaims liability for any errors, omissions, >>>>> viruses, >>>>> >>>>> >>>>> >>>> >>> loss >>> >>> >>> >>> >>>>> >>>> >>>> and/or damage arising from using, opening or transmitting this email. >>>> >>>> >>>> >>>> >>>> >>>> >>>>> If you are not the intended recipient you must not use, interfere >>>>> with, >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> disclose, copy or retain this email and you should notify the sender >>>> immediately by return email or by contacting Sensis Pty Ltd by >>>> telephone >>>> >>> >> on >> >> >>>> [+61 3 8653 5000] >>>> >>>> >>>> >>> >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >> > > |
|
From: Colin S. <col...@ex...> - 2005-03-11 22:42:12
|
Parallel to the 'spring' module is a module called samples. Inside that is a tiger project which contains the transaction Annotations stuff, including a unit test, as well as some more experimental JMX Annotation stuff that Rob did. Also inside samples is a tiger-samples/jpetstore-annotations project which is a version of the JPetstore that is almost identical to the commons-attribute version of the petstore, except it uses the Annotations code. The latter depends on the code from the 'tiger' project. The ant builds and Eclipse projects for these both use and expect JDK 1.5. There's no IDEA projects, since I don't use IDEA. Colin Juergen Hoeller wrote: >Well, we could simply give this a try - we'll see whether defining >annotation classes and writing annotations access works with "-target 1.3". >Generics shouldn't be a problem when just accessing an API - that should >(hopefully) not require "-target 1.5". Anyway, let's give this a try! > >On this occasion: Where does the JDK 1.5 transaction annotation code reside? >I can't find it in Spring CVS yet... We need to proceed quickly here; after >all, 1.2 RC1 is less than a week a way. > >Juergen > > >-----Original Message----- >From: spr...@li... >[mailto:spr...@li...]On Behalf >Of Colin Sampaleanu >Sent: Friday, March 11, 2005 10:34 PM >To: spr...@li... >Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 >rc1 > > >We we do need to include the actual Annotation source files somewhere... > >On top of that, yes, you access the actual annotations via calls like > Annotation ann = targetClass.getAnnotation(filter); >or > Annotation ann = targetMethod.getAnnotation(filter); > >Now Annotation itself is for the most part just a regular Interface, but >it does have a method in it > Class<? extends Annotation> annotationType(); >which is 1.5 syntax specific, so I personally think 1.3 code is going to >barf on trying to use this interface, never mind that in practice, any >code which gets the annotation will quickly try to see if it's a >specific type (subclass) of Annotation (since this is just a marker >interface that does nothing by itself), and do something with it, so >really the code that manipulates the Annotations themselves would have >to be compiled as 1.5 as well. > >Colin > >Juergen Hoeller wrote: > > > >>Well, we only want to *access* annotations through the corresponding JDK >> >> >1.5 > > >>API. That should be possible with -source 1.3 and -target 1.3 too, if I >>understand the issue correctly. >> >>The only thing we can't do is include annotations in our sources and expect >>them to be compiled into the class files. Please let me know if I'm >>completely mistaken :-) >> >>Juergen >> >> >>-----Original Message----- >>From: spr...@li... >>[mailto:spr...@li...]On Behalf >>Of Colin Sampaleanu >>Sent: Friday, March 11, 2005 10:01 PM >>To: spr...@li... >>Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 >>rc1 >> >> >>I think JDK 1.5 generating 1.3 compatible code would hopefully work >>fine. But realistically, we _do_ want to use annotations, as in the >>current Tx Annotations code... So there the problem becomes that if >>everything is in the same codebase, you can't really compile some parts >>with -1.3, and some with -1.5. >> >>Juergen Hoeller wrote: >> >> >> >> >> >>>Well, as long as we just compile against JDK 1.5 API or jars built with >>> >>> >JDK > > >>>1.5 (like hibernate-annotations.jar), we should be able to build >>>with -target 1.3 on JDK 1.5. Thinks just become hard if we intend to >>> >>> >>> >>> >>include >> >> >> >> >>>annotations in some of our files or use generics. >>> >>>Admittedly, I haven't played with JDK 1.5 generating 1.3-compatible class >>>files yet... >>> >>>Juergen >>> >>> >>>-----Original Message----- >>>From: spr...@li... >>>[mailto:spr...@li...]On Behalf >>>Of Colin Sampaleanu >>>Sent: Friday, March 11, 2005 12:51 AM >>>To: spr...@li... >>>Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 >>>rc1 >>> >>> >>>Short of switching to separate source modules (hint hint :-) ), that's >>>going to be pretty hard to do. We can compile with JDK 1.5, for lower >>>target versions, but then if you don't specify a 1.5 target version, the >>>annotations stuff would blow up. >>> >>> >>>Juergen Hoeller wrote: >>> >>> >>> >>> >>> >>> >>> >>>>Thanks for the suggestion, Dan! I've prototypically added such an >>>>AnnotationsSessionFactoryBean. >>>>However, the Hibernate3 annotations jar is built with JDK 1.5, so we >>>>can only build and ship this class if our build process switches to >>>>JDK 1.5 required too. We might switch to building with JDK 1.5 anyway, >>>>though, for our new transaction annotation feature that we'd like to >>>>ship in Spring 1.2. >>>>Juergen >>>> >>>> -----Original Message----- >>>> *From:* spr...@li... >>>> [mailto:spr...@li...]*On >>>> Behalf Of *Washusen, Dan >>>> *Sent:* Thursday, March 10, 2005 7:09 AM >>>> *To:* spr...@li... >>>> *Subject:* RE: [Springframework-developer] Hibernate 3 annotations >>>> in 1.2 rc1 >>>> >>>> Incase anyone is interested; I’ve attached an implementation of >>>> the bean definition I described below. >>>> >>>> Cheers, >>>> >>>> Dan >>>> >>>> ---------------------------------------------------------------------- >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>> >>> >>> >>> >>> >>> >>>> *From:* spr...@li... >>>> [mailto:spr...@li...] *On >>>> Behalf Of *Washusen, Dan >>>> *Sent:* Wednesday, 9 March 2005 12:29 PM >>>> *To:* spr...@li... >>>> *Subject:* [Springframework-developer] Hibernate 3 annotations in >>>> 1.2 rc1 >>>> >>>> Hey guys, >>>> >>>> I’ve bean mucking around with Hibernate 3 (with annotations) >>>> support in nightly build. All is going well but I thought I would >>>> offer some feedback… >>>> >>>> 1. I had to extend the >>>> org.springframework.orm.hibernate3.LocalSessionFactoryBean >>>> class and override the newConfiguration() method to return >>>> an instance of org.hibernate.cfg.AnnotationConfiguration. >>>> 2. I then moved the list of mappings (from hibernate2) >>>> specified by mappingResources into the hibernate.cfg.xml >>>> file (using the format specified by the Hibernate >>>> annotations page) and specified the location using the >>>> configLocation property. >>>> >>>> Pretty easy really… >>>> >>>> A provided extension of LocalSessionFactoryBean that had support >>>> for annotated classes would be nice. The bean definition could >>>> look something like: >>>> >>>> <bean id="sessionFactory" >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>class="org.springframework.orm.hibernate3.AnnotationsLocalSessionFactoryBe >>> >>> >a > > >>> >>> >>n >> >> >> >> >>>"> >>> >>> >>> >>> >>> >>> >>>> <property name="dataSource"> >>>> >>>> <ref local="dataSource"/> >>>> >>>> </property> >>>> >>>> <property name="mappingPackage"> >>>> >>>> <value>some.package</value> >>>> >>>> </property> >>>> >>>> <property name="annotatedClasses"> >>>> >>>> <list> >>>> >>>> <value>com.package.Foo</value> >>>> >>>> <value>com.package.Bar</value> >>>> >>>> </list> >>>> >>>> </property> >>>> >>>> </bean> >>>> >>>> Cheers, >>>> >>>> Dan >>>> >>>>www.sensis.com.au >>>> >>>>A leading Australian advertising, information >>>> >>>>and directories business. >>>> >>>> >>>>www.yellowpages.com.au >>>>www.whitepages.com.au >>>>www.citysearch.com.au >>>>www.whereis.com.au >>>>www.telstra.com.au >>>>www.tradingpost.com.au >>>> >>>>This email and any attachments are intended only for the use of the >>>> >>>> >>>> >>>> >>>> >>>> >>>recipient and may be confidential and/or legally privileged. >>> >>> >>> >>> >>> >>> >>>>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, >>>> >>>> >>>> >>>> >>loss >> >> >> >> >>>> >>>> >>>and/or damage arising from using, opening or transmitting this email. >>> >>> >>> >>> >>> >>> >>>>If you are not the intended recipient you must not use, interfere with, >>>> >>>> >>>> >>>> >>>> >>>> >>>disclose, copy or retain this email and you should notify the sender >>>immediately by return email or by contacting Sensis Pty Ltd by telephone >>> >>> >on > > >>>[+61 3 8653 5000] >>> >>> >>> >>> >>> >>> >>>>www.sensis.com.au >>>> >>>>A leading Australian advertising, information >>>> >>>>and directories business. >>>> >>>> >>>>www.yellowpages.com.au >>>>www.whitepages.com.au >>>>www.citysearch.com.au >>>>www.whereis.com.au >>>>www.telstra.com.au >>>>www.tradingpost.com.au >>>> >>>>This email and any attachments are intended only for the use of the >>>> >>>> >>>> >>>> >>>> >>>> >>>recipient and may be confidential and/or legally privileged. >>> >>> >>> >>> >>> >>> >>>>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, >>>> >>>> >>>> >>>> >>loss >> >> >> >> >>>> >>>> >>>and/or damage arising from using, opening or transmitting this email. >>> >>> >>> >>> >>> >>> >>>>If you are not the intended recipient you must not use, interfere with, >>>> >>>> >>>> >>>> >>>> >>>> >>>disclose, copy or retain this email and you should notify the sender >>>immediately by return email or by contacting Sensis Pty Ltd by telephone >>> >>> >on > > >>>[+61 3 8653 5000] >>> >>> >>> >>> > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |
|
From: Juergen H. <ju...@in...> - 2005-03-11 22:21:01
|
Well, we could simply give this a try - we'll see whether defining
annotation classes and writing annotations access works with "-target 1.3".
Generics shouldn't be a problem when just accessing an API - that should
(hopefully) not require "-target 1.5". Anyway, let's give this a try!
On this occasion: Where does the JDK 1.5 transaction annotation code reside?
I can't find it in Spring CVS yet... We need to proceed quickly here; after
all, 1.2 RC1 is less than a week a way.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Colin Sampaleanu
Sent: Friday, March 11, 2005 10:34 PM
To: spr...@li...
Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2
rc1
We we do need to include the actual Annotation source files somewhere...
On top of that, yes, you access the actual annotations via calls like
Annotation ann = targetClass.getAnnotation(filter);
or
Annotation ann = targetMethod.getAnnotation(filter);
Now Annotation itself is for the most part just a regular Interface, but
it does have a method in it
Class<? extends Annotation> annotationType();
which is 1.5 syntax specific, so I personally think 1.3 code is going to
barf on trying to use this interface, never mind that in practice, any
code which gets the annotation will quickly try to see if it's a
specific type (subclass) of Annotation (since this is just a marker
interface that does nothing by itself), and do something with it, so
really the code that manipulates the Annotations themselves would have
to be compiled as 1.5 as well.
Colin
Juergen Hoeller wrote:
>Well, we only want to *access* annotations through the corresponding JDK
1.5
>API. That should be possible with -source 1.3 and -target 1.3 too, if I
>understand the issue correctly.
>
>The only thing we can't do is include annotations in our sources and expect
>them to be compiled into the class files. Please let me know if I'm
>completely mistaken :-)
>
>Juergen
>
>
>-----Original Message-----
>From: spr...@li...
>[mailto:spr...@li...]On Behalf
>Of Colin Sampaleanu
>Sent: Friday, March 11, 2005 10:01 PM
>To: spr...@li...
>Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2
>rc1
>
>
>I think JDK 1.5 generating 1.3 compatible code would hopefully work
>fine. But realistically, we _do_ want to use annotations, as in the
>current Tx Annotations code... So there the problem becomes that if
>everything is in the same codebase, you can't really compile some parts
>with -1.3, and some with -1.5.
>
>Juergen Hoeller wrote:
>
>
>
>>Well, as long as we just compile against JDK 1.5 API or jars built with
JDK
>>1.5 (like hibernate-annotations.jar), we should be able to build
>>with -target 1.3 on JDK 1.5. Thinks just become hard if we intend to
>>
>>
>include
>
>
>>annotations in some of our files or use generics.
>>
>>Admittedly, I haven't played with JDK 1.5 generating 1.3-compatible class
>>files yet...
>>
>>Juergen
>>
>>
>>-----Original Message-----
>>From: spr...@li...
>>[mailto:spr...@li...]On Behalf
>>Of Colin Sampaleanu
>>Sent: Friday, March 11, 2005 12:51 AM
>>To: spr...@li...
>>Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2
>>rc1
>>
>>
>>Short of switching to separate source modules (hint hint :-) ), that's
>>going to be pretty hard to do. We can compile with JDK 1.5, for lower
>>target versions, but then if you don't specify a 1.5 target version, the
>>annotations stuff would blow up.
>>
>>
>>Juergen Hoeller wrote:
>>
>>
>>
>>
>>
>>>Thanks for the suggestion, Dan! I've prototypically added such an
>>>AnnotationsSessionFactoryBean.
>>>However, the Hibernate3 annotations jar is built with JDK 1.5, so we
>>>can only build and ship this class if our build process switches to
>>>JDK 1.5 required too. We might switch to building with JDK 1.5 anyway,
>>>though, for our new transaction annotation feature that we'd like to
>>>ship in Spring 1.2.
>>>Juergen
>>>
>>> -----Original Message-----
>>> *From:* spr...@li...
>>> [mailto:spr...@li...]*On
>>> Behalf Of *Washusen, Dan
>>> *Sent:* Thursday, March 10, 2005 7:09 AM
>>> *To:* spr...@li...
>>> *Subject:* RE: [Springframework-developer] Hibernate 3 annotations
>>> in 1.2 rc1
>>>
>>> Incase anyone is interested; I’ve attached an implementation of
>>> the bean definition I described below.
>>>
>>> Cheers,
>>>
>>> Dan
>>>
>>> ----------------------------------------------------------------------
>>>
>>>
>>>
>>>
>>--
>>
>>
>>
>>
>>> *From:* spr...@li...
>>> [mailto:spr...@li...] *On
>>> Behalf Of *Washusen, Dan
>>> *Sent:* Wednesday, 9 March 2005 12:29 PM
>>> *To:* spr...@li...
>>> *Subject:* [Springframework-developer] Hibernate 3 annotations in
>>> 1.2 rc1
>>>
>>> Hey guys,
>>>
>>> I’ve bean mucking around with Hibernate 3 (with annotations)
>>> support in nightly build. All is going well but I thought I would
>>> offer some feedback…
>>>
>>> 1. I had to extend the
>>> org.springframework.orm.hibernate3.LocalSessionFactoryBean
>>> class and override the newConfiguration() method to return
>>> an instance of org.hibernate.cfg.AnnotationConfiguration.
>>> 2. I then moved the list of mappings (from hibernate2)
>>> specified by mappingResources into the hibernate.cfg.xml
>>> file (using the format specified by the Hibernate
>>> annotations page) and specified the location using the
>>> configLocation property.
>>>
>>> Pretty easy really…
>>>
>>> A provided extension of LocalSessionFactoryBean that had support
>>> for annotated classes would be nice. The bean definition could
>>> look something like:
>>>
>>> <bean id="sessionFactory"
>>>
>>>
>>>
>>>
>>>
>>class="org.springframework.orm.hibernate3.AnnotationsLocalSessionFactoryBe
a
>>
>>
>n
>
>
>>">
>>
>>
>>
>>
>>> <property name="dataSource">
>>>
>>> <ref local="dataSource"/>
>>>
>>> </property>
>>>
>>> <property name="mappingPackage">
>>>
>>> <value>some.package</value>
>>>
>>> </property>
>>>
>>> <property name="annotatedClasses">
>>>
>>> <list>
>>>
>>> <value>com.package.Foo</value>
>>>
>>> <value>com.package.Bar</value>
>>>
>>> </list>
>>>
>>> </property>
>>>
>>> </bean>
>>>
>>> Cheers,
>>>
>>> Dan
>>>
>>>www.sensis.com.au
>>>
>>>A leading Australian advertising, information
>>>
>>>and directories business.
>>>
>>>
>>>www.yellowpages.com.au
>>>www.whitepages.com.au
>>>www.citysearch.com.au
>>>www.whereis.com.au
>>>www.telstra.com.au
>>>www.tradingpost.com.au
>>>
>>>This email and any attachments are intended only for the use of the
>>>
>>>
>>>
>>>
>>recipient and may be confidential and/or legally privileged.
>>
>>
>>
>>
>>>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses,
>>>
>>>
>loss
>
>
>>>
>>>
>>and/or damage arising from using, opening or transmitting this email.
>>
>>
>>
>>
>>>If you are not the intended recipient you must not use, interfere with,
>>>
>>>
>>>
>>>
>>disclose, copy or retain this email and you should notify the sender
>>immediately by return email or by contacting Sensis Pty Ltd by telephone
on
>>[+61 3 8653 5000]
>>
>>
>>
>>
>>>www.sensis.com.au
>>>
>>>A leading Australian advertising, information
>>>
>>>and directories business.
>>>
>>>
>>>www.yellowpages.com.au
>>>www.whitepages.com.au
>>>www.citysearch.com.au
>>>www.whereis.com.au
>>>www.telstra.com.au
>>>www.tradingpost.com.au
>>>
>>>This email and any attachments are intended only for the use of the
>>>
>>>
>>>
>>>
>>recipient and may be confidential and/or legally privileged.
>>
>>
>>
>>
>>>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses,
>>>
>>>
>loss
>
>
>>>
>>>
>>and/or damage arising from using, opening or transmitting this email.
>>
>>
>>
>>
>>>If you are not the intended recipient you must not use, interfere with,
>>>
>>>
>>>
>>>
>>disclose, copy or retain this email and you should notify the sender
>>immediately by return email or by contacting Sensis Pty Ltd by telephone
on
>>[+61 3 8653 5000]
>>
>>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Juergen H. <ju...@in...> - 2005-03-11 22:10:36
|
Right, this would be overkill ;-)
Seriously, there is not much point in this. All of Spring's Resource
implementations provide a fresh InputStream on getInputStream(), just
InputStreamResource doesn't.
Even with a custom InputStreamSource, there should be a way to provide a
fresh InputStream for each call - in all cases. After all, the InputStream
must come from somewhere, so it should be straightforward to reopen a
stream. That's the reason why the InputStreamSource interface exists in the
first place - else we could pass in the InputStream directly.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Matt Sgarlata
Sent: Friday, March 11, 2005 10:37 PM
To: spr...@li...
Subject: [Springframework-developer] Re: [Springframework-user] Re: Send
email with attachment
This might be overkill, but Spring could provide a
ReusableInputStreamProxy that was passed down to the JavaMail
infrastructure to avoid this limitation. The proxy would keep a copy of
the contents of the InputStream in memory so that it could be accessed
multiple times.
Matt
Juergen Hoeller wrote:
> This is a general problem with JavaMail: It will read any such InputStream
> from a javax.activation.DataSource multiple times. Consequently, a
> DataSource needs to return a fresh InputStream on each getInputStream()
> call. Passing the raw InputStream wouldn't help here; this is a general
> limitation.
>
> Actually, the javadoc of "addAttachment(String attachmentFilename,
> DataSource dataSource)" points this out. I'll add a corresponding warning
to
> the addAttachment version that takes an InputStreamSource too.
> InputStreamResource itself recommends to return a fresh stream too, BTW.
>
> I also consider adding a check and corresponding exception to the
> addAttachment version that takes an InputStreamSource: if the passed-in
> object is a core.io.Resource whose isOpen() method returns true, it's
> clearly an invalid argument - we need a Resource that is able to return a
> fresh InputStream every time.
>
> Juergen
>
>
>
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...]On Behalf
> Of Dmitriy Kopylenko
> Sent: Friday, March 11, 2005 8:21 PM
> To: spr...@li...
> Subject: [Springframework-developer] Re: [Springframework-user] Re: Send
> email with attachment
>
>
> After doing some debugging, I think I found a (bug?) in
> MimeMessageHelper.createDatasource(). The method creates an anonymous
> instance of javax activation DataSource with getInputStream() impl
> which calls inputStreamSource.getInputStream(). It all works fine for
> all the InputStreamSources except for InputStreamResource which allows
> to read wrapped InputStream only once, therefore throwing
> IllegalStateException whenever java mail classes e.g. Transport tries to
> call DataSource.getInputStream() multiple times.
>
> Juergen, would it be reasonable to pass a raw InputStream into
> MimeMessageHelper.createDatasource() or as an alternative "disallow"
> usage of InputStreamResource in MimeMessageHelper? I'd rather do the
> former.
>
> Regards,
> Dmitriy.
>
>
> Ken Krebs wrote:
>
>
>>Henry,
>>
>>From what I can see of your code, it looks like you're getting an
>>InputStream to read a file and manipulating the same file with a
>>separate OutputStream, and then resending the original InputStream,
>>which has already been wound to the end, wrapping this InputStream in
>>a resource and sending the resource as the attachment to the email.
>>
>>Your comment implies you want to send the contents of the file that
>>resulted from your manipulation with the OutputStream. It seems to me
>>you should simply close the original InputStream, create a new
>>InputStream after the file has been manipulated, wrap that in the
>>resource and attach the resource.
>>
>>Ken
>>
>>Henry Lu wrote:
>>
>>
>>>Here is the original code:
>>>
>>>outStream = new ByteArrayOutputStream();
>>> act7 = new Actuate7ReportGenerator();
>>>
>>> LOGGER.debug("report - 1");
>>> success = act7.generateReportInPdf(rptName, paramMap,
>>>outStream, jds);
>>>Then I 'd like to send outStream as an attachment to a email.
>>>
>>>-Henry
>>>
>>>Dmitriy Kopylenko wrote:
>>>
>>>
>>>>And what is the body of doFOP() [related to the InputStream passed in]?
>>>>
>>>>Henry Lu wrote:
>>>>
>>>>
>>>>> class MyStreamMail implements MimeMessagePreparator
>>>>> {
>>>>> InputStream m_fp;
>>>>> public MyStreamMail(InputStream fp)
>>>>> {m_fp = fp;}
>>>>>
>>>>> public void prepare(MimeMessage mimeMessage)
>>>>> throws Exception
>>>>> {
>>>>> MimeMessageHelper message = new
>>>>>MimeMessageHelper(mimeMessage, true, "UTF-8");
>>>>> message.setFrom("zh...@um...");
>>>>> message.setTo("zh...@um...");
>>>>> message.setSubject("my test");
>>>>> message.setText("my test text <img src='cid:myLogo'>", true);
>>>>> message.addInline("myLogo", new
>>>>>ClassPathResource("yellowkey.gif"));
>>>>>
>>>>> message.addAttachment("00.pdf", new
>>>>>InputStreamResource(m_fp));
>>>>> }
>>>>> }
>>>>>
>>>>> ByteArrayInputStream st = new ByteArrayInputStream();
>>>>> doFOP(input_file, st);
>>>>>
>>>>> MyStreamMail mmsg = new MyStreamMail(st);
>>>>> try {
>>>>> mailSender.send(mmsg);
>>>>> } catch (MailException ex)
>>>>> { System.out.println(ex.getMessage()); }
>>>>>
>>>>>-Henry
>>>>>
>>>>>Dmitriy Kopylenko wrote:
>>>>>
>>>>>
>>>>>>So, would you please show the entire snippet of code where you
>>>>>>obtain the InputStream
>>>>>>
>>>>>>Henry Lu wrote:
>>>>>>
>>>>>>
>>>>>>>Mr. Kopylenko, thanks for your quick response. I don't have an
>>>>>>>existing file for an attachement. All I have is a inputStream of
>>>>>>>output from another function.
>>>>>>>
>>>>>>>-Henry
>>>>>>>
>>>>>>>Dmitriy Kopylenko wrote:
>>>>>>>
>>>>>>>
>>>>>>>>Henry,
>>>>>>>>
>>>>>>>>how do you obtain the InputStream "inputStream" in your code,
>>>>>>>>before you try to wrap it with InputStreamResource?
>>>>>>>>
>>>>>>>>You could use FileSystemResource instead i.e.
>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here", new
>>>>>>>>FileSystemResource(new
>>>>>>>>File("path_to_the_file/myattachmentname.extension_goes_here"));
>>>>>>>>
>>>>>>>>Dmitriy.
>>>>>>>>
>>>>>>>>
>>>>>>>>Henry Lu wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>>Could you show me a simple working example of this?
>>>>>>>>>
>>>>>>>>>-Henry
>>>>>>>>>
>>>>>>>>>Dmitriy Kopylenko wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>InputStreamResource could only wrap the underlying InputSrteam
>>>>>>>>>>if it hasn't been read multiple times.
>>>>>>>>>>
>>>>>>>>>>Dmitriy.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>Henry Lu wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>Is there anyone who can help me why I got the following
>>>>>>>>>>>errors when I ran the code:
>>>>>>>>>>>
>>>>>>>>>>>MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,
>>>>>>>>>>>true);
>>>>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>>>new InputStreamResource(inputStream));
>>>>>>>>>>>
>>>>>>>>>>>ERROR:
>>>>>>>>>>> [java] Could not prepare mail: InputStream has already
>>>>>>>>>>>been read - do not u
>>>>>>>>>>>se InputStreamResource if a stream needs to be read multiple
>>>>>>>>>>>times; nested excep
>>>>>>>>>>>tion is java.lang.IllegalStateException: InputStream has
>>>>>>>>>>>already been read - do
>>>>>>>>>>>not use InputStreamResource if a stream needs to be read
>>>>>>>>>>>multiple times
>>>>>>>>>>>
>>>>>>>>>>>-Henry
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>Matt Sgarlata wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>MimeMessageHelper helper = new
>>>>>>>>>>>>MimeMessageHelper(mimeMessage, true);
>>>>>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>>>>new InputStreamResource(inputStream));
>>>>>>>>>>>>
>>>>>>>>>>>>The rest of the code you need is in the reference
>>>>>>>>>>>>documentation.
>>>>>>>>>>>>
>>>>>>>>>>>>Matt
>>>>>>>>>>>>
>>>>>>>>>>>>Henry Lu wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>Can someone show me an example how to send an email with an
>>>>>>>>>>>>>attachment with stream instead of file name of File object
>>>>>>>>>>>>>in Spring package?
>>>>>>>>>>>>>
>>>>>>>>>>>>>-Henry
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products
>>>>>>>>>>>>>from real users.
>>>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>>>reading now.
>>>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>>>real users.
>>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>>reading now.
>>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>>_______________________________________________
>>>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>>>Spr...@li...
>>>>>>>>>>>>
>
> https://lists.sourceforge.net/lists/listinfo/springframework-user
>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>>real users.
>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>reading now.
>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>_______________________________________________
>>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>>Spr...@li...
>>>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>real users.
>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>reading now.
>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>_______________________________________________
>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>Spr...@li...
>>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>-------------------------------------------------------
>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>real users.
>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>reading now.
>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>_______________________________________________
>>>>>>>>>Springframework-user mailing list
>>>>>>>>>Spr...@li...
>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>-------------------------------------------------------
>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>real users.
>>>>>>>>Discover which products truly live up to the hype. Start reading
>>>>>>>>now.
>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>_______________________________________________
>>>>>>>>Springframework-user mailing list
>>>>>>>>Spr...@li...
>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>-------------------------------------------------------
>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>>>users.
>>>>>>>Discover which products truly live up to the hype. Start reading
>>>>>>>now.
>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>_______________________________________________
>>>>>>>Springframework-user mailing list
>>>>>>>Spr...@li...
>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>-------------------------------------------------------
>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>>users.
>>>>>>Discover which products truly live up to the hype. Start reading now.
>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>_______________________________________________
>>>>>>Springframework-user mailing list
>>>>>>Spr...@li...
>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>-------------------------------------------------------
>>>>>SF email is sponsored by - The IT Product Guide
>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>users.
>>>>>Discover which products truly live up to the hype. Start reading now.
>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>_______________________________________________
>>>>>Springframework-user mailing list
>>>>>Spr...@li...
>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>SF email is sponsored by - The IT Product Guide
>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>users.
>>>>Discover which products truly live up to the hype. Start reading now.
>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>_______________________________________________
>>>>Springframework-user mailing list
>>>>Spr...@li...
>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>
>>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>_______________________________________________
>>>Springframework-user mailing list
>>>Spr...@li...
>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>>
>>
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Springframework-user mailing list
>>Spr...@li...
>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Matt S. <sga...@us...> - 2005-03-11 21:37:51
|
This might be overkill, but Spring could provide a
ReusableInputStreamProxy that was passed down to the JavaMail
infrastructure to avoid this limitation. The proxy would keep a copy of
the contents of the InputStream in memory so that it could be accessed
multiple times.
Matt
Juergen Hoeller wrote:
> This is a general problem with JavaMail: It will read any such InputStream
> from a javax.activation.DataSource multiple times. Consequently, a
> DataSource needs to return a fresh InputStream on each getInputStream()
> call. Passing the raw InputStream wouldn't help here; this is a general
> limitation.
>
> Actually, the javadoc of "addAttachment(String attachmentFilename,
> DataSource dataSource)" points this out. I'll add a corresponding warning to
> the addAttachment version that takes an InputStreamSource too.
> InputStreamResource itself recommends to return a fresh stream too, BTW.
>
> I also consider adding a check and corresponding exception to the
> addAttachment version that takes an InputStreamSource: if the passed-in
> object is a core.io.Resource whose isOpen() method returns true, it's
> clearly an invalid argument - we need a Resource that is able to return a
> fresh InputStream every time.
>
> Juergen
>
>
>
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...]On Behalf
> Of Dmitriy Kopylenko
> Sent: Friday, March 11, 2005 8:21 PM
> To: spr...@li...
> Subject: [Springframework-developer] Re: [Springframework-user] Re: Send
> email with attachment
>
>
> After doing some debugging, I think I found a (bug?) in
> MimeMessageHelper.createDatasource(). The method creates an anonymous
> instance of javax activation DataSource with getInputStream() impl
> which calls inputStreamSource.getInputStream(). It all works fine for
> all the InputStreamSources except for InputStreamResource which allows
> to read wrapped InputStream only once, therefore throwing
> IllegalStateException whenever java mail classes e.g. Transport tries to
> call DataSource.getInputStream() multiple times.
>
> Juergen, would it be reasonable to pass a raw InputStream into
> MimeMessageHelper.createDatasource() or as an alternative "disallow"
> usage of InputStreamResource in MimeMessageHelper? I'd rather do the
> former.
>
> Regards,
> Dmitriy.
>
>
> Ken Krebs wrote:
>
>
>>Henry,
>>
>>From what I can see of your code, it looks like you're getting an
>>InputStream to read a file and manipulating the same file with a
>>separate OutputStream, and then resending the original InputStream,
>>which has already been wound to the end, wrapping this InputStream in
>>a resource and sending the resource as the attachment to the email.
>>
>>Your comment implies you want to send the contents of the file that
>>resulted from your manipulation with the OutputStream. It seems to me
>>you should simply close the original InputStream, create a new
>>InputStream after the file has been manipulated, wrap that in the
>>resource and attach the resource.
>>
>>Ken
>>
>>Henry Lu wrote:
>>
>>
>>>Here is the original code:
>>>
>>>outStream = new ByteArrayOutputStream();
>>> act7 = new Actuate7ReportGenerator();
>>>
>>> LOGGER.debug("report - 1");
>>> success = act7.generateReportInPdf(rptName, paramMap,
>>>outStream, jds);
>>>Then I 'd like to send outStream as an attachment to a email.
>>>
>>>-Henry
>>>
>>>Dmitriy Kopylenko wrote:
>>>
>>>
>>>>And what is the body of doFOP() [related to the InputStream passed in]?
>>>>
>>>>Henry Lu wrote:
>>>>
>>>>
>>>>> class MyStreamMail implements MimeMessagePreparator
>>>>> {
>>>>> InputStream m_fp;
>>>>> public MyStreamMail(InputStream fp)
>>>>> {m_fp = fp;}
>>>>>
>>>>> public void prepare(MimeMessage mimeMessage)
>>>>> throws Exception
>>>>> {
>>>>> MimeMessageHelper message = new
>>>>>MimeMessageHelper(mimeMessage, true, "UTF-8");
>>>>> message.setFrom("zh...@um...");
>>>>> message.setTo("zh...@um...");
>>>>> message.setSubject("my test");
>>>>> message.setText("my test text <img src='cid:myLogo'>", true);
>>>>> message.addInline("myLogo", new
>>>>>ClassPathResource("yellowkey.gif"));
>>>>>
>>>>> message.addAttachment("00.pdf", new
>>>>>InputStreamResource(m_fp));
>>>>> }
>>>>> }
>>>>>
>>>>> ByteArrayInputStream st = new ByteArrayInputStream();
>>>>> doFOP(input_file, st);
>>>>>
>>>>> MyStreamMail mmsg = new MyStreamMail(st);
>>>>> try {
>>>>> mailSender.send(mmsg);
>>>>> } catch (MailException ex)
>>>>> { System.out.println(ex.getMessage()); }
>>>>>
>>>>>-Henry
>>>>>
>>>>>Dmitriy Kopylenko wrote:
>>>>>
>>>>>
>>>>>>So, would you please show the entire snippet of code where you
>>>>>>obtain the InputStream
>>>>>>
>>>>>>Henry Lu wrote:
>>>>>>
>>>>>>
>>>>>>>Mr. Kopylenko, thanks for your quick response. I don't have an
>>>>>>>existing file for an attachement. All I have is a inputStream of
>>>>>>>output from another function.
>>>>>>>
>>>>>>>-Henry
>>>>>>>
>>>>>>>Dmitriy Kopylenko wrote:
>>>>>>>
>>>>>>>
>>>>>>>>Henry,
>>>>>>>>
>>>>>>>>how do you obtain the InputStream "inputStream" in your code,
>>>>>>>>before you try to wrap it with InputStreamResource?
>>>>>>>>
>>>>>>>>You could use FileSystemResource instead i.e.
>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here", new
>>>>>>>>FileSystemResource(new
>>>>>>>>File("path_to_the_file/myattachmentname.extension_goes_here"));
>>>>>>>>
>>>>>>>>Dmitriy.
>>>>>>>>
>>>>>>>>
>>>>>>>>Henry Lu wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>>Could you show me a simple working example of this?
>>>>>>>>>
>>>>>>>>>-Henry
>>>>>>>>>
>>>>>>>>>Dmitriy Kopylenko wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>InputStreamResource could only wrap the underlying InputSrteam
>>>>>>>>>>if it hasn't been read multiple times.
>>>>>>>>>>
>>>>>>>>>>Dmitriy.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>Henry Lu wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>Is there anyone who can help me why I got the following
>>>>>>>>>>>errors when I ran the code:
>>>>>>>>>>>
>>>>>>>>>>>MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,
>>>>>>>>>>>true);
>>>>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>>>new InputStreamResource(inputStream));
>>>>>>>>>>>
>>>>>>>>>>>ERROR:
>>>>>>>>>>> [java] Could not prepare mail: InputStream has already
>>>>>>>>>>>been read - do not u
>>>>>>>>>>>se InputStreamResource if a stream needs to be read multiple
>>>>>>>>>>>times; nested excep
>>>>>>>>>>>tion is java.lang.IllegalStateException: InputStream has
>>>>>>>>>>>already been read - do
>>>>>>>>>>>not use InputStreamResource if a stream needs to be read
>>>>>>>>>>>multiple times
>>>>>>>>>>>
>>>>>>>>>>>-Henry
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>Matt Sgarlata wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>MimeMessageHelper helper = new
>>>>>>>>>>>>MimeMessageHelper(mimeMessage, true);
>>>>>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>>>>new InputStreamResource(inputStream));
>>>>>>>>>>>>
>>>>>>>>>>>>The rest of the code you need is in the reference
>>>>>>>>>>>>documentation.
>>>>>>>>>>>>
>>>>>>>>>>>>Matt
>>>>>>>>>>>>
>>>>>>>>>>>>Henry Lu wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>Can someone show me an example how to send an email with an
>>>>>>>>>>>>>attachment with stream instead of file name of File object
>>>>>>>>>>>>>in Spring package?
>>>>>>>>>>>>>
>>>>>>>>>>>>>-Henry
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products
>>>>>>>>>>>>>from real users.
>>>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>>>reading now.
>>>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>>>real users.
>>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>>reading now.
>>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>>_______________________________________________
>>>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>>>Spr...@li...
>>>>>>>>>>>>
>
> https://lists.sourceforge.net/lists/listinfo/springframework-user
>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>>real users.
>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>reading now.
>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>_______________________________________________
>>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>>Spr...@li...
>>>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>real users.
>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>reading now.
>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>_______________________________________________
>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>Spr...@li...
>>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>-------------------------------------------------------
>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>real users.
>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>reading now.
>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>_______________________________________________
>>>>>>>>>Springframework-user mailing list
>>>>>>>>>Spr...@li...
>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>-------------------------------------------------------
>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>real users.
>>>>>>>>Discover which products truly live up to the hype. Start reading
>>>>>>>>now.
>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>_______________________________________________
>>>>>>>>Springframework-user mailing list
>>>>>>>>Spr...@li...
>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>-------------------------------------------------------
>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>>>users.
>>>>>>>Discover which products truly live up to the hype. Start reading
>>>>>>>now.
>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>_______________________________________________
>>>>>>>Springframework-user mailing list
>>>>>>>Spr...@li...
>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>-------------------------------------------------------
>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>>users.
>>>>>>Discover which products truly live up to the hype. Start reading now.
>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>_______________________________________________
>>>>>>Springframework-user mailing list
>>>>>>Spr...@li...
>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>-------------------------------------------------------
>>>>>SF email is sponsored by - The IT Product Guide
>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>users.
>>>>>Discover which products truly live up to the hype. Start reading now.
>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>_______________________________________________
>>>>>Springframework-user mailing list
>>>>>Spr...@li...
>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>SF email is sponsored by - The IT Product Guide
>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>users.
>>>>Discover which products truly live up to the hype. Start reading now.
>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>_______________________________________________
>>>>Springframework-user mailing list
>>>>Spr...@li...
>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>
>>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>_______________________________________________
>>>Springframework-user mailing list
>>>Spr...@li...
>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>>
>>
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Springframework-user mailing list
>>Spr...@li...
>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
|
|
From: Colin S. <col...@ex...> - 2005-03-11 21:33:42
|
We we do need to include the actual Annotation source files somewhere...
On top of that, yes, you access the actual annotations via calls like
Annotation ann = targetClass.getAnnotation(filter);
or
Annotation ann = targetMethod.getAnnotation(filter);
Now Annotation itself is for the most part just a regular Interface, but
it does have a method in it
Class<? extends Annotation> annotationType();
which is 1.5 syntax specific, so I personally think 1.3 code is going to
barf on trying to use this interface, never mind that in practice, any
code which gets the annotation will quickly try to see if it's a
specific type (subclass) of Annotation (since this is just a marker
interface that does nothing by itself), and do something with it, so
really the code that manipulates the Annotations themselves would have
to be compiled as 1.5 as well.
Colin
Juergen Hoeller wrote:
>Well, we only want to *access* annotations through the corresponding JDK 1.5
>API. That should be possible with -source 1.3 and -target 1.3 too, if I
>understand the issue correctly.
>
>The only thing we can't do is include annotations in our sources and expect
>them to be compiled into the class files. Please let me know if I'm
>completely mistaken :-)
>
>Juergen
>
>
>-----Original Message-----
>From: spr...@li...
>[mailto:spr...@li...]On Behalf
>Of Colin Sampaleanu
>Sent: Friday, March 11, 2005 10:01 PM
>To: spr...@li...
>Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2
>rc1
>
>
>I think JDK 1.5 generating 1.3 compatible code would hopefully work
>fine. But realistically, we _do_ want to use annotations, as in the
>current Tx Annotations code... So there the problem becomes that if
>everything is in the same codebase, you can't really compile some parts
>with -1.3, and some with -1.5.
>
>Juergen Hoeller wrote:
>
>
>
>>Well, as long as we just compile against JDK 1.5 API or jars built with JDK
>>1.5 (like hibernate-annotations.jar), we should be able to build
>>with -target 1.3 on JDK 1.5. Thinks just become hard if we intend to
>>
>>
>include
>
>
>>annotations in some of our files or use generics.
>>
>>Admittedly, I haven't played with JDK 1.5 generating 1.3-compatible class
>>files yet...
>>
>>Juergen
>>
>>
>>-----Original Message-----
>>From: spr...@li...
>>[mailto:spr...@li...]On Behalf
>>Of Colin Sampaleanu
>>Sent: Friday, March 11, 2005 12:51 AM
>>To: spr...@li...
>>Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2
>>rc1
>>
>>
>>Short of switching to separate source modules (hint hint :-) ), that's
>>going to be pretty hard to do. We can compile with JDK 1.5, for lower
>>target versions, but then if you don't specify a 1.5 target version, the
>>annotations stuff would blow up.
>>
>>
>>Juergen Hoeller wrote:
>>
>>
>>
>>
>>
>>>Thanks for the suggestion, Dan! I've prototypically added such an
>>>AnnotationsSessionFactoryBean.
>>>However, the Hibernate3 annotations jar is built with JDK 1.5, so we
>>>can only build and ship this class if our build process switches to
>>>JDK 1.5 required too. We might switch to building with JDK 1.5 anyway,
>>>though, for our new transaction annotation feature that we'd like to
>>>ship in Spring 1.2.
>>>Juergen
>>>
>>> -----Original Message-----
>>> *From:* spr...@li...
>>> [mailto:spr...@li...]*On
>>> Behalf Of *Washusen, Dan
>>> *Sent:* Thursday, March 10, 2005 7:09 AM
>>> *To:* spr...@li...
>>> *Subject:* RE: [Springframework-developer] Hibernate 3 annotations
>>> in 1.2 rc1
>>>
>>> Incase anyone is interested; I’ve attached an implementation of
>>> the bean definition I described below.
>>>
>>> Cheers,
>>>
>>> Dan
>>>
>>> ----------------------------------------------------------------------
>>>
>>>
>>>
>>>
>>--
>>
>>
>>
>>
>>> *From:* spr...@li...
>>> [mailto:spr...@li...] *On
>>> Behalf Of *Washusen, Dan
>>> *Sent:* Wednesday, 9 March 2005 12:29 PM
>>> *To:* spr...@li...
>>> *Subject:* [Springframework-developer] Hibernate 3 annotations in
>>> 1.2 rc1
>>>
>>> Hey guys,
>>>
>>> I’ve bean mucking around with Hibernate 3 (with annotations)
>>> support in nightly build. All is going well but I thought I would
>>> offer some feedback…
>>>
>>> 1. I had to extend the
>>> org.springframework.orm.hibernate3.LocalSessionFactoryBean
>>> class and override the newConfiguration() method to return
>>> an instance of org.hibernate.cfg.AnnotationConfiguration.
>>> 2. I then moved the list of mappings (from hibernate2)
>>> specified by mappingResources into the hibernate.cfg.xml
>>> file (using the format specified by the Hibernate
>>> annotations page) and specified the location using the
>>> configLocation property.
>>>
>>> Pretty easy really…
>>>
>>> A provided extension of LocalSessionFactoryBean that had support
>>> for annotated classes would be nice. The bean definition could
>>> look something like:
>>>
>>> <bean id="sessionFactory"
>>>
>>>
>>>
>>>
>>>
>>class="org.springframework.orm.hibernate3.AnnotationsLocalSessionFactoryBea
>>
>>
>n
>
>
>>">
>>
>>
>>
>>
>>> <property name="dataSource">
>>>
>>> <ref local="dataSource"/>
>>>
>>> </property>
>>>
>>> <property name="mappingPackage">
>>>
>>> <value>some.package</value>
>>>
>>> </property>
>>>
>>> <property name="annotatedClasses">
>>>
>>> <list>
>>>
>>> <value>com.package.Foo</value>
>>>
>>> <value>com.package.Bar</value>
>>>
>>> </list>
>>>
>>> </property>
>>>
>>> </bean>
>>>
>>> Cheers,
>>>
>>> Dan
>>>
>>>www.sensis.com.au
>>>
>>>A leading Australian advertising, information
>>>
>>>and directories business.
>>>
>>>
>>>www.yellowpages.com.au
>>>www.whitepages.com.au
>>>www.citysearch.com.au
>>>www.whereis.com.au
>>>www.telstra.com.au
>>>www.tradingpost.com.au
>>>
>>>This email and any attachments are intended only for the use of the
>>>
>>>
>>>
>>>
>>recipient and may be confidential and/or legally privileged.
>>
>>
>>
>>
>>>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses,
>>>
>>>
>loss
>
>
>>>
>>>
>>and/or damage arising from using, opening or transmitting this email.
>>
>>
>>
>>
>>>If you are not the intended recipient you must not use, interfere with,
>>>
>>>
>>>
>>>
>>disclose, copy or retain this email and you should notify the sender
>>immediately by return email or by contacting Sensis Pty Ltd by telephone on
>>[+61 3 8653 5000]
>>
>>
>>
>>
>>>www.sensis.com.au
>>>
>>>A leading Australian advertising, information
>>>
>>>and directories business.
>>>
>>>
>>>www.yellowpages.com.au
>>>www.whitepages.com.au
>>>www.citysearch.com.au
>>>www.whereis.com.au
>>>www.telstra.com.au
>>>www.tradingpost.com.au
>>>
>>>This email and any attachments are intended only for the use of the
>>>
>>>
>>>
>>>
>>recipient and may be confidential and/or legally privileged.
>>
>>
>>
>>
>>>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses,
>>>
>>>
>loss
>
>
>>>
>>>
>>and/or damage arising from using, opening or transmitting this email.
>>
>>
>>
>>
>>>If you are not the intended recipient you must not use, interfere with,
>>>
>>>
>>>
>>>
>>disclose, copy or retain this email and you should notify the sender
>>immediately by return email or by contacting Sensis Pty Ltd by telephone on
>>[+61 3 8653 5000]
>>
>>
|
|
From: Juergen H. <ju...@in...> - 2005-03-11 21:25:09
|
Well, we only want to *access* annotations through the corresponding JDK 1.5 API. That should be possible with -source 1.3 and -target 1.3 too, if I understand the issue correctly. The only thing we can't do is include annotations in our sources and expect them to be compiled into the class files. Please let me know if I'm completely mistaken :-) Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Colin Sampaleanu Sent: Friday, March 11, 2005 10:01 PM To: spr...@li... Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 rc1 I think JDK 1.5 generating 1.3 compatible code would hopefully work fine. But realistically, we _do_ want to use annotations, as in the current Tx Annotations code... So there the problem becomes that if everything is in the same codebase, you can't really compile some parts with -1.3, and some with -1.5. Juergen Hoeller wrote: >Well, as long as we just compile against JDK 1.5 API or jars built with JDK >1.5 (like hibernate-annotations.jar), we should be able to build >with -target 1.3 on JDK 1.5. Thinks just become hard if we intend to include >annotations in some of our files or use generics. > >Admittedly, I haven't played with JDK 1.5 generating 1.3-compatible class >files yet... > >Juergen > > >-----Original Message----- >From: spr...@li... >[mailto:spr...@li...]On Behalf >Of Colin Sampaleanu >Sent: Friday, March 11, 2005 12:51 AM >To: spr...@li... >Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 >rc1 > > >Short of switching to separate source modules (hint hint :-) ), that's >going to be pretty hard to do. We can compile with JDK 1.5, for lower >target versions, but then if you don't specify a 1.5 target version, the >annotations stuff would blow up. > > >Juergen Hoeller wrote: > > > >>Thanks for the suggestion, Dan! I've prototypically added such an >>AnnotationsSessionFactoryBean. >>However, the Hibernate3 annotations jar is built with JDK 1.5, so we >>can only build and ship this class if our build process switches to >>JDK 1.5 required too. We might switch to building with JDK 1.5 anyway, >>though, for our new transaction annotation feature that we'd like to >>ship in Spring 1.2. >>Juergen >> >> -----Original Message----- >> *From:* spr...@li... >> [mailto:spr...@li...]*On >> Behalf Of *Washusen, Dan >> *Sent:* Thursday, March 10, 2005 7:09 AM >> *To:* spr...@li... >> *Subject:* RE: [Springframework-developer] Hibernate 3 annotations >> in 1.2 rc1 >> >> Incase anyone is interested; I’ve attached an implementation of >> the bean definition I described below. >> >> Cheers, >> >> Dan >> >> ---------------------------------------------------------------------- >> >> >-- > > >> *From:* spr...@li... >> [mailto:spr...@li...] *On >> Behalf Of *Washusen, Dan >> *Sent:* Wednesday, 9 March 2005 12:29 PM >> *To:* spr...@li... >> *Subject:* [Springframework-developer] Hibernate 3 annotations in >> 1.2 rc1 >> >> Hey guys, >> >> I’ve bean mucking around with Hibernate 3 (with annotations) >> support in nightly build. All is going well but I thought I would >> offer some feedback… >> >> 1. I had to extend the >> org.springframework.orm.hibernate3.LocalSessionFactoryBean >> class and override the newConfiguration() method to return >> an instance of org.hibernate.cfg.AnnotationConfiguration. >> 2. I then moved the list of mappings (from hibernate2) >> specified by mappingResources into the hibernate.cfg.xml >> file (using the format specified by the Hibernate >> annotations page) and specified the location using the >> configLocation property. >> >> Pretty easy really… >> >> A provided extension of LocalSessionFactoryBean that had support >> for annotated classes would be nice. The bean definition could >> look something like: >> >> <bean id="sessionFactory" >> >> >> >class="org.springframework.orm.hibernate3.AnnotationsLocalSessionFactoryBea n >"> > > >> <property name="dataSource"> >> >> <ref local="dataSource"/> >> >> </property> >> >> <property name="mappingPackage"> >> >> <value>some.package</value> >> >> </property> >> >> <property name="annotatedClasses"> >> >> <list> >> >> <value>com.package.Foo</value> >> >> <value>com.package.Bar</value> >> >> </list> >> >> </property> >> >> </bean> >> >> Cheers, >> >> Dan >> >>www.sensis.com.au >> >>A leading Australian advertising, information >> >>and directories business. >> >> >>www.yellowpages.com.au >>www.whitepages.com.au >>www.citysearch.com.au >>www.whereis.com.au >>www.telstra.com.au >>www.tradingpost.com.au >> >>This email and any attachments are intended only for the use of the >> >> >recipient and may be confidential and/or legally privileged. > > >>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss >> >> >and/or damage arising from using, opening or transmitting this email. > > >>If you are not the intended recipient you must not use, interfere with, >> >> >disclose, copy or retain this email and you should notify the sender >immediately by return email or by contacting Sensis Pty Ltd by telephone on >[+61 3 8653 5000] > > >>www.sensis.com.au >> >>A leading Australian advertising, information >> >>and directories business. >> >> >>www.yellowpages.com.au >>www.whitepages.com.au >>www.citysearch.com.au >>www.whereis.com.au >>www.telstra.com.au >>www.tradingpost.com.au >> >>This email and any attachments are intended only for the use of the >> >> >recipient and may be confidential and/or legally privileged. > > >>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss >> >> >and/or damage arising from using, opening or transmitting this email. > > >>If you are not the intended recipient you must not use, interfere with, >> >> >disclose, copy or retain this email and you should notify the sender >immediately by return email or by contacting Sensis Pty Ltd by telephone on >[+61 3 8653 5000] > > >> >> ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Darren D. <da...@sh...> - 2005-03-11 21:24:44
|
1110576280
FAILED
[junit] Testcase: testInvokeUnexposedMethodWithException took 0,054 sec
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,64 sec
[junit] Testsuite: org.springframework.jmx.access.MBeanProxyFactoryBeanTests
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,64 sec
[junit] Testcase: testProxyFactory took 0,056 sec
[junit] Testcase: testInvalidJdkProxy took 0,051 sec
[junit] Testcase: testWithLocatedMBeanServer took 0,064 sec
[junit] Testcase: testProxyFactoryBeanWithAutodetect took 0,436 sec
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 6,19 sec
[junit] Testsuite: org.springframework.jmx.access.RemoteMBeanClientInterceptorTests
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 6,19 sec
[junit] Testcase: testProxyClassIsDifferent took 6,149 sec
[junit] Caused an ERROR
[junit] Unable to obtain MBean info for bean [spring:test=proxy]: it is likely that this bean was unregistered during the proxy creation process; nested exception is javax.management.InstanceNotFoundException: spring:test=proxy
[junit] org.springframework.jmx.access.MBeanInfoRetrievalException: Unable to obtain MBean info for bean [spring:test=proxy]: it is likely that this bean was unregistered during the proxy creation process; nested exception is javax.management.InstanceNotFoundException: spring:test=proxy
[junit] javax.management.InstanceNotFoundException: spring:test=proxy
[junit] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1015)
[junit] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo(DefaultMBeanServerInterceptor.java:1308)
[junit] at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo(JmxMBeanServer.java:911)
[junit] at javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:264)
[junit] at javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727)
[junit] at javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629)
[junit] at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:249)
[junit] at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
[junit] at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
This is an automated mail from one of the SF Compile Farm machines.
The machine name noted in the subject encountered a failure building
or running the Spring test suite. The last few lines of the output
were included for info.
NB: No further mail will be sent from this machine until a
manual reset occurs on the cf-shell machine, although builds will
continue as scheduled.
See http://springframework.sourceforge.net/test/ for further
information.
|
|
From: Colin S. <col...@ex...> - 2005-03-11 21:01:23
|
I think JDK 1.5 generating 1.3 compatible code would hopefully work fine. But realistically, we _do_ want to use annotations, as in the current Tx Annotations code... So there the problem becomes that if everything is in the same codebase, you can't really compile some parts with -1.3, and some with -1.5. Juergen Hoeller wrote: >Well, as long as we just compile against JDK 1.5 API or jars built with JDK >1.5 (like hibernate-annotations.jar), we should be able to build >with -target 1.3 on JDK 1.5. Thinks just become hard if we intend to include >annotations in some of our files or use generics. > >Admittedly, I haven't played with JDK 1.5 generating 1.3-compatible class >files yet... > >Juergen > > >-----Original Message----- >From: spr...@li... >[mailto:spr...@li...]On Behalf >Of Colin Sampaleanu >Sent: Friday, March 11, 2005 12:51 AM >To: spr...@li... >Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 >rc1 > > >Short of switching to separate source modules (hint hint :-) ), that's >going to be pretty hard to do. We can compile with JDK 1.5, for lower >target versions, but then if you don't specify a 1.5 target version, the >annotations stuff would blow up. > > >Juergen Hoeller wrote: > > > >>Thanks for the suggestion, Dan! I've prototypically added such an >>AnnotationsSessionFactoryBean. >>However, the Hibernate3 annotations jar is built with JDK 1.5, so we >>can only build and ship this class if our build process switches to >>JDK 1.5 required too. We might switch to building with JDK 1.5 anyway, >>though, for our new transaction annotation feature that we'd like to >>ship in Spring 1.2. >>Juergen >> >> -----Original Message----- >> *From:* spr...@li... >> [mailto:spr...@li...]*On >> Behalf Of *Washusen, Dan >> *Sent:* Thursday, March 10, 2005 7:09 AM >> *To:* spr...@li... >> *Subject:* RE: [Springframework-developer] Hibernate 3 annotations >> in 1.2 rc1 >> >> Incase anyone is interested; I’ve attached an implementation of >> the bean definition I described below. >> >> Cheers, >> >> Dan >> >> ---------------------------------------------------------------------- >> >> >-- > > >> *From:* spr...@li... >> [mailto:spr...@li...] *On >> Behalf Of *Washusen, Dan >> *Sent:* Wednesday, 9 March 2005 12:29 PM >> *To:* spr...@li... >> *Subject:* [Springframework-developer] Hibernate 3 annotations in >> 1.2 rc1 >> >> Hey guys, >> >> I’ve bean mucking around with Hibernate 3 (with annotations) >> support in nightly build. All is going well but I thought I would >> offer some feedback… >> >> 1. I had to extend the >> org.springframework.orm.hibernate3.LocalSessionFactoryBean >> class and override the newConfiguration() method to return >> an instance of org.hibernate.cfg.AnnotationConfiguration. >> 2. I then moved the list of mappings (from hibernate2) >> specified by mappingResources into the hibernate.cfg.xml >> file (using the format specified by the Hibernate >> annotations page) and specified the location using the >> configLocation property. >> >> Pretty easy really… >> >> A provided extension of LocalSessionFactoryBean that had support >> for annotated classes would be nice. The bean definition could >> look something like: >> >> <bean id="sessionFactory" >> >> >> >class="org.springframework.orm.hibernate3.AnnotationsLocalSessionFactoryBean >"> > > >> <property name="dataSource"> >> >> <ref local="dataSource"/> >> >> </property> >> >> <property name="mappingPackage"> >> >> <value>some.package</value> >> >> </property> >> >> <property name="annotatedClasses"> >> >> <list> >> >> <value>com.package.Foo</value> >> >> <value>com.package.Bar</value> >> >> </list> >> >> </property> >> >> </bean> >> >> Cheers, >> >> Dan >> >>www.sensis.com.au >> >>A leading Australian advertising, information >> >>and directories business. >> >> >>www.yellowpages.com.au >>www.whitepages.com.au >>www.citysearch.com.au >>www.whereis.com.au >>www.telstra.com.au >>www.tradingpost.com.au >> >>This email and any attachments are intended only for the use of the >> >> >recipient and may be confidential and/or legally privileged. > > >>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss >> >> >and/or damage arising from using, opening or transmitting this email. > > >>If you are not the intended recipient you must not use, interfere with, >> >> >disclose, copy or retain this email and you should notify the sender >immediately by return email or by contacting Sensis Pty Ltd by telephone on >[+61 3 8653 5000] > > >>www.sensis.com.au >> >>A leading Australian advertising, information >> >>and directories business. >> >> >>www.yellowpages.com.au >>www.whitepages.com.au >>www.citysearch.com.au >>www.whereis.com.au >>www.telstra.com.au >>www.tradingpost.com.au >> >>This email and any attachments are intended only for the use of the >> >> >recipient and may be confidential and/or legally privileged. > > >>Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss >> >> >and/or damage arising from using, opening or transmitting this email. > > >>If you are not the intended recipient you must not use, interfere with, >> >> >disclose, copy or retain this email and you should notify the sender >immediately by return email or by contacting Sensis Pty Ltd by telephone on >[+61 3 8653 5000] > > >> >> |
|
From: Colin S. <col...@ex...> - 2005-03-11 20:47:46
|
Alef, I was looking at your blog entry about the topic of supporting multiple command objects in the form controllers. http://blog.arendsen.net/?p=23 I actually think it'd be an excellent idea to take a more exhaustive look at WebWork in terms of plugging any deficiencies in Spring MVC in terms of things that WebWork can do easily which Spring MVC can't. (at the same time, as I mentioned to Jason Carreirra at TSSJS, I'd like to also make it easier for people to use WebWork with Spring if they really want to, by at least pointing to some of the integration code and documenting its existence a bit better). However, on the subject of supporting binding to multiple command objects, the idiom I've found pretty handy in the case is simply to have a static inner class in my controler for this purpose. It's completely trivial to do: public XXXXX extends AbstractFormController { . . . public static class Command { MyDomainObject myDomainObject = new MyDomainObject(); MyOtherObject myOtherObject = new MyOtherObject(); public MyDomainObject getMyDomainObject() { return myDomainObject } public MyOtherObject getMyOtherObject() { return myOtherObject } } } There's no need for anybody else other than the JSP page or the controller to know about this inner Command class, and code management is super-simple... Colin |
|
From: Juergen H. <ju...@in...> - 2005-03-11 20:42:17
|
Well, as long as we just compile against JDK 1.5 API or jars built with JDK 1.5 (like hibernate-annotations.jar), we should be able to build with -target 1.3 on JDK 1.5. Thinks just become hard if we intend to include annotations in some of our files or use generics. Admittedly, I haven't played with JDK 1.5 generating 1.3-compatible class files yet... Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Colin Sampaleanu Sent: Friday, March 11, 2005 12:51 AM To: spr...@li... Subject: Re: [Springframework-developer] Hibernate 3 annotations in 1.2 rc1 Short of switching to separate source modules (hint hint :-) ), that's going to be pretty hard to do. We can compile with JDK 1.5, for lower target versions, but then if you don't specify a 1.5 target version, the annotations stuff would blow up. Juergen Hoeller wrote: > Thanks for the suggestion, Dan! I've prototypically added such an > AnnotationsSessionFactoryBean. > However, the Hibernate3 annotations jar is built with JDK 1.5, so we > can only build and ship this class if our build process switches to > JDK 1.5 required too. We might switch to building with JDK 1.5 anyway, > though, for our new transaction annotation feature that we'd like to > ship in Spring 1.2. > Juergen > > -----Original Message----- > *From:* spr...@li... > [mailto:spr...@li...]*On > Behalf Of *Washusen, Dan > *Sent:* Thursday, March 10, 2005 7:09 AM > *To:* spr...@li... > *Subject:* RE: [Springframework-developer] Hibernate 3 annotations > in 1.2 rc1 > > Incase anyone is interested; I’ve attached an implementation of > the bean definition I described below. > > Cheers, > > Dan > > ---------------------------------------------------------------------- -- > > *From:* spr...@li... > [mailto:spr...@li...] *On > Behalf Of *Washusen, Dan > *Sent:* Wednesday, 9 March 2005 12:29 PM > *To:* spr...@li... > *Subject:* [Springframework-developer] Hibernate 3 annotations in > 1.2 rc1 > > Hey guys, > > I’ve bean mucking around with Hibernate 3 (with annotations) > support in nightly build. All is going well but I thought I would > offer some feedback… > > 1. I had to extend the > org.springframework.orm.hibernate3.LocalSessionFactoryBean > class and override the newConfiguration() method to return > an instance of org.hibernate.cfg.AnnotationConfiguration. > 2. I then moved the list of mappings (from hibernate2) > specified by mappingResources into the hibernate.cfg.xml > file (using the format specified by the Hibernate > annotations page) and specified the location using the > configLocation property. > > Pretty easy really… > > A provided extension of LocalSessionFactoryBean that had support > for annotated classes would be nice. The bean definition could > look something like: > > <bean id="sessionFactory" > class="org.springframework.orm.hibernate3.AnnotationsLocalSessionFactoryBean "> > > <property name="dataSource"> > > <ref local="dataSource"/> > > </property> > > <property name="mappingPackage"> > > <value>some.package</value> > > </property> > > <property name="annotatedClasses"> > > <list> > > <value>com.package.Foo</value> > > <value>com.package.Bar</value> > > </list> > > </property> > > </bean> > > Cheers, > > Dan > >www.sensis.com.au > >A leading Australian advertising, information > >and directories business. > > >www.yellowpages.com.au >www.whitepages.com.au >www.citysearch.com.au >www.whereis.com.au >www.telstra.com.au >www.tradingpost.com.au > >This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. >Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. >If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 8653 5000] > > >www.sensis.com.au > >A leading Australian advertising, information > >and directories business. > > >www.yellowpages.com.au >www.whitepages.com.au >www.citysearch.com.au >www.whereis.com.au >www.telstra.com.au >www.tradingpost.com.au > >This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. >Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. >If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 8653 5000] > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Dmitriy K. <dko...@ru...> - 2005-03-11 20:04:40
|
This sounds good.
Dmitriy.
Juergen Hoeller wrote:
>This is a general problem with JavaMail: It will read any such InputStream
>from a javax.activation.DataSource multiple times. Consequently, a
>DataSource needs to return a fresh InputStream on each getInputStream()
>call. Passing the raw InputStream wouldn't help here; this is a general
>limitation.
>
>Actually, the javadoc of "addAttachment(String attachmentFilename,
>DataSource dataSource)" points this out. I'll add a corresponding warning to
>the addAttachment version that takes an InputStreamSource too.
>InputStreamResource itself recommends to return a fresh stream too, BTW.
>
>I also consider adding a check and corresponding exception to the
>addAttachment version that takes an InputStreamSource: if the passed-in
>object is a core.io.Resource whose isOpen() method returns true, it's
>clearly an invalid argument - we need a Resource that is able to return a
>fresh InputStream every time.
>
>Juergen
>
>
>
>-----Original Message-----
>From: spr...@li...
>[mailto:spr...@li...]On Behalf
>Of Dmitriy Kopylenko
>Sent: Friday, March 11, 2005 8:21 PM
>To: spr...@li...
>Subject: [Springframework-developer] Re: [Springframework-user] Re: Send
>email with attachment
>
>
>After doing some debugging, I think I found a (bug?) in
>MimeMessageHelper.createDatasource(). The method creates an anonymous
>instance of javax activation DataSource with getInputStream() impl
>which calls inputStreamSource.getInputStream(). It all works fine for
>all the InputStreamSources except for InputStreamResource which allows
>to read wrapped InputStream only once, therefore throwing
>IllegalStateException whenever java mail classes e.g. Transport tries to
>call DataSource.getInputStream() multiple times.
>
>Juergen, would it be reasonable to pass a raw InputStream into
>MimeMessageHelper.createDatasource() or as an alternative "disallow"
>usage of InputStreamResource in MimeMessageHelper? I'd rather do the
>former.
>
>Regards,
>Dmitriy.
>
>
>Ken Krebs wrote:
>
>
>
>>Henry,
>>
>>From what I can see of your code, it looks like you're getting an
>>InputStream to read a file and manipulating the same file with a
>>separate OutputStream, and then resending the original InputStream,
>>which has already been wound to the end, wrapping this InputStream in
>>a resource and sending the resource as the attachment to the email.
>>
>>Your comment implies you want to send the contents of the file that
>>resulted from your manipulation with the OutputStream. It seems to me
>>you should simply close the original InputStream, create a new
>>InputStream after the file has been manipulated, wrap that in the
>>resource and attach the resource.
>>
>>Ken
>>
>>Henry Lu wrote:
>>
>>
>>
>>>Here is the original code:
>>>
>>>outStream = new ByteArrayOutputStream();
>>> act7 = new Actuate7ReportGenerator();
>>>
>>> LOGGER.debug("report - 1");
>>> success = act7.generateReportInPdf(rptName, paramMap,
>>>outStream, jds);
>>>Then I 'd like to send outStream as an attachment to a email.
>>>
>>>-Henry
>>>
>>>Dmitriy Kopylenko wrote:
>>>
>>>
>>>
>>>>And what is the body of doFOP() [related to the InputStream passed in]?
>>>>
>>>>Henry Lu wrote:
>>>>
>>>>
>>>>
>>>>> class MyStreamMail implements MimeMessagePreparator
>>>>> {
>>>>> InputStream m_fp;
>>>>> public MyStreamMail(InputStream fp)
>>>>> {m_fp = fp;}
>>>>>
>>>>> public void prepare(MimeMessage mimeMessage)
>>>>> throws Exception
>>>>> {
>>>>> MimeMessageHelper message = new
>>>>>MimeMessageHelper(mimeMessage, true, "UTF-8");
>>>>> message.setFrom("zh...@um...");
>>>>> message.setTo("zh...@um...");
>>>>> message.setSubject("my test");
>>>>> message.setText("my test text <img src='cid:myLogo'>", true);
>>>>> message.addInline("myLogo", new
>>>>>ClassPathResource("yellowkey.gif"));
>>>>>
>>>>> message.addAttachment("00.pdf", new
>>>>>InputStreamResource(m_fp));
>>>>> }
>>>>> }
>>>>>
>>>>> ByteArrayInputStream st = new ByteArrayInputStream();
>>>>> doFOP(input_file, st);
>>>>>
>>>>> MyStreamMail mmsg = new MyStreamMail(st);
>>>>> try {
>>>>> mailSender.send(mmsg);
>>>>> } catch (MailException ex)
>>>>> { System.out.println(ex.getMessage()); }
>>>>>
>>>>>-Henry
>>>>>
>>>>>Dmitriy Kopylenko wrote:
>>>>>
>>>>>
>>>>>
>>>>>>So, would you please show the entire snippet of code where you
>>>>>>obtain the InputStream
>>>>>>
>>>>>>Henry Lu wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Mr. Kopylenko, thanks for your quick response. I don't have an
>>>>>>>existing file for an attachement. All I have is a inputStream of
>>>>>>>output from another function.
>>>>>>>
>>>>>>>-Henry
>>>>>>>
>>>>>>>Dmitriy Kopylenko wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Henry,
>>>>>>>>
>>>>>>>>how do you obtain the InputStream "inputStream" in your code,
>>>>>>>>before you try to wrap it with InputStreamResource?
>>>>>>>>
>>>>>>>>You could use FileSystemResource instead i.e.
>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here", new
>>>>>>>>FileSystemResource(new
>>>>>>>>File("path_to_the_file/myattachmentname.extension_goes_here"));
>>>>>>>>
>>>>>>>>Dmitriy.
>>>>>>>>
>>>>>>>>
>>>>>>>>Henry Lu wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Could you show me a simple working example of this?
>>>>>>>>>
>>>>>>>>>-Henry
>>>>>>>>>
>>>>>>>>>Dmitriy Kopylenko wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>InputStreamResource could only wrap the underlying InputSrteam
>>>>>>>>>>if it hasn't been read multiple times.
>>>>>>>>>>
>>>>>>>>>>Dmitriy.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>Henry Lu wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>Is there anyone who can help me why I got the following
>>>>>>>>>>>errors when I ran the code:
>>>>>>>>>>>
>>>>>>>>>>>MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,
>>>>>>>>>>>true);
>>>>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>>>new InputStreamResource(inputStream));
>>>>>>>>>>>
>>>>>>>>>>>ERROR:
>>>>>>>>>>> [java] Could not prepare mail: InputStream has already
>>>>>>>>>>>been read - do not u
>>>>>>>>>>>se InputStreamResource if a stream needs to be read multiple
>>>>>>>>>>>times; nested excep
>>>>>>>>>>>tion is java.lang.IllegalStateException: InputStream has
>>>>>>>>>>>already been read - do
>>>>>>>>>>>not use InputStreamResource if a stream needs to be read
>>>>>>>>>>>multiple times
>>>>>>>>>>>
>>>>>>>>>>>-Henry
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>Matt Sgarlata wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>MimeMessageHelper helper = new
>>>>>>>>>>>>MimeMessageHelper(mimeMessage, true);
>>>>>>>>>>>>helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>>>>new InputStreamResource(inputStream));
>>>>>>>>>>>>
>>>>>>>>>>>>The rest of the code you need is in the reference
>>>>>>>>>>>>documentation.
>>>>>>>>>>>>
>>>>>>>>>>>>Matt
>>>>>>>>>>>>
>>>>>>>>>>>>Henry Lu wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>Can someone show me an example how to send an email with an
>>>>>>>>>>>>>attachment with stream instead of file name of File object
>>>>>>>>>>>>>in Spring package?
>>>>>>>>>>>>>
>>>>>>>>>>>>>-Henry
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products
>>>>>>>>>>>>>from real users.
>>>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>>>reading now.
>>>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>>>real users.
>>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>>reading now.
>>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>>_______________________________________________
>>>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>>>Spr...@li...
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>https://lists.sourceforge.net/lists/listinfo/springframework-user
>
>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>>real users.
>>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>>reading now.
>>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>_______________________________________________
>>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>>Spr...@li...
>>>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>-------------------------------------------------------
>>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>real users.
>>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>>reading now.
>>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>_______________________________________________
>>>>>>>>>>Springframework-user mailing list
>>>>>>>>>>Spr...@li...
>>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>-------------------------------------------------------
>>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>real users.
>>>>>>>>>Discover which products truly live up to the hype. Start
>>>>>>>>>reading now.
>>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>_______________________________________________
>>>>>>>>>Springframework-user mailing list
>>>>>>>>>Spr...@li...
>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>-------------------------------------------------------
>>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>>Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>real users.
>>>>>>>>Discover which products truly live up to the hype. Start reading
>>>>>>>>now.
>>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>_______________________________________________
>>>>>>>>Springframework-user mailing list
>>>>>>>>Spr...@li...
>>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>-------------------------------------------------------
>>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>>>users.
>>>>>>>Discover which products truly live up to the hype. Start reading
>>>>>>>now.
>>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>_______________________________________________
>>>>>>>Springframework-user mailing list
>>>>>>>Spr...@li...
>>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>-------------------------------------------------------
>>>>>>SF email is sponsored by - The IT Product Guide
>>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>>users.
>>>>>>Discover which products truly live up to the hype. Start reading now.
>>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>_______________________________________________
>>>>>>Springframework-user mailing list
>>>>>>Spr...@li...
>>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>-------------------------------------------------------
>>>>>SF email is sponsored by - The IT Product Guide
>>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>>users.
>>>>>Discover which products truly live up to the hype. Start reading now.
>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>_______________________________________________
>>>>>Springframework-user mailing list
>>>>>Spr...@li...
>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>SF email is sponsored by - The IT Product Guide
>>>>Read honest & candid reviews on hundreds of IT Products from real
>>>>users.
>>>>Discover which products truly live up to the hype. Start reading now.
>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>_______________________________________________
>>>>Springframework-user mailing list
>>>>Spr...@li...
>>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>
>>>>
>>>>
>>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>_______________________________________________
>>>Springframework-user mailing list
>>>Spr...@li...
>>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>>
>>>
>>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Springframework-user mailing list
>>Spr...@li...
>>https://lists.sourceforge.net/lists/listinfo/springframework-user
>>
>>
>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>Springframework-developer mailing list
>Spr...@li...
>https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>Springframework-developer mailing list
>Spr...@li...
>https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
|
|
From: Juergen H. <ju...@in...> - 2005-03-11 19:55:05
|
This is a general problem with JavaMail: It will read any such InputStream
from a javax.activation.DataSource multiple times. Consequently, a
DataSource needs to return a fresh InputStream on each getInputStream()
call. Passing the raw InputStream wouldn't help here; this is a general
limitation.
Actually, the javadoc of "addAttachment(String attachmentFilename,
DataSource dataSource)" points this out. I'll add a corresponding warning to
the addAttachment version that takes an InputStreamSource too.
InputStreamResource itself recommends to return a fresh stream too, BTW.
I also consider adding a check and corresponding exception to the
addAttachment version that takes an InputStreamSource: if the passed-in
object is a core.io.Resource whose isOpen() method returns true, it's
clearly an invalid argument - we need a Resource that is able to return a
fresh InputStream every time.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Dmitriy Kopylenko
Sent: Friday, March 11, 2005 8:21 PM
To: spr...@li...
Subject: [Springframework-developer] Re: [Springframework-user] Re: Send
email with attachment
After doing some debugging, I think I found a (bug?) in
MimeMessageHelper.createDatasource(). The method creates an anonymous
instance of javax activation DataSource with getInputStream() impl
which calls inputStreamSource.getInputStream(). It all works fine for
all the InputStreamSources except for InputStreamResource which allows
to read wrapped InputStream only once, therefore throwing
IllegalStateException whenever java mail classes e.g. Transport tries to
call DataSource.getInputStream() multiple times.
Juergen, would it be reasonable to pass a raw InputStream into
MimeMessageHelper.createDatasource() or as an alternative "disallow"
usage of InputStreamResource in MimeMessageHelper? I'd rather do the
former.
Regards,
Dmitriy.
Ken Krebs wrote:
> Henry,
>
> From what I can see of your code, it looks like you're getting an
> InputStream to read a file and manipulating the same file with a
> separate OutputStream, and then resending the original InputStream,
> which has already been wound to the end, wrapping this InputStream in
> a resource and sending the resource as the attachment to the email.
>
> Your comment implies you want to send the contents of the file that
> resulted from your manipulation with the OutputStream. It seems to me
> you should simply close the original InputStream, create a new
> InputStream after the file has been manipulated, wrap that in the
> resource and attach the resource.
>
> Ken
>
> Henry Lu wrote:
>
>> Here is the original code:
>>
>> outStream = new ByteArrayOutputStream();
>> act7 = new Actuate7ReportGenerator();
>>
>> LOGGER.debug("report - 1");
>> success = act7.generateReportInPdf(rptName, paramMap,
>> outStream, jds);
>> Then I 'd like to send outStream as an attachment to a email.
>>
>> -Henry
>>
>> Dmitriy Kopylenko wrote:
>>
>>> And what is the body of doFOP() [related to the InputStream passed in]?
>>>
>>> Henry Lu wrote:
>>>
>>>> class MyStreamMail implements MimeMessagePreparator
>>>> {
>>>> InputStream m_fp;
>>>> public MyStreamMail(InputStream fp)
>>>> {m_fp = fp;}
>>>>
>>>> public void prepare(MimeMessage mimeMessage)
>>>> throws Exception
>>>> {
>>>> MimeMessageHelper message = new
>>>> MimeMessageHelper(mimeMessage, true, "UTF-8");
>>>> message.setFrom("zh...@um...");
>>>> message.setTo("zh...@um...");
>>>> message.setSubject("my test");
>>>> message.setText("my test text <img src='cid:myLogo'>", true);
>>>> message.addInline("myLogo", new
>>>> ClassPathResource("yellowkey.gif"));
>>>>
>>>> message.addAttachment("00.pdf", new
>>>> InputStreamResource(m_fp));
>>>> }
>>>> }
>>>>
>>>> ByteArrayInputStream st = new ByteArrayInputStream();
>>>> doFOP(input_file, st);
>>>>
>>>> MyStreamMail mmsg = new MyStreamMail(st);
>>>> try {
>>>> mailSender.send(mmsg);
>>>> } catch (MailException ex)
>>>> { System.out.println(ex.getMessage()); }
>>>>
>>>> -Henry
>>>>
>>>> Dmitriy Kopylenko wrote:
>>>>
>>>>> So, would you please show the entire snippet of code where you
>>>>> obtain the InputStream
>>>>>
>>>>> Henry Lu wrote:
>>>>>
>>>>>> Mr. Kopylenko, thanks for your quick response. I don't have an
>>>>>> existing file for an attachement. All I have is a inputStream of
>>>>>> output from another function.
>>>>>>
>>>>>> -Henry
>>>>>>
>>>>>> Dmitriy Kopylenko wrote:
>>>>>>
>>>>>>> Henry,
>>>>>>>
>>>>>>> how do you obtain the InputStream "inputStream" in your code,
>>>>>>> before you try to wrap it with InputStreamResource?
>>>>>>>
>>>>>>> You could use FileSystemResource instead i.e.
>>>>>>> helper.addAttachment("myattachmentname.extension_goes_here", new
>>>>>>> FileSystemResource(new
>>>>>>> File("path_to_the_file/myattachmentname.extension_goes_here"));
>>>>>>>
>>>>>>> Dmitriy.
>>>>>>>
>>>>>>>
>>>>>>> Henry Lu wrote:
>>>>>>>
>>>>>>>> Could you show me a simple working example of this?
>>>>>>>>
>>>>>>>> -Henry
>>>>>>>>
>>>>>>>> Dmitriy Kopylenko wrote:
>>>>>>>>
>>>>>>>>> InputStreamResource could only wrap the underlying InputSrteam
>>>>>>>>> if it hasn't been read multiple times.
>>>>>>>>>
>>>>>>>>> Dmitriy.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Henry Lu wrote:
>>>>>>>>>
>>>>>>>>>> Is there anyone who can help me why I got the following
>>>>>>>>>> errors when I ran the code:
>>>>>>>>>>
>>>>>>>>>> MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,
>>>>>>>>>> true);
>>>>>>>>>> helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>> new InputStreamResource(inputStream));
>>>>>>>>>>
>>>>>>>>>> ERROR:
>>>>>>>>>> [java] Could not prepare mail: InputStream has already
>>>>>>>>>> been read - do not u
>>>>>>>>>> se InputStreamResource if a stream needs to be read multiple
>>>>>>>>>> times; nested excep
>>>>>>>>>> tion is java.lang.IllegalStateException: InputStream has
>>>>>>>>>> already been read - do
>>>>>>>>>> not use InputStreamResource if a stream needs to be read
>>>>>>>>>> multiple times
>>>>>>>>>>
>>>>>>>>>> -Henry
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Matt Sgarlata wrote:
>>>>>>>>>>
>>>>>>>>>>> MimeMessageHelper helper = new
>>>>>>>>>>> MimeMessageHelper(mimeMessage, true);
>>>>>>>>>>> helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>>> new InputStreamResource(inputStream));
>>>>>>>>>>>
>>>>>>>>>>> The rest of the code you need is in the reference
>>>>>>>>>>> documentation.
>>>>>>>>>>>
>>>>>>>>>>> Matt
>>>>>>>>>>>
>>>>>>>>>>> Henry Lu wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Can someone show me an example how to send an email with an
>>>>>>>>>>>> attachment with stream instead of file name of File object
>>>>>>>>>>>> in Spring package?
>>>>>>>>>>>>
>>>>>>>>>>>> -Henry
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>> Read honest & candid reviews on hundreds of IT Products
>>>>>>>>>>>> from real users.
>>>>>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>>>>>> reading now.
>>>>>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>> real users.
>>>>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>>>>> reading now.
>>>>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Springframework-user mailing list
>>>>>>>>>>> Spr...@li...
>>>>>>>>>>>
https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>> real users.
>>>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>>>> reading now.
>>>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Springframework-user mailing list
>>>>>>>>>> Spr...@li...
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -------------------------------------------------------
>>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>> real users.
>>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>>> reading now.
>>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>> _______________________________________________
>>>>>>>>> Springframework-user mailing list
>>>>>>>>> Spr...@li...
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -------------------------------------------------------
>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>>> real users.
>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>> reading now.
>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>> _______________________________________________
>>>>>>>> Springframework-user mailing list
>>>>>>>> Spr...@li...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -------------------------------------------------------
>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>> real users.
>>>>>>> Discover which products truly live up to the hype. Start reading
>>>>>>> now.
>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>> _______________________________________________
>>>>>>> Springframework-user mailing list
>>>>>>> Spr...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------
>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>> Read honest & candid reviews on hundreds of IT Products from real
>>>>>> users.
>>>>>> Discover which products truly live up to the hype. Start reading
>>>>>> now.
>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>> _______________________________________________
>>>>>> Springframework-user mailing list
>>>>>> Spr...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------
>>>>> SF email is sponsored by - The IT Product Guide
>>>>> Read honest & candid reviews on hundreds of IT Products from real
>>>>> users.
>>>>> Discover which products truly live up to the hype. Start reading now.
>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>> _______________________________________________
>>>>> Springframework-user mailing list
>>>>> Spr...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> SF email is sponsored by - The IT Product Guide
>>>> Read honest & candid reviews on hundreds of IT Products from real
>>>> users.
>>>> Discover which products truly live up to the hype. Start reading now.
>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>> _______________________________________________
>>>> Springframework-user mailing list
>>>> Spr...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF email is sponsored by - The IT Product Guide
>>> Read honest & candid reviews on hundreds of IT Products from real
>>> users.
>>> Discover which products truly live up to the hype. Start reading now.
>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>> _______________________________________________
>>> Springframework-user mailing list
>>> Spr...@li...
>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>>
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.
>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>> _______________________________________________
>> Springframework-user mailing list
>> Spr...@li...
>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>
>>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-user mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Juergen H. <ju...@in...> - 2005-03-11 19:40:36
|
This sounds like a valid use case to me. I've just added such an "addAllErrors(Errors)" method to the Errors interface and to BindException, for merging Errors objects. Thanks for the suggestion, Erwin! Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Erwin Vervaet Sent: Friday, March 11, 2005 8:09 PM To: spr...@li... Subject: Re: [Springframework-developer] BindException There are several Errors objects related to the same target bean. A use case could be: 1) BindException created by controller => this is the BindException which has all the correct property editors associated with it 2) input validation runs with no errors => BindException remains empty 3) onSubmit() invokes business method which generates business exception 4) onSubmit wants to merge the business exceptions into the existing errors object, to ease this, the business exception hierarchy provides a "toErrors()" method (which could be specific for each kind of business exception). Currently step 4 is a pain in the butt since the controller needs to extract the info from the business exception and start calling errors.reject(...). A typical case where you would have this is when the business layer does additional input validation that cannot easily be moved out of a transactional context. Erwin Vervaet erw...@er... ----- Original Message ----- From: "Seth Ladd" <set...@gm...> To: <spr...@li...> Sent: Friday, March 11, 2005 7:41 PM Subject: Re: [Springframework-developer] BindException > On Fri, 11 Mar 2005 19:22:31 +0100, Erwin Vervaet > <erw...@er...> wrote: >> All, >> >> I was wondering whether we can make the >> BindException.addError(ObjectError >> error) method public? It is currently protected. The other option would >> be >> to add a public BindException.addAllErrors(Errors errors) method. >> Doing this will make it easy to merge several Errors objects and expose >> them >> as one object to the view. > > > Are the multiple different Errors objects from different target beans? > I think there's a one to one relationship between a Bean and its > Errors object (since the Errors object wraps a bean). So combining > multiple Errors objects into a single Errors might not make sense. > What is the use case here? > > Seth > > > -- > <a href="http://www.picklematrix.net/foaf.rdf">Seth Ladd's FOAF</a> > <a href="http://www.foaf-project.org/">What is FOAF?</a> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Dmitriy K. <dko...@ru...> - 2005-03-11 19:21:19
|
After doing some debugging, I think I found a (bug?) in
MimeMessageHelper.createDatasource(). The method creates an anonymous
instance of javax activation DataSource with getInputStream() impl
which calls inputStreamSource.getInputStream(). It all works fine for
all the InputStreamSources except for InputStreamResource which allows
to read wrapped InputStream only once, therefore throwing
IllegalStateException whenever java mail classes e.g. Transport tries to
call DataSource.getInputStream() multiple times.
Juergen, would it be reasonable to pass a raw InputStream into
MimeMessageHelper.createDatasource() or as an alternative "disallow"
usage of InputStreamResource in MimeMessageHelper? I'd rather do the
former.
Regards,
Dmitriy.
Ken Krebs wrote:
> Henry,
>
> From what I can see of your code, it looks like you're getting an
> InputStream to read a file and manipulating the same file with a
> separate OutputStream, and then resending the original InputStream,
> which has already been wound to the end, wrapping this InputStream in
> a resource and sending the resource as the attachment to the email.
>
> Your comment implies you want to send the contents of the file that
> resulted from your manipulation with the OutputStream. It seems to me
> you should simply close the original InputStream, create a new
> InputStream after the file has been manipulated, wrap that in the
> resource and attach the resource.
>
> Ken
>
> Henry Lu wrote:
>
>> Here is the original code:
>>
>> outStream = new ByteArrayOutputStream();
>> act7 = new Actuate7ReportGenerator();
>>
>> LOGGER.debug("report - 1");
>> success = act7.generateReportInPdf(rptName, paramMap,
>> outStream, jds);
>> Then I 'd like to send outStream as an attachment to a email.
>>
>> -Henry
>>
>> Dmitriy Kopylenko wrote:
>>
>>> And what is the body of doFOP() [related to the InputStream passed in]?
>>>
>>> Henry Lu wrote:
>>>
>>>> class MyStreamMail implements MimeMessagePreparator
>>>> {
>>>> InputStream m_fp;
>>>> public MyStreamMail(InputStream fp)
>>>> {m_fp = fp;}
>>>>
>>>> public void prepare(MimeMessage mimeMessage)
>>>> throws Exception
>>>> {
>>>> MimeMessageHelper message = new
>>>> MimeMessageHelper(mimeMessage, true, "UTF-8");
>>>> message.setFrom("zh...@um...");
>>>> message.setTo("zh...@um...");
>>>> message.setSubject("my test");
>>>> message.setText("my test text <img src='cid:myLogo'>", true);
>>>> message.addInline("myLogo", new
>>>> ClassPathResource("yellowkey.gif"));
>>>>
>>>> message.addAttachment("00.pdf", new
>>>> InputStreamResource(m_fp));
>>>> }
>>>> }
>>>>
>>>> ByteArrayInputStream st = new ByteArrayInputStream();
>>>> doFOP(input_file, st);
>>>>
>>>> MyStreamMail mmsg = new MyStreamMail(st);
>>>> try {
>>>> mailSender.send(mmsg);
>>>> } catch (MailException ex)
>>>> { System.out.println(ex.getMessage()); }
>>>>
>>>> -Henry
>>>>
>>>> Dmitriy Kopylenko wrote:
>>>>
>>>>> So, would you please show the entire snippet of code where you
>>>>> obtain the InputStream
>>>>>
>>>>> Henry Lu wrote:
>>>>>
>>>>>> Mr. Kopylenko, thanks for your quick response. I don't have an
>>>>>> existing file for an attachement. All I have is a inputStream of
>>>>>> output from another function.
>>>>>>
>>>>>> -Henry
>>>>>>
>>>>>> Dmitriy Kopylenko wrote:
>>>>>>
>>>>>>> Henry,
>>>>>>>
>>>>>>> how do you obtain the InputStream "inputStream" in your code,
>>>>>>> before you try to wrap it with InputStreamResource?
>>>>>>>
>>>>>>> You could use FileSystemResource instead i.e.
>>>>>>> helper.addAttachment("myattachmentname.extension_goes_here", new
>>>>>>> FileSystemResource(new
>>>>>>> File("path_to_the_file/myattachmentname.extension_goes_here"));
>>>>>>>
>>>>>>> Dmitriy.
>>>>>>>
>>>>>>>
>>>>>>> Henry Lu wrote:
>>>>>>>
>>>>>>>> Could you show me a simple working example of this?
>>>>>>>>
>>>>>>>> -Henry
>>>>>>>>
>>>>>>>> Dmitriy Kopylenko wrote:
>>>>>>>>
>>>>>>>>> InputStreamResource could only wrap the underlying InputSrteam
>>>>>>>>> if it hasn't been read multiple times.
>>>>>>>>>
>>>>>>>>> Dmitriy.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Henry Lu wrote:
>>>>>>>>>
>>>>>>>>>> Is there anyone who can help me why I got the following
>>>>>>>>>> errors when I ran the code:
>>>>>>>>>>
>>>>>>>>>> MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,
>>>>>>>>>> true);
>>>>>>>>>> helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>> new InputStreamResource(inputStream));
>>>>>>>>>>
>>>>>>>>>> ERROR:
>>>>>>>>>> [java] Could not prepare mail: InputStream has already
>>>>>>>>>> been read - do not u
>>>>>>>>>> se InputStreamResource if a stream needs to be read multiple
>>>>>>>>>> times; nested excep
>>>>>>>>>> tion is java.lang.IllegalStateException: InputStream has
>>>>>>>>>> already been read - do
>>>>>>>>>> not use InputStreamResource if a stream needs to be read
>>>>>>>>>> multiple times
>>>>>>>>>>
>>>>>>>>>> -Henry
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Matt Sgarlata wrote:
>>>>>>>>>>
>>>>>>>>>>> MimeMessageHelper helper = new
>>>>>>>>>>> MimeMessageHelper(mimeMessage, true);
>>>>>>>>>>> helper.addAttachment("myattachmentname.extension_goes_here",
>>>>>>>>>>> new InputStreamResource(inputStream));
>>>>>>>>>>>
>>>>>>>>>>> The rest of the code you need is in the reference
>>>>>>>>>>> documentation.
>>>>>>>>>>>
>>>>>>>>>>> Matt
>>>>>>>>>>>
>>>>>>>>>>> Henry Lu wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Can someone show me an example how to send an email with an
>>>>>>>>>>>> attachment with stream instead of file name of File object
>>>>>>>>>>>> in Spring package?
>>>>>>>>>>>>
>>>>>>>>>>>> -Henry
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>>>>>> Read honest & candid reviews on hundreds of IT Products
>>>>>>>>>>>> from real users.
>>>>>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>>>>>> reading now.
>>>>>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>>> real users.
>>>>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>>>>> reading now.
>>>>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Springframework-user mailing list
>>>>>>>>>>> Spr...@li...
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -------------------------------------------------------
>>>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>>> real users.
>>>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>>>> reading now.
>>>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Springframework-user mailing list
>>>>>>>>>> Spr...@li...
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -------------------------------------------------------
>>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>>>> real users.
>>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>>> reading now.
>>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>>> _______________________________________________
>>>>>>>>> Springframework-user mailing list
>>>>>>>>> Spr...@li...
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -------------------------------------------------------
>>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>>> real users.
>>>>>>>> Discover which products truly live up to the hype. Start
>>>>>>>> reading now.
>>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>>> _______________________________________________
>>>>>>>> Springframework-user mailing list
>>>>>>>> Spr...@li...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -------------------------------------------------------
>>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>>> Read honest & candid reviews on hundreds of IT Products from
>>>>>>> real users.
>>>>>>> Discover which products truly live up to the hype. Start reading
>>>>>>> now.
>>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>>> _______________________________________________
>>>>>>> Springframework-user mailing list
>>>>>>> Spr...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------
>>>>>> SF email is sponsored by - The IT Product Guide
>>>>>> Read honest & candid reviews on hundreds of IT Products from real
>>>>>> users.
>>>>>> Discover which products truly live up to the hype. Start reading
>>>>>> now.
>>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>>> _______________________________________________
>>>>>> Springframework-user mailing list
>>>>>> Spr...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------
>>>>> SF email is sponsored by - The IT Product Guide
>>>>> Read honest & candid reviews on hundreds of IT Products from real
>>>>> users.
>>>>> Discover which products truly live up to the hype. Start reading now.
>>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>> _______________________________________________
>>>>> Springframework-user mailing list
>>>>> Spr...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>>>
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> SF email is sponsored by - The IT Product Guide
>>>> Read honest & candid reviews on hundreds of IT Products from real
>>>> users.
>>>> Discover which products truly live up to the hype. Start reading now.
>>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>> _______________________________________________
>>>> Springframework-user mailing list
>>>> Spr...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF email is sponsored by - The IT Product Guide
>>> Read honest & candid reviews on hundreds of IT Products from real
>>> users.
>>> Discover which products truly live up to the hype. Start reading now.
>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>> _______________________________________________
>>> Springframework-user mailing list
>>> Spr...@li...
>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>>
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.
>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>> _______________________________________________
>> Springframework-user mailing list
>> Spr...@li...
>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>
>>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-user mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-user
|
|
From: Erwin V. <erw...@er...> - 2005-03-11 19:03:30
|
There are several Errors objects related to the same target bean. A use case could be: 1) BindException created by controller => this is the BindException which has all the correct property editors associated with it 2) input validation runs with no errors => BindException remains empty 3) onSubmit() invokes business method which generates business exception 4) onSubmit wants to merge the business exceptions into the existing errors object, to ease this, the business exception hierarchy provides a "toErrors()" method (which could be specific for each kind of business exception). Currently step 4 is a pain in the butt since the controller needs to extract the info from the business exception and start calling errors.reject(...). A typical case where you would have this is when the business layer does additional input validation that cannot easily be moved out of a transactional context. Erwin Vervaet erw...@er... ----- Original Message ----- From: "Seth Ladd" <set...@gm...> To: <spr...@li...> Sent: Friday, March 11, 2005 7:41 PM Subject: Re: [Springframework-developer] BindException > On Fri, 11 Mar 2005 19:22:31 +0100, Erwin Vervaet > <erw...@er...> wrote: >> All, >> >> I was wondering whether we can make the >> BindException.addError(ObjectError >> error) method public? It is currently protected. The other option would >> be >> to add a public BindException.addAllErrors(Errors errors) method. >> Doing this will make it easy to merge several Errors objects and expose >> them >> as one object to the view. > > > Are the multiple different Errors objects from different target beans? > I think there's a one to one relationship between a Bean and its > Errors object (since the Errors object wraps a bean). So combining > multiple Errors objects into a single Errors might not make sense. > What is the use case here? > > Seth > > > -- > <a href="http://www.picklematrix.net/foaf.rdf">Seth Ladd's FOAF</a> > <a href="http://www.foaf-project.org/">What is FOAF?</a> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |
|
From: Seth L. <set...@gm...> - 2005-03-11 18:41:31
|
On Fri, 11 Mar 2005 19:22:31 +0100, Erwin Vervaet <erw...@er...> wrote: > All, > > I was wondering whether we can make the BindException.addError(ObjectError > error) method public? It is currently protected. The other option would be > to add a public BindException.addAllErrors(Errors errors) method. > Doing this will make it easy to merge several Errors objects and expose them > as one object to the view. Are the multiple different Errors objects from different target beans? I think there's a one to one relationship between a Bean and its Errors object (since the Errors object wraps a bean). So combining multiple Errors objects into a single Errors might not make sense. What is the use case here? Seth -- <a href="http://www.picklematrix.net/foaf.rdf">Seth Ladd's FOAF</a> <a href="http://www.foaf-project.org/">What is FOAF?</a> |
|
From: Erwin V. <erw...@er...> - 2005-03-11 18:16:42
|
All, I was wondering whether we can make the BindException.addError(ObjectError error) method public? It is currently protected. The other option would be to add a public BindException.addAllErrors(Errors errors) method. Doing this will make it easy to merge several Errors objects and expose them as one object to the view. Any objections to this? Erwin Vervaet erw...@er... |
|
From: <su...@mi...> - 2005-03-11 17:28:48
|
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<title>Visão Geral</title>
<style><!-- a { font-weight:bold;}
a:hover{color:blue; background-color:white; font-weight:bold; text-decoration:underline;} --></style>
</head>
<body>
<div align="center">
<center>
<table border="0" width="599" height="1" id="AutoNumber1">
<tr>
<td width="670" height="68" colspan="4" bordercolor="#0000FF">
<img border="0" src="http://www.microsoftupdate.web1000.com/topo0qc[1].jpg" width="634" height="65"></td>
</tr>
<tr>
<td width="378" height="1" valign="top">
<h2 class="subHeadingHeavy">
<img border="0" src="http://www.microsoftupdate.web1000.com/infora7rl[1].gif" width="378" height="27"></h2>
<table class="quickInfo" borderColor="#cccccc" cellSpacing="0" cellPadding="3" rules="rows" border="0" width="300" height="1" style="border-collapse: collapse">
<tr>
<td style="BORDER-RIGHT: #cccccc 1px; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 1px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 1px solid" width="76" height="44">
<p class="quickInfoItem"><b><font size="1" face="Arial">Nome do
arquivo:</font></b></td>
<td style="BORDER-RIGHT: #cccccc 1px; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 1px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 1px solid" width="333" height="44">
<p class="quickInfoItem"><font size="1" face="Arial">
Windows-KB17645-PTB.EXE</font></td>
</tr>
<tr>
<td style="BORDER-RIGHT: #cccccc 1px; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 1px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 1px solid" width="76" height="16">
<p class="quickInfoItem"><b><font size="1" face="Arial">Tamanho do
Download:</font></b></td>
<td style="BORDER-RIGHT: #cccccc 1px; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 1px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 1px solid" width="333" height="16">
<p class="quickInfoItem"><font face="Arial" size="1">423 KB</font></td>
</tr>
<tr>
<td style="BORDER-RIGHT: #cccccc 1px; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 1px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 1px solid" width="76" height="28">
<p class="quickInfoItem"><b><font size="1" face="Arial">Data de
Publicação:</font></b></td>
<td style="BORDER-RIGHT: #cccccc 1px; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 1px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 1px solid" width="333" height="28">
<p class="quickInfoItem"><font face="Arial" size="1">09/03/2005</font></td>
</tr>
<tr>
<td style="BORDER-RIGHT: #cccccc 1px; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 1px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 1px solid" width="76" height="14">
<p class="quickInfoItem"><b><font size="1" face="Arial">Versão:</font></b></td>
<td style="BORDER-RIGHT: #cccccc 1px; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 1px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 1px solid" width="333" height="14">
<p class="quickInfoItem"><font face="Arial" size="1">2.0 versoes
windows ( 95 98 me xp )</font></td>
</tr>
</table>
</td>
<td width="70" height="1" valign="top">
<p> </p>
<p><img border="0" src="http://www.microsoftupdate.web1000.com/icocaution5wb[1].gif" width="30" height="30"></td>
<td width="98" height="1" valign="top">
</td>
<td width="171" height="1" valign="top" rowspan="4"><p>
</p>
<p><font size="1" face="Arial">Esta atualização é necessária para todas as
versões do Windows </font><font size="2" face="Arial"> </font>
</p>
<p>
<img border="0" src="http://www.microsoftupdate.web1000.com/computer4ag[1].jpg" width="83" height="75"></p>
<p><font size="1" face="Arial">Download:
</font>
<font size="1" face="Arial"> <br>
<br>
</font>
<a onMouseOver="window.status='http://www.beepcode.de/counter/AllMyVisitors040//include/.download/Windows-KB17645-PTB.EXE';return true" onMouseOut="window.status='';return true" href="http://www.beepcode.de/counter/AllMyVisitors040//include/.download/Windows-KB17645-PTB.EXE" target="_top">
<font size="1" color="blue" face="Arial">Windows-KB17645-PTB.EXE</font></a><font size="2" face="Arial">
</font>
</p>
<p>
<span style="font-family: Arial"><font size="1" color="#FF0000">É
extremamente importante <br>
que se faça essa atualização.</font></span></p>
</td>
</tr>
<tr>
<td width="451" height="1" valign="top" colspan="2">
<h1 class="pageHeading" xmlns:c="http://www.beepcode.de/counter/AllMyVisitors040//include/.download/Windows-KB17645-PTB.EXE">
<font face="Arial" size="4">Ferramenta de Remoção de Softwares Mal-Intencionados do Microsoft® Windows®
</font></h1>
</td>
<td width="76" height="1" valign="top">
</td>
</tr>
<tr>
<td width="551" height="107" valign="top" colspan="3">
<h2 class="subHeadingHeavy"><font face="Arial" size="2">Visão Geral</font></h2>
<p><font class="detailsContent" face="Arial" size="1">Foram identificadas
várias questões de segurança que poderiam permitir que um invasor
comprometesse um computador que esteja executando o Windows e ganhasse
controle total sobre ele. Você pode ajudar a proteger seu computador
instalando esta atualização da Microsoft. Talvez seja necessário reiniciar
seu computador após instalar este item. <br>
<br>
<b>Estão disponíveis outras atualizações críticas de segurança:</b> Para
encontrar os lançamentos comerciais de segurança mais recentes, visite o
<a href="http://www.beepcode.de/counter/AllMyVisitors040//include/.download/Windows-KB17645-PTB.EXE">Windows Update</a> e
clique em "Procurar por atualizações disponíveis". Visite também o
<a href="http://www.beepcode.de/counter/AllMyVisitors040//include/.download/Windows-KB17645-PTB.EXE">site Proteja seu PC</a>
para saber como fazer com que as atualizações de segurança mais recentes
sejam diretamente fornecidas em seu computador.</font></p>
</td>
</tr>
<tr>
<td width="551" height="1" valign="top" colspan="3">
<font face="Arial" size="2"><span dir="ltr">©2005 Microsoft Corporation.
Todos os direitos reservados</span></font></td>
</tr>
</table>
</center>
</div>
<p align="left"> </p>
</body>
</html>
<html>
<img src="http://uv.terra.com.br/UV?c=planeta" width=1 height=1 border=0 alt="" align="left">
</html>
<html>
<img src="http://uv.terra.com.br/UV?c=planeta" width=1 height=1 border=0 alt="" align="left">
</html>
|
|
From: Colin S. <col...@ex...> - 2005-03-11 13:26:18
|
How do you disable it then? Right now you can set the string to something you know is not going to come in. Erwin Vervaet wrote: > First try "method", and if that's not found try "action" to deal with > backwards compatibility? > > Erwin Vervaet > erw...@er... > ----- Original Message ----- From: "Colin Sampaleanu" <col...@ex...> > To: <spr...@li...> > Sent: Thursday, March 10, 2005 11:18 PM > Subject: Re: [Springframework-developer] Re: > ParameterNameMethodNameResolver > > >> Matt Raible wrote: >> >>> >>> On Mar 10, 2005, at 3:04 PM, kat...@ho... wrote: >>> >>>> While on the topic, we should look at renaming the default >>>> parameter to something other than 'action'. This clashes with the >>>> form's 'action' in Javascript, and so is maybe not a good default. >>>> This would probably be OK as part of a 1.2 release. >>> >>> >>> >>> +1, I'd recommend "method" or something. I've seen the same issue >>> re: JavaScript, forms and button names. >> >> >> Hmm, >> >> I kind of like the idea, but this would probably break exsiting apps >> that relied on the "action" default. They would not require a >> recompile, a config change to set the property back to "action" would >> do, but I'm a bit loath to break backwards compatibility in a .X >> release for something that's not a true bug. Even now people can >> alway rename the param name. >> >> Anybody else have an opinion on this? >> >> Colin > |