Debugging java code apache ranger plugin ServiceMgr.java

 

Dear worker,

Mohon dibantu untuk debugging java code apache ranger plugin.

Code induk ada di sini:
https://github.com/apache/ranger/blob/master/security-admin/src/main/java/org/apache/ranger/biz/ServiceMgr.java

Nanti sy akan jelaskan java code yang saya sudah bikin secara rinci.

Terima kasih

====================================================================

2017-10-12 11:49:42,966 [http-bio-6080-exec-1] ERROR org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:224) - ==> ServiceMgr.getRangerServiceByService(RangerService={id={null} guid={null} isEnabled={true} createdBy={null} updatedBy={null} createTime={null} updateTime={null} version={null} name={test1} type={glusterfs} description={test1} tagService={} configs={commonNameForCertificate={cname} password={admin} fs.default.name={/mnt/RangerVol} username={admin} } policyVersion={null} policyUpdateTime={null} tagVersion={null} tagUpdateTime={null} })
2017-10-12 11:49:42,967 [http-bio-6080-exec-1] ERROR org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:228) - ==> ServiceMgr serviceType glusterfs
2017-10-12 11:49:42,979 [http-bio-6080-exec-1] WARN  org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:358) - getFilesInDirectory('ranger-plugins/glusterfs'): adding /usr/local/ranger-1.0.0-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/glusterfs/ranger-glusterfs-plugin-1.0.0-SNAPSHOT.jar
2017-10-12 11:49:42,986 [http-bio-6080-exec-1] ERROR org.apache.ranger.rest.ServiceREST (ServiceREST.java:991) - validateConfig(RangerService={id={null} guid={null} isEnabled={true} createdBy={null} updatedBy={null} createTime={null} updateTime={null} version={null} name={test1} type={glusterfs} description={test1} tagService={} configs={commonNameForCertificate={cname} password={admin} fs.default.name={/mnt/RangerVol} username={admin} } policyVersion={null} policyUpdateTime={null} tagVersion={null} tagUpdateTime={null} }) failed
java.lang.ClassCastException: org.apache.ranger.services.glusterfs.RangerServiceGlusterfs cannot be cast to org.apache.ranger.plugin.service.RangerBaseService
        at org.apache.ranger.biz.ServiceMgr.getRangerServiceByService(ServiceMgr.java:237)
        at org.apache.ranger.biz.ServiceMgr.validateConfig(ServiceMgr.java:166)
        at org.apache.ranger.rest.ServiceREST.validateConfig(ServiceREST.java:987)
        at org.apache.ranger.rest.ServiceREST$$FastClassBySpringCGLIB$$92dab672.invoke()
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:700)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

Java

Project Class: Open to Suggestions
Published Date: 12/10/2017 19:13:31 WIB
Published Budget: Open to Suggestions
Finish Days: 7
Project Status: Published
Bid Count: 0
Select Deadline: 11/11/2017 19:13:31 WIB
Need Weekly Report:

Project Owner

husnifahmi
    
10.00/10.00
5,111 Point
#11 dari 100,028

Accepted Worker

Bid masih terbuka.

  Place New Bid   Ask Owner   Chat

  User Bids

 

No record found.