struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burton Rhodes <burtonrho...@gmail.com>
Subject Re: NPE using OpenSessionBackgroundProcess class
Date Tue, 26 Jan 2021 12:33:49 GMT
Many thanks... I will give that a try!


On Tue, Jan 26, 2021 at 1:51 AM Lukasz Lenart <lukaszlenart@apache.org>
wrote:

> pon., 25 sty 2021 o 19:52 Burton Rhodes <burtonrhodes@gmail.com>
> napisał(a):
> > public class OpenSessionBackgroundProcess extends BackgroundProcess {
>
> BackgroundProcess is marked as Serializable so container can
> temporarily store it on disk
>
> > private Object lock = new Object(); // used for synchronization
>
> I would mark this as transient and add
>
> private void readObject(ObjectInputStream inputStream) throws
> IOException, ClassNotFoundException {
>     lock = new Object();
> }
>
> maybe it will help
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message