ICEfaces
  1. ICEfaces
  2. ICE-1027

chart component cannot run headless

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6DR#1, 1.6
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Operating System: Mac OS X 10.0
      Platform: Macintosh

      Description

      The chart component makes use of awt graphics classes which are not functional if the application is
      deployed to a server.

        Activity

        Hide
        Ted Goddard added a comment -

        Should have thought to put this in the 1.5.1 patch.

        svn commit ./src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesServlet.java -m "ensuring
        headless mode for chart component (ICE-1027)"
        Sending src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesServlet.java
        Committed revision 12329.

        +++ src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesServlet.java (revision 12328)
        @@ -121,7 +121,6 @@
        this.config = config;
        this.commonlet = new PersistentFacesCommonlet();
        this.commonlet.init(this.commonlet.getInitParams(this.config));

        • System.setProperty("java.awt.headless", "true");
          ServletContext servletContext = config.getServletContext();
          try {
          commonlet.concurrentDOMViews = Boolean
        Show
        Ted Goddard added a comment - Should have thought to put this in the 1.5.1 patch. svn commit ./src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesServlet.java -m "ensuring headless mode for chart component ( ICE-1027 )" Sending src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesServlet.java Committed revision 12329. +++ src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesServlet.java (revision 12328) @@ -121,7 +121,6 @@ this.config = config; this.commonlet = new PersistentFacesCommonlet(); this.commonlet.init(this.commonlet.getInitParams(this.config)); System.setProperty("java.awt.headless", "true"); ServletContext servletContext = config.getServletContext(); try { commonlet.concurrentDOMViews = Boolean
        Hide
        Ted Goddard added a comment -

        This was fixed, but has regressed; perhaps it was never in the head branch.

        I will fix it again.

        Show
        Ted Goddard added a comment - This was fixed, but has regressed; perhaps it was never in the head branch. I will fix it again.
        Hide
        Ted Goddard added a comment -

        A fix has been checked into the head. This is superior than the previous fix in that it allows the setting to be over-ridden with a -Djava.awt.headless=false (in the event that the server application has a graphical display).

        It appears, however, that the chart component does not render on the Mac.

        Show
        Ted Goddard added a comment - A fix has been checked into the head. This is superior than the previous fix in that it allows the setting to be over-ridden with a -Djava.awt.headless=false (in the event that the server application has a graphical display). It appears, however, that the chart component does not render on the Mac.
        Hide
        Ken Fyten added a comment -

        Verified working on Windows XP.

        Headless mode support can vary from JVM vendor/version and platform, so we'll close this now and create new issues for any JVM-specific problems in the future.

        Show
        Ken Fyten added a comment - Verified working on Windows XP. Headless mode support can vary from JVM vendor/version and platform, so we'll close this now and create new issues for any JVM-specific problems in the future.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: