Empty uri in rest response

后端 未结 1 402
悲哀的现实
悲哀的现实 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).

    <com.collabnet.teamforge.ia.types.GetConfigurationParametersResponse>
        ...
    </com.collabnet.teamforge.ia.types.GetConfigurationParametersResponse>
    

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

    <GetConfigurationParametersResponse xmlns="http://www.collab.net/teamforge/integratedapp">
        ...
    </GetConfigurationParametersResponse>
    

    If you need to interact with the following XML:

    <com.collabnet.teamforge.ia.types.GetConfigurationParametersResponse>
        ...
    </com.collabnet.teamforge.ia.types.GetConfigurationParametersResponse>
    

    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)
提交回复
热议问题