Error on Eclipse Java file : The import org.openmobster.core.mobileCloud cannot be resolved

181 views
Skip to first unread message

nandakish...@gmail.com

unread,
Jul 11, 2012, 2:19:40 AM7/11/12
to openmobs...@googlegroups.com

Hi, 

    I am working on Phonegap sample CRUD example and  I am getting following error on my java file.

   The import org.openmobster.core.mobileCloud cannot be resolved

    my    .CLASSPATH File has

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>

</classpath>

what wrong on this,Please guide me.

Thanks,
Nandakishore P

Nandakishore P

unread,
Jul 12, 2012, 5:45:57 AM7/12/12
to openmobs...@googlegroups.com
Hi,

   Finally this error get solved after adding jar file from  'openmobster\Android\developer-library\device-sdk-2.2-M8-full'  and i can able to launch the App but after launching it shows following error 

   The application JQuery  (process org.openmobster.core.phonegap.plugin.jquery) has stopped unexpectedly. Please try again 

My LogCat  file shows

07-12 15:05:17.863: I/dalvikvm(19057): Could not find method org.openmobster.core.mobileCloud.android_native.framework.CloudService.getInstance, referenced from method org.openmobster.core.phonegap.plugin.jquery.App.onStart
07-12 15:05:17.863: W/dalvikvm(19057): VFY: unable to resolve static method 1245: Lorg/openmobster/core/mobileCloud/android_native/framework/CloudService;.getInstance ()Lorg/openmobster/core/mobileCloud/android_native/framework/CloudService;
07-12 15:05:17.863: D/dalvikvm(19057): VFY: replacing opcode 0x71 at 0x0003
07-12 15:05:17.963: I/dalvikvm(19057): Could not find method org.openmobster.core.mobileCloud.android.errors.ErrorHandler.getInstance, referenced from method org.openmobster.core.phonegap.plugin.jquery.App.onStart
07-12 15:05:17.974: W/dalvikvm(19057): VFY: unable to resolve static method 1242: Lorg/openmobster/core/mobileCloud/android/errors/ErrorHandler;.getInstance ()Lorg/openmobster/core/mobileCloud/android/errors/ErrorHandler;
07-12 15:05:17.984: D/dalvikvm(19057): VFY: replacing opcode 0x71 at 0x0011
07-12 15:05:18.282: I/CordovaLog(19057): Changing log level to DEBUG(3)
07-12 15:05:18.308: D/DroidGap(19057): DroidGap.onCreate()
07-12 15:05:18.578: D/DroidGap(19057): DroidGap.loadUrl(file:///android_asset/www/index.html)
07-12 15:05:18.578: D/DroidGap(19057): DroidGap: url=file:///android_asset/www/index.html baseUrl=file:///android_asset/www/
07-12 15:05:19.346: D/dalvikvm(19057): GC_FOR_ALLOC freed 54K, 5% free 6261K/6531K, paused 380ms
07-12 15:05:19.383: I/dalvikvm-heap(19057): Grow heap (frag case) to 6.694MB for 513744-byte allocation
07-12 15:05:19.548: D/dalvikvm(19057): GC_FOR_ALLOC freed <1K, 5% free 6762K/7047K, paused 69ms
07-12 15:05:19.793: D/dalvikvm(19057): GC_CONCURRENT freed <1K, 5% free 6762K/7047K, paused 17ms+2ms
07-12 15:05:22.924: D/DroidGap(19057): DroidGap.init()
07-12 15:05:24.031: D/PluginManager(19057): init()
07-12 15:05:24.733: D/AndroidRuntime(19057): Shutting down VM
07-12 15:05:24.733: W/dalvikvm(19057): threadid=1: thread exiting with uncaught exception (group=0x40014760)
07-12 15:05:25.122: E/AndroidRuntime(19057): FATAL EXCEPTION: main
07-12 15:05:25.122: E/AndroidRuntime(19057): java.lang.NoClassDefFoundError: org.openmobster.core.mobileCloud.android_native.framework.CloudService
07-12 15:05:25.122: E/AndroidRuntime(19057): at org.openmobster.core.phonegap.plugin.jquery.App.onStart(App.java:40)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1132)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.app.Activity.performStart(Activity.java:4320)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1709)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1752)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.app.ActivityThread.access$1500(ActivityThread.java:123)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.os.Handler.dispatchMessage(Handler.java:99)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.os.Looper.loop(Looper.java:126)
07-12 15:05:25.122: E/AndroidRuntime(19057): at android.app.ActivityThread.main(ActivityThread.java:3997)
07-12 15:05:25.122: E/AndroidRuntime(19057): at java.lang.reflect.Method.invokeNative(Native Method)
07-12 15:05:25.122: E/AndroidRuntime(19057): at java.lang.reflect.Method.invoke(Method.java:491)
07-12 15:05:25.122: E/AndroidRuntime(19057): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
07-12 15:05:25.122: E/AndroidRuntime(19057): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
07-12 15:05:25.122: E/AndroidRuntime(19057): at dalvik.system.NativeStart.main(Native Method)
07-12 15:05:31.016: I/Process(19057): Sending signal. PID: 19057 SIG: 9


what wrong I did?


Thanks,
Nandakishore P

nandakish...@gmail.com

unread,
Jul 13, 2012, 4:53:40 AM7/13/12
to openmobs...@googlegroups.com
Hi Sohil,

Finally i am able to launch the JQuery App but while saving I am getting following 
error:

Sync Plugin:Class not found
Ticket Add Error:Class not found

Please tel me what i am missing, where i am wrong.


Tnanks,
Nandakishore P


On Wednesday, July 11, 2012 11:49:40 AM UTC+5:30, (unknown) wrote:

Krishna

unread,
Nov 17, 2013, 2:05:31 PM11/17/13
to openmobs...@googlegroups.com
Hi Nandkishore,

How did you fix this issue ? I am also stuck at the same place.

Hi Sohil,
I am using Cordova 3.1 and copied the JQuery plugins for Phonegap2.7 from hybrid-sample folder of openmobster distribution.
Since the mechanism to add plugin changed in Phonegap3.x, what should I do for Openmobster plugin to work  ?

when the app loads, I get "Load Tickets Error: Class not found". Similar issue when I try to add a new ticket.
Most importantly, I was not asked to register with openmobster cloud server and this clear shows that I miss something to connect the server.

Thanks,
Krishna
Reply all
Reply to author
Forward
0 new messages