You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by LeftoverLinguine <le...@gmail.com> on 2009/07/24 17:11:39 UTC

Error verifying security

When I attempt to log into my web service and invoke a method from my
generated java files I get the following error:

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: An error
occurred when verifying security for the message.
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141)
	at $Proxy43.getCreditCards(Unknown Source)
	at
PaymentServiceContract_CustomBindingPaymentServiceContract_Client.main(PaymentServiceContract_CustomBindingPaymentServiceContract_Client.java:74)
Caused by: org.apache.cxf.binding.soap.SoapFault: An error occurred when
verifying security for the message.
	at
org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.unmarshalFault(Soap12FaultInInterceptor.java:109)
	at
org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(Soap12FaultInInterceptor.java:54)
	at
org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(Soap12FaultInInterceptor.java:45)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
	at
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
	at
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:645)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2132)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2015)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1940)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
	at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
	... 2 more

Does anybody know what could be the source of this problem?

-- 
View this message in context: http://www.nabble.com/Error-verifying-security-tp24646371p24646371.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Error verifying security

Posted by Daniel Kulp <dk...@apache.org>.
On Fri July 24 2009 3:46:24 pm LeftoverLinguine wrote:
> Where can I view the server side error logs from?

That would COMPLETELY depend on you app server and where they configure the 
java.util.logging  stuff to go.   For tomcat, it would be logs/catalina.out.  

Dan


> dkulp wrote:
> > You would need to see the error logs on the server side.   Basically, the
> > server tried to process the security header, but something was not right
> > in
> > there.   It could be an invalid password or timestamp issue or expired
> > certs
> > or similar.   Check the logs there.
> >
> > Dan

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Error verifying security

Posted by LeftoverLinguine <le...@gmail.com>.
Ok, so it turns out that my configuration file was in the wrong directory and
was not being recognized.  After I moved it to the right spot I still
receive the same error but I can now view the messages.
These are the messages:

