on 06-01-2009 9:55 AM
Hi Experts,
I deployed the sample "Contact" (which is part of the NWDS examples) application to the mobile client (laptop) and test it, we are getting an error message "Cannot find framework" and the application is not getting launched.
The case is same with all other application as well. The Mobile client fails with the same framework error message. Then on testing the same with the mobile emulator (NWDS inbuilt), the application is getting loaded, but the values are not being displayed. But the connection to DOE is successfuly.
We are on NW MI 7.1 SP07.
Appreciate any suggestion or advice to fix this problem. Thanking you all in advance.
Regards, Kathirvel
Hi
In which perspective did you develop the application?
Regards
Vidyadhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vidyadhar,
I just followed all the instructions exactly as illustrated in the below e-learning.
Regards, Kathirvel
Hi Kathirvel,
From your posts, i could understand that you are developing OCA application.
And trying to deploy it on Webdynpro Laptop client.
Thats the reason you are facing this error.
Webdynpro laptop client does not support OCA based applications.
You can very well work with the emulator provided by NWDS and test your application.
You dont need to install it on seperate client.
Thanks & Regards,
Abhijit
Thanks Abhijit,
But the problem is when I test it in th emulator provided by NWDS, the application is not displaying any values. I am not able to figure out the reason as well.
Any help for this is appreciated?
Could you please let me know any examples that I can develop and deploy to my laptop client?
Regards, Kathirvel
Edited by: Kathirvel Balakrishnan on Jun 1, 2009 10:25 AM
Hi Kathirvel,
OCA applications can not be deployed on LAPTOP client.
Becoz laptop client does not support OCA framwork applications.
Just for your information,
Mobile Client support following 4 type of frameworks.
1. Webdynpro
- It is supported only for LAPTOP client
- NWDS has Mobile Applications for Laptop perspective for the application development.
2. OCA
- Only for PDA but NWDS has enumlator to test it on laptop
3. JSP
- Only supported for Backward compatibility for Mobile Infrastructure JSP applications
- JSP PDA client is avaiable to run it on PDA
- Can also be run on Laptop client.
4. AWT
- Only supported for Backward compatibility for Mobile Infrastructure AWT applications
- AWT PDA client is avaiable to run it on PDA
- Can also be run on Laptop client.
So if you want to develop application that will run on LAPTOP client then NWDS help section has link to the information to develop applicaiton for for the Laptop.
If you want to develop OCA application then you can follow the same link you mentioned before.
Regarding the issue, the application is not displaying any values,
Is the data downloaded to the client into the application related tables?
Based on your Data Object Node name the table is generated as M<INTEGER>nodename in the DB.
you can check the data in the DB by refereing to following Blog by Stefan Henke
[/people/stefan.henke/blog/2008/08/21/what-you-ever-wanted-to-know-about-pda-development-in-mobile-71-part-2|/people/stefan.henke/blog/2008/08/21/what-you-ever-wanted-to-know-about-pda-development-in-mobile-71-part-2]
Let me know if those tables contains expected data.
Regards,
Abhijit
Hi,
Unfortunately, the application is not producing any data in NWDS simulator. Besides after deploying to the default emulator in NWDS and when I click "Launch Simulator", the simulator is not getting displayed. The below exception is being raised :
java.lang.IllegalStateException
+ at com.sap.tc.mobile.cfs.compat.Context.getPersistenceManager(Context.java:41)+
+ at com.sap.tc.mobile.cfs.compat.Context.getPersistenceManager(Context.java:28)+
+ at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:76)+
+ 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.mobile.cfs.startup.pda.Startup.main(Unknown Source)+
Error starting the framework
java.lang.reflect.InvocationTargetException
+ 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.mobile.cfs.startup.pda.Startup.main(Unknown Source)+
Caused by: java.lang.IllegalStateException: Cannot initialize framework
+ at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:146)+
+ ... 5 more+
Appreciate any suggestion/help.
Regards, Kathirvel
Hi Kathirvel,
Is this the error shown on the console?
Can you paste the exception trace from the trace file which is present in the log folder of the emulator client?
The emulator client will present at following location.
<NWDS Installation Folder >\plugins\com.sap.tc.mobile.dt.oca.rt\MI
It will give some more information about the exact cause.
Thanks & Regards,
Abhijit
Hi Kathirvel,
Navigate to MI folder mentioned before.
Delete all files located inside the log folder.
Inside the settings folder you can find logconfig.properties.
It will contain entries like
. ERROR ERROR
/ ERROR ERROR
Replace ERROR with ALL
Save the file and close it.
Please do not make any other modification.
Also you can find core.properties file.
Add following property to this file
com.sap.tc.mobile.logconsole.severity=ALL
Save the file and close.
Now run the emulator.
Are there more exceptions logged in the console and the trace file?
Paste those exceptions here.
The last trace file did not have any errors logged.
So wasn't much useful.
Thanks & Regards,
Abhijit
Hello,
Just in case you are using the simulator , do these steps to get the data.
1. Delete existing MI and Take a fresh MI
(unzip NWDS Installation Folder >\plugins\com.sap.tc.mobile.dt.oca.rt\laptop.zip.u will get new MI)
2. Launch the simulator from IDE
3. Provide settings and get it registered to a device to which SWCV and data are already assigned.
4. Deploy the application from IDE now.You will be able to get the data.
Check if this helps in solving your problem.
Regards,
Lakshmi
Hi Kathirvel,
You can reset the mobile client installation in a following way also.
In your NWDS, follow the path
Window > Preferences > Mobile > Handhelds > Runtime Settings.
Click on Reset Client Installation.
This will reset the client installation.
Now click on Launch Emulator.
Create New User.
Register the Device.
Assign the DMSWCV to the Device
Deploy the application.
Sync to get the data.
Now, as per your reply after this the client does not start.
Can you tell me what all folders you can find in the MI folders?
Is it the same when compared to MI folder after reset?
Are the settings proper ?
Thanks & Regards,
Abhijit
Hi Abhijit,
I did all these steps and but the application is not displaying the data. I did a re-install of my NWDS & NW MI and silmulator is loading. But my problem is the application that is deployed in the emulator is not displaying any results.
As requested, the below are the contents of my MI folder:
Folders:
bin, classes, data, inbox, lib, log, MobileApps, patch, scripts, settings
Files:
buildno.txt
Regards, Kathirvel
Hello ,
As you said you could see data in dba folder , Now looks like there is some problem in the application creation then as no data is not shown in the application.
Could you recheck these steps once again.
1 . DO import in SC component.
2. Adding dependency to SC component in UI component
3. Binding & Supply Functions codes verified in UI comp? Need any help here?
4. Adding dependencies to SC & UI from application component.
5. Do an update of deployment descriptors for every component for every change you do and then do a DC build.So that all the changes will be saved.
These are the minor checks from IDE side you can do.Donno if it helps.
Regards,
Lakshmi
Hello Lakshmi,
I did follow all the steps mentioned in the below e-learning and did not miss a step. I have repeated the steps almost 5-6 times by deleting and recreating the application, deploying & sync' the device; but the data is not displayed.
Link to e-Learning:
Regards, Kathirvel
Hi Kathirvel,
I just hav a small doubt... You have said that you are able to view the data in the tables of data folder.
Can i just know if the data is in the application tables ?(i.e.) the tables which have been created in the node names of your data object.
If yes and not seen in the application then surely the binding of the Tables to the DO is not proper or the
context bind in the supply function is missing out.
If you have not seen the data in the application table but in some other tabel(like the CFS_IN_Q) then the application built is not having the same trans id which your data is having.
Please check...
Thanks,
Swarna
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.