Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6185F200C45 for ; Mon, 13 Mar 2017 10:49:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 604AC160B60; Mon, 13 Mar 2017 09:49:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8B5CF160B6C for ; Mon, 13 Mar 2017 10:49:09 +0100 (CET) Received: (qmail 62043 invoked by uid 500); 13 Mar 2017 09:49:08 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 62029 invoked by uid 99); 13 Mar 2017 09:49:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2017 09:49:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 45B6618231E for ; Mon, 13 Mar 2017 09:49:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xrQhf8Ejw2fn for ; Mon, 13 Mar 2017 09:49:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 22A3C60FE2 for ; Mon, 13 Mar 2017 09:49:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0AFA8E0534 for ; Mon, 13 Mar 2017 09:49:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6495B243AE for ; Mon, 13 Mar 2017 09:49:04 +0000 (UTC) Date: Mon, 13 Mar 2017 09:49:04 +0000 (UTC) From: "Vasu (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-5256) Exception in thread "main" java.lang.ExceptionInInitializerError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 13 Mar 2017 09:49:10 -0000 [ https://issues.apache.org/jira/browse/DRILL-5256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vasu updated DRILL-5256: ------------------------ Description: Below error while connecting to Drill Server Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:257) at oadd.org.apache.drill.exec.memory.BaseAllocator.(BaseAllocator.java:44) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:235) at java.lang.J9VMInternals.initialize(J9VMInternals.java:202) at oadd.org.apache.drill.exec.memory.RootAllocatorFactory.newRoot(RootAllocatorFactory.java:38) at org.apache.drill.jdbc.impl.DrillConnectionImpl.(DrillConnectionImpl.java:143) at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:64) at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69) at oadd.net.hydromatic.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:126) at org.apache.drill.jdbc.Driver.connect(Driver.java:72) at java.sql.DriverManager.getConnection(DriverManager.java:583) at java.sql.DriverManager.getConnection(DriverManager.java:245) at com.trianz.drill.ApacheDrillDemo.main(ApacheDrillDemo.java:13) Caused by: java.lang.NullPointerException at oadd.io.netty.buffer.PooledByteBufAllocatorL$InnerAllocator.(PooledByteBufAllocatorL.java:93) at oadd.io.netty.buffer.PooledByteBufAllocatorL.(PooledByteBufAllocatorL.java:56) at oadd.org.apache.drill.exec.memory.AllocationManager.(AllocationManager.java:60) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:235) ... 13 more When I tried to debug in to source code, following is the place where we are getting NULL POINTER EXCEPTION drill/exec/memory/base/src/main/java/io/netty/buffer/PooledByteBufAllocatorL.java Line: 93: this.chunkSize = directArenas[0].chunkSize; Below is the code snapshot. public InnerAllocator() { super(true); try { Field f = PooledByteBufAllocator.class.getDeclaredField("directArenas"); f.setAccessible(true); this.directArenas = (PoolArena[]) f.get(this); } catch (Exception e) { throw new RuntimeException("Failure while initializing allocator. Unable to retrieve direct arenas field.", e); } this.chunkSize = directArenas[0].chunkSize; if (memoryLogger.isTraceEnabled()) { Can anyone please help on this? Thanks in advance. Thanks, Vasu T was: Below error while connecting to Drill Server Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:257) at oadd.org.apache.drill.exec.memory.BaseAllocator.(BaseAllocator.java:44) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:235) at java.lang.J9VMInternals.initialize(J9VMInternals.java:202) at oadd.org.apache.drill.exec.memory.RootAllocatorFactory.newRoot(RootAllocatorFactory.java:38) at org.apache.drill.jdbc.impl.DrillConnectionImpl.(DrillConnectionImpl.java:143) at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:64) at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69) at oadd.net.hydromatic.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:126) at org.apache.drill.jdbc.Driver.connect(Driver.java:72) at java.sql.DriverManager.getConnection(DriverManager.java:583) at java.sql.DriverManager.getConnection(DriverManager.java:245) at com.trianz.drill.ApacheDrillDemo.main(ApacheDrillDemo.java:13) Caused by: java.lang.NullPointerException at oadd.io.netty.buffer.PooledByteBufAllocatorL$InnerAllocator.(PooledByteBufAllocatorL.java:93) at oadd.io.netty.buffer.PooledByteBufAllocatorL.(PooledByteBufAllocatorL.java:56) at oadd.org.apache.drill.exec.memory.AllocationManager.(AllocationManager.java:60) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:235) ... 13 more When I tried to debug in to source code, following is the place where we are getting NULL POINTER EXCEPTION drill/exec/memory/base/src/main/java/io/netty/buffer/PooledByteBufAllocatorL.java Line: 93: this.chunkSize = directArenas[0].chunkSize; Below is the code snapshot. public InnerAllocator() { super(true); try { Field f = PooledByteBufAllocator.class.getDeclaredField("directArenas"); f.setAccessible(true); this.directArenas = (PoolArena[]) f.get(this); } catch (Exception e) { throw new RuntimeException("Failure while initializing allocator. Unable to retrieve direct arenas field.", e); } this.chunkSize = directArenas[0].chunkSize; if (memoryLogger.isTraceEnabled()) { Can anyone please help on this? Thanks in advance. Thanks, Vasu T > Exception in thread "main" java.lang.ExceptionInInitializerError > ---------------------------------------------------------------- > > Key: DRILL-5256 > URL: https://issues.apache.org/jira/browse/DRILL-5256 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC > Affects Versions: 1.7.0, 1.8.0 > Environment: Windows 7, IBM SDK 1.6 and IBM SDK 1.7 > Reporter: Vasu > Labels: jvm > > Below error while connecting to Drill Server > Exception in thread "main" java.lang.ExceptionInInitializerError > at java.lang.J9VMInternals.initialize(J9VMInternals.java:257) > at oadd.org.apache.drill.exec.memory.BaseAllocator.(BaseAllocator.java:44) > at java.lang.J9VMInternals.initializeImpl(Native Method) > at java.lang.J9VMInternals.initialize(J9VMInternals.java:235) > at java.lang.J9VMInternals.initialize(J9VMInternals.java:202) > at oadd.org.apache.drill.exec.memory.RootAllocatorFactory.newRoot(RootAllocatorFactory.java:38) > at org.apache.drill.jdbc.impl.DrillConnectionImpl.(DrillConnectionImpl.java:143) > at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:64) > at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69) > at oadd.net.hydromatic.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:126) > at org.apache.drill.jdbc.Driver.connect(Driver.java:72) > at java.sql.DriverManager.getConnection(DriverManager.java:583) > at java.sql.DriverManager.getConnection(DriverManager.java:245) > at com.trianz.drill.ApacheDrillDemo.main(ApacheDrillDemo.java:13) > Caused by: java.lang.NullPointerException > at oadd.io.netty.buffer.PooledByteBufAllocatorL$InnerAllocator.(PooledByteBufAllocatorL.java:93) > at oadd.io.netty.buffer.PooledByteBufAllocatorL.(PooledByteBufAllocatorL.java:56) > at oadd.org.apache.drill.exec.memory.AllocationManager.(AllocationManager.java:60) > at java.lang.J9VMInternals.initializeImpl(Native Method) > at java.lang.J9VMInternals.initialize(J9VMInternals.java:235) > ... 13 more > When I tried to debug in to source code, following is the place where we are getting NULL POINTER EXCEPTION > drill/exec/memory/base/src/main/java/io/netty/buffer/PooledByteBufAllocatorL.java > Line: 93: this.chunkSize = directArenas[0].chunkSize; > Below is the code snapshot. > public InnerAllocator() { > super(true); > try { > Field f = PooledByteBufAllocator.class.getDeclaredField("directArenas"); > f.setAccessible(true); > this.directArenas = (PoolArena[]) f.get(this); > } catch (Exception e) { > throw new RuntimeException("Failure while initializing allocator. Unable to retrieve direct arenas field.", e); > } > this.chunkSize = directArenas[0].chunkSize; > if (memoryLogger.isTraceEnabled()) { > Can anyone please help on this? Thanks in advance. > Thanks, > Vasu T -- This message was sent by Atlassian JIRA (v6.3.15#6346)