[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Remote-bisocket JMS test fail on Mac OSX

apwalker do-not-reply at jboss.com
Tue Jan 22 07:10:22 EST 2008


I get a NullPointerException from the following in the ServerContainer when running the remote tests


  | ServiceContainer.java
  | ......
  | 
  |    private void readConfigurationFile() throws Exception
  |    {
  |       InputStream cs = getClass().getClassLoader().getResourceAsStream(CONFIGURATION_FILE_NAME);
  | 
  | .....
  | 

It appears to be a bug in the Apple JVM 

I put a local hack which uses a FileInputStream if the above call returns null and it uses a relative path but  this mean you need to always run the tests from the tests directory.

LocalTestServer.java needs a simialr hack and with both of these all the tests pass.

I would like to commit these work arounds to the stable branch  as I really don't think we'll get this one fixed for sometime and with the refactoring of the tests to use the microcontainer I think this may go away.

Here is the JIRA Issue for this http://jira.jboss.org/jira/browse/JBMESSAGING-1222


Aaron



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122155#4122155

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122155



More information about the jboss-dev-forums mailing list