AnsweredAssumed Answered

WSSecurityEngine: Callback supplied no password for: ticket

Question asked by revenge on Apr 1, 2008
Latest reply on Nov 19, 2009 by thierensbart
Hi all,

i've a problem when I have a long time connection to alfresco.

I start the session using this code

      try {
         AuthenticationUtils.startSession(strUsername, strPassword);
         blnAuthenticated = true;

      } catch (AuthenticationFault e) {
         logger.error("Errore durante l'autenticazione ad Alfresco.", e);
now i have to process all the files contained in a space

if this process gets a lot of time it throws an exception

faultCode: {}Server.generalException
faultString: WSDoAllReceiver: security processing failed; nested exception is: General security error (WSSecurityEngine: Callback supplied no password for: ticket)

WSDoAllReceiver: security processing failed; nested exception is: General security error (WSSecurityEngine: Callback supplied no password for: ticket)
   at org.apache.axis.message.SOAPFaultBuilder.createFault(
   at org.apache.axis.message.SOAPFaultBuilder.endElement(
   at org.apache.axis.encoding.DeserializationContext.endElement(
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
   at org.apache.axis.encoding.DeserializationContext.parse(
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(
   at org.apache.axis.Message.getSOAPEnvelope(
   at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(
   at org.apache.axis.client.AxisClient.invoke(
   at org.apache.axis.client.Call.invokeEngine(
   at org.apache.axis.client.Call.invoke(
   at org.apache.axis.client.Call.invoke(
   at org.apache.axis.client.Call.invoke(
   at org.apache.axis.client.Call.invoke(

i'm actually using
this._store = new Store(Constants.WORKSPACE_STORE, strStore);
this._contentFolder = new Reference(this._store, null, strPath);
this._repositoryService = WebServiceFactory.getRepositoryService();
this._contentService = WebServiceFactory.getContentService();

I invoke WebServiceFactory only one time after starting the session, and i use the variables during all the process

i read that i have to modify the session-timeout value in web.xml
but i think that it could be the wrong way because i need to set the timeout programmatically only for this process without touch the web.xml

is there a way to keep alive the session programmatically?

thanks in advance,