commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pilar <pcsobr...@udc.es>
Subject [configuration] AbstractMethodError trying to save XML
Date Fri, 23 May 2008 12:02:09 GMT

Hi, I've got this exception message while I'm trying to execute these piece
of code:

        xml_config = new XMLConfiguration();
        
        xml_config.setRootElementName("Ship");
        
        xml_config.setProperty("Class", ship.getClass().getName());
        xml_config.setProperty("WaterDensity", ship.getWaterDensity());
        xml_config.setProperty("CompLenght", ship.getCompLength());
        
        
        xml_config.save(new File(file_name));



Caused by: java.lang.AbstractMethodError:
gnu.xml.dom.DomDocument.getXmlStandalone()Z
        at
com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:662)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
        at
org.apache.commons.configuration.XMLConfiguration.save(XMLConfiguration.java:713)
        at
org.apache.commons.configuration.AbstractHierarchicalFileConfiguration$FileConfigurationDelegate.save(AbstractHierarchicalFileConfiguration.java:448)
        at
org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:544)
        at
org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:511)
        at
org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:489)
        at
org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.save(AbstractHierarchicalFileConfiguration.java:204)
        at
es.udc.gii.gif.soft_naval.model.shipfacade.ShipFacadeDelegate.saveShipToXMLFile(ShipFacadeDelegate.java:252)
        at
gui_soft_naval.Gui_soft_navalView.saveProject(Gui_soft_navalView.java:95)


Does anybody know which is my error? :S I read something about xerces.jar
and jdk 1.6...

Regards, Pilar
-- 
View this message in context: http://www.nabble.com/-configuration--AbstractMethodError-trying-to-save-XML-tp17424152p17424152.html
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message