Announcement Announcement Module
Collapse
No announcement yet.
TypeMismatchException in WSAD debug mode Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • TypeMismatchException in WSAD debug mode

    I got the this TypeMismatchException only when I start WSAD5.1.2 test server in DEBUG mode, if I start it in normal mode, there is no problem.

    Any thought?

    Thanks,

    Yin.

    This is the config.
    <bean id="gsis.jdbcExceptionMapping" class="com.adp.gs.bean.ReloadableMap">
    <property name="map">
    <value>
    1=com.adp.gs.exception.DuplicatePrimaryKeyExceptio n
    2292=com.adp.gs.exception.DependentRecordExistsExc eption
    </value>
    </property>
    </bean>

    This is the error log

    PropertyAccessExceptionsException (1 errors)
    org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.util.Map] for property 'map'
    at java.lang.Throwable.<init>(Throwable.java)
    at java.lang.Throwable.<init>(Throwable.java)
    at org.springframework.core.NestedRuntimeException.<i nit>(NestedRuntimeException.java:69)
    at org.springframework.beans.PropertyAccessException. <init>(PropertyAccessException.java:49)
    at org.springframework.beans.TypeMismatchException.<i nit>(TypeMismatchException.java:51)
    at org.springframework.beans.TypeMismatchException.<i nit>(TypeMismatchException.java:41)
    at org.springframework.beans.BeanWrapperImpl.doTypeCo nversionIfNecessary(BeanWrapperImpl.java:944)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:711)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:617)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:758)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:785)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:774)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:784)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:601)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:258)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:193)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:240)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveReference(Abstra ctAutowireCapableBeanFactory.java:898)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveValueIfNecessary (AbstractAutowireCapableBeanFactory.java:832)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:773)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:601)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:258)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveInnerBeanDefinit ion(AbstractAutowireCapableBeanFactory.java:858)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveValueIfNecessary (AbstractAutowireCapableBeanFactory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:773)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:601)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:258)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:193)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:240)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveReference(Abstra ctAutowireCapableBeanFactory.java:898)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveValueIfNecessary (AbstractAutowireCapableBeanFactory.java:832)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:773)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:601)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:258)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:193)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:240)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.addBeanToResultMap(DefaultLista bleBeanFactory.java:204)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.getBeansOfType(DefaultListableB eanFactory.java:163)
    at org.springframework.context.support.AbstractApplic ationContext.getBeansOfType(AbstractApplicationCon text.java:526)
    at org.springframework.context.support.AbstractApplic ationContext.refreshListeners(AbstractApplicationC ontext.java:429)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:301)
    at org.springframework.web.context.support.XmlWebAppl icationContext.refresh(XmlWebApplicationContext.ja va:131)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:167)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:101)
    at org.springframework.web.context.ContextLoaderServl et.init(ContextLoaderServlet.java:80)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:258)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doInit(StrictServletInstance.java:82)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._init(StrictLifecycleServlet.java:147)
    at com.ibm.ws.webcontainer.servlet.PreInitializedServ letState.init(StrictLifecycleServlet.java:270)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.init(StrictLifecycleServlet.java:113)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.in it(ServletInstance.java:189)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:258)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManage r.addServlet(WebAppServletManager.java:870)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManage r.loadServlet(WebAppServletManager.java:224)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManage r.loadAutoLoadServlets(WebAppServletManager.java:5 42)
    at com.ibm.ws.webcontainer.webapp.WebApp.loadServletM anager(WebApp.java:1270)
    at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp. java:277)
    at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(We bGroup.java:396)
    at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup .java:216)
    at com.ibm.ws.webcontainer.WebContainer.addWebApplica tion(WebContainer.java:984)
    at com.ibm.ws.runtime.component.WebContainerImpl.inst all(WebContainerImpl.java:136)
    at com.ibm.ws.runtime.component.WebContainerImpl.star t(WebContainerImpl.java:356)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:415)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(DeployedApplicationImpl .java:787)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:351)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:575)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:268)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:246)
    at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:543)
    at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:418)
    at com.ibm.ws.runtime.component.ApplicationServerImpl .start(ApplicationServerImpl.java:117)
    at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:543)
    at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:418)
    at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:183)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:12 8)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225 )
    at java.lang.reflect.AccessibleObject.invokeImpl(Nati ve Method)
    at java.lang.reflect.AccessibleObject.invokeV(Accessi bleObject.java:199)
    at java.lang.reflect.Method.invoke(Method.java:252)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)
    at com.ibm.etools.websphere.tools.runner.api.ServerRu nnerV5$1.run(ServerRunnerV5.java:97)
Working...
X