<?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 java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202050#M155180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration to instantiate processEngineConfiguration bean for unit testing purposes. But after upgrade to activiti 5.17.0 i got the ClassCastException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my activiti.cfg.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean name="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like in activiti-spring sources there used to be a condition &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngineFactoryBean.java&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (processEngineConfiguration instanceof SpringProcessEngineConfiguration) { // remark: any config can be injected, so we cannot have SpringConfiguration as member&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; SpringProcessEngineConfiguration engineConfiguration = (SpringProcessEngineConfiguration) processEngineConfiguration;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now the configuration is always cast &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QUESTION: Is there a valid way to instantiate the in memory configuration with StandaloneInMemProcessEngineConfiguration?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 10:24:11 GMT</pubDate>
    <dc:creator>olegv</dc:creator>
    <dc:date>2015-02-17T10:24:11Z</dc:date>
    <item>
      <title>java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202050#M155180</link>
      <description>I am using org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration to instantiate processEngineConfiguration bean for unit testing purposes. But after upgrade to activiti 5.17.0 i got the ClassCastException.Here is my activiti.cfg.xml&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean name="processEngineConfiguration" clas</description>
      <pubDate>Tue, 17 Feb 2015 10:24:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202050#M155180</guid>
      <dc:creator>olegv</dc:creator>
      <dc:date>2015-02-17T10:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202051#M155181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems to be related to &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/519" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/519&lt;/A&gt;&lt;SPAN&gt; ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 16:25:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202051#M155181</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-18T16:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202052#M155182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, it is the same! Just curious is this going to be released soon? 5.17.1? Or it makes sense to look for a workaround?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 17:39:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202052#M155182</guid>
      <dc:creator>olegv</dc:creator>
      <dc:date>2015-02-18T17:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202053#M155183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Most likely we'll have a 5.18, but not soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workaround is to create your own Configuration class now, which isn't that hard, and use the fixed one in a new release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2015 08:17:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202053#M155183</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-28T08:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202054#M155184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When is 5.18 going to be released?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 22:16:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202054#M155184</guid>
      <dc:creator>cirerenat</dc:creator>
      <dc:date>2015-06-12T22:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202055#M155185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We've planned it for July. Needs some big commits first before we can wrap up this (big) release&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 09:06:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202055#M155185</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-06-16T09:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202056#M155186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a roadmap for this and other releases?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 20:12:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202056#M155186</guid>
      <dc:creator>keymaster</dc:creator>
      <dc:date>2015-07-08T20:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassCastException: StandaloneInMemProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202057#M155187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;5.18 is still planned for the end of this month.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that, we'll work on v6 and port fixes to v5. More info about v6 -&amp;gt; &lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2015/06/18/activiti-6-launch/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2015/06/18/activiti-6-launch/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:41:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-lang-classcastexception/m-p/202057#M155187</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-07-14T19:41:33Z</dc:date>
    </item>
  </channel>
</rss>

