You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Marc Logemann (JIRA)" <ji...@apache.org> on 2010/01/22 17:53:21 UTC

[jira] Created: (CXF-2631) Unmarshal Exception and weird URIMappingInterceptor Message

Unmarshal Exception and weird URIMappingInterceptor Message
-----------------------------------------------------------

                 Key: CXF-2631
                 URL: https://issues.apache.org/jira/browse/CXF-2631
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
    Affects Versions: 2.2.6
            Reporter: Marc Logemann


This one occured after upgrade from CXF 2.1.4 to 2.2.6

I am calling a webservice of a 3rd party, i am getting this a stack trace. Watch out for this weird "URIMappingInterceptor can only handle HTTP GET, not HTTP null" line. Dont know if thats the problem. I used log4j TRACE level so that CXF Pros can see the complete story ;-)

This problem disappears when using 2.1.4. Dont know when it started exactly, could also be 2.1.8 or 2.2.3 or something...


----------------------------
ID: 4
Response-Code: 200
Encoding: UTF-8
Content-Type: text/xml;charset=utf-8
Headers: {content-type=[text/xml;charset=utf-8], connection=[Keep-Alive], transfer-encoding=[chunked], Date=[Thu, 21 Jan 2010 09:46:45 GMT], Keep-Alive=[timeout=15, max=100], X-Powered-By=[ASP.NET], Server=[Microsoft-IIS/6.0]}
Payload: <?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:createOBTAtlasResponse xmlns:ns2="urn:de.aeb.xnsg.atlas.expdecl.bf"><result><obtID>44022584</obtID><createdDeclarations><targetAESSystem>ATLAS</targetAESSystem><declarationId>44022588</declarationId><isDeleted>false</isDeleted><clientIdentCode>ASWO</clientIdentCode><transactionIdHost>6710921</transactionIdHost><transactionLabelHost>ASWO International 6710921</transactionLabelHost><organisationUnitHost>LOGENTIS</organisationUnitHost><internalReference>ASWO International 6710921</internalReference><installationId>NETVERSYS</installationId><personInCharge><name>It Service</name><email>it.service@aswo.com</email></personInCharge><referenceNumberAES>0000134</referenceNumberAES><consignmentId>6710921</consignmentId><declarant><customsNumber>2503514</customsNumber><name>ASWO International Service GmbH</name><street>Riesweg 1</street><city>Eime</city><postCode>31036</postCode><country><isoCode>DE</isoCode></country></declarant><exporter><country/></exporter><consignee><name>ASWO RS D.O.O. </name><street>KRIZANICEVA 26 LOK 1 </street><city>BELGRADE</city><postCode>11050</postCode><country><isoCode>RS</isoCode></country></consignee><agent><country/></agent><termsOfDelivery><incotermsCode>EXW</incotermsCode><place>Eime</place></termsOfDelivery><invoicePrice><value>1136.34</value><currency>EUR</currency></invoicePrice><countryOfDestination><isoCode>RS</isoCode></countryOfDestination><additionalFields><id>1</id><name>natureOfTransCode</name><value>11</value><type>string</type></additionalFields><additionalFields><id>8</id><name>isStandByOperationActive</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>9</id><name>isOnEnquiry</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>10</id><name>shortage</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>11</id><name>isCancelled</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>12</id><name>isInvalid</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>13</id><name>isNotAccepted</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>14</id><name>isTransmitted</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>15</id><name>isManuallyCompleted</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>16</id><name>alternativeAndIndicator</name><type>string</type></additionalFields><additionalFields><id>21</id><name>isCopiedForStandBy</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>22</id><name>typeOfDeclarationProcedure</name><value>e</value><type>string</type></additionalFields><numberOfItems>31</numberOfItems><processTrafficLight>YELLOW</processTrafficLight></createdDeclarations><hasErrors>false</hasErrors></result></ns2:createOBTAtlasResponse></S:Body></S:Envelope>
--------------------------------------
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@f55767
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxInInterceptor@13d641a
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@1e572bc
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor@176fe2a
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor@1b83269
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@113af2a
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.jaxws.handler.logical.LogicalHandlerInInterceptor@efe50b
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor@cf9abe
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.jaxb.attachment.JAXBAttachmentSchemaValidationHack@161d07
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.interceptor.URIMappingInterceptor@1f5b983
[DEBUG http-8080-1 10:46:51] | Invoking HTTP method null
[DEBUG http-8080-1 10:46:51] | URIMappingInterceptor can only handle HTTP GET, not HTTP null
[DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.interceptor.DocLiteralInInterceptor@1288475
[WARN http-8080-1 10:46:51] | Interceptor for {urn:de.aeb.xnsg.atlas.expdecl.bf}AtlasExportTransactionBF#{urn:de.aeb.xnsg.atlas.expdecl.bf}createOBTAtlas has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"", local:"targetAESSystem"). Expected elements are <{}customsStatusCode>,<{}clientIdentCode>,<{}consignee>,<{}registrationNumberAES>,<{}internalReference>,<{}organisationUnitHost>,<{}referenceNumberAES>,<{}messages>,<{}boStatusIdentCode>,<{}installationId>,<{}additionalFields>,<{}countryOfDestination>,<{}termsOfDelivery>,<{}numberOfItems>,<{}documents>,<{}decisiveDate>,<{}personInCharge>,<{}isDeleted>,<{}declarant>,<{}agent>,<{}transactionIdHost>,<{}transactionLabelHost>,<{}invoicePrice>,<{}declarationId>,<{}exporter>,<{}processTrafficLight>,<{}boStatusExtName> 
	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:764)
	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:623)
	at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:128)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-2631) Unmarshal Exception and weird URIMappingInterceptor Message

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2631.
------------------------------

       Resolution: Not A Problem
    Fix Version/s: Invalid
         Assignee: Daniel Kulp


