aspose file tools*
The moose likes Struts and the fly likes Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMo" Watch "Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMo" New topic
Author

Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMo

yashpal waghmare
Greenhorn

Joined: Sep 17, 2008
Posts: 22
I am trying to read flv file by using RED5 packages, I am getting follwong error. Please help me , thanks is advance.


21:54:55,487 INFO [STDOUT] 21:54:55.487 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Looking for Action instance for class Action.ActionRed5Server
21:54:55,487 INFO [STDOUT] 21:54:55.487 [http-127.0.0.1-8080-1] DEBUG o.a.s.tiles.TilesRequestProcessor - processForwardConfig(/WEB-INF/web/jsp/Red5ServerHome.jsp, false)
21:54:55,487 INFO [STDOUT] 21:54:55.487 [http-127.0.0.1-8080-1] DEBUG o.a.s.tiles.TilesRequestProcessor - '/WEB-INF/web/jsp/Red5ServerHome.jsp' - processed as uri
21:54:55,487 INFO [STDOUT] 21:54:55.487 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - processForwardConfig(ForwardConfig[name=success,path=/WEB-INF/web/jsp/Red5ServerHome.jsp,redirect=false,contextRelative=false,module=null])
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG org.apache.struts.util.ModuleUtils - Get module name for path /red5ServerIntialize.do
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG org.apache.struts.util.ModuleUtils - Module name found: default
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Processing a 'POST' for path '/red5ServerIntialize'
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG org.apache.struts.util.RequestUtils - Looking for ActionForm bean instance in scope 'request' under attribute key 'Red5FormBean'
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG org.apache.struts.util.RequestUtils - Creating new ActionForm instance of type 'Formbean.Red5FormBean'
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Storing ActionForm bean instance in scope 'request' under attribute key 'Red5FormBean'
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Populating bean properties from this request
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG o.apache.commons.beanutils.BeanUtils - BeanUtils.populate(Formbean.Red5FormBean@26c3a1, {})
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Looking for Action instance for class Action.ActionRed5Server
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG Action.ActionRed5Server - connecting, host: localhost, app: oflaDemo, port: 1935
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG org.red5.server.net.rtmp.RTMPClient - connect server: localhost port 1935 application oflaDemo connectCallback Action.ActionRed5Server$1@f596b2
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG org.red5.server.net.rtmp.RTMPClient - connect server: localhost port 1935 connectionParams {objectEncoding=0, app=oflaDemo, flashVer=WIN 9,0,115,0, fpad=false, tcUrl=rtmp://localhost:1935/oflaDemo, audioCodecs=1639, videoFunction=1, pageUrl=null, path=oflaDemo, capabilities=15, swfUrl=null, videoCodecs=252} connectCallback Action.ActionRed5Server$1@f596b2
21:54:58,720 INFO [STDOUT] 21:54:58.720 [http-127.0.0.1-8080-1] ERROR o.a.struts.actions.DispatchAction - Dispatch[/red5ServerIntialize] to method 'red5ServerIntializer' returned an exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:171)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMonitor
at org.apache.mina.common.support.BaseIoSessionManager.<init>(BaseIoSessionManager.java:37)
at org.apache.mina.common.support.BaseIoConnector.<init>(BaseIoConnector.java:39)
at org.apache.mina.transport.socket.nio.support.SocketConnectorDelegate.<init>(SocketConnectorDelegate.java:62)
at org.apache.mina.transport.socket.nio.SocketConnector.<init>(SocketConnector.java:38)
at org.red5.server.net.rtmp.RTMPClient.connect(RTMPClient.java:188)
at org.red5.server.net.rtmp.RTMPClient.connect(RTMPClient.java:160)
at Action.ActionRed5Server.red5ServerIntializer(ActionRed5Server.java:239)
... 31 common frames omitted
21:54:58,721 INFO [STDOUT] 21:54:58.721 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.ExceptionHandler - ExceptionHandler caught this exception:
javax.servlet.ServletException: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMonitor
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:300)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:171)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMonitor
at org.apache.mina.common.support.BaseIoSessionManager.<init>(BaseIoSessionManager.java:37)
at org.apache.mina.common.support.BaseIoConnector.<init>(BaseIoConnector.java:39)
at org.apache.mina.transport.socket.nio.support.SocketConnectorDelegate.<init>(SocketConnectorDelegate.java:62)
at org.apache.mina.transport.socket.nio.SocketConnector.<init>(SocketConnector.java:38)
at org.red5.server.net.rtmp.RTMPClient.connect(RTMPClient.java:188)
at org.red5.server.net.rtmp.RTMPClient.connect(RTMPClient.java:160)
at Action.ActionRed5Server.red5ServerIntializer(ActionRed5Server.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
... 26 common frames omitted
21:54:58,721 INFO [STDOUT] 21:54:58.721 [http-127.0.0.1-8080-1] DEBUG o.a.s.tiles.TilesRequestProcessor - processForwardConfig(/, false)
21:54:58,722 INFO [STDOUT] 21:54:58.722 [http-127.0.0.1-8080-1] DEBUG o.a.s.tiles.TilesRequestProcessor - '/' - processed as uri
21:54:58,722 INFO [STDOUT] 21:54:58.722 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - processForwardConfig(ForwardConfig[name=null,path=/,redirect=false,contextRelative=false,module=null])
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

My first assumption would be that there's a JDK version mismatch somewhere.
yashpal waghmare
Greenhorn

Joined: Sep 17, 2008
Posts: 22
Hi,

Thanks for reply. Actually I had jdk1.5 on my machine , so now I have compiled my project with jdk1.6. I got .class files by compiling project with compiler 1.6 , so it is giving this problem which I have put previously.

Please help regarding this.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

My answer's still the same--I'd assume something was compiled with an incompatible JDK.
yashpal waghmare
Greenhorn

Joined: Sep 17, 2008
Posts: 22
Hi david,

Can you help me running this program which I got from site

http://ptrthomas.wordpress.com/2008/04/


And this program is not giving me that previous error which I have posted earlier. Now its running but with some error. And in this error if you can see [AnonymousIoService-16], its repeating from 1 to 16 and not ending.
Please David can you go once through that site which I have mentioned above.










David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No, I don't have time--but maybe somebody else does. If you have specific questions about code you found on that site that isn't Struts-related then you should ask on that site, not here. If you have specific questions regarding Struts itself this is the place.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

IncompatibleClassChangeError is usually caused by compiling against one version of a library and executing against a different version.
Note the page you link to specifies several dependencies. Make sure you have the same versions as those specified. Also note the article was published over a year ago. There's probably been some big changes in those libraries since. If that doesn't solve your problem, try getting the latest version of RED5 and the dependencies it specifies, as a newer version may have valuable fixes. You may have to change your code to work with the new libraries.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMo