<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Activiti Spring bean and overloaded method error. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66680#M42429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Same over here. Never was able to figure it out. In the end I also created a &lt;/SPAN&gt;&lt;STRONG&gt;new service with a different name&lt;/STRONG&gt;&lt;SPAN&gt;. Was a hack but I too was short on time to figure it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyways. Might be handy for someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Franklin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2011 16:57:16 GMT</pubDate>
    <dc:creator>frankee787</dc:creator>
    <dc:date>2011-09-19T16:57:16Z</dc:date>
    <item>
      <title>Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66674#M42423</link>
      <description>I have the following Spring bean methods:/**&amp;nbsp;&amp;nbsp;&amp;nbsp; * Whether or not to auto-reject this applicant based on the &amp;nbsp;&amp;nbsp;&amp;nbsp; * AutoRejectConfigItem rules configured in the system.&amp;nbsp;&amp;nbsp;&amp;nbsp; * &amp;nbsp;&amp;nbsp;&amp;nbsp; * @param user - The user to check.&amp;nbsp;&amp;nbsp;&amp;nbsp; * @return - Whether or not to auto-reject.&amp;nbsp;&amp;nbsp;&amp;nbsp; */&amp;nbsp;&amp;nbsp;&amp;nbsp;public boolean isUserAutoRejectCand</description>
      <pubDate>Wed, 27 Jul 2011 01:08:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66674#M42423</guid>
      <dc:creator>unsavory</dc:creator>
      <dc:date>2011-07-27T01:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66675#M42424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the type of the email parameter? It seems to me it's a plain string, while your operation expects a User object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 12:09:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66675#M42424</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-08-05T12:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66676#M42425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it is a String.&amp;nbsp; I also have a similar method in my service that takes a User object (same number of parameters).&amp;nbsp; But looking at the reflection piece in Activiti, it only matches on number of arguments in the method and assumes this is the correct method to call.&amp;nbsp; Which it is not.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 23:34:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66676#M42425</guid>
      <dc:creator>unsavory</dc:creator>
      <dc:date>2011-08-05T23:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66677#M42426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's actually JUEL-implementation we ship in the activiti codebase, for doing the expression resolving. Have you checked the JUEL issues/forum for similar behaviour?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 07:46:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66677#M42426</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-09T07:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66678#M42427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@unsavory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Were you able to resolve this issue? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I too am facing the same issue. I have two methods as follows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public User getUser(String username) &lt;BR /&gt;&lt;BR /&gt;public User getUser(Integer userId) &lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I am passing a String as the argument , it tries to coerce it to an Integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; ${structService.getUser(registrar)},&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The value of the variable registrar is a String, but somehow its being coerced to an Integer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea why ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Franklin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2011 06:43:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66678#M42427</guid>
      <dc:creator>frankee787</dc:creator>
      <dc:date>2011-09-17T06:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66679#M42428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I never figured out what the issue was because I didn't have time to investigate the JUEL library like frederikheremans mentioned above.&amp;nbsp; The workaround for me was somewhat of a hack, but it works.&amp;nbsp; I just created a new method with a different name.&amp;nbsp; In your case you could have 2 methods: getUserByUsername and getUserById and it will work fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 16:47:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66679#M42428</guid>
      <dc:creator>unsavory</dc:creator>
      <dc:date>2011-09-19T16:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66680#M42429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Same over here. Never was able to figure it out. In the end I also created a &lt;/SPAN&gt;&lt;STRONG&gt;new service with a different name&lt;/STRONG&gt;&lt;SPAN&gt;. Was a hack but I too was short on time to figure it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyways. Might be handy for someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Franklin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 16:57:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66680#M42429</guid>
      <dc:creator>frankee787</dc:creator>
      <dc:date>2011-09-19T16:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66681#M42430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can anyone please let me know, is&amp;nbsp; this still an issue. Because i am facing the same issue with 5.15. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 10:49:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66681#M42430</guid>
      <dc:creator>smurfs</dc:creator>
      <dc:date>2015-06-15T10:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66682#M42431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think is related to this one: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://bz.apache.org/bugzilla/show_bug.cgi?id=56147" rel="nofollow noopener noreferrer"&gt;https://bz.apache.org/bugzilla/show_bug.cgi?id=56147&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the EL specs method overloading is not supported (probably there are EL implementations which supports it but don't know to tell you which one.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I know EL get the methods via reflection calling this method: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public Method[] getMethods() throws SecurityException;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in the documentation is written: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The elements in the array returned are not sorted and are not in any particular order."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which could lead to inconsistent behaviour for multiple EL calls. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the first call could succeed but the second one could fail (as you already noticed)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the best solution is to create different methods having different names just to remove the confusion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look also here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/beckchr/juel/issues/72" rel="nofollow noopener noreferrer"&gt;https://github.com/beckchr/juel/issues/72&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;JUEL documentation says: "If the given paramTypes is not null, select the method with the given name and parameter types. Else select the method with the given name that has the same number of parameters. If there are more than one such method, the method selection process is undefined. Else select the method with the given name that takes a variable number of arguments."&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 21:00:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66682#M42431</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2015-06-15T21:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean and overloaded method error.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66683#M42432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think is related to this one: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://bz.apache.org/bugzilla/show_bug.cgi?id=56147" rel="nofollow noopener noreferrer"&gt;https://bz.apache.org/bugzilla/show_bug.cgi?id=56147&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the EL specs method overloading is not supported (probably there are EL implementations which supports it but don't know to tell you which one.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I know EL get the methods via reflection calling this method: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public Method[] getMethods() throws SecurityException;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in the documentation is written: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The elements in the array returned are not sorted and are not in any particular order."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which could lead to inconsistent behaviour for multiple EL calls. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the first call could succeed but the second one could fail (as you already noticed)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the best solution is to create different methods having different names just to remove the confusion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look also here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/beckchr/juel/issues/72" rel="nofollow noopener noreferrer"&gt;https://github.com/beckchr/juel/issues/72&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;JUEL documentation says: "If the given paramTypes is not null, select the method with the given name and parameter types. Else select the method with the given name that has the same number of parameters. If there are more than one such method, the method selection process is undefined. Else select the method with the given name that takes a variable number of arguments."&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 21:01:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-and-overloaded-method-error/m-p/66683#M42432</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2015-06-15T21:01:34Z</dc:date>
    </item>
  </channel>
</rss>

