[ http://issues.apache.org/jira/browse/IBATIS-46?page=comments#action_57480 ] Chris Mann commented on IBATIS-46: ----------------------------------
This error is caused because class com.ibatis.common.xml.NodeletParser is throwing a java 1.4 style RuntimeException. The java 1.3 runtime class does not accept an exception as an argument. If you change the processNodelet() method to the code below it should fix it. Actually, it will reveal the real error (likely some parsing problem with your sqlmaps xml config file). private void processNodelet(Node node, String pathString) { Nodelet nodelet = (Nodelet) letMap.get(pathString); if (nodelet != null) { try { nodelet.process(node); } catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Error parsing XPath '" + pathString + "'. Cause: " + e); } } } I'm using WSAD 5.12 and deploying to a websphere 4 server. > xml parsing issue using jdk 1.3 > ------------------------------- > > Key: IBATIS-46 > URL: http://issues.apache.org/jira/browse/IBATIS-46 > Project: iBatis for Java > Type: Bug > Components: SQL Maps > Versions: 2.0.9 > Environment: Windows NT 4, jdk 1.3 (version 1.3.1_13), tomcat 5.0.28 / > WebSphere 5.1, iBatis 2.0.9 (build 496) > Reporter: Stefan Chis > Priority: Minor > > On loading the xml configuration files I'm having the following error: > java.lang.NoSuchMethodError > at > com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:112) > at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:94) > at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:91) > at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:91) > at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:61) > at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:49) > at > com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:77) > at > com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:62) > at com.bnpparibas.saam.dao.SqlMapLoader.<clinit>(SqlMapLoader.java:25) > I've looked up the code of iBatis and at line 112 of class NodeletParser, I > see this: > throw new RuntimeException("Error parsing XPath '" + pathString + "'. Cause: > " + e, e); > This constructor however is not available in the jdk 1.3 (it was introduced > with the jdk 1.4). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira