Hi Mailthi, Could you mention the exact java version in your system ? In my case, the java version was "1.6.0_65" and it worked without a problem.
BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ> lean.enterprise.middleware Mobile: +94722241032 On Wed, Oct 8, 2014 at 1:19 PM, Dulanja Liyanage <dula...@wso2.com> wrote: > I'm not sure about the exact root cause of this. But, please note that > WSO2 components are intended to run on Oracle Java 1.6 and 1.7. Please > refer [1]. > > [1] https://docs.wso2.com/display/IS500/Installation+Prerequisites > > On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe <malit...@wso2.com> > wrote: > >> Hi All, >> >> I configured IS 5.0.0 STS to issue tokens and tried to run the client >> sample at [1]. >> I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java >> 1.6 which is the apple version. >> When running the client under this setup I got the below exception which >> is thrown by the Identity Server. But this client worked as expected when I >> changed my JAVA_HOME to java 1.7 which is oracle java. >> >> java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto >> cannot create instance >> at >> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231) >> at >> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95) >> at org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188) >> at >> org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69) >> at >> org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57) >> at >> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) >> at >> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >> at >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) >> at >> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) >> at >> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) >> at >> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) >> at >> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) >> at >> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) >> at >> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) >> at >> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) >> at >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >> at >> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) >> at >> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) >> at >> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) >> at java.lang.Thread.run(Thread.java:695) >> Caused by: java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at >> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:217) >> ... 43 more >> Caused by: org.apache.ws.security.components.crypto.CredentialException: >> Failed to load credentials. >> at >> org.wso2.carbon.security.util.ServerCrypto.<init>(ServerCrypto.java:149) >> ... 48 more >> Caused by: java.security.cert.CertificateParsingException: >> java.io.IOException: subject key, java.lang.NullPointerException >> at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:154) >> at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1731) >> at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:177) >> at >> sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:90) >> at >> java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:305) >> at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:746) >> at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38) >> at java.security.KeyStore.load(KeyStore.java:1183) >> at >> org.wso2.carbon.security.util.ServerCrypto.<init>(ServerCrypto.java:142) >> ... 48 more >> Caused by: java.io.IOException: subject key, >> java.lang.NullPointerException >> at sun.security.x509.X509Key.parse(X509Key.java:157) >> at sun.security.x509.CertificateX509Key.<init>(CertificateX509Key.java:58) >> at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:688) >> at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:152) >> ... 56 more >> >> I am wondering what would have caused this exception, seems there's some >> problem with apple java 1.6 version. Appreciate if somebody can help me on >> this. >> >> [1] >> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/is/5.0.0/modules/samples/sts/sts-client/ >> >> Thanks, >> Malithi. >> >> -- >> >> *Malithi Edirisinghe* >> Senior Software Engineer >> WSO2 Inc. >> >> Mobile : +94 (0) 718176807 >> malit...@wso2.com >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Dulanja Liyanage > WSO2 Inc. > M: +94776764717 > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev