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
Hello,

so i have some of this code in my project

<code>
OrdHttpUploadFormData formData = new OrdHttpUploadFormData(request);

formData.parseFormData();

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 {
image.loadImage(ord_image_zdjeciealbumu);
audio.loadAudio(ord_audio_utwor);
} catch (Exception e) {
}
</code>

Generally my problem is such exception :

<code>
java.lang.NoSuchMethodError: sqlj.runtime.ExecutionContext.getOracleContext()Lsqlj/runtime/ExecutionContext$OracleContext;
     oracle.ord.im.OrdImageBase._deleteContent(OrdImageBase.java:322)
     oracle.ord.im.OrdImage.deleteContent(OrdImage.java:846)
     oracle.ord.im.OrdImage.loadDataFromInputStream(OrdImage.java:749)
     oracle.ord.im.OrdHttpUploadFile.loadImage(OrdHttpUploadFile.java:544)
     PhotoAlbumRequest.dodajElementDoBazy(Index.java:584)
     Index.doPost(Index.java:91)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
     org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
</code>

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.

Legend

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