logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: [GUMP@brutus]: logging-log4j/logging-log4j failed
Date Thu, 27 May 2004 08:22:28 GMT
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 
    * offered by the super class.
   public InputSource resolveEntity(String publicId, String systemId) 
throws SAXException {
     if(entityResolver == 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.


>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:
>Work Name: build_logging-log4j_logging-log4j (Type: Build)
>State: Failed
>Elapsed: 0 hours, 0 minutes, 4 seconds
>Command Line: java -Djava.awt.headless=true 

>-Dbuild.sysclasspath=only -Dversion=20040526 jar
>[Working Directory: /usr/local/gump/public/workspace/logging-log4j]

>Buildfile: build.xml
>     [mkdir] Created dir: 
> /usr/local/gump/public/workspace/logging-log4j/dist/classes
>     [javac] Compiling 220 source files to 
> /usr/local/gump/public/workspace/logging-log4j/dist/classes
>     [javac] 
> /usr/local/gump/public/workspace/logging-log4j/src/java/org/apache/joran/Interpreter.java:301:

> unreported exception java.io.IOException; must be caught or declared to 
> be thrown
>     [javac]       return super.resolveEntity(publicId, systemId);
>     [javac]                                 ^
>     [javac] 
> /usr/local/gump/public/workspace/logging-log4j/src/java/org/apache/joran/Interpreter.java:307:

> unreported exception java.io.IOException; must be caught or declared to 
> 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
>/usr/local/gump/public/workspace/logging-log4j/build.xml:242: Compile 
>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

Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message