<?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 IllegalAccessException using the activiti-context.xml file inside a cdi context in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/illegalaccessexception-using-the-activiti-context-xml-file/m-p/214091#M167221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have found a bug using the activiti-context.xml file inside a cdi environmnent. Adding this file in the resources of the application I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.IllegalAccessException: Class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.ProcessEngines can not access a member of class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.spring.SpringConfigurationHelper with modifiers "public&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed we cannot use the reflection to call the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SpringConfigurationHelper because the class is protected through the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;default access modifier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To resolve the problem you can set to public the org.activiti.spring.SpringConfigurationHelper&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class SpringConfigurationHelper&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class SpringConfigurationHelper&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I sent a pull request in github: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/747" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/747&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Nov 2015 09:13:46 GMT</pubDate>
    <dc:creator>luca_stancapian</dc:creator>
    <dc:date>2015-11-28T09:13:46Z</dc:date>
    <item>
      <title>IllegalAccessException using the activiti-context.xml file inside a cdi context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/illegalaccessexception-using-the-activiti-context-xml-file/m-p/214091#M167221</link>
      <description>I have found a bug using the activiti-context.xml file inside a cdi environmnent. Adding this file in the resources of the application Ihave this exception:Caused by: java.lang.IllegalAccessException: Classorg.activiti.engine.ProcessEngines can not access a member of classorg.activiti.spring.SpringC</description>
      <pubDate>Sat, 28 Nov 2015 09:13:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/illegalaccessexception-using-the-activiti-context-xml-file/m-p/214091#M167221</guid>
      <dc:creator>luca_stancapian</dc:creator>
      <dc:date>2015-11-28T09:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalAccessException using the activiti-context.xml file inside a cdi context</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/illegalaccessexception-using-the-activiti-context-xml-file/m-p/214092#M167222</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;BR /&gt;&lt;SPAN&gt;Ok thanks, I've added a question about a unit test to the pull request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 07:38:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/illegalaccessexception-using-the-activiti-context-xml-file/m-p/214092#M167222</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-11-30T07:38:15Z</dc:date>
    </item>
  </channel>
</rss>

