AnsweredAssumed Answered

ClassFormatError when loading HTable class

Question asked by wlimam on Jan 31, 2017
Latest reply on Feb 7, 2017 by maprcommunity

Hi all,

 

We are deploying a war application under jboss 6.2.

The application uses the mapr api in order to connect to MapR-DB (5.1).

The MapR client(5.1) is installed and works correctly.

The instantiation of org.apache.hadoop.conf.Configuration works fine.

But when connecting to MapR-DB we receive an excetpion indicating that the JVM cannot load HTable.class.

Details about The environment:

CentOS 6

Jboss 6.2

Java 71

MapR ApI used and packaged into the war :

 artifactId="hadoop-auth" groupId="org.apache.hadoop" version="2.7.0-mapr-1602"
 artifactId="hadoop-common" groupId="org.apache.hadoop"    version="2.7.0-mapr-1602"
 artifactId="hbase-annotations" groupId="org.apache.hbase" version="1.1.1-mapr-1602"
 artifactId="hbase-client" groupId="org.apache.hbase"     version="1.1.1-mapr-1602"
 artifactId="hbase-common" groupId="org.apache.hbase"    version="1.1.1-mapr-1602"
 artifactId="hbase-protocol" groupId="org.apache.hbase"    version="1.1.1-mapr-1602"

 

Here is the exception

Module Loader: java.lang.ClassFormatError: Invalid index 1 in LocalVariableTable in class file org/apache/hadoop/hbase/client/HTable

        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_71]

        at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_71]

        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final-redhat-1]

        at com.mapr.fs.hbase.MapRClusterConnectionImpl.getTable(MapRClusterConnectionImpl.java:168) [mapr-hbase-5.1.0-mapr.jar:5.1.0-mapr]

        at com.mapr.fs.hbase.MapRClusterConnectionImpl.getTable(MapRClusterConnectionImpl.java:53) [mapr-hbase-5.1.0-mapr.jar:5.1.0-mapr]

Outcomes