Print JVM Objects

Hi Gurus,
I want to print the objects loaded in the JVM at any given point of time. Is there any tools or API available?
Can anybody help me on the same?
Lovin.V

I want to print the objects loaded in the JVM at any
given point of time. Take a look at HPROF: A Heap/CPU Profiling Tool in J2SE 5.0
http://java.sun.com/developer/technicalArticles/Programming/HPROF.html
If that does not cover what you would like to see, please post a follow-up message describing your requirements in more detail.

Similar Messages

  • Can't print OLE objects when 9i report developed in 6i

    Hi,
    I am migrating my reports from 6i to 9i. I just open report in 9i which is already developed in 6i and run the report it don't print OLE objects. It shows when I run report in Designer Preview, but in printing it shows blank
    --Vijay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello,
    The answer is in the Migration FAQ :
    When I open an Oracle6i Reports Developer report in the Oracle Reports Builder 10g and run my Web layout, I get an empty Web page in my browser.
    http://www.oracle.com/technology/products/reports/htdocs/faq/faq_migration.htm#368
    Regards

  • Print All Objects

    <p>On some of my Analyzer 7.2.5 reports, when I try to print with"Print All Objects", the radio button grays out andfreezes, and I need to kill it through Windows Task Manager.</p><p> </p><p>This has consistently happened to the multiple-object (6objects) reports, but it also inconsistently happened to reportswith 3 objects - it happens to some 3-object reports, but not theother 3-object reports. It seems to work fine with other reportswith 1 single object.</p><p> </p><p>Does anyone know the limit, which it shouldn't, of thefunction?</p><p> </p><p>Thanks.</p>

    Gurram wrote:
    want to read .rex File. The file contains combination of SQL code with table Names, Packages,Functions,There are three basic ways to read an external file.
    You can use UTL_FILE and use standard/basic file I/O calls like fread() and fwrite() - common amongst most (if not all) programming languages.
    You can define an external table for the file, and SQL*Load the contents of the file dynamically via a SQL SELECT statement.
    You can load the file into a CLOB using DBMS_LOB and then process it - quite useful if the text file is XML as the XMLTYPE supports parsing a a CLOB containing XML.
    I want to pick Each object name put in a separate file line by line.That in turn will need to use UTL_FILE to create an external file.
    Keep in mind though that your in a database environment with PL/SQL. The very best place for data is inside the database in SQL tables. Not outside as external files. Thus you need to ask yourself whether dealing this way with external files is the best solution, and a robust and scalable one.
    Granted, many times from the database side we need to deal with external files. The optimal method usually is to load that file's data into a database table as structured data - data that can be accessed via SQL and sorted, filtered, aggregated and analysed.
    To provide a "file" as output - this should ideally be done directly from structured data (SQL tables). And can be done using HTTP (via a web enabled PL/SQL procedure that supplies the file content as a http Mime stream), using FTP (via <i>UTL_TCP</i>) or as a CLOB via a PL/SQL call interface. Using UTL_FILE is not necessarily the only option.

  • Bought a new Canon MG7540 printer to replace the old HP A618. When printing vector objects from Illustrator, they look like graphics from dandy (8 bits) ... no smooth, all cubes ... if do raster than print perfectly.  Who knows how to treat it? No well to

    Bought a new Canon MG7540 printer to replace the old HP A618. When printing vector objects from Illustrator, they look like graphics from dandy (8 bits) ... no smooth, all cubes ... if do raster than print perfectly.  Who knows how to treat it? No well to rasterize vector before each printing. OS - MacOs 10.10.

    Have you read the User's Guide for that printer?  Odds are you will get reasonable prints.  However, it is a photographic printer.  That said, it should print excellent quality photographic files.  To get smooth lines in Illustrator, try Preferences > Use Anti-Aliased Artwork.  That will smoothen the output.  If, for some reason, that does not work, try Print > Save As PDF > open PDF in Reader and print from there.  Check the User's Guide for media sizes available for your particular printer.  Setup your artboard to the size page you want the image to print on.  Use View > Show Page Tiling ( to see where the page's printable area lies.  Align the page with the artboard using the Page tool.

  • Printing graphics object in Landscape or portrait mode

    Hello,
    I have a graphics 2d object (a Tree Diagram) which is inside a JScrollPane,and the JSCrollPane is on a JPanel. it's length and width is more than one page. I am using a printable object to print the object. The task I need to do is,
    (1). compress the width and length of the diagram, so that if can fit into one page, else split the diagram into pages, so that each part of it can be printed on different pages(page size A4) and then later those pages can be merged accordingly.
    I am not able to find, how to split the graphic object(the tree diagram into pages), shoul d I try doing it using x and y co ordinate of the graphic object.

    * PrintUtilities.java
    * Created on January 17, 2007, 7:25 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package action.vector.bam;
    * @author serjith
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    /** A simple utility class that lets you very simply print
    * an arbitrary component. Just pass the component to the
    * PrintUtilities.printComponent. The component you want to
    * print doesn't need a print method and doesn't have to
    * implement any interface or do anything special at all.
    * <P>
    * If you are going to be printing many times, it is marginally more
    * efficient to first do the following:
    * <PRE>
    * PrintUtilities printHelper = new PrintUtilities(theComponent);
    * </PRE>
    * then later do printHelper.print(). But this is a very tiny
    * difference, so in most cases just do the simpler
    * PrintUtilities.printComponent(componentToBePrinted).
    * 7/99 Marty Hall, http://www.apl.jhu.edu/~hall/java/
    * May be freely used or adapted.
    public class PrintUtilities implements Printable {
    private Component componentToBePrinted;
    public static void printComponent(Component c) {
    new PrintUtilities(c).print();
    public PrintUtilities(Component componentToBePrinted) {
    this.componentToBePrinted = componentToBePrinted;
    public void print() {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    PrintRequestAttributeSet set = new HashPrintRequestAttributeSet();
    PageFormat pgFormat = printJob.pageDialog(set);
    printJob.setPrintable(this,pgFormat);
    //printJob.setPrintable(this);
    if (printJob.printDialog())
    try {
    printJob.print();
    } catch(PrinterException pe) {
    System.out.println("Error printing: " + pe);
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
    if (pageIndex > 0) { // requires change since it is bigger than a single page
    return(NO_SUCH_PAGE);
    } else {
    Graphics2D g2d = (Graphics2D)g;
    g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    disableDoubleBuffering(componentToBePrinted);
    int W = componentToBePrinted.getWidth();
    int H = componentToBePrinted.getHeight();
    //Component newComp = componentToBePrinted.getGraphics().clipRect();
    System.out.println("WorkSpace Height "+H+" Width "+W);
    pageFormat.getHeight();
    pageFormat.getWidth();
    pageFormat.setOrientation(PageFormat.LANDSCAPE);
    //componentToBePrinted.paint(g2d);
    componentToBePrinted.printAll(g2d);//.paintAll(g2d);
    enableDoubleBuffering(componentToBePrinted);
    return(PAGE_EXISTS);
    /** The speed and quality of printing suffers dramatically if
    * any of the containers have double buffering turned on.
    * So this turns if off globally.
    * @see enableDoubleBuffering
    public static void disableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(false);
    /** Re-enables double buffering globally. */
    public static void enableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(true);
    =============================================================
    Please find this code, which I am trying to use, here I am passing the JPanel
    try{                   
    PrintUtilities.printComponent(actWorkSpace);
    }catch(Exception ex){
    ex.printStackTrace();
    the actWorkSpace is a JPanel with graphics as mentioned above, which is being passes to PrintUtilities.printComponent();
    the output is only just a single page with just a portion of the graphics on the JPanel, pls help...... it is urgent....

  • Printing java object in the method

    How to print the object that has called the method in the method itself.
    class abc{
    public method1()
    S.o.p("Print the object that has called this method")
    psvm(string a[])
    abc aa=new abc();
    aa.method1();
    Thanks
    Sir

    Or make a new exception and parse the stack trace.
    This has a performance penalty, though.That wont get the object that's making the call (the 'this' of the method that's making the call), but only the class and the method

  • Trying to print an object at all pages but not last

    Hi.
    I'm trying to print an object (a square ) at all pages but not printing at last. I try to use "All But Last Page" at "Print Object On" property of field but this is not ok.
    Tried to get value of any function like SRW.GET_PAGE_NUM to find the last page indicator, but I think this doesn't exist.
    Any idea will be apreciated.
    Thanks.

    Hope this helps.
    It's all about anchors. Objects cannot have a property of Print Object On "Last Page" or "All but last page" if their Base Printing On property is "Enclosing Object". In order for it to work, you should anchor the fields or frames you want displayed on "all but the last page" to the main frame which holds the Repeating frame of the detail section of your report. Then, you should set the Base Printing On property to "Anchoring Object" and now you're ready to use the "All but last page" and "Last Page" options on Print Object On property.
    -vcastane.mx

  • Printing intermediate object (images) stored in an internal table

    Hi All,
    I'm fetching certain imgaes / documents from a 3rd party repository system (IXOS) and storing the objects in an internal table in a program, later to download them onto the Presentation Server through an ABAP Program.
    But instead of downloading these images onto the Presentation Server, i want to directly print them through the ABAP Program on the local printer.
    These images are stored in some raw format in the internal table.
    Is there any way in which these N images or N raw data sets can be converted into N separate spools so that spools can be converted into N PDFs and then printed?
    Or is there any other way in which i can print these N images directly from the ABAP report.
    Request your help.
    Many thanks in advance,
    SG

    Not so easy. You can't just take an image in any format directly into a spool, SAP is only able to print TIFFs and BMPs (and not all "sub-formats") into spools.
    You first need to know what image formats you have to print, to make sure you're able to process all of these formats.
    You may try to use OLE technology to embed the image into a Word document for example, and print this document.

  • How to print "selected objects" in InDesign CS4?

    I have a large calendar in ID CS4. I want to print and view some of the text in its actual size. My printer can only print A4 documents. How can I print only selected texts and objects in its actual size in this application?
    Although copying and pasting the text in another A4 sized document (IDCS4) would do it but there is no native support of "printing selection" but Microsoft's "Word' has!

    I think the layer option is best.
    Select what you want then open the layers panel and create a new layer. Select the objects you want to print, then in the layers panel you will see a small square to the right of the layer name. Alt Drag that to the new layer to copy the items, you can then turn off the visibility to the other layer and just print out the new layer.
    Then switch the visibility of the layers around to view the original artwork.

  • How to print PreparedStatment object in console

    Dear All
    i am using PreparedStatment for inserting data into a table, in my local system it is working fine, but after deploying in JBoss(Server) it is throwing "invalid column type" error. In order to check i tried to print in the JBoss console but i am unable print in the console, kindly help me regarding this.
    The code which i used is:
    PreparedStatement stmtPrep = conn.prepareStatement(sql);
    try {
    stmtPrep.setObject(1, number);
    stmtPrep.setObject(2, (String) passList.get("PlantCode"));
    stmtPrep.setObject(2, (String) passList.get("PlantExt"));
    stmtPrep.setObject(3, ls_per_ord_qty_ind);
    stmtPrep.setObject(4, ls_price);
    stmtPrep.setObject(5, (String) inList.get(4));
    stmtPrep.setObject(6, (String) List.get("txtStoreLoc"));
    stmtPrep.setObject(7, (String) List.get(1));
    h = (String) List.get("Price");
    float unit = Float.valueOf(h.trim()).floatValue();
    stmtPrep.setFloat(8, unit);
    System.out.println(">>>Query is>>>>>"+stmtPrep);
    Can any one guide me how to print in JBoss console this stmtPrep and check all the values that i am passing r correct r not.
    but it is throwing like this:
    15:16:30,686 INFO [STDOUT] >>>Query is>>>>>org.jboss.resource.adapter.jdbc.Wrap
    pedPreparedStatement@1056bdd

    sasikrishna wrote:
    Dear All
    i am using PreparedStatment for inserting data into a table, in my local system it is working fine, ok.
    but after deploying in JBoss(Server) it is throwing "invalid column type" error. That would seem to be a database problem to me. Schema specifically.
    In order to check i tried to print in the JBoss console but i am unable print in the console, Why does it matter since it will not help you?
    Your code specifically details the object types that you are setting.
    Presumbly the 'sql' is just a hard coded value.
    Consquently the conclusion is that the database on your local box versus the deployment is different. And nothing that you print in JBOSS will help you discover what the difference is. You need to look at the 'sql' and determine the entities from that and then compare them in the schema for both places.
    check all the values that i am passing r correct r not.As noted if that isn't a security violation for your application then you are left with the following.
    - Drivers do not necessarily create SQL.
    - If they do AND the driver is up to date then there is a method (look for it in the javadocs) that will return it
    - If not you should use a jdbc wrapper proxy that consumes the data for you. This might be better even if the driver does it.

  • Print anchored objects

    When I print a document on Indesign CS5 on pdf it prints texts, images, but not the anchored objects! Can anybody help me?

    OK, we know they aren't set to non-printing, which is too bad, 'cause that's easy to fix and now we have to find some other reason.
    Are you saying you are printing to PDF, or printing from the PDF? Do they show up if you export to PDF?

  • Background print of object connected via object services

    SAP's Object Services allows external objects (spreadsheets, Word docs, web sites, ...) to be attached to SAP documents. Some of our invoice documents have a URL attachment. Opening the URL displays a word document which is a statement of the services the vendor provided. We can manually open and print the attachments via the R/3 txn FB03 (document display).
    My main question is:
    - How can we access and print these attachments in a background process?
    Related questions include: 
    - What SAP tables are used by Object Services to store the link information? 
    - Are there Internet Explorer API's that must/can be used? 
    - Is there any SAP documentation that discusses this?
    My investigation efforts have been futile.  Any help would be appreciated.

    Hi David
    Have you managed with this issue yet? I have a similar problem where a SAP report needs be executed, downloaded to an EXCEL spreadsheet and then e-mailed to a Blackberry (PDA) (all in background). The Blackberry can only recognise EXCEL files in native EXCEL format. It does not recognise EXCEL flat files as spreadsheets (even if they are saved as .CSV or .XLS - they are word wrapped like normal text files). Getting the files converted to native format in foreground is manageable, but I haven't managed it in background yet.
    Thanks
    Frederik

  • Can I print an objects fields' values in a loop without having to cast?

    Hi,
    I have a Class with about 30 (public)fields and I need to print the values of each of them to a file. I tried the getFields() method of the Class object, but couldn't get the desired result, especially that the documentation says no order is guaranteed when using this method and I need to know have one in order to be able to read from the file when reconstriucting the object.
    I considered using the Object Streams but I need it to be in human readable format, preferably ASCII, as the fields are int, long, String, Date...
    Also the object might grow so I don't want to hardcode the writing and reading methods, would like it to be as generic as possible.
    Thanks for help

    hallo,
    have you tried XMLEncoder ; something like this (from the API docs):
    XMLEncoder e = new XMLEncoder(
    new BufferedOutputStream(
    new FileOutputStream("Test.xml")));
    e.writeObject(new JButton("Hello, world"));
    e.close();
    you can customize which parts of the objects are written, i think. otherwise, just create bean-like setter and getter methods for the fields and they should be automatically written (and read with XMLDecoder).
    ciao, -sciss-

  • Print transparent object in Word to pdf and then to printer ugly.

    Dear All,
    I have a Word document in which I have a bitmap figure. Over this bitmap I have drawn a green 50% transparent rectangle. When printing this directly from Word to the printer everything is fine, if I print it first to a pdf using Acrobat I get a pdf that looks allright (the transparency is simulated by a very fine checker board pattern) but when I then print this pdf to my printer I get interference in the transparent region, which makes this unusable. My guess is that the printer is trying to print this fine pattern and fails. The solution would be that when printing to a pdf the pdf should contain a transparent rectange instead of a checker board pattern.
    Is there anybody with the same problem or someone who knows how to solve this? Any help is appreciated!
    Thanks,
    Vincent

    Problem solved!!
    Besides the large bitmap I also had an Excel graph pasted into my Word document. This also gave problems. The solution was to shrink the size of the bitmap by first croping it and that pasting it into the Word document, and the graph from Excel has the be pasted as Windows metafile picture. Then using the PDF button in Word creates a pdf with the correct transparency objects. I cannot print the pdf right now because my printer is down but I have no doubt it will work.
    Thanks a lot!!
    Vincent

  • Print an object data in Vector to console???

    Helo, the belowing code will print the memory address preceded by "Customer".
    Actually, I want to print the name, age, and location. But it did other way. Anyone know what's the prob?
    Vector v = new Vector();
    v.addElement(new Customer("Paul", 29, "CA"));
    v.addElement(new Customer("Ton", 21, "LA"));
    for (int i=0; i<v.size(); i++){
         System.out.println(closedList.get(i));
    }Thank you. :)

    U mean i dun need to overwrite the contains, the only
    need is just the equals()? I dun know much bout
    hashCode()? Which one I should refer?You should override both hashCode() and equals() in your Customer class.
    http://java.sun.com/docs/books/tutorial/java/javaOO/objectclass.html
    http://developer.java.sun.com/developer/Books/effectivejava/Chapter3.pdf
    http://www.javaworld.com/javaworld/jw-01-1999/jw-01-object-p2.html
    http://www.javaworld.com/javaqa/2002-06/01-qa-0621-hashtable.html
    http://www-106.ibm.com/developerworks/java/library/j-jtp05273.html
    http://www.javapractices.com/Topic28.cjp

Maybe you are looking for

  • File Upload Problem in JSF

    Hi all, I have a problem in file upload. I have a file upload third party component which uploads the file with the filter action depending on the url. My requirement is to trace the uploaded filename for addressing it with the database record. So I

  • HT204053 Can't I just transfer my mobile me address

    I had a me.com e-mail adress it's going away soon, I set up an I Cloud address thats differnet. Why can't i link my old me.com to my I Cloud adress so it just flows like a river, smooth and down hill. Is there a worm in my Apple? What up with this Ap

  • Skype Number Expires In One Year?!

    Let me begin my fury by first telling you this message I got from my Skype desktop software. The Skype Number +[Skype Number] will expire on 2014-10-07. What do I need to do? You can extend your number by signing into your account. There won't be any

  • Unlimited Subscription

    i purchased unlimited calling to any country but i can only call from skype on my cell phone. its not working on my computer. why? can i not use my same account on my phone and my computer to make the unlimited calls?

  • ITunes track order problem

    I have purchased an EP by a band, featuring three songs. A month later the band released their full length album featuring the songs off of the EP. I wasn't given an option to buy the full length version, instead iTunes opted for a discounted version