Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-11473

NumberFormatException on startup for External configuration setup

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 14.0.0, 14.1.0, 5.5.1, 6.0.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4, 6.0.0.5, 6.0.0.6
    • Fix Version/s: 6.5.0, 6.0.1, 5.5.2
    • Component/s: other
    • Labels:
    • Target Version/s:
    • Sprint:
      AM Sustaining Sprint 57
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      On a fresh install of AM 5.0 and 5.1 with an external OpenDJ config the startup of the Configuration logs have

      ERROR: AMSetupServlet.checkConfigProperties
      java.lang.NumberFormatException: null
              at java.lang.Integer.parseInt(Integer.java:542)
              at java.lang.Integer.valueOf(Integer.java:766)
              at com.sun.identity.setup.AMSetupServlet.checkConfigProperties(AMSetupSe
      rvlet.java:331)
              at com.sun.identity.setup.AMSetupServlet.init(AMSetupServlet.java:218)
              at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.
      java:1227)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
      java:1140)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:10
      27)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
      t.java:5038)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContex
      t.java:5348)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:753)
      

      How to reproduce the issue

      1. Setup an External Directory
      2. Install OpenAM with the external config directory above
      3. Restart OpenAM
      4. Check Configuration logs for this error

      Expected behaviour

      There should be no error as there is no embedded config

      Current behaviour
      ERROR: AMSetupServlet.checkConfigProperties
      java.lang.NumberFormatException: null
              at java.lang.Integer.parseInt(Integer.java:542)
              at java.lang.Integer.valueOf(Integer.java:766)
              at com.sun.identity.setup.AMSetupServlet.checkConfigProperties(AMSetupSe
      rvlet.java:331)
              at com.sun.identity.setup.AMSetupServlet.init(AMSetupServlet.java:218)
              at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.
      java:1227)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
      java:1140)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:10
      27)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5038)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5348)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
      
      

      Work around

      Can be ignored.

      Code analysis

      AMSetupServlet.checkConfigProperties() should need to handle this more gracefully.

        Attachments

          Activity

            People

            • Assignee:
              chee-weng.chea C-Weng C
              Reporter:
              chee-weng.chea C-Weng C
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: