Why does javadoc goes into an infinite loop

at my dos prompt , in the same directory as my Page.java file, i type javadoc Page.java
why does it go into an infinite loop? instead of producing any documentation
it just says for example
javadoc Page.java
javadoc Page.java
javadoc Page.java
javadoc Page.java
javadoc Page.java
javadoc Page.java
javadoc Page.java
javadoc Page.java
javadoc Page.java
javadoc Page.java
javadoc Page.java
Stephen

this is a sample page -- i'm using jdk 1.4 trying to run javadoc Tracer.class or javadoc Tracer.java or javadoc Tracer gives throws the console into an infinite loop with the statement being printed over and over again. But i haven't just noticed this problem with javadoc -- i noticed this problem with certain types of mistakes in the code rather than just displaying the compiler error -- it creates this infinite loop in the dos console window. any thoughts ?
here is my version.
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
* Tracer.class logs items according to the following criteria:
* 2 = goes to text file Crawler_log.txt
* 1 = goes to console window because it is higher priority.
* @author Stephen
* @version 1.0
* @since June 2002
import java.io.*;
import java.net.*;
import java.util.*;
import java.text.*;
class Tracer{
     public static void log(int traceLevel, String message, Object value)
          pout.write(getLogFileDate(new Date()) +" >" + message + " value = " + value.toString());
     public static void log(int traceLevel, String message )
          pout.write("HI HOW ARE YOU " ) ;
          pout.flush();
     //public static accessor method
     public static Tracer getTracerInstance()
          return tracerInstance;
     private static String getLogFileDate(Date d )
          String s = df.format(d);
          String s1= s.replace(',','-');
          String s2= s1.replace(' ','-');
          String s3= s2.replace(':','.');
          System.out.println("getLogFileDate() = " + s3 ) ;
          return s3;
     //private instance
     private Tracer(){
          System.out.println("Tracer constructor works");
          df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);
          date                    = new java.util.Date();
          try{
          pout = new PrintWriter(new BufferedWriter(new FileWriter("Crawler_log"+getLogFileDate(new Date())+".txt", true)));
          pout.write("**************** New Log File Created "+ getLogFileDate(new Date()) +"****************");
          pout.flush();
          }catch (IOException e){
          System.out.println("**********THERE WAS A CRITICAL ERROR GETTING TRACER SINGLETON INITIALIZED. APPLICATION WILL STOP EXECUTION. ******* ");
     public static void main(String[] argz){
     System.out.println("main method starts ");
     Tracer tt = Tracer.getTracerInstance();
     System.out.println("main method successfully gets Tracer instance tt. "+ tt.toString());
     //the next method is where it fails - on pout.write() of log method. Why ?
     tt.log(1, "HIGH PRIORITY");
     System.out.println("main method ends ");
     //private static reference
     private static Tracer tracerInstance = new Tracer();
     private static Date date     = null;
     private static PrintWriter pout = null;
     public static DateFormat df = null;
}

Similar Messages

  • My Macbook Pro will not boot up. I can hear the sound that it has started and then goes into an infinite loop.

    My Macbook Pro will not boot up. I can hear the sound that it has started and then it goes into an infinite loop.

    What model MBP and which version of OS X? Sounds as if the hard drive may have failed. If you have an installation disc, try booting with it. If your machine came with Lion or Mountain Lion, try booting to the Recovery partition - Command and R keys held down while booting.
    Clinton

  • RECTIFY_GEOMETRY goes into an infinite loop

    I have a situation where running RECTIFY_GEOMETRY on certain geometries causes the process to go into what seems an infinite loop and results in me needing to kill the session to stop it. There is obviously something about the geometry which is incorrect. Has anyone seen this before and knwo what causes RECTIFY_GEOMETRY to hang.

    Prior to 10.2.0.4, there was a bug with rectify which causes
    this problem if the geometry cannot be rectified.
    Which DB release are you on ?
    siva

  • How to Stop Message Driven Beans to go into an infinite loop

    hi,
    Am kiran peddireddy, have the following problem. When i sent a chunk of 50 messages to the MessageDrivenBean, let us say 25 have passed and at the 26th message there was a problem and could not deliver. so, it throws an exception due this the MDB goes into an infinite loop. Can anyone suggest how to stop the MDB from infinite loop. I need help for this ASAP.
    thanks,
    Kiran Peddireddy.

    To Crackers,
    You have to let the container deal with the message - expire/cancel the message after a certain number of tries. This is easy to manage in the WLS console. Which version of Weblogic has this option? 7.0 or 8.1 ?
    I didnt see this option in Weblogic 7.0!!!!!!
    Corect me if I am wrong.
    Seetesh

  • Why does messages go into Recovery Callback Queue - urgent

    Env : BPEL 10.1.3.4 , Web logic 9.2
    Scenario:
    We have a process(Lets say A) putting messages from into a MQ(lets say Q1).
    Another Application processes the messages from Q1 and puts some messages into another Queue (Q2).
    We have another process B (Lets say B) which reads from this Q2 and calls the Process A’s callback operation(using right correlation parameters) thus releasing “receive” acitivty of Process A and hence flow goes further.
    Problem :
    While the above scenario is working as expected for some cases(approx. 60%) we observed the following :
    i)     A’s receive activity is still waiting to receive a callback from B.
    ii)     All the instances where A is waiting for receive has gone to “Recovery Callback” and sits there. When we manually recover them , Process A’s receive gets executed and works as expected.
    iii)     In some cases where the flow went successfully ( ie., receive receives the callback) , receive activity received the callback long time after the message is places in Q2. ( in some cases it is 9 to 10 hrs).
    Questions:
    i)     Why does instances go into “recover callback” ? What can we do to avoid this ? ( Kindly dont suggest ways to recover, I am looking for a preventive measure)
    ii)     Process A's recieve activity sometimes receive the callback after some 9 hrs and the flow passes on. I am wondering how can this happen as "synchMaxTime" is set to 900 secs in our case ( 15 mins). I thought any instance waiting for more than 15 mins for callback should have got timedout. Is this setting only for synch calls ?
    Few other things
    1. The Process B listening to Q2 is having a delay between messages as 3.66 secs . This is to throttle messages coming so quick to bpel as it may not have sufficent threads to process all of them at a time.
    2. synchMaxTime in the Domains = 900 s
    3. JTA Timeout in weblogic server is 3000 seconds.
    This is very urgent , Kindly help with any input / suggestion you have ASAP. Thanks.
    Regards,
    Sridhar.
    Edited by: Sridhar-SOA on Jul 27, 2011 2:38 AM

    Any Updates ?

  • When I try to send a photo, why does it go into my outbox?

    When I try to send a photo, why does it go into my outbox?

    assuming you mean send a photo by email.
    a photo can be quite large and contain a lot of data. depending on your connection it can sometimes take a while to send. As long as a red exclamation doesn't appear it will send. the outbox indicates mail going out, hence outbox.

  • I run into an infinite loop when I try and use this print method

    Hi,
    I have the following class. If i run it in stand alone, everything works out great. However, if I call it from a much larger application (which is why I have built this class), I run into an infinite loop. I have no idea why, but I have pinpointed it to the line: tableView.getTableHeader().paint(g2);
    Any help is greatly appreciated. I have been tryin to figure this out for a week now, and I havent gotten anywhere. It makes no sense to me, since this works as a standalone application, but if i put a method similar to the main() inside a much larger application, I end up with an inifinite loop.
    Thanks again!
    import javax.swing.table.AbstractTableModel;
    import javax.swing.*;
    import java.awt.print.*;
    import java.awt.*;
    import java.util.Iterator;
    import java.util.ArrayList;
    public class printTableTest implements Printable, Pageable {
         private PageFormat pf;
         private String[] headers = { "Heading 1", "Heading 2", "Heading 3"};
         private ArrayList<Object[][]> data = new ArrayList<Object[][]>();
         public printTableTest(PageFormat format) {
              this.pf = format;
                                               this.setObjects();
         public int getNumberOfPages() {
            return 1;
        public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException {
            return pf;
         public void setObjects() {
              for(int x=0; x < 3; x++) {
                   int ndx = 0;
                   Object[][] tempData = new Object[2][3               for (; ndx < 2 ; ) {
                        tempData[ndx] = new Object[] { "col 1: " + x, "col 2: " + x, "col 3: " + x };
                        ndx++;
                   data.add(tempData);
        public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException {
            return this;
         public int print(Graphics g, PageFormat format, int pageIndex) throws PrinterException {
              JFrame frame = null;
              JTable tableView = null;                                                       System.err.println("here");
              Graphics2D g2 = (Graphics2D) g;
              //Object[][] data = new Object[3][3];
              g2.setColor(Color.black);
              g2.translate(format.getImageableX() + 72, format.getImageableY() + 72);
              for(int x=0; x < data.size(); x++) {
                   tableView = new JTable(new PrintTableModel(headers, data.get(x)));
                   frame = new JFrame();
                   JScrollPane scrollpane = new JScrollPane(tableView);
                   scrollpane.setPreferredSize(new Dimension(300, 80));
                   frame.getContentPane().setLayout(new BorderLayout());
                   frame.getContentPane().add(BorderLayout.CENTER,scrollpane);
                   frame.pack();
                   tableView.paint(g2);
                   g2.translate(0, - tableView.getTableHeader().getHeight());
                   tableView.getTableHeader().paint(g2);
                   g2.translate(0, format.getImageableHeight()/3);
              return Printable.PAGE_EXISTS;
         public static void main(String args[]) {
             PrinterJob printerJob = PrinterJob.getPrinterJob();
              printTableTest pp = new printTableTest( printerJob.defaultPage());
              printerJob.setPageable(pp);
              boolean doPrint = printerJob.printDialog();
              if (doPrint) {
                   try {
                        printerJob.print();
                   } catch (PrinterException exception) {
                        System.err.println("Printing error: " + exception);
             System.exit(0);
         private class PrintTableModel extends AbstractTableModel {
              private Object[][] data = null;
              private String[] headers = null;
              public PrintTableModel(String[] headers, Object[][] data) {
                   this.headers = headers;
                   this.data = data;
              public int getColumnCount() { return headers.length; }
              public int getRowCount() { return data.length; }
              public Object getValueAt(int row, int col) { return data[row][col]; }
              public String getColumnName(int column) { return headers[column]; }
              public Class getColumnClass(int col) { return getValueAt(0,col).getClass(); }
              public boolean isCellEditable(int row, int col) { return false; }
              public void setValueAt(Object aValue, int row, int column) { data[row][column] = aValue; }
    }

    Log the parameters passed to my print method?
    The only parameter that would be relevant would be the pageNumber, and I can tell you that it continues to loop. Here is an example of the output:
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    Page: 0
    and here is the Thread Trace:
    AWT-EventQueue-0@42f prio=6, in group "main", status: WAIT
           wait():-1, Object.java
           wait():474, Object.java
           getNextEvent():345, EventQueue.java
           pumpOneEventForHierarchy():189, EventDispatchThread.java
           pumpEventsForHierarchy():163, EventDispatchThread.java
           pumpEvents():157, EventDispatchThread.java
           pumpEvents():149, EventDispatchThread.java
           run():110, EventDispatchThread.java
    AWT-Shutdown@430 prio=5, in group "main", status: WAIT
           wait():-1, Object.java
           wait():474, Object.java
           run():259, AWTAutoShutdown.java
           run():595, Thread.java
    Java2D Disposer@2a0 daemon prio=10, in group "main", status: WAIT
           wait():-1, Object.java
           remove():116, ReferenceQueue.java
           remove():132, ReferenceQueue.java
           run():107, Disposer.java
           run():595, Thread.java
    AWT-Windows@fc daemon prio=6, in group "main", status: RUNNING
           eventLoop():-1, WToolkit.java
           run():269, WToolkit.java
           run():595, Thread.java
    Signal Dispatcher@2a2 daemon prio=10, in group "system", status: RUNNING
    Finalizer@2a3 daemon prio=8, in group "system", status: WAIT
           wait():-1, Object.java
           remove():116, ReferenceQueue.java
           remove():132, ReferenceQueue.java
           run():159, Finalizer.java
    Reference Handler@2a4 daemon prio=10, in group "system", status: WAIT
           wait():-1, Object.java
           wait():474, Object.java
           run():116, Reference.java
    main@1 prio=5, in group "main", status: RUNNING
           print():68, printTableTest.java
           redrawRegion():906, WPathGraphics.java
           printPage():1817, RasterPrinterJob.java
           print():1334, RasterPrinterJob.java
           print():1196, RasterPrinterJob.java
           main():1922, TOLMainFrame.java

  • Firefox goes into an endless loop with blue circular cursor at various times when trying to load a file.

    Firefox hangs up at times when I try to download a file. The hangup is evidenced by the Windows 7 spinning blue cursor going into an endless loop. The only way out if it is with "ctrl/alt/del". Sometimes I can cancel, and Firefox will be normal again, and other times I have to go on into "Taskmaster" and stop the process.

    Similar problem. An Email includes a URL, clicking on brings up a message including "click here" to link to an additional site.
    This bring up either the Windows7 rotating cursor and/or the message "stopped".
    I copied the "click here" address (another URL) and pasted it into the IE8 browser, which succeeded in displaying the information. It worked, to my surprise but it is clumsy. Do I have to remove Firefox (3.6.6) and use only IE8?
    Another system on my home network, using XP Home SP2, and FF 3.6.4 works fine in the same circumstances

  • Why does Safari go into limbo when I try to search for some things?

         Why does Safari go into limbo when I try to search for some things? I start to enter something in the search window. I get a drop down with suggestion I choose one and it pops up in my search window but just turns a color and does nothing!
        If I quit Safari and bring it back up, then enter the exact same line it's fine. This is just one of the many problems I've been
    having with Safari since I installed Yosemite.
         Has anyone got any suggestions or is anyone having the same problem. Is there a way to maybe force my MacBook pro to reinstall Safari or possibly all of Yosemite. I seem to be having a lot of problems and judging by the responses I've received (That would be None) I must be the only one having any problem at all withYosemite. Not sure what to do.
         Any help or suggestions would be great
         Ron     

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I updated my Iphone 5 to iOS7 but during setup when i agree to 'Terms and Conditions', its not going to any other screen, it seems as if its going in some infinite loop. Please assist what to do in that case ?

    I updated my Iphone 5 to iOS7 but during setup when i agree to 'Terms and Conditions', its not going to any other screen, it seems as if its going in some infinite loop. Please assist what to do in that case ?

    I am having a really wierd issue as well that is probally related. I dont see 95% of the album artwork associated with my music. Also, it seems as if this has gotten worse since I started using that match feature

  • On ipod touch why does imessage go into my email?

    on ipot touch why does imessage go into my email instead of imessage?

    - Try inserting and removing the headphone plug a dozen or so times.
    - Next try a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod
    If you still have the problem that indicates a hardware problem, like a bad headphone jack.

  • Can anyone figure out why this runs into an infinite loop?

    Hi,
    I have the following class, and if i run it, I encounter an infinite loop. I have pinpointed the problem and it is because of the lines:
    try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception exp) {
                   System.err.println("Failed");
                exp.printStackTrace();
            }Here is the class. Any and all help is greatly appreciated. Thanks!
    package org.aemf.clinical.tol.gui.printing;
    import org.aemf.clinical.tol.model.TOLBion;
    import org.aemf.clinical.tol.model.Range;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.*;
    import java.awt.print.*;
    import java.awt.*;
    import java.util.Iterator;
    import java.util.ArrayList;
    * Created by IntelliJ IDEA.
    * User: arashn
    * Date: Feb 9, 2005
    * Time: 1:26:38 PM
    public class printTableTest implements Printable, Pageable {
         private PageFormat pf;
         private String[] headers = { "Heading 1", "Heading 2", "Heading 3"};
         private java.util.List bions = null;
         private ArrayList<Object[][]> data = new ArrayList<Object[][]>();
         public printTableTest(PageFormat format) {
              this.pf = format;
         public int getNumberOfPages() {
            return 1;
        public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException {
            return pf;
         public void setBions(java.util.List b) {
              bions = b;
              for(int x=0; x < 3; x++) {
                   //TOLBion bion = (TOLBion) bions.get(x);
                   int ndx = 0;
                   //Object[][] tempData = new Object[bion.getNumRanges()][3];
                   Object[][] tempData = new Object[2][3];
              //     for (Iterator itr = bion.getRanges(); ndx < 2 && itr.hasNext(); ) {
                   for (; ndx < 2 ; ) {
                   // Range range = (Range)itr.next();
                        //tempData[ndx] = new Object[] { new Integer(range.getFrequency()), range.getLowerBound(), range.getUpperBound() };
                        tempData[ndx] = new Object[] { "col 1: " + x, "col 2: " + x, "col 3: " + x };
                        ndx++;
                   data.add(tempData);
        public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException {
            return this;
         public int print(Graphics g, PageFormat format, int pageIndex) throws PrinterException {
              if(pageIndex > 1) {
                   return Printable.NO_SUCH_PAGE;
                                                                              System.err.println("Page: " + pageIndex);
              JFrame frame = null;
              JTable tableView = null;
              Graphics2D g2 = (Graphics2D) g;
              //Object[][] data = new Object[3][3];
              g2.setColor(Color.black);
              g2.translate(format.getImageableX() + 72, format.getImageableY() + 72);
              for(int x=0; x < data.size(); x++) {
                   tableView = new JTable(new PrintTableModel(headers, data.get(x)));
                   frame = new JFrame();
                   JScrollPane scrollpane = new JScrollPane(tableView);
                   scrollpane.setPreferredSize(new Dimension(300, 80));
                   frame.getContentPane().setLayout(new BorderLayout());
                   frame.getContentPane().add(BorderLayout.CENTER,scrollpane);
                   frame.pack();
                   tableView.paint(g2);
                   g2.translate(0, - tableView.getTableHeader().getHeight());
                   tableView.getTableHeader().paint(g2);
                   g2.translate(0, format.getImageableHeight()/3);
              return Printable.PAGE_EXISTS;
         public static void main(String args[]) {
              PrinterJob printerJob = PrinterJob.getPrinterJob();
              try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception exp) {
                   System.err.println("Failed");
                exp.printStackTrace();
             int INCH = 72;
              double LETTER_WIDTH = 8.5 * INCH;
              double LETTER_HEIGHT = 11 * INCH;
            Paper paper = new Paper();
              int margin = INCH/6; // << set your margins here
              double pageWidth = LETTER_WIDTH - 2 * margin;
              double pageHeigth = LETTER_HEIGHT - 2 * margin;
              paper.setImageableArea(margin, margin, pageWidth, pageHeigth) ;
              PageFormat format = printerJob.defaultPage();
              format.setPaper(paper);
            printTableTest pp = new printTableTest(format);
            pp.setBions(new ArrayList());
              printerJob.setPageable(pp);
              boolean doPrint = printerJob.printDialog();
              if (doPrint) {
                   try {
                        printerJob.print();
                   } catch (PrinterException exception) {
                        System.err.println("Printing error: " + exception);
             System.exit(0);
         private class PrintTableModel extends AbstractTableModel {
              private Object[][] data = null;
              private String[] headers = null;
              public PrintTableModel(String[] headers, Object[][] data) {
                   this.headers = headers;
                   this.data = data;
              public int getColumnCount() { return headers.length; }
              public int getRowCount() { return data.length; }
              public Object getValueAt(int row, int col) { return data[row][col]; }
              public String getColumnName(int column) { return headers[column]; }
              public Class getColumnClass(int col) { return getValueAt(0,col).getClass(); }
              public boolean isCellEditable(int row, int col) { return false; }
              public void setValueAt(Object aValue, int row, int column) { data[row][column] = aValue; }
    }

    I have managed to create an even simpler version which tries to print the same header 3 times. Again, if you remove the setLookAndFeel line, everything works out great.
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.print.*;
    import java.awt.*;
    * Created by IntelliJ IDEA.
    * User: arashn
    * Date: Feb 9, 2005
    * Time: 1:26:38 PM
    public class printTableTest implements Printable, Pageable {
         private PageFormat pf;
         public printTableTest(PageFormat format) {
              this.pf = format;
         public int getNumberOfPages() {
            return 1;
        public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException {
            return pf;
        public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException {
            return this;
         public int print(Graphics g, PageFormat format, int pageIndex) throws PrinterException {
              if(pageIndex > 1) {
                   return Printable.NO_SUCH_PAGE;
              System.err.println("Printing Page: " + pageIndex);
              Graphics2D g2 = (Graphics2D) g;
              g2.setColor(Color.black);
              g2.translate(format.getImageableX() + 72, format.getImageableY() + 72);
              DefaultTableColumnModel dtcm = new DefaultTableColumnModel();
              TableColumn tc = new TableColumn();
              tc.setHeaderValue("Heading 1");
              dtcm.addColumn(tc);
              tc.setHeaderValue("Heading 2");
              dtcm.addColumn(tc);
              tc.setHeaderValue("Heading 2");
              dtcm.addColumn(tc);
              JTableHeader tableHeader = new JTableHeader(dtcm);
              JScrollPane scrollpane2 = new JScrollPane(tableHeader);
              scrollpane2.setPreferredSize(new Dimension(300, 80));
              JFrame frame2 = new JFrame();
              frame2.getContentPane().add(BorderLayout.NORTH,scrollpane2);
              frame2.pack();
              for(int x=0; x < 3; x++) {                   
                   tableHeader.paint(g2);
                   g2.translate(0, format.getImageableHeight()/3);
              return Printable.PAGE_EXISTS;
         public static void main(String args[]) {
              PrinterJob printerJob = PrinterJob.getPrinterJob();
              try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception exp) {
                   System.err.println("Failed");
                exp.printStackTrace();
             int INCH = 72;
              double LETTER_WIDTH = 8.5 * INCH;
              double LETTER_HEIGHT = 11 * INCH;
            Paper paper = new Paper();
              int margin = INCH/6; // << set your margins here
              double pageWidth = LETTER_WIDTH - 2 * margin;
              double pageHeigth = LETTER_HEIGHT - 2 * margin;
              paper.setImageableArea(margin, margin, pageWidth, pageHeigth) ;
              PageFormat format = printerJob.defaultPage();
              format.setPaper(paper);
            printTableTest pp = new printTableTest(format);
              printerJob.setPageable(pp);
              boolean doPrint = printerJob.printDialog();
              if (doPrint) {
                   try {
                        printerJob.print();
                   } catch (PrinterException exception) {
                        System.err.println("Printing error: " + exception);
             System.exit(0);
    }

  • How to cancel a bpm running into an infinite loop

    Hi all,
    I have a business process in my file to file scenario and I am using a while loop to
    process the messages and it is going into infinite loop.
    Now I have corrected the problem and when I reprocess it ,it is using the same original condition for it again the infinite loop.
    So what I understood is I need to cancel out the previous business process which is running into infinite loop .so can you please help me out how do I stop the message processing (and it is not error status also).i,e the business process before I start the fresh test case.
    Thanks in advance,
    Vengal.

    Hi Vengal,
    You can put a condition inside the loop, and whenever that condition will met, it will exit from the loop.
    First of all declare one integer (Int_temp) under container operation.
    Inside the container operation properties, give the variable name and other info as shown below:
    <u><b>Container Operation</b></u>
    Target -
    > Int_temp
    Operation -
    > Assign
    Expression------> Int_temp
    Operator -
    > +
    Experssion -
    > '1'
    Now inside loop properties you can write the condition as shown below:
    Condition -
    > <b>(Int_temp &#8800; 2)</b> (this is just an example)
    The efect of this condition will be on loop till <b>Int_temp</b> is not equal to 2, as soon as it will become 2, it will exit from the loop.
    above is one simple example, there can be several methods.
    I hope it will help you.
    Regards,
    Sarvesh
    ****Reward Points, if found helpfull.

  • I am trying to update my iphone software from 4.2.5 through my Mac but am not successful.  It just goes into a continuous loop saying that there is an update available and to install and restart but the update never happens.

    I am unable to update my iphone software 4.2.5 to the latest version through my Mac.  I get into a continuous loop of clicking on update and getting the message to restart the computer.  But nothing updates. 

    I imagine you are talking about iPhone 4 CDMA (Verizon, Sprint). iTunes will only allow Update or Restore to iOS 6.0.1 You need to update iTunes on your computer to current version 10.7, with computer click the iTunes Tab at the top of this page and install current iTunes 10.7 If this iTunes will not install you may need to update your computer System, or try a different computer.

  • Updates will not download anymore even though the computer meets all the requirements and it goes into and endless loop of connecting to the server, why?

    Firefox used to update automatically as it's set-up to do. Now it shows an update for security and asks to download it. Then it won't download it. The box shows a bar that continually shows that it's in motion and the message says that it's trying to connect to the server but it never does. I checked the system requirements for the download and it has the requirements. Your help information doesn't give an answer for this problem. I would need to talk to someone who can help. Is that at all possible? Thanks, chezo7

    You '''can not''' download version 8.0.x, the latest for your PPC MAC is the 3.6.24 version.
    Firefox 4 versions and later do not run on a PowerPC Mac. Firefox 4 and later require at least OS X 10.5 and an Intel Mac.
    http://www.mozilla.org/en-US/firefox/8.0/system-requirements/
    3.6.24 version you can download from here:
    http://www.mozilla.org/en-US/firefox/all-older.html
    by the way a group of Mac users have created their own Community Build from the "Firefox 4+" versions.
    TenFourFox for PPC's running Mac 10.4.11 & 10.5.8 .
    http://www.floodgap.com/software/tenfourfox/
    http://tenfourfox.blogspot.com/
    also see:
    http://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

Maybe you are looking for

  • Supressing the parameter form when calling report from form...

    Hi everybody I call a report from a form passing a parameter. After pressing the button, the runtime parameter from appears. How do I suppress it so that the report appears right after pressing the button??? Thanks Serguei

  • This operation can't be completed because the item is in use.

    I have been researching this for months and no one seems to have an answer, lots of discussions but never a result. 1 - I have a MacBook Pro running Lion (I tried it with Leopard too) 2 - I have an external Iomega raid drive which is being used as a

  • Error in BAPI_SAG_CREATE

    Hi, I'm getting the below error while using using BAPI_SAG_CREATE : No instance of object type PurchSchedAgreement has been created. External reference: # 1 I'm trying to cerate scheduling agreement. If anyone has worked on similar issue, plz advise.

  • Strange permission settings that are unchangeable

    Hi guys. I have been searching for hours to try and find this answer, but I have been unable to - hence my post. After doing a Leopard upgrade many months ago I had transfered about 300gb of files over to my external drive. I went to start using them

  • Converting pdf files on a mac

    How do I convert a pdf into a word, excel or jpg file with my OS X 10.9.3 Mac?