I'm getting this strange "failed to sign" exception and need help to figure
out, what causes it:
Jul 24, 2007 11:18:36 AM
org.globus.wsrf.impl.security.authentication.secureconv.SignHandler handle
Message
SEVERE: Failed to sign message
org.apache.xml.security.signature.XMLSignatureException: null
Original Exception was org.apache.xml.security.signature.XMLSignatureException:
null
Original Exception was java.security.InvalidKeyException
at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
at
org.globus.wsrf.impl.security.authentication.signature.GssSignedSOAPEnvelopeBuilder.buil
dMessage(GssSignedSOAPEnvelopeBuilder.java:183)
at
org.globus.wsrf.impl.security.authentication.secureconv.SignHandler.handleMessage(SignHa
ndler.java:81)
at
org.globus.wsrf.impl.security.authentication.secureconv.GSSHandler.handleMessage(GSSHand
ler.java:59)
at
org.globus.wsrf.impl.security.authentication.secureconv.GSSHandler.handleRequest(GSSHand
ler.java:35)
at
org.apache.axis.handlers.HandlerChainImpl.handleRequest(HandlerChainImpl.java:105)
Transport level security is off, security is based on certificates and message
signing, code below:
ExtendedGSSManager credentialManager =
(ExtendedGSSManager)ExtendedGSSManager.getInstance();
GSSCredential userCredentials = credentialManager.createCredential(
userCertificate, ExtendedGSSCredential.IMPEXP_OPAQUE,
GSSCredential.DEFAULT_LIFETIME, null,GSSCredential.INITIATE_AND_ACCEPT);
((Stub) mSudetiesPortas)._setProperty(Constants.GSI_SEC_CONV,
Constants.SIGNATURE);
((Stub) mSudetiesPortas)._setProperty( Constants.AUTHORIZATION,
NoAuthorization.getInstance() );
((Stub) mSudetiesPortas)._setProperty( GSIConstants.GSI_CREDENTIALS,
userCredentials );
exception is thrown for the last code line:
Sudeti uzklausa = new Sudeti();
uzklausa.setDemuo_a( 10 );
uzklausa.setDemuo_b( 20 );
SudetiResponse atsakymas = mSudetiesPortas.sudeti(uzklausa);