<?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: Resource not found exception in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31365#M16215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;Classpath-resource is relative to the classpath, not the filesystem. Use:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; addInputStream("xxx",new FileInputStream(new File("C:/xxx.bpmn20.xml"))&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;hi, how can I make the classpath available? should I configure the system classpath??&lt;BR /&gt;&lt;BR /&gt;BR~&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yep,I got it work. what I have to do is to put the bpmn20.xml file somewhere defined in the .classpath file~hah hah~ I don't know if it is legal, at least it works.~ :lol:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 08:27:31 GMT</pubDate>
    <dc:creator>wiwengweng</dc:creator>
    <dc:date>2011-09-16T08:27:31Z</dc:date>
    <item>
      <title>Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31360#M16210</link>
      <description>Hi,I programmed the example given in documentation (10 minute tutorial). But an exception occured, i do not know how to solve it:The exception occured at this position&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rogramcode:// Deploy the process definition&amp;nbsp;&amp;nbsp;&amp;nbsp; repositoryService.createDeployment()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addClasspathResource("C:\\FinancialReport</description>
      <pubDate>Tue, 05 Apr 2011 08:04:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31360#M16210</guid>
      <dc:creator>arno1</dc:creator>
      <dc:date>2011-04-05T08:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31361#M16211</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;SPAN&gt;Classpath-resource is relative to the classpath, not the filesystem. Use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; addInputStream("xxx",new FileInputStream(new File("C:/xxx.bpmn20.xml"))&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 08:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31361#M16211</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-05T08:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31362#M16212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the advice, it works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 12:33:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31362#M16212</guid>
      <dc:creator>arno1</dc:creator>
      <dc:date>2011-04-05T12:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31363#M16213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wonder if I could use "org.activiti.examples/…/..bpmn20.xml" instead?? &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'cause the file path's so long…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 11:19:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31363#M16213</guid>
      <dc:creator>wiwengweng</dc:creator>
      <dc:date>2011-09-14T11:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31364#M16214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;Classpath-resource is relative to the classpath, not the filesystem. Use:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; addInputStream("xxx",new FileInputStream(new File("C:/xxx.bpmn20.xml"))&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;hi, how can I make the classpath available? should I configure the system classpath??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR~&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 08:07:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31364#M16214</guid>
      <dc:creator>wiwengweng</dc:creator>
      <dc:date>2011-09-16T08:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31365#M16215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;Classpath-resource is relative to the classpath, not the filesystem. Use:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; addInputStream("xxx",new FileInputStream(new File("C:/xxx.bpmn20.xml"))&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;hi, how can I make the classpath available? should I configure the system classpath??&lt;BR /&gt;&lt;BR /&gt;BR~&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yep,I got it work. what I have to do is to put the bpmn20.xml file somewhere defined in the .classpath file~hah hah~ I don't know if it is legal, at least it works.~ :lol:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 08:27:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31365#M16215</guid>
      <dc:creator>wiwengweng</dc:creator>
      <dc:date>2011-09-16T08:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31366#M16216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the same problem. Where do I find the classpath?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 15:07:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31366#M16216</guid>
      <dc:creator>koopa1</dc:creator>
      <dc:date>2012-05-02T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31367#M16217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having the same problem. Where do I find the classpath?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;As I had the same issues while creating a unit test I'll post my solutions here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The root directory of the eclipse project contains a .classpath file which is hidden by default in eclipse. On opening this file this should look something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;classpath&amp;gt;&lt;BR /&gt; &amp;lt;classpathentry kind="src" output="target/classes" path="src/main/java"/&amp;gt;&lt;BR /&gt; &amp;lt;classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/&amp;gt;&lt;BR /&gt; &amp;lt;classpathentry kind="src" output="target/test-classes" path="src/test/java"/&amp;gt;&lt;BR /&gt; &amp;lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/&amp;gt;&lt;BR /&gt; &amp;lt;classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/&amp;gt;&lt;BR /&gt; &amp;lt;classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Activiti Designer Extensions"/&amp;gt;&lt;BR /&gt; &amp;lt;classpathentry kind="output" path="target/classes"/&amp;gt;&lt;BR /&gt;&amp;lt;/classpath&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;As the structure of this project contains a tree like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;project base&lt;BR /&gt; |-src/main/java&lt;BR /&gt; |-src/main/resources&lt;BR /&gt; |-src/test/java&lt;BR /&gt; |-target&lt;BR /&gt; …&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;well see that src/main/resources is already in the .classpath. So the following code snippet will load a PaymentProcess definition into the Activiti engine, which Activiti Designer created in a diagrams&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sub-directory of resources for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;// deploy the process definition&lt;BR /&gt;DeploymentBuilder builder = repositoryService.createDeployment();&lt;BR /&gt;builder.addClasspathResource("diagrams/PaymentProcess.bpmn20.xml");&lt;BR /&gt;builder.deploy();&lt;BR /&gt;// use the id of the root-process defined in the definition - PaymentProcess in my case&lt;BR /&gt;ProcessInstance proc = runtimeService.startProcessInstanceByKey("PaymentProcess");&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative way would be to define an InputStream:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;DeploymentBuilder builder = repositoryService.createDeployment();&lt;BR /&gt;builder.addInputStream("PaymentProcess.bpmn20.xml", new FileInputStream(System.getProperty("user.dir")+"/src/main/resources/diagrams/PaymentProcess.bpmn20.xml"));&lt;BR /&gt;builder.deploy();&lt;BR /&gt;// use the id of the root-process defined in the definition - PaymentProcess in my case&lt;BR /&gt;ProcessInstance proc = runtimeService.startProcessInstanceByKey("PaymentProcess");&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;HTH,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roman&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 18:14:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31367#M16217</guid>
      <dc:creator>rovo</dc:creator>
      <dc:date>2012-05-21T18:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Resource not found exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31368#M16218</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 am using Alfresco Activiti and want to initiate a task outside of alfresco activiti. I have written a standalone java program to do this(i.e my java program creates a task in alfresco activiti on execution). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My java program looks like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.ProcessEngine;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.ProcessEngineConfiguration;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.RepositoryService;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.RuntimeService;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.TaskService;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.runtime.ProcessInstance;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.task.Task;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class TestingABC {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; public static void main(String[] args) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; //Create Activiti process engine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngine processEngine = ProcessEngineConfiguration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createStandaloneInMemProcessEngineConfiguration()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get Activiti services&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RepositoryService repositoryService = processEngine.getRepositoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RuntimeService runtimeService = processEngine.getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Deploy the process definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repositoryService.createDeployment()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addClasspathResource("diagram/TestingThruActiviti.bpmn20.xml")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Start a process instance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance processInstance=runtimeService.startProcessInstanceByKey("TestingThruActiviti");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskService taskService=processEngine.getTaskService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Task task=taskService.createTaskQuery().taskAssignee("$INITIATOR").singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System.out.println(task.getName());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The program runs fine as long as my taskAssignee is "$INITIATOR", but when I change my taskAssignee to a real user in alfresco activiti, it throws a null pointer exception. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "main" java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at TestingABC.main(TestingABC.java:34)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:31:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resource-not-found-exception/m-p/31368#M16218</guid>
      <dc:creator>sunitanayak83</dc:creator>
      <dc:date>2016-01-20T23:31:00Z</dc:date>
    </item>
  </channel>
</rss>

