Disposed component in an applet

an applet sometimes throws a NullPointerException. here is the tree:
java.lang.NullPointerException: disposed component at
sun.awt.windows.Win32SurfaceData.initOps(Native Method) at
sun.awt.windows.Win32SurfaceData.<init>(Unknown Source) at
sun.awt.windows.Win32SurfaceData.createData(Unknown Source) at
sun.awt.windows.WComponentPeer.<init>(Unknown Source) at
sun.awt.windows.WChoicePeer.<init>(Unknown Source) at
sun.awt.windows.WToolkit.createChoice(Unknown Source) at
java.awt.Choice.addNotify(Unknown Source) at
java.awt.Container.addNotify(Unknown Source) at
java.awt.Panel.addNotify(Unknown Source) at
java.awt.Container.addNotify(Unknown Source) at
java.awt.Panel.addNotify(Unknown Source) at
java.awt.Container.addImpl(Unknown Source) at
java.awt.Container.add(Unknown Source) at NewTable.init
(NewTable.java:75) at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
as you see the exception is thrown in line 75.
line 75 in my code looks like this: i add a panel
to the appletwhich were relayouted earlier with borderlayout. it
looks like this:
74 Panel p=new Panel();
75 this.add(p,BorderLayout.CENTER);
now, the exception is probably thrown because i run the add() method
on a component which containment hierarchy is made undisplayable.
according the api it can happen when the component's ancestor window
is disposed.
the question is why it is getting disposed? i payed attention that
the exception is thrown only on 2 specific win98 machines and it's
never thrown when the user opens the applet in the first time.
usually it happens when a number of users visit the same page which
includes this applet and the browser is not closed between the user
sessions...but! the users always press a button on applet which redirects them to another page, which means that the applet calls destroy() on itself ...
i thought to add an isDisplayable() check , but it will only give me
a control over the exception, not the no-problem-sollution.
any ideas what can be fixed?
thanX

how do you run your applet - using applet viewr or a browser?
anyway, when debugging, don't assume anything.
in line 75 you may try System.err.println( this )
if you don't get null, try:
System.err.println this.GetXXX() and print as much as you can about your object.

