Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-RC2
-
Fix Version/s: 1.0
-
Labels:None
-
Environment:SuSE 10 - Java 1.6 u3
-
Number of attachments :
Description
Please see the XML from this URL
http://api.hi5.com/rest/feed/journal/1000
Enunciate publishes this as a JSON endopoint here:
http://api.hi5.com/json/feed/journal/1000
That url throws an error:
>
> java.lang.ClassCastException: org.codehaus.jettison.json.JSONArray
> cannot be cast to org.codehaus.jettison.json.JSONObject
>
org.codehaus.jettison.mapped.MappedXMLStreamWriter.writeAttribute(MappedXMLStreamWriter.java:93)
>
org.codehaus.jettison.mapped.MappedXMLStreamWriter.writeAttribute(MappedXMLStreamWriter.java:130)
>
org.codehaus.jettison.mapped.MappedXMLStreamWriter.writeAttribute(MappedXMLStreamWriter.java:134)
The badgerfish implementation doesn't have this problem. The value one does.