java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • here is the link to the corresponding thread on Nabble: http://www.nabble.com/FtpConnector-and-filenameParser-property-tf4626800.html I am experiencing a problem with the FtpConnector and more specifically the property called filenameParser. I am trying to get Mule to use a home made class to handle the filename generation (since the default options are not good enough for me). But when I try to set the filenameParser property, I get an error. So I tried with the default class, and I also get an error (like if Mule did not have a setter for filenameParser, which according to the API it has!). Here is how it looks in my config file: <connector name="tsp-ftpConnector" className="org.mule.providers.ftp.FtpConnector"> <properties> <property name="pollingFrequency" value="5000" /> <property name="filenameParser" value="org.mule.providers.file.SimpleFilenameParser" /> <property name="outputPattern" value="n_${COUNT}.txt" /> <property name="validateConnections" value="true" /> </properties> </connector> And here is the error I get when I start Mule: ERROR 2007-10-15 13:53:53,014 [WrapperSimpleAppMain] org.apache.commons.beanutils.PropertyUtils: Method invocation failed. 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:597) at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773) at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759) at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648) at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677) at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313) at org.mule.util.BeanUtils.populateWithoutFail(BeanUtils.java:65) at org.mule.config.builders.MulePropertiesRuleSet$1.end(MulePropertiesRuleSet.java:98) at org.apache.commons.digester.Digester.endElement(Digester.java:1130) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1685) at org.mule.config.builders.AbstractDigesterConfiguration.process(AbstractDigesterConfiguration.java:101) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:264) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:218) at org.mule.MuleServer.initialize(MuleServer.java:294) at org.mule.MuleServer.run(MuleServer.java:207) at org.mule.MuleServer.start(MuleServer.java:195) at org.mule.MuleServer.main(MuleServer.java:166) 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:597) at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) at java.lang.Thread.run(Thread.java:619) WARN 2007-10-15 13:53:53,016 [WrapperSimpleAppMain] org.mule.util.BeanUtils: Property: filenameParser=org.mule.providers.file.SimpleFilenameParser not found on object: org.mule.providers.ftp.FtpConnector So I am a bit puzzled that it does not even work with the default class! Moreover, I search in the mailing list and in Jira and I saw several people using it exactly as I do above and none reported any problems.
    via by Bambitroll bambitroll,
  • here is the link to the corresponding thread on Nabble: http://www.nabble.com/FtpConnector-and-filenameParser-property-tf4626800.html I am experiencing a problem with the FtpConnector and more specifically the property called filenameParser. I am trying to get Mule to use a home made class to handle the filename generation (since the default options are not good enough for me). But when I try to set the filenameParser property, I get an error. So I tried with the default class, and I also get an error (like if Mule did not have a setter for filenameParser, which according to the API it has!). Here is how it looks in my config file: <connector name="tsp-ftpConnector" className="org.mule.providers.ftp.FtpConnector"> <properties> <property name="pollingFrequency" value="5000" /> <property name="filenameParser" value="org.mule.providers.file.SimpleFilenameParser" /> <property name="outputPattern" value="n_${COUNT}.txt" /> <property name="validateConnections" value="true" /> </properties> </connector> And here is the error I get when I start Mule: ERROR 2007-10-15 13:53:53,014 [WrapperSimpleAppMain] org.apache.commons.beanutils.PropertyUtils: Method invocation failed. 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:597) at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773) at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759) at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648) at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677) at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313) at org.mule.util.BeanUtils.populateWithoutFail(BeanUtils.java:65) at org.mule.config.builders.MulePropertiesRuleSet$1.end(MulePropertiesRuleSet.java:98) at org.apache.commons.digester.Digester.endElement(Digester.java:1130) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1685) at org.mule.config.builders.AbstractDigesterConfiguration.process(AbstractDigesterConfiguration.java:101) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:264) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:218) at org.mule.MuleServer.initialize(MuleServer.java:294) at org.mule.MuleServer.run(MuleServer.java:207) at org.mule.MuleServer.start(MuleServer.java:195) at org.mule.MuleServer.main(MuleServer.java:166) 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:597) at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) at java.lang.Thread.run(Thread.java:619) WARN 2007-10-15 13:53:53,016 [WrapperSimpleAppMain] org.mule.util.BeanUtils: Property: filenameParser=org.mule.providers.file.SimpleFilenameParser not found on object: org.mule.providers.ftp.FtpConnector So I am a bit puzzled that it does not even work with the default class! Moreover, I search in the mailing list and in Jira and I saw several people using it exactly as I do above and none reported any problems.
    via by Bambitroll,
  • Addon Prowl 1.4 issue
    via GitHub by fbodart
    ,
  • @Consumes doesn't work with JSON
    via Stack Overflow by Everv0id
    ,
    • java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773) at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759) at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648) at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677) at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313) at com.exacttarget.fuelsdk.ETSoapObject.toInternal(ETSoapObject.java:738) at com.exacttarget.fuelsdk.soap.ETCrudServiceImpl.post(ETCrudServiceImpl.java:92) at com.exacttarget.fuelsdk.soap.ETDataExtensionRowServiceImpl.post(ETDataExtensionRowServiceImpl.java:179) at com.exacttarget.fuelsdk.ETDataExtension.insert(ETDataExtension.java:240) at com.mt.ecom.et.TestExactTarget.main(TestExactTarget.java:59)

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    94 more bugmates