[ https://issues.apache.org/jira/browse/CASSANDRA-1778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972044#action_12972044 ]
Wing Lian commented on CASSANDRA-1778: -------------------------------------- I am still getting the warning below in the log when starting rc2. (this issues is listed as fixed in rc2 changelog) WARN [main] 2010-12-16 02:48:19,677 FBUtilities.java (line 527) Unable to load version.properties java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:435) at java.util.Properties.load0(Properties.java:354) at java.util.Properties.load(Properties.java:342) at org.apache.cassandra.utils.FBUtilities.getReleaseVersionString(FBUtilities.java:522) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:348) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:160) at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:55) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:216) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:134) INFO [main] 2010-12-16 02:48:19,678 StorageService.java (line 348) Cassandra version: debug version INFO [main] 2010-12-16 02:48:19,678 StorageService.java (line 349) Thrift API version: 19.4.0 > Change classloader strategy to load version from non system classloader > ----------------------------------------------------------------------- > > Key: CASSANDRA-1778 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1778 > Project: Cassandra > Issue Type: Improvement > Components: Core > Affects Versions: 0.7 beta 3 > Reporter: Bram de Kruijff > Assignee: Bram de Kruijff > > At present when initializing the StorageService, > FBUtilities.getReleaseVersionString() tries to load the version.info > resource from the ClassLoader.getSystemClassLoader(). This typically fails in > an embedded scenario (such as an OSGi container) resulting in a dummy version > at INFO and a stacktrace at WARN > logger_.warn("Unable to load version.properties", e); > return "debug version"; > My guess is that changing the implementation to using the > FBUtilities.class.getClassLoader() for loading resources would solve it and > will work in almost any case I can think off. However, as discussed on the > Apache Felix mailing list, the only "right"way to do it is to allow an > optional ClassLoader to be specified (@see > http://www.mail-archive.com/users@felix.apache.org/msg09060.html). > This issue was initially reported at the Amdatu jira: > http://jira.amdatu.org/jira/browse/AMDATU-127 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.