activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Can't start embedded ActiveMQ
Date Thu, 17 Mar 2011 09:32:21 GMT
Hi,

that should work. Check your configuration file and if you're using the
right version of Spring.

Regards
-- 
Dejan Bosanac
-----------------
FuseSource - The experts in open source integration and messaging.
Email: dejanb@fusesource.com
Web: http://fusesource.com
Twitter:  http://twitter.com/dejanb
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Mar 16, 2011 at 6:37 PM, Jan Declercq <Jan.Declercq@alsic.be> wrote:

> 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