3 Replies Latest reply on Mar 17, 2010 7:35 AM by HaiJavaFlex

    An unknown exception occurred while creating an instance of type

    HaiJavaFlex

      Hi All

       

       

      I am getting the following error in tomcat 5. Unable to find the root cause after searching lots of stuff.

       

      Same code working fine in WebLogic 10.3.

       

      Please help me in solving the problem.

       

      Mar 17, 2010 4:00:54 PM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=16/62  config=D:\tomcat\jakarta-tomcat-5.0\conf\jk2.properties
      Mar 17, 2010 4:00:54 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 23422 ms
      [Flex] An unknown exception occurred while creating an instance of type 'com.test.pack.MyActionForm'.
      flex.messaging.MessageException: An unknown exception occurred while creating an instance of type ''com.test.pack.MyActionForm'.
              at flex.messaging.util.ClassUtil.createDefaultInstance(ClassUtil.java:160)
              at flex.messaging.io.AbstractProxy.createInstance(AbstractProxy.java:86)
              at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:409)
              at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:149)
              at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:128)
              at flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:367)
              at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:153)
              at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:128)
              at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
              at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:149)
              at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:128)
              at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:128)
              at flex.messaging.io.amf.Amf0Input.readArrayValue(Amf0Input.java:319)
              at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:132)
              at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:88)
              at flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeserializer.java:206)
              at flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDeserializer.java:130)
              at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:113)
              at flex.messaging.endpoints.AMFEndpoint.service(AMFEndpoint.java:122)
              at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:424)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:237)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:19 8)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
              at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P rotocol.java:705)
              at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
              at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
              at java.lang.Thread.run(Thread.java:619)

       

        Regards

        Kumar

       

      Thanks in Advance.