Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4241540

# Completion failure after moving source to new location

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      generic, x86, sparc
    • OS:
      generic, linux, solaris_8, solaris_9, windows_95, windows_98, windows_nt, windows_2000
    • Verification:
      Verified

      Description

      tion (http://java.sun.com/cgi-bin/bugreport.cgi). Include
      your program and the following diagnostic in your report. Thank you.
      com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file
      org\xml\sax\SAXException.class not found
      at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:997)
      at com.sun.tools.javac.v8.code.ClassReader.complete
      (ClassReader.java:952)
      at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
      at com.sun.tools.javac.v8.code.Type$ClassType.supertype(Type.java:812)
      at com.sun.tools.javac.v8.code.Symbol$ClassSymbol.isSubClass
      (Symbol.java:622)
      at com.sun.tools.javac.v8.comp.Check.isUnchecked(Check.java:541)
      at com.sun.tools.javac.v8.comp.Flow.markThrown(Flow.java:255)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:748)
      at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:829)
      at com.sun.tools.javac.v8.tree.Tree$TypeCast.visit(Tree.java:904)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:507)
      at com.sun.tools.javac.v8.tree.Tree$VarDef.visit(Tree.java:470)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
      at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:626)
      at com.sun.tools.javac.v8.tree.Tree$Try.visit(Tree.java:642)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
      at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:488)
      at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:456)
      at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:402)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
      at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:380)
      at com.sun.tools.javac.v8.Main.compile(Main.java:247)
      at com.sun.tools.javac.Main.main(Main.java:16)

      Compilation exited abnormally with code 4 at Mon Jan 22 16:26:07
      =================
      The code is:

      package com.lilliput.test;

      import fr.dyade.koala.xml.kbml.KBMLDeserializer;
      import java.io.FileInputStream;
      /**
       * @author Channing Walton
       */
      public class Importer {

          /**
           * Importer constructor comment.
           */
          public Importer() {
              super();
          }

          /**
           * Starts the application.
           * @param args an array of command-line arguments
           */
          public static void main(java.lang.String[] args) {
              try {
                  FileInputStream istream = new FileInputStream("test.kbml");
                  KBMLDeserializer bxi = new KBMLDeserializer(istream);
                  TestBean bean = (TestBean) bxi.readBean();
                  System.out.println(bean.toString());
                  bxi.close();
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
      }
      (Review ID: 115547)
      ======================================================================

      Name: krC82822 Date: 07/19/2001


      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

      1. Try to compile the source file, with some classpath information:

      javac -classpath .;castor-0.9.3-xml.jar; CastorTest.java

      2. The source code (CastorTest.java):

      import org.exolab.castor.xml.dtd.Converter;
      import java.io.*;

      public class CastorTest {
          
          public static void main(String[] args)
              throws Exception
          {
              if (args.length != 2) {
                  System.out.println("Usage: CastorTest <dtdFile> <schemaFile>");
              } else {
                  FileReader dtdFile = new FileReader(args[0]);
                  FileWriter xmlFile = new FileWriter(args[1]);
                  Converter.convertDTDtoSchema(dtdFile, xmlFile);
              }
          }
      }

      3 & 4. The full output:

      An exception has occurred in the compiler (1.3.1). Please file a bug at the Java
       Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi). Include your
       program and the following diagnostic in your report. Thank you.
      com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file
      org\xml\sax\SAXException.class not found
              at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:997)
              at com.sun.tools.javac.v8.code.ClassReader.complete
      (ClassReader.java:952)
              at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
              at com.sun.tools.javac.v8.code.Type$ClassType.supertype(Type.java:812)
              at com.sun.tools.javac.v8.code.Symbol$ClassSymbol.isSubClass
      (Symbol.java:622)
              at com.sun.tools.javac.v8.comp.Check.isUnchecked(Check.java:541)
              at com.sun.tools.javac.v8.comp.Flow.markThrown(Flow.java:255)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:748)
              at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:719)
              at com.sun.tools.javac.v8.tree.Tree$Exec.visit(Tree.java:699)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
              at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:693)
              at com.sun.tools.javac.v8.tree.Tree$Conditional.visit(Tree.java:682)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
              at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:488)
              at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:456)
              at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:402)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
              at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:380)
              at com.sun.tools.javac.v8.Main.compile(Main.java:247)
              at com.sun.tools.javac.Main.main(Main.java:16)

      5. I used classes from a jar file (castor-0.9.3-xml.jar), which can be
      downloaded from http://castor.exolab.org/download.html
      (Review ID: 128456)
      ======================================================================

      Name: rmT116609 Date: 08/02/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      When compiling the following code:

      import javax.naming.InitialContext;
      import javax.rmi.PortableRemoteObject;

      import exel.searches.*;
      class searchesClient
      {
         public static void main(String[] args)
         {
            // Enclosing the whole process in a single `try' block is not an ideal way
            // to do exception handling, but I don't want to clutter the program up
            // with catch blocks
            try
            {
               // Get a naming context
               InitialContext jndiContext = new InitialContext();
               System.out.println("Got context");
               
               // Get a reference to the Interest Bean
               Object ref = jndiContext.lookup("searches/Search");
               System.out.println("Got reference");
               
               // Get a reference from this to the Bean's Home interface
               SearchHome home = (SearchHome)
               PortableRemoteObject.narrow(ref, SearchHome.class);
               
               // Create an Interest object from the Home interface
               Search search = home.create();
               
               // call the calculateCompoundInterest() method to do the calculation
               System.out.println("Interest on 1000 units, at 10% per period,
      compounded over 2 periods is:");
               System.out.println(search.loadSrch("datasource=jdbc/Efacs", "eqry"));
            }
            catch(Exception e)
            {
               System.out.println(e.toString());
            }
         }
      }


      If the class path contains everything required apart from the jar containing
      the DataException class (thrown by search.loadSrch()) javac falls over with the
      following error:

      An exception has occurred in the compiler (1.3.0). Please file a bug at the Jav
       Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi). Include you
       program and the following diagnostic in your report. Thank you.
      com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file exel\system\DataExce
      tion.class not found
              at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:997)
              at com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:95
      )
              at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
              at com.sun.tools.javac.v8.code.Type$ClassType.supertype(Type.java:812)
              at com.sun.tools.javac.v8.code.Symbol$ClassSymbol.isSubClass(Symbol.jav
      :622)
              at com.sun.tools.javac.v8.comp.Check.isUnchecked(Check.java:541)
              at com.sun.tools.javac.v8.comp.Flow.markThrown(Flow.java:255)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:748)
              at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
              at com.sun.tools.javac.v8.comp.Flow.analyzeExprs(Flow.java:404)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:745)
              at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:719)
              at com.sun.tools.javac.v8.tree.Tree$Exec.visit(Tree.java:699)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
              at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:626)
              at com.sun.tools.javac.v8.tree.Tree$Try.visit(Tree.java:642)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
              at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:488)
              at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:456)
              at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:402)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
              at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:380)
              at com.sun.tools.javac.v8.Main.compile(Main.java:247)
              at com.sun.tools.javac.Main.main(Main.java:16)
      (Review ID: 129275)
      ======================================================================
      From ###@###.### Wed May 26 13:29:07 1999
      Date: Wed, 26 May 1999 11:20:09 -0700

      This happened when I moved the webtool.site.LinkConsumer class to
      webtool.link.LinkConsumer, without first cleaning all .class files.

      --
      An exception has occurred in the compiler. (v0.8)
      Please file a bug report by sending your program and the following
      diagnostic to

      ###@###.###.

         Thank you.

      com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file
      webtool\site\LinkCons
      umer.class not found
              at
      com.sun.tools.javac.v8.code.ClassReader.fillIn(..\..\..\..\src\shareclasses\com/sun/tools/javac/v8/code/ClassReader.java:973)
              at
      com.sun.tools.javac.v8.code.ClassReader.complete(..\..\..\..\src\shar
      e\classes\com/sun/tools/javac/v8/code/ClassReader.java:934)
              at
      com.sun.tools.javac.v8.code.Symbol.complete(..\..\..\..\src\share\cla
      sses\com/sun/tools/javac/v8/code/Symbol.java:263)
              at
      com.sun.tools.javac.v8.code.Symbol$ClassSymbol.flags(..\..\..\..\srcshare\classes\com/sun/tools/javac/v8/code/Symbol.java:443)
              at
      com.sun.tools.javac.v8.comp.Check.firstUndef(..\..\..\..\src\share\cl
      asses\com/sun/tools/javac/v8/comp/Check.java:987)
              at
      com.sun.tools.javac.v8.comp.Check.firstUndef(..\..\..\..\src\share\cl
      asses\com/sun/tools/javac/v8/comp/Check.java:1007)
              at
      com.sun.tools.javac.v8.comp.Check.firstUndef(..\..\..\..\src\share\cl
      asses\com/sun/tools/javac/v8/comp/Check.java:1002)
              at
      com.sun.tools.javac.v8.comp.Check.checkAllDefined(..\..\..\..\src\sha
      re\classes\com/sun/tools/javac/v8/comp/Check.java:969)
              at
      com.sun.tools.javac.v8.comp.Attr.attribClass(..\..\..\..\src\share\cl
      asses\com/sun/tools/javac/v8/comp/Attr.java:1882)
              at
      com.sun.tools.javac.v8.JavaCompiler.compile(..\..\..\..\src\share\cla
      sses\com/sun/tools/javac/v8/JavaCompiler.java:325)
              at
      com.sun.tools.javac.v8.Main.compile(..\..\..\..\src\share\classes\com
      /sun/tools/javac/v8/Main.java:247)
              at
      com.sun.tools.javac.Main.main(..\..\..\..\src\share\classes\com/sun/t
      ools/javac/Main.java:16)




      Name: tb29552 Date: 09/26/2000


      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-b17)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-b17, interpreted mode)


      javac throws the exception below if SomeException.class isn't in the CLASSPATH
      when compiling baz. SomeException is never directly referenced in baz, but it
      was present in the CLASSPATH when foo was compiled.

      public class foo {
        public void bar() throws SomeException { ... }
      }

      public class baz {
         public static bat() throws Exception {
            ... create a foo etc ...
            myfoo.bar();
         }
      }


      An exception has occurred in the compiler (1.3.0rc1). Please file a bug at the
      Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi). Include
      your program and the following diagnostic in your report. Thank you.
      com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file
      com/xxxxxxxx/xxxxxxxx/SomeException.class not found
              at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:997)
              at
      com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:952)
              at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
              at com.sun.tools.javac.v8.code.Type$ClassType.supertype(Type.java:812)
              at
      com.sun.tools.javac.v8.code.Symbol$ClassSymbol.isSubClass(Symbol.java:622)
              at com.sun.tools.javac.v8.comp.Check.isUnchecked(Check.java:541)
              at com.sun.tools.javac.v8.comp.Flow.markThrown(Flow.java:255)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:748)
              at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:719)
              at com.sun.tools.javac.v8.tree.Tree$Exec.visit(Tree.java:699)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
              at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:488)
              at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
              at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:456)
              at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:402)
              at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
              at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
              at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:380)
              at com.sun.tools.javac.v8.Main.compile(Main.java:247)
              at com.sun.tools.javac.Main.main(Main.java:16)
      (Review ID: 110013)
      ======================================================================

      Name: rmT116609 Date: 01/04/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      I am using org.w3c.dom package in my application for parsing a xml file.
      If i am using the folder hierarchy for class files the application compiles
      fine but if i am using the jar file for same purpose i am getting the following
      error from the compiler.

      com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file
      org\xml\sax\SAXNotRecognizedException.class not found
          at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:997)
          at com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:952)
          at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
          at com.sun.tools.javac.v8.code.Type$ClassType.supertype(Type.java:812)
          at com.sun.tools.javac.v8.code.Symbol$ClassSymbol.isSubClass
      (Symbol.java:622)
          at com.sun.tools.javac.v8.comp.Check.isUnchecked(Check.java:541)
          at com.sun.tools.javac.v8.comp.Flow.markThrown(Flow.java:255)
          at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:748)
          at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
          at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
          at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
          at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:719)
          at com.sun.tools.javac.v8.tree.Tree$Exec.visit(Tree.java:699)
          at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
          at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
          at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
          at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
          at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
          at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
          at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
          at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:626)
          at com.sun.tools.javac.v8.tree.Tree$Try.visit(Tree.java:642)
          at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
          at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
          at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
          at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
          at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
          at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
          at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
          at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:488)
          at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441)
          at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
          at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
          at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:456)
          at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:402)
          at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
          at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
          at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:380)
          at com.sun.tools.javac.v8.Main.compile(Main.java:247)
          at com.sun.tools.javac.Main.main(Main.java:16)
      (Review ID: 114549)
      ======================================================================

      Name: rmT116609 Date: 01/09/2001


      [C:/Unite-IT/testPrograms/myaccount] java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      C:\Unite-IT\java>javac C:\Unite-IT\testPrograms\myaccount\AccountClient.java
      An exception has occurred in the compiler (1.3.0). Please file a bug at the
      Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi). Include
      your program and the following diagnostic in your report. Thank you.
      com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file
      javax\xml\parsers\FactoryConfigurationError.class not found
      at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:997)
      at com.sun.tools.javac.v8.code.ClassReader.complete
      (ClassReader.java:952)
      at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
      at com.sun.tools.javac.v8.code.Type$ClassType.supertype(Type.java:812)
      at com.sun.tools.javac.v8.code.Symbol$ClassSymbol.isSubClass
      (Symbol.java:622)
      at com.sun.tools.javac.v8.comp.Check.isUnchecked(Check.java:541)
      at com.sun.tools.javac.v8.comp.Flow.markThrown(Flow.java:255)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:748)
      at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:719)
      at com.sun.tools.javac.v8.tree.Tree$Exec.visit(Tree.java:699)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520)
      at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:488)
      at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
      at com.sun.tools.javac.v8.comp.Flow._case(Flow.java:456)
      at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:402)
      at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321)
      at com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379)
      at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:380)
      at com.sun.tools.javac.v8.Main.compile(Main.java:247)
      at com.sun.tools.javac.Main.main(Main.java:16)

      My file

      import javax.naming.*;
      import java.util.Hashtable;
      import javax.rmi.PortableRemoteObject;

      import com.uni.entity.myaccount.*;
      import com.uni.trader.*;
      import com.uni.account.*;

      import org.apache.log4j.Category;
      import org.apache.log4j.xml.DOMConfigurator;
       
      class AccountClient {
          // Define a static category variable so that it references the
          // Category instance named "MyApp".
          static Category cat = Category.getInstance(AccountClient.class.getName());

      public static void main(String[] args) {
                  // Set up a simple configuration that logs on the console.
                  DOMConfigurator.configure( "log4j.xml" );

      // Set up the naming provider; this may not always be
      necessary, depending
      // on how your Java system is configured.
      //System.setProperty("java.naming.factory.initial",
      // "org.jnp.interfaces.NamingContextFactory");
      //System.setProperty("java.naming.provider.url",
      // "localhost:1099");
      //System.setProperty("java.naming.provider.url",
      // "unite-it.dev.ccsc.com:1099");

      Hashtable env = new Hashtable();

      env.put("java.naming.factory.initial",
      "org.jnp.interfaces.NamingContextFactory");
      env.put("java.naming.provider.url",
      "localhost:1099");
      // "unite-it.dev.ccsc.com:1099");

      // Enclosing the whole process in a single `try' block is not an ideal way
      // to do exception handling, but I don't want to clutter the program up
      // with catch blocks
      try {
      AccountHome home;
      Account account;

      // Get a naming context
      InitialContext jndiContext = new InitialContext(env);
      // Get a reference to the Interest Bean
      Object ref = jndiContext.lookup("account/Account");
      // Get a reference from this to the Bean's Home interface
      home = ( AccountHome )
      PortableRemoteObject.narrow (ref, AccountHome.class );

      // Create an Interest object from the Home interface
      account = home.findByPrimaryKey( new AccountPK( 2 ) );

      /*java.util.Date date = new java.sql.Timestamp( new java.util.Date().getTime() );
      System.out.println( "Date: " + date.getTime() );
      System.out.println( "Date + 30: " + ( date.getTime() +
      ( 30 * 24 * 60 * 60 * 1000l ) ) ); // Add 30 days (of milliseconds )*/
                              
            cat.debug( "" + account.getName() + " Account" + " for ID: " + account.getOwner().getID() + " Name: " +account.getOwner().getName() + "\nBalance = " + account.getBalance() + "\n" );

      java.util.List l = account.getTransactions();
      Transaction t = null;
      for( java.util.Iterator i = l.iterator(); i.hasNext ); ) {
      t = ( Transaction ) i.next();
      System.out.println( " ID: " + t.getID() );
      System.out.println( " Amount: " + t.getAmount() );
      System.out.println( " Status: " + t.getStatus() );
      System.out.println( " Type: " + t.getType() );
      System.out.println( " Description: " +t.getDescription() );
      System.out.println( " Date: " + t.getDate() );
      System.out.println( " Effective Date: " +t.getEffectiveDate() );
      }
      }
      catch(Exception e) {
      cat.error(e.toString());
      }
      }
      }


      import org.apache.log4j.xml.DOMConfigurator is causing the error
      (Review ID: 114845)
      ======================================================================

      Name: rmT116609 Date: 01/22/2001


      java version "1.3.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
      Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)

      Compile the code below (you will need Xerces 1.2.3 and the Koala 2.3 from
      http://www-sop.inria.fr/koala/kbml/).

      The stack trace was:

      javac -classpath D:\jlib\FioranoMQ4_6\lib\fmprtl.zip;D:\jlib\xerces-1.2.3
      \xerces.jar;D:\jlib\classes;D:\jlib\kbml-2.3\lib\kbml-2.3.jar -sourcepath
      D:\javaSrc -d D:\jlib\classes Importer.java
      An exception has occurred in the compiler (1.3.0_01). Please file a bug at the
      Java Developer Connec

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gafter Neal Gafter
              Reporter:
              wmaddoxsunw William Maddox (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: