You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "raulvk.soa" <ra...@gmail.com> on 2008/10/22 21:14:05 UTC

iBATIS Exception

Hi,

I am trying to use the iBATIS component to perform a SELECT on a database
table, but I am getting the following error.

20:02:59,723 | ERROR - org.apache.servicemix.file.FilePollerEndpoint -
Failed to process file: d:\tmp\ibatisservice\test.xml. Reason: java.
lang.Exception: java.lang.NoClassDefFoundError: Could not initialize class
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl
java.lang.Exception: java.lang.NoClassDefFoundError: Could not initialize
class com.ibatis.sqlmap.engine.impl.SqlMapClientImpl
        at
org.apache.servicemix.camel.CamelJbiEndpoint.handleActiveProviderExchange(CamelJbiEndpoint.java:103)
        at
org.apache.servicemix.camel.CamelJbiEndpoint.process(CamelJbiEndpoint.java:72)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl
        at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:58)
        at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:45)
        at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:90)
        at
org.apache.camel.component.ibatis.IBatisComponent.createSqlMapClient(IBatisComponent.java:86)
        at
org.apache.camel.component.ibatis.IBatisComponent.getSqlMapClient(IBatisComponent.java:57)
        at
org.apache.camel.component.ibatis.IBatisEndpoint.getSqlClient(IBatisEndpoint.java:71)
        at
org.apache.camel.component.ibatis.IBatisEndpoint.query(IBatisEndpoint.java:80)
        at
org.apache.camel.component.ibatis.IBatisProducer.process(IBatisProducer.java:45)
        at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
        at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)


Why can't it find the com.ibatis.sqlmap.engine.impl.SqlMapClientImpl class,
but it can however find all other classes?

Has anyone encountered this problem before?

I dont believe it is a misconfiguration on my SqlMapConfig.xml nor other
files because looking at the constructor that generates the error, it
doesn't even reach to the point where it reads the content of the XML config
files!

Anyone got a clue? Any help will be appreciated!

Thanks!

-- 
View this message in context: http://www.nabble.com/iBATIS-Exception-tp20117820s22882p20117820.html
Sent from the Camel - Users mailing list archive at Nabble.com.