Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3609

permissionEvaluator --package command fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.3.1.RC1
    • Fix Version/s: 2.0.0.M1
    • Component/s: @ ROO SHELL, SECURITY
    • Labels:
      None
    • Environment:
      Ubuntu 14.10, STS on Eclipse Luna SR 2, MySQL database, Java 7

      Description

      I have a Spring Roo project and I'm trying to use the permissionEvaluator command to secure the application.

      Command:

      permissionEvaluator --package com.company.app.controllers

      The following error is thrown,

      NullPointerException at org.springframework.roo.addon.security.PermissionEvaluatorMetadataProvider.getMetadata(PermissionEvaluatorMetadataProvider.java:150)

      I'm using the Roo Shell in STS installed on Eclipse Luna SR2.
      I have also attached log.roo with this ticket to recreate it.
      Thank you.

      Full error,

      Created SPRING_CONFIG_ROOT/applicationContext-security-permissionEvaluator.xml
      Created SRC_MAIN_JAVA/com/company/app/web/ApplicationPermissionEvaluator.java
      Undo create SRC_MAIN_JAVA/com/company/app/web/ApplicationPermissionEvaluator.java
      Undo create SPRING_CONFIG_ROOT/applicationContext-security-permissionEvaluator.xml
      NullPointerException at org.springframework.roo.addon.security.PermissionEvaluatorMetadataProvider.getMetadata(PermissionEvaluatorMetadataProvider.java:150)

        Attachments

          Activity

            People

            Assignee:
            jcgarcia Juan Carlos GarcĂ­a del Canto
            Reporter:
            gkarthik Karthik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: