Hi, I am using Java 2 SDK 1.4.0 version. In this, it has built in support for ParameterMetaData. While i am ising ParameterMetaData, I am getting the Following Problem. Please Help me ASAP. VisualCafe (17:40:15): Error: C:\WINDOWS\Desktop\Component\SessionBean\Dsc1.0\Test.java(39): cannot access java.sql.ParameterMetaData: bad class file: C:\j2sdk1.4.0_01\jre\lib\rt.jar(java/sql/ParameterMetaData.class), class file has wrong version 48.0, should be 47.0. Please remove or make VisualCafe (17:40:15): Error: C:\WINDOWS\Desktop\Component\SessionBean\Dsc1.0\Test.java(39): sure it appears in the correct subdirectory of the classpath.
Hi, I have solved the problem. Still, I am getting problem while i am running the class file. I se the CLASSPATH as Set CLASSPATH=c:\j2sdk1.4.0_01\jre\lib\rt.jar; set CLASSPATH=%CLASSPATH%;c:\weblogic\lib\weblogic.jar; Still, I am getting the following error: Exception in thread "main" java.lang.AbstractMethodError racle.jdbc.driver.OraclePrepareStatement.getParameterMetaData()Ljava/sql/ParameterMetaData; at Test.main(Test.java:20) My Source Code:
Regards, Senthamizh Selvan [ Edited by Dave to format code and remove smiley ] [ June 24, 2002: Message edited by: David O'Meara ]
"Senthamizh", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp. We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements. Thanks. Dave
java.lang.AbstractMethodError Thrown when an application tries to call an abstract method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled.
Try recompiling your class before running it. It appears that it was compiled against one library and is running against a different version. Dave
Yes, David is correct. You compiled with a newer version of the API that has the method in question, and you are running with an older version, that does not have any implementation for the method. It's either you reecompile and run with teh same version of the JDBC API or don't use any statements that are only available with the newer version.
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley