<?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 NPE on CamelBehavior createExchange in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/npe-on-camelbehavior-createexchange/m-p/203877#M157007</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;I've got a WARN in my log using camel 2.16.0-SNAPSHOT and activiti. I know, you're not there yet, but I've got an issue with 2.15.2 wich is resolved in 2.16.0, so…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem seems to come from the use of a DefaultExchange in CamelBehavior. That stuff: &lt;/SPAN&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;Exchange ex = new DefaultExchange(camelContextObj);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; (line 135) seems to generate an NPE, because it doesn't set the necessary properties on the exchange for the event to be notified correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've fork Activiti and replace it with&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;Exchange ex = endpoint.createExchange();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; and everything seems to work fine now. (including tests). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, in prevention of a futur issue/ npe warning, can you change the way the exchange is created? Do you want me to do a pull request with the modification?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 18:34:01 GMT</pubDate>
    <dc:creator>sdeschenes</dc:creator>
    <dc:date>2015-08-17T18:34:01Z</dc:date>
    <item>
      <title>NPE on CamelBehavior createExchange</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-on-camelbehavior-createexchange/m-p/203877#M157007</link>
      <description>Hi, I've got a WARN in my log using camel 2.16.0-SNAPSHOT and activiti. I know, you're not there yet, but I've got an issue with 2.15.2 wich is resolved in 2.16.0, so…The problem seems to come from the use of a DefaultExchange in CamelBehavior. That stuff: Exchange ex = new DefaultExchange(camelCont</description>
      <pubDate>Mon, 17 Aug 2015 18:34:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-on-camelbehavior-createexchange/m-p/203877#M157007</guid>
      <dc:creator>sdeschenes</dc:creator>
      <dc:date>2015-08-17T18:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: NPE on CamelBehavior createExchange</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-on-camelbehavior-createexchange/m-p/203878#M157008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, please create a pull request and we'll look into it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:10:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-on-camelbehavior-createexchange/m-p/203878#M157008</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-08-19T20:10:49Z</dc:date>
    </item>
  </channel>
</rss>

