my dog learned polymorphism*
The moose likes JDBC and the fly likes Urgent!! ParameterMetaData problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Urgent!! ParameterMetaData problem " Watch "Urgent!! ParameterMetaData problem " New topic
Author

Urgent!! ParameterMetaData problem

Senthamizh
Greenhorn

Joined: Jun 17, 2002
Posts: 18
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.

Regard d
Senthamizh Selvan
Senthamizh
Greenhorn

Joined: Jun 17, 2002
Posts: 18
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 ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"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
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

From the Javadocs:
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
Senthamizh
Greenhorn

Joined: Jun 17, 2002
Posts: 18
David O'Meara,
Thanks, I have changed my Display Name. I was recompiled my Program. I am getting the same problem. Please Explain in detail.
Regard,
Senthamizh Selvan
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
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
Senthamizh
Greenhorn

Joined: Jun 17, 2002
Posts: 18
Hi,
OK, Please, Explain how do i use ParameterMetaData in my Program. What JVM and Java API version it should support?
Regards,
Senthamizh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent!! ParameterMetaData problem
 
Similar Threads
tomcat starting problem
Enabling global security in WSAD 5.0
JBOSS NOT RUNNING..PLS HELP!
compiling problems
Error in LookUP in JBOSS 5.0.0.Beta4 EJB3.0