java.lang.IllegalArgumentException: argument type mismatch

2004-03-03 Thread as as
Hi,
 
I get the above error.Any clues...Thanks!

My form takes a String and sets the String in the object as below...
In my StrutsAction class:

book.setFirst(form.getFirst());

In my jsp class:(book.jsp)

input type=text name=first value=bean:write name=book property=first /



-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Argument Type mismatch Exception...(Nested Tags)

2003-09-30 Thread Rajanala, Srinivas
Hi,

I am getting the following error when I submit the html form:
Sep 30, 2003 5:10:01 PM EDT Error HTTP 101017 
[ServletContext(id=7779161,name=omr,co
ntext-path=/omr)] Root cause of ServletException
java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at 
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:17
89)
at 
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:16
84)
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:82
1)
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)



It is not displaying the line number(or tag name) in the JSP file.
Is there anything wrong in using nested tags in my JSP page?

I have following in the JSP file under html:form:
td
logic:iterate name=manageProfileForm property=availChannelGroup id=cg
html:radio name=manageProfileForm property=availChannelGroup value=key 
idName=cgnbsp;bean:write name=cg property=value//html:radio 
 /logic:iterate
/td

td
html:select name=manageProfileForm property=availDepts
 logic:iterate name=manageProfileForm property=availDepts id=dt
html:option value=keybean:write name=dt property=value//html:option  
/logic:iterate 
/html:select 
/td

td
logic:iterate name=manageProfileForm property=availRoles 
id=roles
  html:checkbox name=roles property=key
  bean:write name=roles property=value/br
  /html:checkbox
/logic:iterate
/td

td
logic:iterate name=manageProfileForm property=availRoles 
id=roles
  html:checkbox name=roles property=key
  bean:write name=roles property=value/br
  /html:checkbox
/logic:iterate
/td


manageProfileForm is the form bean defined in the struts-config.xml as shown below:
form-bean   name=manageProfileForm
 type=com.qwest.omt.actionForm.ManageProfileForm
   
  form-property name=availChannelGroup type=java.util.HashMap/
  form-property name=availDepts type=java.util.HashMap/
  form-property name=availRoles type=java.util.HashMap/
  form-property name=availBranches type=java.util.HashMap/
  form-property name=pendingAccess type=java.util.HashMap/
   
/form-bean

I appreciate your help.

Thanks,
Srini 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread michael . korolyov
hello,

I'm getting:


Root cause of ServletException
java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1684)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1713)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
)

tnx

Best Regards.
Michael.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread James Mitchell
Can you provide more details?

Specifically, your DynaActionForm declaration.  
If you've subclassed, can you show that as well?



--
James Mitchell
Software Developer
Struts Technical Support
A division of The Apache Software Foundation 
(ok, not really ;)
http://www.apache.org/struts



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 15:19
 To: [EMAIL PROTECTED]
 Subject: [Q] how to know which one? 
 java.lang.IllegalArgumentException: argument type mismatch
 
 
 hello,
 
 I'm getting:
 
 
 Root cause of ServletException
 java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
 Utils.java:1789)
 at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
 Utils.java:1684)
 at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
 java:1713)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
 )
 
 tnx
 
 Best Regards.
 Michael.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread michael . korolyov
Hello,

based on stack trace - I don't see any calls to my classes at all.
I use ReportForm extends ValidatorForm.

java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1684)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1713)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
essor.java:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
2)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:262)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:198)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2637)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:18 PM
To: 'Struts Users Mailing List'
Subject: RE: [Q] how to know which one?
java.lang.IllegalArgumentException: argument type mismatch


Can you provide more details?

Specifically, your DynaActionForm declaration.  
If you've subclassed, can you show that as well?



--
James Mitchell
Software Developer
Struts Technical Support
A division of The Apache Software Foundation 
(ok, not really ;)
http://www.apache.org/struts



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 15:19
 To: [EMAIL PROTECTED]
 Subject: [Q] how to know which one? 
 java.lang.IllegalArgumentException: argument type mismatch
 
 
 hello,
 
 I'm getting:
 
 
 Root cause of ServletException
 java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
 Utils.java:1789)
 at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
 Utils.java:1684)
 at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
 java:1713)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
 )
 
 tnx
 
 Best Regards.
 Michael.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] how to know which one? java.lang.IllegalArgumentException : argument type mismatch