Response to this issue is at:
http://old.nabble.com/Re:-Unmarshal-Exception-and-weird-URIMappingInterceptor-Message-p27310870.html


Basically, this is working as designed.  The change between 2.2.4 and 2.2.5 was adding a validation step to make sure the incoming soap message is correct, which in your case, it's not.   2.2.4 would have ignored this, 2.2.5 no longer does (by default).

> Unmarshal Exception and weird URIMappingInterceptor Message
> -----------------------------------------------------------
>
>                 Key: CXF-2631
>                 URL: https://issues.apache.org/jira/browse/CXF-2631
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.2.6
>            Reporter: Marc Logemann
>            Assignee: Daniel Kulp
>             Fix For: Invalid
>
>
> This one occured after upgrade from CXF 2.1.4 to 2.2.6
> I am calling a webservice of a 3rd party, i am getting this a stack trace. Watch out for this weird "URIMappingInterceptor can only handle HTTP GET, not HTTP null" line. Dont know if thats the problem. I used log4j TRACE level so that CXF Pros can see the complete story ;-)
> This problem disappears when using 2.1.4. Dont know when it started exactly, could also be 2.1.8 or 2.2.3 or something...
> ----------------------------
> ID: 4
> Response-Code: 200
> Encoding: UTF-8
> Content-Type: text/xml;charset=utf-8
> Headers: {content-type=[text/xml;charset=utf-8], connection=[Keep-Alive], transfer-encoding=[chunked], Date=[Thu, 21 Jan 2010 09:46:45 GMT], Keep-Alive=[timeout=15, max=100], X-Powered-By=[ASP.NET], Server=[Microsoft-IIS/6.0]}
> Payload: <?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:createOBTAtlasResponse xmlns:ns2="urn:de.aeb.xnsg.atlas.expdecl.bf"><result><obtID>44022584</obtID><createdDeclarations><targetAESSystem>ATLAS</targetAESSystem><declarationId>44022588</declarationId><isDeleted>false</isDeleted><clientIdentCode>ASWO</clientIdentCode><transactionIdHost>6710921</transactionIdHost><transactionLabelHost>ASWO International 6710921</transactionLabelHost><organisationUnitHost>LOGENTIS</organisationUnitHost><internalReference>ASWO International 6710921</internalReference><installationId>NETVERSYS</installationId><personInCharge><name>It Service</name><email>it.service@aswo.com</email></personInCharge><referenceNumberAES>0000134</referenceNumberAES><consignmentId>6710921</consignmentId><declarant><customsNumber>2503514</customsNumber><name>ASWO International Service GmbH</name><street>Riesweg 1</street><city>Eime</city><postCode>31036</postCode><country><isoCode>DE</isoCode></country></declarant><exporter><country/></exporter><consignee><name>ASWO RS D.O.O. </name><street>KRIZANICEVA 26 LOK 1 </street><city>BELGRADE</city><postCode>11050</postCode><country><isoCode>RS</isoCode></country></consignee><agent><country/></agent><termsOfDelivery><incotermsCode>EXW</incotermsCode><place>Eime</place></termsOfDelivery><invoicePrice><value>1136.34</value><currency>EUR</currency></invoicePrice><countryOfDestination><isoCode>RS</isoCode></countryOfDestination><additionalFields><id>1</id><name>natureOfTransCode</name><value>11</value><type>string</type></additionalFields><additionalFields><id>8</id><name>isStandByOperationActive</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>9</id><name>isOnEnquiry</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>10</id><name>shortage</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>11</id><name>isCancelled</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>12</id><name>isInvalid</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>13</id><name>isNotAccepted</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>14</id><name>isTransmitted</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>15</id><name>isManuallyCompleted</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>16</id><name>alternativeAndIndicator</name><type>string</type></additionalFields><additionalFields><id>21</id><name>isCopiedForStandBy</name><value>false</value><type>boolean</type></additionalFields><additionalFields><id>22</id><name>typeOfDeclarationProcedure</name><value>e</value><type>string</type></additionalFields><numberOfItems>31</numberOfItems><processTrafficLight>YELLOW</processTrafficLight></createdDeclarations><hasErrors>false</hasErrors></result></ns2:createOBTAtlasResponse></S:Body></S:Envelope>
> --------------------------------------
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@f55767
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxInInterceptor@13d641a
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@1e572bc
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor@176fe2a
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor@1b83269
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@113af2a
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.jaxws.handler.logical.LogicalHandlerInInterceptor@efe50b
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor@cf9abe
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.jaxb.attachment.JAXBAttachmentSchemaValidationHack@161d07
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.interceptor.URIMappingInterceptor@1f5b983
> [DEBUG http-8080-1 10:46:51] | Invoking HTTP method null
> [DEBUG http-8080-1 10:46:51] | URIMappingInterceptor can only handle HTTP GET, not HTTP null
> [DEBUG http-8080-1 10:46:51] | Invoking handleMessage on interceptor org.apache.cxf.interceptor.DocLiteralInInterceptor@1288475
> [WARN http-8080-1 10:46:51] | Interceptor for {urn:de.aeb.xnsg.atlas.expdecl.bf}AtlasExportTransactionBF#{urn:de.aeb.xnsg.atlas.expdecl.bf}createOBTAtlas has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"", local:"targetAESSystem"). Expected elements are <{}customsStatusCode>,<{}clientIdentCode>,<{}consignee>,<{}registrationNumberAES>,<{}internalReference>,<{}organisationUnitHost>,<{}referenceNumberAES>,<{}messages>,<{}boStatusIdentCode>,<{}installationId>,<{}additionalFields>,<{}countryOfDestination>,<{}termsOfDelivery>,<{}numberOfItems>,<{}documents>,<{}decisiveDate>,<{}personInCharge>,<{}isDeleted>,<{}declarant>,<{}agent>,<{}transactionIdHost>,<{}transactionLabelHost>,<{}invoicePrice>,<{}declarationId>,<{}exporter>,<{}processTrafficLight>,<{}boStatusExtName> 
> 	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:764)
> 	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:623)
> 	at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:128)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.