AnsweredAssumed Answered

How to solve java.lang.UnsatisfiedLinkError which occurs when creating a HBaseConfiguration within a stateless EJB while deploying in Glassfish 4.1?

Question asked by touforrestfire on May 5, 2015
Latest reply on May 8, 2015 by touforrestfire
How to solve java.lang.UnsatisfiedLinkError which occurs when creating a HBaseConfiguration within a stateless EJB while deploying in Glassfish 4.1? 

This error does not occur in JavaSE from Main and the whole program runs smoothly. I'm trying to create a HTable to put and get some rows. The error only occurs when I try it within an EJB and deploy it in Glassfish 4.1

I'm giving below the exception generated

2015-05-05T21:42:21.722+0530|Severe: 15/05/05 21:42:21 ERROR cldbutils.CLDBRpcCommonUtils:
 
**Exception during init
java.lang.UnsatisfiedLinkError: com.mapr.security.JNISecurity.SetClusterOptio**n(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

at com.mapr.security.JNISecurity.SetClusterOption(Native Method)
at com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils.init(CLDBRpcCommonUtils.java:161)
at com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils.<init>(CLDBRpcCommonUtils.java:72)
at com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils.<clinit>(CLDBRpcCommonUtils.java:63)
at org.apache.hadoop.conf.CoreDefaultProperties.<clinit>(CoreDefaultProperties.java:68)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:1847)
at org.apache.hadoop.conf.Configuration.getProperties(Configuration.java:2062)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2272)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2224)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2141)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:864)
at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:883)
at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1281)
at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:66)
at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:102)
at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:113)
at hyn1sampleserver.ejb.User.<init>(User.java:50)
at hyn1sampleserver.ejb.UserEJB.<init>(UserEJB.java:27)
at hyn1sampleserver.ejb.__EJB31_Generated__UserEJB__Intf____Bean__.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at com.sun.ejb.containers.BaseContainer.instantiateOptionalEJBLocalBusinessObjectImpl(BaseContainer.java:3866)
at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessionContainer.java:237)
at com.sun.ejb.containers.StatelessContainerFactory.createContainer(StatelessContainerFactory.java:63)
at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:221)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:291)





Outcomes