You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by iyy <iy...@apparelxml.net> on 2003/11/18 09:42:50 UTC

tomcat 4.0.3; cocoon 2.1.3 dev; sendmail logicsheet;attachment

hi,

we are trying to send email using sendmail logicsheet, email fails if an attachment is specified with cocoon:// protocol.
fragment:
 <sendmail:attachment url="cocoon:/done.xml"            mime-type="text/html"  name="test"/> 

error message is :
An error occurred: Sending failed; nested exception is: javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.IOException: SAXException: java.lang.NullPointerException 

above resource being attached produces xml on browser.

but attachments that are using context:// do not produce any error.

same situation with Sendmail action.

we have checked all sendmail questions on this messageboard and found no answer.

any help is welcome.

thanks in advance.


error log has the following hint:
ERROR   (2003-11-18) 14:00.17:484   [sitemap] (/cocoon/samples/mail/sendmail/ls) HttpProcessor[8080][4]/AbstractProcessingPipeline: Unabled to release processing component.
org.apache.cocoon.ProcessingException: Unable to remove component from automatic release: no environment available.
at org.apache.cocoon.components.CocoonComponentManager.removeFromAutomaticRelease(CocoonComponentManager.java:466)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.release(AbstractProcessingPipelin.java:206)
at org.apache.cocoon.components.source.impl.SitemapSource.reset(SitemapSource.java:488)
at org.apache.cocoon.components.source.impl.SitemapSource.recycle(SitemapSource.java:508)
at org.apache.cocoon.components.source.impl.SitemapSourceFactory.release(SitemapSourceFactory.java:113)
at org.apache.excalibur.source.impl.SourceResolverImpl.release(SourceResolverImpl.java:308)

and so on..

full error on dos console is :

java.lang.NullPointerException
at org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:521)
at org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.release(MutableEnvironmentFacade.java:344)
at org.apache.cocoon.transformation.TraxTransformer.recycle(TraxTransformer.java:496)
at org.apache.avalon.excalibur.pool.ResourceLimitingPool.put(ResourceLimitingPool.java:438)
at org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut(PoolableComponentHandler.java:245)
at org.apache.avalon.excalibur.component.ComponentHandler.put(ComponentHandler.java:452)
and so on..

from,
iyyappan