Accueil

Probleme d'execution du SDK FirstFundationClient (V3.0)

Vous êtes ici

20 contributions / 0 nouveau(x)
Dernière contribution
Probleme d'execution du SDK FirstFundationClient (V3.0)

Bonjour a tout;
Je travail avec la version 3.0
Je souhaite tester le SDK FirstFoundationClient pour essayer par la suite peu a peu le développement autour d'alfresco; mais l'execution de la classe FirstFoundationClient.java echoue et voila les messages d'erreurs générés:

    Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luceneFullTextSearchIndexer' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'indexerAndSearcherFactory' while setting bean property 'indexerAndSearcherFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'admLuceneIndexerAndSearcherFactory' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admLuceneIndexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'mlAwareNodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mlAwareNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeService' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeServiceImpl' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'qnameDAO' while setting bean property 'qnameDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qnameDAO' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/json/JSONException
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'admLuceneIndexerAndSearcherFactory' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admLuceneIndexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'mlAwareNodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mlAwareNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeService' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeServiceImpl' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'qnameDAO' while setting bean property 'qnameDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qnameDAO' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/json/JSONException
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admLuceneIndexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'mlAwareNodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mlAwareNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeService' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeServiceImpl' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'qnameDAO' while setting bean property 'qnameDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qnameDAO' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/json/JSONException
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mlAwareNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeService' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeServiceImpl' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'qnameDAO' while setting bean property 'qnameDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qnameDAO' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/json/JSONException
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeServiceImpl' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'qnameDAO' while setting bean property 'qnameDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qnameDAO' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/json/JSONException
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeServiceImpl' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'qnameDAO' while setting bean property 'qnameDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qnameDAO' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/json/JSONException
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qnameDAO' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/json/JSONException
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory'

S'il vous plais si qq'un peut m'aider :wink:

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Il semble qu'il vous manque des jars dans le classpath d'Eclipse. pouvez vous vérifier que le projet que vous essayez de lancer dépend bien du projet Alfresco Embedded, et que ce dernier possède json.jar dans son classpath ?

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Merci je vais verifier :wink:

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Pour vérifier que la jar json.jar est dans son classpath :
Clic droit sur le projet AlfrescoEmbedded > Properties > Java Build Path > onglet Libraries
Si elle n'y est pas : Add jars => SDK AlfrescoEmbedded/dependencies/json.jar

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Merci beaucoup Bertrand;
J'ai ajouté le json.jar alors le message d'erreur a changé (mais tj il y'a erreur :roll: )

    17:05:48,959  ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation: 
    Execution result: 
    os: Windows Vista
    command: imconvert "C:\Users\Hada\AppData\Local\Temp\Alfresco\ImageMagickContentTransformer_init_source_52145.gif" "C:\Users\Hada\AppData\Local\Temp\Alfresco\ImageMagickContentTransformer_init_target_52146.png"
    succeeded: false
    exit code: 1
    out:
    err: CreateProcess: imconvert "C:\Users\Hada\AppData\Local\Temp\Alfresco\ImageMagickContentTransformer_init_source_52145.gif" "C:\Users\Hada\AppData\Local\Temp\Alfresco\ImageMagickContentTransformer_init_target_52146.png" error=2
    Exception in thread "main" java.lang.NoClassDefFoundError: com.ibatis.sqlmap.client.SqlMapClientBuilder
    at org.springframework.orm.ibatis.SqlMapClientFactoryBean.class$(SqlMapClientFactoryBean.java:65)
    at org.springframework.orm.ibatis.SqlMapClientFactoryBean.<clinit>(SqlMapClientFactoryBean.java:64)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
    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.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:573)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:514)
    at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:415)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:167)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:231)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:225)
    at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.postProcessBeanFactory(FullTextSearchIndexerImpl.java:249)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:419)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:328)
    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)

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Ce lien peut vous intéresser : https://issues.alfresco.com/jira/browse/ETHREEOH-821

Il faut que vous ajoutiez une autre jar au classpath du projet AlfrescoEmbedded : ibatis-2.3.0.677.jar (dans le dossier dependencies également)

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Merci pour la reponse mais tj il y a des erreurs :|

08:56:26,345  ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation: 
Execution result: 
   os:         Windows Vista
   command:    imconvert "C:\Users\Hada\AppData\Local\Temp\Alfresco\ImageMagickContentTransformer_init_source_15529.gif"  "C:\Users\Hada\AppData\Local\Temp\Alfresco\ImageMagickContentTransformer_init_target_15530.png"
   succeeded:  false
   exit code:  1
   out:        
   err:        CreateProcess: imconvert "C:\Users\Hada\AppData\Local\Temp\Alfresco\ImageMagickContentTransformer_init_source_15529.gif" "C:\Users\Hada\AppData\Local\Temp\Alfresco\ImageMagickContentTransformer_init_target_15530.png" error=2
