You have a very compound statement on the line with the error. Could you break it into several simpler statements. I suspect that the instantation error is occurring in the inner object's item method (maybe). It looks to me like this could be three simple statements.
Ajas Mohammed <[email protected]> Sent by: [email protected] 04/13/2009 02:47 PM Please respond to [email protected] To [email protected] cc Subject [ACFUG Discuss] CF 7 java Object Instantiation Exception. Perhaps init issue here? Hi there, I am getting an error(code in red) Object Instantiation Exception. I believe it has to do with init call because i remember CF's init is different from Java's style of callling constructors. Can anybody recommend an alternative ? FYI, if i remove code in red till the end and I do print values of other variables like docElement and SignatureSpecNS, then I can see there values. If you need any further information, let me know. <cfscript> xmlResponse= tokenXML; // this is full xml stored in variable here docElement= XmlParse(variables.xmlResponse).getDocumentElement(); SignatureConstants=CreateObject("Java", "org.apache.xml.security.utils.Constants"); SignatureSpecNS=SignatureConstants.SignatureSpecNS; xmlSignatureClass = CreateObject("Java","org.apache.xml.security.signature.XMLSignature"); xmlSignature = xmlSignatureClass.init(docElement.getElementsByTagNameNS(SignatureSpecNS,"Signature").item(0),""); // this lines gives error. see details below //Exceptions 13:00:53.053 - Object Exception - in **** line 85 Object Instantiation Exception. keyInfo=xmlSignature.getKeyInfo(); X509CertificateResolverCN = CreateObject("Java","org.apache.xml.security.keys.keyresolver.implementations.X509CertificateResolverClass"); keyResolver=CreateObject("Java",X509CertificateResolverCN).init(); keyInfo.registerInternalKeyResolver(keyResolver); x509cert = keyInfo.getX509Certificate(); </cfscript> Thanks <Ajas Mohammed /> http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
