[opencms-dev] OAMP formgenerator 1.3.1 problem on ocms 7.0.5

Stephan Hartmann hartmann at metamesh.de
Wed Jun 3 22:08:25 CEST 2009


Hi Achim,

you're right, sorry, i mixed up version 7.0.4, 7.0.5 and HEAD in CVS and 
oversaw that Ludwig compiled OpenCms from source, which might be CVS HEAD.

Regards,
Stephan

a.westermann at alkacon.com schrieb:
> Hi Stephan,
>
> the changed email code (due to a new version of commons-email)  has not 
> been released now. The OAMP formgenerator module has been compiled for 
> version 7.0.5. If you stick with the released version 7.0.5 of OpenCms 
> you should not have any problems.
>
> Kind Regards,
> Achim.
>  
> -------------------
> Achim Westermann
>  
> Alkacon Software GmbH  - The OpenCms Experts                    
> http://www.alkacon.com - http://www.opencms.org                 
>                                                                 
> Visit OpenCms Days 2009 Conference and Expo                     
> June 15 to June 16 2009 in Cologne, Germany                         
> http://www.opencms-days.org  
>
>
>
>
> Stephan Hartmann wrote:
>   
>> The signature of org.opencms.mail.CmsSimpleMail.send() has changed.
>> The NoSuchMethodError states that it expects the method with a return 
>> type of void. This was true for OpenCms 7.0.4, but in OpenCms 7.0.5 the 
>> signature has changed to a return type of String.
>>
>> So the solution should be to compile the formgenerator module against 
>> OpenCms 7.0.5 or wait until Alkacon does ;-).
>>
>> Best Regards,
>> Stephan
>>
>>
>> Mathias Lin | SYSVISION schrieb:
>>   
>>     
>>> Are you using OCMS7.0.5 from the download website (binary distribution), or
>>> are you building the core jar (opencms.jar) from CVS?
>>> The problem sounds familiar, if I remember correctly you need to build
>>> opencms.jar from the CVS, the mail methods have different signatures I
>>> think.
>>>
>>>
>>>
>>> Ludwig Hunecke wrote:
>>>   
>>>     
>>>       
>>>> Dear Mailinglist,
>>>>
>>>> I tried to introcude the form generator module but run into some  
>>>> confusing problems.
>>>> If I try to submit a form and send an email, I get the following error:
>>>>
>>>> Caused by: java.lang.NoSuchMethodError:  
>>>> org.opencms.mail.CmsSimpleMail.send()V
>>>> 	at  
>>>> com 
>>>> .alkacon 
>>>> .opencms.formgenerator.CmsFormHandler.sendMail(CmsFormHandler.java:1218)
>>>> 	at  
>>>> com 
>>>> .alkacon 
>>>> .opencms.formgenerator.CmsFormHandler.sendData(CmsFormHandler.java:924)
>>>>
>>>> This problem occurs also if I try to send HTML mails in the class  
>>>> CmsHtmlMail.
>>>>
>>>> CmsSimpleMail definetly declares the method send. I have checked this  
>>>> in the source code, from which I compiled OpenCms.
>>>>
>>>> public class CmsSimpleMail extends SimpleEmail {
>>>>
>>>>      [...]
>>>>
>>>>      public String send() throws EmailException {
>>>>
>>>> I can't explain this problem in another way that the formgenerator  
>>>> module (version 1.3.1, which I downloaded today) has been compiled  
>>>> against another version of OpenCms or the apache commons email jar.
>>>>
>>>> Has anybody experiences with this issue?
>>>>
>>>>
>>>> Thanks & regards,
>>>> Ludwig
>>>>
>>>>
>>>> PS: If I try to debug the formgenerator source code, using the up-to- 
>>>> date CVS code, the lines don't match while debugging.
>>>>
>>>>
>>>>     
>>>>       
>>>>         
>>> -----
>>> Mathias Lin
>>> SYSVISION Ltd., China
>>> http://www.sysvision.com
>>>   
>>>     
>>>       
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>   
>>     
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>   




More information about the opencms-dev mailing list