08:56:27,095  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
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(Class.java:2357)
	at java.lang.Class.getConstructor0(Class.java:2671)
	at java.lang.Class.getDeclaredConstructor(Class.java:1953)
	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)

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Essayez peut être d'ajouter toutes les jars qui se trouvent dans le dossier "dependencies" du SDK.

EDIT : http://forums.alfresco.com/fr/viewtopic.php?f=10&t=1456

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

J'ai lu la documentation se trouvant dans le wiki alfresco et je croix que j'ai trouvé ou était le probleme mais j'ai pas compris ces deux lignes (dans le wiki developper guide):

# rename the convert executable to imconvert to avoid a conflict with the Windows convert.exe OR
# override the transformer.ImageMagick bean found in content-services-context.xml and modify the commandMap.

c'est quoi le "commandMap" que je doit modifier exactement ! :!:

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Est ce que le ImageMagick est necessaire pour l'execution du FirstFoundationClient !?

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Bonjour;
J'ai résolu le probleme du ImageMagick, il fallait que je renomme l'executable se trouvant sous C:\Alfresco\ImageMagick\bin,
j'ai suivit le wiki http://wiki.alfresco.com/wiki/ImageMagick_Configuration
mais le probleme c'est que tj il y'a des erreurs lors de l'execution du FirstFoundationClient :x :

11:06:39,970  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
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(Class.java:2357)
	at java.lang.Class.getConstructor0(Class.java:2671)
	at java.lang.Class.getDeclaredConstructor(Class.java:1953)
	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)

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

BertrandF a écrit :
Essayez peut être d'ajouter toutes les jars qui se trouvent dans le dossier "dependencies" du SDK.

EDIT : http://forums.alfresco.com/fr/viewtopic.php?f=10&t=1456

Il faut importer la librairie subetha-smtp.jar à votre projet.
Celle-ci se trouve dans lib/server/dependencies de votre dossier alfresco SDK.

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Slt;
Est ce que je doit vraiment ajouter tout les jar car ca ne cessent pas de generer des erreurs, voila les erreurs apres que j'ai ajouté le jar subetha-smtp.jar

12:14:30,368  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
12:14:32,256  WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wordPressBlogIntegration' defined in class path resource [alfresco/blog-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: marquee/xmlrpc/XmlRpcCustomSerializer
Caused by: java.lang.NoClassDefFoundError: marquee/xmlrpc/XmlRpcCustomSerializer
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
	at java.lang.Class.getConstructor0(Class.java:2671)
	at java.lang.Class.getDeclaredConstructor(Class.java:1953)
	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.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
	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)

et merci pour vos reponse Bertrand :wink:

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

A chaque fois que l'erreur est du type java.lang.NoClassDefFoundError, c'est qu'il manque une jar.
Ça ne vous coute rien d'ajouter tous les jars du dossier dependencies (surtout avec la multi-selection).

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

dacord merci je vais essayer :wink:

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

J'ai ajouté tout les jar se trouvant sous dependencies mais les meme erreurs précédentes persistent :roll:

Probleme d'execution du SDK FirstFundationClient (V3.3)

Bonjour tout le monde ,
j'ai un problème avec l'exécution de SDK-FirstFoundationClient.
quand je compile le SDK-FirstFoundationClient, voici le message d'erreur qui m'affiche :

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmRemoteService' defined in class path resource [alfresco/remote-services-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Listen failed on port: 50501; nested exception is:
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:84)
at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)
at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:63)
Caused by: java.rmi.server.ExportException: Listen failed on port: 50501; nested exception is:
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:312)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:293)
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:235)
at org.springframework.remoting.rmi.RmiServiceExporter.prepare(RmiServiceExporter.java:280)
at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:227)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
... 14 more
Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.(ServerSocket.java:185)
at java.net.ServerSocket.(ServerSocket.java:97)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:27)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:333)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
... 24 more

j'ai besoin de vos aides, je suis bloqué ca fait 2 jours.

Merci

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

j'ai trouvé la solution, veuillez visiter la page de mes réponses..... :)

bon courage :wink:

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Bonjour,

Pensez à bien killer les process avant de redémarrer...

Re: Probleme d'execution du SDK FirstFundationClient (V3.0)

Merci je vais verifier