Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-1104

ClassCastException when user wants to join a project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.0.5, 2.1.1, 2.2.0
    • None
    • Module Catalog
    • None
    • 4.5 M2

      How to reproduce : 

      1 - Have a public project P (for example without moderation). 

      User U is not member of project P

      2 - Connect to catalog with user U. 

      Open public projects

      Click on project P. 

      => A pop-up suggest to join the project. 

      Click on OK. 

      => Following error is displayed : 

      Category: org.ametys.core.observation.ObservationManagerCategory: org.ametys.core.observation.ObservationManagerMessage: Unable to dispatch event: event[id: member.added, issuer: UserIdentity [login=toto, population=utilisateurs], args: [project.member.identity.type = USER, project = '/ametys:plugins/workspaces/projects/projet14juin' (project://70c2525a-4151-4b45-9c03-79049d29fb62), project.member = '/ametys:plugins/workspaces/projects/projet14juin/ametys-internal:members/member-2' (project-member://d9932e06-7a08-43cc-8ad7-37367d33ddb6), project.member.id = project-member://d9932e06-7a08-43cc-8ad7-37367d33ddb6, project.member.identity = UserIdentity [login=toto, population=utilisateurs], projectName = projet14juin, projectId = project://70c2525a-4151-4b45-9c03-79049d29fb62, projectTitle = Projet14Juin]] to asynchronous observersLocation: org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)Thrown:java.lang.ClassCastException: class org.ametys.core.user.UserIdentity cannot be cast to class java.lang.String (org.ametys.core.user.UserIdentity is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @681aad3b; java.lang.String is in module java.base of loader 'bootstrap') at org.ametys.plugins.workspaces.members.observers.AbstractMemberObserver.observe(AbstractMemberObserver.java:92) at org.ametys.core.observation.ObservationManager$ParallelAsyncObserve._observe(ObservationManager.java:496) at org.ametys.core.observation.ObservationManager$AbstractAsyncObserve.call(ObservationManager.java:442) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)

            laurence Laurence Aumeunier
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: