spring - java.lang.NullPointerException at org.apache.ibatis.session.SqlSessionFactoryBuilder.build while running over a karaf -
getting below exception while running sample application in karaf. have placed maven build jar inside servicemix/deploy. please new camel,mybatis , servicemix
org.springframework.beans.factory.beandefinitionstoreexception: unexpected exception parsing xml document url [bundle://278.0:0/meta-inf/spring/camelcontext.xml]; nested exception java.lang.nullpointerexception @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:412)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:334)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:143)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:178)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:149)[69:org.springframework.beans:3.0.7.release] @ org.springframework.osgi.context.support.osgibundlexmlapplicationcontext.loadbeandefinitions(osgibundlexmlapplicationcontext.java:164)[77:org.springframework.osgi.core:1.2.1] @ org.springframework.osgi.context.support.osgibundlexmlapplicationcontext.loadbeandefinitions(osgibundlexmlapplicationcontext.java:136)[77:org.springframework.osgi.core:1.2.1] @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:130)[71:org.springframework.context:3.0.7.release] @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:467)[71:org.springframework.context:3.0.7.release] @ org.springframework.osgi.context.support.abstractdelegatedexecutionapplicationcontext.access$800(abstractdelegatedexecutionapplicationcontext.java:69)[77:org.springframework.osgi.core:1.2.1] @ org.springframework.osgi.context.support.abstractdelegatedexecutionapplicationcontext$3.run(abstractdelegatedexecutionapplicationcontext.java:269)[77:org.springframework.osgi.core:1.2.1] @ org.springframework.osgi.util.internal.privilegedutils.executewithcustomtccl(privilegedutils.java:85)[77:org.springframework.osgi.core:1.2.1] @ org.springframework.osgi.context.support.abstractdelegatedexecutionapplicationcontext.startrefresh(abstractdelegatedexecutionapplicationcontext.java:247)[77:org.springframework.osgi.core:1.2.1] @ org.springframework.osgi.extender.internal.dependencies.startup.dependencywaiterapplicationcontextexecutor.stageone(dependencywaiterapplicationcontextexecutor.java:214)[80:org.springframework.osgi.extender:1.2.1] @ org.springframework.osgi.extender.internal.dependencies.startup.dependencywaiterapplicationcontextexecutor.refresh(dependencywaiterapplicationcontextexecutor.java:169)[80:org.springframework.osgi.extender:1.2.1] @ org.springframework.osgi.context.support.abstractdelegatedexecutionapplicationcontext.refresh(abstractdelegatedexecutionapplicationcontext.java:175)[77:org.springframework.osgi.core:1.2.1] @ org.springframework.osgi.extender.internal.activator.contextloaderlistener$2.run(contextloaderlistener.java:716)[80:org.springframework.osgi.extender:1.2.1] @ java.lang.thread.run(thread.java:722)[:1.7.0_03] caused by: java.lang.nullpointerexception @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.checkoverrideproperties(classbeaninfoimpl.java:190)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:171)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:494)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:513)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.arrayreferencenodeproperty.<init>(arrayreferencenodeproperty.java:72)[:1.7.0_03] @ sun.reflect.generatedconstructoraccessor35.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)[:1.7.0_03] @ java.lang.reflect.constructor.newinstance(constructor.java:525)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.propertyfactory.create(propertyfactory.java:113)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:166)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:494)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:153)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:494)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:513)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.arrayreferencenodeproperty.<init>(arrayreferencenodeproperty.java:72)[:1.7.0_03] @ sun.reflect.generatedconstructoraccessor35.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)[:1.7.0_03] @ java.lang.reflect.constructor.newinstance(constructor.java:525)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.propertyfactory.create(propertyfactory.java:113)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:166)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:494)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:513)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.arrayreferencenodeproperty.<init>(arrayreferencenodeproperty.java:72)[:1.7.0_03] @ sun.reflect.generatedconstructoraccessor35.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)[:1.7.0_03] @ java.lang.reflect.constructor.newinstance(constructor.java:525)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.propertyfactory.create(propertyfactory.java:113)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:166)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:494)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:153)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:494)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:513)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.singleelementnodeproperty.<init>(singleelementnodeproperty.java:90)[:1.7.0_03] @ sun.reflect.generatedconstructoraccessor24.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)[:1.7.0_03] @ java.lang.reflect.constructor.newinstance(constructor.java:525)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.propertyfactory.create(propertyfactory.java:113)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:166)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:494)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:513)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.arrayelementproperty.<init>(arrayelementproperty.java:97)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.arrayelementnodeproperty.<init>(arrayelementnodeproperty.java:47)[:1.7.0_03] @ sun.reflect.generatedconstructoraccessor28.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)[:1.7.0_03] @ java.lang.reflect.constructor.newinstance(constructor.java:525)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.property.propertyfactory.create(propertyfactory.java:113)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:166)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:494)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.<init>(jaxbcontextimpl.java:311)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl.<init>(jaxbcontextimpl.java:126)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl$jaxbcontextbuilder.build(jaxbcontextimpl.java:1142)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.contextfactory.createcontext(contextfactory.java:130)[:1.7.0_03] @ com.sun.xml.internal.bind.v2.contextfactory.createcontext(contextfactory.java:221)[:1.7.0_03] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)[:1.7.0_03] @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)[:1.7.0_03] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)[:1.7.0_03] @ java.lang.reflect.method.invoke(method.java:601)[:1.7.0_03] @ javax.xml.bind.contextfinder.newinstance(contextfinder.java:143)[:2.2.0] @ javax.xml.bind.contextfinder.find(contextfinder.java:310)[:2.2.0] @ javax.xml.bind.jaxbcontext.newinstance(jaxbcontext.java:412)[:2.2.0] @ javax.xml.bind.jaxbcontext.newinstance(jaxbcontext.java:375)[:2.2.0] @ org.apache.camel.spring.handler.camelnamespacehandler.createjaxbcontext(camelnamespacehandler.java:187)[96:org.apache.camel.camel-spring:2.10.4] @ org.apache.camel.spring.handler.camelnamespacehandler.getjaxbcontext(camelnamespacehandler.java:174)[96:org.apache.camel.camel-spring:2.10.4] @ org.apache.camel.spring.handler.camelnamespacehandler$camelcontextbeandefinitionparser.doparse(camelnamespacehandler.java:302)[96:org.apache.camel.camel-spring:2.10.4] @ org.springframework.beans.factory.xml.abstractsinglebeandefinitionparser.parseinternal(abstractsinglebeandefinitionparser.java:85)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.abstractbeandefinitionparser.parse(abstractbeandefinitionparser.java:59)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.namespacehandlersupport.parse(namespacehandlersupport.java:73)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.beandefinitionparserdelegate.parsecustomelement(beandefinitionparserdelegate.java:1338)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.beandefinitionparserdelegate.parsecustomelement(beandefinitionparserdelegate.java:1328)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.parsebeandefinitions(defaultbeandefinitiondocumentreader.java:135)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.registerbeandefinitions(defaultbeandefinitiondocumentreader.java:93)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.registerbeandefinitions(xmlbeandefinitionreader.java:493)[69:org.springframework.beans:3.0.7.release] @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:390)[69:org.springframework.beans:3.0.7.release] ... 18 more
following configuration files
<camel:camelcontext trace="false"> <camel:route id="insertorder"> <camel:from uri="timer:foo?period=20s"> </camel:from> <camel:log message="routing mybatis started........"> </camel:log> <camel:transform> <camel:method ref="orderservice" method="generateorder"/> </camel:transform> <camel:to uri="mybatis:insertorder?statementtype=insert"/> </camel:route>
upgrade jdk version earlier releases of jdk 1.7 has buggy jaxb, exception about.
you use 1.7.0_03. there newer releases.
Comments
Post a Comment