2003-02-26 Thread Jarnot Voytek Contr AU HQ/SC
What does your ReportForm look like?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 2:47 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [Q] how to know which one?
 java.lang.IllegalArgumentException : argument type mismatch
 
 
 Hello,
 
 based on stack trace - I don't see any calls to my classes at all.
 I use ReportForm extends ValidatorForm.
 
 java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
 Utils.java:1789)
 at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
 Utils.java:1684)
 at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
 java:1713)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
 )
 at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
 at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
 at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
 essor.java:798)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
 va:254)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
 2)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
 
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:262)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:198)
 at
 weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
 rvletContext.java:2637)
 at
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
 pl.java:2359)
 at 
 weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:18 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [Q] how to know which one?
 java.lang.IllegalArgumentException: argument type mismatch
 
 
 Can you provide more details?
 
 Specifically, your DynaActionForm declaration.  
 If you've subclassed, can you show that as well?
 
 
 
 --
 James Mitchell
 Software Developer
 Struts Technical Support
 A division of The Apache Software Foundation 
 (ok, not really ;)
 http://www.apache.org/struts
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 15:19
 To: [EMAIL PROTECTED]
 Subject: [Q] how to know which one? 
 java.lang.IllegalArgumentException: argument type mismatch
 
 
 hello,
 
 I'm getting:
 
 
 Root cause of ServletException
 java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
 Utils.java:1789)
 at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
 Utils.java:1684)
 at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
 java:1713)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
 )
 
 tnx
 
 Best Regards.
 Michael.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] how to know which one? java.lang.IllegalArgumentException : argument type mismatch

2003-02-26 Thread michael . korolyov
Hello,

I think that problem is - multibox

in my jsp:

logic:iterate id=item name=reportForm property=guaranteeItems 
  html:multibox property=selectedGuaranteeItems onclick=blankImage()
   bean:write name=item/
  /html:multibox
   bean:write name=item/
/logic:iterate

in my Form:

  public ArrayList getGuaranteeItems() {
return guaranteeItems;
  }

  public void setGuaranteeItems(ArrayList guaranteeItems) {
this.guaranteeItems = guaranteeItems;
  }

  private ArrayList guaranteeItems;

  private ArrayList selectedGuaranteeItems;

  public ArrayList getSelectedGuaranteeItems() {
return this.selectedGuaranteeItems;
  }
  public void setSelectedGuaranteeItems(ArrayList selectedGuaranteeItems) {
this.selectedGuaranteeItems = selectedGuaranteeItems;
  }

--
looks like that multibox doesn't understand type ArrayList - isn't it?

tnx a lot

Best Regards.
Michael.


-Original Message-
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:44 PM
To: 'Struts Users Mailing List'
Subject: RE: [Q] how to know which one?
java.lang.IllegalArgumentException : argument type mismatch


What does your ReportForm look like?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 2:47 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [Q] how to know which one?
 java.lang.IllegalArgumentException : argument type mismatch
 
 
 Hello,
 
 based on stack trace - I don't see any calls to my classes at all.
 I use ReportForm extends ValidatorForm.
 
 java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
 Utils.java:1789)
 at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
 Utils.java:1684)
 at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
 java:1713)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
 )
 at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
 at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
 at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
 essor.java:798)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
 va:254)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
 2)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
 
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:262)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:198)
 at
 weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
 rvletContext.java:2637)
 at
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
 pl.java:2359)
 at 
 weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:18 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [Q] how to know which one?
 java.lang.IllegalArgumentException: argument type mismatch
 
 
 Can you provide more details?
 
 Specifically, your DynaActionForm declaration.  
 If you've subclassed, can you show that as well?
 
 
 
 --
 James Mitchell
 Software Developer
 Struts Technical Support
 A division of The Apache Software Foundation 
 (ok, not really ;)
 http://www.apache.org/struts
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
 Sent: mercredi 26 février 2003 15:19
 To: [EMAIL PROTECTED]
 Subject: [Q] how to know which one? 
 java.lang.IllegalArgumentException: argument type mismatch
 
 
 hello,
 
 I'm getting:
 
 
 Root cause of ServletException
 java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
 Utils.java:1789)
 at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
 Utils.java:1684)
 at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
 java:1713)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
 )
 
 tnx
 
 Best Regards.
 Michael.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED

