[OPENAM-5370] NPE in DebugFileImpl if suffix date format is not configured Created: 21/Dec/14  Updated: 05/Jan/15  Resolved: 05/Jan/15

Status: Resolved
Project: OpenAM
Component/s: audit logging
Affects Version/s: 11.0.3, 12.0.1, 13.0.0
Fix Version/s: 11.0.3, 12.0.1, 13.0.0

Type: Bug Priority: Major
Reporter: Peter Major [X] (Inactive) Assignee: Quentin CASTEL [X] (Inactive)
Resolution: Fixed Votes: 1
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
is related to OPENAM-4614 MergeAll Option cause a desynchronisa... Resolved

 Description   

If the suffix date format is not configured, the following NPE can be seen when accessing the configurator pages:

java.lang.NullPointerException
at com.sun.identity.shared.debug.file.impl.DebugFileImpl.toString(DebugFileImpl.java:309)
at java.lang.String.valueOf(String.java:2847)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at com.sun.identity.shared.debug.file.impl.DebugFileImpl.initialize(DebugFileImpl.java:212)
at com.sun.identity.shared.debug.file.impl.DebugFileImpl.writeIt(DebugFileImpl.java:135)
at com.sun.identity.shared.debug.impl.DebugImpl.writeIt(DebugImpl.java:258)
at com.sun.identity.shared.debug.impl.DebugImpl.record(DebugImpl.java:232)
at com.sun.identity.shared.debug.impl.DebugImpl.warning(DebugImpl.java:214)
at com.sun.identity.shared.debug.Debug.warning(Debug.java:480)
at com.sun.identity.setup.EmbeddedOpenDS.getOpenDSVersion(EmbeddedOpenDS.java:1414)
at com.sun.identity.setup.EmbeddedOpenDS.isOpenDSVer1Installed(EmbeddedOpenDS.java:1363)
at com.sun.identity.config.Options.doInit(Options.java:68)
at com.sun.identity.config.util.TemplatedPage.onInit(TemplatedPage.java:88)
at org.apache.click.ClickServlet.performOnInit(ClickServlet.java:674)

This is because the toString implementation attempts to synchronize on a null field.



 Comments   
Comment by Quentin CASTEL [X] (Inactive) [ 05/Jan/15 ]

added to 13.0.0 in r12020

Comment by Quentin CASTEL [X] (Inactive) [ 05/Jan/15 ]

added to 12.0.1 in r12023

Comment by Quentin CASTEL [X] (Inactive) [ 05/Jan/15 ]

added to 11.0.3 in r12026

Generated at Sat Nov 28 22:51:36 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.