5

My server--> weblogic server 10.3 and my Mybatis version-3.2.2

    org.springframework.beans.factory.BeanCreationException: Error creating bean with    name 'sqlSessionFactory' defined in class path resource [com/db/tf/interfaces/SpringIn
terfaceContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [com/db/tf/interfaces/sqlmaps/SqlMapConfig-Interface.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. C
ause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property invocationDetails.creditDetails.modeOfPayment at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
        at InterfaceConfigUtility.<clinit>(InterfaceConfigUtility.java:20)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
        at com.db.tf.interfaces.mdb.InterfaceMDB.onMessage(InterfaceMDB.java:44)
        at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
        at weblogic.ejb.container.internal.MDListener.transactionalOnMessage    (MDListener.java:371)
        at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
        at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
        at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
        at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
        at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
        at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

The query fired has a result map with the below variable

<result property="PQR" column="ABC"/>

In database i have it as a regular varchar.

Unable to find the root cause, any kind of help is greatful.

Thanks in advance.

3
  • Can you paste in your entire result map? It sounds like you might just need to add jdbcType="VARCHAR" to your property. Oct 9, 2013 at 17:56
  • I cannot explictily specify the jdbcType for every varchar.It seems that, there was an issue with the custom object i'm trying to copy the string into a custom object and when i mapped it into the jaxb generated content/ID. This issue was not happening even in SIT environment.
    – Pavan Sky
    Oct 10, 2013 at 14:46
  • I felt that the attribute should be copied into its corresponding content.
    – Pavan Sky
    Oct 10, 2013 at 14:49

1 Answer 1

2

Trying to copy the string into a custom object is causing this issue.Tried to map into the variables content/Id of that custom object, then it worked.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.