geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jian Liao <norwaywo...@gmail.com>
Subject Re: Compilation errors in module javamail-transport
Date Tue, 07 Feb 2006 07:24:57 GMT
Hi Bruce,
I rebuild geronimo-spec with mvn clean install, then I try to build geronimo
svn head with: maven -o m:clean new. I got the following exception from the
javamail-transport module:

java:compile:
<depend closure="false" srcdir="1.4" dump="false"
destdir="D:\eclipse\workspace\
geronimo-local\modules\javamail-transport/target/classes"></depend>
[echo] Co
mpiling to
D:\eclipse\workspace\geronimo-local\modules\javamail-transport/target
/classes
    [javac] Compiling 3 source files to
D:\eclipse\workspace\geronimo-local\modu
les\javamail-transport\target\classes
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:343:
exceptio
n org.apache.geronimo.javamail.transport.smtp.SMTPTransportException is
never th
rown in body of corresponding try statement
    [javac]         } catch (SMTPTransportException e) {
    [javac]           ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:348:
exceptio
n org.apache.geronimo.javamail.transport.smtp.MalformedSMTPReplyException is
nev
er thrown in body of corresponding try statement
    [javac]         } catch (MalformedSMTPReplyException e) {
    [javac]           ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1268:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]             throw new SMTPTransportException(e);
    [javac]             ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1270:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]             throw new SMTPTransportException(e);
    [javac]             ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1278:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.MalformedSMTPReplyExce
ption; must be caught or declared to be thrown
    [javac]         line = new SMTPReply(receiveLine(TIMEOUT * 2));
    [javac]                ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1400:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]             throw new SMTPTransportException("no FROM address");
    [javac]             ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1518:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]             throw new SMTPTransportException("no connection");
    [javac]             ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1526:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]             throw new SMTPTransportException(e);
    [javac]             ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1546:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.MalformedSMTPReplyExce
ption; must be caught or declared to be thrown
    [javac]         lastServerResponse = new SMTPReply(receiveLine());
    [javac]                              ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1573:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]             throw new SMTPTransportException("no connection");
    [javac]             ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1611:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]             throw new SMTPTransportException(e);
    [javac]             ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1613:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]             throw new SMTPTransportException(e);
    [javac]             ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:1763:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.SMTPTransportException
; must be caught or declared to be thrown
    [javac]                 throw new SMTPTransportException("Can't get
local ho
stname. " +
    [javac]                 ^
    [javac]
D:\eclipse\workspace\geronimo-local\modules\javamail-transport\src\j
ava\org\apache\geronimo\javamail\transport\smtp\SMTPTransport.java:2017:
unrepor
ted exception
org.apache.geronimo.javamail.transport.smtp.MalformedSMTPReplyExce
ption; must be caught or declared to be thrown
    [javac]             SMTPReply line = new SMTPReply(receiveLine());
    [javac]                              ^
    [javac] 14 errors

BUILD FAILED
File...... D:\Maven\local\repository\cache\maven-
java-plugin-1.5\plugin.jelly
Element... ant:javac
Line...... 63
Column.... -1
Compile failed; see the compiler error output for details.
Total time   : 3 seconds

My env:
OS: WinXP SP2
JDK: 1.4.2_10

thanks,
- Jian Liao

On 2/7/06, Bruce Snyder <bruce.snyder@gmail.com> wrote:
>
> On 2/6/06, Jian Liao <norwaywoods@gmail.com> wrote:
>
> > Geronimo spec updated. you have to rebuild it. But you still can not
> make it
> > right after rebuild geronimo-spec, so I just bypass this module in the
> top
> > maven.xml.
>
> Jian is correct, the compilation errors are due to changes to the
> geronimo-spec-javamail module today. In order to avoid the compilation
> errors, you'll need to check out the whole specs trunk:
>
> https://svn.apache.org/repos/asf/geronimo/specs/trunk/
>
> and at least build the geronimo-spec-javamail module using Maven 2 and
> the following command:
>
> mvn clean install
>
> This will place the updated javamail spec jar here:
>
>
> ~/.maven/repository/org.apache.geronimo.specs/jars/geronimo-javamail_1.3.1_spec-
> 1.1-SNAPSHOT.jar
>
> which will then allow the javamail-transport module to be built correctly.
>
>
> HTH
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo ( http://geronimo.apache.org/)
>
> Castor (http://castor.org/)
>

Mime
View raw message