Skip to content

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

@Tomas-Kraus

Description

@Tomas-Kraus

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: javaee/metro-wsit#811
Author: glassfishrobot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions