java.lang.IncompatibleClassChangeError: flex.messaging.config.ConfigurationManager

Spring JIRA | Pol User | 7 years ago
  1. 0

    Hi all, We are working to introduce the Message interceptor functionality in an app build with LCDS and Spring. Below are the steps did to achieve this 1. Added the org.springframework.flex-1.0.2.RELEASE.jar 2. Replaced the MessageBrokerServlet with DispatcherServlet to handle /messagebroker/* 3. added <flex:message-broker .. and related interceptor bean to intercept the request in preProcess(). But i am getting an exception while starting the server as shown below.. Also tried the dirty solution in the nelow link but not successful http://jira.springframework.org/browse/FLEX-28 ----------------------------------------------------- [3/16/10 8:54:27:969 EDT] 00000021 ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Spring MVC Dispatcher Servlet: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker': Instantiation of bean failed; nested exception is java.lang.LinkageError: LinkageError while defining class: org.springframework.flex.config.FlexConfigurationManager Could not be defined due to: flex.messaging.config.ConfigurationManager This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining classloader ==>[0] com.ibm.ws.classloader.CompoundClassLoader@76267626 PARENT_FIRST [2] com.ibm.ws.classloader.ProtectionClassLoader@70227022 [3] com.ibm.ws.bootstrap.ExtClassLoader@4980498 [4] org.eclipse.osgi.framework.adaptor.core.CDSBundleClassLoader@61c861c8 [5] sun.misc.Launcher$AppClassLoader@70547054 [6] sun.misc.Launcher$ExtClassLoader@2ce02ce ---Original exception--- java.lang.IncompatibleClassChangeError: flex.messaging.config.ConfigurationManager at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:222) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:148) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:526) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:477) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:373) at java.lang.ClassLoader.loadClass(ClassLoader.java:561) at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:59) at java.lang.J9VMInternals.initialize(J9VMInternals.java:120) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:521) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:682) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:614) at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:493) at org.springframework.flex.config.RemotingAnnotationPostProcessor.findRemotingDestinations(RemotingAnnotationPostProcessor.java:151) at org.springframework.flex.config.RemotingAnnotationPostProcessor.postProcessBeanFactory(RemotingAnnotationPostProcessor.java:79) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:553) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:544) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:185) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:316 Any solution to resolve this.. Thanks in advance. Pol User

    Spring JIRA | 7 years ago | Pol User
    java.lang.IncompatibleClassChangeError: flex.messaging.config.ConfigurationManager
  2. 0

    Hi all, We are working to introduce the Message interceptor functionality in an app build with LCDS and Spring. Below are the steps did to achieve this 1. Added the org.springframework.flex-1.0.2.RELEASE.jar 2. Replaced the MessageBrokerServlet with DispatcherServlet to handle /messagebroker/* 3. added <flex:message-broker .. and related interceptor bean to intercept the request in preProcess(). But i am getting an exception while starting the server as shown below.. Also tried the dirty solution in the nelow link but not successful http://jira.springframework.org/browse/FLEX-28 ----------------------------------------------------- [3/16/10 8:54:27:969 EDT] 00000021 ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Spring MVC Dispatcher Servlet: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker': Instantiation of bean failed; nested exception is java.lang.LinkageError: LinkageError while defining class: org.springframework.flex.config.FlexConfigurationManager Could not be defined due to: flex.messaging.config.ConfigurationManager This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining classloader ==>[0] com.ibm.ws.classloader.CompoundClassLoader@76267626 PARENT_FIRST [2] com.ibm.ws.classloader.ProtectionClassLoader@70227022 [3] com.ibm.ws.bootstrap.ExtClassLoader@4980498 [4] org.eclipse.osgi.framework.adaptor.core.CDSBundleClassLoader@61c861c8 [5] sun.misc.Launcher$AppClassLoader@70547054 [6] sun.misc.Launcher$ExtClassLoader@2ce02ce ---Original exception--- java.lang.IncompatibleClassChangeError: flex.messaging.config.ConfigurationManager at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:222) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:148) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:526) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:477) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:373) at java.lang.ClassLoader.loadClass(ClassLoader.java:561) at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:59) at java.lang.J9VMInternals.initialize(J9VMInternals.java:120) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:521) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:682) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:614) at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:493) at org.springframework.flex.config.RemotingAnnotationPostProcessor.findRemotingDestinations(RemotingAnnotationPostProcessor.java:151) at org.springframework.flex.config.RemotingAnnotationPostProcessor.postProcessBeanFactory(RemotingAnnotationPostProcessor.java:79) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:553) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:544) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:185) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:316 Any solution to resolve this.. Thanks in advance. Pol User

    Spring JIRA | 7 years ago | Pol User
    java.lang.IncompatibleClassChangeError: flex.messaging.config.ConfigurationManager
  3. 0

    how to deploy JAX-RS application using jersey in websphere 8.5

    Stack Overflow | 4 years ago | FishGel
    java.lang.IncompatibleClassChangeError: org.objectweb.asm.ClassVisitor</strong>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WebSphere Application Server/8.0 / Uncaught initialization exception created by servlet

    Stack Overflow | 4 years ago | arif kaya
    java.lang.IncompatibleClassChangeError: org.objectweb.asm.ClassVisitor
  6. 0

    JAX-RS and WebSphere 8.5 - Genuitec

    genuitec.com | 1 year ago
    javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet

    40 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

      flex.messaging.config.ConfigurationManager

      at java.lang.ClassLoader.defineClassImpl()
    2. Java RT
      SecureClassLoader.defineClass
      1. java.lang.ClassLoader.defineClassImpl(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:222)
      3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:148)
      3 frames
    3. WebSphere
      CompoundClassLoader.loadClass
      1. com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:526)
      2. com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:477)
      3. com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:373)
      3 frames
    4. Java RT
      Constructor.newInstance
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:561)
      2. java.lang.J9VMInternals.verifyImpl(Native Method)
      3. java.lang.J9VMInternals.verify(J9VMInternals.java:59)
      4. java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
      5. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      6. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
      7. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      8. java.lang.reflect.Constructor.newInstance(Constructor.java:521)
      8 frames
    5. Spring Beans
      AbstractBeanFactory.getType
      1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
      2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:682)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:614)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:493)
      7 frames
    6. org.springframework.flex
      RemotingAnnotationPostProcessor.postProcessBeanFactory
      1. org.springframework.flex.config.RemotingAnnotationPostProcessor.findRemotingDestinations(RemotingAnnotationPostProcessor.java:151)
      2. org.springframework.flex.config.RemotingAnnotationPostProcessor.postProcessBeanFactory(RemotingAnnotationPostProcessor.java:79)
      2 frames
    7. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:553)
      2. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:544)
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362)
      3 frames
    8. Spring MVC
      HttpServletBean.init
      1. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)
      2. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)
      3. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)
      4. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
      4 frames
    9. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:256)
      1 frame
    10. WebSphere
      ServletWrapper.init
      1. com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:185)
      1 frame