Return-Path: Delivered-To: apmail-gump-general-archive@www.apache.org Received: (qmail 18779 invoked from network); 27 May 2004 08:22:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 May 2004 08:22:52 -0000 Received: (qmail 42090 invoked by uid 500); 27 May 2004 08:23:27 -0000 Delivered-To: apmail-gump-general-archive@gump.apache.org Received: (qmail 41986 invoked by uid 500); 27 May 2004 08:23:26 -0000 Mailing-List: contact general-help@gump.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Gump code and data" Reply-To: "Gump code and data" Delivered-To: mailing list general@gump.apache.org Received: (qmail 41944 invoked by uid 98); 27 May 2004 08:23:26 -0000 Received: from ceki@qos.ch by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(80.238.41.184):. Processed in 0.206713 secs); 27 May 2004 08:23:26 -0000 X-Qmail-Scanner-Mail-From: ceki@qos.ch via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(80.238.41.184):. Processed in 0.206713 secs) Received: from unknown (HELO mail.qos.ch) (80.238.41.184) by hermes.apache.org with SMTP; 27 May 2004 08:23:25 -0000 Received: from kal.qos.ch (kal [192.168.1.3]) by mail.qos.ch (Postfix) with ESMTP id 32D091EC1CB; Thu, 27 May 2004 10:29:45 +0200 (CEST) Message-Id: <6.0.3.0.0.20040527100910.03217b18@mail.qos.ch> X-Sender: ceki@mail.qos.ch (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Thu, 27 May 2004 10:22:28 +0200 To: general@gump.apache.org From: Ceki =?iso-8859-1?Q?G=FClc=FC?= Subject: Re: [GUMP@brutus]: logging-log4j/logging-log4j failed Cc: log4j-dev@logging.apache.org In-Reply-To: <20040526204655.A79361EC1CB@mail.qos.ch> References: <20040526204655.A79361EC1CB@mail.qos.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello all, It appears that log4j is failing to compile on brutus. It compiles fine on my side using JDK 1.4, 1.3 or 1.2. The problem appears to be linked to the signature of the resolveEntity() method in org.xml.sax.helpers.DefaultHandler. Contrary to what is declared by the resolveEntity method in EntityResolver interface, the resolveEntity method in the DefaultHandler is not declared as throwing an IOException. (It masks the IOException.) Here is the code from the org.apache.joran.Interpreter class which fails to compile on Brutus. // Joran builds as part of log4j. package org.apache.joran; public class Interpreter extends DefaultHandler { .... /** * If a specific entityResolver is set for this Interpreter instance,= then * we use it to resolve entities. Otherwise, we use the default=20 implementation * offered by the super class. */ public InputSource resolveEntity(String publicId, String systemId)=20 throws SAXException { if(entityResolver =3D=3D null) { return super.resolveEntity(publicId, systemId); } else { try { return entityResolver.resolveEntity(publicId, systemId); } catch(IOException ioe) { // fall back to the default implementation return super.resolveEntity(publicId, systemId); } } } } Which version of the org.xml.sax package is used on brutus? I am a bit at a loss here. Thanks in advance for shedding some light on to the matter. At 10:38 PM 5/26/2004, noreply@qos.ch wrote: >To whom it may engage... > >This is an automated request, but not an unsolicited one. For >more information please visit http://gump.apache.org/nagged.html, >and/or contact folk at general@gump.apache.org. > >Project logging-log4j has an issue affecting its community integration. >This issue affects 213 projects. >Project State : 'Failed', Reason 'Build Failed' >The following are affected: > - ant-embed-optional : Java based build tool > - avalon : Avalon's main repository. [snip] >Full details are available at: > > = http://brutus.apache.org:8080/gump/logging-log4j/logging-log4j/index.html > >That said, some snippets follow: > > >The following annotations were provided: > -INFO- Failed with reason build failed > -INFO- Enable "debug" output, due to build failure. > > >The following work was performed: >http://brutus.apache.org:8080/gump/logging-log4j/logging-log4j/gump_work/bu= ild_logging-log4j_logging-log4j.html >Work Name: build_logging-log4j_logging-log4j (Type: Build) >State: Failed >Elapsed: 0 hours, 0 minutes, 4 seconds >Command Line: java -Djava.awt.headless=3Dtrue=20 >-Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/java/build/x= ercesImpl.jar:/usr/local/gump/public/workspace/xml-xerces2/java/build/xml-ap= is.jar=20 >org.apache.tools.ant.Main=20 >-Dgump.merge=3D/usr/local/gump/public/gump/work/merge.xml=20 >-Dbuild.sysclasspath=3Donly -Dversion=3D20040526 jar >[Working Directory: /usr/local/gump/public/workspace/logging-log4j] >CLASSPATH :=20 >/usr/local/j2sdk1.4.2_04/lib/tools.jar:/usr/local/gump/public/workspace/log= ging-log4j/dist/classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-st= ylebook.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/l= ocal/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public= /workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/di= st/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launc= her.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-xalan2.jar:/usr/lo= cal/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public= /workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-ser= vletapi-4/lib/servlet.jar:/usr/local/gump/packages/jms1.0.2/lib/jms.jar:/usr= /local/gump/packages/jmx-1_2-ri/lib/jmxri.jar:/usr/local/gump/packages/jmx-1= _2-ri/lib/jmxtools.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar= :/usr/local/gump/packages/javamail-1.3/mail.jar-----------------------------= ---------=20 >------- >Buildfile: build.xml > >init: > >jndiCheck: > >build.core: > [mkdir] Created dir:=20 > /usr/local/gump/public/workspace/logging-log4j/dist/classes > [javac] Compiling 220 source files to=20 > /usr/local/gump/public/workspace/logging-log4j/dist/classes > [javac]=20 >= /usr/local/gump/public/workspace/logging-log4j/src/java/org/apache/joran/In= terpreter.java:301:=20 > unreported exception java.io.IOException; must be caught or declared to=20 > be thrown > [javac] return super.resolveEntity(publicId, systemId); > [javac] ^ > [javac]=20 >= /usr/local/gump/public/workspace/logging-log4j/src/java/org/apache/joran/In= terpreter.java:307:=20 > unreported exception java.io.IOException; must be caught or declared to=20 > be thrown > [javac] return super.resolveEntity(publicId, systemId); > [javac] ^ > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -deprecation for details. > [javac] 2 errors > >BUILD FAILED >/usr/local/gump/public/workspace/logging-log4j/build.xml:242: Compile=20 >failed; see the compiler error output for details. > >-- >Apache Gump >http://gump.apache.org/ [Instance: brutus] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org >For additional commands, e-mail: log4j-dev-help@logging.apache.org --=20 Ceki G=FClc=FC For log4j documentation consider "The complete log4j manual" ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp =20 --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@gump.apache.org For additional commands, e-mail: general-help@gump.apache.org