ICEfaces
  1. ICEfaces
  2. ICE-5479

NULL serverInstanceId when adding ICEfaces framework after Maven Web Project

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0-Alpha3, 2.0.0
    • Component/s: Tool Integrations
    • Labels:
      None
    • Environment:
      Netbeans
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      create Web project with ICEfaces framework instead of adding framework to Maven Web Project
      Show
      create Web project with ICEfaces framework instead of adding framework to Maven Web Project

      Description


      Create Maven Web Project first as File -> New Project -> Maven -> Maven Web Application -> Finish (Noticed that this is JavaEE profile but no server selction in project wizard)

      Add web framework. Right Click on project -> Properties -> Frameworks -> Add -> ICEfaces -> OK

      Netbeans throw EXCEPTION:
      Unexpected exception:
      The serverInstanceId parameter cannot be null

      More info:
      java.lang.NullPointerException: The serverInstanceId parameter cannot be null
      at org.openide.util.Parameters.notNull(Parameters.java:86)
      at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.getServerInstance(Deployment.java:539)
      at org.icefaces.netbeans.modules.web.frameworks.wizard.ICEfacesModuleExtender.classExistsInServer(ICEfacesModuleExtender.java:264)
      at org.icefaces.netbeans.modules.web.frameworks.wizard.ICEfacesModuleExtender.extend(ICEfacesModuleExtender.java:328)
      at org.netbeans.modules.maven.webframeworks.WebFrameworksPanel.applyChanges(WebFrameworksPanel.java:126)
      at org.netbeans.modules.maven.webframeworks.WebFrameworksPanelProvider$1$1.run(WebFrameworksPanelProvider.java:83)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
      [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)


      This is an issue with netbeans maven web project as it does not provide server instance id. ICEfaces integration requires server instance to check server classes and adjust configurations.

        Activity

        Hide
        Liming Wu added a comment -

        This issue is fixed.

        But since nb's maven web project doesn't have server instance id, ICEfaces integration cannot detect if jsf ri is included, cannot detect if it is gf 3. Consequence is you may have to adjust settings for dependent libraries.

        Show
        Liming Wu added a comment - This issue is fixed. But since nb's maven web project doesn't have server instance id, ICEfaces integration cannot detect if jsf ri is included, cannot detect if it is gf 3. Consequence is you may have to adjust settings for dependent libraries.
        Hide
        Liming Wu added a comment -

        Fixed in 2.0.0.3 release for nb6.9

        Show
        Liming Wu added a comment - Fixed in 2.0.0.3 release for nb6.9

          People

          • Assignee:
            Liming Wu
            Reporter:
            Liming Wu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: