AnsweredAssumed Answered

Attachment Attribute - Error 500

Question asked by ca.portal.admin on May 5, 2010
Latest reply on May 7, 2010 by another_martink
Hi all,I created a simple object made of only one required  attachment attribute.The problem is that is not possible to create an istance of this object because, with a simple 1KB test file, I receive the following message:Error 500 - Internal Server Error. The server could not retrieve the document due to server-configuration or other technical problems. Contact your site administrator.  The following is the content of the app-niku log file ("Unable to create attribute attachment folder" seems to be the cause of the exception but at the moment I don't understand how to solve this issue).  Thank you in advance for your help.  Best regards,Marino  ERROR 2010-05-05 12:15:28,037 [http-80-Processor14] object.ODFAbstractObjectImpl (admin:37545288__-2944b728:odf.customObjectInsertAndClose) Unable to create attribute attachment folder
java.lang.ArrayIndexOutOfBoundsException: 0
 at com.niku.odf.object.ODFAbstractObjectImpl.getFolderId(ODFAbstractObjectImpl.java:3092)
 at com.niku.odf.object.ODFAbstractObjectImpl.processNewAttachment(ODFAbstractObjectImpl.java:2800)
 at com.niku.odf.object.ODFAbstractObjectImpl.processAttachments(ODFAbstractObjectImpl.java:2612)
 at com.niku.odf.object.ODFObjectImpl.insert(ODFObjectImpl.java:2043)
 at com.niku.odf.object.ODFObjectImpl.insert(ODFObjectImpl.java:1964)
 at com.niku.odf.service.ODFUpdateServiceBinding.process(ODFUpdateServiceBinding.java:105)
 at com.niku.odf.service.ODFService.doProcess(ODFService.java:183)
 at com.niku.odf.service.BaseODFService.processRequest(BaseODFService.java:109)
 at com.niku.union.service.ServiceControlImpl.processRequest(ServiceControlImpl.java:759)
 at com.niku.union.service.ServiceControlImpl.processRequest(ServiceControlImpl.java:213)
 at com.niku.union.web.WebServiceAdapter.processRequest(WebServiceAdapter.java:195)
 at com.niku.union.web.PortletController.processServiceRequest(PortletController.java:1323)
 at com.niku.union.web.PortletController.processProcessActionRequest(PortletController.java:229)
 at com.niku.union.web.PortletController.processRequest(PortletController.java:156)
 at com.niku.union.web.WebActionController.processAction(WebActionController.java:1090)
 at com.niku.union.web.WebActionController.processRequest(WebActionController.java:170)
 at com.niku.union.web.WebControlServlet.service(WebControlServlet.java:319)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at com.niku.union.web.filter.GZIPResponseFilter.doFilter(GZIPResponseFilter.java:121)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:29)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595)
ERROR 2010-05-05 12:15:28,037 [http-80-Processor14] object.ODFAbstractObjectImpl (admin:37545288__-2944b728:odf.customObjectInsertAndClose) Could not save document D:\Documents and Settings\marino.f.bianco\Desktop\New Text Document.txt exception com.niku.union.odf.exception.ODFException: Unable to create attribute attachment folder
ERROR 2010-05-05 12:15:28,037 [http-80-Processor14] service.ODFService (admin:37545288__-2944b728:odf.customObjectInsertAndClose) processRequest Exception
com.niku.union.odf.exception.ODFException: Error writing file D:\Documents and Settings\marino.f.bianco\Desktop\New Text Document.txt to file system
 at com.niku.odf.object.ODFAbstractObjectImpl.processNewAttachment(ODFAbstractObjectImpl.java:2903)
 at com.niku.odf.object.ODFAbstractObjectImpl.processAttachments(ODFAbstractObjectImpl.java:2612)
 at com.niku.odf.object.ODFObjectImpl.insert(ODFObjectImpl.java:2043)
 at com.niku.odf.object.ODFObjectImpl.insert(ODFObjectImpl.java:1964)
 at com.niku.odf.service.ODFUpdateServiceBinding.process(ODFUpdateServiceBinding.java:105)
 at com.niku.odf.service.ODFService.doProcess(ODFService.java:183)
 at com.niku.odf.service.BaseODFService.processRequest(BaseODFService.java:109)
 at com.niku.union.service.ServiceControlImpl.processRequest(ServiceControlImpl.java:759)
 at com.niku.union.service.ServiceControlImpl.processRequest(ServiceControlImpl.java:213)
 at com.niku.union.web.WebServiceAdapter.processRequest(WebServiceAdapter.java:195)
 at com.niku.union.web.PortletController.processServiceRequest(PortletController.java:1323)
 at com.niku.union.web.PortletController.processProcessActionRequest(PortletController.java:229)
 at com.niku.union.web.PortletController.processRequest(PortletController.java:156)
 at com.niku.union.web.WebActionController.processAction(WebActionController.java:1090)
 at com.niku.union.web.WebActionController.processRequest(WebActionController.java:170)
 at com.niku.union.web.WebControlServlet.service(WebControlServlet.java:319)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at com.niku.union.web.filter.GZIPResponseFilter.doFilter(GZIPResponseFilter.java:121)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:29)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595)
Caused by: com.niku.union.odf.exception.ODFException: Unable to create attribute attachment folder
 at com.niku.odf.object.ODFAbstractObjectImpl.getFolderId(ODFAbstractObjectImpl.java:3099)
 at com.niku.odf.object.ODFAbstractObjectImpl.processNewAttachment(ODFAbstractObjectImpl.java:2800)
 ... 37 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
 at com.niku.odf.object.ODFAbstractObjectImpl.getFolderId(ODFAbstractObjectImpl.java:3092)
 ... 38 more  

Outcomes