RE: openJMS newbie question
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
It appears to be due to a class loader bug in commons-logging. There
are several bugs [1] related to this issue which appear to have been fixed
in the commons-logging-1.0.5-alpha1 release [2].
You could also try going back to commons-logging-1.0.3 [3]
Let us know how you go.
Regards,
-Tim
[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=10825
http://issues.apache.org/bugzilla/show_bug.cgi?id=31710
[2] http://cvs.apache.org/dist/jakarta/commons/logging/
[3]
http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar
_____
From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Jacob
Flomenberg
Sent: Monday, 17 October 2005 1:15 PM
To: [email protected]
Subject: [openjms-user] openJMS newbie question
the code
Hashtable properties = new Hashtable();
properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.exolab.jms.jndi.InitialC
ontextFactory");
properties.put(Context.PROVIDER_URL,"tcp://localhost:3035/");
Context context = new InitialContext(properties);
crashes on the last line with the following stack trace
What am I doing wrong?
thanks,
-jake
java.lang.ExceptionInInitializerError
at org.exolab.jms.net.orb.ORBFactory.createORB(ORBFactory.java:75)
at org.exolab.jms.client.net.SharedORB.<init>(SharedORB.java:89)
at org.exolab.jms.client.net.SharedORB.getInstance(SharedORB.java:292)
at
org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFa
ctory.java:142)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at jms.QueueSend.<init>(QueueSend.java:45)
at jms.QueueSend.main(QueueSend.java:32)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPointerException)
(Caused by org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPointerException))
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:543)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:235)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.exolab.jms.net.orb.DefaultORB.<clinit>(DefaultORB.java:110)
... 10 more
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPointerException)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:397)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:529)
... 14 more
Caused by: java.lang.NullPointerException
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:374)
... 15 more
Exception in thread "main"