cancel
Showing results for 
Search instead for 
Did you mean: 

CBS Build Error

Former Member
0 Kudos

Hi All,

I tried to activate anactivity(developed WD Component). Am able to generate request ID. But when i saw in CBS UI its showing build state failed. When i clicked the build log am getting exception. Pls help me on this.

Regards,

Arun.

Accepted Solutions (1)

Accepted Solutions (1)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you, let me know please if you managed to resolve the issue.

Former Member
0 Kudos

Hi Ervin,

Thanks for your help. Problem solved. Already JDK versions are pointing to JDK 1.6 only. Basis team deleted the track & created a new one. Now its working fine.

Regards,

Arun.

Answers (2)

Answers (2)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

according to the logs the cbs attempts to build with JDK1.4, however I assume (please confirm/deny it) you intend to build a 720 track for which JDK1.6 has to be used.

IIn your case the JDK1.4 javac apparently cannot handle annotations like the @SupressWarnings in your case since the compiler fails at this step:


illegal character:
\64 [javac] ERROR: @SuppressWarnings("unused") [javac] ERROR: ^ [javac] ERROR:

(character 64 is the character "@")

If this is the case, then you need to doublecheck

1. the CBS Service settings

a) Here the BUILD_TOOL_JDK_HOME has to point to the highest available JDK, i.e. to the path of JDK1.6 (the folder where the "bin" folder is available, i.e. the path musn't include the /bin).

b) JDK_HOME_PATHS has to list the available JDKs separated by a semicolon (;).

Example: BUILD_TOOL_JDK_HOME =/opt/jdk16

JDK_HOME_PATHS = JDK1.4.2_HOME=/opt/jdk142;JDK1.5.0_HOME=/opt/jdk15;JDK1.6.0_HOME=/opt/jdk16;default=<path of the JDK as default>

2. The track has a Build Variant tab you can use to specify which compiler to use for the given track: CMS webui -- Landscape Configurator -- Track Data tab -- Build Variants tab.

Here you have to point to the corresponding JDK_HOME_PATHS variable, example: com.sap.jdk.home_path_key has to have the value of JDK1.6.0_HOME

This way you can fork the compiler to use the JDK required for your track (since 640/700 tracks has to be built with JDK1.4, 710/711 uses JDK1.5, 720/730 uses JDK1.6).

You find the CBS Service settings at (on 720)

http://<host>:<port>/nwa -- Configuration Management -- Infrastructure -- Java System Properties -- Select the tab "Services" -- Look up the service "Component Build Service".

(in case you would have difficulties changing this setting, check the note

#1451364 - Modification of CBS service properties disabled in NWA).

I hope this helps.

Best Regards,

Ervin

Former Member
0 Kudos

Thanks a lot Ervin. Will check and revert back you.

Regards,

Arun.

Former Member
0 Kudos

EXCEPTION:

[echo] Forking Java compiler as a new process: /opt/java1.4/bin/javac

[echo] Settings:

[echo] debug: on

[echo] optimize: off

[echo] deprecation: default

[echo] verbose: default

[echo] encoding: UTF8

[echo] source: default

[echo] target: default

[echo] source paths:

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/test.com/testdc/_comp/src/packages

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/t/B7BE5E8C79CA91ECC130C6E706758C86/gen_ddic/datatypes

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/t/B7BE5E8C79CA91ECC130C6E706758C86/gen_cmi/packages

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/t/B7BE5E8C79CA91ECC130C6E706758C86/gen_wdp/packages

[echo] class path:

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/ddic/runtime/facade/_comp/gen/default/public/runtime/lib/java/dictionary.rtcontainer.facade.filter.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/ddic/runtime/facade/_comp/gen/default/public/runtime/lib/java/dictionary.runtime.facade.filter.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/ddic/runtime/facade/_comp/gen/default/public/runtime/lib/java/dictionary.services.facade.filter.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/ddic/runtime/facade/_comp/gen/default/public/runtime/lib/java/tcddicruntime~facade.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/ddic/runtime/facade/_comp/gen/default/public/runtime/lib/java/SapMetamodelDictionaryContent.zip

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/bl/exception/lib/_comp/gen/default/public/api/lib/java/core.exception.lib.api.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/aii/base/offline/facade/_comp/gen/default/public/api/lib/java/tcaiibaseofflinefacade.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/cmi/_comp/gen/default/public/default/lib/java/com.sap.tc.cmi.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/cmi/_comp/gen/default/public/default/lib/java/tc~cmi.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/wd/api/_comp/gen/default/public/gci/lib/java/sap.comtcwdapigci.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/bl/logging/api/_comp/gen/default/public/api/lib/java/tcblloggingapidefaultttt.jar

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/wd/api/_comp/gen/default/public/default/lib/java/SapMetamodelWebdynproContent.zip

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/wd/api/_comp/gen/default/public/default/lib/java/SapMetamodelWebdynproResources.zip

[echo] /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/sap.com/tc/wd/api/_comp/gen/default/public/default/lib/java/sap.comtcwdapidefault.jar

[echo] output dir: /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/t/B7BE5E8C79CA91ECC130C6E706758C86/classes

[javac] Compiling 14 source files to /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/t/B7BE5E8C79CA91ECC130C6E706758C86/classes

[javac] Reading options and classpath from file /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/test.com/testdc/_comp/gen/default/logs/options1417869748730109627.tmp

[javac] Reading list of classes to be compiled from file /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/test.com/testdc/_comp/gen/default/logs/classes7095064653299235497.tmp

[javac] ERROR: /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/t/B7BE5E8C79CA91ECC130C6E706758C86/gen_wdp/packages/com/test/testdc/wd/comp/ericcomp/Ericcomp.java:34: illegal character: \64

[javac] ERROR: @SuppressWarnings("unused")

[javac] ERROR: ^

[javac] ERROR:

Error: /usr/sap/P30/JC18/j2ee/cluster/server0/temp/CBS/36d/.B/328225/DCs/test.com/testdc/_comp/gen/default/logs/build.xml:240: Compile failed; see the compiler error output for details.

at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)

at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:114)

at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:57)

at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:195)

at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:167)

at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)

at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:403)

at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:149)

at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:87)

at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)

at com.sap.tc.devconf.internal.DCProxyMake.make(DCProxyMake.java:318)

at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:1432)

at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:1414)

at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:713)

at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:478)

at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:401)

at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:278)

at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:187)

at com.sap.tc.buildcontroller.CBSBuildController.main(CBSBuildController.java:143)

Former Member
0 Kudos

Hi,

This seems to be an issue with the versions & their support between JDK and NWDS.

What is your NWDS version ?

What is the JDK version you are using ?

Regards,

Vijay.

Former Member
0 Kudos

Hi,

This seems to be an issue with the versions & their support between JDK and NWDS.

What is your NWDS version ?

What is the JDK version you are using ?

Regards,

Vijay.

Former Member
0 Kudos

Hi Vijay,

Am using NWDS 7.2 SP04 & JDK 1.6 upd 13.

Regards,

Arun.