activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (AMQ-2956) ActiveMQ broker fails to start due to java.lang.NullPointerException
Date Thu, 30 Jun 2011 14:57:28 GMT

     [ https://issues.apache.org/jira/browse/AMQ-2956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish closed AMQ-2956.
-----------------------------

    Resolution: Fixed

Issue 

> ActiveMQ broker fails to start due to java.lang.NullPointerException
> --------------------------------------------------------------------
>
>                 Key: AMQ-2956
>                 URL: https://issues.apache.org/jira/browse/AMQ-2956
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.3.2
>         Environment: Linux hostname-removed 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28
EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_21"
> Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
>            Reporter: josh anyan
>            Priority: Critical
>
> Broker fails to restart due to a java.lang.NullPointerException. It looks like it has
to do with the JDBC persistance adapter. 
> I'm using: 
> <journaledJDBC journalLogFiles="5" dataDirectory="${activemq.base}/activemq-data"
dataSource="#mysql-ds"/>
>         <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
>                 <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
>                 <property name="url" value="jdbc:mysql://myhostname.com/activemq?relaxAutoCommit=true"/>
>                 <property name="username" value="myusername"/>
>                 <property name="password" value="mypassword"/>
>                 <property name="poolPreparedStatements" value="true"/>
> I can solve this by emptying the table ACTIVEMQ_ACKS. It looks like there are some acks
that exist for messages that aren't in the database.
> Details below:
> Running ActiveMQ Broker...
> wrapper  | --> Wrapper Started as Console
> wrapper  | Launching a JVM...
> jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
> jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> jvm 1    | 
> jvm 1    | 
> jvm 1    | WARNING - Unable to load the Wrapper's native library because none of the
> jvm 1    |           following files:
> jvm 1    |             libwrapper-linux-x86-64.so
> jvm 1    |             libwrapper.so
> jvm 1    |           could be located on the following java.library.path:
> jvm 1    |             /var/lib/activemq/bin/linux-x86-64/../../bin/linux
> jvm 1    |           Please see the documentation for the wrapper.java.library.path
> jvm 1    |           configuration property.
> jvm 1    |           System signals will not be handled correctly.
> jvm 1    | 
> jvm 1    | Java Runtime: Sun Microsystems Inc. 1.6.0_21 /usr/java/jdk1.6.0_21/jre
> jvm 1    |   Heap sizes: current=117888k  free=111741k  max=466048k
> jvm 1    |     JVM args: -Dactivemq.home=../.. -Dactivemq.base=../.. -Djavax.net.ssl.keyStorePassword=password
-Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore=../../conf/broker.ks
-Djavax.net.ssl.trustStore=../../conf/broker.ts -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote.port=1616
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
-Xmx512m -Djava.library.path=../../bin/linux/ -Dwrapper.key=dafM8UrD_1bFGoNX -Dwrapper.port=32000
-Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=24752 -Dwrapper.version=3.2.3
-Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
> jvm 1    | ACTIVEMQ_HOME: ../..
> jvm 1    | ACTIVEMQ_BASE: ../..
> jvm 1    | Loading message broker from: xbean:activemq.xml
> jvm 1    |  INFO | Using Persistence Adapter: JournalPersistenceAdapator(JDBCPersistenceAdapter(org.apache.commons.dbcp.BasicDataSource@4762d950))
> jvm 1    |  INFO | JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> jvm 1    |  INFO | Database adapter driver override recognized for : [mysql-ab_jdbc_driver]
- adapter: class org.apache.activemq.store.jdbc.adapter.MySqlJDBCAdapter
> jvm 1    |  INFO | Database lock driver override not found for : [mysql-ab_jdbc_driver].
 Will use default implementation.
> jvm 1    |  INFO | Attempting to acquire the exclusive lock to become the Master broker
> jvm 1    |  INFO | Becoming the master on dataSource: org.apache.commons.dbcp.BasicDataSource@4762d950
> jvm 1    |  INFO | ActiveMQ 5.3.2 JMS Message Broker (apollo) is starting
> jvm 1    |  INFO | For help or more information please see: http://activemq.apache.org/
> jvm 1    | ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: java.lang.NullPointerException
> jvm 1    | java.lang.NullPointerException
> jvm 1    | 	at org.apache.activemq.util.ByteSequence.<init>(ByteSequence.java:29)
> jvm 1    | 	at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:232)
> jvm 1    | 	at org.apache.activemq.store.journal.JournalPersistenceAdapter.getLastMessageBrokerSequenceId(JournalPersistenceAdapter.java:222)
> jvm 1    | 	at org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:140)
> jvm 1    | 	at org.apache.activemq.broker.region.RegionBroker.<init>(RegionBroker.java:106)
> jvm 1    | 	at org.apache.activemq.broker.jmx.ManagedRegionBroker.<init>(ManagedRegionBroker.java:94)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1734)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1728)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1688)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:706)
> jvm 1    | 	at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:276)
> jvm 1    | 	at org.apache.activemq.store.journal.JournalPersistenceAdapter.start(JournalPersistenceAdapter.java:265)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:466)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:85)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> jvm 1    | 	at java.security.AccessController.doPrivileged(Native Method)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> jvm 1    | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> jvm 1    | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> jvm 1    | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
> jvm 1    | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
> jvm 1    | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> jvm 1    | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> jvm 1    | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> jvm 1    | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> jvm 1    | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> jvm 1    | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> jvm 1    | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> jvm 1    | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:136)
> jvm 1    | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> jvm 1    | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:82)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
> jvm 1    | 	at org.apache.activemq.console.Main.main(Main.java:107)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> jvm 1    | 	at java.lang.Thread.run(Thread.java:619)
> jvm 1    |  INFO | ActiveMQ Message Broker (apollo, null) is shutting down
> jvm 1    |  INFO | Connector openwire Stopped
> jvm 1    |  INFO | Connector stomp Stopped
> jvm 1    |  INFO | ActiveMQ JMS Message Broker (apollo, null) stopped
> jvm 1    | ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in
class path resource [activemq.xml]: Invocation of init method failed; nested exception is
java.lang.NullPointerException
> jvm 1    | java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in
class path resource [activemq.xml]: Invocation of init method failed; nested exception is
java.lang.NullPointerException
> jvm 1    | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
> jvm 1    | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> jvm 1    | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:136)
> jvm 1    | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> jvm 1    | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:82)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
> jvm 1    | 	at org.apache.activemq.console.Main.main(Main.java:107)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> jvm 1    | 	at java.lang.Thread.run(Thread.java:619)
> jvm 1    | Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class
path resource [activemq.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> jvm 1    | 	at java.security.AccessController.doPrivileged(Native Method)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> jvm 1    | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> jvm 1    | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> jvm 1    | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
> jvm 1    | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
> jvm 1    | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> jvm 1    | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> jvm 1    | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> jvm 1    | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> jvm 1    | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> jvm 1    | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> jvm 1    | 	... 16 more
> jvm 1    | Caused by: java.lang.NullPointerException
> jvm 1    | 	at org.apache.activemq.util.ByteSequence.<init>(ByteSequence.java:29)
> jvm 1    | 	at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:232)
> jvm 1    | 	at org.apache.activemq.store.journal.JournalPersistenceAdapter.getLastMessageBrokerSequenceId(JournalPersistenceAdapter.java:222)
> jvm 1    | 	at org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:140)
> jvm 1    | 	at org.apache.activemq.broker.region.RegionBroker.<init>(RegionBroker.java:106)
> jvm 1    | 	at org.apache.activemq.broker.jmx.ManagedRegionBroker.<init>(ManagedRegionBroker.java:94)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1734)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1728)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1688)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:706)
> jvm 1    | 	at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:276)
> jvm 1    | 	at org.apache.activemq.store.journal.JournalPersistenceAdapter.start(JournalPersistenceAdapter.java:265)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:466)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:85)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
> jvm 1    | 	... 36 more
> jvm 1    | ERROR: java.lang.Exception: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in
class path resource [activemq.xml]: Invocation of init method failed; nested exception is
java.lang.NullPointerException
> jvm 1    | java.lang.Exception: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in
class path resource [activemq.xml]: Invocation of init method failed; nested exception is
java.lang.NullPointerException
> jvm 1    | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99)
> jvm 1    | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> jvm 1    | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:136)
> jvm 1    | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> jvm 1    | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:82)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
> jvm 1    | 	at org.apache.activemq.console.Main.main(Main.java:107)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> jvm 1    | 	at java.lang.Thread.run(Thread.java:619)
> jvm 1    | Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class
path resource [activemq.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> jvm 1    | 	at java.security.AccessController.doPrivileged(Native Method)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> jvm 1    | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> jvm 1    | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> jvm 1    | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
> jvm 1    | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
> jvm 1    | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> jvm 1    | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> jvm 1    | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> jvm 1    | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> jvm 1    | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> jvm 1    | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> jvm 1    | 	... 16 more
> jvm 1    | Caused by: java.lang.NullPointerException
> jvm 1    | 	at org.apache.activemq.util.ByteSequence.<init>(ByteSequence.java:29)
> jvm 1    | 	at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:232)
> jvm 1    | 	at org.apache.activemq.store.journal.JournalPersistenceAdapter.getLastMessageBrokerSequenceId(JournalPersistenceAdapter.java:222)
> jvm 1    | 	at org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:140)
> jvm 1    | 	at org.apache.activemq.broker.region.RegionBroker.<init>(RegionBroker.java:106)
> jvm 1    | 	at org.apache.activemq.broker.jmx.ManagedRegionBroker.<init>(ManagedRegionBroker.java:94)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1734)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1728)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1688)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:706)
> jvm 1    | 	at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:276)
> jvm 1    | 	at org.apache.activemq.store.journal.JournalPersistenceAdapter.start(JournalPersistenceAdapter.java:265)
> jvm 1    | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:466)
> jvm 1    | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:85)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
> jvm 1    | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
> jvm 1    | 	... 36 more
> wrapper  | <-- Wrapper Stopped

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message