Java and Display Issues in Plus

Hi everyone
Please reply whether you have or have not seen any of the following:
I'm working on a client site where we have some machines working just fine and others are giving corbaserver errors. Copying data from a worksheet into Excel using CTRL-C | CTRL-V does not seem to work for some machines and so they have to use the Copy and Paste buttons. Curiously, when they do this they get an additional empty column whereas on the machines where CTRL-C | CTRL-V works they don't get the blank column.
The other issue we are seeing is that after a short period of time, Plus stops running the queries automatically. Any change the user makes, such as adding a new item, adding a sort, moving a column position does not take effect until the Refresh button is clicked.
There is a combination of IE6 and IE7, with all machines being XP with most on SP2 and many on SP3.
I am suspicious of the XP SP3 when combined with IE7 but would like to know whether anyone else has experienced issues. We are running 10.1.2.3 with CP4 and our Java is Sun 1.6.0_15
Please reply with either a we are having no problems with this combination or whether you have noticed similar issues. If you have seen issues and got a fix or workaround please let me know. I'm also interested in knowing which combination of Java, Discoverer, operating system and IE works for you.
Best wishes
Michael

Michael,
Our production server was recently upgraded to 10.1.2.3, CP5 with Java 1.4.2_06. Prior to this upgrade we recommended that users function with I.E. 6.0 and Firefox 2.0. We experienced issues with later browser versions. On my personal workstation I have Windows XP, SP2, I.E. 6.0, Firefox 2.0 and now Java 1.6.0_16. We are now testing the later version of Java on our test OAS. And we are testing out the later browser versions as we speak. The first thing that I would recommend is to add the Java Runtime parameter of -Xmx256M, in the Java Control Panel. I had some session locks prior to my adding this parameter. I am testing access to both servers with Java 6 installed on my workstation. Access to Java 6 performed better after I added the runtime parameters. Access to Java 4 with I.E. gives a warning message and performs very slowly. Mozilla Firefox does to seem to care, no warning and similar performance as Java 6 on the server side. I have not done very much testing with I.E. 7.0 and Firefox 3.0 as of yet with the newer Java version. I am now accessing that environment and it is running very slowly. Part of the issue may be my PC performance but I do not like what I see. Way too slow. This is the browser functionality not the workbook execution time. I added the Java Runtime parameter of
-Xmx256M and it now performs better.
I did the Ctrl-C|Ctrl-V with both I.E. and Firefox and did not experience the problem you discribed. I aslo did not encounter the other problems that you reported. We the corbaserver errors in a Discoverer pop-up window, Java Console or OEM session log?
You may be correct with the SP3 as being at least one of the culprits. I do not have that patch on either workstation so I cannot test for you.
Jerre

