NPE in ProcessInfo.getLastServerRebootDate()

Description

Hi,

If the system cannot find the lastServerSession, then a NPE is thrown.

Regards,

Nicolas

Environment

None

Activity

Show:

Carlos Ruiz February 20, 2021 at 11:02 AM

When that happens is very possible that you don’t have access to the idempiere server (idempiereMonitor and felix console), and your scheduled processes are not running.

Nicolas Micoud February 20, 2021 at 5:55 AM

Hi,

I've just reproduced the issue.
Eclipse runs in a VirtualBox. I've restored the DB (to be in same environnement as yesterday).
And launch the same process.
And got the same error

Something strange is that I already did those steps before in week and process ran fine.

I don't know what info can be relevant, so if you need something, tell me.

Regards,

Nicolas

Nicolas Micoud February 19, 2021 at 12:41 PM

Yes, I have this commit (the sources are based on branch 8.2)
The error was thrown locally ; I didn't debug and just created the patch.

But is weird it didn't happen before in my local environnement (it was updated since beginning of February)
Will do more tests

Carlos Ruiz February 19, 2021 at 11:34 AM

OK, found it. It was the ticket IDEMPIERE-4211, specifically I remember that was fixed with this commit:

 

, is this ticket integrated in your environment?

Regards,

Carlos Ruiz

Carlos Ruiz February 19, 2021 at 11:22 AM

Hi - we found a similar case recently (don’t remember at this moment the ticket).

But more than solving the NPE we were concerned why the “Server” session record was not being created.

In other words, that sounds like a symptom that the system is not running correctly as creating that session record must be the first thing it happens on AdempiereServerMgr.startEnvironment

I remember solved this in a different way (will try to keep finding the ticket)

Regards,

Carlos Ruiz

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created February 19, 2021 at 5:46 AM
Updated May 1, 2021 at 10:01 AM
Resolved February 26, 2021 at 11:36 AM