• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

IllegalArgumentException: argument type mismatch  RSS feed

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

In my Struts Application,my first page is loading when i click next button im calling one Action at that time im getting this error

***************************************************************************
<Mar 31, 2006 9:48:50 AM GMT+05:30> <Error> <HTTP> <BEA-101017> <[ServletContext(id=7062954,name=pdn,context-path=/pdn)]
Root cause of ServletException.
java.lang.IllegalArgumentException: argument type mismatch
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:324)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
at com.tcs.pdn.presentation.dispatch.PDNBaseRequestProcessor.processPopulate(PDNBaseRequestProcessor.java:116)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
***************************************************************************

Thanks & Regards

Prasath Thirumoorthy
 
Prasath Thirumoorthy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

The error is solved.I had placed the Date field in the jsp and I didnt customized the setter/getter.Now I customized the setters/getters with String data type now its working fine.Previously it had Date as data type

Cheers
Prasath Thirumoorthy
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could u paste your jsp code and the respective action section from the struts-config.xml file..??

Liju
 
Liju Cherian
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again,

Guess we both posted at the same time !!! Nice to hear ur problem has been resolved.

Keep posting.


Liju
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

even am getting the same error.........
i have a list named "issueList"
from this list am retreiving & setting values........
the values that are set are stored in a String.....
however as soon as i click on the save button my page crashes & the error is thrown

following is my code:

<html:select name="issueList" indexed="true" property="status" disabled="false" styleClass="rowodd">
<html:option value=""></html:option>
<c:if test="${!empty etForm.statusList}">
<bean:define id="statusList" name="etForm" property="statusList" />
<html:options collection="statusList" property="key" labelProperty="value" />
</c:if>
</html:select>


Kindly help me..........


 
Reshmi Kuttappan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

even am getting the same error.........
i have a list named "issueList"
from this list am retreiving & setting values........
the values that are set are stored in a String.....
however as soon as i click on the save button my page crashes & the error is thrown

following is my code:

<html:select name="issueList" indexed="true" property="status" disabled="false" styleClass="rowodd">
<htmlption value=""></htmlption>
<c:if test="${!empty etForm.statusList}">
<bean:define id="statusList" name="etForm" property="statusList" />
<htmlptions collection="statusList" property="key" labelProperty="value" />
</c:if>
</html:select>


Kindly help me..........
 
Sheriff
Posts: 9643
42
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Dont Wake The Zombies, that thread is 3 years old, start a new topic for your question...
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!