Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 75B5810929 for ; Wed, 10 Apr 2013 11:02:29 +0000 (UTC) Received: (qmail 16000 invoked by uid 500); 10 Apr 2013 11:02:27 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 15028 invoked by uid 500); 10 Apr 2013 11:02:17 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 14984 invoked by uid 99); 10 Apr 2013 11:02:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 11:02:16 +0000 Date: Wed, 10 Apr 2013 11:02:16 +0000 (UTC) From: "Darran Lofthouse (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DIRKRB-89) Incorrect caller detection for 'ServerAnnotationProcessor' when running under IBM Java7 JRE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Darran Lofthouse created DIRKRB-89: -------------------------------------- Summary: Incorrect caller detection for 'ServerAnnotationProcessor' when running under IBM Java7 JRE Key: DIRKRB-89 URL: https://issues.apache.org/jira/browse/DIRKRB-89 Project: Directory Kerberos Issue Type: Bug Affects Versions: 2.0.0-M11 Environment: java version "1.7.0" Java(TM) SE Runtime Environment (build pxa6470sr4fp1-20130325_01(SR4 FP1)) IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References 20130306_140761 (JIT enabled, AOT enabled) J9VM - R26_Java726_SR4_FP1_20130306_1011_B140761 JIT - r11.b03_20130131_32403ifx1 GC - R26_Java726_SR4_FP1_20130306_1011_B140761_CMPRSS J9CL - 20130306_140761) JCL - 20130315_01 based on Oracle 7u13-b08 Reporter: Darran Lofthouse Assignee: Emmanuel Lecharny When running under the Java 7 IBM JDK the detection of the @CreateKdcServer annotation fails as the caller is incorrectly identified. The stack elements are: - [0] java.lang.Thread.getStackTraceImpl(Native Method) [1] java.lang.Thread.getStackTrace(Thread.java:1113) [2] org.apache.directory.server.factory.ServerAnnotationProcessor.getAnnotation(ServerAnnotationProcessor.java:339) [3] org.apache.directory.server.factory.ServerAnnotationProcessor.getKdcServer(ServerAnnotationProcessor.java:373) [4] org.jboss.remoting3.test.RemoteKerberosChannelTest.createKDCServer(RemoteKerberosChannelTest.java:170) Stack element 3 was chosen where it should actually have been stack element 4 chosen to search for the annotation. This sounds to be a similar issue to the Java 5 specific check where there is this additional native method at the top, unfortunately it has a different name on Java 7. Changing the String compared from "dumpThreads" to "(Native Method)" may be better to cover both scenarios. Alternatively the 'org.apache.directory.server.core.annotations.AnnotationUtils' used to create the directory server works fine as this works by iterating it's way back up the call stack so additional elements do not affect it. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira