-
Bug
-
Resolution: Done
-
Blocker
-
fuse-7.8-GA
-
False
-
False
-
%
-
build6
-
Undefined
-
-
CXF fails when consuming SOAP requests on java.lang.NoSuchMethodError: javax.activation.MimeType.isSpecial(C)Z.
Error message:
11:12:50.538 ERROR [XNIO-4 task-1] UT005023: Exception handling request to /cxf/HelloWorld java.lang.NoSuchMethodError: javax.activation.MimeType.isSpecial(C)Z at javax.activation.MailcapCommandMap.getToken(MailcapCommandMap.java:313) ~[?:1.2.1_2] at javax.activation.MailcapCommandMap.addMailcap(MailcapCommandMap.java:163) ~[?:1.2.1_2] at javax.activation.MailcapCommandMap.parseMailcap(MailcapCommandMap.java:149) ~[?:1.2.1_2] at javax.activation.MailcapCommandMap.parseMailcap(MailcapCommandMap.java:139) ~[?:1.2.1_2] at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:60) ~[?:1.2.1_2] at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:55) ~[?:1.2.1_2] at org.apache.cxf.attachment.AttachmentUtil.<clinit>(AttachmentUtil.java:73) ~[!/:3.3.6.fuse-780024-redhat-00001] at org.apache.cxf.interceptor.AttachmentInInterceptor.handleMessage(AttachmentInInterceptor.java:55) ~[!/:3.3.6.fuse-780024-redhat-00001]
Soap request:
ID: 1 Address: http://localhost:8181/cxf/HelloWorld Encoding: ISO-8859-1 Http-Method: POST Content-Type: application/x-www-form-urlencoded Headers: {Accept=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2], connection=[keep-alive], Content-Length=[937], Content-type=[application/x-www-form-urlencoded], Host=[localhost:8181], User-Agent=[Java/1.8.0_265]} Payload: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:sayHi xmlns:ns2="http://soap.cxf.quickstarts.fuse.jboss.org/"> <arg0>John Doe</arg0> </ns2:sayHi> </soap:Body> </soap:Envelope>