Announcement Announcement Module
Collapse
No announcement yet.
java.lang.VerifyError Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.VerifyError

    Hi all,

    I'm getting the following error when deploy the app. Can anyone help me with this issue???? Thanks in advance

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'multasStub' defined in ServletContext resource [/WEB-INF/conf/ApplicationContext.xml]: Cannot resolve reference to bean 'wsTemplate' while setting bean property 'webServiceTemplate'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'wsTemplate' defined in ServletContext resource [/WEB-INF/conf/ApplicationContext.xml]: Cannot resolve reference to bean 'marshaller' while setting bean property 'marshaller'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'marshaller' defined in ServletContext resource [/WEB-INF/conf/ApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.VerifyError
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:274)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:104)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1274)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1042)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:539)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:485)
    at java.security.AccessController.doPrivileged(Access Controller.java:197)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:455)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 51)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:169)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:170)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:413)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:735)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:369)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:251)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:190)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 45)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServ letContextCreated(WebApp.java:652)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitia lizationFinish(WebApp.java:354)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize (WebApp.java:292)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebAp plication(WebGroup.java:92)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplic ation(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(W ebContainer.java:671)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebAppli cation(WebContainer.java:624)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .install(WebContainerImpl.java:335)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .start(WebContainerImpl.java:551)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:1305)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(DeployedApplicationImpl .java:1138)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:569)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:817)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:951)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$1. run(ApplicationMgrImpl.java:1493)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAs( ContextManagerImpl.java:4097)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAsS ystem(ContextManagerImpl.java:4194)
    at com.ibm.ws.security.core.SecurityContext.runAsSyst em(SecurityContext.java:245)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:1498)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java :62)
    at sun.reflect.GeneratedMethodAccessor258.invoke(Unkn own Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java :265)
    at javax.management.modelmbean.RequiredModelMBean.inv okeMethod(RequiredModelMBean.java:1092)
    at javax.management.modelmbean.RequiredModelMBean.inv oke(RequiredModelMBean.java:973)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke (DynamicMetaDataImpl.java:231)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDa taImpl.java:238)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:833)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:802)
    at com.ibm.ws.management.AdminServiceImpl$1.run(Admin ServiceImpl.java:1082)
    at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:118)
    at com.ibm.ws.management.AdminServiceImpl.invoke(Admi nServiceImpl.java:975)
    at com.ibm.ws.management.connector.AdminServiceDelega tor.invoke(AdminServiceDelegator.java:139)
    at sun.reflect.GeneratedMethodAccessor595.invoke(Unkn own Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at com.ibm.ws.management.connector.soap.SOAPConnector .invoke(SOAPConnector.java:351)
    at com.ibm.ws.management.connector.soap.SOAPConnector .service(SOAPConnector.java:205)
    at com.ibm.ws.management.connector.soap.SOAPConnectio n.handleRequest(SOAPConnection.java:55)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:680)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:484)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'wsTemplate' defined in ServletContext resource [/WEB-INF/conf/ApplicationContext.xml]: Cannot resolve reference to bean 'marshaller' while setting bean property 'marshaller'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'marshaller' defined in ServletContext resource [/WEB-INF/conf/ApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.VerifyError
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:274)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:104)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1274)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1042)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:539)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:485)
    at java.security.AccessController.doPrivileged(Access Controller.java:197)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:455)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 51)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:169)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:170)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:268)
    ... 64 more

  • #2
    Could you post the contents of your ApplicationContext.xml file

    Comment


    • #3
      Hi vithum,

      the content is the following:

      <!-- ========================= WEB SERVICE DEFINITIONS ======================== -->
      <!-- Wrapper del cliente -->
      <bean id="multasStub" class="iam.multas.ws.MultasCliente">
      <property name="webServiceTemplate" ref="wsTemplate"/>
      </bean>

      <!-- Plantilla de Spring para WS -->
      <bean id="wsTemplate" class="org.springframework.ws.client.core.WebServi ceTemplate">
      <property name="defaultUri" value="http://desa6inter.munimadrid.es:8090/MultasWS/Multas"/>
      <property name="marshaller" ref="marshaller"/>
      <property name="unmarshaller" ref="marshaller"/>
      <!-- property name="messageSender" ref="messageSender"/>-->
      </bean>
      <!-- Definición del marshaller (Conversion Java-XML) a utilizar. Jaxb2Marshaller utiliza anotaciones -->
      <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
      <property name="contextPath" value="iam.multas.xml.jaxb" />
      </bean>


      The problem is that when I deploy the app in my localhost there aren't any problem, but when I export to a ear file to deploy in Development Environment, the server throws that exception.

      Comment


      • #4
        When defining the marshaller bean, you have made a slight mistake:
        Jaxb2Marshalle r

        Remove the space before the "r", and try again. Maybe this is why the marshaller bean is not getting created.

        Comment


        • #5
          That space is because copy&paste, but it's ok without any space. So that's not the problem.

          Comment


          • #6
            I just got this info on this page:
            http://stackoverflow.com/questions/1...ng-verifyerror

            This error apparently occurs when you might have used different libraries during compiling and running the application. This might explain why it is running on your local deployment but not on the development environment. Check if all the jars (versions) on your localhost are the same as the Development environment. If not, make suitable changes.
            Last edited by vithun; Feb 7th, 2011, 05:08 AM.

            Comment

            Working...
            X