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

apt-NullPointerException when specified factory not found

XMLWordPrintable

    • apt
    • generic
    • generic

      When factory matching name of processor factory in com.sun.mirror.apt.AnnotationProcessorFactory in factory jar file is not found
      apt throws a NullPointerException after the error message.

      Error finding annotation processor factories; check META-INF/services information.
      com.sun.mirror.apt.AnnotationProcessorFactory: Provider dummy not found
      Exception in thread "main" java.lang.NullPointerException
              at com.sun.tools.apt.main.Main.sceMessage(Main.java:1010)
              at com.sun.tools.apt.main.Main.compile(Main.java:972)
              at com.sun.tools.apt.main.Main.compile(Main.java:830)
              at com.sun.tools.apt.Main.compile(Main.java:41)
              at com.sun.tools.apt.Main.main(Main.java:32)
      I think this existed when bug 4990562 fix was integrated(bld43), but tests did not catch new failure.

      forgot to metion. Thany you, Su-chen, for cathing this.
      ###@###.### 2004-04-05
      ====================================================
      ###@###.### 2004-04-05

      testbase: /java/sqe4/tools/1.5.0
      failed testcases: javam/regression/4990562 , javam/neg/NoProcessorFound

            darcy Joe Darcy
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: