cancel
Showing results for 
Search instead for 
Did you mean: 

Got error WSSecurityEngine: Invalid timestamp The security..

echen
Champ in-the-making
Champ in-the-making
When I run WebService Example, it always get error:

Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: WSDoAllReceiver: security processing failed; nested exception is:
   org.apache.ws.security.WSSecurityException: An error was discovered processing the <wsseSmiley Frustratedecurity> header. (WSSecurityEngine: Invalid timestamp The security semantics of message have expired)
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}hostname:eightball.***.com

WSDoAllReceiver: security processing failed; nested exception is:
   org.apache.ws.security.WSSecurityException: An error was discovered processing the <wsseSmiley Frustratedecurity> header. (WSSecurityEngine: Invalid timestamp The security semantics of message have expired)
   at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
   at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
   at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
   at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
   at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.getStores(RepositoryServiceSoapBindingStub.java:714)
   at org.alfresco.sample.webservice.GetStores.main(GetStores.java:50)

Any help is very appreciate.
Most weird is it was running well last week. I don't change anything.
13 REPLIES 13

unknown-user
Champ on-the-rise
Champ on-the-rise
Thanks but Alfresco and my client application are running on the same machine.
Is there something in Alfresco  server software that needs to change?


I think that you need to change the time settings of the operating system of the Alfresco Server and your custom application that invoke Alfresco externally.

Hope this helps.

rcarhuatocto
Champ in-the-making
Champ in-the-making
I am having the same problem!!.

I see in Alfresco Explore -> System Information -> system properties:
user.timezone=Europe/Paris  (equals to Windows XP TimeZone = GMT+01:00, in daylight-saving TimeZone = GMT+02:00)

and when Alfresco starts I see that the time is right:
05-dic-2009 12:49:52 org.apache.catalina.startup.Catalina start
INFO: Server startup in 321229 ms

When I do an Webservice request with soapUI 3.0.1, Alfresco replies with "Date = Sat, 05 Dec 2009 10:27:20 GMT" in the Header of soap message and this time is 1 hour before the real time always!!

After 5 minuts this TickeID/Session is closed.

I changed my user.timezone in the Alfresco.bat / JAVA_OPTS, but Alfresco Webservice replies with 1 hour before the MS WindowsXP time.

I think Alfresco Webservice (Axis ??, server-config.wsdd ??) not calculate the time correctly.

I am running Alfresco on the same machine as soapUI application. I tested with Alfresco 3.0 Labs, Alfresco 3.2 Community and Alfresco 3.1.1 Enterprise without satisfactory results.

Is there any way that Alfresco Webservice respond the right time?.
Any idea?

Thanks in advance.

joss
Champ in-the-making
Champ in-the-making
Hi,

I seem to have a similar issue.

I'm running a test on the same platform, using a .Net client. After reading some of the issues with the TimeStamp and WSE, I'm injecting a timestamp in the SAOP header, but I'm still getting an error: "The security semantics of message have expired".

Looking at the SOAP reply from agresso it looks like the timestamp is 1 hour behind.

Any reply would be appreciated,

Thanks in advance
Joss

anndrewtr
Champ in-the-making
Champ in-the-making
Hi;

I too have faced the same issue whereas after changing the time in Alfresco server it is working fine.