<?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: AS3 logging with Log4j</title>
	<atom:link href="http://nochump.com/blog/archives/24/feed" rel="self" type="application/rss+xml" />
	<link>http://nochump.com/blog/archives/24</link>
	<description>When you got the glow, you feel the one</description>
	<lastBuildDate>Thu, 13 May 2010 10:15:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mario</title>
		<link>http://nochump.com/blog/archives/24/comment-page-1#comment-4708</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Tue, 11 Sep 2007 11:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://nochump.com/blog/?p=24#comment-4708</guid>
		<description>Great, thanks for that, but sometimes (regularly) I get following error in the Java Console: 
&lt;code&gt;
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at org.apache.log4j.xml.XMLDecoder.parse(XMLDecoder.java:133)
	at org.apache.log4j.xml.XMLDecoder.decodeEvents(XMLDecoder.java:208)
	at org.apache.log4j.net.XMLSocketNode.run(XMLSocketNode.java:139)
	at java.lang.Thread.run(Unknown Source)
&lt;/code&gt;

I think the log message gets lost. What could be the reason for the problem?</description>
		<content:encoded><![CDATA[<p>Great, thanks for that, but sometimes (regularly) I get following error in the Java Console:<br />
<code><br />
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0) was found in the element content of the document.<br />
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)<br />
	at org.apache.log4j.xml.XMLDecoder.parse(XMLDecoder.java:133)<br />
	at org.apache.log4j.xml.XMLDecoder.decodeEvents(XMLDecoder.java:208)<br />
	at org.apache.log4j.net.XMLSocketNode.run(XMLSocketNode.java:139)<br />
	at java.lang.Thread.run(Unknown Source)<br />
</code></p>
<p>I think the log message gets lost. What could be the reason for the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PVM</title>
		<link>http://nochump.com/blog/archives/24/comment-page-1#comment-1502</link>
		<dc:creator>PVM</dc:creator>
		<pubDate>Thu, 21 Jun 2007 22:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://nochump.com/blog/?p=24#comment-1502</guid>
		<description>Great! - Thanks, been looking for something like this!</description>
		<content:encoded><![CDATA[<p>Great! &#8211; Thanks, been looking for something like this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Luck</title>
		<link>http://nochump.com/blog/archives/24/comment-page-1#comment-1453</link>
		<dc:creator>Kelvin Luck</dc:creator>
		<pubDate>Tue, 19 Jun 2007 13:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://nochump.com/blog/?p=24#comment-1453</guid>
		<description>Thanks for this - very useful :)

I had to make one change to be able to compile it into a Flex 2.0.1 project:

private const url:String = new LoaderInfo().url;

became:

private const url:String = (Application.application as Application).url;

I&#039;m not sure why your code wouldn&#039;t compile for me but I know that this Application trick doesn&#039;t work in an AS3 (as opposed to Flex) project though...</description>
		<content:encoded><![CDATA[<p>Thanks for this &#8211; very useful <img src='http://nochump.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I had to make one change to be able to compile it into a Flex 2.0.1 project:</p>
<p>private const url:String = new LoaderInfo().url;</p>
<p>became:</p>
<p>private const url:String = (Application.application as Application).url;</p>
<p>I&#8217;m not sure why your code wouldn&#8217;t compile for me but I know that this Application trick doesn&#8217;t work in an AS3 (as opposed to Flex) project though&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

