You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ranjith George (JIRA)" <ji...@apache.org> on 2009/03/12 15:14:02 UTC
[jira] Created: (STR-3183) BeanUtils
BeanUtils
---------
Key: STR-3183
URL: https://issues.apache.org/struts/browse/STR-3183
Project: Struts 1
Issue Type: Bug
Affects Versions: 1.3.8
Environment: Windows XP, Java 1.4
Reporter: Ranjith George
I have a single action form.
In my page where i have a FormFile object if i try to access my main page after my form attribute in session is removed. i get the argument type mismatch error because struts internally calls the bean utils set property method which tries to convert String object to FormFile object. Plese find the log below
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
[2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
[2009-03-12 17:15:11,391] WebContainer : 0 ERROR org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java(Inlined Compiled Code)) - Method invocation failed.
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java(Inlined Compiled Code))
at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code))
at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java(Compiled Code))
at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java(Inlined Compiled Code))
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code))
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (STR-3183) BeanUtils
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/STR-3183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45794#action_45794 ]
Niall Pemberton commented on STR-3183:
--------------------------------------
Please ask questions on the user mailing list
> BeanUtils
> ---------
>
> Key: STR-3183
> URL: https://issues.apache.org/struts/browse/STR-3183
> Project: Struts 1
> Issue Type: Bug
> Affects Versions: 1.3.8
> Environment: Windows XP, Java 1.4
> Reporter: Ranjith George
>
> I have a single action form.
> In my page where i have a FormFile object if i try to access my main page after my form attribute in session is removed. i get the argument type mismatch error because struts internally calls the bean utils set property method which tries to convert String object to FormFile object. Plese find the log below
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
> [2009-03-12 17:15:11,391] WebContainer : 0 ERROR org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java(Inlined Compiled Code)) - Method invocation failed.
> java.lang.IllegalArgumentException: argument type mismatch
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
> at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
> at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java(Inlined Compiled Code))
> at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code))
> at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java(Compiled Code))
> at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java(Inlined Compiled Code))
> at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code))
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (STR-3183) BeanUtils
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/STR-3183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict closed STR-3183.
------------------------------
Resolution: Not A Problem
Closing issue. JIRA is an issue tracking system, not a user help forum.
> BeanUtils
> ---------
>
> Key: STR-3183
> URL: https://issues.apache.org/struts/browse/STR-3183
> Project: Struts 1
> Issue Type: Bug
> Affects Versions: 1.3.8
> Environment: Windows XP, Java 1.4
> Reporter: Ranjith George
>
> I have a single action form.
> In my page where i have a FormFile object if i try to access my main page after my form attribute in session is removed. i get the argument type mismatch error because struts internally calls the bean utils set property method which tries to convert String object to FormFile object. Plese find the log below
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code)) - setProperty(com.citco.banking.nxg.company.actionform.CompanyUtilForm@48046f8f, footerFile, [])
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Convert string '' to class 'org.apache.struts.upload.FormFile'
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java(Compiled Code)) - Using converter org.apache.commons.beanutils.converters.StringConverter@3c08efc1
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
> [2009-03-12 17:15:11,312] WebContainer : 0 DEBUG org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code)) - setSimpleProperty: Invoking method public void com.citco.banking.nxg.company.actionform.CompanyUtilForm.setFooterFile(org.apache.struts.upload.FormFile) with value (class java.lang.String)
> [2009-03-12 17:15:11,391] WebContainer : 0 ERROR org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java(Inlined Compiled Code)) - Method invocation failed.
> java.lang.IllegalArgumentException: argument type mismatch
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
> at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
> at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java(Inlined Compiled Code))
> at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java(Compiled Code))
> at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java(Compiled Code))
> at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java(Inlined Compiled Code))
> at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java(Compiled Code))
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.