Login  Register

Re: Re: Orbeon 3.9 NullPointerException with websphere 6.1

Posted by Olivier Thery on May 05, 2011; 3:17pm
URL: https://discuss.orbeon.com/Orbeon-3-9-NullPointerException-with-websphere-6-1-tp3445071p3498616.html

Hi Erik,

all issues are now solved.

The session issue was about paramater to enable cookies in Websphere.
For the NPE due to Deflater, my solution exposed in previous post works fine.
Instead of calling Deflater.reset() in the Finally part of the compressBytes function (see XFormsCompressor.scala), call it in the passivateObject function, which is invoked on every instance when it is returned to the pool (as explained here)

To test my solution, you have to :
1) unzip orbeon.jar under WEB-INF\lib directory in a temp directory
2) delete XFormsCompressor classes (6 files)
3) zip the content of the temp directory in orbeon-modified.jar
4) add this new package XFormsCompressor.jar in WEB-INF\lib directory

As I said before, this solution works fine with Websphere 6.1 + IBM JVM and Tomcat 6 + Sun JVM.

Could you make this change in the XFormsCompressor.scala source file to integrate it in a nexet nigthly build ?

Thanks.