cancel
Showing results for 
Search instead for 
Did you mean: 

Executing queries in Mobile Applications For Laptop Perspective.

muhammed_nishad
Participant
0 Kudos

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 --&gt; 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=&quot;com.sap.tc.mobile.exception.standard.SAPIllegalArgumentException: Cannot find class mmscompmodelpackage.QueryWorkOrderObjList&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;/TextView&gt;&lt;TextView id=&quot;EC2_0&quot; text=&quot;com.sap.tc.mobile.cfs.meta.io.MetaRuntimeUtils.findClass(MetaRuntimeUtils.java:229)&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;/TextView&gt;&lt;TextView id=&quot;EC2_1&quot; text=&quot;com.sap.tc.mobile.cfs.meta.io.MetaRuntimeUtils.findClass(MetaRuntimeUtils.java:204)&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;/TextView&gt;&lt;TextView id=&quot;EC2_2&quot; text=&quot;mmscompmodelpackage.QueryWorkOrderObjList.&amp;lt;clinit&gt;(QueryWorkOrderObjList.java:43)&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;/TextView&gt;&lt;TextView id=&quot;EC2_3&quot; text=&quot;mmscompmodelpackage.MMSCompModel.createQueryWorkOrderObjList(MMSCompModel.java:447)&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;/TextView&gt;&lt;TextView id=&quot;EC2_4&quot; text=&quot;com.applexus.mmshandhelduicomp.mmsapp.comp.MMSWorkOrderOperationsListView.onActionMaintainObjList(MMSWorkOrderOperationsListView.java:295)&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;/TextView&gt;&lt;TextView id=&quot;EC2_5&quot; text=&quot; ... 30 more&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;/TextView&gt;&lt;TextView id=&quot;EC2_6&quot; text=&quot;See full exception chain in &amp;quot;Detailed Error Information&amp;quot; section.&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;/TextView&gt;&lt;Tray id=&quot;T1&quot; width=&quot;100%&quot; accessibilityDescription=&quot;Error Summary&quot;&gt;&lt;LayoutData&gt;&lt;GridData/&gt;&lt;/LayoutData&gt;&lt;Children&gt;&lt;TextView id=&quot;T1T&quot; wrapping=&quot;true&quot; text=&quot;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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Please format the code, and give to us the java exception.

Regards,

David Faustini