eclipse-ee4j / eclipse-ee4j/metro-wsit

mtom interop M->S, Server returned an invalid SOAP Fault.

Open
#400 0 comments 0 reactions 0 assignees View on GitHub
Component: tests ERR: Assignee ERR: Length Priority: Major Type: Bug
Dominant language
Java
Stars
6
Forks
21
Avg merge
10h 2m
Merged PRs (30d)
1

Description

MTOM interop indigo2tango 1.2 test case: Soap11Utf8SecureSignOnly:EchoBinaryAsString

encounters:
```
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ServiceModel.CommunicationException: Server
returned an invalid SOAP Fault. Please see InnerException for more details. --->
System.Xml.XmlException: Start element 'faultcode' from namespace '' expected.
Found element 'faultstring' from namespace ''. Line 1, position 192. at
System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader,
String res, String arg1, String arg2, String arg3) at
System.Xml.XmlExceptionHelper.ThrowStartElementExpected(XmlDictionaryReader
reader, XmlDictionaryString localName, XmlDictionaryString ns) at
System.Xml.XmlDictionaryReader.MoveToStartElement(XmlDictionaryString localName,
XmlDictionaryString namespaceUri) at
System.Xml.XmlDictionaryReader.ReadStartElement(XmlDictionaryString localName,
XmlDictionaryString namespaceUri) at
System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader
reader, Int32 maxBufferSize) at
System.ServiceModel.Channels.MessageFault.CreateFault(Message message, Int32
maxBufferSize) — End of inner exception stack trace — Server stack trace: at
System.ServiceModel.Channels.MessageFault.CreateFault(Message message, Int32
maxBufferSize) at
System.ServiceModel.Channels.SecurityChannelFactory1.ClientSecurityChannel1.TryGetSecurityFaultException(Message
faultMessage, Exception& faultException) at
System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.Request(Message
message, TimeSpan timeout) at
System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message,
TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String
action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[]
outs, TimeSpan timeout) at
System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway,
ProxyOperationRuntime operation, Object[] ins, Object[] outs) at
System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
methodCall, ProxyOperationRuntime operation) at
System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]: at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,
IMessage retMsg) at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,
Int32 type) at IMtomTest.EchoBinaryAsString(Byte[] array) at
MtomTestClient.EchoBinaryAsString(Byte[] array) — End of inner exception stack
trace — at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner) at
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments,
Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture) at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder binder, Object target, Object[] providedArgs,
ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at
Microsoft.Xws.Test.Suite.Util.WsdlTestUtilities.DynamicProxy.DynamicObject.CallMethod(String
method, Object[] parameters) at
XwsInterop.HostedClient.HostedClientSoapImpl.TestMtomMethods(DynamicProxy proxy,
Boolean enableSecurity, String operationName) at
XwsInterop.HostedClient.HostedClientSoapImpl.runScenario(String featureName,
String scenarioName, HostedClientParameter[] parameters)

details for failed test/tests with errors:

Soap11Utf8SecureSignOnly:EchoBinaryAsString:

junit.framework.AssertionFailedError:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ServiceModel.CommunicationException: Server
returned an invalid SOAP Fault. Please see InnerException for more details.
---> System.Xml.XmlException: Start element 'faultcode' from namespace ''
expected. Found element 'faultstring' from namespace ''. Line 1, position 192.
at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader
reader, String res, String arg1, String arg2, String arg3)
at
System.Xml.XmlExceptionHelper.ThrowStartElementExpected(XmlDictionaryReader
reader, XmlDictionaryString localName, XmlDictionaryString ns)
at System.Xml.XmlDictionaryReader.MoveToStartElement(XmlDictionaryString
localName, XmlDictionaryString namespaceUri)
at System.Xml.XmlDictionaryReader.ReadStartElement(XmlDictionaryString
localName, XmlDictionaryString namespaceUri)
at
System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader
reader, Int32 maxBufferSize)
at System.ServiceModel.Channels.MessageFault.CreateFault(Message message,
Int32 maxBufferSize)
— End of inner exception stack trace —

Server stack trace:
at System.ServiceModel.Channels.MessageFault.CreateFault(Message message,
Int32 maxBufferSize)
at
System.ServiceModel.Channels.SecurityChannelFactory1.ClientSecurityChannel1.TryGetSecurityFaultException(Message
faultMessage, Exception& faultException)
at
System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.Request(Message
message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message
message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan
timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at
System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at IMtomTest.EchoBinaryAsString(Byte[] array)
at MtomTestClient.EchoBinaryAsString(Byte[] array)
— End of inner exception stack trace —
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle
typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags,
Binder binder, Object target, Object[] providedArgs, ParameterModifier[]
modifiers, CultureInfo culture, String[] namedParams)
at
Microsoft.Xws.Test.Suite.Util.WsdlTestUtilities.DynamicProxy.DynamicObject.CallMethod(String
method, Object[] parameters)
at XwsInterop.HostedClient.HostedClientSoapImpl.TestMtomMethods(DynamicProxy
proxy, Boolean enableSecurity, String operationName)
at XwsInterop.HostedClient.HostedClientSoapImpl.runScenario(String
featureName, String scenarioName, HostedClientParameter[] parameters)

at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at indigoclient.IndigoMTOMClient.testMTOMClient(IndigoMTOMClient.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:191)
at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:146)
at
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:82)

these other MTOM interop M->S tests encounter same errors as shown:

Soap11Utf8SecureSignOnly:EchoStringAsBinary:

junit.framework.AssertionFailedError:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ServiceModel.CommunicationException: Server
returned an invalid SOAP Fault. Please see InnerException for more details.
---> System.Xml.XmlException: Start element 'faultcode' from namespace ''
expected. Found element 'faultstring' from namespace ''. Line 1, position 192.
at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader
reader, String res, String arg1, String arg2, String arg3)
at
System.Xml.XmlExceptionHelper.ThrowStartElementExpected(XmlDictionaryReader
reader, XmlDictionaryString localName, XmlDictionaryString ns)
at System.Xml.XmlDictionaryReader.MoveToStartElement(XmlDictionaryString
localName, XmlDictionaryString namespaceUri)
at System.Xml.XmlDictionaryReader.ReadStartElement(XmlDictionaryString
localName, XmlDictionaryString namespaceUri)
at
System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader
reader, Int32 maxBufferSize)
at System.ServiceModel.Channels.MessageFault.CreateFault(Message message,
Int32 maxBufferSize)
— End of inner exception stack trace —

Server stack trace:
at System.ServiceModel.Channels.MessageFault.CreateFault(Message message,
Int32 maxBufferSize)
at
System.ServiceModel.Channels.SecurityChannelFactory1.ClientSecurityChannel1.TryGetSecurityFaultException(Message
faultMessage, Exception& faultException)
at
System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.Request(Message
message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message
message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan
timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at
System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at IMtomTest.EchoStringAsBinary(String s)
at MtomTestClient.EchoStringAsBinary(String s)
— End of inner exception stack trace —
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle
typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags,
Binder binder, Object target, Object[] providedArgs, ParameterModifier[]
modifiers, CultureInfo culture, String[] namedParams)
at
Microsoft.Xws.Test.Suite.Util.WsdlTestUtilities.DynamicProxy.DynamicObject.CallMethod(String
method, Object[] parameters)
at XwsInterop.HostedClient.HostedClientSoapImpl.TestMtomMethods(DynamicProxy
proxy, Boolean enableSecurity, String operationName)
at XwsInterop.HostedClient.HostedClientSoapImpl.runScenario(String
featureName, String scenarioName, HostedClientParameter[] parameters)

at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at indigoclient.IndigoMTOMClient.testMTOMClient(IndigoMTOMClient.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:191)
at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:146)
at
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:82)

Soap11Utf8SecureSignOnly:EchoBinaryArrayAsStringArray:

junit.framework.AssertionFailedError:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ServiceModel.CommunicationException: Server
returned an invalid SOAP Fault. Please see InnerException for more details.
---> System.Xml.XmlException: Start element 'faultcode' from namespace ''
expected. Found element 'faultstring' from namespace ''. Line 1, position 192.
at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader
reader, String res, String arg1, String arg2, String arg3)
at
System.Xml.XmlExceptionHelper.ThrowStartElementExpected(XmlDictionaryReader
reader, XmlDictionaryString localName, XmlDictionaryString ns)
at System.Xml.XmlDictionaryReader.MoveToStartElement(XmlDictionaryString
localName, XmlDictionaryString namespaceUri)
at System.Xml.XmlDictionaryReader.ReadStartElement(XmlDictionaryString
localName, XmlDictionaryString namespaceUri)
at
System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader
reader, Int32 maxBufferSize)
at System.ServiceModel.Channels.MessageFault.CreateFault(Message message,
Int32 maxBufferSize)
— End of inner exception stack trace —

Server stack trace:
at System.ServiceModel.Channels.MessageFault.CreateFault(Message message,
Int32 maxBufferSize)
at
System.ServiceModel.Channels.SecurityChannelFactory1.ClientSecurityChannel1.TryGetSecurityFaultException(Message
faultMessage, Exception& faultException)
at
System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.Request(Message
message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message
message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan
timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at
System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at IMtomTest.EchoBinaryArrayAsStringArray(Byte[][] arrayOfArray)
at MtomTestClient.EchoBinaryArrayAsStringArray(Byte[][] arrayOfArray)
— End of inner exception stack trace —
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle
typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags,
Binder binder, Object target, Object[] providedArgs, ParameterModifier[]
modifiers, CultureInfo culture, String[] namedParams)
at
Microsoft.Xws.Test.Suite.Util.WsdlTestUtilities.DynamicProxy.DynamicObject.CallMethod(String
method, Object[] parameters)
at XwsInterop.HostedClient.HostedClientSoapImpl.TestMtomMethods(DynamicProxy
proxy, Boolean enableSecurity, String operationName)
at XwsInterop.HostedClient.HostedClientSoapImpl.runScenario(String
featureName, String scenarioName, HostedClientParameter[] parameters)

at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at indigoclient.IndigoMTOMClient.testMTOMClient(IndigoMTOMClient.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:191)
at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:146)
at
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:82)
...
```

Source: [https://github.com/javaee/metro-wsit/issues/811](https://github.com/javaee/metro-wsit/issues/811)
Author: glassfishrobot

Contributor guide

Open the contributing guide

Research direction

Start with the failing Soap11Utf8SecureSignOnly:EchoBinaryAsString and EchoStringAsBinary cases, using the failure reported at indigoclient.IndigoMTOMClient.testMTOMClient (IndigoMTOMClient.java:65). Trace the MtomTestClient operations and the security-channel fault handling; done means these MTOM interop tests no longer fail with an invalid SOAP Fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.