Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-495

Add document does not work on weblogic11gR1 when file size is greater than 100KB.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.6.0
    • OpenCMIS 0.7.0
    • opencmis-client
    • None
    • JDK 1.6.24, Weblogic11gR1 (10.3.4), Windows XP, Alfresco

    Description

      I have a sample code which is used to upload document to a CMIS compliant alfresco content respository. I am not able to add the document which is size greater than 100KB. The exception stacktrace is below.

      The same code works when deployed on apache-tomcat-7.0.25.

      ####<Jan 25, 2012 4:47:08 PM IST> <Error> <HTTP> <aditya-idc> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1327490228328> <BEA-101020> <[ServletContext@23369005[app:_auto_generated_ear_ module:AlfrescoUploadWL path:/AlfrescoUploadWL spec-version:2.5]] Servlet failed with Exception
      java.lang.ArrayIndexOutOfBoundsException: -1
      at weblogic.utils.http.HttpChunkOutputStream.writeChunkHeader(HttpChunkOutputStream.java:177)
      at weblogic.utils.http.HttpChunkOutputStream.flush(HttpChunkOutputStream.java:197)
      at weblogic.utils.http.HttpChunkOutputStream.close(HttpChunkOutputStream.java:160)
      at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:360)
      at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:37)
      at weblogic.net.http.HttpURLConnection.getHeaderFields(HttpURLConnection.java:731)
      at com.sun.xml.ws.transport.http.client.HttpClientTransport.getHeaders(HttpClientTransport.java:179)
      at com.sun.xml.ws.transport.http.client.HttpResponseProperties.getResponseHeaders(HttpResponseProperties.java:62)
      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 com.sun.xml.ws.api.PropertySet$MethodAccessor.get(PropertySet.java:283)
      at com.sun.xml.ws.api.PropertySet.get(PropertySet.java:335)
      at com.sun.xml.ws.api.DistributedPropertySet.get(DistributedPropertySet.java:126)
      at com.sun.xml.ws.client.ResponseContext.get(ResponseContext.java:109)
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.endCall(AbstractPortProvider.java:174)
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:90)
      at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:716)
      at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:88)
      at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:443)
      at com.cmis.test.CMISExecClass.createDocument(CMISExecClass.java:147)
      at com.cmis.test.CMISExecClass.createDocument(CMISExecClass.java:75)
      at com.pgbu.test.UploadServlet.doPost(UploadServlet.java:46)
      at com.pgbu.test.UploadServlet.doGet(UploadServlet.java:30)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3717)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
      >

      Attachments

        Activity

          People

            fmui Florian Müller
            apoosarla Aditya Poosarla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: