<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Flerry: Flex-Java bridge for Adobe AIR 2.0</title>
	<atom:link href="http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/</link>
	<description>Beyond Plain Old Html Objects</description>
	<lastBuildDate>Tue, 27 Jul 2010 09:06:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: pizzaman</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2476</link>
		<dc:creator>pizzaman</dc:creator>
		<pubDate>Tue, 27 Jul 2010 09:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2476</guid>
		<description>I find your demo has a error. I have changed it. 			protected function ativeObject_faultHandler(event:FaultEvent):void
{				 Alert.show(event.fault.faultDetail);
}</description>
		<content:encoded><![CDATA[<p>I find your demo has a error. I have changed it. 			protected function ativeObject_faultHandler(event:FaultEvent):void<br />
{				 Alert.show(event.fault.faultDetail);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FIlipe</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2447</link>
		<dc:creator>FIlipe</dc:creator>
		<pubDate>Thu, 22 Jul 2010 08:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2447</guid>
		<description>Hi 
First of all Great Work :).
I&#039;m having a hard time trying to execute an Air application after it was installed using a native instaler that i&#039;ve built.
I got the following message:
 could not find the main class: net.riaspace.flerry.NativeObject.
Program will exit

Any ideias on that?
Thanks</description>
		<content:encoded><![CDATA[<p>Hi<br />
First of all Great Work <img src='http://www.riaspace.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br />
I&#8217;m having a hard time trying to execute an Air application after it was installed using a native instaler that i&#8217;ve built.<br />
I got the following message:<br />
 could not find the main class: net.riaspace.flerry.NativeObject.<br />
Program will exit</p>
<p>Any ideias on that?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NAZ</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2433</link>
		<dc:creator>NAZ</dc:creator>
		<pubDate>Mon, 19 Jul 2010 10:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2433</guid>
		<description>Hello 

I&#039;m following this basic demo.. and i get  

Error #2006: The supplied index is out of bounds.
at flash.utils::ByteArray/readObject()
at net.riaspace.flerry::NativeObject/onErrorData()[/Users/npulido/Documents/Adobe Flash Builder 4/DockTest/src/net/riaspace/flerry/NativeObject.as:140]

Everything is just the same.. does it have to be with my Java version, i&#039;m using 1.5..</description>
		<content:encoded><![CDATA[<p>Hello </p>
<p>I&#8217;m following this basic demo.. and i get  </p>
<p>Error #2006: The supplied index is out of bounds.<br />
at flash.utils::ByteArray/readObject()<br />
at net.riaspace.flerry::NativeObject/onErrorData()[/Users/npulido/Documents/Adobe Flash Builder 4/DockTest/src/net/riaspace/flerry/NativeObject.as:140]</p>
<p>Everything is just the same.. does it have to be with my Java version, i&#8217;m using 1.5..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex learner &#124; Blog &#124; Flerry: Flex-Java bridge for Adobe AIR 2.0 &#124; Space of Flex/AIR ...</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2425</link>
		<dc:creator>Flex learner &#124; Blog &#124; Flerry: Flex-Java bridge for Adobe AIR 2.0 &#124; Space of Flex/AIR ...</dc:creator>
		<pubDate>Sat, 17 Jul 2010 20:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2425</guid>
		<description>[...] Link: Flerry: Flex-Java bridge for Adobe AIR 2.0 &#124; Space of Flex/AIR &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] Link: Flerry: Flex-Java bridge for Adobe AIR 2.0 | Space of Flex/AIR &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flerry 1.1.1 released supporting large objects transfer &#124; Space of Flex/AIR technologies</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2398</link>
		<dc:creator>Flerry 1.1.1 released supporting large objects transfer &#124; Space of Flex/AIR technologies</dc:creator>
		<pubDate>Mon, 05 Jul 2010 14:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2398</guid>
		<description>[...] Flerry go ahead and download flerry and flerry-demo projects. You can also find my previous posts (Post 1 &#124; Post 2) [...]</description>
		<content:encoded><![CDATA[<p>[...] Flerry go ahead and download flerry and flerry-demo projects. You can also find my previous posts (Post 1 | Post 2) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flerry 1.1.1 released supporting large objects transfer &#124; Space of Flex/AIR technologies</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2399</link>
		<dc:creator>Flerry 1.1.1 released supporting large objects transfer &#124; Space of Flex/AIR technologies</dc:creator>
		<pubDate>Mon, 05 Jul 2010 14:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2399</guid>
		<description>[...] Flerry go ahead and download flerry and flerry-demo projects. You can also find my previous posts (Post 1 &#124; Post 2) [...]</description>
		<content:encoded><![CDATA[<p>[...] Flerry go ahead and download flerry and flerry-demo projects. You can also find my previous posts (Post 1 | Post 2) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammed</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2397</link>
		<dc:creator>Mohammed</dc:creator>
		<pubDate>Mon, 05 Jul 2010 08:12:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2397</guid>
		<description>Hello Pizzaman ,

onOutputData should not catch any errors, that is correct

the correct way is to add EventListener that listens to your events including error events 

example:
nativeProcess.addEventListener(IOErrorEvent.STANDARD_INPUT_IO_ERROR, ioError);
			nativeProcess.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, ioError);
			nativeProcess.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR, ioError); 


protected function ioError(event:IOErrorEvent):void
		{
			//do anything u like with the error
		}

Hope this helps
Mohammed</description>
		<content:encoded><![CDATA[<p>Hello Pizzaman ,</p>
<p>onOutputData should not catch any errors, that is correct</p>
<p>the correct way is to add EventListener that listens to your events including error events </p>
<p>example:<br />
nativeProcess.addEventListener(IOErrorEvent.STANDARD_INPUT_IO_ERROR, ioError);<br />
			nativeProcess.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, ioError);<br />
			nativeProcess.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR, ioError); </p>
<p>protected function ioError(event:IOErrorEvent):void<br />
		{<br />
			//do anything u like with the error<br />
		}</p>
<p>Hope this helps<br />
Mohammed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pizzaman</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2393</link>
		<dc:creator>Pizzaman</dc:creator>
		<pubDate>Fri, 02 Jul 2010 03:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2393</guid>
		<description>Hi Mohammed 
After my abnormal test the error appear once again.
this&#039;s my solution
I change onOutputData and onErrorData functions, catch message error
try{
	var message:ErrorMessage = buffer.readObject() as ErrorMessage;
}catch(err:Error){
	trace(buffer.readUTFBytes(buffer.bytesAvailable));
}</description>
		<content:encoded><![CDATA[<p>Hi Mohammed<br />
After my abnormal test the error appear once again.<br />
this&#8217;s my solution<br />
I change onOutputData and onErrorData functions, catch message error<br />
try{<br />
	var message:ErrorMessage = buffer.readObject() as ErrorMessage;<br />
}catch(err:Error){<br />
	trace(buffer.readUTFBytes(buffer.bytesAvailable));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammed</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2389</link>
		<dc:creator>Mohammed</dc:creator>
		<pubDate>Thu, 01 Jul 2010 07:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2389</guid>
		<description>BUG finally Fixed

Hello Piotr thanks for the framework, really nice piece of code.

There is a title bug that I managed to fix, and I would like to share the solution with everybody here. 

the onOutputData(event:ProgressEvent) method can NOT Handel BIG objects, because the nativeProcess.standardOutput has a limited buffer. If the serialized coming object from Java is small enough to fit the buffer we have no problem. but if the coming object is big, then boom. We will get some nasty errors &quot;I almost pull my hair off&quot;.  Hehe 

The solution is to collect all the bytes from multi onOutputData calls and compose the AMF object at the end.

Here is my code
http://uploading.com/files/mm7ff254/code.zip/

Cheers 
Mohammed</description>
		<content:encoded><![CDATA[<p>BUG finally Fixed</p>
<p>Hello Piotr thanks for the framework, really nice piece of code.</p>
<p>There is a title bug that I managed to fix, and I would like to share the solution with everybody here. </p>
<p>the onOutputData(event:ProgressEvent) method can NOT Handel BIG objects, because the nativeProcess.standardOutput has a limited buffer. If the serialized coming object from Java is small enough to fit the buffer we have no problem. but if the coming object is big, then boom. We will get some nasty errors &#8220;I almost pull my hair off&#8221;.  Hehe </p>
<p>The solution is to collect all the bytes from multi onOutputData calls and compose the AMF object at the end.</p>
<p>Here is my code<br />
<a href="http://uploading.com/files/mm7ff254/code.zip/" rel="nofollow">http://uploading.com/files/mm7ff254/code.zip/</a></p>
<p>Cheers<br />
Mohammed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flerry 1.1.0 released with a two-way Flex-Java communication &#124; Space of Flex/AIR technologies</title>
		<link>http://www.riaspace.com/2010/01/flerry-flex-java-bridge-for-adobe-air-2-0/comment-page-2/#comment-2378</link>
		<dc:creator>Flerry 1.1.0 released with a two-way Flex-Java communication &#124; Space of Flex/AIR technologies</dc:creator>
		<pubDate>Wed, 30 Jun 2010 09:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.riaspace.net/?p=973#comment-2378</guid>
		<description>[...] that Flerry 1.1.0 was released! For those of you that don&#8217;t know what is Flerry, it&#8217;s a Flex-Java bridge for Adobe AIR 2.0. This new release brings possibility to call/initiate communication from Java to Flex/AS3 code. [...]</description>
		<content:encoded><![CDATA[<p>[...] that Flerry 1.1.0 was released! For those of you that don&#8217;t know what is Flerry, it&#8217;s a Flex-Java bridge for Adobe AIR 2.0. This new release brings possibility to call/initiate communication from Java to Flex/AS3 code. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
