Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tomas-Kraus opened this issue Jun 3, 2022 · 0 comments
Open

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

Tomas-Kraus opened this issue Jun 3, 2022 · 0 comments

Comments

@Tomas-Kraus
Copy link
Member

Tomas-Kraus commented Jun 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant