[OGo-XML-RPC] NSBoolNumber (instance) does not recognize count info

Adam Tauno Williams xmlrpc@opengroupware.org
Thu, 19 Jan 2006 16:40:15 -0500


--=-tB1j//vYdMN7b5fNpXPf
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I'm getting an error when I attempt to delete an enterprise via
enterprise.delete.

Jan 19 21:27:16 ogo-xmlrpcd-1.1 [10207]: >DirectAction> turn exception
into fault: (Exception name:<nil> class:ObjcRuntimeException
reason:NSBoolNumber (instance) does not recognize count info:<nil>)

Anyone seen that one?

The request looks like -
<?xml version=3D"1.0"?>
<methodCall>
  <methodName>enterprise.delete</methodName>
  <params>
    <param>
      <value>
        <string>1583710</string>
      </value>
    </param>
  </params>
</methodCall>

And the response is -

<?xml version=3D'1.0'?>
<methodResponse>
  <fault>
    <value>
      <struct>
        <member>
          <name>faultCode</name>
          <value><int>0</int></value>
        </member>
        <member>
          <name>faultString</name>
          <value><string>ObjcRuntimeException: NSBoolNumber (instance)
does not recognize count</string></value>
        </member>
      </struct>
    </value>
  </fault>
</methodResponse>

What count?  I've verified that 1583710 is the id of the newly created
enteprise object.

I'm mapping this method  (C#) as taking a single paramater (string)
which is the primary key of the object.

/// \brief Proxy for enterprise.delete
[XmlRpcMethod("enterprise.delete")]
int DeleteEnterprise(string id);

This is xmlrpcd build r1489

I can create and update enterprise objects, but it fails when I attempt
to delete an object.
Server =3D new Whitemice.MOGI.RPC2.Server();
Server.Hostname =3D args[0];
Server.Credentials =3D new NetworkCredential(args[1], args[2]);
IEnterprise newEnterprise =3D
(IEnterprise)Server.Get("Document/Enterprise/0");
newEnterprise.Description =3D "New Enterprise";
newEnterprise.Bank =3D "New Bank";
newEnterprise.BankCode =3D "New Bank Code";
newEnterprise.URL =3D "New URL";
Console.WriteLine("Name of new enterprise:{0}", newEnterprise.Name);
Server.Put(newEnterprise);
Console.WriteLine("Name of new enterprise:{0}", newEnterprise.Name);
newEnterprise.Description=3D"Updated Enterprise";
Server.Put(newEnterprise);
Server.Remove(newEnterprise);

--=-tB1j//vYdMN7b5fNpXPf
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBD0Ac/LRePpNle04MRAtMqAJ4kj7rwUjmOSMQdATaWDh7WHZFhjQCffuFt
ZbOwSXseU8LrzW8zBLkwFHE=
=6CTX
-----END PGP SIGNATURE-----

--=-tB1j//vYdMN7b5fNpXPf--