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

        Liming Wu created issue -
        Liming Wu made changes -
        Field Original Value New Value
        Assignee Liming Wu [ liming.wu ]
        Liming Wu made changes -
        Salesforce Case []
        Security Private [ 10001 ]
        Liming Wu made changes -
        Salesforce Case []
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 2.0-Alpha3 [ 10032 ]
        Liming Wu made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 2.0.0 [ 10230 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: