You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by co...@jakarta.apache.org on 2004/09/01 07:30:50 UTC
[jira] Closed: (JELLY-106) Tag body as message body causes NullPointerException
Message:
The following issue has been closed.
Resolver: dion gillard
Date: Tue, 31 Aug 2004 10:29 PM
If this does recur, please reopen this issue
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JELLY-106
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JELLY-106
Summary: Tag body as message body causes NullPointerException
Type: Bug
Status: Closed
Priority: Major
Resolution: CANNOT REPRODUCE
Project: jelly
Components:
taglib.email
Fix Fors:
1.0-beta-4
Assignee:
Reporter: Willie Vu
Created: Sun, 1 Feb 2004 5:36 PM
Updated: Tue, 31 Aug 2004 10:29 PM
Description:
<email:email server="${maven.check.email.server}"
from="${maven.check.email.from}" to="${maven.check.emails}"
subject="Unit Test Daily Build Failed">
${mailContent}
</email:email>
causes the following exception:
org.apache.commons.jelly.JellyTagException: file:/home/wks/timeroot/time/:349:48: <email:email> java.lang.NullPointerException
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:683)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:288)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:455)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
at org.apache.maven.cli.App.doMain(App.java:534)
at org.apache.maven.cli.App.main(App.java:1097)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:543)
at com.werken.forehead.Forehead.main(Forehead.java:573)
Caused by: java.lang.NullPointerException
at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915)
at javax.mail.internet.MimeBodyPart.setText(MimeBodyPart.java:812)
at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1333)
at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1321)
at org.apache.commons.jelly.tags.email.EmailTag.doTag(EmailTag.java:277)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
... 15 more
Root cause
java.lang.NullPointerException
at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915)
at javax.mail.internet.MimeBodyPart.setText(MimeBodyPart.java:812)
at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1333)
at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1321)
at org.apache.commons.jelly.tags.email.EmailTag.doTag(EmailTag.java:277)
If message attribute is used as follows, it works.
<email:email server="${maven.check.email.server}"
from="${maven.check.email.from}" to="${maven.check.emails}"
subject="Unit Test Daily Build Failed"
message="${mailContent}">
</email:email>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org