HTTP 500 and "java.lang.IllegalStateException" when using the REST API

by on ‎11-05-2013 12:01 PM

When making calls to the REST API you may sometimes receive a HTTP 500 error with a body similar to the sample below:

 

{
"error": "java.lang.IllegalStateException",
"message": "{ofm:[V_1_3,ERROR,36,410271],BAD_REQUEST/BAD_TYPE,#dataBytes=24,OFM-cause:[V_1_3,MULTIPART_REQUEST,24,410271]}"
}

This means that something went wrong with the request at the OpenFlow protocol layer, typically because the switch's OpenFlow implementation does not support/implement the requested feature.

 

For example, the issuing a GET to the following REST resources will generate these errors when using Open vSwitch 1.10.2 OpenFlow 1.0/1.3 implementation:

 

  • GET /sdn/v2.0/of/datapaths/<dpid>/features/group
  • GET /sdn/v2.0/of/datapaths/<dpid>/features/meter
  • GET /sdn/v2.0/of/datapaths/<dpid>/groups
  • GET /sdn/v2.0/of/datapaths/<dpid>/groups/<group_id>
  • GET /sdn/v2.0/of/datapaths/<dpid>/meters
  • GET /sdn/v2.0/of/datapaths/<dpid>/meters/<group_id>
  • GET /sdn/v2.0/of/stats/groups?dpid=<dpid>&group_id=<group_id>

This is because these features are not fully supported.

Search
Showing results for 
Search instead for 
Do you mean 
Contributors
HP Blog

HP Networking

Featured


Follow Us
Twitter Stream
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.