cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Hartwig <t.hartwig.n...@crapoud.com>
Subject Re: sendmail nullpointerexception
Date Fri, 09 Jul 2004 16:24:11 GMT
I removed the attachment field and now it works with the others as well.

Thomas Hartwig wrote:
> After some searching I have found my problem in Lenya which is not 
> prepared for sending and does not include the library by default: 
> cocoon-mail-block.jar
> 
> But now it comes to an other problem. I do the tests now with the mail 
> example of the standard cocoon distribution:
> http://localhost:8080/cocoon/samples/blocks/mail/sendmail
> 
> Here only one type of action does work well: "old action". The other two 
> just raise the error "Not yet supported".
> I'm wondering about this since, in the Wiki the "logicsheet" action 
> seems to be the prioritized method.
> 
> Regards
> Thomas
> 
> Thomas Hartwig wrote:
> 
>> Hello,
>>
>> I'm trying to use the sendmail feature like described in 
>> http://wiki.apache.org/cocoon/RecipeXSPSendMailExample, but it fails 
>> with an exception. I'm using 2.1.5 and try to set it up within the 
>> Lenya application. Jars are all placed.
>>
>> The error occurs if I submit the default form. I use following pipeline:
>>
>>         <map:pipeline>
>>             <map:match pattern="*/sendmailform">
>>                 <map:read mime-type="text/html" 
>> src="sendmail/sendmailform.xhtml"/>
>>             </map:match>
>>             <map:match pattern="">
>>                 <map:redirect-to uri="sendmailform"/>
>>             </map:match>
>>             <map:match pattern="*/send-a-mail">
>>                 <map:generate src="sendmail/sendmail.xsp" 
>> type="serverpages"/>
>>                 <map:serialize/>
>>             </map:match>
>>         </map:pipeline>
>>
>>
>> The error itself:
>>
>> org.apache.cocoon.ProcessingException: Could not transform 
>> resource://org/apache/cocoon/components/language/markup/xsp/java/sendmail.xsl: 
>> org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
>> creating Transform Handler
>>
>> cause: java.lang.NullPointerException
>> [...]
>> Caused by: java.lang.NullPointerException
>>     at 
>> org.apache.excalibur.source.impl.ResourceSource.getInputStream(ResourceSource.java:97)

>>
>>     at 
>> org.apache.excalibur.xml.xslt.XSLTProcessorImpl.sourceToSAX(XSLTProcessorImpl.java:363)

>>
>>     at 
>> org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:276)

>>
>>     ... 87 more
>>
>>
>> Thanks for any suggestions
>> Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message