<?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 ExceptionInInitializerError when attempting to create Unit Test in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exceptionininitializererror-when-attempting-to-create-unit-test/m-p/228407#M181537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The following code throws an java.lang.ExceptionInInitializerError exception on the first line of code within the test method.&amp;nbsp; Any suggestions on how to resolve this issue or direction is appreciated.&amp;nbsp; I verified that the class activitiRule instance is not null.&amp;nbsp; I also tested that the value returned from the getRuntimeService method doesn't result in null.&amp;nbsp; The problem appears to be when it calls the startProcessInstanceByKey method, the last line of the stack trace is: "at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.&amp;lt;init&amp;gt;(DefaultSingletonBeanRegistry.java:86)".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class MyUnitTest&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; @Rule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; public ActivitiRule activitiRule = new ActivitiRule();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; @Test&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; @Deployment( resources = {"VacationRequest.bpmn20.xml"} )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; public void test()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("vacationRequest");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertNotNull(processInstance);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Task task = activitiRule.getTaskService().createTaskQuery().singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertEquals( "Activiti is awesome", task.getName() );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2016 22:51:39 GMT</pubDate>
    <dc:creator>wesg</dc:creator>
    <dc:date>2016-08-31T22:51:39Z</dc:date>
    <item>
      <title>ExceptionInInitializerError when attempting to create Unit Test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptionininitializererror-when-attempting-to-create-unit-test/m-p/228407#M181537</link>
      <description>The following code throws an java.lang.ExceptionInInitializerError exception on the first line of code within the test method.&amp;nbsp; Any suggestions on how to resolve this issue or direction is appreciated.&amp;nbsp; I verified that the class activitiRule instance is not null.&amp;nbsp; I also tested that the value return</description>
      <pubDate>Wed, 31 Aug 2016 22:51:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptionininitializererror-when-attempting-to-create-unit-test/m-p/228407#M181537</guid>
      <dc:creator>wesg</dc:creator>
      <dc:date>2016-08-31T22:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: ExceptionInInitializerError when attempting to create Unit Test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptionininitializererror-when-attempting-to-create-unit-test/m-p/228408#M181538</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;could you create jUnit test and provide a link to git hub?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 05:42:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptionininitializererror-when-attempting-to-create-unit-test/m-p/228408#M181538</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-09-01T05:42:51Z</dc:date>
    </item>
  </channel>
</rss>

