Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DD7FE132 for ; Sat, 2 Feb 2013 16:20:36 +0000 (UTC) Received: (qmail 66101 invoked by uid 500); 2 Feb 2013 16:20:34 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 65672 invoked by uid 500); 2 Feb 2013 16:20:29 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 65647 invoked by uid 99); 2 Feb 2013 16:20:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 16:20:28 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of waynefay@gmail.com designates 209.85.220.48 as permitted sender) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 16:20:20 +0000 Received: by mail-pa0-f48.google.com with SMTP id fa1so2690178pad.35 for ; Sat, 02 Feb 2013 08:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=0bavshPo0OFR2ChE7Pu9LgsxKB/gM0n+2ymptV8XBhc=; b=jcQedv2BS+uGm5IFhVBOJzaTSAv8DuI0K3Z/bnL312rZYxuuMh4gwbn3wK7eE/uf0+ Hr7bBI8kPasLeVn84SDpjX3zIOrk8eig2PwwHT3/pIZPYAnpJvzgnYjqWUlTCO8Qbz7q 0Hd4eWjBW5r4kGhZjj5IfP0XjxftswkjD7oYHg/pZUliVJBeCP4yOUTOA3NbTvIkE4Cj Uq53ekaTRBp5Zr4RN/JgxoECzSptxuZNhCEqHJTDdpwgEAAs5jdQB9HLED4D/M1OQs3X s9PbVzxQYOtbpe8qTUw3s+TbrDGjFGq05SG8KEvkjCPLmndMOvo0l/GAjXlJqblx3wpt 8Ohw== X-Received: by 10.68.247.39 with SMTP id yb7mr42400443pbc.15.1359821999193; Sat, 02 Feb 2013 08:19:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.67.14.98 with HTTP; Sat, 2 Feb 2013 08:19:38 -0800 (PST) In-Reply-To: References: From: Wayne Fay Date: Sat, 2 Feb 2013 10:19:38 -0600 Message-ID: Subject: Re: Maven compiler fails non-randomly To: Maven Users List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org > This issue is still haunting me. The same project could be running on one If you check the 2 stacktraces you've included below, this is an error being emitted by javac, not Maven. You just happen to see it via Maven as that is your build tool. It is a bit of a pain, but can you test compiling with javac from the command line (passing in the dependencies etc via -cp)? I think you will discover that is occurs just as it does when compiling with Maven. I'd offer help with this if it was an open source project. Once you verify this, follow the directions about the Bug Parade so this can be fixed in the JDK itself. Maven simply calls out and uses your system JDK/javac for compiling, so bugs in javac mean that errors occur when compiling with Maven as well. Wayne > > ZipFileIndexFileObject[C:\bea12\jdk1.7.0_04_x86\lib\ct.sym(META-INF/sym/rt.jar/java/util/Comparator.class)]] > > An exception has occurred in the compiler (1.7.0_04). Please file a bug > > at > > the Java Developer Connection (http://java.sun.com/webapps/bugreport) > > after checking > > the Bug Parade for duplicates. Include your program and the following > > diagnostic in your report. Thank you. > > java.lang.IllegalAccessError: tried to access class > > com.sun.tools.javac.code.Kinds$1 from class > >>> > [ERROR] Failure executing javac, but could not parse the error: > >>> > An exception has occurred in the compiler (1.7.0_04). Please file a > >>> bug at > >>> > the Java Developer Connection > >>> > (http://java.sun.com/webapps/bugreport) > >>> > after checking > >>> > the Bug Parade for duplicates. Include your program and the > >>> > following > >>> > diagnostic in your report. Thank you. > >>> > java.lang.LinkageError: loader constraint violation: loader > >>> > (instance > >>> of > >>> > sun/misc/Launcher$AppClassLoader) previously initiated loading for a > >>> > different type wit > >>> > h name "com/sun/tools/javac/code/Symbol" > >>> > at java.lang.ClassLoader.defineClass1(Native Method) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org