Aug 4, 2009 1:04:30 PM
org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
INFO: Outbound Message
---------------------------
ID: 1
Address:
http://services.dev.mimeo.com/EnterpriseServices/2008/09/PaymentService.svc
Encoding: UTF-8
Content-Type: application/soap+xml;
action="http://schemas.mimeo.com/EnterpriseServices/2008/09/PaymentService/PaymentServiceContract/GetUserCreditLimit"
Headers: {Accept=[*/*]}
Payload: 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
	<soap:Header>
		<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soap:mustUnderstand="true">
			<wsse:UsernameToken
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="UsernameToken-1">
				<wsse:Username>USERNAME</wsse:Username>
				<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD</wsse:Password>
			</wsse:UsernameToken>
		</wsse:Security>
		<Action
xmlns="http://www.w3.org/2005/08/addressing">http://schemas.mimeo.com/EnterpriseServices/2008/09/PaymentService/PaymentServiceContract/GetUserCreditLimit</Action>
		<MessageID
xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:53e0676b-2891-4fd3-9169-4c01938b205d</MessageID>
		<To
xmlns="http://www.w3.org/2005/08/addressing">http://services.dev.mimeo.com/EnterpriseServices/2008/09/PaymentService.svc</To>
		<ReplyTo
xmlns="http://www.w3.org/2005/08/addressing"><Address>http://www.w3.org/2005/08/addressing/anonymous</Address></ReplyTo>
	</soap:Header>
	<soap:Body>
	<ns2:GetUserCreditLimit
xmlns:ns2="http://schemas.mimeo.com/EnterpriseServices/2008/09/PaymentService"
/>
	</soap:Body>
</soap:Envelope>
--------------------------------------
Aug 4, 2009 1:04:30 PM org.apache.cxf.interceptor.LoggingInInterceptor
logging
INFO: Inbound Message
----------------------------
ID: 1
Encoding: UTF-8
Content-Type: application/soap+xml; charset=utf-8
Headers: {content-type=[application/soap+xml; charset=utf-8],
X-AspNet-Version=[2.0.50727], connection=[close], Date=[Tue, 04 Aug 2009
17:04:30 GMT], X-Powered-By=[ASP.NET], Server=[Microsoft-IIS/6.0],
Cache-Control=[private]}
Payload: 
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:a="http://www.w3.org/2005/08/addressing">
	<s:Header>
		<a:Action
s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/soap/fault</a:Action>
		<a:RelatesTo>urn:uuid:53e0676b-2891-4fd3-9169-4c01938b205d</a:RelatesTo>
	</s:Header>
	<s:Body>
		<s:Fault>
			<s:Code>
				<s:Value>s:Sender</s:Value>
				<s:Subcode>
					<s:Value
xmlns:a="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">a:InvalidSecurity</s:Value>
				</s:Subcode>
			</s:Code>
		<s:Reason>
			<s:Text xml:lang="en-US">An error occurred when verifying security for
the message.</s:Text>
		</s:Reason>
		</s:Fault>
	</s:Body>
</s:Envelope>
--------------------------------------

I know that my username/password is correct so is there something that I
would have to add to my config file in order to get verification on the
inbound message?
-- 
View this message in context: http://www.nabble.com/Error-verifying-security-tp24646371p24813897.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Error verifying security

Posted by Mayank Mishra <ma...@gmail.com>.
Daniel Kulp wrote:
> This looks like .NET stuff.   The server is not configured properly to 
> process/authenticate the tokens.   Since it's .NET related, definitely not 
> something I would know anything about.
>
> Dan
>
>   
Thats right, It's WCF code. You can give it a try by running the Interop 
samples in the CXF distribution.
If MS is server then you can run the CXF client, or otherwise. 
PasswordDigest can be a password type when communicating to MS server, 
it should not give a problem.
You also require to set the config file in MS service, just check that 
those configurations are as expected.

With Regards,
Mayank
>
> On Mon July 27 2009 5:31:26 pm LeftoverLinguine wrote:
>   
>> Ok, so I checked the server logs with the first error that I got(the error
>> verifying security) and there are 2 exceptions being thrown.
>>
>> The first one gives a message of "The
>> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-pro
>> file-1.0#PasswordDigest' username token has an unsupported password type."
>> This is the stack trace:
>> System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.P
>> arsePassword(XmlDictionaryReader reader)
>> System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.P
>> arseToken(XmlDictionaryReader reader, String&amp; id, String&amp; userName,
>> String&amp; password)
>> System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.R
>> eadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver
>> tokenResolver)
>> System.ServiceModel.Security.WSSecurityTokenSerializer.ReadTokenCore(XmlRea
>> der reader, SecurityTokenResolver tokenResolver)
>> System.IdentityModel.Selectors.SecurityTokenSerializer.ReadToken(XmlReader
>> reader, SecurityTokenResolver tokenResolver)
>> System.ServiceModel.Security.ReceiveSecurityHeader.ReadToken(XmlReader
>> reader, SecurityTokenResolver tokenResolver, IList`1
>> allowedTokenAuthenticators, SecurityTokenAuthenticator&amp;
>> usedTokenAuthenticator)
>> System.ServiceModel.Security.ReceiveSecurityHeader.ReadToken(XmlDictionaryR
>> eader reader, Int32 position, Byte[] decryptedBuffer, SecurityToken
>> encryptionToken, String idInEncryptedForm, TimeSpan timeout)
>> System.ServiceModel.Security.ReceiveSecurityHeader.ExecuteFullPass(XmlDicti
>> onaryReader reader)
>> System.ServiceModel.Security.StrictModeSecurityHeaderElementInferenceEngine
>> .ExecuteProcessingPasses(ReceiveSecurityHeader securityHeader,
>> XmlDictionaryReader reader)
>> System.ServiceModel.Security.ReceiveSecurityHeader.Process(TimeSpan
>> timeout)
>> System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessag
>> eCore(Message&amp; message, TimeSpan timeout)
>> System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessag
>> e(Message&amp; message, TimeSpan timeout)
>> System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message
>> &amp; message, TimeSpan timeout, SecurityProtocolCorrelationState[]
>> correlationStates)
>> System.ServiceModel.Channels.SecurityChannelListener`1.ServerSecurityChanne
>> l`1.VerifyIncomingMessage(Message&amp; message, TimeSpan timeout,
>> SecurityProtocolCorrelationState[]
>> correlationState)
>> System.ServiceModel.Channels.SecurityChannelListener`1.SecurityReplyChannel
>> .ProcessReceivedRequest(RequestContext requestContext, TimeSpan timeout)
>> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveRequestAndVer
>> ifySecurityAsyncResult.ProcessInnerItem(RequestContext innerItem, TimeSpan
>> timeout)
>> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerify
>> SecurityAsyncResult`2.OnInnerReceiveDone()
>> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerify
>> SecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
>> System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(
>> IAsyncResult result)
>> System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
>> System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item)
>> System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item item,
>> Boolean canDispatchOnThisThread)
>> System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T item,
>> ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
>> System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDispos
>> able item, ItemDequeuedCallback dequeuedCallback, Boolean
>> canDispatchOnThisThread)
>> System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemTy
>> pe item, ItemDequeuedCallback dequeuedCallback, Boolean
>> canDispatchOnThisThread)
>> System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRe
>> questContext context, ItemDequeuedCallback callback)
>> System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceiv
>> ed(HostedHttpRequestAsyncResult result)
>> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
>> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
>> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(
>> Object state)
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invo
>> ke2()
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invo
>> ke()
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallba
>> cks()
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCal
>> lback(Object state)
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOver
>> lapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped*
>> nativeOverlapped)
>> System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptio
>> nFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
>> System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
>> errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
>>
>>
>> The second one gives a message reading "Message security verification
>> failed." with the stack trace:
>> System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessag
>> e(Message&amp; message, TimeSpan timeout)
>> System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message
>> &amp; message, TimeSpan timeout, SecurityProtocolCorrelationState[]
>> correlationStates)
>> System.ServiceModel.Channels.SecurityChannelListener`1.ServerSecurityChanne
>> l`1.VerifyIncomingMessage(Message&amp; message, TimeSpan timeout,
>> SecurityProtocolCorrelationState[]
>> correlationState)
>> System.ServiceModel.Channels.SecurityChannelListener`1.SecurityReplyChannel
>> .ProcessReceivedRequest(RequestContext requestContext, TimeSpan timeout)
>> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveRequestAndVer
>> ifySecurityAsyncResult.ProcessInnerItem(RequestContext innerItem, TimeSpan
>> timeout)
>> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerify
>> SecurityAsyncResult`2.OnInnerReceiveDone()
>> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerify
>> SecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
>> System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(
>> IAsyncResult result)
>> System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
>> System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item)
>> System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item item,
>> Boolean canDispatchOnThisThread)
>> System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T item,
>> ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
>> System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDispos
>> able item, ItemDequeuedCallback dequeuedCallback, Boolean
>> canDispatchOnThisThread)
>> System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemTy
>> pe item, ItemDequeuedCallback dequeuedCallback, Boolean
>> canDispatchOnThisThread)
>> System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRe
>> questContext context, ItemDequeuedCallback callback)
>> System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceiv
>> ed(HostedHttpRequestAsyncResult result)
>> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
>> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
>> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(
>> Object state)
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invo
>> ke2()
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invo
>> ke()
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallba
>> cks()
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCal
>> lback(Object state)
>> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOver
>> lapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped*
>> nativeOverlapped)
>> System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptio
>> nFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
>> System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
>> errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
>>     
>
>   


Re: Error verifying security

Posted by Daniel Kulp <dk...@apache.org>.
This looks like .NET stuff.   The server is not configured properly to 
process/authenticate the tokens.   Since it's .NET related, definitely not 
something I would know anything about.

Dan



On Mon July 27 2009 5:31:26 pm LeftoverLinguine wrote:
> Ok, so I checked the server logs with the first error that I got(the error
> verifying security) and there are 2 exceptions being thrown.
>
> The first one gives a message of "The
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-pro
>file-1.0#PasswordDigest' username token has an unsupported password type."
> This is the stack trace:
> System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.P
>arsePassword(XmlDictionaryReader reader)
> System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.P
>arseToken(XmlDictionaryReader reader, String&amp; id, String&amp; userName,
> String&amp; password)
> System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.R
>eadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver
> tokenResolver)
> System.ServiceModel.Security.WSSecurityTokenSerializer.ReadTokenCore(XmlRea
>der reader, SecurityTokenResolver tokenResolver)
> System.IdentityModel.Selectors.SecurityTokenSerializer.ReadToken(XmlReader
> reader, SecurityTokenResolver tokenResolver)
> System.ServiceModel.Security.ReceiveSecurityHeader.ReadToken(XmlReader
> reader, SecurityTokenResolver tokenResolver, IList`1
> allowedTokenAuthenticators, SecurityTokenAuthenticator&amp;
> usedTokenAuthenticator)
> System.ServiceModel.Security.ReceiveSecurityHeader.ReadToken(XmlDictionaryR
>eader reader, Int32 position, Byte[] decryptedBuffer, SecurityToken
> encryptionToken, String idInEncryptedForm, TimeSpan timeout)
> System.ServiceModel.Security.ReceiveSecurityHeader.ExecuteFullPass(XmlDicti
>onaryReader reader)
> System.ServiceModel.Security.StrictModeSecurityHeaderElementInferenceEngine
>.ExecuteProcessingPasses(ReceiveSecurityHeader securityHeader,
> XmlDictionaryReader reader)
> System.ServiceModel.Security.ReceiveSecurityHeader.Process(TimeSpan
> timeout)
> System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessag
>eCore(Message&amp; message, TimeSpan timeout)
> System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessag
>e(Message&amp; message, TimeSpan timeout)
> System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message
>&amp; message, TimeSpan timeout, SecurityProtocolCorrelationState[]
> correlationStates)
> System.ServiceModel.Channels.SecurityChannelListener`1.ServerSecurityChanne
>l`1.VerifyIncomingMessage(Message&amp; message, TimeSpan timeout,
> SecurityProtocolCorrelationState[]
> correlationState)
> System.ServiceModel.Channels.SecurityChannelListener`1.SecurityReplyChannel
>.ProcessReceivedRequest(RequestContext requestContext, TimeSpan timeout)
> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveRequestAndVer
>ifySecurityAsyncResult.ProcessInnerItem(RequestContext innerItem, TimeSpan
> timeout)
> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerify
>SecurityAsyncResult`2.OnInnerReceiveDone()
> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerify
>SecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
> System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(
>IAsyncResult result)
> System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
> System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item)
> System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item item,
> Boolean canDispatchOnThisThread)
> System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T item,
> ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
> System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDispos
>able item, ItemDequeuedCallback dequeuedCallback, Boolean
> canDispatchOnThisThread)
> System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemTy
>pe item, ItemDequeuedCallback dequeuedCallback, Boolean
> canDispatchOnThisThread)
> System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRe
>questContext context, ItemDequeuedCallback callback)
> System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceiv
>ed(HostedHttpRequestAsyncResult result)
> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(
>Object state)
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invo
>ke2()
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invo
>ke()
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallba
>cks()
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCal
>lback(Object state)
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOver
>lapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped*
> nativeOverlapped)
> System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptio
>nFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
> System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
> errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
>
>
> The second one gives a message reading "Message security verification
> failed." with the stack trace:
> System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessag
>e(Message&amp; message, TimeSpan timeout)
> System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message
>&amp; message, TimeSpan timeout, SecurityProtocolCorrelationState[]
> correlationStates)
> System.ServiceModel.Channels.SecurityChannelListener`1.ServerSecurityChanne
>l`1.VerifyIncomingMessage(Message&amp; message, TimeSpan timeout,
> SecurityProtocolCorrelationState[]
> correlationState)
> System.ServiceModel.Channels.SecurityChannelListener`1.SecurityReplyChannel
>.ProcessReceivedRequest(RequestContext requestContext, TimeSpan timeout)
> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveRequestAndVer
>ifySecurityAsyncResult.ProcessInnerItem(RequestContext innerItem, TimeSpan
> timeout)
> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerify
>SecurityAsyncResult`2.OnInnerReceiveDone()
> System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerify
>SecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
> System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(
>IAsyncResult result)
> System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
> System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item)
> System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item item,
> Boolean canDispatchOnThisThread)
> System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T item,
> ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
> System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDispos
>able item, ItemDequeuedCallback dequeuedCallback, Boolean
> canDispatchOnThisThread)
> System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemTy
>pe item, ItemDequeuedCallback dequeuedCallback, Boolean
> canDispatchOnThisThread)
> System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRe
>questContext context, ItemDequeuedCallback callback)
> System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceiv
>ed(HostedHttpRequestAsyncResult result)
> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
> System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(
>Object state)
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invo
>ke2()
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invo
>ke()
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallba
>cks()
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCal
>lback(Object state)
> System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOver
>lapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped*
> nativeOverlapped)
> System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptio
>nFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
> System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
> errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Error verifying security

Posted by LeftoverLinguine <le...@gmail.com>.
Also, there is a warning that says "The security protocol cannot verify the
incoming mesaage."  How exactly are the messages verified? and would I have
to modify the security protocol or is it affected by an outgoing message?
-- 
View this message in context: http://www.nabble.com/Error-verifying-security-tp24646371p24722506.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Error verifying security

Posted by LeftoverLinguine <le...@gmail.com>.
Ok, so I checked the server logs with the first error that I got(the error
verifying security) and there are 2 exceptions being thrown.

The first one gives a message of "The
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest'
username token has an unsupported password type."
This is the stack trace:
System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.ParsePassword(XmlDictionaryReader
reader)
System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.ParseToken(XmlDictionaryReader
reader, String&amp; id, String&amp; userName, String&amp; password)
System.ServiceModel.Security.WSSecurityJan2004.UserNamePasswordTokenEntry.ReadTokenCore(XmlDictionaryReader
reader, SecurityTokenResolver tokenResolver)
System.ServiceModel.Security.WSSecurityTokenSerializer.ReadTokenCore(XmlReader
reader, SecurityTokenResolver tokenResolver)
System.IdentityModel.Selectors.SecurityTokenSerializer.ReadToken(XmlReader
reader, SecurityTokenResolver tokenResolver)
System.ServiceModel.Security.ReceiveSecurityHeader.ReadToken(XmlReader
reader, SecurityTokenResolver tokenResolver, IList`1
allowedTokenAuthenticators, SecurityTokenAuthenticator&amp;
usedTokenAuthenticator)
System.ServiceModel.Security.ReceiveSecurityHeader.ReadToken(XmlDictionaryReader
reader, Int32 position, Byte[] decryptedBuffer, SecurityToken
encryptionToken, String idInEncryptedForm, TimeSpan timeout)
System.ServiceModel.Security.ReceiveSecurityHeader.ExecuteFullPass(XmlDictionaryReader
reader)
System.ServiceModel.Security.StrictModeSecurityHeaderElementInferenceEngine.ExecuteProcessingPasses(ReceiveSecurityHeader
securityHeader, XmlDictionaryReader reader)
System.ServiceModel.Security.ReceiveSecurityHeader.Process(TimeSpan timeout)
System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessageCore(Message&amp;
message, TimeSpan timeout)
System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessage(Message&amp;
message, TimeSpan timeout)
System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message&amp;
message, TimeSpan timeout, SecurityProtocolCorrelationState[]
correlationStates)
System.ServiceModel.Channels.SecurityChannelListener`1.ServerSecurityChannel`1.VerifyIncomingMessage(Message&amp;
message, TimeSpan timeout, SecurityProtocolCorrelationState[]
correlationState)
System.ServiceModel.Channels.SecurityChannelListener`1.SecurityReplyChannel.ProcessReceivedRequest(RequestContext
requestContext, TimeSpan timeout)
System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveRequestAndVerifySecurityAsyncResult.ProcessInnerItem(RequestContext
innerItem, TimeSpan timeout)
System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerifySecurityAsyncResult`2.OnInnerReceiveDone()
System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult
result)
System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult
result)
System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item)
System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item item,
Boolean canDispatchOnThisThread)
System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T item,
ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDisposable
item, ItemDequeuedCallback dequeuedCallback, Boolean
canDispatchOnThisThread)
System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType
item, ItemDequeuedCallback dequeuedCallback, Boolean
canDispatchOnThisThread)
System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext
context, ItemDequeuedCallback callback)
System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult
result)
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object
state)
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke2()
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke()
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallbacks()
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCallback(Object
state)
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOverlapped.IOCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame(UInt32
error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)


The second one gives a message reading "Message security verification
failed." with the stack trace:
System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessage(Message&amp;
message, TimeSpan timeout)
System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message&amp;
message, TimeSpan timeout, SecurityProtocolCorrelationState[]
correlationStates)
System.ServiceModel.Channels.SecurityChannelListener`1.ServerSecurityChannel`1.VerifyIncomingMessage(Message&amp;
message, TimeSpan timeout, SecurityProtocolCorrelationState[]
correlationState)
System.ServiceModel.Channels.SecurityChannelListener`1.SecurityReplyChannel.ProcessReceivedRequest(RequestContext
requestContext, TimeSpan timeout)
System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveRequestAndVerifySecurityAsyncResult.ProcessInnerItem(RequestContext
innerItem, TimeSpan timeout)
System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerifySecurityAsyncResult`2.OnInnerReceiveDone()
System.ServiceModel.Channels.SecurityChannelListener`1.ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult
result)
System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult
result)
System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item)
System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item item,
Boolean canDispatchOnThisThread)
System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T item,
ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDisposable
item, ItemDequeuedCallback dequeuedCallback, Boolean
canDispatchOnThisThread)
System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType
item, ItemDequeuedCallback dequeuedCallback, Boolean
canDispatchOnThisThread)
System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext
context, ItemDequeuedCallback callback)
System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult
result)
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object
state)
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke2()
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke()
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallbacks()
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCallback(Object
state)
System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOverlapped.IOCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame(UInt32
error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

-- 
View this message in context: http://www.nabble.com/Error-verifying-security-tp24646371p24688305.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Error verifying security

Posted by Daniel Kulp <dk...@apache.org>.
That message means your HTTP server wasn't able to even get the request INTO 
CXF at all.   Possibly overloaded.  Don't really know.  You'd have to check 
the server logs.

Dan


On Mon July 27 2009 1:11:14 pm LeftoverLinguine wrote:
> For some reason I don't consistently get the error that I mentioned in my
> first post.  Sometimes when I run my program I will get an error that
> reads:
>
> Jul 27, 2009 1:03:13 PM org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Response was of unexpected text/html
> ContentType.  Incoming portion of HTML stream: <h1>Service Unavailable</h1>
> 	at
> org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInIntercepto
>r.java:73) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:645) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>eInternal(HTTPConduit.java:2132) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>e(HTTPConduit.java:2015) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPCon
>duit.java:1940) at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627) at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
>rceptor.handleMessage(MessageSenderInterceptor.java:62) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121) at
> $Proxy43.getUserCreditLimit(Unknown Source)
> 	at
> PaymentServiceContract_CustomBindingPaymentServiceContract_Client.main(Paym
>entServiceContract_CustomBindingPaymentServiceContract_Client.java:74)
> Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Response
> was of unexpected text/html ContentType.  Incoming portion of HTML stream:
> <h1>Service Unavailable</h1>
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141)
> 	at $Proxy43.getUserCreditLimit(Unknown Source)
> 	at
> PaymentServiceContract_CustomBindingPaymentServiceContract_Client.main(Paym
>entServiceContract_CustomBindingPaymentServiceContract_Client.java:74)
> Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected
> text/html ContentType.  Incoming portion of HTML stream: <h1>Service
> Unavailable</h1>
> 	at
> org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInIntercepto
>r.java:73) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:645) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>eInternal(HTTPConduit.java:2132) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>e(HTTPConduit.java:2015) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPCon
>duit.java:1940) at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627) at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
>rceptor.handleMessage(MessageSenderInterceptor.java:62) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121) ...
> 2 more
>
>
> It seems pretty random as to which error I get.  Without changing any code
> or anything it will switch to one error or the other.
> Any suggestions?

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Error verifying security

Posted by LeftoverLinguine <le...@gmail.com>.
For some reason I don't consistently get the error that I mentioned in my
first post.  Sometimes when I run my program I will get an error that reads:

Jul 27, 2009 1:03:13 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html
ContentType.  Incoming portion of HTML stream: <h1>Service Unavailable</h1>
	at
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:645)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2132)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2015)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1940)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
	at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
	at $Proxy43.getUserCreditLimit(Unknown Source)
	at
PaymentServiceContract_CustomBindingPaymentServiceContract_Client.main(PaymentServiceContract_CustomBindingPaymentServiceContract_Client.java:74)
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Response
was of unexpected text/html ContentType.  Incoming portion of HTML stream:
<h1>Service Unavailable</h1>
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141)
	at $Proxy43.getUserCreditLimit(Unknown Source)
	at
PaymentServiceContract_CustomBindingPaymentServiceContract_Client.main(PaymentServiceContract_CustomBindingPaymentServiceContract_Client.java:74)
Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected
text/html ContentType.  Incoming portion of HTML stream: <h1>Service
Unavailable</h1>
	at
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:645)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2132)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2015)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1940)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
	at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
	... 2 more


It seems pretty random as to which error I get.  Without changing any code
or anything it will switch to one error or the other.
Any suggestions?
-- 
View this message in context: http://www.nabble.com/Error-verifying-security-tp24646371p24684663.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Error verifying security

Posted by LeftoverLinguine <le...@gmail.com>.
Where can I view the server side error logs from?

dkulp wrote:
> 
> 
> You would need to see the error logs on the server side.   Basically, the 
> server tried to process the security header, but something was not right
> in 
> there.   It could be an invalid password or timestamp issue or expired
> certs 
> or similar.   Check the logs there.
> 
> Dan
> 

-- 
View this message in context: http://www.nabble.com/Error-verifying-security-tp24646371p24650792.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Error verifying security

Posted by Daniel Kulp <dk...@apache.org>.
You would need to see the error logs on the server side.   Basically, the 
server tried to process the security header, but something was not right in 
there.   It could be an invalid password or timestamp issue or expired certs 
or similar.   Check the logs there.

Dan


On Fri July 24 2009 11:11:39 am LeftoverLinguine wrote:
> When I attempt to log into my web service and invoke a method from my
> generated java files I get the following error:
>
> Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: An error
> occurred when verifying security for the message.
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141)
> 	at $Proxy43.getCreditCards(Unknown Source)
> 	at
> PaymentServiceContract_CustomBindingPaymentServiceContract_Client.main(Paym
>entServiceContract_CustomBindingPaymentServiceContract_Client.java:74)
> Caused by: org.apache.cxf.binding.soap.SoapFault: An error occurred when
> verifying security for the message.
> 	at
> org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.unmarshalF
>ault(Soap12FaultInInterceptor.java:109) at
> org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMess
>age(Soap12FaultInInterceptor.java:54) at
> org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMess
>age(Soap12FaultInInterceptor.java:45) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(Ab
>stractFaultChainInitiatorObserver.java:96) at
> org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage
>(CheckFaultInterceptor.java:69) at
> org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage
>(CheckFaultInterceptor.java:34) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:645) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>eInternal(HTTPConduit.java:2132) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>e(HTTPConduit.java:2015) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPCon
>duit.java:1940) at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627) at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
>rceptor.handleMessage(MessageSenderInterceptor.java:62) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121) ...
> 2 more
>
> Does anybody know what could be the source of this problem?

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog