<?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: NPE Blueprint initializing BlueprintExpressionManager in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121798#M85802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The example of the Activiti in Action book shows the use of the OSGi module on Apache Karaf as you know. This issue seems to be specific to JBoss 7. The workaround you are proposing now is not something that we should make the default in Activiti to my opinion. There should be a better solution I hope.&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, 31 May 2013 12:34:52 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2013-05-31T12:34:52Z</dc:date>
    <item>
      <title>NPE Blueprint initializing BlueprintExpressionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121795#M85799</link>
      <description>Hi everybody,I am trying to get Activiti running as OSGi-bundle on JBoss AS 7.1.1 and the ExpressionFactoryImpl throws a NPE when trying to access the el.properties.The server uses OSGi 4.2 and Apache Aries 1.0.0.Here's the stacktrace:Caused by: java.lang.NullPointerException&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engin</description>
      <pubDate>Tue, 28 May 2013 16:17:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121795#M85799</guid>
      <dc:creator>ronnybr</dc:creator>
      <dc:date>2013-05-28T16:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: NPE Blueprint initializing BlueprintExpressionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121796#M85800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I forgot to mention that I use Activiti 5.12.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 17:16:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121796#M85800</guid>
      <dc:creator>ronnybr</dc:creator>
      <dc:date>2013-05-28T17:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: NPE Blueprint initializing BlueprintExpressionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121797#M85801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found out, what the problem was.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The ExpressionFactoryImpl uses the TCCL to get the el.properties. The problem was, that there was no classloader associated with the thread and that's why I got a NPE in this line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; input = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if anyone else uses Activiti as bundle and why the TCCL in my environment was null, but I would like to suggest a change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The line above is part of the activiti-engine and in my opinion the engine shouldn't be changed because of an OSGi-issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to change the init() in org.activiti.osgi.blueprint.ProcessEngineFactoryWithELResolver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My workaround atm looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public void init() throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngineConfigurationImpl configImpl = (ProcessEngineConfigurationImpl) getProcessEngineConfiguration();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClassLoader oldTccl = Thread.currentThread().getContextClassLoader();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; configImpl.setExpressionManager(new BlueprintExpressionManager());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }catch(Exception e){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }finally{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.currentThread().setContextClassLoader(oldTccl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know my exception-handling is bad style &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I still get other exceptions, but I am working on it. So please consider this a first suggestion and tell me your opinion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 05:55:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121797#M85801</guid>
      <dc:creator>ronnybr</dc:creator>
      <dc:date>2013-05-31T05:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: NPE Blueprint initializing BlueprintExpressionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121798#M85802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The example of the Activiti in Action book shows the use of the OSGi module on Apache Karaf as you know. This issue seems to be specific to JBoss 7. The workaround you are proposing now is not something that we should make the default in Activiti to my opinion. There should be a better solution I hope.&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, 31 May 2013 12:34:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121798#M85802</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-05-31T12:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: NPE Blueprint initializing BlueprintExpressionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121799#M85803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You were right Tijs, it's not an Activiti but a JBoss issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please don't ask me how and why, but when using JBoss 7.2 everything works fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 12:31:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-blueprint-initializing-blueprintexpressionmanager/m-p/121799#M85803</guid>
      <dc:creator>ronnybr</dc:creator>
      <dc:date>2013-06-03T12:31:12Z</dc:date>
    </item>
  </channel>
</rss>

