AnsweredAssumed Answered

Error in upload pdf

Question asked by scricciolo on Sep 30, 2009
Latest reply on Nov 16, 2009 by crisboot
Hello,

I have an Alfresco Community v3.2.0 (2039) with Share.
I have a strange error when I try to upload a pdf file to the document library of Share.


HTTP/1.1 500 Internal Server Error
Date: Wed, 30 Sep 2009 09:14:17 GMT
Cache-Control: no-cache
Pragma: no-cache
Connection: close
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked

{
    "status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  }, 
 
  "message" : "08300006 Wrapped Exception (with status template): 08300005 Failed to execute script '\/org\/alfresco\/repository\/upload\/upload.post.js (in classpath store file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': null", 
  "exception" : "org.alfresco.web.scripts.WebScriptException - 08300006 Wrapped Exception (with status template): 08300005 Failed to execute script '\/org\/alfresco\/repository\/upload\/upload.post.js (in classpath store file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': null",
 
  "callstack" :
  [
  .  ""      ,"java.lang.NullPointerException"
      ,"org.alfresco.repo.action.executer.ContentMetadataExtracter.executeImpl(ContentMetadataExtracter.java:185)"
      ,"org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)"
      ,"org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:711)"
      ,"org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:648)"
      ,"org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:510)"
      ,"org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:498)"
      ,"org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:719)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)"
      ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
      ,"java.lang.reflect.Method.invoke(Method.java:597)"
      ,"org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)"
      ,"org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)"
      ,"org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)"
      ,"org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)"
      ,"org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)"
      ,"org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)"
      ,"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)"
      ,"$Proxy24.executeAction(Unknown Source)"
      ,"org.alfresco.repo.jscript.ScriptAction$1.execute(ScriptAction.java:183)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)"
      ,"org.alfresco.repo.jscript.ScriptAction.execute(ScriptAction.java:187)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)"
      ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
      ,"java.lang.reflect.Method.invoke(Method.java:597)"
      ,"org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)"
      ,"org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)"
      ,"org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)"
      ,"org.mozilla.javascript.gen.c15._c1(file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/repository\/upload\/upload.post.js:242)"
      ,"org.mozilla.javascript.gen.c15.call(file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/repository\/upload\/upload.post.js)"
      ,"org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)"
      ,"org.mozilla.javascript.gen.c15._c0(file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/repository\/upload\/upload.post.js:264)"
      ,"org.mozilla.javascript.gen.c15.call(file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/repository\/upload\/upload.post.js)"
      ,"org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)"
      ,"org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)"
      ,"org.mozilla.javascript.gen.c15.call(file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/repository\/upload\/upload.post.js)"
      ,"org.mozilla.javascript.gen.c15.exec(file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/repository\/upload\/upload.post.js)"
      ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:449)"
      ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:174)"
      ,"org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:274)"
      ,"org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)"
      ,"org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:819)"
      ,"org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:357)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:407)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:424)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:288)"
      ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:262)"
      ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)"
      ,"org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)"
      ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:803)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)"
      ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)"
      ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)"
      ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)"
      ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)"
      ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)"
      ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)"
      ,"org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)"
      ,"org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)"
      ,"org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)"
      ,"org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)"
      ,"org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)"
      ,"java.lang.Thread.run(Thread.java:619)"
      ,"org.alfresco.scripts.ScriptException: 08300005 Failed to execute script '\/org\/alfresco\/repository\/upload\/upload.post.js (in classpath store file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': null"
      ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:178)"
      ,"org.alfresco.web.scripts.WebScriptException: 08300006 Wrapped Exception (with status template): 08300005 Failed to execute script '\/org\/alfresco\/repository\/upload\/upload.post.js (in classpath store file:\/var\/lib\/tomcat5\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': null"
      ,"org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:613)"

  ],
 
  "server" : "Alfresco Community v3.2.0 (2039) schema 2,019",
  "time" : "Sep 30, 2009 11:14:29 AM"
}

pdf2swf 0.9.0
openoffice 2.3.0
Tomcat 5.5.26
Java 1.6.0_16

The problem exist only with a pdf. I can't publish it, the content is reserved. I have many other pdf, with protections or with Tagged PDF or Fast Web View enabled, but I haven't problem to upload.
These are some informations of pdf file:

[img]http://bayimg.com/image/gaeciaacd.jpg[/img]

I tried to convert it with pdf2swf and work without problems.

Thank you very much for the help.

Outcomes