找回密码
 注册
查看: 4624|回复: 1

ActiveMQ not running

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-5-17 11:09:03 | 显示全部楼层 |阅读模式
2017-05-17 11:05:29,365 | INFO  | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@5ef4f91d: startup date [Wed May 17 11:05:29 CST 2017]; root of context hierarchy | org.apa
' e# l, D8 n6 d& h  j+ C3 mche.activemq.xbean.XBeanBrokerFactory$1 | main3 b9 z/ g$ p, F' }( W! d
2017-05-17 11:05:31,297 | WARN  | Exception encountered during context initialization - cancelling refresh attempt | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main) z) D+ v5 w9 T. v  Y) p) I7 K) }
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mysql-ds' defined in class path resource [activemq.xml]: Error setting property values; nested
: |: o! D1 z  {1 `" i4 H exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'test' of bean class [org.apache.commons.dbcp.BasicDataSource]: Bean property 'test' is not wri9 L% p* ?/ w1 p8 |3 K( l* L  H4 Q
table or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
, E* R% Z# q$ C. c! [1 l        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1455)[spring-beans-3.2.11.RELEASE.
$ V- G% L* c* Z. _- pjar:3.2.11.RELEASE]
0 m' Y' u) A! m5 @6 t        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160)[spring-beans-3.2.11.RELEASE.jar:3.2  Q& n6 _9 s3 S- `- X2 u& I7 [
.11.RELEASE]
2 X9 _  a0 g5 C* k' W1 F        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[spring-beans-3.2.11.RELEASE.jar:3.2.
. a9 [% D- U3 B/ j  m# }11.RELEASE]
) e1 w5 U6 P+ F* t# Y5 G; R, M        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[spring-beans-3.2.11.RELEASE.jar:3.2.115 @" V" W( m' ~0 `( y/ P
.RELEASE]
; v4 ?. O3 U( M: A3 N        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]2 P+ i, w; f$ Z$ Y6 e1 ^
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]
/ e+ J+ }( s4 C1 y/ a% U6 K* @) m6 m        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]' Z3 d! u5 c, V" t& ^% R0 E
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)[spring-beans-3.2.11.RELEASE.jar:3.2.11.RELEASE]( T0 N. W& N% P2 F
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)[spring-beans-3.2.11.RELEASE.jar:3.2.11.R
' u! m0 f+ N3 f# NELEASE]5 F9 V# ~% o$ C. P
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934)[spring-context-3.2.11.RELEASE.jar:3.2.11 O2 j1 d: C! O
1.RELEASE]- s1 `0 z* a9 _7 ?: @# D  e6 z
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)[spring-context-3.2.11.RELEASE.jar:3.2.11.RELEASE]& a( Y% f; N) d2 ]
        at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-3.18.jar:3.18]5 A# v+ K; N, r, A* k( I- h3 |1 f
        at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-3.18.jar:3.18]
  F6 v# ~: ]0 _6 }& H6 O        at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.11.0.jar:5.11.0]' W! j2 s; p% w( E  B! ^
        at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.11.0.jar:5.11.0]
2 p5 x! {& l# r4 L: z        at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.11.0.jar:5.11.0]) a0 Z: P! N- h4 G( V* `$ n- w1 E
        at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.11.0.jar:5.11.0]; a/ D9 K9 }3 H' v- Y1 k
        at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.11.0.jar:5.11.0]1 i3 ^" O/ n) Z) e1 E
        at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.11.0.jar:5.11.0], }0 G/ P0 V# o7 `
        at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.11.0.jar:5.11.0]' b% g5 {3 a+ Z  [( Q8 o8 B% S( H
        at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)[activemq-console-5.11.0.jar:5.11.0]. o5 ]! j+ S" r- ~
        at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.11.0.jar:5.11.0]7 a, G3 C9 s( ^. c, j7 n$ \$ n
        at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.11.0.jar:5.11.0], Y9 ?. y" d. V% u% f/ K
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_67]5 {6 ^7 A1 ~, ^4 @2 X' u" B
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_67]4 t1 V" Y- R: }$ V
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_67]0 M8 x, I8 ]6 P6 U( @0 S( ?6 q
        at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_67]
# m4 N6 Y& I* M: [7 F, M" H8 S, C7 |        at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.11.0]& k. V# j( N3 J
        at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.11.0]; s- E2 B9 r( ~5 b" h
- ~! ~6 k) h4 d( y$ w

& d, [, W: D, @

70

主题

73

回帖

1201

积分

网站编辑

积分
1201
发表于 2017-5-17 12:49:35 | 显示全部楼层
检查conf配置文件,出现该问题为配置文件写错有关。
9 g3 v+ x, {4 G. H1 s2 Z0 I( q, b- \4 I4 S% `+ J
<bean id="mysql-ds"class="org.apache.commons.dbcp.BasicDataSource"destroy-method="close">
9 f9 Z/ x0 e' ^: l
       <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
# ]. R9 d/ q# A% C, F! b
       <property name="url" value="jdbc:mysql://19.168.0.11:3306/activemq?relaxAutoCommit=true"/>
/ a' O3 E2 Z8 n- B" ?9 u
       <property name="username" value="test"/>

" k. L& d8 r8 w- w: V
       <property name="password" value="1256"/>
  M1 w( l; ]0 e) ~9 ]( f' [

# {9 L2 @+ R/ E9 K9 Z- ~: ~# I
       <property name="validationQuery" value="select1"/>
6 z. z3 t# B- [0 r$ n4 b
       <property name="poolPreparedStatements"value="true"/>

3 D  ]0 q/ j$ Q5 E3 ^! l0 Z6 D
   </bean>
# `' Z0 O0 u/ a, }% Y) a. S
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 23:18 , Processed in 0.016645 second(s), 24 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表