[jboss-jira] [JBoss JIRA] Commented: (JBNAME-26) NumberFormatException when there is an extra space in jndi.properties for jnp.timeout

Ondrej Medek (JIRA) jira-events at lists.jboss.org
Thu Apr 23 08:52:40 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBNAME-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12464065#action_12464065 ] 

Ondrej Medek commented on JBNAME-26:
------------------------------------

Ah, I see it is the common way the Java reads the property files. It's pretty confusing.

> NumberFormatException when there is an extra space in jndi.properties for jnp.timeout
> -------------------------------------------------------------------------------------
>
>                 Key: JBNAME-26
>                 URL: https://jira.jboss.org/jira/browse/JBNAME-26
>             Project: JBoss Naming
>          Issue Type: Bug
>          Components: jnp-client
>    Affects Versions: 5.0.1.GA
>            Reporter: Ondrej Medek
>            Priority: Minor
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list