[wsas-java-dev] [jira] Created: (WSAS-493) The timestamp defined in
setTimestampMaxSkew() is not correctly taken by client
Charitha Kankanamge (JIRA)
jira at wso2.org
Wed Sep 5 23:22:48 PDT 2007
The timestamp defined in setTimestampMaxSkew() is not correctly taken by client
--------------------------------------------------------------------------------
Key: WSAS-493
URL: http://www.wso2.org/jira/browse/WSAS-493
Project: WSO2 WSAS
Issue Type: Bug
Affects Versions: Nightly
Environment: winxp, jdk15
Reporter: Charitha Kankanamge
Assigned To: Ruchith Fernando
I was running CommodityQuote sample using 2 machines configured in 7 minutes time difference among them. I got the following exception at client side when running the commodity quote client with -qos secure. This scenario works perfectly with the default time difference (5 minutes). It seems the timestamp defined in setTimestampMaxSkew() is not correctly taken.
org.apache.axis2.AxisFault: The timestamp could not be validated
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.wso2.wsas.sample.commodityquote.client.CommodityQuoteStub.getSymbols(CommodityQuoteStub.java:437)
at org.wso2.wsas.sample.commodityquote.client.Client.doGetSymbols(Client.java:194)
at org.wso2.wsas.sample.commodityquote.client.Client.start(Client.java:283)
at org.wso2.wsas.sample.commodityquote.client.Client.main(Client.java:596)
Security failure. Please refer to the CommodityQuote documentation and configure the CommodityQuoteservice properly
org.apache.axis2.AxisFault: The timestamp could not be validated
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.wso2.wsas.sample.commodityquote.client.CommodityQuoteStub.getSymbols(CommodityQuoteStub.java:437)
at org.wso2.wsas.sample.commodityquote.client.Client.doGetSymbols(Client.java:194)
at org.wso2.wsas.sample.commodityquote.client.Client.start(Client.java:283)
at org.wso2.wsas.sample.commodityquote.client.Client.main(Client.java:596)
Steps to reproduce:
===============
1. Edit samples\CommodityQuote\src\org\wso2\wsas\sample\commodityquote\client\Client.java with adding the following line.
rc.setTimestampMaxSkew("900");
2. Configure 7 minutes time difference between server and client
3. Configure security scenario 2 on CommodityQuote service
4. Execute Client
run-client.bat -qos secure -e http://10.100.1.190:9762/services/CommodityQuote
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Wsas-java-dev
mailing list