aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes IllegalArgumentException while submitting a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "IllegalArgumentException while submitting a form" Watch "IllegalArgumentException while submitting a form" New topic
Author

IllegalArgumentException while submitting a form

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231
Hi,

I am using Struts but the form is a general form. I am submitting to an action class whose mapping is there in the struts-config.xml file. But I am getting an error:

Error 500--Internal Server Error
java.lang.IllegalArgumentException
at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Ljava.lang.Object;Ljava.lang.String;Ljava.lang.Object V(PropertyUtils.java:1789)
at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Ljava.lang.Object;Ljava.lang.String;Ljava.lang.Object V(PropertyUtils.java:1684)
at org.apache.commons.beanutils.PropertyUtils.setProperty(Ljava.lang.Object;Ljava.lang.String;Ljava.lang.Object V(PropertyUtils.java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(Ljava.lang.Object;Ljava.lang.String;Ljava.lang.Object V(BeanUtils.java:1019)
at org.apache.commons.beanutils.BeanUtils.populate(Ljava.lang.Object;Ljava.util.Map V(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(Ljava.lang.Object;Ljava.lang.String;Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest V(RequestUtils.java:1252)
at org.apache.struts.action.RequestProcessor.processPopulate(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.apache.struts.action.ActionForm;Lorg.apache.struts.action.ActionMapping V(RequestProcessor.java:821)
at org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(ActionServlet.java:507)
at com.jpmorgan.rx.common.util.CCCControllerServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(CCCControllerServlet.java:81)
at com.jpmorgan.rx.common.util.CCCControllerServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(CCCControllerServlet.java:94)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse V(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl V(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse V(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6456)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction Ljava.lang.Object;(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction Ljava.lang.Object;(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl V(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread V(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest V(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread V(Unknown Source)
Barend Garvelink
Ranch Hand

Joined: Dec 07, 2004
Posts: 64
From the looks of it, that error occurs while Struts is copying the input from the HTTP request into your actionform bean. If any of the "setters" on your form throw the IllegalArg, that's the place to look.


SCJP 1.4, SCJD 1.4, SCWCD 1.3, ICSD:Websphere 5.1
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: IllegalArgumentException while submitting a form