Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6540318D22 for ; Fri, 12 Jun 2015 19:26:01 +0000 (UTC) Received: (qmail 46059 invoked by uid 500); 12 Jun 2015 19:26:01 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 46008 invoked by uid 500); 12 Jun 2015 19:26:01 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 45996 invoked by uid 99); 12 Jun 2015 19:26:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2015 19:26:01 +0000 Date: Fri, 12 Jun 2015 19:26:01 +0000 (UTC) From: "Dmitry Minkovsky (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13889) hbase-shaded-client artifact is missing dependency (therefore, does not work) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14583936#comment-14583936 ] Dmitry Minkovsky commented on HBASE-13889: ------------------------------------------ So I expanded my test project to [include a PUT|https://github.com/dminkovsky/HBASE-13889/blob/df16232559fed62974905cf348ceb612b28c612f/src/main/java/com/mycompany/app/App.java]. Now I get the following error when I compile: {noformat} $ mvn compile ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project my-app: Compilation failure [ERROR] /private/tmp/my-app/src/main/java/com/mycompany/app/App.java:[18,12] cannot find symbol [ERROR] symbol: method addColumn(byte[],byte[],byte[]) [ERROR] location: variable put of type org.apache.hadoop.hbase.client.Put {noformat} This does not happen when I revert the dependency to 1.1.0.1. > hbase-shaded-client artifact is missing dependency (therefore, does not work) > ----------------------------------------------------------------------------- > > Key: HBASE-13889 > URL: https://issues.apache.org/jira/browse/HBASE-13889 > Project: HBase > Issue Type: Bug > Components: Client > Affects Versions: 1.1.0, 1.1.0.1 > Environment: N/A? > Reporter: Dmitry Minkovsky > Priority: Blocker > Fix For: 2.0.0, 1.2.0, 1.1.1 > > Attachments: Screen Shot 2015-06-11 at 10.59.55 AM.png > > > The {{hbase-shaded-client}} artifact was introduced in [HBASE-13517|https://issues.apache.org/jira/browse/HBASE-13517]. Thank you very much for this, as I am new to Java building and was having a very slow-moving time resolving conflicts. However, the shaded client artifact seems to be missing {{javax.xml.transform.TransformerException}}. I examined the JAR, which does not have this package/class. > Steps to reproduce: > Java: > {code} > package com.mycompany.app; > > import org.apache.hadoop.conf.Configuration; > import org.apache.hadoop.hbase.HBaseConfiguration; > import org.apache.hadoop.hbase.client.Connection; > import org.apache.hadoop.hbase.client.ConnectionFactory; > > public class App { > public static void main( String[] args ) throws java.io.IOException { > Configuration config = HBaseConfiguration.create(); > Connection connection = ConnectionFactory.createConnection(config); > } > } > {code} > POM: > {code} > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> > 4.0.0 > > com.mycompany.app > my-app > 1.0-SNAPSHOT > jar > > my-app > http://maven.apache.org > > > UTF-8 > > > > > junit > junit > 3.8.1 > test > > > org.apache.hbase > hbase-shaded-client > 1.1.0 > > > > {code} > Run: > {noformat} > $ mvn exec:java -Dexec.mainClass="com.mycompany.app.App" > [INFO] Scanning for projects... > [INFO] > [INFO] ------------------------------------------------------------------------ > [INFO] Building my-app 1.0-SNAPSHOT > [INFO] ------------------------------------------------------------------------ > [INFO] > [INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ my-app --- > [WARNING] > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/shaded/javax/xml/transform/TransformerException > at com.mycompany.app.App.main(App.java:17) > ... 6 more > Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.shaded.javax.xml.transform.TransformerException > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 7 more > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 2.388 s > [INFO] Finished at: 2015-06-11T13:23:21-04:00 > [INFO] Final Memory: 10M/111M > [INFO] ------------------------------------------------------------------------ > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)