Re: Using Oracle Pro*C in Java with native support
Date: 1997/01/24
Message-ID: <32E94531.4DB4_at_mgic.com>#1/1
vcr_at_hcla.com wrote:
>
> Hi,
>
> I implemented a native method to connect to an Oracle Database
> using Pro*C in Solaris 2.5 and am calling the native method from Java. But
> the
> The program seems to be just hanging after giving the following message.
> libc interal error rmutex_unlock : rmutex not held.
>
> The native method works fine if I encapsulate a C++ program and
> execute it but does not work in Java.
>
> Anybody can help me here?
>
> Thanks,
> Chandrika
>
> -------------------==== Posted via Deja News ====-----------------------
> http://www.dejanews.com/ Search, Read, Post to Usenet
Make your native method a synchronized one, as I don't believe that Oracle supports multithreaded access via Pro*C yet. Verify that your LD_LIBRARY_PATH includes the path of the Oracle shared objects, as well as the path of the shared object containing your native method implementation.
I assume that you are invoking the Java applet from either appletviewer or are loading it locally via some browser. (Applets containing native methods do not pass muster when loaded over a network)
Govind Seshadri Received on Fri Jan 24 1997 - 00:00:00 CET