这几天再用JFreeChart,途中数据要保存到xml文件中,然后再从xml文件中读出数据,作为CategoryDataset的参数。可是向xml文件中写数据时,就一直出现如题的错误,还把我的xml文件的内容全部删除了。后来Google了一下,发现原来问题是出在jfreechart提供的gnujaxp.jar文件上。下面是作者原话:
The reason of the error is gnujaxp.jar file. When I removed this file from the classpath of jmemorize, the error disappeared. I think this removal won't cause any side effect, since gnujaxp is an alternative implementation of JAXP 1.3 which is already included in jre since java 1.4 AFAIK.