LookupDispatchAction - java.lang.IllegalArgumentException: argument type mismatch

2003-02-24 Thread Chonalal, Anil (Contractor)
Hi, I am trying to get a simple example working using LookupDispatchAction
but keep getting the following exception, does anybody know what could cause
this exception, has anyone had this exception before trying to use the
LookupDispatchAction?

javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1099)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:479)
root cause 
java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1684)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:17
13)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

argument type mismatch

2003-02-18 Thread Wendy Smoak

A message in the archives made me suspect a BeanUtils/PropertyUtils problem,
so I posted to commons-user also, but the problem appears to be coming out
of Struts code:

javax.servlet.ServletException: argument type mismatch
at
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.
java:526)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:467)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)

I'm at a loss as to where in my own code to look.  This is a
LookupDispatchAction behind what is basically a CRUD form.  When I pull up a
record to edit, everything goes fine, it loads from the database and
populates the DynaValidatorForm and displays the info.

But when I submit to update the database, a different method in the
LookupDispatchAction gets called and something goes wrong.  (The usual...
this used to work fine!!)  I have changed around some properties of the form
in struts-config and the associated DTO and DAO classes.  I'll go triple
check that all of the properties match up, but meanwhile if anyone has an
idea of what to look for, I would appreciate it.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



AW: IllegalArgumentException: argument type mismatch

2002-07-05 Thread Efftinge, Sven

Sometimes it helps to write it down the Problem is java.util.Date, I
have to use java.sql.Date (i have no Idea what this has to do with sql)

thanks anyway, Sven

-Ursprüngliche Nachricht-
Von: Efftinge, Sven [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 5. Juli 2002 13:41
An: 'Struts Users Mailing List'
Betreff: AW: IllegalArgumentException: argument type mismatch


I forgot some Information:

these are the fields of AccountGruppeData :
   
   protected java.lang.Integer id;
   protected java.util.Date datum;
   protected java.lang.Integer accountGruppenArtId;
   protected java.lang.String notiz;
   protected java.lang.String name;
   protected java.lang.String debitorNr;
   protected java.math.BigDecimal mwStInProzent;
   protected java.math.BigDecimal rabattInProzent;
   protected java.math.BigDecimal guthaben;

maybe the BeanUtils have problems with Date or BigDecimal 



-Ursprüngliche Nachricht-
Von: Efftinge, Sven [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 5. Juli 2002 13:32
An: '[EMAIL PROTECTED]'
Betreff: IllegalArgumentException: argument type mismatch


Hi,
i have an ActionForm wich has only one Attribute. This Attribute is a
DataObject (a serializable Bean wich presents the Data of an EntityBean).

// ActionForm

public class AccountGruppeForm extends ActionForm {

private AccountGruppeData accountGruppe = new AccountGruppeData();

public AccountGruppeData getAccountGruppe() {
return this.accountGruppe;
}

public void setAccountGruppe(AccountGruppeData accountGruppe) {
this.accountGruppe = accountGruppe;
}
}

The Dataobject AccountGruppeData has 9 fields with a getter and a setter
method.

My Struts-config.xml looks like this (I am using Struts 1.1-b1):

struts-config
!--  Form-Beans == --
  form-beans
form-bean name=AccountGruppeForm 
 
type=de.lohndirekt.ikarus.web.formbeans.billing.AccountGruppeForm /
  /form-beans


  !-- == Global Forward Definitions ==
--
  global-forwards
forward name = error path = /global/error.jsp /
  /global-forwards
  !-- == Action Mapping Definitions ==
--
  action-mappings
!-- == FibuAccountGruppeEditieren
== --
action path=/billing/FibuAccountGruppeSuchAction 
 
type=de.lohndirekt.ikarus.web.actions.billing.FibuAccountGruppeSuchAction
name=AccountGruppeForm 
scope=request 
validate=false 

forward name=failure path=/AccountGruppeSuchFormular.jsp /
forward name=success path=/FibuAccountGruppeAnsicht.jsp /
/action

action path=/billing/FibuAccountGruppeUpdateAction 
 
type=de.lohndirekt.ikarus.web.actions.billing.FibuAccountGruppeUpdateAction

name=AccountGruppeForm 
scope=request 
validate=true 

forward name=failure path=/FibuAccountGruppeAnsicht.jsp /
forward name=success path=/FibuAccountGruppeAnsicht.jsp /
/action

  /action-mappings
/struts-config

My Problem:
the first Action (/billing/FibuAccountGruppeSuchAction) works, but when i
send a request to html:form
action=/billing/FibuAccountGruppeUpdateAction I get the following:

javax.servlet.ServletException: BeanUtils.populate 
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:954) 
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795) 
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) 
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) ...

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.j
ava:1574) 
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1468) 
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:14
98) 
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:613) 
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:952) 
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795) 
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) 
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) ... 


