• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent!! ParameterMetaData problem

 
Senthamizh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Senthamizh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
OK, Please, Explain how do i use ParameterMetaData in my Program. What JVM and Java API version it should support?
Regards,
Senthamizh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic