Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4248211

java.lang.InternalError: Unsupported 16-bit depth

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0, 1.2.1
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      sparc
    • OS:
      solaris_2.6, solaris_7

      Description



      Name: rlT66838 Date: 06/21/99


      Source code:
      ================
      import HelloApp.*;

      import org.omg.CosNaming.*;
      import org.omg.CosNaming.NamingContextPackage.*;
      import org.omg.CORBA.*;
      import java.util.Properties;

      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;


      public class HelloApplet extends JApplet
      {
          public void init() {
          try {

      // Adding additional code ......

      // Instantiate the java IDL ORB, passing in this applet
      // so that the ORB can retrieve the applet properties.

         Properties props = new Properties();
      // props.put("org.omg.CORBA.ORBClass", "com.sun.CORBA.iiop.ORB");
      // props.put("org.omg.CORBA.ORBClass", "com.visigenic.vbroker.CORBA.ORB");
         props.put("org.omg.CORBA.ORBInitialPort", "1050");

            // Get the host where the applet originated
      // String host = getCodeBase().getHost(); // = null !
      // String host = "louis" ; // = null !

      // props.put("org.omg.CORBA.ORBInitialHost", host);

            // Create and initialize the ORB
            ORB orb = ORB.init(this, props);

      // additional code ends....
              // create and initialize the ORB
      // ORB orb = ORB.init(this, null);

      // additional code ends....
              // create and initialize the ORB
      // ORB orb = ORB.init(this, null);

                  // get the root naming context
                  org.omg.CORBA.Object objRef =
              orb.resolve_initial_references("NameService");
                  NamingContext ncRef = NamingContextHelper.narrow(objRef);

                  // resolve the Object Reference in Naming
                  NameComponent nc = new NameComponent("Hello", "");
                  NameComponent path[] = {nc};
                  Hello helloRef = HelloHelper.narrow(ncRef.resolve(path));

                  // call the Hello server object and print results
                  message = helloRef.sayHello();
              System.out.println( message + "Hi from ajit");
             Container contentPane = getContentPane();
             contentPane.add(new myPanel());

          } catch (Exception e) {
              System.out.println("HelloApplet exception: " + e.getMessage());
              e.printStackTrace(System.out);
              }
          }

      // public void paint(Graphics g)
      // {
      // g.drawString(message, 25, 50);
       // }

          public class myPanel extends JPanel {
            public void paintComponent(Graphics g)
            {
                super.paintComponent(g);
                g.drawString("Hoo hoo Ha ha ", 75, 100 );
            }

          }
          String message = "";
      }




      Trace information:Exception occurred during event dispatching:
      java.lang.InternalError: Unsupported 16-bit depth

              at sun.awt.motif.X11Graphics.X11LockViewResources(Native Method)
              at sun.awt.motif.X11Graphics.lock(Compiled Code)
              at sun.java2d.loops.LockableRaster.<init>(Compiled Code)
              at sun.java2d.loops.RasterOutputManager$RenderImageCachedState.getDstLR(Compiled Code)
              at sun.java2d.loops.RasterOutputManager.renderImage(Compiled Code)
              at sun.java2d.SunGraphics2D.renderingPipeImage(Compiled Code)
              at sun.java2d.SunGraphics2D.drawImage(Compiled Code)
              at sun.awt.motif.X11Graphics.drawImage(Compiled Code)
              at javax.swing.JComponent.paint(Compiled Code)
              at java.awt.Container.paint(Compiled Code)
              at sun.awt.motif.MComponentPeer.handleEvent(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.EventQueue.dispatchEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)

      $ louis:/u/ajit/corba/Example1> java -fullversion
      java full version "JDK-1.2-V"


      =====================

      Additional:
      ==============

      I am running the programs on a Solaris 2.6, Sparc machine,
      but having the appletviewer window displayed on a linux-box
      that is running X.
      (Review ID: 54224)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rlewis Roger Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: