message d'erreur aperçu de fichier

cancel
Showing results for 
Search instead for 
Did you mean: 
anne_2465
Member II

message d'erreur aperçu de fichier

Bonjour,

J'utilise Alfresco 2.1 et lorsque je clique sur l'icone d'information d'un fichier (le i dans un cercle), j'ai le message d'erreur suivant :
500:failed to execute method NodeInfoBean.sendNodeInfo:Unknown Exeption in Transaction

ça fonctionne sur certains fichiers.

Merci.

Anne
9 Replies
rguinot
Customer

Re: message d'erreur aperçu de fichier

Plus d'infos :

OS ? Db ?  Tomcat ou JBoss ?  log complet avec la balise CODE ….

Merci.
anne_2465
Member II

Re: message d'erreur aperçu de fichier

Bonjour,
mon OS est windows server 2003, base de données mysql, Tomcat
Log :
16:45:29,484 ERROR [alfresco.ajax] Failed to execute method NodeInfoBean.sendNodeInfo: Unknown Exception in Transaction.
org.alfresco.error.AlfrescoRuntimeException: Unknown Exception in Transaction.
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:292)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
   at org.alfresco.web.app.servlet.ajax.InvokeCommand.execute(InvokeCommand.java:167)
   at org.alfresco.web.app.servlet.ajax.AjaxServlet.service(AjaxServlet.java:148)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.alfresco.web.app.servlet.ajax.InvokeCommand$1.execute(InvokeCommand.java:163)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
   … 18 more
Caused by: org.alfresco.service.cmr.repository.TemplateException: Une erreur est survenue lors de la génération du modèle 'Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2008/1/18/11/7/398258e1-c5ad-11dc-a34f-8b8a3711c3ee.bin, mimetype=application/pdf, size=546485, encoding=UTF-8, locale=fr_FR]
   writer: ContentAccessor[ contentUrl=store://2008/2/22/16/45/318e75d3-e15d-11dc-90cc-abc58b3f20b9.bin, mimetype=text/plain, size=0, encoding=UTF-8, locale=fr_FR]
   options: {}'.
   at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:204)
   at org.alfresco.repo.processor.TemplateServiceImpl.processTemplate(TemplateServiceImpl.java:177)
   at org.alfresco.repo.processor.TemplateServiceImpl.processTemplate(TemplateServiceImpl.java:107)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:256)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:191)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   at $Proxy94.processTemplate(Unknown Source)
   at org.alfresco.web.bean.ajax.NodeInfoBean.sendNodeInfo(NodeInfoBean.java:92)
   … 24 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2008/1/18/11/7/398258e1-c5ad-11dc-a34f-8b8a3711c3ee.bin, mimetype=application/pdf, size=546485, encoding=UTF-8, locale=fr_FR]
   writer: ContentAccessor[ contentUrl=store://2008/2/22/16/45/318e75d3-e15d-11dc-90cc-abc58b3f20b9.bin, mimetype=text/plain, size=0, encoding=UTF-8, locale=fr_FR]
   options: {}
   at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:255)
   at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:210)
   at org.alfresco.repo.content.RoutingContentService.transform(RoutingContentService.java:468)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:129)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:238)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   at $Proxy24.transform(Unknown Source)
   at org.alfresco.repo.template.BaseContentNode$TemplateContentData.getContentAsText(BaseContentNode.java:478)
   at org.alfresco.repo.template.CropContentMethod.exec(CropContentMethod.java:64)
   at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
   at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
   at freemarker.core.Assignment.accept(Assignment.java:90)
   at freemarker.core.Environment.visit(Environment.java:196)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:196)
   at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
   at freemarker.core.Environment.visit(Environment.java:196)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:196)
   at freemarker.core.Environment.process(Environment.java:176)
   at freemarker.template.Template.process(Template.java:232)
   at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:200)
   … 46 more
Caused by: java.lang.NoClassDefFoundError: org/bouncycastle/cms/CMSException
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:169)
   at org.pdfbox.pdmodel.encryption.SecurityHandlersManager.class$(SecurityHandlersManager.java:84)
   at org.pdfbox.pdmodel.encryption.SecurityHandlersManager.<init>(SecurityHandlersManager.java:86)
   at org.pdfbox.pdmodel.encryption.SecurityHandlersManager.getInstance(SecurityHandlersManager.java:159)
   at org.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:905)
   at org.pdfbox.pdmodel.PDDocument.decrypt(PDDocument.java:489)
   at org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:204)
   at org.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:149)
   at org.alfresco.repo.content.transform.PdfBoxContentTransformer.transformInternal(PdfBoxContentTransformer.java:77)
   at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:246)
   … 83 more
rivarola
Active Member

Re: message d'erreur aperçu de fichier

java.lang.NoClassDefFoundError: org/bouncycastle/cms/CMSException

Etrange, c'est comme s'il manquait une librairie de l'application. C'est une version binaire "officielle" ou un Alfresco construit à partir des sources ?
rguinot
Customer

Re: message d'erreur aperçu de fichier

Le .jar bcmail-jdk15-137.jar est il présent dans ton WEB-INF/lib ?
anne_2465
Member II

Re: message d'erreur aperçu de fichier

non, je n'ai pas ce fichier.

Mais je n'ai pas le problème sur tous les fichiers importés dans Alfreso, seulement sur ceux d'un utilisateur.
rguinot
Customer

Re: message d'erreur aperçu de fichier

Tu aurass le problème pour tous les utilisateurs lorsque tu effectues une conversion PDF vers texte "manuellement", ou bien lors de l'ajout d'un PDF dans le repository et son indexation par Lucene :

Caused by: org.alfresco.service.cmr.repository.TemplateException: Une erreur est survenue lors de la génération du modèle 'Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2008/1/18/11/7/398258e1-c5ad-11dc-a34f-8b8a3711c3ee.bin, mimetype=application/pdf, size=546485, encoding=UTF-8, locale=fr_FR]
   writer: ContentAccessor[ contentUrl=store://2008/2/22/16/45/318e75d3-e15d-11dc-90cc-abc58b3f20b9.bin, mimetype=text/plain, size=0, encoding=UTF-8, locale=fr_FR]

Où as tu récupéré cette version d'Alfresco ?
anne_2465
Member II

Re: message d'erreur aperçu de fichier

j'utilise la version community 2.1.0 récupéré sur Forge
rguinot
Customer

Re: message d'erreur aperçu de fichier

Cela est bien étrange…

Tu peux néanmoins récupérer ce jar à cette adresse : http://polydistortion.net/bc/download/bcmail-jdk15-137.jar
A placer dans WEB-INF/lib (redémarrer Alfresco)
anne_2465
Member II

Re: message d'erreur aperçu de fichier

Ca marche !

Merci beaucoup !

Anne