activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Declercq <Jan.Decle...@alsic.be>
Subject Can't start embedded ActiveMQ
Date Wed, 16 Mar 2011 17:37:04 GMT
Hey,

I have this rather simple code:

public class JdcTest {

            /**
            * @param args
            */
            public static void main(String[] args) {
                        try{
                                    System.setProperty("activemq.base", "/opt/ActiveMQ/current");
                                    BrokerFactory.createBroker("xbean:/opt/ActiveMQ/current/conf/activemq.xml",
true);

                                    System.in.read();
                        } catch (Exception e) {
                                    // TODO Auto-generated catch block
                                    e.printStackTrace();
                        }

            }

}


When running this I get the following error:


Mar 16, 2011 6:33:35 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@67386000: startup date [Wed
Mar 16 18:33:35 CET 2011]; root of context hierarchy
Exception in thread "main" java.lang.ExceptionInInitializerError
            at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:194)
            at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:127)
            at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
            at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
            at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
            at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:117)
            at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:115)
            at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:71)
            at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
            at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:98)
            at JdcTest.main(JdcTest.java:15)
Caused by: java.lang.NullPointerException
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.<clinit>(DefaultListableBeanFactory.java:104)
            ... 12 more





What does this error mean?
What is going wrong?

  The code as above used to work :(

Can anybody help me?


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message