One problem using TI to catch Objects allocation

To get objects allocated during runtime, I use byecode intrumentation, JNI function interception, and VM Object Allocation Event of TI. But I still miss the allocation of many objects, about 15% of all the heap objects. why this happens, the objects missed are "[I", "[B","[C","[S","Ljava/lang/Class",and "Ljava/lang/Object".
My experiments are based on Eclipse3.2 and JDK1.5.9 to catch objects allocation During the process from the beginning of Eclispe's start  to the successfully running of a simple app developed in Eclipse.
please help to give some hints. Thanks in advance.
Message was edited by:
        danvor                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

You don't say much about your instrumentation. Do you insert code after each newarray byte code so that you get a notification when arrays are allocated. If not, that should help explain the array objects you are missing. There were a few issues with the VMObjAlloc event in 5.0 that were resolved in 6.0. You might want to check that release to see if you get more events for objects that can't be detected with instrumentation.

Similar Messages

  • Problem using different plugins via OBJECT tag

    Hi all,
    before installing JRE 1.5.0_06 everything was well. I had 3 different JREs (1.3.1_02, 1.3.1_08, 1.4.2_06) installed on one Windows system which could be invoked in Internet Explorer 6 for an applet as described in http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/version.html
    example:
    <HTML>
    <HEAD>
    <TITLE>Java Plugin 1.3.1_08</TITLE>
    </HEAD>
    <BODY>
    Java Plugin 1.3.1_08:�
    <OBJECT classid="clsid:CAFEEFAC-0013-0001-0008-ABCDEFFEDCBA" width="150" height="25">
    Plugin missing
    <PARAM name="code" value="HelloWorld.class">
    </OBJECT>
    </BODY>
    </HTML>
    (Note: The output of my HelloWorld class is the VM's version number.)
    After installing 1.5.0_06 it doesn't work anymore. The new 1.5.0_6 is always used. Does anybody have a clue?
    Thanks in advance
    Peter

    I've seen a similar problem that didn't seem to exist with JRE 1.5.0_05 but does with 1.5.0_06. On the JRE 1.5.0_06 workstation the Windows registry contains CAFEEFAC-... entries for what looks to be all 1.3/1.4/1.5 JREs and points them all to the 1.5.0_06 JRE plugin dll, even though there is still a 1.4 JRE on the workstation. So even when you specify an OBJECT tag with a classid such as classid="clsid:CAFEEFAC-0014-0001-0010-ABCDEFFEDCBA" that should load the 1.4 plugin by design, the 1.5 plugin is loaded. This seems to defeat the multi-version JRE support. The JRE 1.5.0_05 workstation on the other hand didn't overwrite CAFEEFAC-... Windows registry entries for previous JREs, and properly loads a specfic JRE's plugin when specified by a CAFEEFAC-... classid in the OBJECT tag.

  • Problems Using an Array of Objects

    I have taken some time off from java and have aparently forgot something. I have a program which has one parent class "Car" with three child classes"Sedan", "Sport", "Suv" and one interface. The "Car" class contains three accessor and mutator methods, and the child classes also have three accessor and mutator methods. In my main I create an array Car[] carArray = new Car[6]; and instantiate. I can call the methods of the parent class but am unable to call the methods of the child classes. I need a little help to get me in the right direction to get these cobwebs out of my skull. Here is a sample of what I'm doing:
    //from my main method
    Car[] carArray = new Car[3];
    carArray[0] = new Sport("Chev", "Camaro", 1995, 4500.67, 120000);
    carArray[1] = new Sedan("Ford", "Taurus", 1997, 3689.55, 40000);
    carArray[2] = new Suv("Honda", "Pilot", 2003, 6955.99, 67000);
    for(int i = 1; i < carArray.length(); i++)
        carArray.getYear(); //getYear() is from the parent "Car" class and works just fine.
    carArray[i].getValue(); //getValue() also from the parent "Car" class and works just fine.
    carArray[i].getMiles(); //getMiles() from parent "Car" class and works.
    carArray[i].getMake(); //getMake() is part of the child class and gives me an error: "cannot find symbol. symbol: variable getMake()
    carArray[i].getModel(); //getModel() is also a part of the child classes and also cannot find symbol.
    {code}
    I have imported my package with my parent and child classes correctly and have tried putting them all in the same folder, so I think I have a failure in logic. Can someone help me straighten this out in my head? :) Much thanks

    "Is it A or B"?
    "Yes"
    Meaning "either one."
    The parent class doesn't have to be abstract as far as Java is concerned, but it seems to me you'd want it to be abstract. Will you ever be creating just a plain old Car (as opposed to a Sedan or Suv)?
    You just said "doesn't work," without providing any details about what you tried or what the exact problems was, so it's impossible to offer any specific, concrete advice. Here's an example that shows one way things might fit together.
       * inteface, to define the type, with 3 methods: add(), iterator(), and contains()
      public interface List {
        boolean add(Object obj);
        Iterator iterator();
        boolean contains(Object obj);
       * abstract base class, to implement methods that don't depend on specific implementations
       * (just contains() in this case
      public abstract class AbstractList implements List {
        public boolean contains(Object obj) {
          for (Iterator iter = iterator(); iter.hasNext ();) {
            if (iter.next ().equals (obj)) {
              return true;
          return false;
       * concrete subclass
       * provides concrete methods that depend on the specific implementation
      public class ArrayList extends AbstractList {
        private Object[] elements = new Object[256];
        int size = 0;
        public boolean add(Object obj) {
          if (size == elements.length) {
            // create a larger array and copy over existing elements
          elements[size++] = obj;
          return true;
         * anonymous inner class that implements Iterator
        public Iterator iterator() {
          return new Iterator() {
            private int nextIndex = 0;
            public boolean hasNext () {
              return nextIndex < size;
            public Object next () {
              return elements[nextIndex++];
      }A few things to note:
    0. The above are based on the classes of the same names in java.util, but are stripped down for simplicity. If something doesn't look right (like missing methods on List and Iterator) it was done to keep the example clean and simple.
    1. We could skip either the interface or the abstract class or both, or the abstract base class could be concrete. Java doesn't care. We do what makes sense for our design.
    2. Here we define an interface because we want to define a pure type with no implementation. Anybody anywhere can implement a List however they want, and as long as it meets the contract of our interface, it can be used by any code expecting a List.
    3. We define the base class AbstractList because there are methods that have a reasonable default implementation that can be reused by subclasses. In this case, contains() doesn't do anything that depends on the specific implementation, so it can be defined in the base class. All the subclasses can use that implementation of contains(). Of course, any subclass is still free to override contains() to provide its own implementation if it wants.
    4. An implementation of List can extend the base class, AbstractList, but it doesn't have to. It could just implement List and provide its own implementation of contains().
    5. The base class is abstract because some methods don't have a default implementation that can be reused. Both add() and iterator() depend on the specifics of the implementation. They both need direct access to the internal backing store. If we had another concrete implementation, LinkedList, its backing store would be a privately defined class of Node that contains the elements and pointers to previous and next. There would be no array, and add() and iterator() would be written very differently. There's no way we could have written add() and iterator() in a way that would have worked for both backing stores.
    6. All methods in an interface are public and abstract, even if you don't declare them that way.
    7. A class that implements an interface or extends an abstract class must provide implementations for all the abstract methods in both, or else must be itself declared abstract.
    8. When a class extends another class, it also implicitly implements all the interfaces that the parent class does.
    9. A class with one or more abstract methods must be declared abstract, but any class can be declared abstract, even if it has no abstract methods.
    Edited by: jverd on Mar 27, 2010 9:12 AM

  • MICR printing problem using the Crystal ReportDocument object in C# app

    We developed a small C# windows program 6 months ago that reads a bank draft record and uses a Crystal Report form to print the draft (using ReportDocument() object and the PrintToPrinter() method).  This has been working fine for 6 months. (using .Net 2.0 Framework and Crystal Reports .Net plugin included with VS 2005 on client machine - CRRedist2005_X64.msi)
    Now the requirements have changed to put a MICR line at the bottom ot the draft check and print.  We have updated a similar Crystal draft report form and printed from Crystal Viewer - this works fine.  But when we update the Crystal report form used in the C# application, with the same MICR commands, using the same MICR printer, and the same user trying the print, it does not work.  The MICR commands are printed on the draft just like regular text, instead of being interpreted by the printer as MICR commands.  Must be something within the Crystal Reports .Net redistributable that is causing it to work incorrectly because it works correctly from the same users PC using Report Viewer.
    Note:  The MICR field on the Crystal Report contains the following chars:
           &%STHPASSWORD$&%SMD' MICR '$&%STQ$
    When we print, the above chars just print out like text
    Can anybody help with any suggestions ?
    Are they any hotfixes that address this issue of PCL commands not recognized on printer?

    The app that is working is a C++ vendor app, however the Crystal piece is seperate piece that uses the Crystal Report Viewer to pull up the draft report. The print button is then hit within Crystal Report Viewer and the draft prints correctly.
    - so the above app is using the Report Designer Component (craxdrt.dll) and as such it is not using the .NET assemblies...
    For the app that is not working, we are not using Crystal Report Viewer, but are using the ReportDocument object, from the Crystal .Net Redistributable (referenced above), embeded into our C# app. The app executes a PrintToPrint command against the identical Crystal report, however, running it this way, the MICR command that is embeded into the report is not recognized by the MICR printer. The output seems to jumble the MICR command that I posted earlier in the thread and does not keep the command in a readable format for the MICR printer.
    - the above is not using the Report Designer Component (craxdrt.dll). It is using the .NET assemblies and thus the .NET framework.
    Have you been able to get .NET to recognize / see the fonts in that label I mentioned on  6/27/08?
    Ludek

  • BI XI - problem using SEND/TO Business Objects Inbox?

    It seems the user search (Look For:) function is not working, so we can never have any users in the "Available Recipients" box to select.
    Anyone else experience this problem and found what is the cause?

    I think by default this is disabled. If you add view access to everyone in the CMC\folders\user folders. It should work.
    Regards,
    Tim

  • Service template problem - Unable to perform the job because one or more of the selected objects are locked by another job - ID 2606

    Hello,
    I’ve finally managed to deploy my first guest cluster with a shared VHDX using a service template. 
    So, I now want to try and update my service template.  However, whenever I try to do anything with it, in the services section, I receive the error:
    Unable to perform the job because one or more of the selected objects are locked by another job.  To find out which job is locking the object, in the jobs view, group by status, and find the running or cancelling job for the object.  ID 2606
    Well I tried that and there doesn’t seem to be a job locking the object.  Both the cluster nodes appear to be up and running, and I can’t see a problem with it at all.  I tried running the following query in SQL:
    SELECT * FROM [VirtualManagerDB].[dbo].[tbl_VMM_Lock] where TaskID='Task_GUID'
    but all this gives me is an error that says - conversion failed when converting from a character string to uniqueidentifier msg 8169, level 16, State 2, Line 1
    I'm no SQL expert as you can probably tell, but I'd prefer not to deploy another service template in case this issue occurs again.
    Can anyone help?

    No one else had this?

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • HT1206 Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

  • HT204380 Hello...i have one problem with my ipod touch 4th gen....when i try to log in and start use the facetime one message appears in the screen that is say....you couldn't get log into facetime...what i must do??pleaze help me :/

    Hello i have one problem with my ipod touch 4th gen....when i try to log in facetime one message appears in the screen whick saying you couldn't log into facetime.....what i suppose to do?? :/please help me :/

    Try:
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems

  • OS is Mountain Lion, upgraded no problems, used an external Hard drive for my time machine, now my iPhoto will not show any of my photo's or ay new ones I import! Help please!!

    OS is Mountain Lion, upgraded no problems, used an external Hard drive for my time machine, now my iPhoto will not show any of my photo's or ay new ones I import! Help please!!

    Do you get this window when you hold down the Command+Option keys and launch iPhoto?
    If not then you're not holding down both keys long enough.
    OT

  • Performance problem using OBJECT tag

    I have a performance problem using the java plugin and was wondering if anyone else was has seen the same thing. I have a rather complex applet that interacts with java script in a web page using the LiveConnect API. The applet both calls javascript in the page and is called by java script.
    Im using IE6 with the java plugin that ships with the 1.4.2_06 JVM. I have noticed that if I deploy the applet using the OBJECT tags, the application seems the trash everytime I call a java method on the applet from javascript. When I deplot the same applet using the APPLET tag the perfomance is much better. I would like to use the OBJECT tag because it applet bahaves better and I have more control over the caching.
    This problem seems to be on the boundaries of IE6, JScript, the JVM and my Applet (and I suppose any could be the real culprit). My application is IE5+ specific so I can not test the applet in isolation from the surround HTML/JavaScript (for example in another browser).
    Does anyone have any idea?
    thanks in advance.
    dennis.

    I have a performance problem using the java plugin and was wondering if anyone else was has seen the same thing. I have a rather complex applet that interacts with java script in a web page using the LiveConnect API. The applet both calls javascript in the page and is called by java script.
    Im using IE6 with the java plugin that ships with the 1.4.2_06 JVM. I have noticed that if I deploy the applet using the OBJECT tags, the application seems the trash everytime I call a java method on the applet from javascript. When I deplot the same applet using the APPLET tag the perfomance is much better. I would like to use the OBJECT tag because it applet bahaves better and I have more control over the caching.
    This problem seems to be on the boundaries of IE6, JScript, the JVM and my Applet (and I suppose any could be the real culprit). My application is IE5+ specific so I can not test the applet in isolation from the surround HTML/JavaScript (for example in another browser).
    Does anyone have any idea?
    thanks in advance.
    dennis.

  • Hello.. I have one problem. I used automator to automaticly sync my photos to iphoto. Now I don't want it any more. How can I disable it?

    Hello.. I have one problem. I used automator to automaticly sync my photos to iphoto. Now I don't want it any more. How can I disable it?

    If you have iPhoto v9.6.1 then just launch it. Done.
    IF you don't, download it:
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • I have (2) Samsung S5 phones.  One is using up data like crazy for no reason.  I have WiFi at home, so what's causing this problem?

    I have 2 Samsung S5 phones.  One has used way over the limit for no apparent reason.  I have WiFi at home.  What could be causing this problem?

    Hello KF2PX
    I'm sorry to hear your having issues with your S5. I would be happy to look into this with you. Are there different apps on both devices? Do either device auto play videos when opening apps? For example Facebook. Here's a great link to see what's using the data: http://www.verizonwireless.com/support/data-utilization-faqs/
    JoeL_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Help me, I am using flash pro cc and air 4.0,i have one problem when publishing apk through air publish settings,choosing the run time option from third party is disabled.can any one help me bcoz i have to publish without air runtime.......

    Help me, I am using flash pro cc and air 4.0,i have one problem when publishing apk through air publish settings,choosing the run time option from third party is disabled.
    can any one help me bcoz i have to publish without air runtime.......

    Hi,
    This option is available when your publish target is set to AIR 3.6.
    You can download the desired AIR SDK version from Archived Adobe AIR SDK versions
    Thanks!
    Mohan

  • Problem in Transport of ID objects using CMS

    Hi,
    I am using CMS to transport my IR and ID objects from DEV->QA->PROD.
    While I am able to transport my repository objects successfully,I do have a problem with trnasport of ID objects.Especially this problem seem to exist only if i try to export individual objects.There isnt any issue for a complete ID transfer which is not my req.
    When doing "Release FOr tranpsort" from QA after making the communication channels changes,The object appears in the "assemble " tab.
    Ideally Once I  assemble the objects,it should diasappear out of assembly page and should be appearing in the "Approval" tab..
    But the objects successfully get assembled and dispapper from assembly ,they dont seem to be present in the next approval step.I am unable to track where they are lost.CMS logs doesnt show any error as well.
    Any pointers from this issue?
    Regards,
    Rashmi

    Hi,
    This will help you,
    http://help.sap.com/saphelp_nw04/helpdata/en/93/a3a74046033913e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/55/7a09d0d7d34b828a9740e322b9222c/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/54/8b5b0555264a93a679c2117fedc748/frameset.htm
    This PDF file will help you a lot,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f85ff411-0d01-0010-0096-ba14e5db6306
    Regards
    Agasthuri Doss

Maybe you are looking for