<?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: Karaf 2.2.7 ClassNotFound Exception in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82939#M55648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the source code for book-osgi-app and deployed it to karaf. It looks fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the bundle was first deployed, the setter method is called by injecting the object. But when the process is started, it fails with NullPointerException. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I could think of if making the variable to Class level by declaring it as &lt;/SPAN&gt;&lt;STRONG&gt;static&lt;/STRONG&gt;&lt;SPAN&gt;. If I make that variable as static, then it works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the activiti engine is calling the JavaDelegate by creating a new instance. I don't know how to let activiti engine to use the already exisiting object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2012 17:31:08 GMT</pubDate>
    <dc:creator>rajsenthil</dc:creator>
    <dc:date>2012-06-12T17:31:08Z</dc:date>
    <item>
      <title>Karaf 2.2.7 ClassNotFound Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82936#M55645</link>
      <description>Hi, I have a simple process with a single task as&amp;nbsp; (1)Start==&amp;gt;(2)Hello Service Task==&amp;gt;(3)End.The service task is a JavaDelegation class that is trying to refer an object exposed in another bundle. This object is referred inside the beans.xml below as helloService and I am getting the NullPoint</description>
      <pubDate>Fri, 08 Jun 2012 20:47:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82936#M55645</guid>
      <dc:creator>rajsenthil</dc:creator>
      <dc:date>2012-06-08T20:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Karaf 2.2.7 ClassNotFound Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82937#M55646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The task code is below…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class HelloWorldTask implements JavaDelegate {&lt;BR /&gt; &lt;BR /&gt; private HelloService helloService;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void execute(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityExecution ae = (ActivityExecution) execution;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.printf("\n*** Executing Service Task… Execution Id:[%s] Activity: %s[%s]\n",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ae.getId(), ae.getActivity().getId(), ae.getActivity().getProperty("name"));&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("Ok now going to make a call….");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("Return from the service is… " + helloService.sayHello());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt; public void setHelloService(HelloService helloService) {&lt;BR /&gt;&amp;nbsp; this.helloService = helloService;&lt;BR /&gt; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 20:48:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82937#M55646</guid>
      <dc:creator>rajsenthil</dc:creator>
      <dc:date>2012-06-08T20:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Karaf 2.2.7 ClassNotFound Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82938#M55647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try the Karaf example of my Activiti in Action book first?&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>Tue, 12 Jun 2012 14:24:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82938#M55647</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-06-12T14:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Karaf 2.2.7 ClassNotFound Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82939#M55648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the source code for book-osgi-app and deployed it to karaf. It looks fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the bundle was first deployed, the setter method is called by injecting the object. But when the process is started, it fails with NullPointerException. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I could think of if making the variable to Class level by declaring it as &lt;/SPAN&gt;&lt;STRONG&gt;static&lt;/STRONG&gt;&lt;SPAN&gt;. If I make that variable as static, then it works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the activiti engine is calling the JavaDelegate by creating a new instance. I don't know how to let activiti engine to use the already exisiting object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 17:31:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/karaf-2-2-7-classnotfound-exception/m-p/82939#M55648</guid>
      <dc:creator>rajsenthil</dc:creator>
      <dc:date>2012-06-12T17:31:08Z</dc:date>
    </item>
  </channel>
</rss>