First

IllegalArgumentException: argument type mismatch

2002-07-05 Thread Efftinge, Sven

Hi,
i have an ActionForm wich has only one Attribute. This Attribute is a
DataObject (a serializable Bean wich presents the Data of an EntityBean).

// ActionForm

public class AccountGruppeForm extends ActionForm {

private AccountGruppeData accountGruppe = new AccountGruppeData();

public AccountGruppeData getAccountGruppe() {
return this.accountGruppe;
}

public void setAccountGruppe(AccountGruppeData accountGruppe) {
this.accountGruppe = accountGruppe;
}
}

The Dataobject AccountGruppeData has 9 fields with a getter and a setter
method.

My Struts-config.xml looks like this (I am using Struts 1.1-b1):

struts-config
!--  Form-Beans == --
  form-beans
form-bean name=AccountGruppeForm 
 
type=de.lohndirekt.ikarus.web.formbeans.billing.AccountGruppeForm /
  /form-beans


  !-- == Global Forward Definitions ==
--
  global-forwards
forward name = error path = /global/error.jsp /
  /global-forwards
  !-- == Action Mapping Definitions ==
--
  action-mappings
!-- == FibuAccountGruppeEditieren
== --
action path=/billing/FibuAccountGruppeSuchAction 
 
type=de.lohndirekt.ikarus.web.actions.billing.FibuAccountGruppeSuchAction
name=AccountGruppeForm 
scope=request 
validate=false 

forward name=failure path=/AccountGruppeSuchFormular.jsp /
forward name=success path=/FibuAccountGruppeAnsicht.jsp /
/action

action path=/billing/FibuAccountGruppeUpdateAction 
 
type=de.lohndirekt.ikarus.web.actions.billing.FibuAccountGruppeUpdateAction

name=AccountGruppeForm 
scope=request 
validate=true 

forward name=failure path=/FibuAccountGruppeAnsicht.jsp /
forward name=success path=/FibuAccountGruppeAnsicht.jsp /
/action

  /action-mappings
/struts-config

My Problem:
the first Action (/billing/FibuAccountGruppeSuchAction) works, but when i
send a request to html:form
action=/billing/FibuAccountGruppeUpdateAction I get the following:

javax.servlet.ServletException: BeanUtils.populate 
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:954) 
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795) 
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) 
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) ...

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.j
ava:1574) 
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1468) 
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:14
98) 
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:613) 
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:952) 
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795) 
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) 
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) ... 


First I open a formular to search for an AccountGruppe by an Id:
without formats AccountGruppeSuchFormular.jsp looks like this:

html:form action=billing/FibuAccountGruppeSuchAction
html:text property=accountGruppe.id/
html:submit/
/html:form

the ActionServlet fetches the Data of the AccountGruppe from the EJBServer.
The presentation of the Data is in /FibuAccountGruppeAnsicht.jsp:

 html:form action=billing/FibuAccountGruppeUpdateAction
  html:text property=accountGruppe.name/
  html:text property=accountGruppe.notiz/
  html:text property=accountGruppe.guthaben/
  html:text property=accountGruppe.datum/
  html:text property=accountGruppe.mwStInProzent/
  html:text property=accountGruppe.rabattInProzent/
  html:submit/
/html:form

this works all fine, the error apears when i press the submit button.

I have no Idea where the error could be.
thanks for helping,
Sven

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands

Re: AW: IllegalArgumentException: argument type mismatch

2002-07-05 Thread Craig R. McClanahan



