Mantis - Resin
Viewing Issue Advanced Details
284 minor always 06-24-05 00:00 12-06-05 10:27
user266  
 
normal  
closed 2.1.x  
2.1.x fixed  
none    
none 3.0.16  
0000284: problem fro "Properties.loadFromXML(InputStream)" under 2.1.16 resin
RSN-323
i use the properties.loadFromXML(InputStream) can load the XML document to
a properties(Properties class),
bug i use this under resin 2.1.x is error.(null exception)

i think because resin overloading JDK parse XML Class.

please try it.

my english so pool.sorry.


code:
---------------------------------------
//use storeToXML() save a XML file,and run ...:

<%
Properties _props=new Properties();
FileInputStream fis = new FileInputStream("/data/resin_vhost/foolfish/testclass/rhyme.xml");
_props.loadFromXML(fis);
_props.list(System.out);
%>
any system
jdk1.5.0.00-jdk1.5.0.03

Notes
(0000512)
ferg   
12-06-05 10:27   
server/1i00