List Info

Thread: build error in notification module




build error in notification module
user name
2006-12-15 09:03:11
hello all

after svn up i get a build failed.
i had a look at the cocoon api and the the mail doesn't seem
to have a 
method where you can set the body and the mime-type at once.

Compiling 16 source files to 
/home/wyona/cruisecontrol-bin-2.4.1-wyona/projects/sfh/trunk
/lenya-1.4.x_trunk/build/lenya/modules/org.apache.lenya.modu
les.notification/java/classes
/home/wyona/cruisecontrol-bin-2.4.1-wyona/projects/sfh/trunk
/lenya-1.4.x_trunk/src/modules/notification/java/src/org/apa
che/lenya/notification/EmailNotifier.java:58: 
setBody(java.lang.String) in
org.apache.cocoon.mail.MailSender cannot be 
applied to (java.lang.String,java.lang.String)
             mailer.setBody(translatedMessage.getBody(),
"text/plain");
                   ^
1 error

BUILD FAILED

any idea what may be wrong?
any hint is very welcome.

thanks
simon

-- 
Simon Litwan                               simon.litwanwyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache
Lenya
http://www.wyona.com     
                http://lenya.apache.org

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

build error in notification module
user name
2006-12-15 13:14:07
simon litwan schrieb:
> hello all
> 
> after svn up i get a build failed.
> i had a look at the cocoon api and the the mail doesn't
seem to have a
> method where you can set the body and the mime-type at
once.
> 
> Compiling 16 source files to
>
/home/wyona/cruisecontrol-bin-2.4.1-wyona/projects/sfh/trunk
/lenya-1.4.x_trunk/build/lenya/modules/org.apache.lenya.modu
les.notification/java/classes
> 
>
/home/wyona/cruisecontrol-bin-2.4.1-wyona/projects/sfh/trunk
/lenya-1.4.x_trunk/src/modules/notification/java/src/org/apa
che/lenya/notification/EmailNotifier.java:58:
> setBody(java.lang.String) in
org.apache.cocoon.mail.MailSender cannot be
> applied to (java.lang.String,java.lang.String)
>             mailer.setBody(translatedMessage.getBody(),
"text/plain");

Maybe your Cocoon version is not up to date?
It looks like the method is there:

http://svn.apache.org/v
iewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/mail/java/org/
apache/cocoon/mail/MailSender.java?revision=469258&view=
markup


    /**
     * Sets the body content of the email message.
     *
     * <p>The body can be any of: {link
org.apache.excalibur.source.Source},
     * {link org.apache.cocoon.servlet.multipart.Part}, {link
java.io.InputStream},
     * <code>byte[]</code>, {link
String}, or a subclass.
     *
     * param body The body text of the email message
     * param type mime type (optional)
     */
    void setBody(Object body, String type);


-- Andreas


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )