Add LifeCycle to a tenant in WSO2 API Manager - wso2-api-manager
Deployed IS as Key Manager before and API Manager afterward. They share the registry and the result of this deployment order was that APILifecycle got deleted (In the carbon console under Extensions->configure->Lifecycles).
I need that lifecycle so I added it to the supertenant (via carbon console) and it went ok.
I noticed that putting the APILifeCycle.xml under /wso2-home/repository/resources/lifecycles and creating a new tenant, the file get correctly created in the GUI but since the tenant was created without the .xml in place I cannot add it now.
Unfortunately when I try to add the lifecycle to a tenant via GUI i get this error:
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: [2019-02-01 18:55:49,280] ERROR - ApplicationDispatcher Servlet.service() for servlet bridgeservlet threw exception
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: java.lang.NullPointerException
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.registry.core.pagination.PaginationUtils.getRowCount(PaginationUtils.java:152)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.governance.lcm.ui.clients.LifeCycleManagementServiceClient.isLifeCycleNameInUse(LifeCycleManagementServiceClient.java:180)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.governance.lcm.ui.clients.LifeCycleManagementServiceClient.isLifeCycleNameInUse(LifeCycleManagementServiceClient.java:167)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jsp.lcm.nameinusecheck_005flcm_005fajaxprocessor_jsp._jspService(nameinusecheck_005flcm_005fajaxprocessor_jsp.java:91)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.filters.cache.URLBasedCachePreventionFilter.doFilter(URLBasedCachePreventionFilter.java:57)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:65)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:91)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:65)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:63)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.lang.Thread.run(Thread.java:748)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: [2019-02-01 18:55:49,282] ERROR - StandardWrapperValve Servlet.service() for servlet [bridgeservlet] in context with path [/] threw exception [An exception occurred processing JSP page /lcm/nameinusecheck_lcm_ajaxprocessor.jsp at line 24
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 21: <%
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 22: String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 23: LifeCycleManagementServiceClient client = new LifeCycleManagementServiceClient(cookie, config, session);
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 24: boolean isInUse = client.isLifeCycleNameInUse(request);
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 25: if (isInUse) {
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 26: %>----IsInUse----<%
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 27: }
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: Stacktrace:] with root cause
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: java.lang.NullPointerException
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.registry.core.pagination.PaginationUtils.getRowCount(PaginationUtils.java:152)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.governance.lcm.ui.clients.LifeCycleManagementServiceClient.isLifeCycleNameInUse(LifeCycleManagementServiceClient.java:180)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.governance.lcm.ui.clients.LifeCycleManagementServiceClient.isLifeCycleNameInUse(LifeCycleManagementServiceClient.java:167)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jsp.lcm.nameinusecheck_005flcm_005fajaxprocessor_jsp._jspService(nameinusecheck_005flcm_005fajaxprocessor_jsp.java:91)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.filters.cache.URLBasedCachePreventionFilter.doFilter(URLBasedCachePreventionFilter.java:57)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:65)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:91)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:65)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:63)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.lang.Thread.run(Thread.java:748)
How can I solve without deleting the tenant and recreating it? thanks
I do following steps, and it works:
Login into super tenant carbon. And go to Main > Resources > Browse
Go to the _system/config/repository/components/org.wso2.carbon.governance/lifecycles
Try to export APILifeCycle
Import the above APILifeCycle into a tenant A
And then I can use the tenant A Publisher and Store
I managed to add the APILifecycle through the registry with the function "Add a resource". The path is
/_system/config/repository/components/org.wso2.carbon.governance/lifecycles
I still can't add any lifecycle through the GUI in the menu Extensions->lifecycles
Related
How to fix multiple data points for a single observation in a column?
Just a heads up, I'm working with a very odd data frame, and I'm struggling to adjust it into a usable format. Basically, I have a grouping variable Game, an individual-level variable Player, and Player_Grade, which takes on an atypical format. Here is an example: Game Player Player_Grade 1 ABA 02 ABA 02 (+1.5); ABA 04 (+0.2); ABA 46 (+3.0) 1 ABA 04 ABA 02 (+1.5); ABA 04 (+0.2); ABA 46 (+3.0) 1 ABA 46 ABA 02 (+1.5); ABA 04 (+0.2); ABA 46 (+3.0) 2 ABA 02 ABA 02 (+1.2); ABA 04 (+3.2); ABA 46 (+8.1) 2 ABA 04 ABA 02 (+1.2); ABA 04 (+3.2); ABA 46 (+8.1) 2 ABA 46 ABA 02 (+1.2); ABA 04 (+3.2); ABA 46 (+8.1) 3 BRS 03 BRS 03 (+1.7); BRS 05 (+1.2); BRS 01 (+2.5) 3 BRS 05 BRS 03 (+1.7); BRS 05 (+1.2); BRS 01 (+2.5) 3 BRS 01 BRS 03 (+1.7); BRS 05 (+1.2); BRS 01 (+2.5) So as you can see, every observation within the group variable has the same value for the Player_Grade column. What I would like to do is create a new column that assigns the correct grade (the number in the parentheses) to each player. So the above table would become: Game Player Player_Grade Grade 1 ABA 02 ABA 02 (+1.5); ABA 04 (+0.2); ABA 46 (+3.0) 1.5 1 ABA 04 ABA 02 (+1.5); ABA 04 (+0.2); ABA 46 (+3.0) 0.2 1 ABA 46 ABA 02 (+1.5); ABA 04 (+0.2); ABA 46 (+3.0) 3.0 2 ABA 02 ABA 02 (+1.2); ABA 04 (+3.2); ABA 46 (+8.1) 1.2 2 ABA 04 ABA 02 (+1.2); ABA 04 (+3.2); ABA 46 (+8.1) 3.2 2 ABA 46 ABA 02 (+1.2); ABA 04 (+3.2); ABA 46 (+8.1) 8.1 3 BRS 03 BRS 03 (+1.7); BRS 05 (+1.2); BRS 01 (+2.5) 1.7 3 BRS 05 BRS 03 (+1.7); BRS 05 (+1.2); BRS 01 (+2.5) 1.2 3 BRS 01 BRS 03 (+1.7); BRS 05 (+1.2); BRS 01 (+2.5) 2.5 One way I thought about doing this was to create a new column for each player, then coalesce those columns together into a single column. But since my full data set is 100s of different players, each with many different grades, such a process would be impractical. Again, I'm a little lost so any help setting me in the correct direction would be appreciated. Thanks in advance! MRE: structure(list(Game = c(1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L, 3L), Player = c("ABA 02", "ABA 04", "ABA 46", "ABA 02", "ABA 04", "ABA 46", "BRS 03", "BRS 05", "BRS 03"), Player_Grade = c("ABA 02 (1.5); ABA 04 (0.2); ABA 46 (3.0) ", "ABA 02 (1.5); ABA 04 (0.2); ABA 46 (3.0) ", "ABA 02 (1.5); ABA 04 (0.2); ABA 46 (3.0) ", "ABA 02 (1.2); ABA 04 (3.2); ABA 46 (8.1) ", "ABA 02 (1.2); ABA 04 (3.2); ABA 46 (8.1) ", "ABA 02 (1.2); ABA 04 (3.2); ABA 46 (8.1) ", "BRS 03 (1.7); BRS 05 (1.2); BRS 01 (2.5)", "BRS 03 (1.7); BRS 05 (1.2); BRS 01 (2.5)", "BRS 03 (1.7); BRS 05 (1.2); BRS 01 (2.5)" )), class = "data.frame", row.names = c(NA, -9L))
The below code takes values in the 'Player' and 'Player_Grade' column for each row. It then replaces the value in parentheses closest to the value in 'Player' column. mutate(df,Grade = purrr::map2(Player_Grade,Player, function(x,y) sub(paste0(".*",y," \\(((\\+|\\-)*[0-9\\.]+)\\).+"), "\\1", x)))
Converting a big string in R to hex
I need to convert a big string of 1M booleans to hexadecimal. I can't figure the right library or syntax. I thought I could use a gsub after I converted the booleans to char, but I can't keep it in raw data type. Each FALSE needs to be a 0x0 and TRUE needs to be a 0x8. So, this : FALSEFALSEFALSETRUEFALSEFALSE becomes this raw data: 000800 Here's a snip of code I've been playing with: sample<-paste0(sample(x=c(T,F),size=100,replace=T),collapse="") best_raw<-as.vector(sample) %>% as.character(.) %>% paste(.,collapse="") %>% gsub(x=.,pattern="TRUETRUE",replacement=as.raw(0x88)) %>% gsub(x=.,pattern="FALSEFALSE",replacement=as.raw(0x00)) %>% gsub(x=.,pattern="TRUEFALSE",replacement=as.raw(0x80)) %>% gsub(x=.,pattern="FALSETRUE",replacement=as.raw(0x08)) but a few things become obvious... first, I thought I was cleverly using characters and as.raw by taking two booleans at a time, but gsub does not respect the pairs going in so I get a mash of stuff like: "8088TRUE00TRUE000000880800888088TRUE" I've seen a few references to bin2hex, but I can't find it in CRAN and I'm not sure it would do what I want anyway.
If I understand the question correctly, you have a character string with TRUE and FALSE concatenated. You can directly use gsub to replace them with numbers. Then you can separate the individual numbers to get a vector rather than a single long string and you can apply the conversion you need on that final vector. smp <- paste0(sample(x=c("TRUE","FALSE"),size=100,replace=T),collapse="") smp_as_numbers <- gsub("FALSE", "0",gsub("TRUE", "8", smp, fixed=TRUE), fixed = TRUE) smp_as_vector <- strsplit(smp_as_numbers, "")[[1]] as.raw(as.integer(smp_as_vector)) > as.raw(as.integer(smp_as_vector)) # [1] 08 00 00 00 00 08 00 08 08 08 08 08 08 00 08 08 00 08 00 00 00 00 00 08 00 08 08 08 # [29] 08 00 00 08 00 00 00 08 00 00 08 08 00 00 00 00 08 08 08 08 08 08 00 08 00 08 08 00 # [57] 00 08 08 00 08 00 08 08 08 00 08 08 08 08 00 08 08 00 00 00 08 00 08 08 08 00 08 08 # [85] 08 00 08 00 00 08 08 00 00 08 08 00 00 08 00 00 > smp #[1] #"TRUEFALSEFALSEFALSEFALSETRUEFALSETRUETRUETRUETRUETRUETRUEFALSETRUETRUEFALSETRUEFALSEFALSEFALSEFALSEFALSETRUEFALSETRUETRUETRUETRUEFALSEFALSETRUEFALSEFALSEFALSETRUEFALSEFALSETRUETRUEFALSEFALSEFALSEFALSETRUETRUETRUETRUETRUETRUEFALSETRUEFALSETRUETRUEFALSEFALSETRUETRUEFALSETRUEFALSETRUETRUETRUEFALSETRUETRUETRUETRUEFALSETRUETRUEFALSEFALSEFALSETRUEFALSETRUETRUETRUEFALSETRUETRUETRUEFALSETRUEFALSEFALSETRUETRUEFALSEFALSETRUETRUEFALSEFALSETRUEFALSEFALSE" If you want to use BMS::hex2bin(), you have to use directly the non-split characters: smp <- paste0(sample(x=c("TRUE","FALSE"),size=5,replace=T),collapse="") smp_as_numbers <- gsub("FALSE", "0",gsub("TRUE", "8", smp, fixed=TRUE), fixed = TRUE) smp_as_numbers # [1] "08888" BMS::hex2bin(smp_as_numbers) # [1] 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 typeof(BMS::hex2bin(smp_as_numbers)) # [1] "double"
SSLPeerUnverifiedException exception
I am trying to trigger HTTP Get request using the code below: httpBuilder = new HTTPBuilder(url) httpBuilder.setHeaders(['Authorization':'Basic MyKey']) httpBuilder.request( GET, JSON ) { response.success = { resp, reader -> ....... I know the key is correct but I keep getting "peer not authenticated" from Assembly payment for the url: https://test.api.promisepay.com/users I check the exception class and its SSLPeerUnverifiedException. Seems like something to do with the TLS protocol. Update: I ran the following 2 commands: echo -n | openssl s_client -connect test.api.promisepay.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/test.api.promisepay.com.cert Certificate was download and stored in /tmp/test.api.promisepay.com.cert sudo keytool -importcert -alias "assembly" -file /tmp/test.api.promisepay.com.cert -keystore /opt/java/jre/lib/security/cacerts -storepass changeit Certificate was successfully imported into keystore but its still throwing error SSLPeerUnverifiedException exception. Update 2: trustStore is: /opt/jdk1.7.0_80/jre/lib/security/cacerts trustStore type is : jks trustStore provider is : init truststore adding as trusted cert: Subject: CN=SwissSign Platinum CA - G2, O=SwissSign AG, C=CH Issuer: CN=SwissSign Platinum CA - G2, O=SwissSign AG, C=CH Algorithm: RSA; Serial number: 0x4eb200670c035d4f Valid from Wed Oct 25 14:06:00 IST 2006 until Sat Oct 25 14:06:00 IST 2036 adding as trusted cert: Subject: EMAILADDRESS=info#valicert.com, CN=http://www.valicert.com/, OU=ValiCert Class 1 Policy Validation Authority, O="ValiCert, Inc.", L=ValiCert Validation Network Issuer: EMAILADDRESS=info#valicert.com, CN=http://www.valicert.com/, OU=ValiCert Class 1 Policy Validation Authority, O="ValiCert, Inc.", L=ValiCert Validation Network Algorithm: RSA; Serial number: 0x1 Valid from Sat Jun 26 03:53:48 IST 1999 until Wed Jun 26 03:53:48 IST 2019 adding as trusted cert: Subject: CN=thawte Primary Root CA, OU="(c) 2006 thawte, Inc. - For authorized use only", OU=Certification Services Division, O="thawte, Inc.", C=US Issuer: CN=thawte Primary Root CA, OU="(c) 2006 thawte, Inc. - For authorized use only", OU=Certification Services Division, O="thawte, Inc.", C=US Algorithm: RSA; Serial number: 0x344ed55720d5edec49f42fce37db2b6d Valid from Fri Nov 17 05:30:00 IST 2006 until Thu Jul 17 05:29:59 IST 2036 adding as trusted cert: Subject: CN=Entrust Root Certification Authority, OU="(c) 2006 Entrust, Inc.", OU=www.entrust.net/CPS is incorporated by reference, O="Entrust, Inc.", C=US Issuer: CN=Entrust Root Certification Authority, OU="(c) 2006 Entrust, Inc.", OU=www.entrust.net/CPS is incorporated by reference, O="Entrust, Inc.", C=US Algorithm: RSA; Serial number: 0x456b5054 Valid from Tue Nov 28 01:53:42 IST 2006 until Sat Nov 28 02:23:42 IST 2026 adding as trusted cert: Subject: CN=KEYNECTIS ROOT CA, OU=ROOT, O=KEYNECTIS, C=FR Issuer: CN=KEYNECTIS ROOT CA, OU=ROOT, O=KEYNECTIS, C=FR Algorithm: RSA; Serial number: 0x1121bc276c5547af584eefd4ced629b2a285 Valid from Tue May 26 05:30:00 IST 2009 until Tue May 26 05:30:00 IST 2020 adding as trusted cert: Subject: CN=Global Chambersign Root - 2008, O=AC Camerfirma S.A., SERIALNUMBER=A82743287, L=Madrid (see current address at www.camerfirma.com/address), C=EU Issuer: CN=Global Chambersign Root - 2008, O=AC Camerfirma S.A., SERIALNUMBER=A82743287, L=Madrid (see current address at www.camerfirma.com/address), C=EU Algorithm: RSA; Serial number: 0xc9cdd3e9d57d23ce Valid from Fri Aug 01 18:01:40 IST 2008 until Sat Jul 31 18:01:40 IST 2038 /// Lots of adding as trusted cert messages........... trigger seeding of SecureRandom done seeding SecureRandom Ignoring unavailable cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA Ignoring unavailable cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA256 Ignoring unavailable cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 Ignoring unavailable cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_128_CBC_SHA256 http-bio-8080-exec-2, setSoTimeout(0) called Allow unsafe renegotiation: false Allow legacy hello messages: true Is initial handshake: true Is secure renegotiation: false %% No cached client session *** ClientHello, TLSv1 RandomCookie: GMT: 1513260023 bytes = { 59, 22, 52, 225, 123, 49, 3, 40, 88, 64, 182, 97, 150, 68, 98, 52, 74, 82, 175, 184, 181, 239, 34, 60, 214, 113, 43, 80 } Session ID: {} Cipher Suites: [TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_ECDH_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_MD5, TLS_EMPTY_RENEGOTIATION_INFO_SCSV] Compression Methods: { 0 } Extension elliptic_curves, curve names: {secp256r1, sect163k1, sect163r2, secp192r1, secp224r1, sect233k1, sect233r1, sect283k1, sect283r1, secp384r1, sect409k1, sect409r1, secp521r1, sect571k1, sect571r1, secp160k1, secp160r1, secp160r2, sect163r1, secp192k1, sect193r1, sect193r2, secp224k1, sect239k1, secp256k1} Extension ec_point_formats, formats: [uncompressed] *** [write] MD5 and SHA1 hashes: len = 149 0000: 01 00 00 91 03 01 5A 33 84 F7 3B 16 34 E1 7B 31 ......Z3..;.4..1 0010: 03 28 58 40 B6 61 96 44 62 34 4A 52 AF B8 B5 EF .(X#.a.Db4JR.... 0020: 22 3C D6 71 2B 50 00 00 2A C0 09 C0 13 00 2F C0 "<.q+P..*...../. 0030: 04 C0 0E 00 33 00 32 C0 08 C0 12 00 0A C0 03 C0 ....3.2......... 0040: 0D 00 16 00 13 C0 07 C0 11 00 05 C0 02 C0 0C 00 ................ 0050: 04 00 FF 01 00 00 3E 00 0A 00 34 00 32 00 17 00 ......>...4.2... 0060: 01 00 03 00 13 00 15 00 06 00 07 00 09 00 0A 00 ................ 0070: 18 00 0B 00 0C 00 19 00 0D 00 0E 00 0F 00 10 00 ................ 0080: 11 00 02 00 12 00 04 00 05 00 14 00 08 00 16 00 ................ 0090: 0B 00 02 01 00 ..... http-bio-8080-exec-2, WRITE: TLSv1 Handshake, length = 149 [Raw write]: length = 154 0000: 16 03 01 00 95 01 00 00 91 03 01 5A 33 84 F7 3B ...........Z3..; 0010: 16 34 E1 7B 31 03 28 58 40 B6 61 96 44 62 34 4A .4..1.(X#.a.Db4J 0020: 52 AF B8 B5 EF 22 3C D6 71 2B 50 00 00 2A C0 09 R...."<.q+P..*.. 0030: C0 13 00 2F C0 04 C0 0E 00 33 00 32 C0 08 C0 12 .../.....3.2.... 0040: 00 0A C0 03 C0 0D 00 16 00 13 C0 07 C0 11 00 05 ................ 0050: C0 02 C0 0C 00 04 00 FF 01 00 00 3E 00 0A 00 34 ...........>...4 0060: 00 32 00 17 00 01 00 03 00 13 00 15 00 06 00 07 .2.............. 0070: 00 09 00 0A 00 18 00 0B 00 0C 00 19 00 0D 00 0E ................ 0080: 00 0F 00 10 00 11 00 02 00 12 00 04 00 05 00 14 ................ 0090: 00 08 00 16 00 0B 00 02 01 00 .......... http-bio-8080-exec-2, received EOFException: error http-bio-8080-exec-2, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake http-bio-8080-exec-2 , SEND TLSv1 ALERT: fatal, description = handshake_failure http-bio-8080-exec-2, WRITE: TLSv1 Alert, length = 2 [Raw write]: length = 7 0000: 15 03 01 00 02 02 28 ......( http-bio-8080-exec-2, called closeSocket() http-bio-8080-exec-2, IOException in getSession(): javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake http-bio-8080-exec-2, called close() http-bio-8080-exec-2, called closeInternal(true) http-bio-8080-exec-2, called close() http-bio-8080-exec-2, called closeInternal(true) Exception javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated Finalizer, called close() Finalizer, called closeInternal(true)
The root certificate of your certificate chain was added to the default trust store with Java 8u51. You have to do one of the following tasks: use a new Java version, at least 8u51 allow untrusted certificates in your client add that specific certificate as trusted certificate add that root certificate as trusted root certificate
how to do group by bar plot in plotly in r
I have following dataframe in r name year month volume SSI 2016 01 123 SSI 2016 02 23 SSI 2016 03 1234 SSI 2016 04 1253 SSI 2016 04 144 SSI 2016 05 167 SSII 2016 01 1112 SSII 2016 02 234 SSII 2016 03 154 SSII 2016 04 143 SSII 2016 04 144 SSII 2016 05 167 How I want to plot is on x axis I want all the name and group by year and on y axis volume. How can I do it ion plotly?
I have changed your data to include 2017 year for few records df <- read.table(text = " name year month volume SSI 2016 01 123 SSI 2016 02 23 SSI 2016 03 1234 SSI 2017 04 1253 SSI 2017 04 144 SSI 2017 05 167 SSII 2016 01 1112 SSII 2016 02 234 SSII 2016 03 154 SSII 2017 04 143 SSII 2017 04 144 SSII 2017 05 167", header = T) g <- ggplot(data = df, aes(x = factor(year), y = volume, group = name, fill = name)) + geom_bar(stat = "identity", position = "dodge") ggplotly(g)
GPRS PPP connect failture during LCP negotiation
I did some work to transplant TCP/IP stack to MCU. Through GPRS, MCU can connect internet. However, I met with some trouble during LCP negotiation.The following is my solution referring networking material In order to make MCU PPP simpler.The LCP option request will be respond with rejection. Server:7e ff 03 c0 21 01 01 00 14 02 06 00 00 00 00 05 06 b0 70 9c c3 07 02 08 02 54 06 7e MCU:7e ff 03 c0 21 04 01 00 04 02 06 00 00 00 00 05 06 b0 70 9c c3 07 02 08 02 69 78 7e A authentication request is expected in the second step. But i get a none LCP option request. Server:7e ff 03 c0 21 01 02 00 04 b5 5a 7e This means server forces MCU to start LCP negotiation.I am missing. I send a authentication option request to server so that forcing server to start authentication option negotiation.Server respond me two packets.One is a ACK packet for authentication request.The another still is the none LCP option. MCU:7e ff 03 c0 21 01 05 00 08 03 04 C0 23 ac 56 7e Server:7e ff 03 c0 21 02 05 00 08 03 04 C0 23 bd 34 7e Server:7e ff 03 c0 21 01 02 00 04 b5 5a 7e After several "none option" request, The negotiation over. What should I do? I am l (My english is not good .I hope you can understand my means.)
When you respond with Configure-Reject when modem sends Configure-Request. Then modem will send a new modified Configure-Request. See RFC1661 chapter 6.4. So you should respond with Configure-Ack when Configure-Request contains suitable values for you. So you should send Configure-Ack after the second Configure-Request.