java.lang.IllegalArgumentException: Cannot invoke com.mirth.connect.connectors.smtp.SmtpConnector.setAttachments on bean class 'class com.mirth.connect.connectors.smtp.SmtpConnector' - argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.List"

Mirth Project | Matias Lizana | 5 years ago
  1. 0

    Trying to send a simple e-mail with the new SMTP Sender channel on the trunk version. I try the "Test Mail" button and it works good, so I don't have connection problems. When I deploy the channel, it throws me this error: Code: ERROR 2011-09-07 13:56:33,395 [qtp2793484-35] com.mirth.connect.server.controllers.MuleEngineController: Failed to configure outbound router. java.lang.IllegalArgumentException: Cannot invoke com.mirth.connect.connectors.smtp.SmtpConnector.setAttachments on bean class 'class com.mirth.connect.connectors.smtp.SmtpConnector' - argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.List" at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2235) at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2151) at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1957) at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:2064) at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1017) at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:830) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433) at com.mirth.connect.server.controllers.MuleEngineController.registerConnector(MuleEngineController.java:728) at com.mirth.connect.server.controllers.MuleEngineController.configureOutboundRouter(MuleEngineController.java:540) at com.mirth.connect.server.controllers.MuleEngineController.registerChannel(MuleEngineController.java:358) at com.mirth.connect.server.controllers.MuleEngineController.deployChannels(MuleEngineController.java:212) at com.mirth.connect.server.servlets.EngineServlet.doPost(EngineServlet.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) at org.eclipse.jetty.server.Server.handle(Server.java:352) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2170) ... 34 more I doesn't put any attachment on the mail, so I don't know why fails with an "empty list". I see on code, if i'm not wrong, that the attachment list is transformed with an XML parser to a HTML list, and this error says that Mirth expects a list type, not an String.

    Mirth Project | 5 years ago | Matias Lizana
    java.lang.IllegalArgumentException: Cannot invoke com.mirth.connect.connectors.smtp.SmtpConnector.setAttachments on bean class 'class com.mirth.connect.connectors.smtp.SmtpConnector' - argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.List"
  2. 0

    Trying to send a simple e-mail with the new SMTP Sender channel on the trunk version. I try the "Test Mail" button and it works good, so I don't have connection problems. When I deploy the channel, it throws me this error: Code: ERROR 2011-09-07 13:56:33,395 [qtp2793484-35] com.mirth.connect.server.controllers.MuleEngineController: Failed to configure outbound router. java.lang.IllegalArgumentException: Cannot invoke com.mirth.connect.connectors.smtp.SmtpConnector.setAttachments on bean class 'class com.mirth.connect.connectors.smtp.SmtpConnector' - argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.List" at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2235) at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2151) at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1957) at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:2064) at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1017) at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:830) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433) at com.mirth.connect.server.controllers.MuleEngineController.registerConnector(MuleEngineController.java:728) at com.mirth.connect.server.controllers.MuleEngineController.configureOutboundRouter(MuleEngineController.java:540) at com.mirth.connect.server.controllers.MuleEngineController.registerChannel(MuleEngineController.java:358) at com.mirth.connect.server.controllers.MuleEngineController.deployChannels(MuleEngineController.java:212) at com.mirth.connect.server.servlets.EngineServlet.doPost(EngineServlet.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) at org.eclipse.jetty.server.Server.handle(Server.java:352) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2170) ... 34 more I doesn't put any attachment on the mail, so I don't know why fails with an "empty list". I see on code, if i'm not wrong, that the attachment list is transformed with an XML parser to a HTML list, and this error says that Mirth expects a list type, not an String.

    Mirth Project | 5 years ago | Matias Lizana
    java.lang.IllegalArgumentException: Cannot invoke com.mirth.connect.connectors.smtp.SmtpConnector.setAttachments on bean class 'class com.mirth.connect.connectors.smtp.SmtpConnector' - argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.List"
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    handleMouseEvent in 2.0b7 gives argument type mismatch

    GitHub | 4 years ago | processing-bugs
    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(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  3. Apache Commons BeanUtils
    BeanUtils.populate
    1. org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2170)
    2. org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2151)
    3. org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1957)
    4. org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:2064)
    5. org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1017)
    6. org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:830)
    7. org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433)
    7 frames
  4. com.mirth.connect
    EngineServlet.doPost
    1. com.mirth.connect.server.controllers.MuleEngineController.registerConnector(MuleEngineController.java:728)
    2. com.mirth.connect.server.controllers.MuleEngineController.configureOutboundRouter(MuleEngineController.java:540)
    3. com.mirth.connect.server.controllers.MuleEngineController.registerChannel(MuleEngineController.java:358)
    4. com.mirth.connect.server.controllers.MuleEngineController.deployChannels(MuleEngineController.java:212)
    5. com.mirth.connect.server.servlets.EngineServlet.doPost(EngineServlet.java:60)
    5 frames
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    2 frames
  6. Jetty
    HttpConnection.handle
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
    3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
    4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
    5. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
    6. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
    7. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
    8. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    9. org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
    10. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
    11. org.eclipse.jetty.server.Server.handle(Server.java:352)
    12. org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
    13. org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068)
    14. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
    15. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
    16. org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
    16 frames
  7. GWT dev
    SelectChannelEndPoint$1.run
    1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
    2. org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
    3. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
    3 frames
  8. Jetty
    QueuedThreadPool$2.run
    1. org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
    1 frame
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame