Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3174

[Regression] NPE on Wicket Session Recovery

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M8
    • Viewer Wicket
    • None

    Description

      Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.isis.applib.services.iactnlayer.InteractionContext.getUser()" because the return value of "org.apache.isis.viewer.wicket.viewer.integration.AuthenticatedWebSessionForIsis.getAuthentication()" is null
      at org.apache.isis.viewer.wicket.viewer.integration.AuthenticatedWebSessionForIsis.getRoles(AuthenticatedWebSessionForIsis.java:221) ~[classes/:?]
      at org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.hasAnyRole(AuthenticatedWebApplication.java:58) ~[wicket-auth-roles-9.11.0.jar:9.11.0]
      at org.apache.wicket.authroles.authorization.strategies.role.AbstractRoleAuthorizationStrategy.hasAny(AbstractRoleAuthorizationStrategy.java:60) ~[wicket-auth-roles-9.11.0.jar:9.11.0]
      at org.apache.wicket.authroles.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy.check(AnnotationsRoleAuthorizationStrategy.java:111) ~[wicket-auth-roles-9.11.0.jar:9.11.0]
      at org.apache.wicket.authroles.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy.isInstantiationAuthorized(AnnotationsRoleAuthorizationStrategy.java:61) ~[wicket-auth-roles-9.11.0.jar:9.11.0]
      at org.apache.wicket.authorization.strategies.CompoundAuthorizationStrategy.isInstantiationAuthorized(CompoundAuthorizationStrategy.java:65) ~[wicket-core-9.11.0.jar:9.11.0]
      at org.apache.wicket.Application$1.onInstantiation(Application.java:262) ~[wicket-core-9.11.0.jar:9.11.0]

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hobrom Andi Huber
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment