Rational Purify and JNI

All,
has anyone managed to get Purify to run in conjunction with JNI? I was planning on instrumenting the native library with the Purify API, but apparently Purify cannot handle shared libraries:
purify CC $(OBJECTS) -compat=4 -DSOLARIS -D_STRUCTURED_PROC=1 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -G -L./ -lC -o libTst.so
Purify 2002a.06.00 Solaris 2 (32-bit) Copyright (C) 1992-2002 Rational Software Corp. All rights reserved.
Instrumenting:
Purify engine: Error: Sorry, Purify cannot produce shared objects.
make: *** [libs] Error 1

Ooooops. Sorry for the stupid question.
Actually the question i wanted to ask is, how to use purify with respect to a java program that loads a jni library and calls jni methods?
Basically, the purify is used before the cc or gcc command while building the application. we can't use purify with java command or while compiling the C/C++ code to an object file. Then how to proceed?
Pete, can u plz tell me, what exactly u hav done?
-Sanghamitra

Similar Messages

  • IBM Rational Purify and Framemaker 8

    Hi,
    Has anyone managed to successfully run an IBM Rational Purify session against Framemaker8?
    It reports an unhandled exception in a module outside my (I think) control:
    RtlUnicodeStringToInteger+0x17d [C:\WINDOWS\system32\ntdll.dll ip=0x7C91AFEE]
    Thanks
    Tommy

    Hi,
    Has anyone managed to successfully run an IBM Rational Purify session against Framemaker8?
    It reports an unhandled exception in a module outside my (I think) control:
    RtlUnicodeStringToInteger+0x17d [C:\WINDOWS\system32\ntdll.dll ip=0x7C91AFEE]
    Thanks
    Tommy

  • Swing GUI and JNI

    Hello
    I am facing a problem related to Swing and JNI. Actually I have to call a native function on the action of a button, so I am using Swing to develop GUI. When I use Jframe and Jbuttons and on the action event of JButton when I call the native function of a different class, then the function works fine but suddenly program gets terminated. Program does not get terminated when I click on other buttons but when I click on the button containing native method, after clicking, the whole GUI frame gets removed and the program terminates. While debugging it does not give any error, infact the function works perfectly fine and the only thing that I came to know is that the application gets terminated and it displays "terminated, exit value : - 1073741819"
    Please help me out and reply as soon as possible.

    I imagine it depends on what's in the JNI code. Is this a JNI that you've created? Is it a large program? Can you post the code? Are you sure that you're compiling the C/C++ code with the correct parameters? (you may need to ask some of this in the JNI forum) Is it thread-safe? Are you calling its methods on the EDT?

  • Trying to configure Rational Purify with weblogic 8.1

    Hi ,
    I am trying to check for memory leaks in the webservices which have been developed on weblogic 8.1 using rational purify. Can someone guide me about changes which I need to make in my configuration file to make this happen ?

    Bob,
    Thanks for the response, I did  not execute it but will i thought it would do it in v$session on startup.  The psr -v output for that service is:
           Group ID: WIZGRP_1, Server ID: 90
          Machine ID: devvm04
          Process ID: 23463, Request Qaddr: 790134787, Reply Qaddr: 790167556
         Server Type: USER
           Prog Name: /home/hems/prod/appdir/SQLSERV
          Queue Name: SQLSERVQ_1a
             Options: RESTARTABLE
      Max # Restarts: 10
    Restart Command: /home/hems/prod/scripts/restart.sh
        Grace Period: 0 hour 1 mins
    In mem Q/thread: max length 0
          Generation: 1, Max message type: 1073741824
       Creation time: Thu 01 Aug 2013 01:59:36 PM EDT
             Up time: 0:00:21
       Requests done: -
           Load done: -
      Current Status: ( - )
    Oracle client is
    devvm04:/home/hems/prod/appdir>tnsping
    TNS Ping Utility for Linux: Version 12.1.0.1.0 - Production on 01-AUG-2013 14:02:27
    Copyright (c) 1997, 2013, Oracle.  All rights reserved.
    Also ran with 11.2.3
    Jim

  • Difference between JNA and JNI ?

    Hi All ,
    I am very new to both of JNA and JNI . Could you please help me to find out the differences between them.
    Thanks and Regards,
    Allwyn

    Google ( [jni jna|http://www.google.com/search?q=java+jni+jna] ).

  • Rational Robot and LabVIEW PDA collaboration

    Does anybody have any experience/ideas for use of Rational Robot and LabVIEW? We have both software and hardware and were wondering if anyone had any ideas/suggestions/experience interfacing between these two.
    Thanks ~ EUPECkat

    Re-boujour,
    Après une recherche un peu plus poussée, il apparaît que ce genre d'erreur est lié à des fichiers (DLL) manquants pour un chip du fabriquant FTDI. Serai-je complètement dans le faux?
    Vous avez donc plus de chance de trouver des infos relatives à ce genre de soucis ici, et plus précisément dans la partie "support" auprès de personnes ayant déjà utilisé ce genre de DLL. Des exemples d'utilisation de ce genre de chip avec Labview sont disponibles ici.
    En espérant que cela vous aide
    Cordialement,
    Mathieu STEINER
    Mathieu Steiner, Test System Engineer, Safran Engineering
    CLD, ISTQB

  • Steps to Integrate Rational Purify with SunoneApplicationServer6.5 EE

    Hi All,
    Iam in the process of integarting Sunone Application Server6.5 with Rational Purify.
    Please tell me the steps to acheive the same.
    Thanks
    Raju

    See if you can get some ideas from
    Note:175870.1

  • How can I maintain a single connection between Forms 9i and JNI?

    I am creating a JNI interface into a legacy application written in Pro C. Currently this legacy system is accessed from Forms 6i through userexits. Under this setup the Pro C application is able to share the connection to the DB established by forms. I want to mimic this functionality over the web using JNI as the link between my web components and the legacy application.
    ie. I want to share the DB connection established by my web components with my Pro C application.
    Thus far I have been unable to find any documentation on how to do this.
    Any ideas would be very helpful.
    Information about how Oracle Forms shares its connection with userexits would also be helpful.

    The Pro*C application is linked in to Forms, and runs in the same process space, which is how the session is shared.
    You can't share the Forms session outside of Forms. So it's not possible to do what you want.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Invocation JVM and JNI library communication

    How do I communicate between my application that creates a VM, and the JNI libraries (with native functions) loaded by classes within the invoked VM?

    -Global variablesI doubt global variables inside the C app can be >accessed from JNI native methods.Whoops! Correct.
    -Primitives passed as argumentsSure, but there is an whole API in C I wan't to make
    available in Java.
    -Primitives as attributes in a classExplain? Attributes in class?Basically the same as the previous one. So probably no more useful.
    -C/C++ pointers passed as arguments or as class
    attributes using a java long to hold it.Yes, this is probably the way!You will probably find this is best.
    -Function callbacks.Presumably you control the code base for both sides of this. A JNI shared library can have normal shared library method calls in it. So use normal shared library protocols to access it. (I haven't tried it so there might be some interesting problems with initially resolving the thunks or there might not.)

  • Servlets And JNI.. real urgent help.

    Hi all,
    I have the JNI code integrated to the servlet .The servlet works fine at first time.but when i modified some source code of servlet (not native library) and redeploy it,then reload the same servlet in web browser ,i get "Native library already loaded in another classloader java.lang.UnsatisfiedLinkError" error.
    Any solution to this ???
    Thanks
    jetdvk

    Have you fixed this?
    I presume you are hot deploying the servlet ? if so then i also presume that you have either some static code or some run once code that loads your native code when your class is used for the first time.
    This code is being ran again as the class is being reloaded, therefore you have two choices,
    1) wrap the call loading the native library, and just ignore the exception. Then call a check method in the native code to make sure that the library was loaded.
    2) Move the code that loads the native library out to another class that is not hot deployed. Your servlet can call this when it is first accessed, and the other class will know whether it has already loaded the dll and will not attempt to load it again.

  • Servlets and JNI

    Hi,
    We have a C library which does financial computations and some of our customers have expressed the need to access our library from their servlets.
    This is why we have developed a JNI wrapper which encapsulates all functionality of our library.
    Now, do the specs allow using JNI in conjunction with servlets? I've studied the Java EE, JSP and servlet specs but JNI isn't mentioned anywhere...
    I've also found this thread with a quite similar question but without a clear answer whether it's allowed or not.
    -- Vincent

    yes, if the server's security policy allows it. In a basic server environment you can do just about anything you can do in a regular java application.

  • Map the XCreateWindow to Frame or window in C and JNI

    I am having a window which is created in C++ using 'XcreateWindow' function
    I am using JNI as a interface
    How do i get the Window Id / handle to java frame.
    If I am giving any actionlistener to my frame that has to be reflected in C window
    Anybody can send me the full source code too.

    Linux_Java wrote:
    How do i get the Window Id / handle to java frame.You can't get it from within Java, that much I know, and in fact since it is an OS construct it is meaningless in java. If you are working with MS Windows, I'm guessing that your best bet is to play with some of the functions in the User32 library, such as enumerateWindows and such, and by doing this you'll find out how to get a handle on the JFrame. If it's unix/linux (and given your name, that is a reasonable assumption) then I have no idea.
    If I am giving any actionlistener to my frame that has to be reflected in C windowNo idea what you mean here.
    Anybody can send me the full source code too.Doesn't this kind of go against the philosophy of these forums?
    Also, consider posting this sort of question in the JNI forum where you will have a much better chance of getting a JNI guru who actually knows what he's talking about instead of, well, me.

  • SAX and JNI

    I'm having problems using Java classes from C. I've managed to trace the problem as far as the SAX parser, but I have no idea why there's a problem at all.
    With the -verbose:jni option on, there's a message: "Unable to read from file" and then the JVM stops (crashes actually.)
    I create a VM as follows:
            JavaVM* jvm;
         JNIEnv* env;
         JavaVMInitArgs args;
         JavaVMOption options[3];
         int ret;
         args.version = JNI_VERSION_1_4;
         args.nOptions = 3;
         options[0].optionString = classPath;
         options[1].optionString = "-verbose:jni";
         options[2].optionString = "-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl";
         args.options = options;
         args.ignoreUnrecognized = JNI_TRUE;
         if ((ret = JNI_CreateJavaVM(&jvm, (void **)&env, &args)) < 0) {
                /* error */
            }classPath is just a char* that lists all the Jars the project uses. I wrote a Java main() to test my code and when you run it with the exact same classpath, it works.
    The Java code that creates and starts the SAX parser looks like:
         XMLHandler handler = new XMLHandler ();
         SAXParserFactory factory = SAXParserFactory.newInstance();
            SAXParser saxParser = factory.newSAXParser();
            try {
                 saxParser.parse(f, handler);
            } catch (java.io.IOException e) {
                 e.printStackTrace ();
            } catch (Exception e) {
                 e.printStackTrace ();
            }Is there something about JNI that SAX stuff won't work with it?
    Any help is greatly appreciated.

    D'oh!
    The java test code that "worked" actually used the wrong file name so the file didn't exist so it didn't actually execute the broken code.
    When I hard-code the absolute path to the file, I still get "Unable to read from file". So I guess the problem isn't with the JNI but somewhere else in my code.
    Thanks.

  • Static libraries and JNI / recursive libraries

    Hi @all,
    I've built and linked the C++ code, that's called via JNI by my Java application as a so (shared lib). This lib however, links with other libs, that are not shared but static. When I run my java application it can't resolve symbols from those libs.
    What can I do to make my Java program find those symbols?
    Thx

    That is non-sensical.
    Static linkage means it is in the dll itself. There is no way for them to not be available.
    As a guess the linkage is not static.

  • Jca  and  jni

    I hope some one can answer this question , as there is no much to read about JCA
    my J2EE application needs to inetgerate with some C libraries, after some investigations , I found that calling native APIs direct from the EJBs might crash the EJB container when the JNI fails, as a better solution the JCA can be used as an intermediate layer, regarding the JCA-JNI communication I have 2 questions:
    1- Is this setup EJB->JCA->JNI->C failsafe against the failure in the JNI->C part?
    2- can the JNI wrapper be hosted on a remote server other than the application server or will I need to install the application server on the same machine as the C libraries

    1) If you mean, does the app server continue running if your native code coredumps, the answer is no - This is the tradeoff you pay for speed.
    2) Yes, but you're no longer going JCA->JNI. Rather, you're going JCA->X->JNI where X is some remotable protocol.
    JCA is no magic layer - It's just a Java API between application servers and whatever library you intend to expose to your app server clients.
    God bless
    -Toby Reyelts

Maybe you are looking for

  • On Screen Keyboard with Quickweb

    How do you access the on screen keyboard when your in quickweb if you are using the system in tablet setup?

  • I can no longer access my email on Xfinity (Comcast). I can with IE8, however

    For about a week now, I can see the unread mail in a preview box, but I cannot access the mail box nor individual mail. I cannot compose mail either in Firefox. As everything works in Internet Explorer 8, it must something that has happened in Firefo

  • Run bounded task flow as start point in an unbounded task flow

    Hi, have a bounded task flow which represents the main flow of the application, how can I call the bounded task flow from the adfc-config.xml unbounded task flow directly , in other words to be the first activity to run ? I can not have a first page

  • Error "app.addMenuItem is not a function"

    Hey, New to Acrobat and Javascript in general.  I wanted to be able to create a custom toolbar with four buttons when a document is loaded (we don't want the buttons on the documents themselves), and I copied and pasted the following code into a modu

  • Button in report

    I tried to create a button on report to display the picture of the current emp record .But i couldn't make ...can someone tell me the correct steps i have to follow ? Thanks in advance