1 Reply Latest reply on Nov 22, 2016 2:23 PM by Alexey Kazakov

    Errors running builder 'CDI'

    Marcelo Viana Newbie

      After you add these two dependencies:

       

      <!-- JPA / Hibernate -->
      <dependency>
           <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
           <version>5.1.0.Final</version>
             <scope>compile</scope>
       </dependency>
      <!-- Hibernate - Java 8 support -->
      <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-java8</artifactId>
             <version>5.1.0.Final</version>
             <scope>compile</scope>
      </dependency>
      

       

      get to display the error message:

       

      Errors occurred during the build.

      Errors running builder 'CDI (Contexts and Dependency Injection) Builder' on project 'myproject'.

      -1

       

      Error Log:

       

      STATUS

       

      pluginId            org.jboss.tools.common.core

      pluginVersion       3.8.1.v20160607-2053

      code                0

      severity            4

      message             Unexpected end of ZLIB input stream

      fingerprint         a8839cbc8d804867fbc052eb7b791054

       

       

      Exception:java.io.EOFException: Unexpected end of ZLIB input stream

        at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(null:-1)

        at java.util.zip.InflaterInputStream.read(null:-1)

        at java.io.BufferedInputStream.fill(null:-1)

        at java.io.BufferedInputStream.read1(null:-1)

        at java.io.BufferedInputStream.read(null:-1)

        at java.io.DataInputStream.readFully(null:-1)

        at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:654)

        at org.jboss.jandex.Indexer.index(Indexer.java:699)

        at org.jboss.tools.common.core.jandex.JandexUtil.createJarIndex(JandexUtil.java:56)

        at org.jboss.tools.common.core.jandex.JandexUtil.hasAnnotation(JandexUtil.java:104)

        at org.jboss.tools.cdi.internal.core.scanner.lib.BeanArchiveDetector.hasAnnotatedBeans(BeanArchiveDetector.java:276)

        at org.jboss.tools.cdi.internal.core.scanner.lib.BeanArchiveDetector.resolve(BeanArchiveDetector.java:203)

        at org.jboss.tools.cdi.internal.core.scanner.lib.ClassPathMonitor.detectBeanModule(ClassPathMonitor.java:150)

        at org.jboss.tools.cdi.internal.core.scanner.lib.ClassPathMonitor.process(ClassPathMonitor.java:106)

        at org.jboss.tools.cdi.core.CDICoreBuilder.build(CDICoreBuilder.java:215)

        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)

        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)

        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)

        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)

        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)

        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)

        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

       

       

       

       

      BUNDLES

       

       

      name                org.eclipse.core.jobs

      version             3.8.0.v20160509-0411

       

       

      name                org.eclipse.core.runtime

      version             3.12.0.v20160606-1342

       

       

      name                org.jboss.tools.cdi.core

      version             1.8.1.v20160823-0452

       

       

      name                org.jboss.tools.common.core

      version             3.8.1.v20160607-2053

       

       

      name                org.jboss.tools.common

      version             3.8.1.v20160825-2041

       

       

        How can I solve the problem?

        • 1. Re: Errors running builder 'CDI'
          Alexey Kazakov Master

          It's possible that some of jar files in your local maven repo which are used by your project was not downloaded correctly. Could you try to clean your local maven repo? Or if you don't need CDI Tools support for you project you can disable it in Window->Preferences->JBoss Tools->Maven Intagration-> Uncheck "CDI Facet" THEN Project Properties->CDI Settings->Uncheck "CDI Support" for your project.