on 09-30-2009 2:08 PM
Hi All,
I am facing a problem in executing a query. The steps I followed is mentioned.
1. Created a new DC for holding models.
2. Created query one for getting header HeaderQueryInput(contains Attibutes) and HeaderQueryResult(Contains Attributes).
3. Created query two for getting item itemQueryInput(contains Attibutes) and itemQueryResult(Contains Attributes).
4.Build the Dc, completed building without error.
5.Created DC for holding the application and used the above model as used DC.
6.created view1 for showing header information in a table. This view is showing the data.
//for executing the header
MMSCompModel model = MMSCompModel.getInstance();
GetWorkOrderOperations QueryWorkOrderOperations = model.createGetWorkOrderOperations();
try{
QueryWorkOrderOperations.execute();
}catch (CMIException e) {
// TODO: handle exception
}
7. Now I am selecting a value from the table and now need to execute the item query.
MMSCompModel model1 = MMSCompModel.getInstance();
*QueryWorkOrderObjList queryWorkOrderObjList = model1.createQueryWorkOrderObjList();*
try {
queryWorkOrderObjList.execute();
} catch (CMIException e) {
// TODO: handle exception
}
But when the code reaches the statement QueryWorkOrderObjList queryWorkOrderObjList = model1.createQueryWorkOrderObjList();.
the appliction end up in a exception.
Error log:
<r id="1254304880890" t="03:01:20" d="2009-09-30" s="E" c="000" u="XXX" g="en" m="Error in application --> java.lang.RuntimeException: HTTP/1.1 500 Internal Server Error
Expires:-1
Pragma:no-cache
content-type:application/vnd.sap.webdynpro; charset=UTF-8
Cache-Control:no-cache, no-store, must-revalidate
-
text="com.sap.tc.mobile.exception.standard.SAPIllegalArgumentException: Cannot find class mmscompmodelpackage.QueryWorkOrderObjList"><LayoutData><GridData/></LayoutData></TextView><TextView id="EC2_0" text="com.sap.tc.mobile.cfs.meta.io.MetaRuntimeUtils.findClass(MetaRuntimeUtils.java:229)"><LayoutData><GridData/></LayoutData></TextView><TextView id="EC2_1" text="com.sap.tc.mobile.cfs.meta.io.MetaRuntimeUtils.findClass(MetaRuntimeUtils.java:204)"><LayoutData><GridData/></LayoutData></TextView><TextView id="EC2_2" text="mmscompmodelpackage.QueryWorkOrderObjList.&lt;clinit>(QueryWorkOrderObjList.java:43)"><LayoutData><GridData/></LayoutData></TextView><TextView id="EC2_3" text="mmscompmodelpackage.MMSCompModel.createQueryWorkOrderObjList(MMSCompModel.java:447)"><LayoutData><GridData/></LayoutData></TextView><TextView id="EC2_4" text="com.applexus.mmshandhelduicomp.mmsapp.comp.MMSWorkOrderOperationsListView.onActionMaintainObjList(MMSWorkOrderOperationsListView.java:295)"><LayoutData><GridData/></LayoutData></TextView><TextView id="EC2_5" text=" ... 30 more"><LayoutData><GridData/></LayoutData></TextView><TextView id="EC2_6" text="See full exception chain in &quot;Detailed Error Information&quot; section."><LayoutData><GridData/></LayoutData></TextView><Tray id="T1" width="100%" accessibilityDescription="Error Summary"><LayoutData><GridData/></LayoutData><Children><TextView id="T1T" wrapping="true" text="While processing the current request, an exception occured which could not be handled by the application or the framework.----
I tried organize imports, rebuild,reload.. but I was not able to fix this issue.Could anyone help me fixing this.
Regards,
MuhammedNishad J
Applexus
Edited by: Muhammed Nishad J on Sep 30, 2009 3:08 PM
Please format the code, and give to us the java exception.
Regards,
David Faustini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.