Skip to content

dateTime Error #32

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Attempt to connect to UPC database at (http://www.upcdatabase.com/xmlrpc) 
with android-xmlrpc on Button Click

What is the expected output? What do you see instead?
Returns expected error as seen in the Serialize file of: "java.io.IOException: 
Cannot deserialize dateTime". Is there any way to bypass this error so that I 
can retrieve the rest of the data in the xml file? 

I am successfully contacting the UPC database, but am unable to read the 
returned xml. 

What version of the product are you using? On what operating system?
r15, Windows 7

Please provide any additional information below.

I'm totally new to coding, so forgive me if this is a noob mistake!
Code Sample:
try {
        HashMap<String, String> params = new HashMap<String, String>();
            params.put("rpc_key", rpc_key);
            params.put("upc", "049000042566");
            HashMap result = (HashMap)client.call("lookup", params);

            resultSize = result.get("size").toString();
            resultDesc = result.get("description").toString();

            } catch (NullPointerException nl) {
                nl.printStackTrace();
                Log.d("It's returning null", "Lookup");
            } catch (XMLRPCException e) {
                e.printStackTrace();
                Log.d("It's failed", "Lookup");
            }
            text.setText("result description: " + resultDesc + "result size: " + resultSize);



Original issue reported on code.google.com by wusu...@gmail.com on 22 Nov 2011 at 11:57

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions