You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Stefan Chis (JIRA)" <ib...@incubator.apache.org> on 2005/01/06 14:45:13 UTC

[jira] Created: (IBATIS-46) xml parsing issue using jdk 1.3

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


[jira] Commented: (IBATIS-46) xml parsing issue using jdk 1.3

Posted by "Stefan Chis (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-46?page=comments#action_57504 ]
     
Stefan Chis commented on IBATIS-46:
-----------------------------------

Thank you for the suggestions.
I solved my problems by switching to iBatis 2.0.8.
Note however, that my xml config files were sound.

> 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


[jira] Commented: (IBATIS-46) xml parsing issue using jdk 1.3

Posted by "Darren Shopbell (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-46?page=comments#action_57348 ]
     
Darren Shopbell commented on IBATIS-46:
---------------------------------------

Stefan - I ran into the same problem, But I was able to resolve by importing the optional xml jar files that come with IBATIS 2.09. which are:
xalan-2-5-2.jar
xercesImpl-2-4-0.jar
xmlParserAPIs-2-4-0.jar

Im Using: WAS 5.1, win 2000, jdk 1.3

-Darren 

> 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


[jira] Updated: (IBATIS-46) xml parsing issue using jdk 1.3

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-46?page=history ]

Clinton Begin updated IBATIS-46:
--------------------------------

    Priority: Major  (was: Minor)

> 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

>
> 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


[jira] Commented: (IBATIS-46) xml parsing issue using jdk 1.3

Posted by "Chris Mann (JIRA)" <ib...@incubator.apache.org>.
     [ 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


[jira] Closed: (IBATIS-46) xml parsing issue using jdk 1.3

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-46?page=history ]
     
Clinton Begin closed IBATIS-46:
-------------------------------

      Assign To: Clinton Begin
     Resolution: Fixed
    Fix Version: 2.1.0

Fixed, now uses NestedRuntimeException

> 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
>     Assignee: Clinton Begin
>      Fix For: 2.1.0

>
> 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


[jira] Commented: (IBATIS-46) xml parsing issue using jdk 1.3

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATIS-46?page=comments#action_57518 ]
     
Clinton Begin commented on IBATIS-46:
-------------------------------------


Sorry about that guys.  We want to remain 1.3 compatible.  I'll fix this in the next release.

Cheers,
Clinton

> 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