Login  Register

Re: Re: Re: Orbeon 3.9 NullPointerException with websphere 6.1

Posted by Erik Bruchez on May 09, 2011; 6:40pm
URL: https://discuss.orbeon.com/Orbeon-3-9-NullPointerException-with-websphere-6-1-tp3445071p3510011.html

Olivier,

Thanks!

Now I am wondering one thing: could it be then that the exception
still occurs, but that it occurs in passivateObject(), is swallowed,
and then causes the Deflater to be discarded? I am thinking that this
would make sense since all that is done is move the call to reset()
from outside to inside the pool.

If that's the case, this means the Deflater wouldn't be reused. In
which case, using a pool is a waste, even more so if an exception is
thrown (as those can be costly).

What do you think?

-Erik

On Thu, May 5, 2011 at 8:17 AM, Olivier Thery <[hidden email]> wrote:

> 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
> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3498616/XFormsCompressor.scala
> XFormsCompressor.scala ), call it in the passivateObject function, which is
> invoked on every instance when it is returned to the pool (as explained
> http://commons.apache.org/pool/api-1.4/org/apache/commons/pool/PoolableObjectFactory.html
> 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
> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3498616/XFormsCompressor.jar
> 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.
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-3-9-NullPointerException-with-websphere-6-1-tp3445071p3498616.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws