Spring Roo Flex Add-on
  1. Spring Roo Flex Add-on
  2. ROOFLEX-43

NPE when using full package names in "flex remoting" Roo command

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      SpringSource Tool Suite Version: 2.6.0.RELEASE Build Id: 201103161000
      org.springframework.flex.roo.addon-1.0.0.BUILD-20110321.091025-255.jar
      org.springframework.flex.roo.annotations-1.0.0.BUILD-20100630.171021-1.jar

      Description

      when using the Roo "flex remoting" command with full package names... it throws a NPE. Using the ~ shortcut seemd to work ok though

      Roo console output:

      roo> flex remoting all --package be.tradelec.security.eid.service
      Created SRC_MAIN_JAVAbetradelecsecurityeidservice
      Created SRC_MAIN_JAVAbetradelecsecurityeidserviceEidAddressService.java
      Created ROOTsrcmainflexbetradelecsecurityeidmodel
      Created ROOTsrcmainflexbetradelecsecurityeidmodelEidAddress.as
      Created SRC_MAIN_JAVAbetradelecsecurityeidserviceEidIdentityService.java
      Undo create SRC_MAIN_JAVAbetradelecsecurityeidserviceEidIdentityService.java
      Undo create ROOTsrcmainflexbetradelecsecurityeidmodelEidAddress.as
      Undo create ROOTsrcmainflexbetradelecsecurityeidmodel
      Undo create SRC_MAIN_JAVAbetradelecsecurityeidserviceEidAddressService.java
      Undo create SRC_MAIN_JAVAbetradelecsecurityeidservice
      NullPointerException at org.springframework.flex.roo.addon.as.model.ActionScriptMappingUtils.toActionScriptType(ActionScriptMappingUtils.java:88)
      roo> flex remoting all --package be.tradelec.security.eid.service
      Created SRC_MAIN_JAVAbetradelecsecurityeidservice
      Created SRC_MAIN_JAVAbetradelecsecurityeidserviceEidAddressService.java
      Created SRC_MAIN_JAVAbetradelecsecurityeidserviceEidIdentityService.java
      Updated ROOTsrcmainflexTradServer_scaffold.mxml
      Updated ROOTsrcmainflexTradServer_scaffold-config.xml
      Created ROOTsrcmainflexbetradelecpresentationeidaddress
      Created ROOTsrcmainflexbetradelecpresentationeidaddressEidAddressEvent.as
      Created ROOTsrcmainflexbetradelecpresentationeidaddressEidAddressView.mxml
      Created ROOTsrcmainflexbetradelecpresentationeidaddressEidAddressForm.mxml
      Updated ROOTsrcmainflexTradServer_scaffold.mxml
      Updated ROOTsrcmainflexTradServer_scaffold-config.xml
      Created ROOTsrcmainflexbetradelecpresentationeididentity
      Created ROOTsrcmainflexbetradelecpresentationeididentityEidIdentityEvent.as
      Undo create ROOTsrcmainflexbetradelecpresentationeididentityEidIdentityEvent.as
      Undo create ROOTsrcmainflexbetradelecpresentationeididentity
      Undo manage ROOTsrcmainflexTradServer_scaffold-config.xml
      Undo manage ROOTsrcmainflexTradServer_scaffold.mxml
      Undo manage ROOTsrcmainflexTradServer_scaffold-config.xml
      Undo manage ROOTsrcmainflexTradServer_scaffold.mxml
      Undo create ROOTsrcmainflexbetradelecpresentationeidaddressEidAddressForm.mxml
      Undo create ROOTsrcmainflexbetradelecpresentationeidaddressEidAddressView.mxml
      Undo create ROOTsrcmainflexbetradelecpresentationeidaddressEidAddressEvent.as
      Undo create ROOTsrcmainflexbetradelecpresentationeidaddress
      Undo manage ROOTsrcmainflexTradServer_scaffold-config.xml
      Undo manage ROOTsrcmainflexTradServer_scaffold.mxml
      Undo create SRC_MAIN_JAVAbetradelecsecurityeidserviceEidIdentityService.java
      Undo create SRC_MAIN_JAVAbetradelecsecurityeidserviceEidAddressService.java
      Undo create SRC_MAIN_JAVAbetradelecsecurityeidservice
      NullPointerException at org.springframework.flex.roo.addon.ui.FlexUIMetadataProvider.getElegibleListFields(FlexUIMetadataProvider.java:399)
      roo>
      required --package: The package in which new services will be placed; no default value
      roo> flex remoting all --package ~.security.eid.service
      Created SRC_MAIN_JAVAbetradelecsecurityeidservice
      Created SRC_MAIN_JAVAbetradelecsecurityeidserviceEidAddressService.java
      Created SRC_MAIN_JAVAbetradelecsecurityeidserviceEidIdentityService.java
      Created SRC_MAIN_JAVAbetradelecsecurityeidserviceEidAddressService_Roo_Service.aj

        Activity

        Hide
        Jochen Szostek added a comment -

        This doesn't been to be related to the full package name I noticed...problem also occurs when using the "~" shortcut.

        Will further investigate today and update Jira accordingly.

        Show
        Jochen Szostek added a comment - This doesn't been to be related to the full package name I noticed...problem also occurs when using the "~" shortcut. Will further investigate today and update Jira accordingly.
        Hide
        Jochen Szostek added a comment -

        Strange... managed to execute the flex remoting command on the same model succesfully in STS x64.... while importing it again in STS x86 throws similar error:

        ____ ____ ____
        / __ \/ __ \/ __ \
        / /_/ / / / / / / /
        / , _/ // / /_/ /
        // ||___/___/ 1.1.2.RELEASE [rev fbc33bb]

        Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.
        roo> Created SRC_TEST_JAVA
        Created SRC_TEST_RESOURCES
        Undo manage ROOT\src\main\flex\TradServer_scaffold-config.xml
        Undo manage ROOT\src\main\flex\TradServer_scaffold.mxml
        Undo manage SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties
        Undo create SRC_TEST_RESOURCES
        Undo create SRC_TEST_JAVA
        NullPointerException at org.springframework.flex.roo.addon.ui.FlexUIMetadataProvider.getElegibleListFields(FlexUIMetadataProvider.java:399)

        Show
        Jochen Szostek added a comment - Strange... managed to execute the flex remoting command on the same model succesfully in STS x64.... while importing it again in STS x86 throws similar error: ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / , _/ / / / /_/ / / / | |___ /_ __/ 1.1.2.RELEASE [rev fbc33bb] Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER. roo> Created SRC_TEST_JAVA Created SRC_TEST_RESOURCES Undo manage ROOT\src\main\flex\TradServer_scaffold-config.xml Undo manage ROOT\src\main\flex\TradServer_scaffold.mxml Undo manage SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties Undo create SRC_TEST_RESOURCES Undo create SRC_TEST_JAVA NullPointerException at org.springframework.flex.roo.addon.ui.FlexUIMetadataProvider.getElegibleListFields(FlexUIMetadataProvider.java:399)

          People

          • Assignee:
            Jeremy Grelle
            Reporter:
            Jochen Szostek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: