Skip to Content.
Sympa Menu

mace-opensaml-users - Java XMLSignature OpenSAML Problem Description

Subject: OpenSAML user discussion

List archive

Java XMLSignature OpenSAML Problem Description


Chronological Thread 
  • From: "Anand X Venkatesan" <>
  • To:
  • Subject: Java XMLSignature OpenSAML Problem Description
  • Date: Mon, 3 May 2004 18:45:22 -0700


Hi Team,

        In our source code (a servlet running in Websphere 5 Test Environment), when we were trying to sign a SAMLResponse Object we are getting the following error:

[4/28/04 16:58:52:400 GMT-07:00] 69d7c67a WebGroup      E SRVE0026E: [Servlet Error]-[java.lang.Exception: method &lt;init&gt;&#40;Ljava/lang/String&#59;Ljava/lang/Throwable&#59;&#41;V not found]: java.lang.NoSuchMethodError: java.lang.Exception: method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found
        at org.apache.xml.security.exceptions.XMLSecurityException.<init>(Unknown Source)
        at org.apache.xml.security.signature.XMLSignatureException.<init>(Unknown Source)
        at org.apache.xml.security.signature.Reference.getContentsAfterTransformation(Unknown Source)
        at org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms(Unknown Source)
        at org.apache.xml.security.signature.Reference.getReferencedBytes(Unknown Source)
        at org.apache.xml.security.signature.Reference.calculateDigest(Unknown Source)
        at org.apache.xml.security.signature.Reference.generateDigestValue(Unknown Source)
        at org.apache.xml.security.signature.Manifest.generateDigestValues(Unknown Source)
        at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
        at org.opensaml.SAMLSignedObject.sign(SAMLSignedObject.java:240)
        at com.americanexpress.ei.security.Test.doGet(Test.java:204)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
        at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
        at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
        at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
        at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
        at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
        at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
        at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
        at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
        at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
        at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

Following is the code snippet, which throws that error:

**********
                        resp.sign(
                            XMLSignature.ALGO_ID_SIGNATURE_DSA,                    
                            ks.getKey(alias,password),
                            Arrays.asList(ks.getCertificateChain(alias))
                            );

where resp is a SAMLResponse

**********

        We were not able to identify the root cause of this problem, as this works perfectly fine in a stand alone java program.

        Please help us to resolve this problem. Please call me if you have any questions at the below given number.

Thanks & Best Regards,
Anand V.
Ph : 602-944-4855 [Xtn - 225]

American Express made the following
annotations on 05/03/2004 06:43:02 PM
------------------------------------------------------------------------------
******************************************************************************

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

******************************************************************************


==============================================================================




Archive powered by MHonArc 2.6.16.

Top of Page