This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes org.apache.axis2.AxisFault: The message has expired Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "org.apache.axis2.AxisFault: The message has expired" Watch "org.apache.axis2.AxisFault: The message has expired" New topic
Author

org.apache.axis2.AxisFault: The message has expired

Srikanth Kumar
Ranch Hand

Joined: Jun 04, 2008
Posts: 36
When i tried a web service with Rampart security implementation i am getting the following exception. I have no idea about this exception. Below is the stacktrace

org.apache.axis2.AxisFault: The message has expired (WSSecurityEngine: Invalid timestamp The security semantics of message have expired)
at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:172)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:363)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.gpc.remoteclassification.services.RemoteClassificationServiceStub.getClassificationReturnItem(RemoteClassificationServiceStub.java:9210)
at com.gpc.remoteclassification.client.WebServiceClient.getClassificationReturnItem(WebServiceClient.java:482)
at com.gpc.remoteclassification.client.WebServiceClient.main(WebServiceClient.java:142)
Caused by: org.apache.ws.security.WSSecurityException: The message has expired (WSSecurityEngine: Invalid timestamp The security semantics of message have expired)
at org.apache.ws.security.processor.TimestampProcessor.handleTimestamp(TimestampProcessor.java:82)
at org.apache.ws.security.processor.TimestampProcessor.handleToken(TimestampProcessor.java:52)
at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:311)
at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:228)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:146)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
... 10 more

More details:
Linux-server and windows-client
JBoss application server
Axis2
Apache Rampart 1.4
Number of records this service fetches is high
and after a long time say 3 minutes this exception is thrown.
This service is fine if i decrease the number of records it fetches.

Your help is highly appreciated.


Srikanth Kumar
SCJP 5, SCWCD 5, SCDJWS 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.axis2.AxisFault: The message has expired
 
Similar Threads
Axis2/Rampart problem. Certificate not found for user.
Issue with using the Axis2 JAX-WS Client using Rampart
Axis2/Rampart fails auth from WCF client, never calls password callback handler
Web services in HTTPS. org.apache.axis2.AxisFault: Read timed out
can't run rampart client