Oracle® Beehive RESTful Web Services API Reference
  Release 2 (2.0.1.7)
  E16658-04
Oracle Beehive

Troubleshooting

Debug Parameter

If you add debug=true as one of the query parameters, the response header will contain an entry named X-Oracle-Beehive-Instance. This entry is the server instance ID of the Oracle Beehive server instance that responded to the request. Use this entry to check if all your bad responses are coming from the same instance or if you are getting both good and bad responses from the same instance.

For example, suppose you call comb/v1/d/user/list?debug=true. The response will contain X-Oracle-Beehive-Instance, similar to the following:

200 OK
Date: Tue, 10 Nov 2009 06:04:46 GMT
Transfer-Encoding: chunked
Connection: Keep-Alive
Pragma: no-cache
Server: Oracle-Application-Server-10g
X-Oracle-Beehive-Instance: d8ee477c-9b07-44b8-a129-bf3278c3813a Cache-Control: no-cache, must-revalidate Content-Type: application/xml; charset=utf-8 Keep-Alive: timeout=15, max=100 Expires: Thu, 01 Jan 1970 00:00:00 GMT

Unable to Marshall JAXB Value Object as Element Because of Missing @XMLRootElement Annotation

You may receive the following error message if you are using JAXB:

com.sun.istack.SAXException2: unable to marshal type "com.oracle.beehive.className" as an element because it is missing an @XmlRootElement annotation

If you get this error message, manually add the @XmlRootElement annotation to the generated Java source file of className and add the following import statement:

import javax.xml.bind.annotation.XmlRootElement;

For example, suppose you encountered the following error message:

com.sun.istack.SAXException2: unable to marshal type "com.oracle.beehive.PredicateAndSortListParameters" as an element because it is missing an @XmlRootElement annotation

You would import the class javax.xml.bind.annotation.XmlRootElement and add the highlighted line to the generated source file PredicateAndSortListParameters.java as follows:

@XmlRootElement(name="predicateAndSortListParameters")
public class PredicateAndSortListParameters
    extends PredicateListParameters
{

Oracle Logo
Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.
Legal Notices

Top