Uploaded image for project: 'JBoss Naming'
  1. JBoss Naming
  2. JBNAME-26

NumberFormatException when there is an extra space in jndi.properties for jnp.timeout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 5.0.1.GA
    • jnp-client
    • None
    • Low

    Description

      Hi,

      if there's an extra space after the value of the property "jnp.timeout" or "jnp.sotimeout", then the exception is thrown:

      java.lang.NumberFormatException: For input string: "6000 "

      I had in jndi.properties the line: "jnp.timeout = 6000 "
      (Note one extra space after "6000").

      I think, something like String.trim() should solve this issue.

      Attachments

        Activity

          People

            rnetuka@redhat.com Radovan Netuka
            xmedeko Ondrej Medek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: