[jboss-jira] [JBoss JIRA] Created: (JBMESSAGING-1616) Classpath issue with file version.properties
Markus Probst (JIRA)
jira-events at lists.jboss.org
Tue May 5 09:33:47 EDT 2009
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
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 wright 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
More information about the jboss-jira
mailing list