Similar Messages

  • How to email text from a text component in my applet on a the host server ?

    How to email text from a text component in my applet on a the host server, back to my email address ?
    Assuming I have Email Form on the host server.
    Help will be appreciated.

    You can do like below
    =REPLACE(Fields!Column.Value," " & Parameters!ParameterName.value & " ","<b>" & Parameters!ParameterName.value & "</b>")
    The select the expression and  right click and choose placeholder properties
    Inside that set Markup type as HTML 
    then it will highlight the passed parameter value in bold within the full xml string
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Using my new GUI component in an applet :Help!!!

    I am seeking help for the following
    Define class MyColorChooser as a new component so it can be reused in other applications or applets. We want to use the new GUI component as part of an applet that displays the current Color value.
    The following is the code of MyColorChooser class
    * a) We define a class called MyColorChooser that provides three JSlider
    * objects and three JTextField objects. Each JSlider represents the values
    * from 0 to 255 for the red, green and blue parts of a color.
    * We use wred, green and blue values as the arguments to the Color contructeur
    * to create a new Color object.
    * We display the current value of each JSlider in the corresponding JTextField.
    * When the user changes the value of the JSlider, the JTextField(s) should be changed
    * accordingly as weel as the current color.
    * b)Define class MyColorChooser so it can be reused in other applications or applets.
    * Use your new GUI component as part of an applet that displays the current
    * Color value.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    public class MyChooserColor extends JFrame{
         private int red, green, blue;  // color shade for red, green and blue
         private static Color myColor;  // color resultant from red, green and blue shades
         private JSlider mySlider [];      
         private JTextField textField [];
    // Panels for sliders, textfields and button components
         private JPanel mySliderPanel, textFieldPanel, buttonPanel;
    // sublcass objet of JPanel for drawing purposes
         private CustomPanel myPanel;
         private JButton okButton, exitButton;
         public MyChooserColor ()     
              super( "HOME MADE COLOR COMPONENT; composition of RGB values " );
    //       setting properties of the mySlider array and registering the events
              mySlider = new JSlider [3];
              ChangeHandler handler = new ChangeHandler();
              for (int i = 0; i < mySlider.length; i++)
              {     mySlider[i] = new JSlider( SwingConstants.HORIZONTAL,
                               0, 255, 255 );
                   mySlider.setMajorTickSpacing( 10 );
                   mySlider[i].setPaintTicks( true );
    //      register events for mySlider[i]
                   mySlider[i].addChangeListener( handler);                     
    //      setting properties of the textField array           
              textField = new JTextField [3];          
              for (int i = 0; i < textField.length; i++)
              {     textField[i] = new JTextField("100.00%", 5 );
                   textField[i].setEditable(false);
                   textField[i].setBackground(Color.white);
    // initial Background color of each slider and foreground for each textfield
    // accordingly to its current color shade
              mySlider[0].setBackground(
                        new Color ( mySlider[0].getValue(), 0, 0 ) );
              textField[0].setForeground(
                        new Color ( mySlider[0].getValue(), 0, 0 ) );           
              mySlider[1].setBackground(
                        new Color ( 0, mySlider[1].getValue(), 0 ) );
              textField[1].setForeground(
                        new Color ( 0, mySlider[1].getValue(), 0 ) );
              mySlider[2].setBackground(
                        new Color ( 0, 0, mySlider[2].getValue() ) );
              textField[2].setForeground(
                        new Color ( 0, 0, mySlider[2].getValue() ) );
    // initialize myColor to white
              myColor = Color.WHITE;
    // instanciate myPanel for drawing purposes          
              myPanel = new CustomPanel();
              myPanel.setBackground(myColor);
    // instanciate okButton with its inanymous class
    // to handle its related events
              okButton = new JButton ("OK");
              okButton.setToolTipText("To confirm the current color");
              okButton.setMnemonic('o');
              okButton.addActionListener(
                   new ActionListener(){
                        public void actionPerformed (ActionEvent e)
                        {     // code permetting to transfer
                             // the current color to the parent
                             // component backgroung color
                             //System.exit( 0 );     
    //      instanciate exitButton with its inanymous class
    //      to handle its related events           
              exitButton = new JButton("Exit");
              exitButton.setToolTipText("Exit the application");
              exitButton.setMnemonic('x');
              exitButton.addActionListener(
                        new ActionListener(){
                             public void actionPerformed (ActionEvent e)
                             {     System.exit( 0 );     
    // define the contentPane
              Container c = getContentPane();
              c.setLayout( new BorderLayout() );
    //     panel as container for sliders
              mySliderPanel = new JPanel(new BorderLayout());
    //      panel as container for textFields           
              textFieldPanel = new JPanel(new FlowLayout());
    //      panel as container for Jbuttons components           
              buttonPanel = new JPanel ();
              buttonPanel.setLayout( new BoxLayout( buttonPanel, BoxLayout.Y_AXIS ) );
    //add the Jbutton components to buttonPanel           
              buttonPanel.add(okButton);
              buttonPanel.add(exitButton);
    //     add the mySlider components to mySliderPanel
              mySliderPanel.add(mySlider[0], BorderLayout.NORTH);
              mySliderPanel.add(mySlider[1], BorderLayout.CENTER);
              mySliderPanel.add(mySlider[2], BorderLayout.SOUTH);
    //add the textField components to textFieldPanel     
              for (int i = 0; i < textField.length; i++){
                   textFieldPanel.add(textField[i]);
    // add the panels to the container c          
              c.add( mySliderPanel, BorderLayout.NORTH );
              c.add( buttonPanel, BorderLayout.WEST);
              c.add( textFieldPanel, BorderLayout.SOUTH);
              c.add( myPanel, BorderLayout.CENTER );
              setSize(500, 300);          
              show();               
    //     inner class for mySlider events handling
         private class ChangeHandler implements ChangeListener {          
              public void stateChanged( ChangeEvent e )
    // start by collecting the current color shade
    // for red , forgreen and for blue               
                   setRedColor(mySlider[0].getValue());
                   setGreenColor(mySlider[1].getValue());
                   setBlueColor(mySlider[2].getValue());
    //The textcolor in myPanel (subclass of JPanel for drawing purposes)
                   myPanel.setMyTextColor( ( 255 - getRedColor() ),
                             ( 255 - getGreenColor() ), ( 255 - getBlueColor() ) );
    //call to repaint() occurs here
                   myPanel.setThumbSlider1( getRedColor() );
                   myPanel.setThumbSlider2( getGreenColor() );
                   myPanel.setThumbSlider3( getBlueColor() );
    // display color value in the textFields (%)
                   DecimalFormat twoDigits = new DecimalFormat ("0.00");
                   for (int i = 0; i < textField.length; i++){
                        textField[i].setText("" + twoDigits.format(
                                  100.0* mySlider[i].getValue()/255) + " %") ;
    // seting the textcolor for each textField
    // and the background color for each slider               
                   textField[0].setForeground(
                             new Color ( getRedColor(), 0, 0 ) );
                   mySlider[0].setBackground(
                             new Color ( getRedColor(), 0, 0) );
                   textField[1].setForeground(
                             new Color ( 0, getGreenColor() , 0 ) );
                   mySlider[1].setBackground(
                             new Color ( 0, getGreenColor(), 0) );
                   textField[2].setForeground(
                             new Color ( 0, 0, getBlueColor() ) );
                   mySlider[2].setBackground(
                             new Color ( 0, 0, getBlueColor() ) );
    // color of myPanel background
                   myColor = new Color (getRedColor(),
                             getGreenColor(), getBlueColor());
                   myPanel.setBackground(myColor);               
    // set methods to set the basic color shade
         private void setRedColor (int r){
              red = ( (r >= 0 && r <= 255) ? r : 255 );
         private void setGreenColor (int g){
              green = ( (g >= 0 && g <= 255) ? g : 255 );
         private void setBlueColor (int b){
              blue = ( (b >= 0 && b <= 255) ? b : 255 );
    // get methods (return the basic color shade)
         private int getRedColor (){
              return red ;
         private int getGreenColor (){
              return green;
         private int getBlueColor (){
              return blue;
         public static Color getMyColor (){
              return myColor;
    // main method                
         public static void main (String args []){
              MyChooserColor app = new MyChooserColor();
              app.addWindowListener(
                        new WindowAdapter() {
                             public void windowClosing( WindowEvent e )
                             {     System.exit( 0 );
    // inner class CustomPanel for drawing purposes
         private class CustomPanel extends JPanel {
              private int thumbSlider1 = 255;
              private int thumbSlider2 = 255;
              private int thumbSlider3 = 255;
              private Color myTextColor;
              public void paintComponent( Graphics g )
                   super.paintComponent( g );
                   g.setColor(myTextColor);
                   g.setFont( new Font( "Serif", Font.TRUETYPE_FONT, 12 ) );
                   DecimalFormat twoDigits = new DecimalFormat ("0.00");
                   g.drawString( "The RGB values of the current color are : "
                             + "( "     + thumbSlider1 + " , " + thumbSlider2 + " , "
                             + thumbSlider3 + " )", 10, 40);
                   g.drawString( "The current background color is composed by " +
                             "the folllowing RGB colors " , 10, 60);
                   g.drawString( "Percentage of RED from slider1 : "
                        + twoDigits.format(thumbSlider1*100.0/255), 10, 80 );
                   g.drawString( "Percentage of GREEN from slider2 : "
                        + twoDigits.format(thumbSlider2*100.0/255), 10, 100 );
                   g.drawString( "Percentage of BLUE from slider3 : "
                        + twoDigits.format(thumbSlider3*100.0/255), 10, 120 );
    // call to repaint occurs here     
              public void setThumbSlider1(int th){
                   thumbSlider1 = (th >= 0 ? th: 255 );
                   repaint();
              public void setThumbSlider2(int th){
                   thumbSlider2 = (th >= 0 ? th: 255 );
                   repaint();
              public void setThumbSlider3(int th){
                   thumbSlider3 = (th >= 0 ? th: 255 );
                   repaint();
              public void setMyTextColor(int r, int g, int b){
                   myTextColor = new Color(r, g, b);
                   repaint();
    //The following method is used by layout managers
              public Dimension getPreferredSize()
              {     return new Dimension( 150, 100 );
    The following is the code of application that tests the component
    //Application used to demonstrating
    // the homemade GUI MyChooserColor component
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ShowMyColor extends JFrame {
         private JButton changeColor;
         private Color color = Color.lightGray;
         private Container c;
         MyChooserColor colorComponent;
         public ShowMyColor()
         {     super( "Using MyChooserColor" );
              c = getContentPane();
              c.setLayout( new FlowLayout() );
              changeColor = new JButton( "Change Color" );
              changeColor.addActionListener(
                        new ActionListener() {
                             public void actionPerformed( ActionEvent e )
                             {     colorComponent = new MyChooserColor ();
                                  colorComponent.show();
                                  color = MyChooserColor.getMyColor();
                                  if ( color == null )
                                       color = Color.lightGray;
                                  c.setBackground( color );
                                  c.repaint();
              c.add( changeColor );
              setSize( 400, 130 );
              show();
         public static void main( String args[] )
         {     ShowMyColor app = new ShowMyColor();
              app.addWindowListener(
                        new WindowAdapter() {
                             public void windowClosing( WindowEvent e )
                             {  System.exit( 0 );

    Yes, I want help for the missing code to add in actionPerformed method below. As a result, when you confirm the selected color (clicking the OK button), it will be transferred to a variable color of class ShowMyColor.
    // instanciate okButton with its inanymous class
    // to handle its related events
              okButton = new JButton ("OK");
              okButton.setToolTipText("To confirm the current color");
              okButton.setMnemonic('o');
              okButton.addActionListener(
                   new ActionListener(){
                        public void actionPerformed (ActionEvent e)
                        {     // code permetting to transfer
                             // the current color to the parent
                             // component backgroung color
                             //System.exit( 0 );     
              );

  • Component resizing in applets

    Can any one help with my problem. I am creating an applet and would like to increase the size of buttons and text to help visualy people. In my research it i have found that once you call init(), components can not be redrawn. Is this true? Does anyone know how to or where i can readup on, resizing buttons and textfields.
    Many thanks in advance

    IF you use awt and don't specify a layout it goes to flow layout by default, so here's one way of doing itimport java.awt.*;
    import java.awt.event.*;
    public class aButton extends java.applet.Applet implements ActionListener {
       Button b;
       int size = 16;
       Font f1 = new Font("Arial", Font.BOLD, 14);
       public void init() {
          b=new Button("some text");
          b.addActionListener(this);
          b.setFont(f1);
          add(b);
       public void actionPerformed(ActionEvent evt){
          if(evt.getSource()==b){
             size = size+2;
             Font f1 = new Font("Arial", Font.BOLD, size);
             b.setFont(f1);
          validate();
    }

  • Help. How do you TAB from HTML component to applet (and back) ?

    How can one tab between applets in a browser, and from an applet to an HTML component?
    For example, I have the following in my page in decending order:
    an HTML text field,
    an applet containing two components,
    and another HTML text field.
    When focus is on the first HTML text field pressing TAB should shift focus to the first component of the applet, the next TAB press shifts focus to the second component of the applet, and the next TAB press shifts focus to the other HTML text field. Then another TAB press cycles back to the first TEXT field.
    I can handle the tabbing within the applet using the FocusManager, but how can I get the applet to receive focus on a TAB from the browser, and once the applet has focus, how can I give focus back to the browser when a TAB occurs from my last applet sub-component?
    At the moment a user has to click on the applet before he can tab in it, and then click outside it to tab in the html again.
    Any help appreciated, as I cant find any reference to how to do this apart from other people asking the same but getting no replies.
    Thanks,
    Menno

    I see what you are saying. Either use javascript with LiveConnect or go all applets.
    What we are actually doing at the moment is trying to componentise using small applets passing data via InfoBus. So I guess we could use only applets as you suggest. Either with getAppletContext, or we could have a data item on the InfoBus which contains the name of the required in-focus applet, and all applets listen to see if it is their name, and if so request focus.
    I'm suprised applets are not tab-able between by default. I would have thought this was a common requirement.
    I'll look into LiveConnect as well, and let you know how we get on.
    Cheers,
    Menno

  • Tabbing from applet to applet, HTML component to applet, and back

    How can one tab between applets in a browser, and from an applet to an HTML component?
    For example, I have the following in my page in decending order:
    an HTML text field,
    an applet containing two components,
    and another HTML text field.
    When focus is on the first HTML text field pressing TAB should shift focus to the first component of the applet, the next TAB press shifts focus to the second component of the applet, and the next TAB press shifts focus to the other HTML text field. Then another TAB press cycles back to the first TEXT field.
    I can handle the tabbing within the applet using the FocusManager, but how can I get the applet to receive focus on a TAB from the browser, and once the applet has focus, how can give focus back to the browser when a TAB occurs from my last applet sub-component? At the moment a user has to click on the applet before he can tab in it, and then click outside it to tab in the html again.
    Any help appreciated, as I cant find any reference to how to do this apart from other people asking the same but getting no replies.
    Thanks,
    Menno

    Well, I think it is both a Java & HTML problem.
    When you TAB from HTML there must be a way to TAB to the Java applet, and when you TAB from the applet there must be a way, when you are on the last component within the applet, to TAB back to the HTML components.
    Anyone know how?
    Cheers,
    Menno

  • JLable components not being displayed in the panel of the applet

    I am having the problem with the display of the JLabel components in the Panel component of the Applet.
    The JLabel components do not appear in the Panel of the applet unless i minimize or maximize the applet.

    hello...
    i just had the same problem... it was solved by using the .updateUI() method.
    in my case several textFields were dynamically added to a jpanel, there we called the method on that panel.
    ptf.updateUI();     
    hope it works.
    ----------++-----+
    ...algun dia todos seremos luz...
    -zoe

  • How do i add a Scroll Bar to a  JList Component using absolute positioning?

    I've got a applet whose content pane is set to null. I've create a jlist component on this applet and using absolute positioning set the bounds at
    ListBox1.setBounds(380,10, 500, 500);.
    My problem is creating add a scroll bar to the list box.
    JScrollPane scrollPane = new JScrollPane(ListBox1);
    C.add(scrollPane);
    The above code is what i use and when i run this applet i don't see the list box at all. How do i add a scrollbar to this list box or JList component. Please help.

    You need to setBounds() on the JScrollPane, not the JList.
    The JScrollPane is the component that is being added to the panel.

  • Tree (TreeView) in Applet

    Hello,
    could you please give a hint how I can use TreeView in applets?
    Actually I need a code example of how to add a TreeView component to an applet.

    Let me be your google agent. Rather than have you waste your time typing in a web search query, you can just click on this link:
    http://www.google.com/search?hl=en&q=applet+TreeView+example

  • 2nd Class not displaying in applet on browser

    I have a very basic applet that consists of two classes, the applet itself and a gui component class that I created that is used in the applet. When I run it in the AppletViewer, I can see my gui component on the applet just fine. But when I try to run it in the browser, I can only see the applet but not the my gui component class. Both class files are in the same folder as the HTML page. I tried putting both classes in a jar file and using the archive attribute in the applet tag of the HTML file but that didn't help. I even tried putting the entire gui component class inside the applet class. It worked fine in the AppletViewer but not in the Netscape browser.
    I'm probably missing something really simple here but I can't figure out what it is. Anybody have any ideas?

    Okay, I've whittled the code down to the bare minimum. I have an applet with a single ProgressBar class on it. The applet is in the AIControl.class file and the ProgressBar is in the ProgressBar.class file, both in the same directory. When I run it in the AppletViewer, I see a half full blue progress bar at the bottom of the applet. When I run it in the browser, I only see the blank applet with no progress bar. I'm sure I'm missing something really stupid but I don't see it. Thanks all for your help.
    /************** AIControl.java ***************/
    import java.awt.*;
    import java.applet.*;
    import java.util.*;
    public class AIControlPanel extends Applet
    ProgressBar prgProgressBar = new ProgressBar();
    public void init()
         setLayout(null);
         setBackground(java.awt.Color.lightGray);
         setSize(517,431);
         add(prgProgressBar);
         prgProgressBar.setBounds(12,398,492,16);
    /************* ProgressBar.java *************/
    import java.awt.*;
    public class ProgressBar extends java.awt.Canvas
    private int percentDone = 50;
    public void paint(Graphics g)
    double myWidth = getSize().getWidth() - 1;
    double myHeight = getSize().getHeight() - 1;
    g.setColor(Color.black);
    g.drawRect(0, 0, (int)myWidth, (int)myHeight);
    g.setColor(Color.blue);
    g.fillRect(0, 0, (int)(myWidth*((double)(percentDone)/100)), (int)myHeight);
    The HTML file I'm using to run this applet in the browser is bare bones and is as follows:
    <HTML>
    <HEAD>
    <TITLE>Autogenerated HTML</TITLE>
    </HEAD>
    <BODY>
    <APPLET CODE="AIControlPanel.class" WIDTH=517 HEIGHT=431></APPLET>
    </BODY>
    </HTML>
    I don't think I can get much more bare bones than that...and it still doesn't work. Can anyone see what I'm missing?

  • How to set an applet's maximum size?

    Hi there
    If Applet inherits Panel, and Panel is a Container and a Container is a Component, why using the method "setMaximumSize(Dimension d)" (of class Component) in an applet (or JApplet) always gives a compiling error saying it does not recognize this method?
    I apperciate your help

    I found a solution
    <applet id="applet_name"
    code="path_to_applet_class/class_name"
    style="width: 1px; height: 1px; float: left;"
    mayscript></applet>
    see ... http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/

  • Filling a rectangle space with a photo image in an applet

    I'm creating a web page that will display an image of a persons wall and I want to be able to use the mouse to draw a rectangle on the image of the wall and fill the space with a selected photo image.
    I have found out that you can use the MousePress and MouseDrag events to draw a rectangle and "paint" the rectangle in a componant inside the applet. But I'm not sure how to fill the rectangle with an image instead of a color. Can someone tell me if there is an AWT or Swing method that can do this?
    I was thinking of filling the applet window with a label component and then filling it with the wall image. Then some how using the coordinates given from the drag event to creat a new label component and filling it with the photo image. Hope I'm on the right path. Thanks for all the help.

    Great thanks, I looked it up in the docs and I found one that will work for me but I'm not sure how to use the arguements. It's the drawImage method that uses the scalebility. This would work perfect seeing as though the image to be posted will be various sizes. Can any one explain this method in more detail for me. Thanks again.

  • Unwanted reloading Applet behavior

    I have a dynamic JTree component on an applet and as and when the user uses the application, nodes are added to or deleted from the JTree. But looks like the Applet behavior is to reload the applet everytime it is revisited or minimized/maximized, and hence the JTree goes back to the initial empty tree state. The JTree's root is initialized in the init() and every time the user adds/deletes a node, the JTree is modified to reflect those node changes. But since the applet is part of a multi-frame HTML, the applet gets reloaded each time and reverts back to its initial state.
    How can I stop the applet from invoking the init(), start() and stop() method each time? Or is the alternative to using a custom JTree Data model, one that reads its data from a Database make more sense? In that way, everytime the applet is reloaded, the JTree reads the latest data from the database and does not go back to initial empty tree state?
    Thanks for all your replies in advance!

    If your applet is reloading, then it will go back to the initial state - invokes init method. To create persistent objects, you may be better off to store the state of the object on your server as a file (object serialization) or a data base. So, that you can reload the previous state even when the init method is invoked - applet reloaded.
    But if you are just maximizing, minimizing, cover/uncover the broswer that has the JApplet with the JTree it should be able to maintain it's current state since only repaint methods are invoked and not init.

  • About Forms JAVA UI Component AppletSecurityException

    Hi,
    I have been researching how to access a custom OCX control from Web Forms 6i application, and I came up with a third-party JAVA to COM bridging solution, J-Integra from Intrinsyc.
    With J-Integra I was able to build a PJC compatible JAVA component which invokes a local OCX control and was able to access the JAVA component from regular JAVA application but when I tried to invoke the component with Web Forms application I got AppletSecurityException runtime error message. I have signed the component's jar file with javakey, without success, to remove the AppletSecurityException message. How can I remove the following runtime error message from my PJC JAVA component?
    sun.applet.AppletSecurityException: checklink
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at java.lang.RuntimeException.<init>(RuntimeException.java:50)
         at java.lang.SecurityException.<init>(SecurityException.java:42)
         at sun.applet.AppletSecurityException.<init>(AppletSecurityException.java:29)
         at sun.applet.AppletSecurityException.<init>(AppletSecurityException.java:34)
         at sun.applet.AppletSecurity.checkLink(AppletSecurity.java:256)
         at java.lang.Runtime.loadLibrary(Compiled Code)
         at java.lang.System.loadLibrary(System.java:561)
         at com.linar.jintegra.NativeObjRef.q(Unknown Source)
         at com.linar.jintegra.Dispatch.a(Unknown Source)
         at com.linar.jintegra.Ocx.<clinit>(Unknown Source)
         at rapidview.JRapidViewx.<init>(JRapidViewx.java:25)
         at oracle.forms.handler.UICommon.instantiate(Compiled Code)
         at oracle.forms.handler.UICommon.onCreate(Compiled Code)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Compiled Code)
         at oracle.forms.engine.Runform.processMessage(Compiled Code)
         at oracle.forms.engine.Runform.processSet(Compiled Code)
         at oracle.forms.engine.Runform.onMessageReal(Compiled Code)
         at oracle.forms.engine.Runform.onMessage(Compiled Code)
         at oracle.forms.engine.Runform.processEventEnd(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at java.awt.Component.dispatchEventImpl(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
         at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
         at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Window.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.EventDispatchThread.run(Compiled Code)
    Thanks!

    I am also having the same problem.
    I have signed using the PJC.x509 certificate and it is still throwing the
    link error. I am not sure what I need to. I had imported the certificate and
    also ensured that identity.obj is copied to proper directory.
    After following the complete instruction from PJC document,i am still having problems.Either we have incorrect document or problem and resolution section needs
    to be updated.
    FYI, I am running windows2000 and my forms server is 6i with patch5 .

  • Load: class oracle.forms.engine.Main not found Stuck at loading Java Applet

    Hi there
    I have recently installed App Server 10.1.2.0 on a new machine.
    Copied all my forms to an appropriate directory. Set up formsweb.cfg to allow them to run and have attempted to run them.
    Unfortunately I get stuck at the Loading Java Applet screen, and in the status bar at the bottom it says :
    load: class oracle.forms.engine.Main not found
    I have taken a look at the Java Console, and the 2 things that jump out at me are that it appears to be looking for a forms90 directory, which seems odd since I am using App Server 10.1.2.0.2 and Forms Builder 10.1.2.0.2 meaning it should be looking in a forms directory not forms90 directory shouldnt it ?
    And also, it mentions class with no proxy, so on looking around the forums it has been suggested that put the proxy details into jinitiator, which I have done, but this has made no difference either.
    Can anyone suggest anything else please ?
    Java Console log follows.
    Thanks a lot
    Scott
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\hilliers
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Unregistered modality listener
    Removed trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.engine.Main,0,0,914x613,layout=java.awt.BorderLayout]
    Sending events to applet. STOP
    Sending events to applet. DESTROY
    Sending events to applet. DISPOSE
    Sending events to applet. QUIT
    Finding information...
    Releasing classloader: sun.plugin.ClassLoaderInfo@d9850, refcount=0
    Caching classloader: sun.plugin.ClassLoaderInfo@d9850
    Current classloader cache size: 1
    Done...
    Registered modality listener
    Referencing classloader: sun.plugin.ClassLoaderInfo@d9850, refcount=1
    Added trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.engine.Main,0,0,914x613,invalid,layout=java.awt.BorderLayout]
    Sending events to applet. LOAD
    Sending events to applet. INIT
    Sending events to applet. START
    Determine if the applet requests to install any HTML page
    HTML Installation finished.
    Opening http://appserver008/forms90/java/oracle/forms/engine/Main.class
    Connecting http://appserver008/forms90/java/oracle/forms/engine/Main.class with no proxy
    Opening http://appserver008/forms90/java/oracle/forms/engine/Main.class
    Connecting http://appserver008/forms90/java/oracle/forms/engine/Main.class with no proxy
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    You're a star, thanks.
    In my haste I had cut too much out of my old formsweb.cfg file and not realised I'd done it.
    Thanks Francois.

Maybe you are looking for

  • How to get trash folder in finder?

    How to get trash folder in finder?

  • After installing Lion, I cannot get my MacPro 1,1 to boot Leopard..

    I have a Mac Pro 1,1 - just got it, came with Leopard installed. I reformatted the internal hard drive and restored it to original factory OS, using the discs which came with the computer - which happened to be Tiger. Then I went thru the process of

  • APEX Report Data Download in Excel and PDF format

    Hi, Can someone please guide me how to download APEX report data in Excel and PDF format.I know this is possible through BI Publisher but that is extra Licence cost for client so i don't want to use that option. Thanks in advance. Regards Prabhat Mis

  • Return to tabbed page

    I have a main jspx in which I have tabs. If i have a command button on the page and I use a commandButton to pop up a dialog box. I have two problems, the dialog box does not show in a dialog box, it just shows in a new browser window. Second how do

  • Search the Contacts using "Contains" or "LIKE" way

    How can i search for a contact in the contacts list, the name is "Norazmi" i just type in "azmi" but it doesn't work. Same problem for the phone no, the phone no is "0196556390" i type "6556" but can find. I used Windows Mobile and few other phone be