on 02-06-2009 7:24 AM
Hi All,
I am using NWDS 7.1 sp03 and trying to create a mobile applicaiton for handheld.
I created a service and then added it as a dependency in the UI component and created a model using DOE and tried to build and it gives build error saying
ui1: Build failed for sap.com/ui1(MyComponents) in variant "default": The Build terminated with errors
build.log gives this details
Development Component Build (2009-02-06 12:48:12 GMT+05:30)
Component name: ui1
Component vendor: sap.com
SC compartment: MyComponents
Configuration: LocalDevelopment
Location: localDevelopment
Source code location: IC413475@bomwsap379
DC root folder: E:\sisl\workspace1.jdi\LocalDevelopment\DCs\sap.com\ui1\_comp\
DC type: Mobile Applications for Handhelds
DC subtype: Mobile UI Component
Host: bomwsap379
DC Model check:
DC is available locally
validating dependency to build plugin "sap.com/tc/bi/bp/oca/cfs"
validating dependency to used DC "sap.com/serv"
validating dependency to public part "interface" of DC "sap.com/serv"
validating dependency to public part "default" of DC "sap.com/tc/cmi"
validating dependency to public part "generation" of DC "sap.com/tc/mobile/cfs/api"
validating dependency to public part "api" of DC "sap.com/tc/mobile/oca/api"
validating dependency to public part "runtime" of DC "sap.com/tc/mobile/wdlite/facade"
DC model check OK
Start build plugin:
using build plugin: sap.com/tc/bi/bp/oca/cfs
starting build plugin from : E:\Program Files\SAP\IDE\CE\eclipse\plugins\com.sap.tc.ap_2.0.1.071030132333\comp\XOCA\DCs\sap.com\tc\bi\bp\oca\cfs\_comp\gen\default\public\def\
Build Plugin 'OCA Build plugin CFS', Version 7.10 SP 3 (710_VAL_REL, built on 2007-12-25 01:27:31 +0100, CL285332)
Warning: Source folder "META-INF" exists but is empty and will be ignored.
Checking path lengths for sources
Path length checks finished in 0.031 seconds
Preparing data context..
No public part descriptor found in E:\sisl\workspace1.jdi\LocalDevelopment\FRAMEWORK\sap.com\tc\cmi\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found for component "tc/mobile/wdlite/facade" (vendor "sap.com"), public part "runtime", using legacy mode.
Dependency validation check
Development Component Dependencies
MCD name: serv MCD version: 1.0(serv(interface))
Dependencies in mcd.xml:
MCD name: serv MCD version: 1.0
Comparing data in MCD and DPI files.
Data context preparation finished in 0.703 seconds
Files/SAP/IDE/CE/eclipse/plugins/com.sap.tc.ap_2.0.1.071030132333/comp/NWMCLIENT/DCs/sap.com/tc/mobile/cfs/api/_comp/gen/default/public/generation/lib/java/sap.comtcmobilecfsapi~generation.jar!/MBOModelGenerationConfigurationCompiled.xml
[cmgen] [Info] Using DocumentBuilder com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl
[cmgen] WARNING: [System.err] [Invoked from com.sun.org.apache.xerces.internal.jaxp.DefaultValidationErrorHandler.error(DefaultValidationErrorHandler.java:81)]
[cmgen] WARNING: [System.err] Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired. Parser will use a default ErrorHandler to print the first 10 errors. Please call the setErrorHandler method to fix this.
[cmgen] WARNING: [System.err] [Invoked from com.sun.org.apache.xerces.internal.jaxp.DefaultValidationErrorHandler.error(DefaultValidationErrorHandler.java:90)]
[cmgen] WARNING: [System.err] Error: URI = "jar:file:/E:/Program%20Files/SAP/IDE/CE/eclipse/plugins/com.sap.tc.ap_2.0.1.071030132333/comp/NWMCLIENT/DCs/sap.com/tc/mobile/cfs/api/_comp/gen/default/public/generation/lib/java/sap.comtcmobilecfsapi~generation.jar!/", Line = "2", : Document root element "generationConfiguration", must match DOCTYPE root "null".
[cmgen] WARNING: [System.err] Error: URI = "jar:file:/E:/Program%20Files/SAP/IDE/CE/eclipse/plugins/com.sap.tc.ap_2.0.1.071030132333/comp/NWMCLIENT/DCs/sap.com/tc/mobile/cfs/api/_comp/gen/default/public/generation/lib/java/sap.comtcmobilecfsapi~generation.jar!/", Line = "2", : Document is invalid: no grammar found.
[cmgen] [Info] Generating packages/model/Model1.java
[cmgen] [Info] Generating packages/model/EMP_DATA_ADDRESS.java
[cmgen] [Info] Generating packages/model/EMP_DATA_E_MAIL.java
[cmgen] [Info] Generating packages/model/EMP_DATA_PERSON.java
[cmgen] [Info] Initialize generation templates from configuration jar:file:/E:/sisl/workspace1.jdi/LocalDevelopment/SAP_BUILDT/sap.com/tc/bi/extcm/_comp/gen/default/public/def/lib/java/common_model_generation_core_api.jar!/CommonModelGenerationConfigurationCompiled.xml
[cmgen] [Info] Using DocumentBuilder com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl
[cmgen] [Info] Generating E:/sisl/workspace1.jdi/LocalDevelopment/t/EAC3635C2E183171611CC2C1C8EA47C3/S2XFileList.txt
[cmgen] [Info] Generating E:/sisl/workspace1.jdi/LocalDevelopment/t/EAC3635C2E183171611CC2C1C8EA47C3/PublicPartFileList.xml
[cmgen] [Info] Common model generation finished (1 seconds)
[cmgen]
[timer] Common model generator finished in 1.406 seconds
[echo] OCAGenerator
[echo] folder to pick metadata from: E:\sisl\workspace1.jdi\LocalDevelopment\DCs\sap.com\ui1\_comp\src\packages
[echo] Starting Java compiler
[echo] Settings:
[echo] debug: on
[echo] optimize: off
[echo] deprecation: default
[echo] verbose: default
[echo] encoding: UTF8
[echo] source: 1.3
[echo] target: 1.3
[echo] source paths:
[echo] E:\sisl\workspace1.jdi\LocalDevelopment\DCs\sap.com\ui1\_comp\src\packages
[echo] E:\sisl\workspace1.jdi\LocalDevelopment\DCs\sap.com\ui1\_comp\MOBILE-INF
[echo] E:\sisl\workspace1.jdi\LocalDevelopment\t\EAC3635C2E183171611CC2C1C8EA47C3\gen_wdp
[echo] E:\sisl\workspace1.jdi\LocalDevelopment\t\EAC3635C2E183171611CC2C1C8EA47C3\gen_cmi\packages
[echo] class path:
[echo] E:\sisl\workspace1.jdi\LocalDevelopment\DCs\sap.com\serv\_comp\gen\default\public\interface\lib\java\sap.comservinterface.jar
[echo] E:\sisl\workspace1.jdi\LocalDevelopment\FRAMEWORK\sap.com\tc\cmi\_comp\gen\default\public\default\lib\java\com.sap.tc.cmi.jar
[echo] E:\sisl\workspace1.jdi\LocalDevelopment\FRAMEWORK\sap.com\tc\cmi\_comp\gen\default\public\default\lib\java\tc~cmi.jar
[echo] E:\Program Files\SAP\IDE\CE\eclipse\plugins\com.sap.tc.ap_2.0.1.071030132333\comp\XOCA\DCs\sap.com\tc\mobile\oca\api\_comp\gen\default\public\api\lib\java\sap.comtcmobileocaapi~api.jar
[echo] E:\Program Files\SAP\IDE\CE\eclipse\plugins\com.sap.tc.ap_2.0.1.071030132333\comp\XOCA\DCs\sap.com\tc\mobile\wdlite\facade\_comp\gen\default\public\runtime\lib\java\SapMetamodelDictionaryContent.zip
[echo] E:\Program Files\SAP\IDE\CE\eclipse\plugins\com.sap.tc.ap_2.0.1.071030132333\comp\XOCA\DCs\sap.com\tc\mobile\wdlite\facade\_comp\gen\default\public\runtime\lib\java\SapMetamodelWebdynproContent.zip
[echo] E:\Program Files\SAP\IDE\CE\eclipse\plugins\com.sap.tc.ap_2.0.1.071030132333\comp\XOCA\DCs\sap.com\tc\mobile\wdlite\facade\_comp\gen\default\public\runtime\lib\java\SapMetamodelWebdynproResources.zip
[echo] E:\Program Files\SAP\IDE\CE\eclipse\plugins\com.sap.tc.ap_2.0.1.071030132333\comp\XOCA\DCs\sap.com\tc\mobile\wdlite\facade\_comp\gen\default\public\runtime\lib\java\icons.zip
[echo] output dir: E:\sisl\workspace1.jdi\LocalDevelopment\t\EAC3635C2E183171611CC2C1C8EA47C3\classes
[javac] Compiling 4 source files to E:\sisl\workspace1.jdi\LocalDevelopment\t\EAC3635C2E183171611CC2C1C8EA47C3\classes
[javac] ERROR: E:\sisl\workspace1.jdi\LocalDevelopment\t\EAC3635C2E183171611CC2C1C8EA47C3\gen_cmi\packages\model\EMP_DATA_ADDRESS.java:13: cannot find symbol
[javac] ERROR: symbol : constructor OcaDataObjectNode(com.sap.tc.mobile.sf.OcaModel,java.lang.String)
[javac] ERROR: location: class com.sap.tc.mobile.sf.OcaDataObjectNode
[javac] ERROR: super(model, nativeClass);
[javac] ERROR: ^
[javac] ERROR: E:\sisl\workspace1.jdi\LocalDevelopment\t\EAC3635C2E183171611CC2C1C8EA47C3\gen_cmi\packages\model\EMP_DATA_E_MAIL.java:13: cannot find symbol
[javac] ERROR: symbol : constructor OcaDataObjectNode(com.sap.tc.mobile.sf.OcaModel,java.lang.String)
[javac] ERROR: location: class com.sap.tc.mobile.sf.OcaDataObjectNode
[javac] ERROR: super(model, nativeClass);
[javac] ERROR: ^
[javac] ERROR: E:\sisl\workspace1.jdi\LocalDevelopment\t\EAC3635C2E183171611CC2C1C8EA47C3\gen_cmi\packages\model\EMP_DATA_PERSON.java:13: cannot find symbol
[javac] ERROR: symbol : constructor OcaDataObjectNode(com.sap.tc.mobile.sf.OcaModel,java.lang.String)
[javac] ERROR: location: class com.sap.tc.mobile.sf.OcaDataObjectNode
[javac] ERROR: super(model, nativeClass);
[javac] ERROR: ^
[javac] ERROR: E:\sisl\workspace1.jdi\LocalDevelopment\t\EAC3635C2E183171611CC2C1C8EA47C3\gen_cmi\packages\model\Model1.java:42: cannot find symbol
Error: E:\sisl\workspace1.jdi\LocalDevelopment\t2\EAC3635C2E183171611CC2C1C8EA47C3\default\logs\build.xml:136: 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.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:110)
at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:57)
at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
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:585)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:400)
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.impl.DCProxyMake.make(DCProxyMake.java:260)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1574)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:4537)
Ant runtime 3.454 seconds
Ant build finished with ERRORS
Compile failed; see the compiler error output for details.
Error: Build stopped due to an error: Compile failed; see the compiler error output for details.
Error: Build stopped due to an error: Compile failed; see the compiler error output for details.
Build plugin finished at 2009-02-06 12:48:19 GMT+05:30
Total build plugin runtime: 6.391 seconds
Build finished with ERROR
==== Post-Processing ==== started at 2009-02-06 12:48:19.390 GMT+05:30
Copy the build logs
from: E:\sisl\workspace1.jdi\LocalDevelopment\t2\EAC3635C2E183171611CC2C1C8EA47C3\default\logs\
to: E:\sisl\workspace1.jdi\LocalDevelopment\DCs\sap.com\ui1\_comp\gen\default\logs\
Build results in folder E:\sisl\workspace1.jdi\LocalDevelopment\DCs\sap.com\ui1\_comp\gen\default\ remain unchanged.
Plz Help,
Thanks in Advance ,
Renuka
Hi Renuka,
The error details show that the compilation itself has failed and is not able to find the super class in one of the contructors. First you will need to resolve the compilation errors before you trigger build operation.
You can try to delete the gen_* folders, Reload, Repair the project structure & classpath, Rebuild & then do DC build (if there are no errors before).
Kind Regards,
Nitin
PS: If there are DC dependencies, you will need to build the other DCs first.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renuka,
The model classes get generated under gen_cmi folder at the time of model import.
As far I know, the Web Dynpro build operation also re-generates these classes if reqd.
That is why I asked you to delete the gen_* folder content & do a Project Rebuild operation.
Or you can delete the model & try importing it again.
If the problem persists with the generated classes then there is an issue/bug with the generation & I would recommend to raise an OSS message (WD Java component)
Kind Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.