<?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 Using ExpressionFactory in OSGI environment: org.activiti.engine.impl.juel.ExpressionFactoryImpl not found by ... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138866#M97337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using Activiti in OSGI environment and when executing a ServiceTask specified the following way I get an exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;serviceTask id="serviceTask" activiti:expression="#{TestBeanDelegate.doSomething()}" activiti:resultVariable="resultOfCall"/&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;and the exception is:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.impl.juel.ExpressionFactoryImpl not found by ourBundle [94]&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The exception comes from ExpressionFactory class while it tries to create a new instance. The reason is that in the newInstance() method it uses the Thread.currentThread().getContextClassLoader() which in this case is the classloader of the bundle that started the call. In our case that bundle does not know anything about the Activiti classes so the result is the exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a ReflectUtil class in Activiti that has all the necessary operations: but trying to load the class using the different available classloaders.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any reason why you are not using that helper class here? If it's only a coincidence it would be only a few lines of change in the code to make it more flexible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Orsi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 15:45:21 GMT</pubDate>
    <dc:creator>mebold</dc:creator>
    <dc:date>2013-04-25T15:45:21Z</dc:date>
    <item>
      <title>Using ExpressionFactory in OSGI environment: org.activiti.engine.impl.juel.ExpressionFactoryImpl not found by ...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138866#M97337</link>
      <description>I'm using Activiti in OSGI environment and when executing a ServiceTask specified the following way I get an exception:&amp;lt;serviceTask id="serviceTask" activiti:expression="#{TestBeanDelegate.doSomething()}" activiti:resultVariable="resultOfCall"/&amp;gt;‍‍and the exception is&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg.activiti.engine.impl.j</description>
      <pubDate>Thu, 25 Apr 2013 15:45:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138866#M97337</guid>
      <dc:creator>mebold</dc:creator>
      <dc:date>2013-04-25T15:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using ExpressionFactory in OSGI environment: org.activiti.engine.impl.juel.ExpressionFactoryImpl not found by ...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138867#M97338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Orsi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think ReflectUtil was introduced at a later point in time and this code should have been replaced by a call to that class. Could you create a JIRA issue for this and maybe add an example that shows this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 12:22:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138867#M97338</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-04-29T12:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using ExpressionFactory in OSGI environment: org.activiti.engine.impl.juel.ExpressionFactoryImpl not found by ...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138868#M97339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created the JIRA issue: &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1674" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1674&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;It took me some time to create an example but at the end it turned out that one of the basic examples fails because of the same exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've modified the ActivitiInAction book's osgi sample and used Karaf to test it, files are attached to the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Orsi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 17:00:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138868#M97339</guid>
      <dc:creator>mebold</dc:creator>
      <dc:date>2013-05-02T17:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using ExpressionFactory in OSGI environment: org.activiti.engine.impl.juel.ExpressionFactoryImpl not found by ...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138869#M97340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Orsi, will take a look at your patch as soon as I can.&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>Fri, 03 May 2013 12:34:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138869#M97340</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-05-03T12:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using ExpressionFactory in OSGI environment: org.activiti.engine.impl.juel.ExpressionFactoryImpl not found by ...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138870#M97341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using 5.12.1 and facing the same issue, is there a work around so that without even migrating to 5.13 we should be able to do the trick?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 11:52:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-expressionfactory-in-osgi-environment-org-activiti-engine/m-p/138870#M97341</guid>
      <dc:creator>rahulkrs</dc:creator>
      <dc:date>2013-07-17T11:52:21Z</dc:date>
    </item>
  </channel>
</rss>