Similar Messages

  • Running Interactive commands in java and displaying the output.

    Hi All,
    I'm running a sample code to execute a user defined command (cmd1) and display the results. The output of the command when executed in command prompt is
    (1) Executing the command cmd1
    (2) Do you want to continue(Y/N)_ <waits for user input>
    (3) Based on user input
    (Y) Displays the results
    (N) Interrupted
    But i'm facing problem when i execute the below code. When the results are being displayed instead of displaying line(1) and (2) and then waiting for the input- the code waits for the input and then only displays the results.
    O/p
    inside output
    inside input
    y (------ gets the input and then only displays the results).
    Executing the command cmd1
    Do you want to continue(Y/N)
    results
    Please help out how to resolve this issue.
    Thanks.
    Sample Code for reference.
    import java.util.*;
    import java.io.*;
    public class SampleCheck {
         public static void main(String[] args) throws Exception {
              (new SampleCheck()).test();
         void test() throws Exception {
              Process proc = Runtime.getRuntime().exec("cmd1");
              // any error from the process?
              StreamHandlerErr errorStream = new StreamHandlerErr(proc
                        .getErrorStream(), System.err);
              // any output from the process?
              StreamHandlerOutput outputStream = new StreamHandlerOutput(proc
                        .getInputStream(), null);
              // any input to the process?
              // FileInputStream fin = new FileInputStream(new File("textfile1.txt"));
              StreamHandlerInput inputStream = new StreamHandlerInput(System.in, proc
                        .getOutputStream());
              // start the stream threads
              // errorStream.start();
              outputStream.start();
              inputStream.start();
              // wait till it returns
              int exitVal = proc.waitFor();
              System.exit(exitVal);
         class StreamHandlerInput extends Thread {
              InputStream is;
              OutputStream os;
              StreamHandlerInput(InputStream is, OutputStream os) {
                   this.is = is;
                   this.os = os;
              public void run() {
                   System.out.println("inside input");
                   try {
                        int c;
                        while ((c = is.read()) != -1) {
                             os.write(c);
                             System.out.println("c= " + c);
                             os.flush();
                   } catch (IOException e) {
                   System.out.println("End of Run Method..Input");
         class StreamHandlerOutput extends Thread {
              InputStream is;
              OutputStream os;
              File f=new File("jbsrt_output.txt");
              StreamHandlerOutput(InputStream is, OutputStream os) {
                   this.is = is;
                   this.os = os;
              public void run() {
                   System.out.println("inside output");
                   try {
                        int c;
                        FileOutputStream fs=new FileOutputStream(f);
                        /*PrintStream ps =new PrintStream(;
                        ps.print(arg0)
                        ps.close();*/
                        InputStreamReader ir = new InputStreamReader(is);
                        //System.out.println(ir.read());
                        BufferedReader br = new BufferedReader(ir);
                        String line = null;
                        while((line=br.readLine())!=null)
                             System.out.println(line);
                   } catch (Exception e) {
                   System.out.println("End of Run Method..Output");
         class StreamHandlerErr extends Thread {
              InputStream is;
              OutputStream os;
              StreamHandlerErr(InputStream is, OutputStream os) {
                   this.is = is;
                   this.os = os;
              public void run() {
                   System.out.println("inside Err");
                   try {
                        int c;
                        while ((c = is.read()) != -1) {
                             os.write(c);
                             os.flush();
                   } catch (IOException e) {
                   System.out.println("End of Run Method..Err");
    }

    Console input is line buffered. This means you only get the first character a line after the newline has been inputed.
    The same thing happen if you just type on the console.
    I am not aware of any simple way around this.
    IDEs get around this by changing the application run so that the input/output is captured as it happens and sent over a socket connection.

  • MacBook Pro Startup and Display Issues

    I've been having some random problems with my MacBook Pro (2.16 GHz, 2 GB RAM, 100 GB 7200 rpm hard drive, ATI Radeon X1600 graphics). Specifically:
    1. Lines across the screen and purple boxes sometimes appear.
    2. The graphic effects (e.g. zooming a window) sometimes get "frozen" on the screen. In other words a remnant from the animation will stay until the window is refreshed.
    3. The Mac sometimes freezes during the startup process. Sometimes the login screen will be unresponsive and other times the Mac will almost bootup but fail when loading startup items.
    4. Less frequently the Mac will freeze randomly. I previously had iStat Menus installed and each time the MacBook Pro froze up it indicated both read and write disk activities.
    Yesterday I decided to wipe the machine clean and start from scratch in case there were a software issue or corruption on the hard drive that was causing my woes. I completely erased my hard drive and even zeroed the entire disk to make sure everything was completely wiped out. I also disconnected all peripherals to simplify things as much as possible.
    The first time I tried the reinstall everything completed successfully but the "Welcome" movie froze part way through. I then had problems running the install again. I was able to boot off the Leopard DVD, but the machine froze a couple of clicks into the install procedure. After numerous tries I was able to erase the hard drive once again and install Leopard. This completed successfully and I installed all updates.
    The problems started to show up again almost immediately, however. I installed iLife and iWork and all the updates and had the computer freeze up on me again during a reboot. I also noticed that the display issues started to show up again even before installing any third-party software.
    I've tried running disk tests with Drive Genius 2.1, but no errors have been reported. I've also used the freeware Rember program to run memory tests but have yet to see any errors. Sometimes my Mac powers up without any problems and once it's powered up it often stays running for days. The display issues appear quite frequently. I've using iStat Menus to keep an eye on the temperature sensors and everything appears to be normal - so it doesn't appear to be temperature related.
    Fortunately the computer's still covered under the extended AppleCare warranty, but I would like to have some idea what's going on before I take it in just in case they're not able to reproduce the issues.
    Any suggestions and insights would be GREATLY appreciated. Thanks in advance for reading my rather long-winded message.
    Cheers,
    Tim

    I took my MacBook Pro in for repair and it turned out to be an issue with the logic board. I had the logic board replaced (fortunately it was covered under my extended AppleCare warranty) and these problems are a thing of the past.

  • New to java and having issues trying to modify sample code.

    i was trying to edit the following code to add about 10+ more labels and textfields and save the information to the contacts.dat in the code. it currently displays all the fields i entered, but it only saves the first 7 fields information?? not sure why. also i was trying to just line the fields up using a flowlayout but it just errors. anyone have any suggestions?
    <source code below this line>
    ====================START OF CODE ======================
    // cm.java
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    // =========================================================
    // Class: cm
    // This class drives the contact manager. It contains the
    // main method which gets called as soon as this application
    // begins to run.
    // =========================================================
    class cm extends Frame implements ActionListener
    // Container of contact objects (one object per business
    // contact).
    private Vector contacts = new Vector (100);
    // List of names component. (Must specify java.awt in
    // front of List to distinguish the List class in the
    // java.awt package from the List class in the java.util
    // package.)
    private java.awt.List names = new java.awt.List ();
    // delete and edit button components.
    private Button delete;
    private Button edit;
    // Default constructor.
    public cm ()
    // Assign Contact Manager to title bar of frame window.
    super ("Customer Manager Version 0.001 BY Pebkac");
    // Add a listener that responds to window closing
    // events. When this event occurs (by clicking on the
    // close box in the title bar), save contacts and exit.
    addWindowListener (new WindowAdapter ()
    public void windowClosing
    (WindowEvent e)
    saveContacts ();
    System.exit (0);
    // Place an empty label in the north part of the frame
    // window. This is done to correct an AWT positioning
    // problem. (One thing that you'll come to realize as
    // you work with the AWT is that there are lots of bugs.)
    Label l = new Label ();
    add ("North", l);
    // Place the names component in the center part of the
    // frame window.
    add ("Center", names);
    // Create a panel object to hold four buttons.
    Panel p = new Panel ();
    Button b;
    // Add an add button to the Panel object and register
    // the current cm object as a listener for button events.
    p.add (b = new Button ("add"));
    b.addActionListener (this);
    // Add a delete button to the Panel object and register
    // the current cm object as a listener for button events.
    p.add (delete = new Button ("delete"));
    delete.addActionListener (this);
    // The delete button should be disabled until there is at
    // least one contact to delete.
    delete.setEnabled (false);
    // Add an edit button to the Panel object and register
    // the current cm object as a listener for button events.
    p.add (edit = new Button ("edit"));
    edit.addActionListener (this);
    // The edit button should be disabled until there is at
    // least one contact to edit.
    edit.setEnabled (false);
    // Add a quit button to the Panel object and register
    // the current cm object as a listener for button events.
    p.add (b = new Button ("quit"));
    b.addActionListener (this);
    // Add the panel object to the frame window container.
    add ("South", p);
    // Set the background of the frame window container to
    // pink (to give a pleasing effect).
    setBackground (Color.pink);
    // Set the size of the frame window container to 400
    // pixels horizontally by 200 pixels vertically.
    setSize (400, 200);
    // Do not allow the user to resize the frame window.
    setResizable (false);
    // Load all contacts.
    loadContacts ();
    // Make sure that the frame window is visible.
    setVisible (true);
    public void actionPerformed (ActionEvent e)
    if (e.getActionCommand ().equals ("delete"))
    delete ();
    else
    if (e.getActionCommand ().equals ("quit"))
    saveContacts ();
    System.exit (0);
    else
    if (e.getActionCommand ().equals ("add"))
    add ();
    else
    edit ();
    public Insets getInsets ()
    // Return an Insets object that describes the number of
    // pixels to reserve as a border around the edges of the
    // frame window.
    return new Insets (10, 10, 10, 10);
    public static void main (String [] args)
    // Create a new cm object and let it do its thing.
    new cm ();
    private void delete ()
    // Obtain index of selected contact item from the names
    // component.
    int index = names.getSelectedIndex ();
    // If no item was selected, index is -1. We cannot edit
    // a contact if no contact item in the names component was
    // selected - because we would have nothing to work with.
    if (index != -1)
    // Remove the contact item from the names component.
    names.remove (index);
    // Remove the Contact object from the contacts Vector
    // object.
    contacts.remove (index);
    // If there are no more contacts ...
    if (contacts.size () == 0)
    delete.setEnabled (false);
    edit.setEnabled (false);
    else
    // Make sure that the first contact item in the names
    // list is highlighted.
    names.select (0);
    private void add ()
    // Create an add data entry form to enter information
    // for a new contact.
    DataEntryForm def = new DataEntryForm (this, "add");
    // If the bOk Boolean flag is set, this indicates the user
    // exited the form by pressing the Ok button.
    if (def.bOk)
    // Create a Contact object and assign information from
    // the form to its fields.
    Contact temp = new Contact ();
    temp.fname = new String (def.fname.getText ());
    temp.lname = new String (def.lname.getText ());
    temp.haddress = new String (def.haddress.getText ());
    temp.maddress = new String (def.maddress.getText ());
    temp.phone = new String (def.phone.getText ());
    temp.wphone = new String (def.wphone.getText ());
    temp.cphone = new String (def.cphone.getText ());
    temp.email = new String (def.email.getText ());
    temp.bdate = new String (def.bdate.getText ());
    temp.comments = new String (def.comments.getText ());
    // Add a new contact item to the names component.
    names.add (temp.lname + ", " + temp.fname);
    // Add the Contact object to the contacts Vector
    // object.
    contacts.add (temp);
    // Make sure that the delete and edit buttons are
    // enabled.
    delete.setEnabled (true);
    edit.setEnabled (true);
    // Destroy the dialog box.
    def.dispose ();
    // Make sure that the first contact item in the names list
    // is highlighted.
    names.select (0);
    // ===========================================================
    // Load all contacts from contacts.dat into the contacts
    // Vector object. Also, make sure that the last name/first
    // name from each contact is combined into a String object and
    // added into the names component - as a contact item.
    // ===========================================================
    private void loadContacts ()
    FileInputStream fis = null;
    try
    fis = new FileInputStream ("contacts.dat");
    DataInputStream dis = new DataInputStream (fis);
    int nContacts = dis.readInt ();
    for (int i = 0; i < nContacts; i++)
    Contact temp = new Contact ();
    temp.fname = dis.readUTF ();
    temp.lname = dis.readUTF ();
    temp.haddress = dis.readUTF ();
    temp.maddress = dis.readUTF ();
    temp.phone = dis.readUTF ();
    temp.wphone = dis.readUTF ();
    temp.cphone = dis.readUTF ();
    temp.email = dis.readUTF ();
    temp.bdate = dis.readUTF ();
    temp.comments = dis.readUTF ();
    names.add (temp.lname + ", " + temp.fname);
    contacts.add (temp);
    if (nContacts > 0)
    delete.setEnabled (true);
    edit.setEnabled (true);
    catch (Exception e)
    finally
    if (fis != null)
    try
    fis.close ();
    catch (Exception e) {}
    // Make sure that the first contact item in the names list
    // is highlighted.
    names.select (0);
    // ========================================================
    // Save all Contact objects from the contacts Vector object
    // to contacts.dat. The number of contacts are saved as an
    // int to make it easy for loadContacts () to do its job.
    // ========================================================
    private void saveContacts ()
    FileOutputStream fos = null;
    try
    fos = new FileOutputStream ("contacts.dat");
    DataOutputStream dos = new DataOutputStream (fos);
    dos.writeInt (contacts.size ());
    for (int i = 0; i < contacts.size (); i++)
    Contact temp = (Contact) contacts.elementAt (i);
    dos.writeUTF (temp.fname);
    dos.writeUTF (temp.lname);
    dos.writeUTF (temp.haddress);
    dos.writeUTF (temp.maddress);
    dos.writeUTF (temp.phone);
    dos.writeUTF (temp.wphone);
    dos.writeUTF (temp.cphone);
    dos.writeUTF (temp.email);
    dos.writeUTF (temp.bdate);
    dos.writeUTF (temp.comments);
    catch (Exception e)
    MsgBox mb = new MsgBox (this, "CM Error",
    e.toString ());
    mb.dispose ();
    finally
    if (fos != null)
    try
    fos.close ();
    catch (Exception e) {}
    private void edit ()
    // Obtain index of selected contact item from the names
    // component.
    int index = names.getSelectedIndex ();
    // If no item was selected, index is -1. We cannot edit
    // a contact if no contact item in the names component was
    // selected - because we would have nothing to work with.
    if (index != -1)
    // Obtain a reference to the Contact object (from the
    // contacts Vector object) that is associated with the
    // index.
    Contact temp = (Contact) contacts.elementAt (index);
    // Create and display an edit entry form.
    DataEntryForm def = new DataEntryForm (this, "edit",
    temp.fname,
    temp.lname,
    temp.haddress,
    temp.maddress,
    temp.phone,
    temp.wphone,
    temp.cphone,
    temp.email,
    temp.bdate,
    temp.comments);
    // If the user pressed Ok...
    if (def.bOk)
    // edit the contact information in the contacts
    // Vector object.
    temp.fname = new String (def.fname.getText ());
    temp.lname = new String (def.lname.getText ());
    temp.haddress = new String (def.haddress.getText ());
    temp.maddress = new String (def.maddress.getText ());
    temp.phone = new String (def.phone.getText ());
    temp.wphone = new String (def.wphone.getText ());
    temp.cphone = new String (def.cphone.getText ());
    temp.email = new String (def.email.getText ());
    temp.bdate = new String (def.bdate.getText ());
    temp.comments = new String (def.comments.getText ());
    // Make sure the screen reflects the edit.
    names.replaceItem (temp.lname + ", " + temp.fname,
    index);
    // Destroy the dialog box.
    def.dispose ();
    // Make sure that the first contact item in the names
    // list is highlighted.
    names.select (0);
    // ========================================================
    // Class: Contact
    // This class describes the contents of a business contact.
    // ========================================================
    class Contact
    public String fname;
    public String lname;
    public String haddress;
    public String maddress;
    public String phone;
    public String wphone;
    public String cphone;
    public String email;
    public String bdate;
    public String comments;
    // ==========================================================
    // Class: DataEntryForm
    // This class provides a data entry form for entering contact
    // information.
    // ==========================================================
    class DataEntryForm extends Dialog implements ActionListener
    // bOk is a boolean flag. When true, it indicates that
    // the Ok button was pressed to terminate the dialog box
    // (as opposed to the Cancel button).
    public boolean bOk;
    // The following components hold the text that the user
    // entered into the visible text fields.
    public TextField fname;
    public TextField lname;
    public TextField haddress;
    public TextField maddress;
    public TextField phone;
    public TextField wphone;
    public TextField cphone;
    public TextField email;
    public TextField bdate;
    public TextField comments;
    public void actionPerformed (ActionEvent e)
    // If the user pressed the Ok button, indicate this
    // by assigning true to bOk.
    if (e.getActionCommand ().equals ("Ok"))
    bOk = true;
    // Destroy the dialog box and return to the point
    // just after the creation of the DataEntryForm object.
    dispose ();
    public DataEntryForm (Frame parent, String title)
    // Call the other constructor. The current constructor
    // is used for add operations. The other constructor
    // is used for edit operations.
    this (parent, title, "", "", "", "", "", "", "", "", "", "");
    public DataEntryForm (Frame parent, String title,
    String fname, String lname,
    String haddress, String maddress,
    String phone,String wphone,
    String cphone,String email,
    String bdate,String comments)
    // Initialize the superclass layer.
    super (parent, title, true);
    // Choose a grid bag layout so that components can be more
    // accurately positioned. (It looks nicer.)
    setLayout (new GridBagLayout ());
    // Add appropriate first name, last name, phone, wphone, and
    // email components to the current DataEntryForm container.
    // (Remember, DataEntryForm is a subclass of Dialog.
    // Dialog is a container. Therefore, DataEntryForm
    // inherits the ability to be a container.)
    addComponent (this, new Label ("First Name: "),0, 0, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.fname = new TextField (20);
    addComponent (this, this.fname, 1, 0, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.fname.setText (fname);
    addComponent (this, new Label ("Last Name: "), 0, 1, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.lname = new TextField (20);
    addComponent (this, this.lname, 1, 1, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.lname.setText (lname);
    addComponent (this, new Label ("Home Address: "), 0, 2, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.haddress = new TextField (20);
    addComponent (this, this.haddress, 1, 2, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.haddress.setText (haddress);
    addComponent (this, new Label ("Mailing Address: "), 0, 3, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.maddress = new TextField (20);
    addComponent (this, this.maddress, 1, 3, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.maddress.setText (maddress);
    addComponent (this, new Label ("Home Number: "), 0, 4, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.phone = new TextField (20);
    addComponent (this, this.phone, 1, 4, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.phone.setText (phone);
    addComponent (this, new Label ("Work Number: "), 0, 5, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.wphone = new TextField (20);
    addComponent (this, this.wphone, 1, 5, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.wphone.setText (wphone);
    addComponent (this, new Label ("Cell Number: "), 0, 6, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.cphone = new TextField (20);
    addComponent (this, this.cphone, 1, 6, 1, 1,
    GridBagConstraints.WEST,
    GridBagConstraints.WEST);
    addComponent (this, new Label ("Email Address: "), 0, 7, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.email = new TextField (20);
    addComponent (this, this.email, 1, 7, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    addComponent (this, new Label ("Birth Date: "), 0, 8, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.bdate = new TextField (20);
    addComponent (this, this.bdate, 1, 8, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    addComponent (this, new Label ("Comments: "), 2, 0, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.comments = new TextField (20);
    addComponent (this, this.comments, 2, 1, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    addComponent (this, new Label (""), 0, 9, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    addComponent (this, new Label (""), 1, 9, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    Button b;
    // Add an Ok button to this container.
    addComponent (this, b = new Button ("Ok"), 0, -9, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    b.addActionListener (this);
    // Add a Cancel button to this container.
    addComponent (this, b = new Button ("Cancel"), 1, -9, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    b.addActionListener (this);
    // Set the background of the frame window container to
    // pink (to give a pleasing effect).
    setBackground (Color.pink);
    // Set the size of the dialog window to 250 pixels
    // horizontally by 200 pixels vertically.
    setSize (450, 500);
    // Do not allow users to resize the dialog window.
    setResizable (false);
    // Make sure that the dialog window is visible.
    setVisible (true);
    private void addComponent (Container con, Component com,
    int gridx, int gridy,
    int gridw, int gridh, int fill,
    int anchor)
    // Get the current layout manager. It is assumed to
    // be a GridBagLayout object.
    LayoutManager lm = con.getLayout ();
    // Create a GridBagConstraints object to make it
    // possible to customize component positioning.
    GridBagConstraints gbc = new GridBagConstraints ();
    // Assign the x and y grid positions.
    gbc.gridx = gridx;
    gbc.gridy = gridy;
    // Assign the number of grid blocks horizontally and
    // vertically that are occupied by the component.
    gbc.gridwidth = gridw;
    gbc.gridheight = gridh;
    // Specify the component's resize policy (fill) and
    // the direction in which the component is positioned
    // when its size is smaller than available space (anchor).
    gbc.fill = fill;
    gbc.anchor = anchor;
    // Set the new constraints that the grid bag layout
    // manager will use.
    ((GridBagLayout) lm).setConstraints (com, gbc);
    // Add the component to the container.
    con.add (com);
    // ===========================================================
    // Class: MsgBox
    // This class displays a message box to the user. The message
    // is usually an error message. The user must press the Ok
    // button to terminate the message box.
    // ===========================================================
    class MsgBox extends Dialog implements ActionListener
    public void actionPerformed (ActionEvent e)
    // Terminate the dialog box in response to the user
    // pressing the Ok button.
    dispose ();
    public MsgBox (Frame parent, String title, String msg)
    // Initialize the superclass layer.
    super (parent, title, true);
    // Store the msg argument in a Label object and add
    // this object to the center part of the dialog window.
    Label l = new Label (msg);
    add ("Center", l);
    // Create a Button object and add it to the south part
    // of the dialog window.
    Button b = new Button ("Ok");
    add ("South", b);
    // Make the current object a listener to events that
    // occur as a result of the user pressing the Ok
    // button.
    b.addActionListener (this);
    // Make sure that the Ok button has the focus.
    b.requestFocus ();
    // Do not allow users to resize the dialog window.
    setResizable (false);
    // Allow the layout manager to choose an appropriate
    // size for the dialog window.
    pack ();
    // Make sure that the dialog window is visible.
    setVisible (true);
    ====================END OF CODE =======================

    You should first start by formatting the code before
    posting. I lost my interest as I browsed thorugh the
    code.
    Read here -
    http://forum.java.sun.com/help.jspa?sec=formatting
    ...and its way too much code to expect anyone to read. Post a short excerpt of the part you are having trouble with.

  • Unresponsive Java and further issues.

    Hi all,
    I'm a student studying Java, and I've been around Java for a while. I've lately put a new computer together and I'm running a legit copy of XP pro on it. Now when I installed Java on it, I had it verified and the website indicated that it has been successfully installed. However, every time I get on a website that uses Java, or I try to run a simple home made program on Java, only an empty window appears with no contents. The size of the window definately varries depending on the size it was designed to. Sometime, I even see java's startup logo an a part of the program shows up. But its usually not in working condition and at that point. All I can do at that point is close it, but then everything in windows becomes non-responsive. None of the icons work, start doesn't work, not even alt-ctrl-del. The only moving thing is my mouse arrow at that point. Then after about 20 seconds the already non-responsive computer freezes completely!
    I've not been able to find a reason for this issue around, nor a way to fix it. I would like to know if anybody has any idea what is wrong with this.
    Thanks and regards,
    Vala

    Michael,
    Our production server was recently upgraded to 10.1.2.3, CP5 with Java 1.4.2_06. Prior to this upgrade we recommended that users function with I.E. 6.0 and Firefox 2.0. We experienced issues with later browser versions. On my personal workstation I have Windows XP, SP2, I.E. 6.0, Firefox 2.0 and now Java 1.6.0_16. We are now testing the later version of Java on our test OAS. And we are testing out the later browser versions as we speak. The first thing that I would recommend is to add the Java Runtime parameter of -Xmx256M, in the Java Control Panel. I had some session locks prior to my adding this parameter. I am testing access to both servers with Java 6 installed on my workstation. Access to Java 6 performed better after I added the runtime parameters. Access to Java 4 with I.E. gives a warning message and performs very slowly. Mozilla Firefox does to seem to care, no warning and similar performance as Java 6 on the server side. I have not done very much testing with I.E. 7.0 and Firefox 3.0 as of yet with the newer Java version. I am now accessing that environment and it is running very slowly. Part of the issue may be my PC performance but I do not like what I see. Way too slow. This is the browser functionality not the workbook execution time. I added the Java Runtime parameter of
    -Xmx256M and it now performs better.
    I did the Ctrl-C|Ctrl-V with both I.E. and Firefox and did not experience the problem you discribed. I aslo did not encounter the other problems that you reported. We the corbaserver errors in a Discoverer pop-up window, Java Console or OEM session log?
    You may be correct with the SP3 as being at least one of the culprits. I do not have that patch on either workstation so I cannot test for you.
    Jerre

  • Creating Bar Charts using Java and Display in jsp

    Hi..Is it possible to create a servlet that processes data from database and display the values as Bar Charts in jsp pages. If its possible, is there any examples on how to achieve that?

    I don't get it. You already know what needs to be done to solve your problem, the only thing you are missing is the HOW. That's the easy part, if only you break down what you have to know:
    1) how do I show an image on a website (this is a basic HTML question actually, not actually related to servlets/JSPs directly)
    2) how do I fetch the path from a database (JDBC question) so that I can use this path to link to my image on disc
    So what is preventing you from figuring out how to do these two simple tasks? Some clever google searches should give you all the information you need in no time.
    by the way: are you sure that you need to store these paths in the database? Is this part of some file upload component?

  • CCP 2.6 Javascript error and display issues

    Hello ,
    I am atttempting to run CCP2.6 and have tried clearing cache on IE (temp internet/website files, cookies, history) and removed all Java files including trace/log files, chaced apps and applets , and installed apps and applets.Also ran CCP as admin. Essentially followed all guidelines to solution to discussion "CCP 2.5 Javascript Error" but has not resolved issue.
    I still get the error below and the bottom 2/3 of the CCP screen is not displayed/rendered. Content is only rendered within a sliver of entire window size , at top part of the window. It appears as if Java should be rendering content at mid/bottom section of window but never does, although a tempory splash screen does appear as if it is "attempting".
    netscape.javascript.JSException: No such method "invokeLaunchDashboard" on JavaScript object
    at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
    at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
    at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
    at com.cisco.xdm.CounterpointSDMApplet.init(CounterpointSDMApplet.java:310)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I am using
    System:
    Windows 7 SP1
    IE10
    java version "1.7.0_21"
    Flash 11.7.700.169
    Looking forward to using the application.
    Please Help!
    Thanks
    Pablo

    Hello ,
    I am atttempting to run CCP2.6 and have tried clearing cache on IE (temp internet/website files, cookies, history) and removed all Java files including trace/log files, chaced apps and applets , and installed apps and applets.Also ran CCP as admin.
    But I still get the error below and the bottom 2/3 of the CCP screen is not displayed/rendered. Content is only rendered within a sliver of entire window size , at top part of the window. It appears as if Java should be rendering content at mid/bottom section of window but never does, although a tempory splash screen does appear as if it is "attempting".
    netscape.javascript.JSException: No such method "invokeLaunchDashboard" on JavaScript object
    at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
    at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
    at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
    at com.cisco.xdm.CounterpointSDMApplet.init(CounterpointSDMApplet.java:310)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I am using
    System:
    Windows 7 SP1
    IE10
    java version "1.7.0_21"
    Flash 11.7.700.169
    Looking forward to using the application.
    Please Help!
    Thanks
    Pablo

  • PDF preview and display issue : NWDS CE 7.1 SP05+ALD 7.1

    Hi All
    I am creating a webdynpro java application in NWDS 7.1 SP 05. This application has an interactive form ui element. The livecycle designer version is 7.1 and reader versions tried are 8 and 9.
    The issue is that the pdf preview in NWDS is blank and also I am getting blank white space instead of the form when i deploy the application on a browser.
    I have used NWDS 7.1, SP05 + ALD 7.1 combination on another system and there i can see the form in NWDS pdf preview.
    I am completely stuck, please let me know of any way out.
    Thanks
    Lisha

    Hi,
    Try to uninstall adobe life cycle designer and install it onceagain..
    Even we faced some times this problem, but better to use higher version of adobe life cycle designer like 8.0 whiuch will be compatible to your NWDS version...
    Hope this helps you in resolving the problem...
    Regards,
    Saleem

  • PDF preview and display issue : NWDS 7.1 SP05 + ALD 7.1

    Hi All
    I am creating a webdynpro java application in NWDS 7.1 SP 05. This application has an interactive form ui element. The livecycle designer version is 7.1 and reader versions tried are 8 and 9.
    The issue is that the pdf preview in NWDS is blank and also I am getting blank white space instead of the form when i deploy the application on a browser.
    I have used NWDS 7.1, SP05 + ALD 7.1 combination on another system and there i can see the form in NWDS pdf preview.
    I am completely stuck, please let me know of any way out.
    Thanks
    Lisha

    I can't give a specific response, but if possible, upgrade to LCD 8.0 - it is much smoother to use than 7.1.
    I almost pulled out all my hair working with 7.1

  • Linux installation and display issues

    PROBLEM:
    During installation, the following error occurs:
    No Java virtual machine could be found from your PATH
    environment variable. You must install a VM prior to
    running this program.
    RESOLUTION:
    Install Java 1.5 and make sure that it's in your PATH environment. To
    doublecheck that Java 1.5, simply
    type 'java -version'.
    PROBLEM:
    When opening any display view, the following error occurs and nothing shows
    up:
    ERROR GuardianApplication [main] : Registry does not exist, creating
    default registry
    Unhandled event loop exception
    Reason:
    No more handles (java.lang.UnsatisfiedLinkError:
    /<GUARDIAN_INSTALL_DIR>/configuration/
    org.eclipse.osgi/bundles/72/1/.cp/libswt-mozilla-gtk-3139.so: libstdc++.so.5:
    cannot open shared
    object file: No such file or directory)
    RESOLUTION:
    Add your browser's library dependencies by editing the /etc/ld.so.conf and
    add /<PATH>/firefox or /
    <PATH>/mozilla directory.
    Example: /usr/lib/firefox-1.5.0.7
    Make sure that the path to firefox or mozilla contains the
    /usr/lib/firefox-1.5.0.7/libxpcom.so. After
    that, run ldconfig command to update your library.
    Install compat-libstdc++-33 library. For Fedora users, simply type: "yum
    install compat-libstdc+
    +-33.i386" as root. Relaunch Guardian.

    I am really interested on comments. Anyway check also those sites about Linux on Toshiba notebooks:
    http://linux.toshiba-dme.co.jp/linux/index.htm
    http://newsletter.toshiba-tro.de/main/index.html

  • Major tree and display issue.........

    Hi guys! I am having a problem whereby when I click on a tree node(Folder), I want all the images contained in that folder to be displayed on a JPanel which I created. By the way, the tree and panel are added to a splitpane. Tree on the right, and panel on the left. I will really appreciate it if someone can assist. Thanks a lot in advance!!
    Cheers,
    Bolo

    Hi,
    You see this demo, it displays all the images of a selected folder in the tree in the right panel. You can customize the layout of the right panel to suit your need.
    Regards,
    Pratap
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.filechooser.*;
    import javax.swing.tree.*;
    public class Frame1 extends JFrame implements TreeSelectionListener {
         JSplitPane jSplitPane1 = new JSplitPane();
         JScrollPane jScrollPane1 = new JScrollPane();
         JScrollPane jScrollPane2 = new JScrollPane();
         JTree tree = new JTree();
         JPanel panel = new JPanel();
         String dir = "d://images/";
         private static final FileSystemView fsv = FileSystemView.getFileSystemView();
         FlowLayout flowLayout1 = new FlowLayout();
         public Frame1() {
              try {
                   jbInit();
                   tree.setModel(new FileTreeModel(dir));
                   tree.setCellRenderer(new FileCellRenderer());
                   tree.addTreeSelectionListener(this);
              catch(Exception e) {
                   e.printStackTrace();
         public void valueChanged(TreeSelectionEvent e) {
              panel.removeAll();
              if (e.getNewLeadSelectionPath() == null){
                   panel.repaint();
                   return;
              File node = (File)e.getNewLeadSelectionPath().getLastPathComponent();
              if (node.isFile()) {
                   panel.repaint();
                   return;
              File []images = node.listFiles();
              try {
                   for (int i = 0; i < images.length; i++) {
                        String name = images.getName();
                        boolean image = name.endsWith(".gif") || name.endsWith(".jpg") || name.endsWith(".png");
                        if (!image) continue;
                        ImageIcon icon = new ImageIcon(images[i].toURL());
                        panel.add(new JLabel(icon));
                   panel.revalidate();
              catch (Exception ex) {
                   ex.printStackTrace();
         public static void main(String[] args) {
              Frame1 f = new Frame1();
              f.setSize(400,300);
              f.setLocation(200,200);
              f.show();
         private void jbInit() throws Exception {
              panel.setBackground(Color.white);
              panel.setLayout(flowLayout1);
              flowLayout1.setAlignment(FlowLayout.LEFT);
              this.getContentPane().add(jSplitPane1, BorderLayout.CENTER);
              jSplitPane1.add(jScrollPane1, JSplitPane.LEFT);
              jScrollPane1.getViewport().add(tree, null);
              jSplitPane1.add(jScrollPane2, JSplitPane.RIGHT);
              jScrollPane2.getViewport().add(panel, null);
         public class FileTreeModel extends DefaultTreeModel {
              File root;
              FileTreeModel(String dir)     {
                   super(null);
                   root = new File(dir);
              public Object getChild(Object parent, int index){
                   File p = (File)parent;
                   return p.listFiles()[index];
              public int getChildCount(Object parent)     {
                   File p = (File)parent;
                   return p.listFiles().length;
              public int getIndexOfChild(Object parent, Object child)     {
                   File f [] = ((File)parent).listFiles();
                   for (int i = 0; i < f.length; i++) {
                        if (f[i] == child) return i;
                   return 0;
              public Object getRoot()     {
                   return root;
              public boolean isLeaf(Object node){
                   return ((File)node).isFile();
         public class FileCellRenderer extends DefaultTreeCellRenderer {
              public Component getTreeCellRendererComponent(JTree tree,
                                                           Object value,
                                                           boolean selected,
                                                           boolean expanded,
                                                           boolean leaf,
                                                           int row,
                                                           boolean hasFocus) {
                   super.getTreeCellRendererComponent(tree, value,selected, expanded, leaf, row, hasFocus);
                   File f = (File)value;
                   setIcon(fsv.getSystemIcon(f));
                   setText(f.getName());
                   return this;

  • Has the new Early 2013 Retina Macbook Pro still lag and display issues?

    Hello. I've never had a Mac before and I'm thinking of buying the new "early 2013" 15-inch (2.7 Ghz, 16Gb Ram, $2799) Retina Macbook Pro. I live in Argentina but I'm going to NYC in a couple of weeks and I want to get one there. The thing is, that I can not be returning it 2 or 3 times like I read a lot of peple had to, because I'll be coming back home after 2 weeks and here they will only fix it, not replace it for a new one, and that could take months.
    So, I want to know if you guys can help me decide if I should go for it or not, if these image retention and burn in and ui lag issues appear to be fixed with this new model or if it is still the same. If I don't buy this one I'll be getting the new Samsung Series 7 Chronos they showed in CES 2013, still not available in the market. Thanks a lot!

    huevo_gnr wrote:
    I just checked and I have the LG SJA2, too. I didn't notice any Image retention at first, I tested it with the chessboard test for 5 or 6 minutes, it showed no IR. But with 10 minutes I can see a bit of IR. Nothing that can affect the normal use of the computer, I mean I have to put the chessboard for 10 minutes and then change to grey to notice it, but it does exist and is the SJA2 from LG. If it doesn't get worst, I think it doesn't even matter. I just hope it doesn't get worst.
    FWIW, I noticed that until I stopped looking at the chessboard before it switched; my eyes had image retention. But  in that awfully long thread on the subject, some have insisted that if it's an LG, it's trouble so I guess there's no guarantee. (BTW, I was writing this when you tried the test again - ocular image retention?)
    Not to hijack the thread, but shortly after I posted that "good news" about SJA2, my rMBP simply refused to start at all; it was totally inert. Charging, not charging, SMC reset, nothing helped. Tech support's only solution was bring it in to be fixed.
    On a hunch, and remembering something about magnets in the top of the display activating a reed switch in the base, probably near the trackpad, I lifted the front of the Mac about 1/4" inch and let it drop. Bingo! The Mac has operated properly so far. I suspect the reed switch was stuck in the wrong position, and some evidence suggests it was that way out of the box and my fix corrected it.

  • Freezing and display issue

    Dear All,
    I had this imac from 2010. Now it's creating some issues. Daily when i start this Imac, its freeze on gray screen and its also show scrambled display. But after 5 or 6 time immediate power down and on. I am able to use the operating system. It’s a very strange problem after getting heat or something it able for use. I also reset the smc and Pram reset. I don’t think its  operating system problem. Kindly suggest solution which work

    This sounds possibly graphics related and sounds as though you are experiencing kernel panics.
    Please post a copy of your latest kernel panic in your reply. To find the log, open Console application and look under System Diagnostic Reports. The log will start with "kernel_" and end in ".panic". Post the whole panic report in your reply.

  • Java and Maven issues after upgrading OSX to Maverick 10.9.2

    I upgraded my MacBookAir to Maverick and now it can't  detect Java VM and Apache Maven

    If it is not finding the mvn command then I suspect that it has removed the directory mvn is in from the path variable. Run Terminal.app and type
    echo $PATH
    See if this includes the directory for mvn. You could try modifying your /etc/paths file (system wide) or for just a single user account the file to create/modify is
    ~/.profile
    It is generally best not to modify the system wide one if you don't need to.
    Reinstalling mvn might also be a solution and you could take the opportunity to update your mvn at the same time.

  • GPMC Crashing and Display issues.

    Today I went to open the GPMC on my Windows 8 Desktop and after going to edit a policy we have created all the menu items were blank. I could see the icons for them, but they had no name. After trying to navigate for a few moments MMC Crashes and gives me
    this error in event viewer:
    Faulting application name: mmc.exe, version: 6.2.9200.16384, time stamp: 0x5010a074
    Faulting module name: ntdll.dll, version: 6.2.9200.16420, time stamp: 0x505aaa82
    Exception code: 0xc0150010
    Fault offset: 0x0007df5e
    Faulting process id: 0xfc8
    Faulting application start time: 0x01cdb7783eb3c748
    Faulting application path: C:\WINDOWS\SysWOW64\mmc.exe
    Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
    Report Id: 8bacb439-236b-11e2-be6b-984be1ebad9b
    Faulting package full name:
    Faulting package-relative application ID:
    with this information afterwords:
    Fault bucket -1088739078, type 1
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: mmc.exe
    P2: 6.2.9200.16384
    P3: 5010a074
    P4: ntdll.dll
    P5: 6.2.9200.16420
    P6: 505aaa82
    P7: c0150010
    P8: 0007df5e
    P9:
    P10:
    Attached files:
    C:\Users\pomeroyt\AppData\Local\Temp\WER66CC.tmp.WERInternalMetadata.xml
    C:\Users\pomeroyt\AppData\Local\Temp\WER6C3B.tmp.appcompat.txt
    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_mmc.exe_636e6b2f6e27a9c7f7e820f7a0adb57213626294_05c36ce6
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 8bacb439-236b-11e2-be6b-984be1ebad9b
    Report Status: 1
    Hashed bucket: 098ebb650f3c851a055c696107776b03
    I'm not really sure where to go from here. Has anyone else had this issue? 
    Were running a 2008 domain. 

    I'm also having this problem. Error text from my system below.  It's a fresh install of Windows 8, joined to our domain and updated. VMWare Tools was installed automaticaly, but not even antivirus aside from that. It seems I can use most of the
    features of the console, I've even succesfully modified a GPO. If I select the comain in the left pane though, guarenteed crash.  I've tried rebooting.
    Anyone make any progress?
    Problem signature:
    Problem Event Name:                       
    APPCRASH
    Application Name:                            
    mmc.exe
    Application Version:                          
    6.2.9200.16496
    Application Timestamp:                    
    50ece2e8
    Fault Module Name:                         
    gpmgmt.dll
    Fault Module Version:                       
    6.2.9200.16518
    Fault Module Timestamp:                 
    510ca9a6
    Exception Code:                                 
    c0000005
    Exception Offset:                               
    0000000000154f4b
    OS Version:                                         
    6.2.9200.2.0.0.256.4
    Locale ID:                                            
    1033
    Additional Information 1:                 
    f5d5
    Additional Information 2:                 
    f5d5f2edea5447000260123656b930b4
    Additional Information 3:                 
    f883
    Additional Information 4:  f883ee6437fb5cbaf147d7c9ea29db21

Maybe you are looking for

  • Help in regarding alert log error...referring to standby

    Database: Single Instance, 10.2.0.3 OS: Redhat Linux 5 I checkd on my standby if logs are applied or not by the following command. SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#; The result is "YES" for all corresponding logs. B

  • Wizard Step question

    Hi, I am having a wizard in the pop-up, which on first call starts by default with Step 1 and all other subsequent calls start with Step 2. What do I need to do that it always starts with Step 1 and not Step 2? The default layer setting of the wizard

  • Final Cut and Serial Number

    I had Final Cut Studio 5.1 intalled on my Powerbook G4. Then, my computer was sent in and I was without for a month. So while it was away, I put Final Cut Pro on my home computer to finish my film for school. When I got my laptop back, I tried uninst

  • Why won't my thunderbird open links from my emails?

    Hyper links pop up in the task bar at the bottom when scrolled over but won't open at all.

  • IWS 6.0 SP5 on W2K Platform - CGI Setup

    Obviously there's a difference between setting up CGI to run on a Windows 2000 platform versus a UNIX platform. I'm getting the following error: [01/Apr/2003:01:48:06] failure ( 1108): for host 192.168.1.1 trying to GET /cgi-bin/testcgi.cgi, send-cgi