From: Uday S. <kum...@ya...> - 2002-08-26 20:00:24
|
Hi Farrukh & all, Here is my configuration and when i tested my instance(build test),i am getting an NPE. It looks to me that this NPE is coming from com.sun.ebxml.registry.util.Utility.java, the line is: Inside the verifyXMLSignature(XMLSignature signature) method, if (!signature.checkSignatureValue(pk)) <- this check is causing NPE. Myconfig: Tomcat4.1.9 running on Solaris8 with Oracle9i/Solaris as the datastore. I follwed the setup guide to copy the 2 jar's (jaxm-api.jar & saaj-api.jar) to the tomcat's common/lib directory. Not sure wheather i am making any mistake! Any idea? Thanks, -Uday. *** Pl don't follow the nos here in this trace,i modified the src code with some debug statements! Stack Trace: ============ test: [java] [java] <soap-env:Envelope [java] xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" [java] xmlns:SOAP-SEC="http://schemas.xmlsoap.org/soap/security/2000-12" soap-env:actor="some-uri" [java] soap-env:mustUnderstand="1"> [java] [java] <soap-env:Header> [java] </soap-env:Header> [java] [java] <soap-env:Body SOAP-SEC:id="Body"> [java] [java] <RegistryResponse status="Failure" xmlns="urn:oasis:names:tc:ebxml-regrep:registry:xsd:2.1"><RegistryErrorList><RegistryError co deContext="RegistryJAXMServlet" errorCode="Unknown" severity="Error">com.sun.ebxml.registry.RegistryException [java] at com.sun.ebxml.registry.util.Utility.verifyXMLSignature(Utility.java:121) [java] at com.sun.ebxml.registry.interfaces.soap.RegistryJAXMServlet.onMessage(RegistryJAXMServlet.java:128) [java] at javax.xml.messaging.JAXMServlet.doPost(Unknown Source) [java] at com.sun.ebxml.registry.interfaces.soap.RegistryJAXMServlet.doPost(RegistryJAXMServlet.java:94) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) [java] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) [java] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) [java] at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) [java] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) [java] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) [java] at java.lang.Thread.run(Thread.java:536) [java] [java] [java] Nested exception was: [java] java.lang.NullPointerException [java] at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM$defaultNamespaceDeclarationNode.getOwnerDocument(DOM2DTM.java:1722) [java] at org.apache.xml.security.utils.XMLUtils.getOwnerDocument(XMLUtils.java:912) [java] at org.apache.xml.security.signature.XMLSignatureInput.getOctetStream(XMLSignatureInput.java:388) [java] at org.apache.xml.security.signature.XMLSignatureInput.getBytes(XMLSignatureInput.java:420) [java] at org.apache.xml.security.signature.Reference.getReferencedBytes(Reference.java:1177) [java] at org.apache.xml.security.signature.Reference.calculateDigest(Reference.java:1227) [java] at org.apache.xml.security.signature.Reference.verify(Reference.java:1315) [java] at org.apache.xml.security.signature.Manifest.verifyReferences(Manifest.java:707) [java] at org.apache.xml.security.signature.SignedInfo.verify(SignedInfo.java:473) [java] at org.apache.xml.security.signature.XMLSignature.checkSignatureValue(XMLSignature.java:685) [java] at com.sun.ebxml.registry.util.Utility.verifyXMLSignature(Utility.java:101) [java] at com.sun.ebxml.registry.interfaces.soap.RegistryJAXMServlet.onMessage(RegistryJAXMServlet.java:128) [java] at javax.xml.messaging.JAXMServlet.doPost(Unknown Source) [java] at com.sun.ebxml.registry.interfaces.soap.RegistryJAXMServlet.doPost(RegistryJAXMServlet.java:94) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) [java] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) [java] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) [java] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) [java] at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) [java] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) [java] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) [java] at java.lang.Thread.run(Thread.java:536) [java] </RegistryError></RegistryErrorList></RegistryResponse> [java] </soap-env:Body> [java] [java] </soap-env:Envelope>Elapsed time in seconds: 7 BUILD FAILED __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com |