cancel
Showing results for 
Search instead for 
Did you mean: 

WSSecurityEngine: Callback supplied no password for: ticket

revenge
Champ in-the-making
Champ in-the-making
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

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: WSDoAllReceiver: security processing failed; nested exception is:
   org.apache.ws.security.WSSecurityException: General security error (WSSecurityEngine: Callback supplied no password for: ticket)
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}hostname:myserver

WSDoAllReceiver: security processing failed; nested exception is:
   org.apache.ws.security.WSSecurityException: General security error (WSSecurityEngine: Callback supplied no password for: ticket)
   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 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(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.content.ContentServiceSoapBindingStub.read(ContentServiceSoapBindingStub.java:421)
   ….
    …

   
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,

Revenge
4 REPLIES 4

mcirwin
Champ in-the-making
Champ in-the-making
Did you get anywhere with this?  I have a similar problem, but for me I get the ticket error as soon as I try to do anything after authenticating.

Thanks.

cszamudio
Champ on-the-rise
Champ on-the-rise
I've been having similar on-going problems. The only difference is that the problem is intermittent for me. Sometimes my program works fine, other times it throws the same Exception you described on first attempt to perform any administrative web service operation.  I had wondered whether it was somehow connected to how previous sessions were terminated. In any case, I've not been able to figure this out either.  I can't believe there is not already a solution to this or some configuration requirement, as I don't see how anyone would be able to use any web service calls.

Any advice would be appreciated.

Carlos S. Zamudio

pietro
Champ in-the-making
Champ in-the-making
Still have the same problem.
Alfresco Web Services used in my webapp gives me same error  in a complete random way.

If i debug my application i always find ticket in my repo, i can set it again before update but sometimes it crashes as it has not the ticket.
Moreover next trial it can  work again without a new login.

I'm really in need for help.

If you can help me please do it.

I found this page
https://issues.alfresco.com/jira/browse/ETWOONE-205
but i really don't know how to use it.

thierensbart
Champ in-the-making
Champ in-the-making
I have the same problem.

This error occurs when my WS-based Java app has a connection of a few hours.

I'm gonna try and catch the error somehow, end the session and create a new one before continuing.

Fingers crossed!