<?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: Error running 5.12 unit tests with Java 7 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138303#M96895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Brian:&amp;nbsp; I completely agree with you. I've written down a blog post so people are aware: &lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2013/03/25/bug-on-jdk-1-7-0_17-when-using-scripttask-in-activiti/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2013/03/25/bug-on-jdk-1-7-0_17-when-using-scripttask-in-activiti/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to find out how to post a JDK bug. However, removing the 'implements Serializable' is something that I can't think that can be done by mistake.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 11:22:20 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2013-03-25T11:22:20Z</dc:date>
    <item>
      <title>Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138295#M96887</link>
      <description>Due to the issue with saving TaskEntry objects (originally mentioned here), we are currently using a forked and patched version of Activiti v5.11.&amp;nbsp; I wanted to upgrade to v5.12, so I was going to reapply my patch on top of the 5.12 tag and rebuild.&amp;nbsp; However, I've started getting an error running the</description>
      <pubDate>Tue, 19 Mar 2013 22:06:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138295#M96887</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-19T22:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138296#M96888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All of our QA runs on JDK 7, and we have only one JDK 6 build to verify: &lt;/SPAN&gt;&lt;A href="http://jenkins.alfresco.com:8080/jenkins/" rel="nofollow noopener noreferrer"&gt;http://jenkins.alfresco.com:8080/jenkins/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, when I run it locally with JDK 7 all tests are passing (obviously, or we wouldnt have released) … are you using sun jdk? What platform?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 10:02:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138296#M96888</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-20T10:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138297#M96889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Based on other posts that I had read, that's what I had thought about your test environment.&amp;nbsp; Part of what makes this so confusing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, it certainly appears that in at least some of the 1.7 implementations, Undefined doesn't implement Serializable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not using anything unusual for the JDK, just Oracle 1.7.0_17 JDK for x64 Windows.&amp;nbsp; I'm running on Windows 7.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 15:19:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138297#M96889</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-20T15:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138298#M96890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's another interesting finding.&amp;nbsp; When I execute the test using the 1.7.0_17 i586 (32-bit) JDK, the test passes.&amp;nbsp; So, it appears to me that the Activity build isn't compatible with the 64-bit Java 7 JDK (at least for Windows, I'm not sure about other OS builds).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, I have no idea why the implementation of the Undefined class would be different across JDK builds.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 00:04:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138298#M96890</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-21T00:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138299#M96891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, that's a pretty bizar find. I believe our QA is running Red Hat 64 bit. And our systems (OS X) are definitely 64 bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got no clue why the windows one would be different … let's hope it is a bug and it is fixed in a next release?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That said, I have no idea why the implementation of the Undefined class would be different across JDK builds.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed … that makes no sense….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Altough they are working on getting the new JS engine (Nashorn) into the JDK …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 11:29:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138299#M96891</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-21T11:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138300#M96892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What build number are you using?&amp;nbsp; I just tried with Oracle 1.7.0_17 (64-bit) build for OS X and I ran into the same issue.&amp;nbsp; Undefined doesn't implement Serializable, so the same test fails.&amp;nbsp; There is no 32-bit build for OS X, so I couldn't repeat that part of the scenario.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 22:20:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138300#M96892</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-21T22:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138301#M96893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What build number are you using?&amp;nbsp; I just tried with Oracle 1.7.0_17 (64-bit) build for OS X and I ran into the same issue.&amp;nbsp; Undefined doesn't implement Serializable, so the same test fails.&amp;nbsp; There is no 32-bit build for OS X, so I couldn't repeat that part of the scenario.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Hi brianshowers, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why ever appears sun.org.mozilla.javascript.internal.Undefined ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P. S Just my two cents: the described problem is not an activiti-problem but Oracle Bug &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 21:07:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138301#M96893</guid>
      <dc:creator>udoderk</dc:creator>
      <dc:date>2013-03-24T21:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138302#M96894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi udoderk,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the note!&amp;nbsp; The reason I bring this up here is because it comes into play if you use script blocks in your BPMN diagram such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;scriptTask id="script2" scriptFormat="JavaScript" activiti:autoStoreVariables="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;script&amp;gt;&amp;lt;![CDATA[&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sum = a + b;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]]&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use that functionality, Activiti tries to save the variable "sum" which is of type sun.org.mozilla.javascript.internal.Undefined.&amp;nbsp; The Activiti implementation counts on that class implementing Serializable.&amp;nbsp; If it does not, Activiti cannot save the variable and will throw a runtime exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This could very well be a bug in the JDK, but since getting Oracle to fix a bug is not a trivial (or quick) matter, I suspect that the Activiti implementation may need to be changed to work around that bug.&amp;nbsp; On the other hand, it's also possible that in the latest build of the JDK, the Serializable interface was removed on purpose, and it might never come back.&amp;nbsp; Either way, if Activiti is not compatible with particular builds of the JDK, that's something everyone should be aware of.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 01:54:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138302#M96894</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-25T01:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138303#M96895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Brian:&amp;nbsp; I completely agree with you. I've written down a blog post so people are aware: &lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2013/03/25/bug-on-jdk-1-7-0_17-when-using-scripttask-in-activiti/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2013/03/25/bug-on-jdk-1-7-0_17-when-using-scripttask-in-activiti/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to find out how to post a JDK bug. However, removing the 'implements Serializable' is something that I can't think that can be done by mistake.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 11:22:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138303#M96895</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-25T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138304#M96896</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;thank you for this example!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i assume, that this problem will be occured with last version of JDK&lt;/SPAN&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;SPAN&gt; for 32bit and 64bit machine &lt;/SPAN&gt;&lt;A href="http://download.oracle.com/otn-pub/java/jdk/6u43-b01/jdk-6u43-windows-i586.exe" rel="nofollow noopener noreferrer"&gt;jdk-6u43&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have downloaded this jdk, then installed it, and then look at jt.jar, located under&amp;nbsp; &amp;lt;jdk1.6.0_43 path&amp;gt;\jre\lib. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This version has no serialization too!&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;package sun.org.mozilla.javascript.internal;&lt;BR /&gt;&lt;BR /&gt;public class Undefined&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; public static final Object instance = new Undefined();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public Object readResolve()&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return instance;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;SPAN&gt;i have used jd-gui-0.3.3.windows to display this jar file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The jdk1.6.0_37 (32bit) has the Serializable Version of Undefined&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 13:26:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138304#M96896</guid>
      <dc:creator>udoderk</dc:creator>
      <dc:date>2013-03-25T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138305#M96897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm that sure doesn't sound good … &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how we could force the 'undefined' variable to be coerced to a valid java type without depending on an internal sun.org.xxx class..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it is time to switch to Rhino (&lt;/SPAN&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Rhino" rel="nofollow noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Rhino&lt;/A&gt;&lt;SPAN&gt;) as javascript impl for Activiti? The default JDK javascript support has always been wonky and unstable …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 13:56:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138305#M96897</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-25T13:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138306#M96898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Joram, thanks for the quick action.&amp;nbsp; I have to say that Activiti is, by far, the best open source community that I've worked with.&amp;nbsp; I'm extremely impressed with how quickly you follow up and take action.&amp;nbsp; Most communities tend to de-prioritize any bugs that don't impact their personal code paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, if there is a way for folks like me to get more involved as a committer, I'm always happy to provide back the fixes and investigations that we find.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 15:59:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138306#M96898</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-25T15:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138307#M96899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;@Joram, thanks for the quick action. I have to say that Activiti is, by far, the best open source community that I've worked with. I'm extremely impressed with how quickly you follow up and take action. Most communities tend to de-prioritize any bugs that don't impact their personal code paths.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That said, if there is a way for folks like me to get more involved as a committer, I'm always happy to provide back the fixes and investigations that we find.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;We're pretty liberal with committing stuff. The easiest is just creating a pull request on github. That way, it's very easy for us to incorporate any fixes people have made. If you need any directions with how to do that, let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But an investigation like the one you did in this thread is of course also a *very* valuable contribution!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That being said, we still don't have a solution for the jdk 1.7.0_17 problem (and apparently latest jdk 6 now too … ). We're really pondering what would be the best (long-term) solution for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 16:07:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138307#M96899</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-25T16:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138308#M96900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some updates: we discussed it this morning in the team and decided we're gonna make the auto storage of variables not the default anymore. If you want to store something, you need to explicitly call the setVariable method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For backwards compatibility, we'll keep the 'autoStoreVariables' property so people can set it to true if they really depend on it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 10:02:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138308#M96900</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-26T10:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138309#M96901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Won't the problem still exist if you try to save a variable of type Undefined?&amp;nbsp; It will be less prevalent since autoSaving will default to off, but I would think that any explicit save operation would result in the same stack trace.&amp;nbsp; Seems like you would also need to give the variables a specific type as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, I have to admit that we don't actually use script blocks in our diagrams, so I'm certainly no expert in that area.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 13:51:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138309#M96901</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-26T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138310#M96902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Won't the problem still exist if you try to save a variable of type Undefined? It will be less prevalent since autoSaving will default to off, but I would think that any explicit save operation would result in the same stack trace. Seems like you would also need to give the variables a specific type as well.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, when you do execution.setVariable(), the script engine will convert it to a Java type. However, the auto storage does not do that. And we can't do it either cause it are all internal classes of the JDK. So as long as you explicitely call setVariable, all is fine. Also note it is only needed for Javascript (groovy still works ok).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I adapted the default behavior and changed just now on master: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commit/5b1982e719e448b91f2c49d05afbd58f62683666" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/commit/5b1982e719e448b91f2c49d05afbd58f62683666&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 14:17:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138310#M96902</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-26T14:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error running 5.12 unit tests with Java 7</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138311#M96903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it.&amp;nbsp; Makes total sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:05:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-running-5-12-unit-tests-with-java-7/m-p/138311#M96903</guid>
      <dc:creator>brianshowers</dc:creator>
      <dc:date>2013-03-26T15:05:11Z</dc:date>
    </item>
  </channel>
</rss>

