This discussion is archived
1 Reply Latest reply: Dec 15, 2011 4:44 PM by 858810 RSS

NoSuchMethodError: sqlj.runtime.ExecutionContext.getOracleContext()

866724 Newbie
Currently Being Moderated

so i have some of this code in my project

OrdHttpUploadFormData formData = new OrdHttpUploadFormData(request);


OrdHttpUploadFile image = formData.getFileParameter("image");
OrdHttpUploadFile audio = formData.getFileParameter("audio");

OrdImage ord_image_zdjeciealbumu =
(OrdImage) rset.getORAData(1, OrdImage.getORADataFactory());
OrdAudio ord_audio_utwor =
(OrdAudio) rset.getORAData(2, OrdAudio.getORADataFactory());

try {
} catch (Exception e) {

Generally my problem is such exception :

java.lang.NoSuchMethodError: sqlj.runtime.ExecutionContext.getOracleContext()Lsqlj/runtime/ExecutionContext$OracleContext;

I would like to say that i imported such libraries in my Netbeans project like classes12.jar, runtime12.jar and translator.jar and it still not working. Much appreciated for help.
  • 1. Re: NoSuchMethodError: sqlj.runtime.ExecutionContext.getOracleContext()
    858810 Newbie
    Currently Being Moderated
    Here's the relevant JavaDoc on NoSuchMethodError:

    Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.

    Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.

    Sounds like you have an incompatibility amongst your Oracle JAR files.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points