On Fri, 5 Jul 2002, Efftinge, Sven wrote:

 Date: Fri, 5 Jul 2002 13:40:46 +0200
 From: Efftinge, Sven [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: AW: IllegalArgumentException: argument type mismatch

 I forgot some Information:

 these are the fields of AccountGruppeData :

protected java.lang.Integer id;
protected java.util.Date datum;
protected java.lang.Integer accountGruppenArtId;
protected java.lang.String notiz;
protected java.lang.String name;
protected java.lang.String debitorNr;
protected java.math.BigDecimal mwStInProzent;
protected java.math.BigDecimal rabattInProzent;
protected java.math.BigDecimal guthaben;

 maybe the BeanUtils have problems with Date or BigDecimal 


In 1.0 and 1.1-beta-1, there are no standard conversions for BigDecimal.
This has been added in the most recent nightly builds (plus the ability to
register your own custom Converter classes -- see the latest javadocs for
the BeanUtils package http://jakarta.apache.org/commons/beanutils/api/).
There is still no standard converter for Date (primarily because you
really need to be locale-sensitive for things like that).

However, using data types like BigDecimal (or Integer, or Date) in your
form beans is not generally a good idea -- you're still going to get
conversion errors if the user types something invalid like 1a3 instead
of 123.  You should generally use strings in your form beans, and do the
conversion to your real data types later (in the Action, or via a separate
method like getDatumConverted() in the form bean) after validation has
guaranteed that the conversions will be successful.

Craig McClanahan





 -Ursprüngliche Nachricht-
 Von: Efftinge, Sven [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 5. Juli 2002 13:32
 An: '[EMAIL PROTECTED]'
 Betreff: IllegalArgumentException: argument type mismatch


 Hi,
 i have an ActionForm wich has only one Attribute. This Attribute is a
 DataObject (a serializable Bean wich presents the Data of an EntityBean).

 // ActionForm

 public class AccountGruppeForm extends ActionForm {

 private AccountGruppeData accountGruppe = new AccountGruppeData();

 public AccountGruppeData getAccountGruppe() {
 return this.accountGruppe;
 }

 public void setAccountGruppe(AccountGruppeData accountGruppe) {
 this.accountGruppe = accountGruppe;
 }
 }

 The Dataobject AccountGruppeData has 9 fields with a getter and a setter
 method.

 My Struts-config.xml looks like this (I am using Struts 1.1-b1):

 struts-config
 !--  Form-Beans == --
   form-beans
 form-bean name=AccountGruppeForm

 type=de.lohndirekt.ikarus.web.formbeans.billing.AccountGruppeForm /
   /form-beans


   !-- == Global Forward Definitions ==
 --
   global-forwards
 forward name = error path = /global/error.jsp /
   /global-forwards
   !-- == Action Mapping Definitions ==
 --
   action-mappings
 !-- == FibuAccountGruppeEditieren
 == --
 action path=/billing/FibuAccountGruppeSuchAction

 type=de.lohndirekt.ikarus.web.actions.billing.FibuAccountGruppeSuchAction
 name=AccountGruppeForm
 scope=request
 validate=false 

 forward name=failure path=/AccountGruppeSuchFormular.jsp /
 forward name=success path=/FibuAccountGruppeAnsicht.jsp /
 /action

 action path=/billing/FibuAccountGruppeUpdateAction

 type=de.lohndirekt.ikarus.web.actions.billing.FibuAccountGruppeUpdateAction
 
 name=AccountGruppeForm
 scope=request
 validate=true 

 forward name=failure path=/FibuAccountGruppeAnsicht.jsp /
 forward name=success path=/FibuAccountGruppeAnsicht.jsp /
 /action

   /action-mappings
 /struts-config

 My Problem:
 the first Action (/billing/FibuAccountGruppeSuchAction) works, but when i
 send a request to html:form
 action=/billing/FibuAccountGruppeUpdateAction I get the following:

 javax.servlet.ServletException: BeanUtils.populate
   at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:954)
   at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
 ava:795)
   at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)

   at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
   at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) ...

 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

IllegalArgumentException: argument type mismatch

2002-03-18 Thread Ida Dørum

Just changed my ActionForm from request to session scope. The code was working ok 
before i did this, but now i get this error: java.lang.IllegalArgumentException: 
argument type mismatch

The exception is not thrown when my form is first showed, only when i try to submit it.
As you can see from the stacktrace I've included below, this exception is thrown 
before my Action code is entered.

Any ideas of what I'm doing wrong? Are there any other changes i need to make to my 
code to give my form session scope?

Thanks in advance

- ida

-

java.lang.IllegalArgumentException: argument type mismatch

at java.lang.reflect.Method.invoke(Native Method)  
 
