java.lang.IllegalArgumentException: argument type mismatch

Salesforce | Joseph Nelson | 2 years ago
  1. 0

    Inserting a row in DataExtension via Java FuelSDk not working

    Salesforce | 2 years ago | Joseph Nelson
    java.lang.IllegalArgumentException: argument type mismatch
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    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.

    MuleSoft JIRA | 9 years ago | Bambitroll bambitroll
    java.lang.IllegalArgumentException: argument type mismatch
  4. 0

    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.

    MuleSoft JIRA | 9 years ago | Bambitroll bambitroll
    java.lang.IllegalArgumentException: argument type mismatch

  1. Aria Pahlavan 16 times, last 2 weeks ago
  2. kjhdofjosvs 2 times, last 1 month ago
  3. tyson925 2 times, last 1 month ago
  4. kuldeep 2 times, last 2 months ago
  5. aldrinleal 1 times, last 5 months ago
6 more registered users
72 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    argument type mismatch

    at sun.reflect.NativeMethodAccessorImpl.invoke0()
  2. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  3. Apache Commons BeanUtils
    BeanUtils.setProperty
    1. org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
    2. org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
    3. org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
    4. org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
    5. org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
    6. org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313)
    6 frames
  4. com.exacttarget.fuelsdk
    ETDataExtension.insert
    1. com.exacttarget.fuelsdk.ETSoapObject.toInternal(ETSoapObject.java:738)
    2. com.exacttarget.fuelsdk.soap.ETCrudServiceImpl.post(ETCrudServiceImpl.java:92)
    3. com.exacttarget.fuelsdk.soap.ETDataExtensionRowServiceImpl.post(ETDataExtensionRowServiceImpl.java:179)
    4. com.exacttarget.fuelsdk.ETDataExtension.insert(ETDataExtension.java:240)
    4 frames
  5. com.mt.ecom
    TestExactTarget.main
    1. com.mt.ecom.et.TestExactTarget.main(TestExactTarget.java:59)
    1 frame