Build EAR fails with exception - com.tibco.be.parser.codegen.CompilationFailedException

Build EAR fails with exception - com.tibco.be.parser.codegen.CompilationFailedException

book

Article ID: KB0074719

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -

Description

Build EAR fails with exception - com.tibco.be.parser.codegen.CompilationFailedException


Error Message:
com.tibco.be.parser.codegen.CompilationFailedException: warning: [options] bootstrap class path not set in conjunction with -source 8
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\TEMP\AppData\Local\Temp\3\BE_1591995889341\conceptSrc\be\gen\<conceptParentFolder>\Concepts\<concpetName>.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
An exception has occurred in the compiler (11.0.4). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.nio.file.ReadOnlyFileSystemException
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.checkWritable(ZipFileSystem.java:149)
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:501)
              at jdk.zipfs/jdk.nio.zipfs.ZipPath.newOutputStream(ZipPath.java:846)
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:283)
              at java.base/java.nio.file.Files.newOutputStream(Files.java:219)
              at jdk.compiler/com.sun.tools.javac.file.PathFileObject.openOutputStream(PathFileObject.java:464)
              at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1739)
              at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:757)
              at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1635)
              at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1603)
              at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:973)
              at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
              at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
              at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:75)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at com.tibco.be.parser.codegen.CodeGenHelper.compileSourceFiles(Unknown Source)
              at com.tibco.cep.studio.codegen.BaseGenerator.compileSource(Unknown Source)
              at com.tibco.cep.studio.codegen.BaseGenerator.compileSource(Unknown Source)
              at com.tibco.cep.studio.codegen.BaseGenerator.compile(Unknown Source)
              at com.tibco.cep.studio.core.util.packaging.impl.DefaultRuntimeClassesPackager.close(Unknown Source)
              at com.tibco.cep.studio.core.util.packaging.impl.EMFBarPackager.close(Unknown Source)
              at com.tibco.cep.studio.core.util.packaging.impl.EMFEarPackager.close(Unknown Source)
              at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction.runBuildArchive(Unknown Source)
              at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction.access$1(Unknown Source)
              at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction$BuildArchiveJob.run(Unknown Source)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

 

Issue/Introduction

Build-EAR-fails-with-exception-com-tibco-be-parser-codegen-CompilationFailedException

Environment

All Supported Platforms

Resolution

The reported exception was because of missing read write permission on TIBCO_HOME

Cause and Resolution:
TIBCO BE Studio needs read and write permission on TIBCO_HOME .
In the EAR generation process, when looking for custom functions, BE use the classpath to read the available jars, and then introspect those jars to see which ones contain BE annotations.  Some of those jars are in TIBCO_HOME, which leads to the read operations and its needed.

Please make sure user has read and write permissions to TIBCO_HOME.