AnsweredAssumed Answered

How to solve java.lang.UnsatisfiedLinkError: com.mapr.security.JNISecurity.SetParsingDone()V exception ?

Question asked by sanghavigopinath on Feb 16, 2017
Latest reply on Apr 11, 2017 by tugdual

I have written RESTful web service which  accesses MAPR DB and gives back the data in JSON format. 

I have deployed WAR file on tomcat in edge node.

but i am getting following error for every API call 

 

javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.UnsatisfiedLinkError: com.mapr.security.JNISecurity.SetParsingDone()V

        org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:421)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222)

        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

root cause

org.glassfish.jersey.server.ContainerException: java.lang.UnsatisfiedLinkError: com.mapr.security.JNISecurity.SetParsingDone()V

        org.glassfish.jersey.servlet.internal.ResponseWriter.rethrow(ResponseWriter.java:256)

        org.glassfish.jersey.servlet.internal.ResponseWriter.failure(ResponseWriter.java:238)

        org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:483)

        org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:313)

        org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)

        org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)

        org.glassfish.jersey.internal.Errors.process(Errors.java:315)

        org.glassfish.jersey.internal.Errors.process(Errors.java:297)

        org.glassfish.jersey.internal.Errors.process(Errors.java:267)

        org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)

        org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:288)

        org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1110)

        org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:401)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222)

        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

root cause

java.lang.UnsatisfiedLinkError: com.mapr.security.JNISecurity.SetParsingDone()V

        com.mapr.security.JNISecurity.SetParsingDone(Native Method)

        com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils.init(CLDBRpcCommonUtils.java:231)

        com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils.<init>(CLDBRpcCommonUtils.java:73)

        com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils.<clinit>(CLDBRpcCommonUtils.java:63)

        org.apache.hadoop.conf.CoreDefaultProperties.<clinit>(CoreDefaultProperties.java:69)

        java.lang.Class.forName0(Native Method)

        java.lang.Class.forName(Class.java:348)

        org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2147)

        org.apache.hadoop.conf.Configuration.getProperties(Configuration.java:2362)

        org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2579)

        org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2531)

        org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2444)

        org.apache.hadoop.conf.Configuration.get(Configuration.java:994)

        org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1044)

        org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1445)

        org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:69)

        org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:83)

        org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:98)

        com.mdp.connectedtraveler.restutil.CommonHbaseConfiguration.hbaseConnection(CommonHbaseConfiguration.java:61)

        com.mdp.connectedtraveler.restdaoimpl.RestDaoImpl.getHbaseConfigurationDetails(RestDaoImpl.java:86)

        com.mdp.connectedtraveler.restdaoimpl.RestDaoImpl.getPersonaByPhone(RestDaoImpl.java:697)

        com.mdp.connectedtraveler.restserviceimpl.RestServiceImpl.getPersonaByPhone(RestServiceImpl.java:45)

        com.mdp.connectedtraveler.restmain.RestClient.getPersonaByPhone(RestClient.java:318)

        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        java.lang.reflect.Method.invoke(Method.java:498)

        org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)

        org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:164)

        org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:181)

        org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:158)

        org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:101)

        org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)

        org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)

        org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)

        org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:305)

        org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)

        org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)

        org.glassfish.jersey.internal.Errors.process(Errors.java:315)

        org.glassfish.jersey.internal.Errors.process(Errors.java:297)

        org.glassfish.jersey.internal.Errors.process(Errors.java:267)

        org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)

        org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:288)

        org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1110)

        org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:401)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)

        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222)

Outcomes