Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2199

NPE in AbstractMyBatisDAO

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0RC2
    • None
    • None
    • None

      First load of admin after a startup leads to

      Caused by: java.lang.NullPointerException
      	at org.ametys.core.datasource.AbstractMyBatisDAO.getSession(AbstractMyBatisDAO.java:249)
      	at org.ametys.core.datasource.AbstractMyBatisDAO.getSession(AbstractMyBatisDAO.java:238)
      	at org.ametys.plugins.core.impl.right.JdbcProfileAssignmentStorage.getAllowedProfilesForAnonymous(JdbcProfileAssignmentStorage.java:710)
      	at org.ametys.core.right.ProfileAssignmentStorageExtensionPoint.lambda$6(ProfileAssignmentStorageExtensionPoint.java:596)
      	at org.ametys.core.right.ProfileAssignmentStorageExtensionPoint$$Lambda$116/797302541.apply(Unknown Source)
      	at java.util.Optional.map(Optional.java:215)
      	at org.ametys.core.right.ProfileAssignmentStorageExtensionPoint.getAllowedProfilesForAnonymous(ProfileAssignmentStorageExtensionPoint.java:596)
      	at org.ametys.core.right.ProfileAssignmentStorageExtensionPoint._fillAllowedProfilesForAnonymous(ProfileAssignmentStorageExtensionPoint.java:157)
      	at org.ametys.core.right.ProfileAssignmentStorageExtensionPoint.getPermissions(ProfileAssignmentStorageExtensionPoint.java:66)
      	at org.ametys.cms.rights.ContributorAccessController.getPermissions(ContributorAccessController.java:50)
      	at org.ametys.core.right.RightManager._getAccessResults(RightManager.java:488)
      	at org.ametys.core.right.RightManager._hasRight(RightManager.java:365)
      	at org.ametys.core.right.RightManager.hasRight(RightManager.java:311)
      	at org.ametys.web.administration.welcome.SiteWithUserStep.lambda$0(SiteWithUserStep.java:102)
      	at org.ametys.web.administration.welcome.SiteWithUserStep$$Lambda$108/274180658.test(Unknown Source)
      	at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
      	at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1351)
      	at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
      	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:529)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:516)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
      	at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
      	at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449)
      	at org.ametys.web.administration.welcome.SiteWithUserStep.isPerformed(SiteWithUserStep.java:103)
      	at org.ametys.web.administration.welcome.WelcomeStepExtensionPoint.getCurrentStep(WelcomeStepExtensionPoint.java:69)
      	at org.ametys.web.administration.welcome.AdminWelcomeClientSideElement.getCurrentStep(AdminWelcomeClientSideElement.java:62)
      	... 93 more
      

            Unassigned Unassigned
            raphael Raphaƫl Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: