BUILD FAILED Using Commandlinecodegen - [CodeGen] Error message: code generation error at = initializingnull (Doc ID 1335916.1)

Last updated on MAY 03, 2016

Applies to:

Oracle Java CAPS Enterprise Service Bus - Version R6.2 and later
Information in this document applies to any platform.

Symptoms

When attempting to build project from commandline,
the following error occurs.

ERROR:


[CodeGen] Error message: code generation error at = initializingnull
[CodeGen] java.lang.NullPointerException
[CodeGen] at com.stc.codegen.frameworkImpl.model.util.AntCodeGenHelperImpl.getJar(AntCodeGenHelperImpl.java:88)
[CodeGen] at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.initialize(CodeGenFrameworkImpl.java:2853)
[CodeGen] at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1604)
[CodeGen] at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkAntImpl.process(CodeGenFrameworkAntImpl.java:228)
[CodeGen] at com.stc.codegen.frameworkImpl.model.DeploymentVisitorAntImpl.process(DeploymentVisitorAntImpl.java:382)
[CodeGen] at com.stc.codegen.frameworkImpl.model.DeploymentVisitorAntImpl.process(DeploymentVisitorAntImpl.java:282)
[CodeGen] at com.stc.codegen.frameworkImpl.model.DeploymentVisitorAntImpl.traverseDeployment(DeploymentVisitorAntImpl.java:244)
[CodeGen] at com.stc.codegen.anttaskImpl.driver.BuildProject.init(BuildProject.java:499)
[CodeGen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[CodeGen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[CodeGen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[CodeGen] at java.lang.reflect.Method.invoke(Method.java:597)
[CodeGen] at com.stc.codegen.anttaskImpl.CodeGen.execute(CodeGen.java:224)
[CodeGen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[CodeGen] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[CodeGen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[CodeGen] at java.lang.reflect.Method.invoke(Method.java:597)
[CodeGen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[CodeGen] at org.apache.tools.ant.Task.perform(Task.java:348)
[CodeGen] at org.apache.tools.ant.Target.execute(Target.java:390)
[CodeGen] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[CodeGen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[CodeGen] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[CodeGen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[CodeGen] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[CodeGen] at org.apache.tools.ant.Main.runBuild(Main.java:809)
[CodeGen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[CodeGen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[CodeGen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[CodeGen] Error message: code generation error at = initializingnull

BUILD FAILED
C:\JAVACA~1\REPOSI~1\REPOSI~1\COMMAN~1\build.xml:87: The following error occurred while executing this line:
Target "main" does not exist in the project "OwnTaskExample".

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms