no such method error while using xdb.jar along with ojdbc14
477802Dec 20 2005 — edited Dec 20 2005hi,
Im programming an application in java, using xdb.jar v 10.2 and ojdbc14 to get data in xml format from the database. I get an exception which seems to be related to incompatibility between jars.
I have been told to look for older versions of the xdb jar to resolve the issue. Im not sure if this is the solution but anyways i cant find older version of xdb jar (version 9.0.4 or 9.0.3). I would like to know if this is actually the solution or something else is the matter and if this is the solution where can i download older version of these jars. The error is as follows.
java.lang.NoSuchMethodError: oracle.jdbc.internal.OracleConnection.getProtocolType()Ljava/lang/String;
oracle.xdb.XMLType.getConnType(XMLType.java:2308)
oracle.xdb.XMLType.initConn(XMLType.java:2290)
oracle.xdb.XMLType.<init>(XMLType.java:945)
oracle.xdb.XMLType.createXML(XMLType.java:525)
com.winningmoves.wombat.dao.SuperUserDao.getXmlData(SuperUserDao.java:1666)
com.winningmoves.wombat.service.SuperUserService.getXmlData(SuperUserService.java:43)
com.winningmoves.wombat.action.superuser.DataExtraction.execute(DataExtraction.java:28)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.winningmoves.wombat.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)
com.winningmoves.wombat.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)
com.winningmoves.wombat.filters.PageAccessFilter.doFilter(PageAccessFilter.java:88)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
regards,
Navin