Empty uri in rest response

后端 未结 1 403
悲哀的现实
悲哀的现实 2021-01-21 23:18

I am developing a plugin for nexus oss .My app creates a rest call response(to a request from server) . But when the server receives it , it throws error as follows

<         


        
1条回答
  •  旧巷少年郎
    2021-01-22 00:06

    Based on the error message the XML document being passed to JAXB is. It appears as though this XML is being created by something other than JAXB (I suspect XStream).

    
        ...
    
    

    Your JAXB mappings are expecting an XML document like the following:

    
        ...
    
    

    If you need to interact with the following XML:

    
        ...
    
    

    Then you can change your mapping to be:

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "configurationParameter"
    })
    @XmlRootElement(name = "com.collabnet.teamforge.ia.types.GetConfigurationParametersResponse")
    public class GetConfigurationParametersResponse
        extends BaseResponse
    {
    

    0 讨论(0)
提交回复
热议问题