<?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: Problem with field injection with Spring proxy in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15210#M6733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe it is being proxied as part of AoP in the Spring framework. Surely Activiti is compatible with Spring? Strangely enough, a unit test using a mocked rest object seems to not cause any problems, it's only when I run the full web application that the proxy issue is arising -- perhaps an artifact of the way Spring handles unit tests, I'm really not sure. Either way, this is a pretty basic Activiti use case that it seems hard to believe wouldn't be possible in conjunction with Spring. Maybe there is some kind of configuration issue or something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 14:17:24 GMT</pubDate>
    <dc:creator>brendenr</dc:creator>
    <dc:date>2017-02-24T14:17:24Z</dc:date>
    <item>
      <title>Problem with field injection with Spring proxy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15208#M6731</link>
      <description>Hi, I am trying to use field injection on a JavaDelegate service and am having an issue with Spring where activiti is trying to get/set the field on the service object but Spring is proxying that object (via JdkDynamicAopProxy) and activiti can't find the field through the proxy.The XML for the serv</description>
      <pubDate>Wed, 22 Feb 2017 17:49:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15208#M6731</guid>
      <dc:creator>brendenr</dc:creator>
      <dc:date>2017-02-22T17:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field injection with Spring proxy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15209#M6732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;Brenden R&lt;/B&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you make a unit test to share? It's unclear why Proxy&amp;nbsp;&lt;SPAN&gt;was called instead of the CorrelationService service task. How do you configure and setup Activiti?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My unit test for injected fields on service task works as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thong Huynh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:34:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15209#M6732</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-02-24T07:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field injection with Spring proxy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15210#M6733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe it is being proxied as part of AoP in the Spring framework. Surely Activiti is compatible with Spring? Strangely enough, a unit test using a mocked rest object seems to not cause any problems, it's only when I run the full web application that the proxy issue is arising -- perhaps an artifact of the way Spring handles unit tests, I'm really not sure. Either way, this is a pretty basic Activiti use case that it seems hard to believe wouldn't be possible in conjunction with Spring. Maybe there is some kind of configuration issue or something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 14:17:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15210#M6733</guid>
      <dc:creator>brendenr</dc:creator>
      <dc:date>2017-02-24T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field injection with Spring proxy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15211#M6734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;Brenden R&lt;/B&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting! We have used Java service task's field injection in actual web applications deployed on application server and we haven't seen this issue. From your description, it seems that you are implementing Spring AOP in your application. That actually makes sense as it sort of matches to the error you're having.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;Field definition uses unexisting field 'correlationName' on class com.sun.proxy.$Proxy143] with root cause&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d;"&gt;Did your unit test include AOP parts as well? Perhaps you actually did create a proxy to intercept the java service task? Anyway, it's all wild guesses from me for now. It would be great if you can reproduce the issue within a unit test and share. If you use AOP, please try to include it to the unit test as well. Also, if you can share your beans.xml file, that would be useful as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d;"&gt;Thong&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d;"&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 16:24:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-field-injection-with-spring-proxy/m-p/15211#M6734</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-02-24T16:24:03Z</dc:date>
    </item>
  </channel>
</rss>

