Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19628

java.lang.NumberFormatException When Configuring IQ Server via Capabilities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.15.2, 3.17.0
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      1
    • Notability:
      3

      Description

      When configuring IQ Server settings via 'Capabilities --> IQ: Server Configuration', a java.lang.NumberFormatException is thrown when saving the settings form.

      1. To reproduce, configure an 'IQ: Server Configuration' capability.

      2. Fill in all the required fields but leave the 'request timeout' field blank. 

      3. Save config.

      Expected:

      Config should be saved and Request Timeout should take default global settings.

      Actual:

      java.lang.NumberFormatException is thrown:

      2019-04-09 13:45:10,319+0100 ERROR [qtp1648621026-5318] admin org.sonatype.nexus.extdirect.internal.ExtDirectExceptionHandler - Failed to invoke action method: capability_Capability.update, java-method: org.sonatype.nexus.coreui.internal.capability.CapabilityComponent.update
      java.lang.NumberFormatException: For input string: ""
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:592)
      at java.lang.Integer.valueOf(Integer.java:766)
      at com.sonatype.nexus.clm.ClmConfiguration.parseTimeout(ClmConfiguration.java:198)
      at com.sonatype.nexus.clm.ClmConfiguration.<init>(ClmConfiguration.java:85)
      at com.sonatype.nexus.clm.internal.capability.ClmCapabilityDescriptor.createConfig(ClmCapabilityDescriptor.java:164)
      at com.sonatype.nexus.clm.internal.capability.ClmCapabilityDescriptor.createConfig(ClmCapabilityDescriptor.java:1)
      at org.sonatype.nexus.capability.CapabilityDescriptorSupport.validateConfig(CapabilityDescriptorSupport.java:154)
      at org.sonatype.nexus.capability.CapabilityDescriptorSupport.validate(CapabilityDescriptorSupport.java:125)
      at org.sonatype.nexus.internal.capability.DefaultCapabilityRegistry.update(DefaultCapabilityRegistry.java:208)
      at org.sonatype.nexus.capability.CapabilityRegistry$update$1.call(Unknown Source)
      at org.sonatype.nexus.coreui.internal.capability.CapabilityComponent.update(CapabilityComponent.groovy:151)

      Workaround/Alternative

      Configure IQ Server via the IQ Server -> Server UI page.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            hardeepn Hardeep Nagra
            CC:
            Cathy Sung
            Last Updated By:
            Rich Seddon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title