You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Jeremy Orem (JIRA)" <ji...@apache.org> on 2009/12/16 04:27:18 UTC

[libcloud] [jira] Created: (LIBCLOUD-1) Errors in XML serialization

Errors in XML serialization
---------------------------

                 Key: LIBCLOUD-1
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1
             Project: Libcloud
          Issue Type: Bug
            Reporter: Jeremy Orem


>From http://github.com/cloudkick/libcloud/issues#issue/13:

Errors in the system can turn into XML serialization errors. The one I'm encountering now (which I haven't quite tracked down) is a name attribute with a value of None. ET constructs the nodes fine, but when you call ET.tostring() it gives a nasty exception, like:

...
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 777, in _raise_serialization_error
    "cannot serialize %r (type %s)" % (text, type(text).__name__)
TypeError: cannot serialize None (type NoneType)

That's not very helpful. Guarding ET.tostring with some debugging code for exceptions would be handy.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[libcloud] [jira] Commented: (LIBCLOUD-1) Errors in XML serialization

Posted by "Paul Querna (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791659#action_12791659 ] 

Paul Querna commented on LIBCLOUD-1:
------------------------------------

test

> Errors in XML serialization
> ---------------------------
>
>                 Key: LIBCLOUD-1
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1
>             Project: Libcloud
>          Issue Type: Bug
>            Reporter: Jeremy Orem
>
> From http://github.com/cloudkick/libcloud/issues#issue/13:
> Errors in the system can turn into XML serialization errors. The one I'm encountering now (which I haven't quite tracked down) is a name attribute with a value of None. ET constructs the nodes fine, but when you call ET.tostring() it gives a nasty exception, like:
> ...
>   File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 777, in _raise_serialization_error
>     "cannot serialize %r (type %s)" % (text, type(text).__name__)
> TypeError: cannot serialize None (type NoneType)
> That's not very helpful. Guarding ET.tostring with some debugging code for exceptions would be handy.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[libcloud] [jira] Closed: (LIBCLOUD-1) Errors in XML serialization

Posted by "Jed Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jed Smith closed LIBCLOUD-1.
----------------------------

    Resolution: Incomplete

As no feedback was provided for this bug report for many months, I'm going to close it as Incomplete. As Paul mentioned, this might not even be an issue.

> Errors in XML serialization
> ---------------------------
>
>                 Key: LIBCLOUD-1
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jeremy Orem
>
> From http://github.com/cloudkick/libcloud/issues#issue/13:
> Errors in the system can turn into XML serialization errors. The one I'm encountering now (which I haven't quite tracked down) is a name attribute with a value of None. ET constructs the nodes fine, but when you call ET.tostring() it gives a nasty exception, like:
> ...
>   File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 777, in _raise_serialization_error
>     "cannot serialize %r (type %s)" % (text, type(text).__name__)
> TypeError: cannot serialize None (type NoneType)
> That's not very helpful. Guarding ET.tostring with some debugging code for exceptions would be handy.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[libcloud] [jira] Commented: (LIBCLOUD-1) Errors in XML serialization

Posted by "Paul Querna (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832340#action_12832340 ] 

Paul Querna commented on LIBCLOUD-1:
------------------------------------

is there anything we want to do here?

I kinda think the LIBCLOUD_DEBUG env variable has replaced the need to debug in element tree most of the time.

> Errors in XML serialization
> ---------------------------
>
>                 Key: LIBCLOUD-1
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jeremy Orem
>
> From http://github.com/cloudkick/libcloud/issues#issue/13:
> Errors in the system can turn into XML serialization errors. The one I'm encountering now (which I haven't quite tracked down) is a name attribute with a value of None. ET constructs the nodes fine, but when you call ET.tostring() it gives a nasty exception, like:
> ...
>   File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 777, in _raise_serialization_error
>     "cannot serialize %r (type %s)" % (text, type(text).__name__)
> TypeError: cannot serialize None (type NoneType)
> That's not very helpful. Guarding ET.tostring with some debugging code for exceptions would be handy.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[libcloud] [jira] Commented: (LIBCLOUD-1) Errors in XML serialization

Posted by "Anonymous (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791660#action_12791660 ] 

Anonymous commented on LIBCLOUD-1:
----------------------------------

test

> Errors in XML serialization
> ---------------------------
>
>                 Key: LIBCLOUD-1
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1
>             Project: Libcloud
>          Issue Type: Bug
>            Reporter: Jeremy Orem
>
> From http://github.com/cloudkick/libcloud/issues#issue/13:
> Errors in the system can turn into XML serialization errors. The one I'm encountering now (which I haven't quite tracked down) is a name attribute with a value of None. ET constructs the nodes fine, but when you call ET.tostring() it gives a nasty exception, like:
> ...
>   File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 777, in _raise_serialization_error
>     "cannot serialize %r (type %s)" % (text, type(text).__name__)
> TypeError: cannot serialize None (type NoneType)
> That's not very helpful. Guarding ET.tostring with some debugging code for exceptions would be handy.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.