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