CM Code Compiles In Eclipse SDK But applyCm Fails (Doc ID 789944.1)

Last updated on OCTOBER 18, 2016

Applies to:

Oracle Utilities SDK - Version: 2.2.0.0 and later   [Release: 2.2 and later ]
Information in this document applies to any platform.

Symptoms

CM code is able to compile in the Eclipse SDK on a Development machine but it is not possible to run the  applyCM command on the target environment (where there is no Eclipse).

Sample Error in the applyCM.log:
[echo] ...Finished generate artifacts

compile:
[echo] ...Compile cm
[javac] Compiling N source files to <target cm directory path>
[javac] path/cmModuleName1.java:LineNumber: com.splwg.base.api.DataTransferObject<? extends com.splwg.base.api.BusinessEntity> cannot be dereferenced
[javac] ServicePoint_Id servicePointId = (ServicePoint_Id)(PageService.add("CILCSPPP", dataElement).getPrimaryRow().getId());
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: path/cmModuleName2.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
path/CMbuild.xml:LineNumber: Compile failed; see the compiler error output for details.



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