• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

(java.lang.IllegalStateException: putFields may not be called in this context) exception when invoki  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(java.lang.IllegalStateException: putFields may not be called in this context) exception when invoking method of ejb remote interface in jboss 7.1.0.Final

I am migrating the JBoss4.2.2GA to JBoss7.1.0 Final. My application uses the Struts, HIbernate, EJB etc. This application is working fine in JBoss4.2.2 GA. But in JBoss 7.1.0 it is failing.
I am getting the message "ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ct].[action]] (http-localhost-127.0.0.1-18080-2) Servlet.service() for servlet action threw exception: java.lang.IllegalStateException: putFields may not be called in this context"
Even I tried with BeanUtils 1.8.0, 1.8.3 (Comes with JBoss7.1.0) and 1.9.2 as well, but no results.
Error looks like in the DynaProperty. I am unable to progress this. Can some one help me please.
Below pasted the errors. same error zip file attached.
Thanks in advance.

________________________________________________________________________________

05:51:04,629 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ct].[action]] (http-localhost-127.0.0.1-18080-2) Servlet.service() for servlet action threw exception: java.lang.IllegalStateException: putFields may not be called in this context
at org.jboss.marshalling.cloner.SerializingCloner$StepObjectOutputStream.defaultWriteObject(SerializingCloner.java:564)
at org.apache.commons.beanutils.DynaProperty.writeObject(DynaProperty.java:278) [commons-beanutils-1.8.0.jar:1.8.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_16]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_16]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_16]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_16]
at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:175)
at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:299)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:254)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:219)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)
at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner.java:348)
at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:309)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:254)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)
at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner.java:348)
at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:309)
at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:286)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:254)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)
at org.jboss.marshalling.cloner.SerializingCloner$StepObjectInput.doReadObject(SerializingCloner.java:738)
at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)
at org.jboss.marshalling.MarshallerObjectInputStream.readObjectOverride(MarshallerObjectInputStream.java:57)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345) [rt.jar:1.6.0_16]
at java.util.ArrayList.readObject(ArrayList.java:593) [rt.jar:1.6.0_16]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_16]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_16]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_16]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_16]
at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:213)
at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:302)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:254)
at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)
at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:225) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:216) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:188) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at $Proxy29.executeStatement(Unknown Source) at com.teoco.cc.webapp.action.ClaimActionUtils.fetchReasonCodes(ClaimActionUtils.java:198) [classes:]
at com.teoco.cc.webapp.action.NewReconClaimAction.execute(NewReconClaimAction.java:56) [classes:]
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts.jar:1.2.9]
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts.jar:1.2.9]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts.jar:1.2.9]
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) [struts.jar:1.2.9]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_16]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!