[
https://jira.jboss.org/jira/browse/JBMESSAGING-1616?page=com.atlassian.ji...
]
Jeff Mesnil closed JBMESSAGING-1616.
------------------------------------
Resolution: Done
fixed in the trunk by renaming version.properties to jboss-messaging-version.properties
Classpath issue with file version.properties
--------------------------------------------
Key: JBMESSAGING-1616
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1616
Project: JBoss Messaging
Issue Type: Bug
Affects Versions: 2.0.0 Alpha
Reporter: Markus Probst
Assignee: Tim Fox
Priority: Critical
Fix For: 2.0.0
In class org.jboss.messaging.util.VersionLoader the static method "load" throws
a NumberFormatException while trying to read properties from file version.properties, if
several files with this name are situated in current classpath and the "wrong"
one is picked up:
"
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.valueOf(Integer.java:553)
at org.jboss.messaging.util.VersionLoader.load(VersionLoader.java:50)
at
org.jboss.messaging.core.client.impl.ClientConnectionFactoryImpl.createConnection(ClientConnectionFactoryImpl.java:135)
at
org.jboss.messaging.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:255)
at
org.jboss.messaging.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:134)
...
"
It is very likely that more than one library/artifacts contains a file called
"version.properties", so I think the right way should be to rename this file to
a more JBoss Messaging specific one.
--
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