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

failed to refresh policies. Will continue to use last known version of policies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.0
    • None
    • plugins
    • None

    Description

      2024-09-29 10:47:10 ERROR org.apache.ranger.plugin.util.PolicyRefresher: PolicyRefresher(serviceName=hdfs-service): failed to refresh policies. Will continue to use last known version of policies (10)javax.ws.rs.WebApplicationException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptionsjava.util.Map is an interface, and JAXB can't handle interfaces.	this problem is related to the following location:		at java.util.Map		at private java.util.List org.apache.ranger.plugin.model.RangerPolicy.additionalResources		at org.apache.ranger.plugin.model.RangerPolicy		at private java.util.List org.apache.ranger.plugin.util.ServicePolicies.policies		at org.apache.ranger.plugin.util.ServicePoliciesjava.util.Map does not have a no-arg default constructor.	this problem is related to the following location:		at java.util.Map		at private java.util.List org.apache.ranger.plugin.model.RangerPolicy.additionalResources		at org.apache.ranger.plugin.model.RangerPolicy		at private java.util.List org.apache.ranger.plugin.util.ServicePolicies.policies		at org.apache.ranger.plugin.util.ServicePolicies
      	at com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.readFrom(AbstractRootElementProvider.java:115)	at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:634)	at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:586)	at org.apache.ranger.admin.client.RangerAdminRESTClient.getServicePoliciesIfUpdatedWithCred(RangerAdminRESTClient.java:858)	at org.apache.ranger.admin.client.RangerAdminRESTClient.getServicePoliciesIfUpdated(RangerAdminRESTClient.java:146)	at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:308)	at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicy(PolicyRefresher.java:247)	at org.apache.ranger.plugin.util.PolicyRefresher.run(PolicyRefresher.java:209)Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptionsjava.util.Map is an interface, and JAXB can't handle interfaces.	this problem is related to the following location:		at java.util.Map		at private java.util.List org.apache.ranger.plugin.model.RangerPolicy.additionalResources		at org.apache.ranger.plugin.model.RangerPolicy		at private java.util.List org.apache.ranger.plugin.util.ServicePolicies.policies		at org.apache.ranger.plugin.util.ServicePoliciesjava.util.Map does not have a no-arg default constructor.	this problem is related to the following location:		at java.util.Map		at private java.util.List org.apache.ranger.plugin.model.RangerPolicy.additionalResources		at org.apache.ranger.plugin.model.RangerPolicy		at private java.util.List org.apache.ranger.plugin.util.ServicePolicies.policies		at org.apache.ranger.plugin.util.ServicePolicies
      	at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106)	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:489)	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:319)	at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1170)	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145)	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:247)	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:234)	at javax.xml.bind.ContextFinder.find(ContextFinder.java:441)	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641)	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)	at com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.getStoredJAXBContext(AbstractJAXBProvider.java:196)	at com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.getJAXBContext(AbstractJAXBProvider.java:188)	at com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.getUnmarshaller(AbstractJAXBProvider.java:140)	at com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.getUnmarshaller(AbstractJAXBProvider.java:123)	at com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.readFrom(AbstractRootElementProvider.java:111)	... 7 more 

      ranger: 2.4.0
      hadoop: 3.4.0  SM4

      Attachments

        Activity

          People

            Unassigned Unassigned
            waynecook wayne cook
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: