ICEfaces
  1. ICEfaces
  2. ICE-10106

Tutorial - spring-webflow-booking build failure

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.0
    • Fix Version/s: EE-4.0.0.GA
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:

      Description

      spring-webflow-booking build fails (using "clean servlet-profile" ant targets):

      compile:
          [javac] Compiling 16 source files to C:\svn\ossrepo\icefaces4\trunk\icefaces\tutorials\spring-webflow-booking\build\classes
          [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
          [javac] C:\svn\ossrepo\icefaces4\trunk\icefaces\tutorials\spring-webflow-booking\src\main\java\com\icesoft\spring\security\WebflowListener.java:66: error: method determineWindowID in class WindowScopeManager cannot be applied to given types;
          [javac] WindowScopeManager.determineWindowID( fc );
          [javac] ^
          [javac] required: FacesContext,boolean
          [javac] found: FacesContext
          [javac] reason: actual and formal argument lists differ in length
          [javac] Note: C:\svn\ossrepo\icefaces4\trunk\icefaces\tutorials\spring-webflow-booking\src\main\java\org\springframe
      work\webflow\samples\booking\LazyDataModel.java uses unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] 1 error
          [javac] 1 warning
      BUILD FAILED

        Activity

        Carmen Cristurean created issue -
        Carmen Cristurean made changes -
        Field Original Value New Value
        Environment ICEfaces4 trunk revision# 41557
        Server: tomcat7
        Browser: FF3.6, IE7 & Chrome35
        JSF: Mojarra 2.2.7
        ICEfaces4 trunk revision# 41557
        Server: tomcat7
        Browser: FF3.6, IE7 & Chrome35
        JSF: Mojarra 2.2.7
        Tutorial can be found here: http://dev.icesoft.com/svn/ossrepo/icefaces4/trunk/icefaces/tutorials/spring-webflow-booking
        Ken Fyten made changes -
        Fix Version/s EE-4.0.0.GA [ 11171 ]
        Deryk Sinotte made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Hide
        Deryk Sinotte added a comment -

        Assigning to Mircea. Looks like the work done in ICE-9437 to support JSF's window id is causing the build of this sample to fail as it's relying on the old signature. So we should add in the old signature for compatibility and/or just update the example. Or perhaps add back in the old signature but include some logic that figures out whether customWindowTracking is active.

        Show
        Deryk Sinotte added a comment - Assigning to Mircea. Looks like the work done in ICE-9437 to support JSF's window id is causing the build of this sample to fail as it's relying on the old signature. So we should add in the old signature for compatibility and/or just update the example. Or perhaps add back in the old signature but include some logic that figures out whether customWindowTracking is active.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43648 Thu Dec 04 09:33:03 MST 2014 mircea.toma ICE-10106 Update tutorial to use the new method signature of WindowScopeManager.determineWindowID.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/tutorials/spring-webflow-booking/src/main/java/com/icesoft/spring/security/WebflowListener.java
        Hide
        Mircea Toma added a comment -

        Updated tutorial to use the new signature of WindowScopeManager.determineWindowID method.

        Show
        Mircea Toma added a comment - Updated tutorial to use the new signature of WindowScopeManager.determineWindowID method.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Carmen Cristurean added a comment - - edited

        IF4 trunk r. 43645:
        A server error occurs when logging in with any of the usernames/passwords:

        Dec 04, 2014 1:01:47 PM com.sun.faces.context.ExceptionHandlerImpl log
        1100: JSF1073: java.lang.UnsupportedOperationException caught during processing of RENDER_RESPONSE 6 : UIComponent-ClientId=, Message=null
        Dec 04, 2014 1:01:47 PM com.sun.faces.context.ExceptionHandlerImpl log
        1100: No associated message
        java.lang.UnsupportedOperationException
        at javax.faces.context.ExternalContext.getClientWindow(ExternalContext.java:1500)
        at org.icefaces.impl.event.WindowAndViewIDSetup.processEvent(WindowAndViewIDSetup.java:53)
        at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108)
        at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118)
        at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2190)
        at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
        at org.springframework.faces.webflow.Jsf2FlowApplication.publishEvent(Jsf2FlowApplication.java:102)
        at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:856)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
        at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:456)
        at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
        at org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:99)
        at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
        at org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:99)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        .......................

        Also, there are warnings when installing the .war file on Tomcat7:

        Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer
        WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, the field 'ATTRIBUTES_TO_RENDER' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant.
        Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer
        WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, the field 'INPUT_TAG_NAME' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant.
        Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer
        WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, the field 'attributeCallbacks' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant.
        Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer
        WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, the field 'onclickCallback' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant.
        Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer
        WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, in its superclass org.springframework.faces.ui.BaseSpringJavascriptComponentRenderer, the field 'springJsResourceUri' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant.
        ...................

        Show
        Carmen Cristurean added a comment - - edited IF4 trunk r. 43645: A server error occurs when logging in with any of the usernames/passwords: Dec 04, 2014 1:01:47 PM com.sun.faces.context.ExceptionHandlerImpl log 1100: JSF1073: java.lang.UnsupportedOperationException caught during processing of RENDER_RESPONSE 6 : UIComponent-ClientId=, Message=null Dec 04, 2014 1:01:47 PM com.sun.faces.context.ExceptionHandlerImpl log 1100: No associated message java.lang.UnsupportedOperationException at javax.faces.context.ExternalContext.getClientWindow(ExternalContext.java:1500) at org.icefaces.impl.event.WindowAndViewIDSetup.processEvent(WindowAndViewIDSetup.java:53) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108) at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118) at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2190) at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247) at org.springframework.faces.webflow.Jsf2FlowApplication.publishEvent(Jsf2FlowApplication.java:102) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:856) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:456) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133) at org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:99) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) at org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:99) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) ....................... Also, there are warnings when installing the .war file on Tomcat7: Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, the field 'ATTRIBUTES_TO_RENDER' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant. Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, the field 'INPUT_TAG_NAME' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant. Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, the field 'attributeCallbacks' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant. Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, the field 'onclickCallback' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant. Dec 04, 2014 9:58:25 AM org.icefaces.impl.renderkit.DOMRenderKit addRenderer WARNING: For class org.springframework.faces.ui.ProgressiveCommandButtonRenderer, in its superclass org.springframework.faces.ui.BaseSpringJavascriptComponentRenderer, the field 'springJsResourceUri' is not declared 'static final'. Renderer classes must not have instance fields, and must be re-entrant. ...................
        Carmen Cristurean made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Mircea Toma added a comment -

        It seems Spring Webflow version 2.3.2 does not support yet JSF 2.2 API. See:

        We need to upgrade to the released version 2.4.

        Show
        Mircea Toma added a comment - It seems Spring Webflow version 2.3.2 does not support yet JSF 2.2 API. See: https://jira.spring.io/browse/SWF-1613 http://stackoverflow.com/questions/17609330/spring-webflow-error-rendering-view We need to upgrade to the released version 2.4.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: