Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-253

NullPointerException in HttpServletResponseBufferingWrapper (Cocoon bug?)


    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu Linux 8.4, Gentoo Linux 2008.0, maybe others.
      Tomcat 5.5, Tomcat 6
      JDK 1.6, maybe others
      AJP or HTTP proxy from Apache HTTPD (mod_jk and mod_proxy_ajp both tried)
    • Attachments:
    • Comments:


      Reported by Sean Carte in http://sourceforge.net/mailarchive/forum.php?thread_name=5d9253070906110526h5cb0f74cof17ba0c6b4eb449e%40mail.gmail.com&forum_name=dspace-tech

      This seems to leave an "idle in transaction" DBMS connection each time, which leads to a long pause followed by an error page in subsequent requests which get that connection from the pool. Some requests go through, many do not.

      There was a very likely suggestion that this is described and fixed in https://issues.apache.org/jira/browse/COCOON-2217, leaving the problem of how to get that Cocoon fix built into DSpace. Adjusting dspace-xmlui/dspace-xmlui-webapp/pom.xml to build against cocoon-servlet-service-impl-1.2.0 added a new layer of problem: the Cocoon servlet:context element in a Spring application context now requires a schema name in the context-path attribute.

      Apparently the context-path should now be "blockcontext:/". However this adds a third layer of mystery: the blockcontext schema is not recognized, even though sample Cocoon 2.2 code at the Cocoon site employs it successfully. An additional complication: it appears that an archive becomes a Cocoon block by being named via Cocoon-Block-Name in its manifest, but I can't find this being done in DS 1.5.2. So even if we could use blockcontext: we would have no block context.


        1. 152.patch
          2 kB
        2. dspace-xmlui-servlet.patch
          2 kB
        3. jnet-stacktrace.txt
          31 kB
        4. patch-custom-cocoon-dependency.patch
          1.0 kB

          Issue Links



              • Assignee:
                mdiggory Mark Diggory
                mwood Mark H. Wood
              • Votes:
                2 Vote for this issue
                8 Start watching this issue


                • Created: