Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4836

Ranger Usersync failing due to java.lang.NoClassDefFoundError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 3.0.0, 2.5.0
    • usersync
    • None

    Description

      It appears that introduction of jackson fasterxml libraries cause the following error to be seen in usersync logs:

      java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/type/TypeReference
              at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.buildGroupList(PolicyMgrUserGroupBuilder.java:463)
              at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.buildUserGroupInfo(PolicyMgrUserGroupBuilder.java:426)
              at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.init(PolicyMgrUserGroupBuilder.java:240)
              at org.apache.ranger.usergroupsync.UserGroupSync.run(UserGroupSync.java:50)
              at java.lang.Thread.run(Thread.java:750)
      Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.type.TypeReference
              at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
              ... 5 common frames omitted
      28 Jun 2024 19:10:28 DEBUG o.a.r.u.UserGroupSync [UnixUserSyncThread] - Sleeping for [60000] milliSeconds 

      Attachments

        Issue Links

          Activity

            People

              abhi_2110 Abhishek Kumar
              abhi_2110 Abhishek Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: