This project is read-only.

Help needed. ParseException

Jan 22, 2014 at 2:17 PM
HI Sir,

sorry to ask this question.
i facing some problem when sync.
but i am not sure where is the problem after i checked 2 day.

when i sync and the code go to this line

tab.SyncJSON(vals, meta, db); in BaseContentProvider.

it will come out "ParseException"

based on my output
vals = {Name=APPAREL , ID=1, Code=01-APP, HQID=1, DepartmentID=1}
meta = http://syng-nb.abc.local/LS/categoryscopesyncservice.svc/Category(ID=1)
db = SQLiteDatabase: /data/data/com.example.demotest/databases/listdb2

may i know the problem is it come from http://syng-nb.abc.local/LS/categoryscopesyncservice.svc/Category(ID=1)

bec if i manually run this http url in browser it will show missing operation.
would you mind give me some hint to solve this problem.
thank you very much

01-22 14:05:15.078: D/pl.selvin.android.syncframework.content.BaseContentProvider(937): ------1------
01-22 14:05:15.118: D/pl.selvin.android.syncframework.content.BaseContentProvider(937): {Name=APPAREL , ID=1, Code=01-APP, HQID=1, DepartmentID=1}
01-22 14:05:15.118: D/pl.selvin.android.syncframework.content.BaseContentProvider(937): ------2------
01-22 14:05:15.131: D/pl.selvin.android.syncframework.content.BaseContentProvider(937): http://syng-nb.abc.local/LS/categoryscopesyncservice.svc/Category(ID=1)
01-22 14:05:15.131: D/pl.selvin.android.syncframework.content.BaseContentProvider(937): ------3------
01-22 14:05:15.138: D/pl.selvin.android.syncframework.content.BaseContentProvider(937): SQLiteDatabase: /data/data/com.example.demotest/databases/listdb2
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): ParseException
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): java.lang.NullPointerException
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at pl.selvin.android.syncframework.content.BaseContentProvider.Sync(BaseContentProvider.java:814)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at pl.selvin.android.syncframework.content.BaseContentProvider.update(BaseContentProvider.java:499)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.content.ContentProvider$Transport.update(ContentProvider.java:260)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.content.ContentResolver.update(ContentResolver.java:1040)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at com.example.demotest.MainActivity.connect(MainActivity.java:57)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at com.example.demotest.MainActivity.onCreate(MainActivity.java:26)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.app.Activity.performCreate(Activity.java:5133)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.app.ActivityThread.access$600(ActivityThread.java:141)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.os.Handler.dispatchMessage(Handler.java:99)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.os.Looper.loop(Looper.java:137)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at android.app.ActivityThread.main(ActivityThread.java:5103)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at java.lang.reflect.Method.invokeNative(Native Method)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at java.lang.reflect.Method.invoke(Method.java:525)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
01-22 14:05:15.407: E/pl.selvin.android.syncframework.content.BaseContentProvider(937): at dalvik.system.NativeStart.main(Native Method)
Jan 23, 2014 at 9:54 AM
found the problem. because of my scopename wcf and app is different.

thanks
Marked as answer by NSY83 on 1/23/2014 at 1:54 AM