Results 1 to 2 of 2

Thread: @PreAuthorize: Debug symbol information required

  1. #1
    Join Date
    May 2012
    Posts
    3

    Question @PreAuthorize: Debug symbol information required

    Hello,
    I'm using both data-jpa and security. With ACL and a Custom-PermissionEvaluator, I have this message
    when i try to call a method in the repository with @PreAuthorize("hasPermission(#param, 'WRITE')") annotation:

    Code:
    org.springframework.security.access.expression.method.MethodSecurityEvaluationContext
    Unable to resolve method parameter names for method: InterfaceRepository.method().
    Debug symbol information is required if you are using parameter names in expressions.
    What kind of issue could be?

    Thank you

  2. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    It means that the code was not compiled with debug symbols included. This is how Spring Security determines that the parameter was named param as apposed to arg0, somethingElse etc. You will need to search for enable debug symbols and then whatever you are using to compile (i.e. maven, ant, Eclipse, etc).
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •