• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Urgent!! ParameterMetaData problem

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic