3 Replies Latest reply: Jul 19, 2005 2:04 PM by 807581 RSS

    x11 error

    3004
      hi,
      I have a problem while running a graphic servlet in the netscape
      server(iplanet) . I get a X11 error followed by an error which reads
      that localGraphics environment not found.

      error message:-
      /*****************
      [18/Aug/2001:15:49:42] failure ( 1043): Internal error: exception thrown
      from the servlet service function (uri=/servlet/Chart/RChartServlet):
      java.lang.NoClassDefFoundError, Stack: java.lang.NoClassDefFoundError
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:120)
      at
      java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)

      at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1011)

      at RChartServlet.doGet(RChartServlet.java:133)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:516)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:611)
      at
      com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:389)


      /******************************
      i use jdk1.2 version


      i had set my DISPLAY to localhost:0.0 but this does not work.
      all other servlet does work except this Image servlet( which gives me an
      image of gif or jpeg as output)
      can anybody help?
      waiting a speedy reply..

      Thanking you.
      sunil
        • 1. Re: x11 error
          3004
          This is an iAS newsgroup. (Application Server) A better place for webserver questions
          would be iplanet.server.

          David

          sunil wrote:
          hi,
          I have a problem while running a graphic servlet in the netscape
          server(iplanet) . I get a X11 error followed by an error which reads
          that localGraphics environment not found.

          error message:-
          /*****************
          [18/Aug/2001:15:49:42] failure ( 1043): Internal error: exception thrown
          from the servlet service function (uri=/servlet/Chart/RChartServlet):
          java.lang.NoClassDefFoundError, Stack: java.lang.NoClassDefFoundError
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:120)
          at
          java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)

          at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1011)

          at RChartServlet.doGet(RChartServlet.java:133)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:516)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:611)
          at
          com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:389)

          /******************************
          i use jdk1.2 version

          i had set my DISPLAY to localhost:0.0 but this does not work.
          all other servlet does work except this Image servlet( which gives me an
          image of gif or jpeg as output)
          can anybody help?
          waiting a speedy reply..

          Thanking you.
          sunil
          • 2. Re: x11 error
            807581
            I ran into the same problem on iAS 6.5 (Solaris). It's because your admin server is not started. Go to the installation directory for your iPlanet Application server (e.g., /opt/ias6.5/) and you'll see a 'start-admin' script.

            AFAIK, the admin server must be running for iascontrol to work properly. In fact, my admin server was not running and I tried to start the application server (iascontrol start) and I received the X11 error. I started the admin server and then ran iascontrol start again and it worked.
            • 3. Re: x11 error
              807581
              If you are running java 1.2.4 maybe be helpful the flag -Djava.awt.headless=true