at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988)  
 
at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904)  
 
at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
 
at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)   
 
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772) 
 
at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061) 
 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) 
 
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)   
 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)   
 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)   
 
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
 
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)  
 
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)   
 
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)   
 


...mogul technology as...

mogul technology  ida dørum - software engineer
mailto:[EMAIL PROTECTED]
www.mogul.no
...



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




argument type mismatch

2002-03-03 Thread Steven Dahlin

When attempting to submit a jsp page with some fields for a database filled 
out I get the following:

java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method) at
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988)

I am getting an apparent mismatch between my database fields which are date 
and time respectively (using postgresql) and the values which I presume are 
submitted by the jsp. I have checked the archives but found no real answer 
to how this is handled with struts.  Any suggestions?

Steve




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: argument type mismatch

2002-03-03 Thread Barr, Scott [IBM GSA]


Hi Steve

It sounds like you are passing a String into a property that accepts Date
objects here.
You aren't receiving Date objects from the JSP, you are receiving Strings.
Try converting the String into Date objects first.

Scott

 -Original Message-
 From: Steven Dahlin [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, March 04, 2002 8:23 AM
 To:   [EMAIL PROTECTED]
 Subject:  argument type mismatch
 
 When attempting to submit a jsp page with some fields for a database
 filled 
 out I get the following:
 
 java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method) at
 org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:
 988)
 
 I am getting an apparent mismatch between my database fields which are
 date 
 and time respectively (using postgresql) and the values which I presume
 are 
 submitted by the jsp. I have checked the archives but found no real answer
 
 to how this is handled with struts.  Any suggestions?
 
 Steve
 
 
 
 
 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




argument type mismatch

2002-02-27 Thread Steven Dahlin

When attempting to submit a jsp page with some fields for a database filled
out I get the following:

java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:98
8)

I am getting an apparent mismatch between my database fields which are date
and time respectively (using postgresql) and the values which I presume are
submitted by the jsp. I have checked the archives but found no real answer
to how this is handled with struts.  Any suggestions?

Steve

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




argument type mismatch - trying to replicate upload task

2002-01-18 Thread Matt Raible

After banging my head against the wall for a few hours, I'm hoping someone on
this list has an idea.  I keep getting the following error:

java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1566)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1460)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1490)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:567)


I have getters/setters for all the elements in my HTML form below - and I never
even get to my action class to debug it.  I've basically copied the UploadForm
example and added asset, description, and mediaType as Strings.  Then removed
filePath (hardcoding for now), and viewFile fields.  

form method=POST action=/onpoint/do/saveObject id=assetForm
name=assetForm
   input type=text name=asset size=30 value=
   textarea name=description cols=30 rows=5/textarea
   select size=1 name=mediaType
  option value=videoVideo/option
  option value=textText/option
  option value=audioAudio/option
   input type=file name=theFile value=
   button value=Cancel name=org.apache.struts.taglib.html.CANCEL
type=submitCancel/button
   button onClick= value=Save id=action name=action
type=submitSave/button
/form

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: argument type mismatch - trying to replicate upload task

2002-01-18 Thread dion

Matt Raible wrote:
 After banging my head against the wall for a few hours, I'm hoping someone on
 this list has an idea.  I keep getting the following error:
 
 java.lang.IllegalArgumentException: argument type mismatch
   at java.lang.reflect.Method.invoke(Native Method)
   at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1566)
   at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1460)
   at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1490)
   at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:567)
 

This is effectively saying that your form bean's set method for some 
property doesn't match the value (most likely a string) given to it..


 I have getters/setters for all the elements in my HTML form below - and I never
 even get to my action class to debug it.  I've basically copied the UploadForm
 example and added asset, description, and mediaType as Strings.  Then removed
 filePath (hardcoding for now), and viewFile fields.  

Can you post your form bean??

 form method=POST action=/onpoint/do/saveObject id=assetForm
 name=assetForm
input type=text name=asset size=30 value=
textarea name=description cols=30 rows=5/textarea
select size=1 name=mediaType
   option value=videoVideo/option
   option value=textText/option
   option value=audioAudio/option
input type=file name=theFile value=
button value=Cancel name=org.apache.struts.taglib.html.CANCEL
 type=submitCancel/button
button onClick= value=Save id=action name=action
 type=submitSave/button
 /form


-- 
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]