<?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>KYRIAKOS ANASTASAKIS - ΚΥΡΙΑΚΟΣ ΑΝΑΣΤΑΣΑΚΗΣ &#187; UML2Alloy</title>
	<atom:link href="http://kyriakos.anastasakis.net/category/uml2alloy/feed/" rel="self" type="application/rss+xml" />
	<link>http://kyriakos.anastasakis.net</link>
	<description></description>
	<lastBuildDate>Wed, 14 Oct 2009 20:03:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exception using XMLConfiguration</title>
		<link>http://kyriakos.anastasakis.net/2009/02/23/exception-using-xmlconfiguration/</link>
		<comments>http://kyriakos.anastasakis.net/2009/02/23/exception-using-xmlconfiguration/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 14:01:36 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[UML2Alloy]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/?p=157</guid>
		<description><![CDATA[I tried using the Apache XMLConfiguration to save the settings of an application I am developing to XML format. When I used it with Java 1.5 it all worked perfectly; however if I tried using it with Java 1.6 I was getting the following exception.

Exception in thread "main" java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown [...]]]></description>
			<content:encoded><![CDATA[<p>I tried using the <a href="http://commons.apache.org/configuration/" target="_blank">Apache XMLConfiguration</a> to save the settings of an application I am developing to XML format. When I used it with Java 1.5 it all worked perfectly; however if I tried using it with Java 1.6 I was getting the following exception.</p>
<p><span style="font-family: Courier; font-size:small;"><code><br />
Exception in thread "main" java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)<br />
at org.apache.commons.configuration.XMLConfiguration.save(XMLConfiguration.java:880)<br />
at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration$FileConfigurationDelegate.save(AbstractHierarchicalFileConfiguration.java:454)<br />
at org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:546)<br />
at org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:513)<br />
at org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:491)<br />
at org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:403)<br />
at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.save(AbstractHierarchicalFileConfiguration.java:199)<br />
</code></span></p>
<p>After doing some search on google I found that this can be a problem with the xerces XML library (xercesImpl.jar). Checking the 3rd party libraries I am using in my project, I found a library that was using and distributing an earlier version of xercesImpl.jar.</p>
<p>I downloaded the latest version (2.91) of xercesImpl.jar from the Apache xerces project (<a href="http://xerces.apache.org/mirrors.cgi#binary" target="_blank">http://xerces.apache.org/mirrors.cgi#binary</a>) and replaced in the 3rd party library I was using the xercesImpl.jar file with the one I downloaded. Now everything seems to work fine, even in Java 1.6.  <img src='http://kyriakos.anastasakis.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2009/02/23/exception-using-xmlconfiguration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
