zikzakmedia/android-openerp — Issue #1: problem with search method
Author: kathawut
Created: 2012-03-01 05:49:30+00:00
State: open

when I call method search like:
Long[] task_detail_img_ids = oc.search("task.detail.img",true, new Object[0]);
it's return xmlexception

03-01 12:41:01.250: W/System.err(674): java.io.IOException: Cannot serialize null
03-01 12:41:01.260: W/System.err(674):	at org.xmlrpc.android.XMLRPCSerializer.serialize(XMLRPCSerializer.java:99)
03-01 12:41:01.260: W/System.err(674):	at org.xmlrpc.android.XMLRPCSerializer.serialize(XMLRPCSerializer.java:61)
03-01 12:41:01.270: W/System.err(674):	at org.xmlrpc.android.XMLRPCCommon.serializeParams(XMLRPCCommon.java:37)
03-01 12:41:01.270: W/System.err(674):	at org.xmlrpc.android.XMLRPCClient.methodCall(XMLRPCClient.java:254)
03-01 12:41:01.280: W/System.err(674):	at org.xmlrpc.android.XMLRPCClient.callEx(XMLRPCClient.java:171)
03-01 12:41:01.290: W/System.err(674):	at org.xmlrpc.android.XMLRPCClient.call(XMLRPCClient.java:285)
03-01 12:41:01.300: W/System.err(674):	at os.cm.openerp.method.OpenErpConnect.search(OpenErpConnect.java:176)
03-01 12:41:01.300: W/System.err(674):	at os.cm.openerp.method.OpenErpConnect.search(OpenErpConnect.java:143)
03-01 12:41:01.310: W/System.err(674):	at os.cm.activity.ImageListView.onOptionsItemSelected(ImageListView.java:326)
03-01 12:41:01.320: W/System.err(674):	at android.app.Activity.onMenuItemSelected(Activity.java:2195)
03-01 12:41:01.320: W/System.err(674):	at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730)
03-01 12:41:01.331: W/System.err(674):	at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143)
03-01 12:41:01.340: W/System.err(674):	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
03-01 12:41:01.340: W/System.err(674):	at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:532)
03-01 12:41:01.350: W/System.err(674):	at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
03-01 12:41:01.350: W/System.err(674):	at android.view.View$PerformClick.run(View.java:8816)
03-01 12:41:01.360: W/System.err(674):	at android.os.Handler.handleCallback(Handler.java:587)
03-01 12:41:01.370: W/System.err(674):	at android.os.Handler.dispatchMessage(Handler.java:92)
03-01 12:41:01.370: W/System.err(674):	at android.os.Looper.loop(Looper.java:123)
03-01 12:41:01.380: W/System.err(674):	at android.app.ActivityThread.main(ActivityThread.java:4627)
03-01 12:41:01.390: W/System.err(674):	at java.lang.reflect.Method.invokeNative(Native Method)
03-01 12:41:01.390: W/System.err(674):	at java.lang.reflect.Method.invoke(Method.java:521)
03-01 12:41:01.400: W/System.err(674):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-01 12:41:01.400: W/System.err(674):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-01 12:41:01.410: W/System.err(674):	at dalvik.system.NativeStart.main(Native Method)
03-01 12:41:01.420: D/OpenErpConnect(674): org.xmlrpc.android.XMLRPCException: java.io.IOException: Cannot serialize null
03-01 12:45:29.300: I/------------------ LOGIN FAILED 1(674): java.lang.NullPointerException

How to resolve?