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

        Ted Goddard created issue -
        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
        Icefaces Administrator made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1047 12296
        Ken Fyten made changes -
        Affects Version/s 1.5 [ 10027 ]
        Affects Version/s unspecified [ 10021 ]
        Ken Fyten made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        Ken Fyten made changes -
        Priority Minor [ 4 ] Major [ 3 ]
        Ken Fyten made changes -
        Assignee Ted Goddard [ ted.goddard ]
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Ken Fyten made changes -
        Assignee Ted Goddard [ ted.goddard ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13353 Thu Mar 01 09:33:28 MST 2007 tedg setting java.awt.headless to true for chart component (ICE-1027)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/MainServlet.java
        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.
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.6DR#1 [ 10035 ]
        Fix Version/s 1.6 [ 10031 ]
        Resolution Fixed [ 1 ]
        Adnan Durrani made changes -
        Assignee Ted Goddard [ ted.goddard ] Adnan Durrani [ adnan.durrani ]
        Adnan Durrani made changes -
        Assignee Adnan Durrani [ adnan.durrani ] Ted Goddard [ ted.goddard ]
        Ken Fyten made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Ted Goddard [ ted.goddard ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: