AnsweredAssumed Answered

got below error when I run sample Alfrescp SDK application i

Question asked by hkmcipatrick on Jul 7, 2009
Background:
- Alfresco Lab3c
- Alfresco SDK community 2.9
- Eclipse 3.4
- MySQL 5.0

I have done the installation of above components and my goals is to development an application which
Step1) Form submission by user
       2) Store the form in Alfresco space
       3) Start the Alfresco workflow(simple flow or advanced workflow)

I got below error when I run sample Alfrescp SDK application in Eclipse, please advise. Thanks

———————————————————————-

23:27:09,484 User:System ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Windows 2003
   command:    imconvert "C:\DOCUME~1\dmadmin\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_57492.gif"  "C:\DOCUME~1\dmadmin\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_57493.png"
   succeeded:  false
   exit code:  1
   out:       
   err:        CreateProcess: imconvert "C:\DOCUME~1\dmadmin\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_57492.gif" "C:\DOCUME~1\dmadmin\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_57493.png" error=2
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emailServer' defined in class path resource [alfresco/bootstrap-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/subethamail/smtp/MessageHandlerFactory
Caused by: java.lang.NoClassDefFoundError: org/subethamail/smtp/MessageHandlerFactory
   at java.lang.Class.getDeclaredConstructors0(Native Method)
   at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
   at java.lang.Class.getConstructor0(Unknown Source)
   at java.lang.Class.getDeclaredConstructor(Unknown Source)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:45)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:701)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:687)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:388)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:236)
   at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:701)
   at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:519)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:343)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:69)

———————————————————————–

Best Regards,

Patrick

Outcomes