<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Morphic Group &#187; Java</title>
	<atom:link href="http://www.themorphicgroup.com/blog/category/technology/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.themorphicgroup.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 22 Feb 2010 18:20:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ant Compiling in Flex Builder &#8220;Error: Java heap space&#8221;</title>
		<link>http://www.themorphicgroup.com/blog/2009/07/10/compiling-using-ant-in-flex-builder-error-java-heap-space/</link>
		<comments>http://www.themorphicgroup.com/blog/2009/07/10/compiling-using-ant-in-flex-builder-error-java-heap-space/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 22:27:08 +0000</pubDate>
		<dc:creator>Unknown Morphician</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ant]]></category>

		<guid isPermaLink="false">http://www.themorphicgroup.com/blog/?p=186</guid>
		<description><![CDATA[This week, I wanted to use Ant to compile a large project with a couple external libraries. Right after a few seconds of running my build.xml using Ant, I received this ugly message: compile flex project: [mxmlc] Loading configuration file C:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\frameworks\flex-config.xml [mxmlc] Error: Java heap space [mxmlc] java.lang.OutOfMemoryError: Java heap space ...... [...]]]></description>
			<content:encoded><![CDATA[<p>This week, I wanted to use Ant to compile a large project with a couple external libraries. Right after a few seconds of running my build.xml using Ant, I received this ugly message:</p>
<p><em>compile flex project:<br />
[mxmlc] Loading configuration file C:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\frameworks\flex-config.xml<br />
[mxmlc] <strong>Error: Java heap space</strong><br />
[mxmlc] java.lang.OutOfMemoryError: Java heap space</em><br />
......<em><br />
</em></p>
<p><em>BUILD FAILED</em></p>
<p>Boooooo!</p>
<p>After consulting a couple of documents and search google, I found a solution that I decided to share. A lot of documentation states that you should change or add the environment variable ANT_OPTS to the particular size (Windows). This didn't work for me. The solution involves changing a particular property in Flex Builder. I really should thank Eric Fickes for <a href="http://ericfickes.com/2008/10/osx-flexbuilder-java-heap-space-error/" target="_blank">his blog</a> on this issue on Mac.  My solution is for Windows.</p>
<p>Go to Window --&gt; Preferences</p>
<p>From the menu select Java --&gt;Installed JREs</p>
<p><img class="alignnone size-full wp-image-187" title="screenshot1" src="http://www.themorphicgroup.com/blog/wp-content/uploads/2009/07/screenshot1.jpg" alt="screenshot1" width="600" height="412" /></p>
<p>Select the VM and click the edit button. In "Default VM Arguments" enter "-Xmx512m" without quotes. This value may vary as well as performance.</p>
<p><img class="alignnone size-full wp-image-188" title="screenshot2" src="http://www.themorphicgroup.com/blog/wp-content/uploads/2009/07/screenshot2.jpg" alt="screenshot2" width="400" height="456" /></p>
<p>Hopefully this makes your life a little easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themorphicgroup.com/blog/2009/07/10/compiling-using-ant-in-flex-builder-error-java-heap-space/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Google App Engine Text Datastore Object not Saving with AMF</title>
		<link>http://www.themorphicgroup.com/blog/2009/07/02/google-app-engine-text-datastore-object-not-saving-with-amf/</link>
		<comments>http://www.themorphicgroup.com/blog/2009/07/02/google-app-engine-text-datastore-object-not-saving-with-amf/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:01:43 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[AMF]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[granite ds]]></category>

		<guid isPermaLink="false">http://www.themorphicgroup.com/blog/?p=162</guid>
		<description><![CDATA[I've been working with creating a Flex app with Google App Engine and AMF based on Sekhar Ravinutala's blog post about using GraniteDS and the new Java framework for GAE. Everything was going smoothly until I needed to use a datastore Text object instead of a standard string property because a string can only contain 500 [...]]]></description>
			<content:encoded><![CDATA[<p>I've been working with creating a Flex app with Google App Engine and AMF based on Sekhar Ravinutala's blog <a href="http://blog.allurefx.com/2009/05/cloud-to-ria-accessing-google-app_26.html">post</a> about using GraniteDS and the new Java framework for GAE. Everything was going smoothly until I needed to use a datastore Text object instead of a standard string property because a string can only contain 500 characters. Anytime I would save my item class to the datastore the text property would always come back null on subsequent requests to retrieve the item from the database. Turns out all you have to do is add the following line above your text property's declaration like so:</p>
<p>@Persistent(defaultFetchGroup="true")<br />
Text description;</p>
<p>I was able to find this solution in a Google groups thread <a href="http://groups.google.com/group/google-appengine-java/msg/ac94665af70cf61a">here</a>. Apparently, for optimization reasons not all fields are retrieved when an object is requested from the database. With the line of code above, we force the description property to be retrieved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themorphicgroup.com/blog/2009/07/02/google-app-engine-text-datastore-object-not-saving-with-amf/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
