Ahh... many thanks.
On Tue, Jan 26, 2021 at 7:02 AM Lukasz Lenart
wrote:
> wt., 26 sty 2021 o 13:45 Burton Rhodes
> napisał(a):
> >
> > Lukasz -
> > Sorry if this is a dumb question, but where and how do I call the
> > readObject() method that you suggested?
>
> It is used by JVM when an object
wt., 26 sty 2021 o 13:45 Burton Rhodes napisał(a):
>
> Lukasz -
> Sorry if this is a dumb question, but where and how do I call the
> readObject() method that you suggested?
It is used by JVM when an object is deserialized
https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
https:
Lukasz -
Sorry if this is a dumb question, but where and how do I call the
readObject() method that you suggested?
On Tue, Jan 26, 2021 at 6:33 AM Burton Rhodes
wrote:
> Many thanks... I will give that a try!
>
>
> On Tue, Jan 26, 2021 at 1:51 AM Lukasz Lenart
> wrote:
>
>> pon., 25 sty 2021 o
Many thanks... I will give that a try!
On Tue, Jan 26, 2021 at 1:51 AM Lukasz Lenart
wrote:
> pon., 25 sty 2021 o 19:52 Burton Rhodes
> napisał(a):
> > public class OpenSessionBackgroundProcess extends BackgroundProcess {
>
> BackgroundProcess is marked as Serializable so container can
> tempo
AFAIK Object does not implement Serializable
is there an object your code can implement for lock object that implements
Serializable?
m-
From: Burton Rhodes
Sent: Monday, January 25, 2021 1:52 PM
To: Struts Users Mailing List
Subject: Re: NPE using
pon., 25 sty 2021 o 19:52 Burton Rhodes 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 th
The complete class is below (and also here: https://pastebin.com/Z8QyTRzM).
It extends org.apache.struts2.interceptor.BackgroundProcess which
implements serializable. Do I need to explicitly implement? Or do you see
anything else that might be the cause? Many thanks.
package com.afs.web.common.
czw., 21 sty 2021 o 18:56 Burton Rhodes napisał(a):
> synchronized (lock) { <-- NPE is here
How is this lock defined? Is it a serializable class?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
--
I have an application that uses the OpenSessionBackgroundProcess class as
described here:
https://docs.huihoo.com/apache/struts/2.1.8/hibernateandspringenabledexecuteandwaitinterceptor.html
It works fine the vast majority of the time, but every once in a while I
get a NPE at the line "synchronized
9 matches
Mail list logo