opennms14.0.1-1安装完毕启动失败

司马欧阳 发布于 2014/11/26 15:32
阅读 409
收藏 0

win7 64位系统 安装包是standalone-opennms-installer-14.0.1-1.jar

D:\Job\Opennms\bin>start.bat

D:\Job\Opennms\bin>"I:\Java7\bin\java"    -Xmx512m -XX:MaxPermSize=256m    -XX:+
HeapDumpOnOutOfMemoryError    -DisThreadContextMapInheritable=true    -Dopennms.
home="D:/Job/Opennms"    -Djava.endorsed.dirs="D:/Job/Opennms/lib/endorsed"    -
Djava.io.tmpdir="D:/Job/Opennms/data/tmp"    -Dcom.sun.management.jmxremote.port
=18980    -Dcom.sun.management.jmxremote.ssl=false    -Dcom.sun.management.jmxre
mote.authenticate=false    -jar "D:/Job/Opennms/lib/opennms_bootstrap.jar" start

[DEBUG] System property 'opennms.library.jicmp' set to 'D:/Job/Opennms/lib\jicmp
.dll.  Attempting to load jicmp library from this location.
[INFO] Successfully loaded jicmp library.
[DEBUG] System property 'opennms.library.jicmp6' set to 'D:/Job/Opennms/lib\jicm
p6.dll.  Attempting to load jicmp6 library from this location.
[INFO] Successfully loaded jicmp6 library.
An error occurred while attempting to start the "OpenNMS:Name=Trapd" service (cl
ass org.opennms.netmgt.trapd.jmx.Trapd).  Shutting down and exiting.
javax.management.RuntimeMBeanException: org.springframework.beans.factory.access
.BootstrapException: Unable to return specified BeanFactory instance: factory ke
y [trapDaemonContext], from group with resource name [classpath*:beanRefContext.
xml]; nested exception is org.springframework.beans.factory.BeanCreationExceptio
n: Error creating bean with name 'trapDaemonContext' defined in URL [jar:file:/D
:/Job/Opennms/lib/opennms-services-14.0.1.jar!/beanRefContext.xml]: Instantiatio
n of bean failed; nested exception is org.springframework.beans.BeanInstantiatio
nException: Could not instantiate bean class [org.springframework.context.suppor
t.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception
 is org.springframework.beans.factory.BeanCreationException: Error creating bean
 with name 'daemon' defined in class path resource [META-INF/opennms/application
Context-trapDaemon.xml]: Invocation of init method failed; nested exception is j
ava.lang.reflect.UndeclaredThrowableException
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(Default
MBeanServerInterceptor.java:839)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBe
anException(DefaultMBeanServerInterceptor.java:852)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:821)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801
)
        at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:278)
        at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:207)
        at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:248)
        at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:107)
        at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:183)
        at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:162)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:366)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.access.BootstrapException: Unable t
o return specified BeanFactory instance: factory key [trapDaemonContext], from g
roup with resource name [classpath*:beanRefContext.xml]; nested exception is org
.springframework.beans.factory.BeanCreationException: Error creating bean with n
ame 'trapDaemonContext' defined in URL [jar:file:/D:/Job/Opennms/lib/opennms-ser
vices-14.0.1.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exce
ption is org.springframework.beans.BeanInstantiationException: Could not instant
iate bean class [org.springframework.context.support.ClassPathXmlApplicationCont
ext]: Constructor threw exception; nested exception is org.springframework.beans
.factory.BeanCreationException: Error creating bean with name 'daemon' defined i
n class path resource [META-INF/opennms/applicationContext-trapDaemon.xml]: Invo
cation of init method failed; nested exception is java.lang.reflect.UndeclaredTh
rowableException
        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.
useBeanFactory(SingletonBeanFactoryLocator.java:402)
        at org.opennms.core.spring.BeanUtils.getBeanFactory(BeanUtils.java:62)
        at org.opennms.core.spring.BeanUtils.getFactory(BeanUtils.java:104)
        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$1.run
(AbstractSpringContextJmxServiceDaemon.java:103)
        at org.opennms.core.logging.Logging.withPrefix(Logging.java:66)
        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.init(
AbstractSpringContextJmxServiceDaemon.java:96)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMB
eanIntrospector.java:112)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMB
eanIntrospector.java:46)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.j
ava:237)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:819)
        ... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'trapDaemonContext' defined in URL [jar:file:/D:/Job/Opennms/l
ib/opennms-services-14.0.1.jar!/beanRefContext.xml]: Instantiation of bean faile
d; nested exception is org.springframework.beans.BeanInstantiationException: Cou
ld not instantiate bean class [org.springframework.context.support.ClassPathXmlA
pplicationContext]: Constructor threw exception; nested exception is org.springf
ramework.beans.factory.BeanCreationException: Error creating bean with name 'dae
mon' defined in class path resource [META-INF/opennms/applicationContext-trapDae
mon.xml]: Invocation of init method failed; nested exception is java.lang.reflec
t.UndeclaredThrowableException
        at org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:285)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1075)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:979)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:296)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:198)
        at org.springframework.context.support.AbstractApplicationContext.getBea
n(AbstractApplicationContext.java:1121)
        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.
useBeanFactory(SingletonBeanFactoryLocator.java:394)
        ... 33 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not insta
ntiate bean class [org.springframework.context.support.ClassPathXmlApplicationCo
ntext]: Constructor threw exception; nested exception is org.springframework.bea
ns.factory.BeanCreationException: Error creating bean with name 'daemon' defined
 in class path resource [META-INF/opennms/applicationContext-trapDaemon.xml]: In
vocation of init method failed; nested exception is java.lang.reflect.Undeclared
ThrowableException
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:1
63)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy
.instantiate(SimpleInstantiationStrategy.java:121)
        at org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:277)
        ... 43 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'daemon' defined in class path resource [META-INF/opennms/appl
icationContext-trapDaemon.xml]: Invocation of init method failed; nested excepti
on is java.lang.reflect.UndeclaredThrowableException
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:296)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:633)
        at org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:932)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:479)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:139)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:105)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:1
48)
        ... 45 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at org.opennms.netmgt.trapd.Trapd.onInit(Trapd.java:189)
        at org.opennms.netmgt.daemon.AbstractServiceDaemon$1.run(AbstractService
Daemon.java:226)
        at org.opennms.core.logging.Logging.withPrefix(Logging.java:66)
        at org.opennms.netmgt.daemon.AbstractServiceDaemon.init(AbstractServiceD
aemon.java:220)
        at org.opennms.netmgt.daemon.AbstractServiceDaemon.afterPropertiesSet(Ab
stractServiceDaemon.java:52)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
        ... 61 more
Caused by: java.net.BindException: Address already in use: Cannot bind
        at java.net.DualStackPlainDatagramSocketImpl.socketBind(Native Method)
        at java.net.DualStackPlainDatagramSocketImpl.bind0(DualStackPlainDatagra
mSocketImpl.java:81)
        at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSo
cketImpl.java:95)
        at java.net.DatagramSocket.bind(DatagramSocket.java:376)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:231)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:284)
        at org.snmp4j.transport.DefaultUdpTransportMapping.<init>(DefaultUdpTran
sportMapping.java:100)
        at org.opennms.netmgt.snmp.snmp4j.Snmp4JStrategy.registerForTraps(Snmp4J
Strategy.java:441)
        at org.opennms.netmgt.snmp.SnmpUtils.registerForTraps(SnmpUtils.java:185
)
        at org.opennms.netmgt.trapd.Trapd.onInit(Trapd.java:173)
        ... 67 more

加载中
返回顶部
顶部