Re: [Dev] ESB 4.9.0 OOM error.
On Tue, Apr 26, 2016 at 4:53 AM, Ajith Vitharana <aji...@wso2.com> wrote: > Hi Chanaka. > > I found something interesting . So I had accidentally configured > uri-template as the endpoint of my API, So after sending one request ESB > will go OOM. I can consistently reproduce this issue. > Seems this is specific to Windows. > Seems this is *not*** specific to Windows. > > > http://ws.apache.org/ns/synapse; name="TestAPI" context=" > */test*"> > > > > >http://x.x.x:8280/test > <http://x.x.x:8280/test>*"/> > > > > > > > > > > > > -Ajith > > On Tue, Apr 26, 2016 at 4:31 AM, Shashika Ubhayaratne <shash...@wso2.com> > wrote: > >> Noted. >> >> Shashika Ubhayaratne >> Associate Technical Lead - QA >> WSO2 Inc: http://www.wso2.com/ >> Mobile: *+94773383831* >> >> On Tue, Apr 26, 2016 at 1:48 PM, Chanaka Fernando <chana...@wso2.com> >> wrote: >> >>> Hi Ajith, >>> >>> Thank you for reporting this issue. We haven't tested ESB 490 with >>> Windows 10 when we were doing the release. We will investigate on this >>> issue. Could you please share the REST API which you have used to test this >>> scenario? >>> >>> @Shashika: Please note this and add this scenario to the testing effort >>> of ESB 5.0.0. >>> >>> On Tue, Apr 26, 2016 at 12:57 PM, Ajith Vitharana <aji...@wso2.com> >>> wrote: >>> >>>> Hi All. >>>> >>>> I tried invoking simple REST API with ESB 4.9.0 vanilla pack on windows >>>> 10 . I sent few request and observed the following error in the logs. >>>> >>>> >>>> TID: [-1234] [] [2016-04-26 03:12:22,669] ERROR >>>> {org.apache.axis2.transport.base.threads.NativeWorkerPool} - Uncaught >>>> exception {org.apache.axis2.transport.base.threads.NativeWorkerPool} >>>> java.lang.OutOfMemoryError: GC overhead limit exceeded >>>> >>>> >>>> ID: [-1234] [] [2016-04-26 03:12:45,434] ERROR >>>> {org.apache.axis2.transport.base.threads.NativeWorkerPool} - Uncaught >>>> exception {org.apache.axis2.transport.base.threads.NativeWorkerPool} >>>> java.lang.NoClassDefFoundError: Could not initialize class >>>> org.apache.synapse.transport.passthru.util.RelayUtils >>>> at >>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72) >>>> at >>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) >>>> at >>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) >>>> at >>>> org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:86) >>>> at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:54) >>>> at >>>> org.apache.synapse.endpoints.AbstractEndpoint.invokeNextFaultHandler(AbstractEndpoint.java:680) >>>> at >>>> org.apache.synapse.endpoints.AbstractEndpoint.onFault(AbstractEndpoint.java:515) >>>> at >>>> org.apache.synapse.endpoints.HTTPEndpoint.onFault(HTTPEndpoint.java:68) >>>> at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:102) >>>> at >>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:259) >>>> at >>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172) >>>> at >>>> org.apache.synapse.transport.passthru.TargetErrorHandler$1.run(TargetErrorHandler.java:139) >>>> at >>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>> >>>> >>>> This is summary of memory analyze: >>>> >>>> 7,379 instances of *"org.apache.synapse.transport.passthru.Pipe"*, >>>> loaded by *"synapse-nhttp-transport"* occupy *244,687,640 (29.45%)* >>>> bytes. >>>> >>>> *Keywords* >>>> synapse-nhttp-transport >>>> org.apache.synapse.transport.passthru.Pipe &
Re: [Dev] ESB 4.9.0 OOM error.
Hi Chanaka. I found something interesting . So I had accidentally configured uri-template as the endpoint of my API, So after sending one request ESB will go OOM. I can consistently reproduce this issue. Seems this is specific to Windows. http://ws.apache.org/ns/synapse; name="TestAPI" context="*/test* "> http://x.x.x:8280/test <http://x.x.x:8280/test>*"/> -Ajith On Tue, Apr 26, 2016 at 4:31 AM, Shashika Ubhayaratne <shash...@wso2.com> wrote: > Noted. > > Shashika Ubhayaratne > Associate Technical Lead - QA > WSO2 Inc: http://www.wso2.com/ > Mobile: *+94773383831* > > On Tue, Apr 26, 2016 at 1:48 PM, Chanaka Fernando <chana...@wso2.com> > wrote: > >> Hi Ajith, >> >> Thank you for reporting this issue. We haven't tested ESB 490 with >> Windows 10 when we were doing the release. We will investigate on this >> issue. Could you please share the REST API which you have used to test this >> scenario? >> >> @Shashika: Please note this and add this scenario to the testing effort >> of ESB 5.0.0. >> >> On Tue, Apr 26, 2016 at 12:57 PM, Ajith Vitharana <aji...@wso2.com> >> wrote: >> >>> Hi All. >>> >>> I tried invoking simple REST API with ESB 4.9.0 vanilla pack on windows >>> 10 . I sent few request and observed the following error in the logs. >>> >>> >>> TID: [-1234] [] [2016-04-26 03:12:22,669] ERROR >>> {org.apache.axis2.transport.base.threads.NativeWorkerPool} - Uncaught >>> exception {org.apache.axis2.transport.base.threads.NativeWorkerPool} >>> java.lang.OutOfMemoryError: GC overhead limit exceeded >>> >>> >>> ID: [-1234] [] [2016-04-26 03:12:45,434] ERROR >>> {org.apache.axis2.transport.base.threads.NativeWorkerPool} - Uncaught >>> exception {org.apache.axis2.transport.base.threads.NativeWorkerPool} >>> java.lang.NoClassDefFoundError: Could not initialize class >>> org.apache.synapse.transport.passthru.util.RelayUtils >>> at >>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72) >>> at >>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) >>> at >>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) >>> at >>> org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:86) >>> at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:54) >>> at >>> org.apache.synapse.endpoints.AbstractEndpoint.invokeNextFaultHandler(AbstractEndpoint.java:680) >>> at >>> org.apache.synapse.endpoints.AbstractEndpoint.onFault(AbstractEndpoint.java:515) >>> at >>> org.apache.synapse.endpoints.HTTPEndpoint.onFault(HTTPEndpoint.java:68) >>> at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:102) >>> at >>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:259) >>> at >>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172) >>> at >>> org.apache.synapse.transport.passthru.TargetErrorHandler$1.run(TargetErrorHandler.java:139) >>> at >>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> >>> >>> This is summary of memory analyze: >>> >>> 7,379 instances of *"org.apache.synapse.transport.passthru.Pipe"*, >>> loaded by *"synapse-nhttp-transport"* occupy *244,687,640 (29.45%)* >>> bytes. >>> >>> *Keywords* >>> synapse-nhttp-transport >>> org.apache.synapse.transport.passthru.Pipe >>> Details » >>> Problem Suspect 2 >>> >>> 7,380 instances of >>> *"org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection"*, >>> loaded by *"synapse-nhttp-transport"* occupy *129,473,928 (15.58%)* >>> bytes. >>> >>> *Keywords* >>> synapse-nhttp-transport >>> org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection >>> Details » >>> Problem Suspect 3 >>> >>> 7,379 instances of >>> *"org.apache.synapse.
[Dev] ESB 4.9.0 OOM error.
Hi All. I tried invoking simple REST API with ESB 4.9.0 vanilla pack on windows 10 . I sent few request and observed the following error in the logs. TID: [-1234] [] [2016-04-26 03:12:22,669] ERROR {org.apache.axis2.transport.base.threads.NativeWorkerPool} - Uncaught exception {org.apache.axis2.transport.base.threads.NativeWorkerPool} java.lang.OutOfMemoryError: GC overhead limit exceeded ID: [-1234] [] [2016-04-26 03:12:45,434] ERROR {org.apache.axis2.transport.base.threads.NativeWorkerPool} - Uncaught exception {org.apache.axis2.transport.base.threads.NativeWorkerPool} java.lang.NoClassDefFoundError: Could not initialize class org.apache.synapse.transport.passthru.util.RelayUtils at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:86) at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:54) at org.apache.synapse.endpoints.AbstractEndpoint.invokeNextFaultHandler(AbstractEndpoint.java:680) at org.apache.synapse.endpoints.AbstractEndpoint.onFault(AbstractEndpoint.java:515) at org.apache.synapse.endpoints.HTTPEndpoint.onFault(HTTPEndpoint.java:68) at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:102) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:259) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172) at org.apache.synapse.transport.passthru.TargetErrorHandler$1.run(TargetErrorHandler.java:139) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) This is summary of memory analyze: 7,379 instances of *"org.apache.synapse.transport.passthru.Pipe"*, loaded by *"synapse-nhttp-transport"* occupy *244,687,640 (29.45%)* bytes. *Keywords* synapse-nhttp-transport org.apache.synapse.transport.passthru.Pipe Details » Problem Suspect 2 7,380 instances of *"org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection"*, loaded by *"synapse-nhttp-transport"* occupy *129,473,928 (15.58%)* bytes. *Keywords* synapse-nhttp-transport org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection Details » Problem Suspect 3 7,379 instances of *"org.apache.synapse.transport.http.conn.LoggingNHttpClientConnection"*, loaded by *"synapse-nhttp-transport"* occupy *127,685,424 (15.37%)* bytes. These instances are referenced from one instance of *"java.lang.Object[]"*, loaded by *""* *Keywords* java.lang.Object[] synapse-nhttp-transport org.apache.synapse.transport.http.conn.LoggingNHttpClientConnection Details » Problem Suspect 4 7,380 instances of *"org.apache.http.nio.util.SimpleOutputBuffer"*, loaded by *"httpcore-nio"* occupy *121,740,480 (14.65%)* bytes. *Keywords* org.apache.http.nio.util.SimpleOutputBuffer httpcore-nio -- Ajith, Ahangama Vitharanalage. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Sample 57 ,58 create from Dev Studio 3.8.0
Hi All, How do we create this configuration from Dev Studio 3.8.0 ? I faced the following issues. 1. Adding dynamicLoadbalance configuration in sample 57? 2. Adding failover="true" and members in sample 58 ? [57] https://docs.wso2.com/display/ESB490/Sample+57%3A+Dynamic+Load+Balancing+between+Three+Nodes [58] https://docs.wso2.com/display/ESB490/Sample+58%3A+Static+Load+Balancing+between+Three+Nodes -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB 4.9.0]NPE when click on "Mediation Statistics" menu.
On Wed, Oct 14, 2015 at 12:26 AM, Viraj Senevirathne <vir...@wso2.com> wrote: > Hi Ajith, > > When did this occur? Normally this happens when you try to access > statistics when statistics collection is not enabled in carbon.xml. > Statistics collector can be enabled by setting element > "StatisticsReporterDisabled" as "false" in > [ESB_HOME]/repository/conf/carbon.xml. > Yes. This happened before enable the statistics. But why it is returning NPE ? -Ajith > > Thank You, > > > > On Tue, Oct 13, 2015 at 10:04 PM, Ajith Vitharana <aji...@wso2.com> wrote: > >> Hi All >> >> I noticed following exception in the carbon logs. >> >> >> [2015-10-13 12:31:50,717] ERROR - RPCMessageReceiver Exception occurred >> while trying to invoke service method getDataForGraph >> java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:606) >> at >> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:178) >> at >> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) >> 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.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) >> at >> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) >> at >> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) >> at >> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) >> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) >> at >> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) >> at >> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) >> at >> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >> at >> org.wso2.carbon.mediation.statistics.stub.MediationStatisticsAdminStub.getDataForGraph(MediationStatisticsAdminStub.java:560) >> at >> org.wso2.carbon.mediation.statistics.ui.client.MediationStatisticsClient.getDataForGraph(MediationStatisticsClient.java:75) >> at >> org.apache.jsp.mediationstats.statistics_005fmain_jsp._jspService(statistics_005fmain_jsp.java:174) >> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) >> at >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) >> at >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) >> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) >> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) >> at >> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) >> 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:727) >> at >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) >> at >> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) >> at >> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604) >
[Dev] [ESB 4.9.0]NPE when click on "Mediation Statistics" menu.
:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error installing publisher feature to G-Reg 5.0.1
:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.feature.mgt.stub.ProvisioningAdminServiceStub.performProvisioningAction(ProvisioningAdminServiceStub.java:1085) at org.wso2.carbon.feature.mgt.ui.ProvisioningAdminClient.performInstallation(ProvisioningAdminClient.java:138) at org.apache.jsp.feature_002dmgt.perform_005finstallation_002dajaxprocessor_jsp._jspService(perform_005finstallation_002dajaxprocessor_jsp.java:107) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) 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:727) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB 4.9.0] Different ESB configs for Message Processor.
Hi Ravindra, On Mon, Oct 12, 2015 at 1:07 AM, Ravindra Ranwala <ravin...@wso2.com> wrote: > Hi Ajith, > > This is not a bug in the MP, rather it is a configuration related issue. > Here a getQuote request is sent which is a classical IN-OUT scenario. > Therefore you are getting a response. If you are getting a response you > need to define a reply sequence at the MP. Otherwise the MP has no way of > handling the response. > Thank you for the explanation. But this information is not available in the doc [1]. Could you please document , then resolve the tickets ? Reply sequence name (message.processor.reply.sequence) The name of the sequence where the message reply should be sent. No [1] https://docs.wso2.com/display/ESB490/Scheduled+Message+Forwarding+Processor -Ajith > Please define a simple reply sequence and point the MP to that. Also > create a Documentation issue to include it in our documentation [1]. Also I > guess we can resolve the jira issue [2] since it is not a bug in ESB, > rather a documentation issue. > > A sample reply sequence config is given below. > > > > http://ws.apache.org/ns/synapse; name="replySequence"> > > > > > > > > > > > > [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber > [2] https://wso2.org/jira/browse/ESBJAVA-4263 > > > Thanks & Regards, > > On Sun, Oct 11, 2015 at 3:26 AM, Ajith Vitharana <aji...@wso2.com> wrote: > >> Hi All. >> >> Created JIRAs for above issues. >> >> [1] https://wso2.org/jira/browse/DOCUMENTATION-2524 >> [2] https://wso2.org/jira/browse/ESBJAVA-4263 >> >> -Ajith >> >> On Wed, Oct 7, 2015 at 12:48 AM, Ajith Vitharana <aji...@wso2.com> wrote: >> >>> >>> >>> On Wed, Oct 7, 2015 at 12:43 AM, Yasassri Ratnayake <yasas...@wso2.com> >>> wrote: >>> >>>> According to [1] "*The deactivate sequence that will be executed when >>>> the processor is deactivated automatically. Automatic deactivation occurs >>>> when the maximum delivery attempts is exceeded and the Drop message after >>>> maximum delivery attempts parameter is disabled.*" >>>> >>>> [1] - https://docs.wso2.com/display/ESB490/Message+Forwarding+Processor >>>> >>> >>> >>> The backed is available *BEFORE* exceed the max delivery attempts. But >>> still message processor going to deactivate ? >>> >>> -Ajith >>> >>>> >>>> On Wed, Oct 7, 2015 at 10:06 AM, Ajith Vitharana <aji...@wso2.com> >>>> wrote: >>>> >>>>> Other issue is, >>>>> >>>>> 1. According to the sample I'm shutting down the backend-1 and send a >>>>> request. >>>>> 2. Now I can see the message store has one message. >>>>> 3. Before 50 delivery attempts , start the backend-1 >>>>> 4. Now I can see the message processor executed and message delivered >>>>> to backed-1 >>>>> >>>>> But just after sending the message, the message processor going to >>>>> deactivate state and printing following exception. >>>>> >>>>> [2015-10-07 00:25:03,987] WARN - ForwardingService Failed to send the >>>>> message through the fault sequence. Sequence name does not Exist. >>>>> *[2015-10-07 00:25:05,335] WARN - ForwardingService Failed to send >>>>> the message through the deactivate sequence. Sequence name does not >>>>> Exist.* >>>>> [2015-10-07 00:25:05,340] INFO - ScheduledMessageProcessor >>>>> Successfully deactivated the message processor [send_pending_message] >>>>> *[2015-10-07 00:25:05,341] ERROR - ForwardingService Failed to send >>>>> the out message. Reply sequence does not Exist. Deactivated the message >>>>> processor* >>>>> >>>>> >>>>> 1. According to the WARN log , what is the deactivate sequence should >>>>> define ? >>>>> 2. Why message processor is deactivate just after sending message to >>>>> back end ? >>>>> >>>>> -Ajith >>>>> >>>>> >>>>> On Tue, Oct 6, 2015 at 11:39 PM, Ajith Vitharana <aji...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi Yasassri. >>>>>> >>>>>> Yes. According to the carbon commits it has renamed. Then those >>>>
Re: [Dev] [ESB 4.9.0] Different ESB configs for Message Processor.
Hi All. Created JIRAs for above issues. [1] https://wso2.org/jira/browse/DOCUMENTATION-2524 [2] https://wso2.org/jira/browse/ESBJAVA-4263 -Ajith On Wed, Oct 7, 2015 at 12:48 AM, Ajith Vitharana <aji...@wso2.com> wrote: > > > On Wed, Oct 7, 2015 at 12:43 AM, Yasassri Ratnayake <yasas...@wso2.com> > wrote: > >> According to [1] "*The deactivate sequence that will be executed when >> the processor is deactivated automatically. Automatic deactivation occurs >> when the maximum delivery attempts is exceeded and the Drop message after >> maximum delivery attempts parameter is disabled.*" >> >> [1] - https://docs.wso2.com/display/ESB490/Message+Forwarding+Processor >> > > > The backed is available *BEFORE* exceed the max delivery attempts. But > still message processor going to deactivate ? > > -Ajith > >> >> On Wed, Oct 7, 2015 at 10:06 AM, Ajith Vitharana <aji...@wso2.com> wrote: >> >>> Other issue is, >>> >>> 1. According to the sample I'm shutting down the backend-1 and send a >>> request. >>> 2. Now I can see the message store has one message. >>> 3. Before 50 delivery attempts , start the backend-1 >>> 4. Now I can see the message processor executed and message delivered >>> to backed-1 >>> >>> But just after sending the message, the message processor going to >>> deactivate state and printing following exception. >>> >>> [2015-10-07 00:25:03,987] WARN - ForwardingService Failed to send the >>> message through the fault sequence. Sequence name does not Exist. >>> *[2015-10-07 00:25:05,335] WARN - ForwardingService Failed to send the >>> message through the deactivate sequence. Sequence name does not Exist.* >>> [2015-10-07 00:25:05,340] INFO - ScheduledMessageProcessor Successfully >>> deactivated the message processor [send_pending_message] >>> *[2015-10-07 00:25:05,341] ERROR - ForwardingService Failed to send the >>> out message. Reply sequence does not Exist. Deactivated the message >>> processor* >>> >>> >>> 1. According to the WARN log , what is the deactivate sequence should >>> define ? >>> 2. Why message processor is deactivate just after sending message to >>> back end ? >>> >>> -Ajith >>> >>> >>> On Tue, Oct 6, 2015 at 11:39 PM, Ajith Vitharana <aji...@wso2.com> >>> wrote: >>> >>>> Hi Yasassri. >>>> >>>> Yes. According to the carbon commits it has renamed. Then those configs >>>> never tested after 2012 :) >>>> >>>> [1] https://wso2.org/jira/browse/CARBON-13114 >>>> >>>> -Ajith >>>> >>>> >>>> Author: ishan >>>> Date: Fri Jun 15 02:00:53 2012 >>>> New Revision: 130164 >>>> URL: http://wso2.org/svn/browse/wso2?view=rev=130164 >>>> >>>> Log: >>>> Fixing CARBON-13114 with the patch of CharithaM. >>>> >>>> Modified: >>>>carbon/platform/trunk/components/mediation/message- >>>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>>> resources/org/wso2/carbon/message/processor/ui/i18n/ >>>> Resources.properties >>>>carbon/platform/trunk/components/mediation/message- >>>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>>> resources/web/message_processor/index.jsp >>>>carbon/platform/trunk/components/mediation/message- >>>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>>> resources/web/message_processor/manageMessageForwardingProcessor.jsp >>>> >>>> Modified: carbon/platform/trunk/components/mediation/message- >>>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>>> resources/org/wso2/carbon/message/processor/ui/i18n/ >>>> Resources.properties >>>> URL: >>>> http://wso2.org/svn/browse/wso2/carbon/platform/trunk/components/mediation/message-processor/org.wso2.carbon.message.processor.ui/src/main/resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties?rev=130164=130163=130164=diff >>>> >>>> == >>>> --- carbon/platform/trunk/components/mediation/message- >>>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>>> resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties >>>> (original) >>>> ++
Re: [Dev] [ESB 4.9.0] Different ESB configs for Message Processor.
Other issue is, 1. According to the sample I'm shutting down the backend-1 and send a request. 2. Now I can see the message store has one message. 3. Before 50 delivery attempts , start the backend-1 4. Now I can see the message processor executed and message delivered to backed-1 But just after sending the message, the message processor going to deactivate state and printing following exception. [2015-10-07 00:25:03,987] WARN - ForwardingService Failed to send the message through the fault sequence. Sequence name does not Exist. *[2015-10-07 00:25:05,335] WARN - ForwardingService Failed to send the message through the deactivate sequence. Sequence name does not Exist.* [2015-10-07 00:25:05,340] INFO - ScheduledMessageProcessor Successfully deactivated the message processor [send_pending_message] *[2015-10-07 00:25:05,341] ERROR - ForwardingService Failed to send the out message. Reply sequence does not Exist. Deactivated the message processor* 1. According to the WARN log , what is the deactivate sequence should define ? 2. Why message processor is deactivate just after sending message to back end ? -Ajith On Tue, Oct 6, 2015 at 11:39 PM, Ajith Vitharana <aji...@wso2.com> wrote: > Hi Yasassri. > > Yes. According to the carbon commits it has renamed. Then those configs > never tested after 2012 :) > > [1] https://wso2.org/jira/browse/CARBON-13114 > > -Ajith > > > Author: ishan > Date: Fri Jun 15 02:00:53 2012 > New Revision: 130164 > URL: http://wso2.org/svn/browse/wso2?view=rev=130164 > > Log: > Fixing CARBON-13114 with the patch of CharithaM. > > Modified: >carbon/platform/trunk/components/mediation/message- > processor/org.wso2.carbon.message.processor.ui/src/main/ > resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties >carbon/platform/trunk/components/mediation/message- > processor/org.wso2.carbon.message.processor.ui/src/main/ > resources/web/message_processor/index.jsp >carbon/platform/trunk/components/mediation/message- > processor/org.wso2.carbon.message.processor.ui/src/main/ > resources/web/message_processor/manageMessageForwardingProcessor.jsp > > Modified: carbon/platform/trunk/components/mediation/message- > processor/org.wso2.carbon.message.processor.ui/src/main/ > resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties > URL: > http://wso2.org/svn/browse/wso2/carbon/platform/trunk/components/mediation/message-processor/org.wso2.carbon.message.processor.ui/src/main/resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties?rev=130164=130163=130164=diff > > == > --- carbon/platform/trunk/components/mediation/message- > processor/org.wso2.carbon.message.processor.ui/src/main/ > resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties > (original) > +++ carbon/platform/trunk/components/mediation/message- > processor/org.wso2.carbon.message.processor.ui/src/main/ > resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties > Fri Jun 15 02:00:53 2012 > @@ -24,7 +24,9 @@ > size=Size > action=Actions > deactivate=Deactivate > -activate=activate > +activate=Activate > +inactive=Inactive > +active=Active > no.messageProcessors.are.currently.defined=No Message Processors are > currently defined. > message.Processor= Message Processor > name=Name > @@ -104,7 +106,7 @@ > message.sampling.processor.parameters=Message Sampling Processor > Parameters > message.context.properties=Message Context Properties > interval=Message retry interval (Millis) > > > *-max.deliver.attempts=Maximum delivery > attempts+max.delivery.attempts=Maximum delivery attempts* > axis2.repo=Axis2 Client repository > axis2.config=Axis2 Configuration > message.processor.reply.sequence=Reply sequence name > @@ -112,4 +114,4 @@ > quartz.conf=Quartz configuration file path > cronExpression=Cron Expression > target.endpoint=Address Endpoint name > -out_only=Out-only message > \ No newline at end of file > +out_only=Out-only message > > Modified: carbon/platform/trunk/components/mediation/message- > processor/org.wso2.carbon.message.processor.ui/src/main/ > resources/web/message_processor/index.jsp > URL: > http://wso2.org/svn/browse/wso2/carbon/platform/trunk/components/mediation/message-processor/org.wso2.carbon.message.processor.ui/src/main/resources/web/message_processor/index.jsp?rev=130164=130163=130164=diff > > == > --- carbon/platform/trunk/components/mediation/message- > processor/org.wso2.carbon.message.processor.ui/src/main/ > resources/web/message_processor/index.jsp(original) > +++
Re: [Dev] [ESB 4.9.0] Different ESB configs for Message Processor.
On Wed, Oct 7, 2015 at 12:43 AM, Yasassri Ratnayake <yasas...@wso2.com> wrote: > According to [1] "*The deactivate sequence that will be executed when > the processor is deactivated automatically. Automatic deactivation occurs > when the maximum delivery attempts is exceeded and the Drop message after > maximum delivery attempts parameter is disabled.*" > > [1] - https://docs.wso2.com/display/ESB490/Message+Forwarding+Processor > The backed is available *BEFORE* exceed the max delivery attempts. But still message processor going to deactivate ? -Ajith > > On Wed, Oct 7, 2015 at 10:06 AM, Ajith Vitharana <aji...@wso2.com> wrote: > >> Other issue is, >> >> 1. According to the sample I'm shutting down the backend-1 and send a >> request. >> 2. Now I can see the message store has one message. >> 3. Before 50 delivery attempts , start the backend-1 >> 4. Now I can see the message processor executed and message delivered >> to backed-1 >> >> But just after sending the message, the message processor going to >> deactivate state and printing following exception. >> >> [2015-10-07 00:25:03,987] WARN - ForwardingService Failed to send the >> message through the fault sequence. Sequence name does not Exist. >> *[2015-10-07 00:25:05,335] WARN - ForwardingService Failed to send the >> message through the deactivate sequence. Sequence name does not Exist.* >> [2015-10-07 00:25:05,340] INFO - ScheduledMessageProcessor Successfully >> deactivated the message processor [send_pending_message] >> *[2015-10-07 00:25:05,341] ERROR - ForwardingService Failed to send the >> out message. Reply sequence does not Exist. Deactivated the message >> processor* >> >> >> 1. According to the WARN log , what is the deactivate sequence should >> define ? >> 2. Why message processor is deactivate just after sending message to back >> end ? >> >> -Ajith >> >> >> On Tue, Oct 6, 2015 at 11:39 PM, Ajith Vitharana <aji...@wso2.com> wrote: >> >>> Hi Yasassri. >>> >>> Yes. According to the carbon commits it has renamed. Then those configs >>> never tested after 2012 :) >>> >>> [1] https://wso2.org/jira/browse/CARBON-13114 >>> >>> -Ajith >>> >>> >>> Author: ishan >>> Date: Fri Jun 15 02:00:53 2012 >>> New Revision: 130164 >>> URL: http://wso2.org/svn/browse/wso2?view=rev=130164 >>> >>> Log: >>> Fixing CARBON-13114 with the patch of CharithaM. >>> >>> Modified: >>>carbon/platform/trunk/components/mediation/message- >>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>> resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties >>>carbon/platform/trunk/components/mediation/message- >>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>> resources/web/message_processor/index.jsp >>>carbon/platform/trunk/components/mediation/message- >>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>> resources/web/message_processor/manageMessageForwardingProcessor.jsp >>> >>> Modified: carbon/platform/trunk/components/mediation/message- >>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>> resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties >>> URL: >>> http://wso2.org/svn/browse/wso2/carbon/platform/trunk/components/mediation/message-processor/org.wso2.carbon.message.processor.ui/src/main/resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties?rev=130164=130163=130164=diff >>> >>> == >>> --- carbon/platform/trunk/components/mediation/message- >>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>> resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties >>> (original) >>> +++ carbon/platform/trunk/components/mediation/message- >>> processor/org.wso2.carbon.message.processor.ui/src/main/ >>> resources/org/wso2/carbon/message/processor/ui/i18n/Resources.properties >>> Fri Jun 15 02:00:53 2012 >>> @@ -24,7 +24,9 @@ >>> size=Size >>> action=Actions >>> deactivate=Deactivate >>> -activate=activate >>> +activate=Activate >>> +inactive=Inactive >>> +active=Active >>> no.messageProcessors.are.currently.defined=No Message Processors are >>> currently defined. >>> message.Processor= Message Processor >>>
Re: [Dev] [ESB 4.9.0] Different ESB configs for Message Processor.
on.message.processor.ui/src/main/resources/web/message_processor/manageMessageForwardingProcessor.jsp?rev=130164=130163=130164=diff == --- carbon/platform/trunk/components/mediation/message- processor/org.wso2.carbon.message.processor.ui/src/main/ resources/web/message_processor/manageMessageForwardingProcessor.jsp (original) +++ carbon/platform/trunk/components/mediation/message- processor/org.wso2.carbon.message.processor.ui/src/main/ resources/web/message_processor/manageMessageForwardingProcessor.jsp Fri Jun 15 02:00:53 2012 @@ -92,7 +92,7 @@ function addServiceParams() { addServiceParameter("interval", document.getElementById(' retry_interval').value); -addServiceParameter("max.deliver.attempts", document.getElementById('max_delivery_attempts').value); +addServiceParameter("max.delivery.attempts", document.getElementById('max_delivery_attempts').value); addServiceParameter("axis2.repo", document.getElementById(' axis2_repo').value); addServiceParameter("axis2.config", document.getElementById(' axis2_config').value); addServiceParameter("message.processor.reply.sequence", document.getElementById('message_processor_reply_sequence').value); @@ -292,10 +292,10 @@ - + " +&& !processorData.getParams(). isEmpty()&&(processorData.getParams().get("max.delivery.attempts")!=null))? processorData.getParams().get("max.delivery.attempts"):""%>" /> ___ Commits mailing list comm...@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/commits On Tue, Oct 6, 2015 at 11:28 PM, Yasassri Ratnayake <yasas...@wso2.com> wrote: > Hi Ajith, > > It seems the configs are not correct in the sample, Also in your second > step the parameter name is * name="max.delivery.attempts">4 *which is correct, but in the > sample the Property is given * name="max.deliver.attempts">50. *This must be causing the > inconsistent behavior. > > With Regards, > > On Wed, Oct 7, 2015 at 8:27 AM, Ajith Vitharana <aji...@wso2.com> wrote: > >> Hi All, >> >> I updated source view from the configuration mentioned in sample [1]. >> >> i) When I double check the message processor configs from source view, I >> noticed same config as the sample (expected behavior). >> >> > class="org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor" >> messageStore="*pending_subscriptions*" name="send_pending_message" >> targetEndpoint="DurableSubscriberEndpoint"> >> 1000 >> false >> > name="target.endpoint">DurableSubscriberEndpoint >> *50* >> >> >> ii) When I go to the "Message Processors" UI and edit the config (wrong >> configurations) >> >> > class="org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor" >> targetEndpoint="DurableSubscriberEndpoint" messageStore=" >> *pending_subscriptions*" xmlns="http://ws.apache.org/ns/synapse;> >>1000 >>1000 >> * 4* >>true >>Disabled >>1 >> >> >> iii) According to the sample , I noticed the message processor is >> deactivating after the 4 attempts, that means the second config executing >> at mediation. >> >> >> iv) When I check the file in synapse-configs/default/message-processors >> that is updated with my new configs. >> >> >> http://ws.apache.org/ns/synapse; >> >> class="org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor" >> name="*send_pending_message*" >> targetEndpoint="DurableSubscriberEndpoint" >> messageStore="pending_subscriptions"> >>1000 >>false >>DurableSubscriberEndpoint >> * 50* >> >> >> >> [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber >> >> -- >> Ajith Vitharana. >> >> WSO2 Inc. - http://wso2.com >> Email : aji...@wso2.com >> Blog: http://vitharana.org >> Mobile : +1-812-360-5335 >> >> > > > -- > Yasassri Ratnayake > Software Engineer - QA > WSO2 Inc ; http://wso2.com > lean.enterprise.middleware > *Mobile : +94715933168 <%2B94715933168>* > *Blogs : http://yasassriratnayake.blogspot.com > <http://yasassriratnayake.blogspot.com/>* > *http://wso2logs.blogspot.com <http://wso2logs.blogspot.com>* > -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [ESB 4.9.0] Different ESB configs for Message Processor.
Hi All, I updated source view from the configuration mentioned in sample [1]. i) When I double check the message processor configs from source view, I noticed same config as the sample (expected behavior). 1000 false DurableSubscriberEndpoint *50* ii) When I go to the "Message Processors" UI and edit the config (wrong configurations) http://ws.apache.org/ns/synapse;> 1000 1000 * 4* true Disabled 1 iii) According to the sample , I noticed the message processor is deactivating after the 4 attempts, that means the second config executing at mediation. iv) When I check the file in synapse-configs/default/message-processors that is updated with my new configs. http://ws.apache.org/ns/synapse; class="org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor" name="*send_pending_message*" targetEndpoint="DurableSubscriberEndpoint" messageStore="pending_subscriptions"> 1000 false DurableSubscriberEndpoint * 50* [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] NPE with EIP guide sample.
On Tue, Oct 6, 2015 at 9:31 AM, Chanaka Fernando <chana...@wso2.com> wrote: > Hi Ajith, > > I have already added a fix to the NPE and currently testing that. Just > wanted to let you know that this is happening due to a configuration issue. > The code was written assuming that this NPE cannot occur in proper > configurations. But there can be some edge cases where this can become > null. I am currently investigating on those. > Thanks Chanaka ! -Ajith > > On Tue, Oct 6, 2015 at 6:52 PM, Ajith Vitharana <aji...@wso2.com> wrote: > >> >> >> On Tue, Oct 6, 2015 at 5:06 AM, Chanaka Fernando <chana...@wso2.com> >> wrote: >> >>> Hi Ajith, >>> >>> The scenario which you have tested is not correct. If you put >>> mediator in the outSequence, since you are cloning the request and send to >>> 2 back ends, ESB will get 2 responses and tries to send back 2 responses to >>> client and that is causing this exception. What happens is that ESB will >>> send back the first response and then release the connection. When it tries >>> to send back the 2nd response, If some other thread has already reused that >>> connection, the "request" will be null and that is causing the NPE. >>> >>> If you are putting a mediator in the outSequence, make sure you >>> aggregate the responses before sending the response back. >>> >> >> Yes. I understood the logic. But my concerns was returning NPE. >> >> -Ajith >> >>> >>> On Mon, Oct 5, 2015 at 9:23 PM, Ajith Vitharana <aji...@wso2.com> wrote: >>> >>>> >>>> >>>> On Mon, Oct 5, 2015 at 5:59 AM, Chanaka Fernando <chana...@wso2.com> >>>> wrote: >>>> >>>>> Hi Ajith, >>>>> >>>>> We have already identified this issue and currently working on a fix. >>>>> Thanks for reporting this issue. >>>>> >>>> >>>> Thanks for looking to this. >>>> >>>> -Ajith >>>> >>>>> >>>>> On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana <aji...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi All >>>>>> >>>>>> I did a slight change to sample [1] (used instead of >>>>>> at the outSequence) , now I'm getting following exception. >>>>>> >>>>>> [1] >>>>>> https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber >>>>>> >>>>>> >>>>>> >>>>>> [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]" >>>>>> [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to >>>>>> submit the response >>>>>> j*ava.lang.NullPointerException* >>>>>> * at >>>>>> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)* >>>>>> * at >>>>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)* >>>>>> * at >>>>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)* >>>>>> * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)* >>>>>> at >>>>>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212) >>>>>> at >>>>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444) >>>>>> at >>>>>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102) >>>>>> at >>>>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81) >>>>>> at >>>>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) >>>>>> at >>>>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) >>>>>> at >>>>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297) >>>>>> at >>>>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529) >>>>>> at >>>>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receiv
Re: [Dev] [ESB] NPE with EIP guide sample.
On Tue, Oct 6, 2015 at 5:06 AM, Chanaka Fernando <chana...@wso2.com> wrote: > Hi Ajith, > > The scenario which you have tested is not correct. If you put > mediator in the outSequence, since you are cloning the request and send to > 2 back ends, ESB will get 2 responses and tries to send back 2 responses to > client and that is causing this exception. What happens is that ESB will > send back the first response and then release the connection. When it tries > to send back the 2nd response, If some other thread has already reused that > connection, the "request" will be null and that is causing the NPE. > > If you are putting a mediator in the outSequence, make sure you > aggregate the responses before sending the response back. > Yes. I understood the logic. But my concerns was returning NPE. -Ajith > > On Mon, Oct 5, 2015 at 9:23 PM, Ajith Vitharana <aji...@wso2.com> wrote: > >> >> >> On Mon, Oct 5, 2015 at 5:59 AM, Chanaka Fernando <chana...@wso2.com> >> wrote: >> >>> Hi Ajith, >>> >>> We have already identified this issue and currently working on a fix. >>> Thanks for reporting this issue. >>> >> >> Thanks for looking to this. >> >> -Ajith >> >>> >>> On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana <aji...@wso2.com> >>> wrote: >>> >>>> Hi All >>>> >>>> I did a slight change to sample [1] (used instead of at >>>> the outSequence) , now I'm getting following exception. >>>> >>>> [1] >>>> https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber >>>> >>>> >>>> >>>> [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]" >>>> [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to >>>> submit the response >>>> j*ava.lang.NullPointerException* >>>> * at >>>> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)* >>>> * at >>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)* >>>> * at >>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)* >>>> * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)* >>>> at >>>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212) >>>> at >>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444) >>>> at >>>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102) >>>> at >>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81) >>>> at >>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) >>>> at >>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) >>>> at >>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297) >>>> at >>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529) >>>> at >>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172) >>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >>>> at >>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247) >>>> at >>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>> at java.lang.Thread.run(Thread.java:745) >>>> [2015-10-04 15:19:30,894] ERROR - Axis2Sender >>>> Content-Type:application/soap+xml; charset=UTF-8; >>>> action="urn:getQuoteResponse",>>> encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;> >>>> Unexpected error sending message back >>>> org.apache.axis2.AxisFault: Failed to submit the response >>>> at >>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610) >>>> at >>>> org.apache.synapse.tran
Re: [Dev] [ESB] NPE with EIP guide sample.
On Mon, Oct 5, 2015 at 5:59 AM, Chanaka Fernando <chana...@wso2.com> wrote: > Hi Ajith, > > We have already identified this issue and currently working on a fix. > Thanks for reporting this issue. > Thanks for looking to this. -Ajith > > On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana <aji...@wso2.com> wrote: > >> Hi All >> >> I did a slight change to sample [1] (used instead of at >> the outSequence) , now I'm getting following exception. >> >> [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber >> >> >> >> [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]" >> [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to submit >> the response >> j*ava.lang.NullPointerException* >> * at >> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)* >> * at >> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)* >> * at >> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)* >> * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)* >> at >> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212) >> at >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444) >> at >> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) >> at >> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) >> at >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297) >> at >> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529) >> at >> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172) >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >> at >> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247) >> at >> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:745) >> [2015-10-04 15:19:30,894] ERROR - Axis2Sender >> Content-Type:application/soap+xml; charset=UTF-8; >> action="urn:getQuoteResponse",> encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;> >> Unexpected error sending message back >> org.apache.axis2.AxisFault: Failed to submit the response >> at >> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610) >> at >> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269) >> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) >> at >> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212) >> at >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444) >> at >> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48) >> at >> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149) >> at >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297) >> at >> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529) >> at >> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172) >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >> at >> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247) >> at >> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExec
Re: [Dev] [ESB-4.9.0]NPE at save configuration
Please removefrom sub1_fails sequence. -Ajith On Sun, Oct 4, 2015 at 11:44 PM, Nirdesha Munasinghe <nirde...@wso2.com> wrote: > Hi Ajith, > > Thanks for the info. I made the suggested edits. > > Cheers, > -Nirdesha > > On Mon, Oct 5, 2015 at 2:59 AM, Ajith Vitharana <aji...@wso2.com> wrote: > >> While debugging found that task manager is not initialize. This is due to >> outdated configurations. The EIP sample should be updated with following >> configuration changes. >> >> 1. add > "org.wso2.carbon.mediation.ntask.NTaskTaskManager"/> >> 2. class should be org.apache.synapse.message.processor.*impl* >> .forwarder.ScheduledMessageForwardingProcessor >> 3. target.endpoint parameter is missing in messageProcessor >> configurations. >> >> [1] >> https://docs.wso2.com/display/ESB490/Sample+702%3A+Introduction+to+Message+Forwarding+Processor >> >> -Ajith >> >> On Sun, Oct 4, 2015 at 3:54 PM, Ajith Vitharana <aji...@wso2.com> wrote: >> >>> Hi All, >>> >>> First I replaced the source view from the configuration [1] and it >>> worked. Then I just click on update button. Now each time getting this NPE. >>> >>> [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber >>> >>> >>> [2015-10-04 15:50:36,869] ERROR - ConfigAdmin Error while updating the >>> Synapse configuration >>> j*ava.lang.NullPointerException* >>> * at >>> org.apache.synapse.message.processor.impl.ScheduledMessageProcessor.destroy(ScheduledMessageProcessor.java:309)* >>> at >>> org.wso2.carbon.mediation.configadmin.ConfigurationUpdater.cleanupCurrentConfiguration(ConfigurationUpdater.java:202) >>> at >>> org.wso2.carbon.mediation.configadmin.ConfigurationUpdater.update(ConfigurationUpdater.java:130) >>> at >>> org.wso2.carbon.mediation.configadmin.ConfigAdmin.updateConfiguration(ConfigAdmin.java:150) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:606) >>> at >>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) >>> at >>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) >>> 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.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) >>> at >>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) >>> at >>> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) >>> at >>> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) >>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) >>> at >>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) >>> at >>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) >>> at >>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >>> at >>> org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration(ConfigServiceAdminStub.java:1340) >>> at >>> org.wso2.carbon.mediation.configadmin.ui.ConfigManagementClient.updateConfiguration(ConfigManagementClient.java:98) >>> at >>> org.apache.jsp.configadmin.saveconfig_jsp._jspService(saveconfig_jsp.java:169) >>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) >>> at >>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) >>> at >>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) >>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) >>> at javax.servlet.http.HttpServlet.service(HttpServ
Re: [Dev] [ESB-4.9.0]NPE at save configuration
While debugging found that task manager is not initialize. This is due to outdated configurations. The EIP sample should be updated with following configuration changes. 1. add 2. class should be org.apache.synapse.message.processor.*impl* .forwarder.ScheduledMessageForwardingProcessor 3. target.endpoint parameter is missing in messageProcessor configurations. [1] https://docs.wso2.com/display/ESB490/Sample+702%3A+Introduction+to+Message+Forwarding+Processor -Ajith On Sun, Oct 4, 2015 at 3:54 PM, Ajith Vitharana <aji...@wso2.com> wrote: > Hi All, > > First I replaced the source view from the configuration [1] and it worked. > Then I just click on update button. Now each time getting this NPE. > > [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber > > > [2015-10-04 15:50:36,869] ERROR - ConfigAdmin Error while updating the > Synapse configuration > j*ava.lang.NullPointerException* > * at > org.apache.synapse.message.processor.impl.ScheduledMessageProcessor.destroy(ScheduledMessageProcessor.java:309)* > at > org.wso2.carbon.mediation.configadmin.ConfigurationUpdater.cleanupCurrentConfiguration(ConfigurationUpdater.java:202) > at > org.wso2.carbon.mediation.configadmin.ConfigurationUpdater.update(ConfigurationUpdater.java:130) > at > org.wso2.carbon.mediation.configadmin.ConfigAdmin.updateConfiguration(ConfigAdmin.java:150) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) > at > org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) > 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.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) > at > org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) > at > org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) > at > org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) > at > org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration(ConfigServiceAdminStub.java:1340) > at > org.wso2.carbon.mediation.configadmin.ui.ConfigManagementClient.updateConfiguration(ConfigManagementClient.java:98) > at > org.apache.jsp.configadmin.saveconfig_jsp._jspService(saveconfig_jsp.java:169) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) > at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > at > org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) > 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:727) > at > org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.apache.catalina.co
[Dev] [ESB] NPE with EIP guide sample.
2.650295806384626-152.04270426044403154.1916889021466Sun Oct 04 15:19:30 EDT 2015158.836759949930154.917881726394041E7foo Company158.0551704762858-17.103421338244331.6236826882815951-142.89902112648588foo15263 [2015-10-04 15:21:30,364] WARN - SourceHandler Connection time out after request is read: http-incoming-10 -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [ESB-4.9.0]NPE at save configuration
(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error starting G-Reg 5.0.0
Hi All When I restart the server , I'm getting following exception. [2015-09-29 14:12:23,171] INFO {org.apache.catalina.startup.TaglibUriRule} - TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined !ENTRY org.eclipse.equinox.ds 2 0 2015-09-29 14:12:33.310 !MESSAGE Getting a lock required more than 1 ms. There might be a synchronization problem in this callstack or just the build/dispose process of some components took too long! !STACK 0 java.lang.Exception: Debug stacktrace at org.eclipse.equinox.internal.ds.InstanceProcess.getLock(InstanceProcess.java:120) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:159) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) -Ajith On Tue, Sep 29, 2015 at 2:13 PM, Ajith Vitharana <aji...@wso2.com> wrote: > Hi All, > > I got the following exception when starting a fresh G-Reg 5.0.0 pack. > > > !ENTRY org.eclipse.equinox.ds 4 0 2015-09-29 14:09:31.553 > !MESSAGE [SCR] Exception while activating instance > org.wso2.carbon.identity.application.authentication.framework.internal.FrameworkServiceComponent@72a4e728 > of component identity.application.authentication.framework.component > !STACK 0 > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) > at > org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) > at > org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) > at > org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) > at > org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) > at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) > at > org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) > at > org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) > at > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
Re: [Dev] APIM- Gateway environments
If you have created the API from APIM1 , then API meta data has stored in APIM1 databases (registry and AM db). AFAIU you need to share the databases (registry and AM db) with APIM2 -Ajith On Tue, Sep 22, 2015 at 4:04 PM, Udara Liyanage <ud...@wso2.com> wrote: > Hi, > > [1] I am trying to do what described in [1]. I have two APIMs in two > regions. > > In APIM1 , I added second APIM as an environment. > > > Gateway B > https://apim2.com:9443/services/ > > admin > admin > http://apim2.com:8280, > https://apim2.com:8243 > > > > In APIM2 , I pointed APIM as the Key manager. > > > https://apim1:9443/services/ > admin > admin > > Now when I create an API in APIM, artifacts are successfully published to > APIM2 too as expected. I manually check the artifacts and both has the same > API artifacts. > > Then I tried accessing the API from APIM1 which got succeeded. > However when I try to access the API from APIM2, I get the following error > message > > *No matching resource found in the API for the given > requestAccess failure for API: /sample/v1, > version: v1 with key: c0dca4351fa3f074cd52a6087409743. Check the API > documentation and add a proper REST resource path to the invocation URL* > > *[1] * > https://docs.wso2.com/display/AM170/Maintaining+Separate+Production+and+Sandbox+Gateways > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Log Error with SolrClient when parsing date
"Mon Sep 14 10:45:53 EDT 2015" > [2015-09-14 10:46:34,261] ERROR > {org.wso2.carbon.registry.indexing.solr.SolrClient} - Error when passing > date to create solr date format.java.text.ParseException: Unparseable date: > "Mon Sep 14 10:45:53 EDT 2015" > [2015-09-14 10:46:34,261] ERROR > {org.wso2.carbon.registry.indexing.solr.SolrClient} - Error when passing > date to create solr date format.java.text.ParseException: Unparseable date: > "Mon Sep 14 10:45:53 EDT 2015" > [2015-09-14 10:46:34,261] ERROR > {org.wso2.carbon.registry.indexing.solr.SolrClient} - Error when passing > date to create solr date format.java.text.ParseException: Unparseable date: > "Mon Sep 14 10:45:53 EDT 2015" > [2015-09-14 10:46:34,260] ERROR > {org.wso2.carbon.registry.indexing.solr.SolrClient} - Error when passing > date to create solr date format.java.text.ParseException: Unparseable date: > "Mon Sep 14 10:45:53 EDT 2015" > [2015-09-14 10:46:34,260] ERROR > {org.wso2.carbon.registry.indexing.solr.SolrClient} - Error when passing > date to create solr date format.java.text.ParseException: Unparseable date: > "Mon Sep 14 10:45:53 EDT 2015" > [2015-09-14 10:46:34,260] ERROR > {org.wso2.carbon.registry.indexing.solr.SolrClient} - Error when passing > date to create solr date format.java.text.ParseException: Unparseable date: > "Mon Sep 14 10:45:53 EDT 2015" > > Regards, >Jorge. > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GREG 5.0.0]Error at graceful restart
This is not solr related thing. According to the stack trace human task scheduler jobs are not properly terminate with the server shutdown. -Ajith On Wed, Sep 16, 2015 at 1:02 AM, Chalitha Waldeniyage <chali...@wso2.com> wrote: > Hi Ajith, > > We have observed the same issue reported in [1] .But this was resolved > after changing the configs in Event broker.xml and cleaning the external > solar data. But not sure it was the cause though. > In additional to this it was reported in [2] as well. > > [1] https://wso2.org/jira/browse/REGISTRY-2762 > > [2] https://wso2.org/jira/browse/REGISTRY-2787 > > Thank you, > Chalitha. > > On Tue, Sep 15, 2015 at 10:12 PM, Ajith Vitharana <aji...@wso2.com> wrote: > >> Observed same issue today henced create a JIRA >> https://wso2.org/jira/browse/IDENTITY-3580 >> >> -Ajith >> >> On Thu, Sep 10, 2015 at 1:28 PM, Ajith Vitharana <aji...@wso2.com> wrote: >> >>> Hi All. >>> >>> >>> [2015-09-10 13:21:42,373] ERROR >>> {org.wso2.carbon.humantask.core.scheduler.SimpleScheduler} - Error loading >>> immediate jobs from database. >>> >>> org.apache.openjpa.persistence.PersistenceException: Database is already >>> closed (to disable automatic closing at VM shutdown, add >>> ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-140] {SELECT t0.id, >>> t0.JOB_DETAILS, t0.JOB_NAME, t0.NODEID, t0.SCHEDULED, t0.TASKID, >>> t0.JOB_TIME, t0.TRANSACTED, t0.JOB_TYPE FROM HT_JOB t0 WHERE (t0.NODEID = ? >>> AND t0.JOB_TIME < ?) ORDER BY t0.JOB_TIME ASC LIMIT ?} [code=90121, >>> state=90121] >>> FailedObject: SELECT DISTINCT t FROM >>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.HumanTaskJob t WHERE >>> t.nodeId = ?1 AND t.time < ?2 order by t.time [java.lang.String] >>> at >>> org.apache.openjpa.jdbc.sql.DBDictionary.narrow(DBDictionary.java:4918) >>> at >>> org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4878) >>> at >>> org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:136) >>> at >>> org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:118) >>> at >>> org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:70) >>> at >>> org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider.handleCheckedException(SelectResultObjectProvider.java:155) >>> at >>> org.apache.openjpa.lib.rop.EagerResultList.(EagerResultList.java:40) >>> at org.apache.openjpa.kernel.QueryImpl.toResult(QueryImpl.java:1251) >>> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:1007) >>> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:863) >>> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:794) >>> at >>> org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:542) >>> at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:286) >>> at >>> org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:302) >>> at >>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.HumanTaskDAOConnectionImpl.dequeueImmediate(HumanTaskDAOConnectionImpl.java:248) >>> at >>> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$2.call(SimpleScheduler.java:344) >>> at >>> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$2.call(SimpleScheduler.java:342) >>> at >>> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:881) >>> at >>> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:830) >>> at >>> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.doLoadImmediate(SimpleScheduler.java:342) >>> at >>> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$LoadImmediateTask.run(SimpleScheduler.java:297) >>> at >>> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$1.call(SimpleScheduler.java:149) >>> at >>> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$1.call(SimpleScheduler.java:146) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> at java.lang.Thread.run(Thread.java:745) >>> Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: Database
Re: [Dev] [GREG 5.0.0]Error at graceful restart
Observed same issue today henced create a JIRA https://wso2.org/jira/browse/IDENTITY-3580 -Ajith On Thu, Sep 10, 2015 at 1:28 PM, Ajith Vitharana <aji...@wso2.com> wrote: > Hi All. > > > [2015-09-10 13:21:42,373] ERROR > {org.wso2.carbon.humantask.core.scheduler.SimpleScheduler} - Error loading > immediate jobs from database. > > org.apache.openjpa.persistence.PersistenceException: Database is already > closed (to disable automatic closing at VM shutdown, add > ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-140] {SELECT t0.id, > t0.JOB_DETAILS, t0.JOB_NAME, t0.NODEID, t0.SCHEDULED, t0.TASKID, > t0.JOB_TIME, t0.TRANSACTED, t0.JOB_TYPE FROM HT_JOB t0 WHERE (t0.NODEID = ? > AND t0.JOB_TIME < ?) ORDER BY t0.JOB_TIME ASC LIMIT ?} [code=90121, > state=90121] > FailedObject: SELECT DISTINCT t FROM > org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.HumanTaskJob t WHERE > t.nodeId = ?1 AND t.time < ?2 order by t.time [java.lang.String] > at org.apache.openjpa.jdbc.sql.DBDictionary.narrow(DBDictionary.java:4918) > at > org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4878) > at > org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:136) > at > org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:118) > at > org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:70) > at > org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider.handleCheckedException(SelectResultObjectProvider.java:155) > at > org.apache.openjpa.lib.rop.EagerResultList.(EagerResultList.java:40) > at org.apache.openjpa.kernel.QueryImpl.toResult(QueryImpl.java:1251) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:1007) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:863) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:794) > at > org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:542) > at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:286) > at > org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:302) > at > org.wso2.carbon.humantask.core.dao.jpa.openjpa.HumanTaskDAOConnectionImpl.dequeueImmediate(HumanTaskDAOConnectionImpl.java:248) > at > org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$2.call(SimpleScheduler.java:344) > at > org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$2.call(SimpleScheduler.java:342) > at > org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:881) > at > org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:830) > at > org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.doLoadImmediate(SimpleScheduler.java:342) > at > org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$LoadImmediateTask.run(SimpleScheduler.java:297) > at > org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$1.call(SimpleScheduler.java:149) > at > org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$1.call(SimpleScheduler.java:146) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: Database is > already closed (to disable automatic closing at VM shutdown, add > ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-140] {SELECT t0.id, > t0.JOB_DETAILS, t0.JOB_NAME, t0.NODEID, t0.SCHEDULED, t0.TASKID, > t0.JOB_TIME, t0.TRANSACTED, t0.JOB_TYPE FROM HT_JOB t0 WHERE (t0.NODEID = ? > AND t0.JOB_TIME < ?) ORDER BY t0.JOB_TIME ASC LIMIT ?} [code=90121, > state=90121] > at > org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:247) > at > org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:227) > at > org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.access$000(LoggingConnectionDecorator.java:72) > at > org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection.prepareStatement(LoggingConnectionDecorator.java:279) > at > org.apache.openjpa.lib.jdbc.DelegatingConnection.prepareStatement(DelegatingConnection.java:133) > at > org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator$ConfiguringConnection.prepareStatement(ConfiguringConnectionDecorator.java:140) > at > org.apache.openjpa.lib.jdbc.DelegatingConnection.prepareStatement(DelegatingConnection.java:133) > at > org.apache.openjpa.jdbc.kernel.JDBCStoreManager$RefCountConnection.prepareStatement(J
Re: [Dev] HA cluster exception
e.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.h2.jdbc.JdbcSQLException: Referential integrity constraint > violation: "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN > KEY(REG_PATH_ID, REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID, > REG_TENANT_ID)"; SQL statement: > INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE, > REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME, > REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, > ?, ?) [23002-140] > at > org.h2.message.DbException.getJdbcSQLException(DbException.java:327) > at org.h2.message.DbException.get(DbException.java:167) > at org.h2.message.DbException.get(DbException.java:144) > at > org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:329) > at > org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271) > at org.h2.table.Table.fireConstraints(Table.java:801) > at org.h2.table.Table.fireAfterRow(Table.java:818) > at org.h2.command.dml.Insert.insertRows(Insert.java:122) > at org.h2.command.dml.Insert.update(Insert.java:82) > at org.h2.command.CommandContainer.update(CommandContainer.java:70) > at org.h2.command.Command.executeUpdate(Command.java:199) > at > org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:141) > at > org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:127) > at > org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addResourceWithoutContentId(JDBCResourceDAO.java:1385) > ... 73 more > > > Thanks. > > *Maninda Edirisooriya* > Senior Software Engineer > > *WSO2, Inc.*lean.enterprise.middleware. > > *Blog* : http://maninda.blogspot.com/ > *E-mail* : mani...@wso2.com > *Skype* : @manindae > *Twitter* : @maninda > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [GREG 5.0.0]Error at graceful restart
015-09-10 13:21:42,378] ERROR {org.wso2.carbon.humantask.core.scheduler.SimpleScheduler} - Error during SchedulerTask execution java.lang.NullPointerException at org.eclipse.osgi.internal.loader.BundleLoader.createExportPackageSource(BundleLoader.java:271) at org.eclipse.osgi.internal.loader.BundleLoader.findDynamicSource(BundleLoader.java:1169) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.apache.solr.logging.log4j.EventAppender.append(EventAppender.java:35) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:229) at org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.doLoadImmediate(SimpleScheduler.java:392) at org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$LoadImmediateTask.run(SimpleScheduler.java:297) at org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$1.call(SimpleScheduler.java:149) at org.wso2.carbon.humantask.core.scheduler.SimpleScheduler$1.call(SimpleScheduler.java:146) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) [2015-09-10 13:21:42,625] INFO {org.wso2.carbon.core.init.CarbonServerManager} - Shutdown complete [2015-09-10 13:21:42,625] INFO {org.wso2.carbon.core.init.CarbonServerManager} - Halting JVM -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [VOTE] Release G-Reg 5.0.0 RC 2
On Wed, Sep 2, 2015 at 12:08 AM, Evanthika Amarasiri <evanth...@wso2.com> wrote: > Ack! > > @Chalitha/Thaya/Pubudu. Please note. > And all the context sensitive help pages are outdated . -Ajith > > Regards, > Evanthika Amarasiri > Senior Technical Lead - Quality Assurance > Mobile: +94773125935 > Blog: evanthika.blogspot.com > > wso2.com lean.enterprise.middleware > > On Wed, Sep 2, 2015 at 9:32 AM, Ajith Vitharana <aji...@wso2.com> wrote: > >> Hi All >> >> This is non a bug but please fix the about page if possible because this >> is a major release. (find the attached image) >> >> -Ajith >> >> >> >> >> >> On Tue, Sep 1, 2015 at 11:05 PM, Prasanna Dangalla <prasa...@wso2.com> >> wrote: >> >>> Hi All, >>> >>> *This is the RC 2 release candidate of G-Reg 5.0.0 * >>> >>> This release fixes the following issues: >>> >>> https://wso2.org/jira/browse/REGISTRY-2895?filter=12384 >>> https://wso2.org/jira/browse/REGISTRY-2908 >>> >>> Please download, test and vote. Please refer the release verification >>> guide for detailed information on verifying this release. >>> >>> *Source & binary distribution files:* >>> >>> >>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/org/wso2/greg/wso2greg/5.0.0/ >>> >>> *Maven staging repo:* >>> >>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/ >>> >>> *The tag to be voted upon:* >>> >>> https://github.com/wso2/product-greg/tree/v5.0.0-rc2 >>> >>> >>> >>> [*+*] Stable - go ahead and release >>> >>> [*-*] Broken - do not release (explain why) >>> >>> Thanks and Regards >>> G-Reg team >>> >>> Prasanna Dangalla >>> Software Engineer, WSO2, Inc.; http://wso2.com/ >>> lean.enterprise.middleware >>> >>> cell: +94 718 11 27 51 >>> twitter: @prasa77 >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Ajith Vitharana. >> >> WSO2 Inc. - http://wso2.com >> Email : aji...@wso2.com >> Blog: http://vitharana.org >> Mobile : +1-812-360-5335 >> >> > -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [VOTE] Release G-Reg 5.0.0 RC 2
Hi All. I got this error when I click on the "Logging" UI. Seems this pack also not good candidate to release. *Caused by: java.lang.NullPointerException* * at java.lang.String.compareTo(String.java:1139)* * at org.wso2.carbon.logging.service.LoggingAdmin$2.compare(LoggingAdmin.java:484)* * at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)* * at java.util.TimSort.sort(TimSort.java:189)* * at java.util.TimSort.sort(TimSort.java:173)* * at java.util.Arrays.sort(Arrays.java:659)* * at org.wso2.carbon.logging.service.LoggingAdmin.getAllAppenderData(LoggingAdmin.java:479)* * at org.wso2.carbon.logging.service.LoggingAdmin.getSystemLog(LoggingAdmin.java:96)* * ... 66 more* *TID: [-1234] [] [2015-09-02 00:18:39,184] ERROR {org.apache.catalina.core.StandardWrapperValve} - Servlet.service() for servlet [bridgeservlet] in context with path [/] threw exception [An exception occurred processing JSP page /log-admin/globalLogConfig-ajaxprocessor.jsp at line 44* *41: globalLogData = client.getSysLog();* *42: } catch (Exception e) {* *43: %>* *44: * *45: <%* *46: return;* *47: }* *Stacktrace:] with root cause {org.apache.catalina.core.StandardWrapperValve}* -Ajith On Wed, Sep 2, 2015 at 12:12 AM, Ajith Vitharana <aji...@wso2.com> wrote: > > > On Wed, Sep 2, 2015 at 12:08 AM, Evanthika Amarasiri <evanth...@wso2.com> > wrote: > >> Ack! >> >> @Chalitha/Thaya/Pubudu. Please note. >> > > And all the context sensitive help pages are outdated . > > -Ajith > > >> >> Regards, >> Evanthika Amarasiri >> Senior Technical Lead - Quality Assurance >> Mobile: +94773125935 >> Blog: evanthika.blogspot.com >> >> wso2.com lean.enterprise.middleware >> >> On Wed, Sep 2, 2015 at 9:32 AM, Ajith Vitharana <aji...@wso2.com> wrote: >> >>> Hi All >>> >>> This is non a bug but please fix the about page if possible because this >>> is a major release. (find the attached image) >>> >>> -Ajith >>> >>> >>> >>> >>> >>> On Tue, Sep 1, 2015 at 11:05 PM, Prasanna Dangalla <prasa...@wso2.com> >>> wrote: >>> >>>> Hi All, >>>> >>>> *This is the RC 2 release candidate of G-Reg 5.0.0 * >>>> >>>> This release fixes the following issues: >>>> >>>> https://wso2.org/jira/browse/REGISTRY-2895?filter=12384 >>>> https://wso2.org/jira/browse/REGISTRY-2908 >>>> >>>> Please download, test and vote. Please refer the release verification >>>> guide for detailed information on verifying this release. >>>> >>>> *Source & binary distribution files:* >>>> >>>> >>>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/org/wso2/greg/wso2greg/5.0.0/ >>>> >>>> *Maven staging repo:* >>>> >>>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/ >>>> >>>> *The tag to be voted upon:* >>>> >>>> https://github.com/wso2/product-greg/tree/v5.0.0-rc2 >>>> >>>> >>>> >>>> [*+*] Stable - go ahead and release >>>> >>>> [*-*] Broken - do not release (explain why) >>>> >>>> Thanks and Regards >>>> G-Reg team >>>> >>>> Prasanna Dangalla >>>> Software Engineer, WSO2, Inc.; http://wso2.com/ >>>> lean.enterprise.middleware >>>> >>>> cell: +94 718 11 27 51 >>>> twitter: @prasa77 >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Ajith Vitharana. >>> >>> WSO2 Inc. - http://wso2.com >>> Email : aji...@wso2.com >>> Blog: http://vitharana.org >>> Mobile : +1-812-360-5335 >>> >>> >> > > > -- > Ajith Vitharana. > > WSO2 Inc. - http://wso2.com > Email : aji...@wso2.com > Blog: http://vitharana.org > Mobile : +1-812-360-5335 > > -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Email-Templates UI in G-Reg 5.0
On Wed, Sep 2, 2015 at 1:32 AM, Chalitha Waldeniyage <chali...@wso2.com> wrote: > Hi Ajith, > > This is discussed in Architecture mail in [1] . Please refer [2] for more > information. > > [1] Tenant wise email templates improvement > > [2] > https://docs.wso2.com/display/IS450/Self+Sign+Up+and+Account+Confirmation > <https://www.google.com/url?q=https%3A%2F%2Fdocs.wso2.com%2Fdisplay%2FIS450%2FSelf%2BSign%2BUp%2Band%2BAccount%2BConfirmation=D=1=AFQjCNExwvqcHgkqvbIfnp5cN2lF_ehEUA> > This usage in Identity Server. What is the usage of having this UI in Governance Registry ? AFAIU this is redundant UI for G-Reg. However if we support same thing in G-Reg we should have identity-mgt.properties file inside the wso2greg-5.0.0/repository/conf/security, But I can't find that ? -Ajith > > > Thank you, > Chalitha. > > On Wed, Sep 2, 2015 at 9:47 AM, Ajith Vitharana <aji...@wso2.com> wrote: > >> Hi All, >> >> What is the feature and usage of this UI in G-Reg 5.0 ? >> >> -Ajith >> >> -- >> Ajith Vitharana. >> >> WSO2 Inc. - http://wso2.com >> Email : aji...@wso2.com >> Blog: http://vitharana.org >> Mobile : +1-812-360-5335 >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Chalitha Maheshwari* > Software Engineer-QA, > WSO2 Inc. > > *E-mail:* chali...@wso2.com > *Mobile: *+94710 411 112 > -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][Jaggery] how to handle exception come from XMLHttpRequestHostObject
(e) { // log.error(e.message); } Exception come from the following jaggery hostobject code private static void executeRequest(Context cx, XMLHttpRequestHostObject xhr) throws ScriptException { try { xhr.httpClient.executeMethod(xhr.method); xhr.statusLine = xhr.method.getStatusLine(); xhr.responseHeaders = xhr.method.getResponseHeaders(); updateReadyState(cx, xhr, HEADERS_RECEIVED); byte[] response = xhr.method.getResponseBody(); if (response.length 0) { xhr.responseText = new String(response); } Header contentType = xhr.method.getResponseHeader(Content-Type); if (contentType != null) { xhr.responseType = contentType.getValue(); } updateReadyState(cx, xhr, DONE); } catch (IOException e) { log.error(e.getMessage(), e); throw new ScriptException(e); } finally { xhr.method.releaseConnection(); } } XMLHttpRequestHostObject.java [1] - https://wso2.org/jira/browse/APIMANAGER-3139 Thanks and regards *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444 %2B94%2077%205493444* -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakmali Baminiwatta Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware mobile: +94 71 2335936 blog : lakmali.com -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444 %2B94%2077%205493444* -- Lakmali Baminiwatta Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware mobile: +94 71 2335936 blog : lakmali.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] AS cluster registry debsync issue
Hi All The registry based depsync is deprecated. Please try with SVN. -Ajith On Sun, May 24, 2015 at 12:54 AM, Manoj Kumara ma...@wso2.com wrote: Hi Udara, Did you mounted the registry database between the nodes ? Please follow [1] [1] http://emsooriyabandara.blogspot.com/2013/01/registry-based-deployment-synchronizer.html *Manoj Kumara* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94713448188 On Sat, May 23, 2015 at 11:01 AM, Udara Liyanage ud...@wso2.com wrote: Hi, I create a AS 5.2.1 cluster with two nodes as each members is a WKA member for other members. Member join messages appeared. However when a web app is deployed to the manager node, it is not propagated to the other node. However following repo notification message appeared in the worker node. Note that I have applied the hazelcast patch patch1297 to both nodes. [2015-05-23 10:44:35,797] INFO {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener} - Received ClusteringMessage: SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super', messageId=68bd3b2f-598a-423c-b876-bd3eb5e9bd3c} [2015-05-23 10:44:35,797] INFO {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Received [SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super', messageId=68bd3b2f-598a-423c-b876-bd3eb5e9bd3c}] [2015-05-23 10:44:35,797] INFO {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Updating repo update required parameter -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 ___ 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 -- Ajith Vitharana. WSO2 Inc. - http://wso2.com Email : aji...@wso2.com Blog: http://vitharana.org Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] (REGISTRY-2431) Hard code URL
On Thu, Mar 5, 2015 at 10:31 PM, Thushara Ranawaka thusha...@wso2.com wrote: Hi Ajith, Above mentioned hard corded URL is in a deprecated method therefore I just evaluate the uses of getSolrUrl() method. I found only single use of this method. After that We check the use of that method which is getSolrUrl(int tenantId), but when we search uses of that method we couldn't find any. After having a discussion with Danesh We decide to remove these 2 methods from the code base. Other than that we could find any test-cases either. Please advice if we have missed something. If someone need to access the Solr endpoint to write some custom extension, Do we have any API to get that ? -Ajith Thanks, Thushara. On Wed, Mar 4, 2015 at 10:04 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Thushara, Could you please explain the fix here ? what we need to do is construct the solrServerUrl without hardcore. But I see you have completely removed the getSolrUrl() method. solrServerUrl = https://localhost:9443/registry/resourcesolr/solr;; -Ajith Thushara Kasun Ranawaka https://wso2.org/jira/secure/ViewProfile.jspa?name=thusharak%40wso2.com commented on [image: Bug] REGISTRY-2431 https://wso2.org/jira/browse/REGISTRY-2431 *Hard code URL* https://wso2.org/jira/browse/REGISTRY-2431 Since these methods are deprecated and not in use, removed them after checking integration tests PR sent : https://github.com/wso2/carbon-registry/pull/35 This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 -- Thanks, Thushara Kasun Ranawaka Software Engineer WSO2 Inc.; http://www.wso2.com lean.enterprise.middleware Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949* *thusha...@wso2.com thusha...@wso2.com* -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Secure vault for provisioning-config.xml
Hi All, Do we support secure vault for provisioning-config.xml ? [1] https://docs.wso2.com/display/IS500/Identity+Synchronization+Across+Multiple+Nodes -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?
On Fri, Feb 27, 2015 at 12:21 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Fri, Feb 27, 2015 at 10:25 AM, Ajith Vitharana aji...@wso2.com wrote: On Thu, Feb 26, 2015 at 11:37 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Fri, Feb 27, 2015 at 3:29 AM, Ajith Vitharana aji...@wso2.com wrote: On Thu, Feb 26, 2015 at 4:17 PM, Prabath Siriwardena prab...@wso2.com wrote: Yes.. but blocking wont allow you to delete it.. Yes. Currently no clean approach to delete it. But this is a workaround: 1. Change the LC sate to BLOCKED . 2. Logged in to the Carbon Admin UI 3. Home - Metadata - List - APIs and delete that API, then API will disappear from publisher. This is completely wrong. We should never recommend this to anyone. API store may completely unusable due to this[1]. [1] http://sanjeewamalalgoda.blogspot.com/2014/03/how-to-fix-issue-in-wso2-api-manager.html It is not not completely wrong to delete *the API having subscriptions* :). Only thing is 4th and 5th steps is missing . 4.) Find the API data from AM database and delete. 5.) Go to the wso2am-1.8.0/repository/deployment/server/synapse-configs/default/api and delete the API artifact. No still this is missing some steps. How about resource mapping associate with API? You cant simply find entries in all tables associate with API and delete them(see following list). That is why we do not recommend it. Hope you got it now :) String deleteLCEventQuery = DELETE FROM AM_API_LC_EVENT WHERE API_ID=? ; String deleteCommentQuery = DELETE FROM AM_API_COMMENTS WHERE API_ID=? ; String deleteRatingsQuery = DELETE FROM AM_API_RATINGS WHERE API_ID=? ; String deleteSubscriptionQuery = DELETE FROM AM_SUBSCRIPTION WHERE API_ID=?; String deleteExternalAPIStoresQuery = DELETE FROM AM_EXTERNAL_STORES WHERE API_ID=?; String deleteAPIQuery = DELETE FROM AM_API WHERE API_PROVIDER=? AND API_NAME=? AND API_VERSION=? ; String deleteURLTemplateQuery = DELETE FROM AM_API_URL_MAPPING WHERE API_ID = ?; That is what I mentioned 5) Find the API data from AM database and delete. it is not just name and context , we need to delete all API related data. -Ajith Thanks, sanjeewa. Your blog post described *how to recover an API*, But what I have mentioned here is *how to delete an API which is having user subscriptions*(without removing subscriptions one by one from store). Hope it is clear now. Am I missed anything ? -Ajith Thanks, sanjeewa. Only problem is publisher doesn't allow you again to create API with same name and context. Because when you delete the API from Admin UI, it only delete the API from registry database and AM database still remain the AM metadata(name, context ...etc). -Ajith Thanks regards, -Prabath On Thu, Feb 26, 2015 at 1:15 PM, Ajith Vitharana aji...@wso2.com wrote: On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena prab...@wso2.com wrote: Thanks..! But who has to remove the subscriptions...? Is it the one who subscribed..? Currently yes. But I understand that , it is not possible when we have lots of user subscriptions. I think there needs to be a way to remove an API by the API Publisher... So, without deleting the the API we can make the LC state to BLOCKED in publisher. -Ajith Thanks regards, -Prabath On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Prabath, AFAIK, It can't do from publisher, first we need to remove the subscription from store , then delete from publisher. -Ajith On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena prab...@wso2.com wrote: $subject... Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 -- Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 -- Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Ajith
Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?
Hi Prabath, AFAIK, It can't do from publisher, first we need to remove the subscription from store , then delete from publisher. -Ajith On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena prab...@wso2.com wrote: $subject... Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?
On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena prab...@wso2.com wrote: Thanks..! But who has to remove the subscriptions...? Is it the one who subscribed..? Currently yes. But I understand that , it is not possible when we have lots of user subscriptions. I think there needs to be a way to remove an API by the API Publisher... So, without deleting the the API we can make the LC state to BLOCKED in publisher. -Ajith Thanks regards, -Prabath On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Prabath, AFAIK, It can't do from publisher, first we need to remove the subscription from store , then delete from publisher. -Ajith On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena prab...@wso2.com wrote: $subject... Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 -- Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [API Manager] Adding an API with the context wso2
On Thu, Feb 26, 2015 at 5:22 PM, Prabath Siriwardena prab...@wso2.com wrote: Created an API with the context wso2 and published it... This appears in store - and anyone can subscribe.. But not in the Gateway.. Is this a known issue... If you try with the Publisher REST API make sure to pass the* publishToGateway=true *parameter while Change API State. If not all the things success but API not in GW. No way to recover(push back to GW) such an API, if you missed to pass at first place . :) . That is known bug. [1] https://docs.wso2.com/display/AM180/Publisher+APIs#PublisherAPIs-ChangeAPIStatus Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Manager always returns back errors in XML
By default application/xml, you can change that in _auth_failure_handler_.xml file under wso2am-1.8.0/repository/deployment/server/synapse-configs/default/sequences sequence name=_auth_failure_handler_ xmlns= http://ws.apache.org/ns/synapse; property name=error_message_type value=application/xml/ /sequence -Ajith On Thu, Feb 26, 2015 at 5:45 PM, Prabath Siriwardena prab...@wso2.com wrote: I tried to call an API with an invalid access token - and following in the the response I get.. Shouldn't I get a JSON response here..? curl -H Authorization: Bearer 227f7e7119361b31f873b1b6b3abfdff -k -H Accept: application/json https://localhost:8243/mywso2/1.0.0/employee/4 ams:fault xmlns:ams=http://wso2.org/apimanager/security;ams:code900901/ams:codeams:messageInvalid Credentials/ams:messageams:descriptionAccess failure for API: /mywso2, version: 1.0.0 with key: 227f7e7119361b31f873b1b6b3abfdff/ams:description/ams:fault Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?
On Thu, Feb 26, 2015 at 11:37 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Fri, Feb 27, 2015 at 3:29 AM, Ajith Vitharana aji...@wso2.com wrote: On Thu, Feb 26, 2015 at 4:17 PM, Prabath Siriwardena prab...@wso2.com wrote: Yes.. but blocking wont allow you to delete it.. Yes. Currently no clean approach to delete it. But this is a workaround: 1. Change the LC sate to BLOCKED . 2. Logged in to the Carbon Admin UI 3. Home - Metadata - List - APIs and delete that API, then API will disappear from publisher. This is completely wrong. We should never recommend this to anyone. API store may completely unusable due to this[1]. [1] http://sanjeewamalalgoda.blogspot.com/2014/03/how-to-fix-issue-in-wso2-api-manager.html It is not not completely wrong to delete *the API having subscriptions* :). Only thing is 4th and 5th steps is missing . 4.) Find the API data from AM database and delete. 5.) Go to the wso2am-1.8.0/repository/deployment/server/synapse-configs/default/api and delete the API artifact. Your blog post described *how to recover an API*, But what I have mentioned here is *how to delete an API which is having user subscriptions*(without removing subscriptions one by one from store). Hope it is clear now. Am I missed anything ? -Ajith Thanks, sanjeewa. Only problem is publisher doesn't allow you again to create API with same name and context. Because when you delete the API from Admin UI, it only delete the API from registry database and AM database still remain the AM metadata(name, context ...etc). -Ajith Thanks regards, -Prabath On Thu, Feb 26, 2015 at 1:15 PM, Ajith Vitharana aji...@wso2.com wrote: On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena prab...@wso2.com wrote: Thanks..! But who has to remove the subscriptions...? Is it the one who subscribed..? Currently yes. But I understand that , it is not possible when we have lots of user subscriptions. I think there needs to be a way to remove an API by the API Publisher... So, without deleting the the API we can make the LC state to BLOCKED in publisher. -Ajith Thanks regards, -Prabath On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Prabath, AFAIK, It can't do from publisher, first we need to remove the subscription from store , then delete from publisher. -Ajith On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena prab...@wso2.com wrote: $subject... Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 -- Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 -- Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +1 650 625 7950 http://blog.facilelogin.com http://blog.api-security.org -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][API-M] Error in WikipediaAPI sample
Please open public jira for AM project. -Ajith On Mon, Feb 23, 2015 at 10:45 AM, Malith Munasinghe mali...@wso2.com wrote: Hi Kavinda, Thank You for the heads up! I also met with this error. Changing the curl script helped me to handle that error. Also I tried ignoring the error as well. The sample worked despite the error. Thanks, On Mon, Feb 23, 2015 at 5:51 PM, Vinod Kavinda vi...@wso2.com wrote: hi, When following the [1], it gives the following error, 'org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException: Resource does not exist at path /_system/governance/apimgt/applicationdata/provider/admin/admin/1.0.0/api' when doing the step 2. Reason for this is a wrong argument in the third curl script, in APIPopulator.sh file. value for the attribute 'name' should be changed from admin to WikipediaAPI. I did the change and it worked perfectly. It is better if someone could update the codebase. [1] - https://docs.wso2.com/display/AM180/Deploying+and+Testing+a+Wikipedia+API Regards, Vinod Kavinda -- Vinod Kavinda *Software Engineer, **WSO2, Inc http://www.wso2.com.* Mobile : +94 (0) 712 415544 vi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Malith Munasinghe | Software Engineer M: +94 (071) 9401122 E: mali...@wso2.com W: http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV] Getting Super Tenant Admin Name
[1]https://docs.wso2.com/display/Carbon420/CarbonContext+API -Ajith On Wed, Feb 11, 2015 at 10:13 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi all, Super tenant admin name is 'admin'. Is there a way to programatically retrieve this without hardcoding it? Thanks, Akalanka. -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Assertion Consumer URL
Hi All, How is the Assertion Consumer URL is populating in our products ? https://localhost:9444/acs [1]https://docs.wso2.com/display/IS500/Enabling+SSO+for+WSO2+Servers -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Assertion Consumer URL
On Mon, Feb 9, 2015 at 12:32 PM, Danushka Fernando danush...@wso2.com wrote: I am not sure what you are looking for. However code for Assertion Consumer Service is at [1]. And mapping is at [2]. [1] https://github.com/wso2/carbon-identity/blob/master/components/authenticators/saml2-sso-authenticator/org.wso2.carbon.identity.authenticator.saml2.sso.ui/src/main/java/org/wso2/carbon/identity/authenticator/saml2/sso/ui/SSOAssertionConsumerService.java [2] https://github.com/wso2/carbon-identity/blob/master/components/authenticators/saml2-sso-authenticator/org.wso2.carbon.identity.authenticator.saml2.sso.ui/src/main/resources/META-INF/component.xml Thanks Danushka, That is what I'm looking for. -Ajith. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Feb 9, 2015 at 10:14 PM, Ajith Vitharana aji...@wso2.com wrote: Hi All, How is the Assertion Consumer URL is populating in our products ? https://localhost:9444/acs [1]https://docs.wso2.com/display/IS500/Enabling+SSO+for+WSO2+Servers -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WARN logs adding new theme for tenant.
with tenant theme by test.com : file name : templates/utils/jQRangeSlider/GPL-License.txt [2015-02-09 15:13:20,339] WARN - TenantManagerHostObject Unsupported file is uploaded with tenant theme by test.com : file name : templates/utils/jQRangeSlider/History.md [2015-02-09 15:13:20,339] WARN - TenantManagerHostObject Unsupported file is uploaded with tenant theme by test.com : file name : templates/utils/jQRangeSlider/MIT-License.txt [2015-02-09 15:13:20,339] WARN - TenantManagerHostObject Unsupported file is uploaded with tenant theme by test.com : file name : templates/utils/jQRangeSlider/Readme.md [2015-02-09 15:13:20,349] WARN - TenantManagerHostObject Unsupported file is uploaded with tenant theme by test.com : file name : templates/utils/jQRangeSlider/lib/jquery-ui.license.txt [2015-02-09 15:13:20,350] WARN - TenantManagerHostObject Unsupported file is uploaded with tenant theme by test.com : file name : templates/utils/jQRangeSlider/lib/jquery.license.txt [2015-02-09 15:13:20,350] WARN - TenantManagerHostObject Unsupported file is uploaded with tenant theme by test.com : file name : templates/utils/jQRangeSlider/lib/jquery.mousewheel.license.txt [2015-02-09 15:13:20,350] WARN - TenantManagerHostObject Unsupported file is uploaded with tenant theme by test.com : file name : templates/utils/jqplot/copyright.txt [*2015-02-09 15:14:24,782] WARN - APIConsumerImpl Failed to retrieve tags query resource at /repository/components/org.wso2.carbon.registry/queries/tag-summary* -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issue on running wsdl2java.bat on Windows
use *-or* to overwrite . wsdl2java.sh *-or* -uri http://192.168.1.3:9763/services/HelloService?wsdl http://192.168.1.3:9763/services/HelloService?wsdl -Ajith On Wed, Feb 4, 2015 at 4:47 AM, Irham Iqbal iq...@wso2.com wrote: Hi, When running wsdl2java.bat on windows as shown below i am getting the following result. C:\Users\wso2\Desktop\wso2as-1\binwsdl2java.bat -uri http://192.168.1.3:9763/services/HelloService?wsdl BUILD SUCCESSFUL Total time: 7 seconds Using CARBON_HOME: C:\Users\wso2\Desktop\wso2as-1 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_23 Retrieving document at 'http://192.168.1.3:9763/services/HelloService?wsdl '. [2015-02-04 14:58:11,088] INFO {org.apache.axis2.wsdl.codegen.writer.FileWriter} - The .\src\org\wso2\www\types\HelloServiceCallbackHandler .java file cannot be overwritten. [2015-02-04 14:58:11,120] INFO {org.apache.axis2.wsdl.codegen.writer.FileWriter} - The .\src\org\wso2\www\types\HelloServiceStub.java file cannot be overwritten. But src folder is not created in bin folder. But when running the wsdl2java.sh on mac as wsdl2java.sh -uri http://192.168.1.3:9763/services/HelloService?wsdl http://192.168.1.3:9763/services/HelloService?wsdlcreates folder structure with the java classes. -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Filter user REST url -SCIM
Hi All The following REST invocation should be change to acceptable format. Why do we pass the username (adam) along with the userNameEq constant.? curl -v -k --user admin:admin https: //localhost:9443/wso2/scim/Users?filter=userNameEq*adam* Eg: curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter?userName=value OR curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter/username/value [1] https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Filter user REST url -SCIM
On Fri, Jan 30, 2015 at 8:59 PM, Isura Karunaratne is...@wso2.com wrote: Hi Ajith, On Sat, Jan 31, 2015 at 2:05 AM, Ajith Vitharana aji...@wso2.com wrote: Hi All The following REST invocation should be change to acceptable format. Why do we pass the username (adam) along with the userNameEq constant.? Eq is the operator to check equal according to SCIM spec. See the 3.2.2.1 in [1] If so fine, but then do we need to append the value to that ? -Ajith curl -v -k --user admin:admin https: //localhost:9443/wso2/scim/Users?filter=userNameEq*adam* Eg: curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter?userName=value OR curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter/username/value [1] https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev [1] http://www.simplecloud.info/specs/draft-scim-api-01.html Thanks Isura -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [G-Reg 5.0.0] Retrieving data related to governance artifacts
Above artifacts treating as content artifacts. So proper way is , take the resource from the governance artifact then check the media type from that resource. -Ajith On Thu, Jan 1, 2015 at 5:05 AM, Sameera Kannangara samee...@wso2.com wrote: Hi all, When retrieving governance artifacts of types, application/wsdl+xml application/x-xsd+xml application/policy+xml application/vnd.wso2.endpoint via governanceUtils.retrieveGovernanceArtifactByPath(), returned governance artifact does not contain the respective media type. All generic artifact types other than above four, contain their respective media types. Is this the expected behavior for artifacts of above four media types? Reason I'm asking this is, when retrieving governance artifacts for dependency graph generation of impact analysis feature, media type of the artifact is needed to determine the icon to be displayed for the artifact. Please note that respective media type is available for the registry resource relevant for the governance artifact. As we are retrieving governance artifacts to generate the dependency graph and graph generation process needs properties associated with the artifact to create the graph, process have to retrieve registry resource associated with the governance artifact to get necessary properties. Is there a better way to retrieve properties related to a governance artifact? Thank you, SameeraK -- *Sameera Kannangara* Software Engineer Platform TG; WSO2 Inc. http://wso2.com Contact: phone: +94719541577 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Registry REST API for embedded registry
On Tue, Nov 18, 2014 at 8:00 AM, Udara Liyanage ud...@wso2.com wrote: Hi, GREG, when started as a separate product(remote registry) exposes a REST API for registry operation. Is the same available for embedded registry of carbon products. AFAIU API is exposed via a web app, then is it possible to do $subject by deploying the web app in the carbon server? Yes. You can use that webapp. -Ajith Touched, not typed. Erroneous words are a feature, not a typo. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Some outdated information/typo in wso2server.sh --help
Hi All This output for ESB 4.8.1. command: --debug port Start the server in remote debugging mode. port: The remote debugging port. --start Start Carbon using nohup in the background --stop Stop the Carbon server process --restart Restart the Carbon server process --cleanRegistry Clean registry space. [CAUTION] All Registry data will be lost. --version What version of the product are you running? system-properties: * -DhttpPort=httpPort Overrides the HTTP port defined in the mgt-transports.xml file* * -DhttpsPort=httpsPort Overrides the HTTPS port defined in the mgt-transports.xml file* -DosgiConsole=[port] Start Carbon with Equinox OSGi console. If the optional 'port' parameter is provided, a telnet port will be opened -DosgiDebugOptions=[options-file] Start Carbon with OSGi debugging enabled. If the optional 'options-file is provided, the OSGi debug options will be loaded from it. -Dsetup Clean the Registry other configuration, recreate DB, re-populate the configuration, and start Carbon *-Dwso2.transports.xml=transportXmlPath Location of the mgt-transports.xml file.* -DserverRoles=roles A comma separated list of roles. Used in deploying cApps -Dcarbon.use.registry.repo Use registry based repository. -DdisableHttpLog Disable HTTP access logging -*DapplyPatches* Use this system property when there are patches to be applied/reverted to/from the system. Drop the patches to $CARBON_HOME/repository/*componenets*/patches directory and restart the system with this property. When you want to revert a patch, delete it from the patches directory and restart the system with this property -DworkerNode Set this system property when starting as a worker node. This is required in clustered setups with master and worker nodes. -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ES issue with deploying RXTs in tenants
This is due to schema validation failed. So you can remove the maxoccurs attribute from table element OR changed the RXT schema to support that attribute. -Ajith On Tue, Oct 7, 2014 at 9:36 PM, Buddhima Wijeweera buddh...@wso2.com wrote: Hi All, Recently I found there's an error with deploying RXTs with maxoccurs attribute. This error is getting only in tenant-mode (except for super-tenant). I'm using ES version 1.2.0-M3 ( https://svn.wso2.org/repos/wso2/people/sameeram/es/ES1.2.0-M3/) and I have put RXTs in /repository/resources/rxts location. Error I'm getting is: [2014-10-07 21:24:08,914] ERROR {org.wso2.carbon.governance.list.util.CommonUtil} - RXT validation fails due to: cvc-complex-type.3.2.2: Attribute 'maxoccurs' is not allowed to appear in element 'table'. [2014-10-07 21:24:08,915] ERROR {org.wso2.carbon.governance.registry.extensions.listeners.RxtLoader} - Failed to add rxt files to registry org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add rxt to registry at org.wso2.carbon.governance.registry.extensions.utils.CommonUtil.addRxtConfigs(CommonUtil.java:217) at org.wso2.carbon.governance.registry.extensions.listeners.RxtLoader.onLogin(RxtLoader.java:25) at org.wso2.carbon.core.services.callback.LoginSubscriptionManagerServiceImpl.triggerEvent(LoginSubscriptionManagerServiceImpl.java:42) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:121) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) I would appreciate if someone can have a look on this issue. Thank You! -- Buddhima Wijeweera Software Engineer; WSO2 Inc.; http://wso2.com , Email: buddh...@wso2.com Blog: https://buddhimawijeweera.wordpress.com GitHub Profile: https://github.com/Buddhima ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to point Direct repository location (file://) for SVN based dep-sync
) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: svn: Unable to open an ra_local session to URL svn: Unable to open repository 'file://localhost/home/gimantha/Support/repo/depsyncrepo' svn: Expected FS format between '1' and '4'; found format '6' at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.mkdir(AbstractJhlClientAdapter.java:2524) at org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.checkRemoteDirectory(SVNBasedArtifactRepository.java:240) ... 65 more Caused by: org.tigris.subversion.javahl.ClientException: svn: Unable to open an ra_local session to URL svn: Unable to open repository 'file://localhost/home/gimantha/Support/repo/depsyncrepo' svn: Expected FS format between '1' and '4'; found format '6' at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java:1850) at org.tmatesoft.svn.core.javahl.SVNClientImpl.mkdir(SVNClientImpl.java:836) at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.mkdir(AbstractJhlClientAdapter.java:2521) ... 66 more Caused by: org.tmatesoft.svn.core.SVNException: svn: Unable to open an ra_local session to URL svn: Unable to open repository 'file://localhost/home/gimantha/Support/repo/depsyncrepo' svn: Expected FS format between '1' and '4'; found format '6' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSRepository.java:746) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.checkPath(FSRepository.java:191) at org.tmatesoft.svn.core.wc.SVNCommitClient.addURLParents(SVNCommitClient.java:1464) at org.tmatesoft.svn.core.wc.SVNCommitClient.doMkDir(SVNCommitClient.java:411) at org.tmatesoft.svn.core.javahl.SVNClientImpl.mkdir(SVNClientImpl.java:834) ... 67 more Is the way I have entered the path to svn location incorrect? Can someone help me setting up the dep-sync? Thanks, -- Gimantha Bandara Software Engineer WSO2. Inc : http://wso2.com Mobile : +94714961919 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350
Re: [Dev] WSO2 ESB Cluster with GREG
On Mon, Sep 22, 2014 at 2:17 PM, Harsha Thirimanna hars...@wso2.com wrote: Hi Aliosha, Right now we don't suggest to use Registry base dep-sync. Better to use SVN dep-sync and you can use registry for sharing configuration. +1. -Ajith thanks *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Mon, Sep 22, 2014 at 1:12 AM, Aliosha aliosh...@gmail.com wrote: i m trying to build a cluster made up on 3 WSO2 ESB (4.8.1): 1 ESB Manager node 2 ESB worker nodes Till now i referenced to the official documentation at this link: https://docs.wso2.com/display/CLUSTER420/Clustering+WSO2+Products But now i need to know how and if it's possible to build a cluster withouth an svn server for Deployment Synchronizer and sharing all the configuration just using the Governance Registry. Is there an official guide? or just have i to reference to this tutorial i found out on the net: http://emsooriyabandara.blogspot.it/2013/01/registry-based-deployment-synchronizer.html Regards -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Graceful Restart is not working
On Fri, Sep 12, 2014 at 7:55 AM, Nipuni Perera nip...@wso2.com wrote: Hi, Please review and merge pull request[1] for the above null check. [1] https://github.com/wso2-dev/carbon-registry/pull/22 +1. That is summary of mail thread ;) -Ajith. Thanks, Nipuni On Wed, Sep 10, 2014 at 5:18 PM, Lasantha Fernando lasan...@wso2.com wrote: On 10 September 2014 16:55, Nipuni Perera nip...@wso2.com wrote: Hi Lasantha, I have compared AS 5.2.1 and AS 5.3.0-SNAPSHOT versions with osgi console enabled. I could see that the following 2 bundles are in unsatisfied state in 5.2.1 server while they are in active state in 5.3.0-SNAPSHOT. (AS does not use indexing feature hence does not has indexingConfiguration entry in registry.xml. ) Unsatisfiedorg.wso2.carbon.registry.indexing org.wso2.carbon.registry.indexing(bid=340) Unsatisfiedregistry.search.dscomponent org.wso2.carbon.registry.search(bid=347) When server is shutting down, services list in waitForServerTaskCompletion() in ServerManagement.java [1] (line 110) contains 2 services in 5.3.0-SNAPSHOT (RegistryCoreServiceComponent and IndexingServiceComponent) and in 5.2.1 pack list only one (RegistryCoreServiceComponent). The NPE occurs when shutting down the service IndexingServiceComponent in 5.3.0-SNAPSHOT. It seems that the unsatisfied bundles in earlier version is fixed in later version. Oh OK... I thought the swallowed NPE was somehow getting logged during a graceful restart, which is why I referenced the earlier thread. Seems the JIRA raised by you is for a different issue. As I debug I could see that in the normal startup this NPE is thrown but swallowed in 5.2.1. Will debug further and update the thread with the findings. Thanks for looking into this! [1] https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/ServerManagement.java Thanks, Nipuni On Wed, Sep 10, 2014 at 2:43 PM, Lasantha Fernando lasan...@wso2.com wrote: Hi Nipuni, Can you also verify if this code segment affects a normal startup as well (other than a graceful restart)? i.e. if u start with OSGi console, you can verify if registry.search.dscomponent service is satisfied or not. Then if you drill down the unsatisfied component, you will probably be able to find the NPE in the reasons listed for OSGi service being unsatisfied. I think that this NPE is thrown at normal startup as well, but somehow swallowed up when the bundle loading happens. I mean that was the case in the issue mentioned in the earlier thread. Thanks, Lasantha On 10 September 2014 14:26, Ajith Vitharana aji...@wso2.com wrote: Hi Nipuni, You need to do two things here, 1. If you are not using the registry search feature , then need to find the place that bundle going to include to the product. 2. You can do a null check and proceed in code.[ @Subash this is bug in registry code please fix.] -Ajith. On Wed, Sep 10, 2014 at 12:47 PM, Nipuni Perera nip...@wso2.com wrote: Hi, Adding null check can avoid the NPE exception but may not solve the issue properly. @Lasantha, I will check with GREG team and see if this can be solved with touchpoints. @Firzhan. I have gone through the discussion [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. earlier and your findings, will check with GREG team. Thanks, Nipuni On Wed, Sep 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote: Hi All, We have already discussed this issue in the mail thread [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. Rather than checking the null point, I feel like we have to investigate why the registry's search feature bundle getting included to the products which are not using registry search feature ( BPS ). @Ajith:- You thoughts on this Regards, Firzhan On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi, On 10 September 2014 10:19, Nipuni Perera nip...@wso2.com wrote: Hi, Yes. I can add a null check to indexingConfig element and continue only if the value is available (But it will add the whole method execution inside constructor RegistryConfigLoader() to an if block - line 75 to 150 of [1]). Is this preferable? public RegistryConfigLoader() { try { FileInputStream fileInputStream = new FileInputStream(getConfigFile()); StAXOMBuilder builder = new StAXOMBuilder( CarbonUtils.replaceSystemVariablesInXml(fileInputStream)); OMElement configElement = builder.getDocumentElement(); OMElement indexingConfig = configElement.getFirstChildWithName( new QName(indexingConfiguration)); if (indexingConfig != null
Re: [Dev] maxoccurs in table element - RXT
On Thu, Sep 4, 2014 at 4:45 PM, Sameera Jayaratna samee...@wso2.com wrote: Hi Senduran, Are you trying to add the RXT via the Management Console in ES? In that case this is a known issue as I know. But if you add an RXT file to the rxt folder in ES pack with above configuration it would work with out an issue. This is bug, because RXT config validate with schema while upload through the management console ,not through the rxt folder. Please report a JIRA . -Ajith Thank you, Sameera On Thu, Sep 4, 2014 at 3:29 PM, Senduran Balasubramaniyam sendu...@wso2.com wrote: Hi, I am writing a RXT to add an assert in ES, I am following [1] as the reference. As mentioned in the document I tried to create a table with ‘maxoccurs’ attribute and when I tried to save the artifact ES says RXT validation fails due to: cvc-complex-type.3.2.2: Attribute 'maxoccurs' is not allowed to appear in element 'table'. but the document says : The maxoccurs element can be used in two different ways, i.e., it can define maxoccurs as attribute of table or option-text. Following is my table definition table name=Ingredient columns=3 maxoccurs=unbounded subheading headingChannel/heading headingURL/heading headingFields/heading /subheading field type=text name label=ChannelChannel/name /field field type=text url=true name label=URLURL/name /field field type=text-area name label=FieldsFields/name /field /table I want to create table with unbounded number of rows. How can I do this ? My ES version is 1.2.0-SNAPSHOT [1] - https://docs.wso2.com/display/Governance460/Governance+Artifacts+Configuration+Model+Elements Thanks Senduran -- *Senduran * Software Engineer, WSO2, Inc.; http://wso2.com/ http://wso2.com/ Mobile: +94 77 952 6548 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Thanks Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com http://wso2.com * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API.
) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_anonymous_1(/publisher/site/blocks/item-add/ajax/add.jag:117) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_script_0(/publisher/site/blocks/item-add/ajax/add.jag:4) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.exec(/publisher/site/blocks/item-add/ajax/add.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:453) at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) 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:154) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679) 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:662) On Mon, Sep 1, 2014 at 3:11 PM, Ajith Vitharana aji...@wso2.com wrote: Please attach the complete error log. -Ajith On Mon, Sep 1, 2014 at 2:59 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi, I'm also getting the same issue, any update on this? we want to up the basic APIM setup with H2 database for test automation Thanks Amalka On Mon, Aug 25, 2014 at 6:48 PM, Roshan Wijesena ros...@wso2.com wrote: Hi Danushka, Abimaran Thanks for your responses.. I am trying to start up basic APIM setup with built in H2 database first because we ship H2 database
Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API.
Please attach the complete error log. -Ajith On Mon, Sep 1, 2014 at 2:59 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi, I'm also getting the same issue, any update on this? we want to up the basic APIM setup with H2 database for test automation Thanks Amalka On Mon, Aug 25, 2014 at 6:48 PM, Roshan Wijesena ros...@wso2.com wrote: Hi Danushka, Abimaran Thanks for your responses.. I am trying to start up basic APIM setup with built in H2 database first because we ship H2 database by default. I can understand the fact that DB is corrupted, just curious why is getting corrupted every time that I am going to start up the set up. Regards Roshan On Mon, Aug 25, 2014 at 6:28 PM, Danushka Fernando danush...@wso2.com wrote: Hi Roshan H2 dbs get corrupted some times. We are not recommending H2 in production deployments. So if you want to store some data please use mysql. And you can delete h2 dbs (under $CARBON_HOME/repository/database/) and start the server with -Dsetup option. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 5:20 PM, Abimaran Kugathasan abima...@wso2.com wrote: Hi Roshan, Seems that DB file was correpted. Can you check WSO2AM_DB.trace.db file and attached it here? On Mon, Aug 25, 2014 at 4:15 PM, Roshan Wijesena ros...@wso2.com wrote: Hi Devs, I am keep getting below exception when I am trying to add a new API via publisher Caused by: org.h2.jdbc.JdbcSQLException: File corrupted while reading record: /home/roshan/workspace/MIT/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db. Possible solution: use the recovery tool [90030-140] at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) at org.h2.message.DbException.get(DbException.java:167) at org.h2.message.DbException.get(DbException.java:144) at org.h2.store.PageStore.readVariableHeader(PageStore.java:699) at org.h2.store.PageStore.openExisting(PageStore.java:314) at org.h2.store.PageStore.open(PageStore.java:271) at org.h2.engine.Database.getPageStore(Database.java:2059) at org.h2.engine.Database.open(Database.java:534) at org.h2.engine.Database.openDatabase(Database.java:207) at org.h2.engine.Database.init(Database.java:202) at org.h2.engine.Engine.openSession(Engine.java:56) at org.h2.engine.Engine.openSession(Engine.java:146) at org.h2.engine.Engine.getSession(Engine.java:125) at org.h2.engine.Session.createSession(Session.java:122) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241) at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95) at org.h2.Driver.connect(Driver.java:73) at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278) at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182) at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701) at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635) at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188) at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128) at org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil.getConnection(APIMgtDBUtil.java:138) at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:4833) ... 66 more any one has idea why is this? Regards Roshan -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: *+94752126789* Email: ros...@wso2.com *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Abimaran Kugathasan Software Engineer | WSO2 Inc Data APIs Technologies Team Mobile : +94 77 1708229 http://stackoverflow.com/users/515034 http://lk.linkedin.com/in/abimaran http://www.lkabimaran.blogspot.com/ https://github.com/abimaran https://twitter.com/abimaran ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: *+94752126789* Email: ros...@wso2.com *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Amalka Subasinghe Senior Software Engineer WSO2 Inc. Mobile: +94 77 9401267 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350
Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader
. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Duplicate Indexers in AM
Hi All, We have noticed this while debugging an Issue. Some indexers are duplicated from the registry indexers (XMLIndexter, PDFIndexer, MSWordIndexer ..etc) . The better way to extend if you need more functionality than default. Thanks Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Writing WSO2 carbon component - stub generation error
[java] Java Result: 1 [INFO] Executed tasks [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ org.wso2.carbon.student.mgt.stub --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ org.wso2.carbon.student.mgt.stub --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ org.wso2.carbon.student.mgt.stub --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ org.wso2.carbon.student.mgt.stub --- [INFO] Surefire report directory: /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/surefire-reports --- T E S T S --- Running org.org.wso2.carbon.student.mgt.stub.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.org.wso2.carbon.student.mgt.stub.AppTest Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-bundle-plugin:2.5.0:bundle (default-bundle) @ org.wso2.carbon.student.mgt.stub --- [WARNING] Bundle org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 : Unused Export-Package instructions: [org.wso2.carbon.student.mgt.*] [INFO] [INFO] --- maven-install-plugin:2.5.1:install (default-install) @ org.wso2.carbon.student.mgt.stub --- [INFO] Installing /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/org.wso2.carbon.student.mgt.stub-4.2.0.jar to /Users/thushara/.m2/repository/org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.jar [INFO] Installing /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/pom.xml to /Users/thushara/.m2/repository/org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.pom [INFO] [INFO] --- maven-bundle-plugin:2.5.0:install (default-install) @ org.wso2.carbon.student.mgt.stub --- [INFO] Installing org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.jar [INFO] Writing OBR metadata [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 8.935s [INFO] Finished at: Mon Aug 25 12:14:50 IST 2014 [INFO] Final Memory: 17M/51M [INFO] -- Thushara Kasun Ranawaka Software Engineer WSO2 Inc.; http://www.wso2.com lean.enterprise.middleware Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949* *thusha...@wso2.com thusha...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thushara Kasun Ranawaka Software Engineer WSO2 Inc.; http://www.wso2.com lean.enterprise.middleware Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949* *thusha...@wso2.com thusha...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Suhan Dharmasuriya Software Engineer - Test Automation *WSO2, Inc. * lean . enterprise . middleware Tel: +94 112 145345 Mob: +94 779 869138 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Suhan Dharmasuriya Software Engineer - Test Automation *WSO2, Inc. * lean . enterprise . middleware Tel: +94 112 145345 Mob: +94 779 869138 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Patch for kernel 4.2.0
On Wed, Aug 13, 2014 at 7:44 AM, Shameera Rathnayaka shame...@wso2.com wrote: Hi Ajith, Applied patch to kernel patch0009 , BTW i moved above JIRA to WSO2 CARBON[1] as it solve carbon kernel component. Please send a pull request to carbon kernel 4.3.0 git repo. Please merge [1]. [1]https://github.com/wso2-dev/carbon4-kernel/pull/66 Thanks Ajith [1] https://wso2.org/jira/browse/CARBON-14912 Thanks, Shameera. On Tue, Aug 12, 2014 at 9:35 PM, Ajith Vitharana aji...@wso2.com wrote: [Adding dev group.] On Tue, Aug 12, 2014 at 9:32 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Shameera, Please commit the patch [1] to registry.core. [1]https://wso2.org/jira/browse/REGISTRY-2262 Thanks Ajith. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Software Engineer - WSO2 Inc.* *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org shame...@apache.org* *phone: +9471 922 1454 %2B9471%20922%201454* *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561 *Twitter : *https://twitter.com/Shameera_R -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Patch for kernel 4.2.0
[Adding dev group.] On Tue, Aug 12, 2014 at 9:32 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Shameera, Please commit the patch [1] to registry.core. [1]https://wso2.org/jira/browse/REGISTRY-2262 Thanks Ajith. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Build failed in Jenkins: carbon-registry » WSO2 Carbon - Registry - Web Service #206
.carbon.registry.ws.api/ws/src/main/java/org/wso2/carbon/registry/ws/api/utils/CommonUtil.java uses unchecked or unsafe operations. [WARNING] Note: Recompile with -Xlint:unchecked for details. [INFO] 4 warnings [INFO] - [INFO] - [ERROR] COMPILATION ERROR : [INFO] - [ERROR] https://wso2.org/jenkins-pr-builder/job/carbon-registry/org.wso2.carbon$org.wso2.carbon.registry.ws.api/ws/src/main/java/org/wso2/carbon/registry/ws/api/WSRegistry.java:[45,8] org.wso2.carbon.registry.ws.api.WSRegistry is not abstract and does not override abstract method dumpLite(java.lang.String,java.io.Writer) in org.wso2.carbon.registry.core.Registry [INFO] 1 error [INFO] - -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Patch for kernel 4.2.0
On Wed, Aug 13, 2014 at 7:44 AM, Shameera Rathnayaka shame...@wso2.com wrote: Hi Ajith, Applied patch to kernel patch0009 , BTW i moved above JIRA to WSO2 CARBON[1] as it solve carbon kernel component. Please send a pull request to carbon kernel 4.3.0 git repo. [1] https://wso2.org/jira/browse/CARBON-14912 Thanks Shameera, I'll do. -Ajith. Thanks, Shameera. On Tue, Aug 12, 2014 at 9:35 PM, Ajith Vitharana aji...@wso2.com wrote: [Adding dev group.] On Tue, Aug 12, 2014 at 9:32 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Shameera, Please commit the patch [1] to registry.core. [1]https://wso2.org/jira/browse/REGISTRY-2262 Thanks Ajith. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Software Engineer - WSO2 Inc.* *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org shame...@apache.org* *phone: +9471 922 1454 %2B9471%20922%201454* *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561 *Twitter : *https://twitter.com/Shameera_R -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Webapps are not shown in Store UI in App-Manager Distributed Setup
Hi Rajeeva, On Wed, Jul 16, 2014 at 11:21 AM, Rajeeva Uthayasangar raje...@wso2.com wrote: Hi, Please find the mount config below: registry.xml (Publisher/Store/Gateway) -- dbConfig name=govregistry dataSourcejdbc/WSO2REG_DB/dataSource /dbConfig remoteInstance url=https://store.apim-wso2.com; idgov/id dbConfiggovregistry/dbConfig readOnlyfalse/readOnly enableCachetrue/enableCache registryRoot//registryRoot cacheIdroot@jdbc :mysql://localhost:3306/regdb?autoReconnect=trueamp;relaxAutoCommit=true/cacheId /remoteInstance mount path=/_system/config overwrite=true instanceIdgov/instanceId targetPath/_system/config/targetPath /mount mount path=/_system/governance overwrite=true instanceIdgov/instanceId targetPath/_system/governance/targetPath /mount Cache is not being updated when there is a state transition. Had a offline discussion with Ajith and reported Jira [1]. [1]. https://wso2.org/jira/browse/REGISTRY-2229 The description of the public JIRA is bit wrong. Because there is no any relation of the lastAccesTime resource name change here. Issue is due to registry caching not updating properly in store end (You can get the distributed setup works after disable the cache). Thanks Ajith Thanks, Rajeeva. On Wed, Jul 16, 2014 at 7:01 AM, Ajith Vitharana aji...@wso2.com wrote: This can be due to registry caching not updating properly in the distributed setup. Please double check the mount config. Thanks Ajith On Fri, Jul 11, 2014 at 12:15 PM, Rajeeva Uthayasangar raje...@wso2.com wrote: Hi, I'm testing the App-Manager in a distributed deployment with mounted registry. I have created webapp and published from Publisher and it is not being shown in Store UI. But if i rename the lastAccessTimeLocation of indexingConfiguration in registry.xml, it gets listed in the Store. Every time when the webapp is created i need to rename this configuration to see the newly created webapp in the Store UI. Thanks, Rajeeva. -- *Rajeeva Uthayasangar* Software Engineer WSO2, Inc.:http://wso2.com Mobile: +94777298873 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Rajeeva Uthayasangar* Software Engineer WSO2, Inc.:http://wso2.com Mobile: +94777298873 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Webapps are not shown in Store UI in App-Manager Distributed Setup
This can be due to registry caching not updating properly in the distributed setup. Please double check the mount config. Thanks Ajith On Fri, Jul 11, 2014 at 12:15 PM, Rajeeva Uthayasangar raje...@wso2.com wrote: Hi, I'm testing the App-Manager in a distributed deployment with mounted registry. I have created webapp and published from Publisher and it is not being shown in Store UI. But if i rename the lastAccessTimeLocation of indexingConfiguration in registry.xml, it gets listed in the Store. Every time when the webapp is created i need to rename this configuration to see the newly created webapp in the Store UI. Thanks, Rajeeva. -- *Rajeeva Uthayasangar* Software Engineer WSO2, Inc.:http://wso2.com Mobile: +94777298873 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] LoginListener not catching login events
On Wed, Jul 16, 2014 at 10:54 AM, Denuwanthi De Silva denuwan...@wso2.com wrote: Hi, The LoginListener (RXTLoader.java) does not seems to catch the login events invoked inside 'AuthenticationAdmin' backend service login method. (but works fine with the UI loggings) What could be the cause? What is your requirement ? If you are going to do some governance artifact access from a client/API, first should invoke GovernanceUtils. loadGovernanceArtifacts(). Thanks Ajith. Thanks, -- Denuwanthi De Silva Software Engineer; WSO2 Inc.; http://wso2.com, Email: denuwan...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Optimize the configurations in api-manager.xml
Hi All, Most of the time we deploy the AM as a distributed cluster and we can't use thrift for key validations. So our recommendation to use WSClient instead of thrift. Therefore it is better to keep the default configuration with WSClient and disable thrift, using that we can deduce the a configurations step. The advance is configuring the so many instances. KeyValidatorClientType*WSClient*/KeyValidatorClientType ThriftClientPort10397/ThriftClientPort ThriftClientConnectionTimeOut1/ThriftClientConnectionTimeOut ThriftServerPort10397/ThriftServerPort !--ThriftServerHostlocalhost/ThriftServerHost-- EnableThriftServer*false*/EnableThriftServer WDYT ? Thanks. Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Optimize the configurations in api-manager.xml
Hi Sumedha, On Thu, Jun 12, 2014 at 7:53 PM, Sumedha Rubasinghe sume...@wso2.com wrote: But normal practice is to have the best possible configuration as the default one. Why WSClient is not best for default, even we recommended it for production ? Thanks Ajith. On Thu, Jun 12, 2014 at 7:51 PM, Ajith Vitharana aji...@wso2.com wrote: Hi All, Most of the time we deploy the AM as a distributed cluster and we can't use thrift for key validations. So our recommendation to use WSClient instead of thrift. Therefore it is better to keep the default configuration with WSClient and disable thrift, using that we can deduce the a configurations step. The advance is configuring the so many instances. KeyValidatorClientType*WSClient*/KeyValidatorClientType ThriftClientPort10397/ThriftClientPort ThriftClientConnectionTimeOut1/ThriftClientConnectionTimeOut ThriftServerPort10397/ThriftServerPort !--ThriftServerHostlocalhost/ThriftServerHost-- EnableThriftServer*false*/EnableThriftServer WDYT ? Thanks. Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- /sumedha m: +94 773017743 b : bit.ly/sumedha -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issue on WSRegistry Service Client on content reading concurrently on a single connection
Please find the blog post [1]. [1]http://ajithvblogs.blogspot.de/2013/11/jmeter-java-request-to-test.html Thanks. Ajith On Tue, Jun 10, 2014 at 8:28 PM, Subash Chaturanga sub...@wso2.com wrote: Hi , This is regarding issue on WS Registry Service Client in high concurrency which seems blocks the AF release. When reading the content with several threads in AF, i.e two resources path = /foo/r1 content = 12345 path = /foo/r2 content = 67 For AF guys, when they retrieve r1 and r2 resources, i.e for r1 - returns 12345 but r2 returns 67*45* ( r2 returns with some values from old resource content. ) When dig deep with Janaka, found that, in server side org.wso2.carbon.registry.ws.api.WSRegistry maintains single tempFile per instance. And it get used to maintain the content to pass to client side inside the DataHolder. Hence obviously we can expect this issue in a but high concurrency. So as a solution when creating the data holder we create a copy of the aforementioned file as follows. And then for multiple requests on the same ws connection it deals with separate files and issue went away. But this leads to grow the tmp files in the tmp directory but upon server downtime those will get vanished. With the following fix, since files are growing, one option is to do an additional ws call inside ws-client to server side to clean up the particular file. But it seems not a best solution. *So @Senaka @Ajith, Any better solution you can see ? * Index: src/main/java/org/wso2/carbon/registry/ws/api/utils/CommonUtil.java === --- src/main/java/org/wso2/carbon/registry/ws/api/utils/CommonUtil.java (revision 204294) +++ src/main/java/org/wso2/carbon/registry/ws/api/utils/CommonUtil.java (working copy) @@ -193,6 +193,9 @@ } public static DataHandler makeDataHandler(Resource resource, File tempFile) throws IOException, RegistryException{ +tempFile = File.createTempFile(wsresource, .tmp); +tempFile.deleteOnExit(); + if (resource.getContent() == null) { return null; } -- Thanks /subash *Subash Chaturanga* Senior Software Engineer :Platform TG; WSO2 Inc. http://wso2.com email: sub...@wso2.com blog: http://subashsdm.blogspot.com/ twitter: @subash89 phone: +9477 2225922 Lean . Enterprise . Middleware -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issues with registering a custom Indexer
Hi Nuwan, 1. First check adding the customer indexer including the profile as well. Eg: This is the one already in AM. indexer class=org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer mediaTypeRegEx=application/vnd.(.)+\+xml profiles =default,api-store,api-publisher/ 2. Please verify the media type of the resource is matching to the given type in indexing configuration. Thanks. Ajith On Mon, Jun 9, 2014 at 7:34 PM, Nuwan Dias nuw...@wso2.com wrote: Hi, I'm trying to register a custom indexer for the API Manager. I have indexer in an external jar file and put in to the components/lib directory. The Indexer implements the org.wso2.carbon.registry.indexing.indexer.Indexer interface and the 'getIndexedDocument' method. I have registered my indexer in the registry.xml as indexer class=org.wso2.carbon.wsdl.indexer.WSDLIndexer mediaTypeRegEx=application/api+wsdl+xml/ When I create a registry resource with the above provided media type, the indexer does not seem to execute. Anything wrong I could be doing or is there anything else to be done? I have some debug logs and sysouts within my indexer, these are not being printed at the moment. That's how I figured the indexer is not running. Is there any way to find out whether a resource was indexed? Thanks, NuwanD. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issues with registering a custom Indexer
Hi Nuwan, Please try with a simple media type like application/test , If it also doesn't work please attach the jar and source. Thanks. Ajith. On Tue, Jun 10, 2014 at 8:48 AM, Nuwan Dias nuw...@wso2.com wrote: Yes. I initially had it as '*application/**wsdl+xml*' but it didn't work. I thought maybe its due to the registry treating wsdls in a special way. Then I changed to '*application/**api+wsdl+xml*' to try out. Thanks, NuwanD. On Mon, Jun 9, 2014 at 10:47 PM, Sumedha Rubasinghe sume...@wso2.com wrote: Nuwan, Is your regex correct? On Mon, Jun 9, 2014 at 10:43 PM, Nuwan Dias nuw...@wso2.com wrote: I checked with/without profiles and verified the media type as well. Which class triggers this method call? Any hint to debug and see? On Monday, June 9, 2014, Ajith Vitharana aji...@wso2.com wrote: Hi Nuwan, 1. First check adding the customer indexer including the profile as well. Eg: This is the one already in AM. indexer class=org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer mediaTypeRegEx=application/vnd.(.)+\+xml profiles =default,api-store,api-publisher/ 2. Please verify the media type of the resource is matching to the given type in indexing configuration. Thanks. Ajith On Mon, Jun 9, 2014 at 7:34 PM, Nuwan Dias nuw...@wso2.com wrote: Hi, I'm trying to register a custom indexer for the API Manager. I have indexer in an external jar file and put in to the components/lib directory. The Indexer implements the org.wso2.carbon.registry.indexing.indexer.Indexer interface and the 'getIndexedDocument' method. I have registered my indexer in the registry.xml as indexer class=org.wso2.carbon.wsdl.indexer.WSDLIndexer mediaTypeRegEx=application/api+wsdl+xml/ When I create a registry resource with the above provided media type, the indexer does not seem to execute. Anything wrong I could be doing or is there anything else to be done? I have some debug logs and sysouts within my indexer, these are not being printed at the moment. That's how I figured the indexer is not running. Is there any way to find out whether a resource was indexed? Thanks, NuwanD. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- /sumedha m: +94 773017743 b : bit.ly/sumedha -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AM-1.7]Remove the migrations scripts/guide from the disrtibution
Hi AM team, It is good to place the those scrips/guide out of the distribution and place some other place like SVN. The reasons are, 1. It is not useful for the user who start first time with AM. 2. We have full fights to fix the bugs in scripts/guides even after the release. migration-1.0.0_to_1.2.0 migration-1.2.0_to_1.3.0 migration-1.3.0_to_1.4.0 migration-1.4.0_to_1.5.0 migration-1.5.0_to_1.6.0 migration-1.6.0_to_1.7.0 WDYT ? Thanks Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2ES 1.1.0 - Failed to add asset Error
.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:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) -- *Ayesha Dissanayaka* Software Engineer, WSO2, Inc : http://wso2.com http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg 20, Palmgrove Avenue, Colombo 3 E-Mail: aye...@wso2.com ayshsa...@gmail.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2ES 1.1.0 - Failed to add asset Error
On Tue, Jun 3, 2014 at 5:15 PM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi Ajith, Thank you very much for the reply. :) Yes, I went through the log. My requirement is how to give authorization to the user. Since I am using same configuration as default asset types such as 'ebook', how can I not have permission for the created asset type(say 'cartridge'). When I assign 'admin' role to the created user, I can add assets without any issue. But my requirement is, users other than 'admin' to be able to add assets. Go to the registry location * /_system/governance/cartriges.* Expand the the permission tab, and allow the required authorizations for the role that user belong to. Thanks. Ajith. Thank you :) On Tue, Jun 3, 2014 at 5:00 PM, Ajith Vitharana aji...@wso2.com wrote: On Tue, Jun 3, 2014 at 4:28 PM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi, When I try to add new asset to the created store 'Apache Stratos Cartridges' as a newly registered user, it gives following error. As admin user, I can add assets without any issue. I have used default SampleLifeCycle2 as the life-cycle for this asset type. When I try to add assets for already available ES asset type[ex: ebook] which uses same life-cycle , assets successfully added. What am I doing wrong here? Reason in the log, Please read the exceptions. Failed to add new resource. U*ser ayesha does not have authorization to update the collection /_system/governance/cartriges.* Thanks. Ajith. [2014-06-03 16:06:35,375] ERROR {org.wso2.carbon.governance.api.common.GovernanceArtifactManager} - Failed to add artifact: artifact id: b3465be3-c41a-4bce-91e8-56196e594f6f. Failed to add new resource. User ayesha does not have authorization to update the collection /_system/governance/cartriges. org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add new resource. User ayesha does not have authorization to update the collection /_system/governance/cartriges. at org.wso2.carbon.registry.core.jdbc.Repository.addEmptyCollection(Repository.java:1167) at org.wso2.carbon.registry.core.jdbc.Repository.addEmptyCollection(Repository.java:1156) at org.wso2.carbon.registry.core.jdbc.Repository.add(Repository.java:1013) at org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:305) at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709) at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465) at org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657) at org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:194) at org.wso2.carbon.governance.api.generic.GenericArtifactManager.addGenericArtifact(GenericArtifactManager.java:170) at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.mozilla.javascript.gen.artifacts_18._c_anonymous_16(artifacts:235) at org.mozilla.javascript.gen.artifacts_18.call(artifacts) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.ext.scripts.c3._c_anonymous_4(/publisher/modules/ext/scripts/asset.action.save.js:90) at org.jaggeryjs.rhino.publisher.modules.ext.scripts.c3.call(/publisher/modules/ext/scripts/asset.action.save.js) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.ext.core.c2._c_anonymous_14(/publisher/modules/ext/core/extension.core.js:235) at org.jaggeryjs.rhino.publisher.modules.ext.core.c2.call(/publisher/modules/ext/core/extension.core.js) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.ext.core.c3._c_anonymous_10(/publisher/modules/ext/core/extension.management.js:144) at org.jaggeryjs.rhino.publisher.modules.ext.core.c3.call(/publisher/modules/ext/core/extension.management.js) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.ext.core.c3._c_anonymous_8(/publisher/modules/ext/core/extension.management.js:111) at org.jaggeryjs.rhino.publisher.modules.ext.core.c3.call(/publisher/modules/ext/core/extension.management.js) at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85) at org.jaggeryjs.rhino.publisher.assets.default.c1._c_anonymous_8(/publisher/assets/default/asset.jag:254
Re: [Dev] GroupManagement node in Non ELB cluster
On Mon, Jun 2, 2014 at 3:28 PM, Afkham Azeez az...@wso2.com wrote: It doesn't make sense to make normal cluster nodes group management nodes, at present. Thanks Azeez. -Ajith. On Mon, Jun 2, 2014 at 1:58 PM, Ajith Vitharana aji...@wso2.com wrote: Hi All, If we don't use the WSO2 ELB for clustering, Is it must to enable some other node in the cluster as the GroupManagement node ? If so , that node should be a worker or manager ? Thanks. Ajith !-- Enable the groupManagement entry if you need to run this node as a cluster manager. Multiple application domains with different GroupManagementAgent implementations can be defined in this section. -- groupManagement enable=false applicationDomain name=wso2.esb.domain description=ESB group agent=org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent subDomain=worker port=/ /groupManagement -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 %2B94%2077%203320919 blog: * *http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AM-1.7]AM publisher doing redundant calls to GW.
Hi Ruwan On Sat, May 31, 2014 at 7:43 AM, Ruwan Yatawara ruw...@wso2.com wrote: Hi Ajith, As per the latest release of APIM, we added a new life cycle state called prototyped. In that stage (it can be either and endpoint or a In line script implementation) also the api gets deployed in the gateway (mock api). In a production setup , what is the purpose of deploying mock API in the GW ? Thanks. Ajith However, if u just press just the save button at each stage and straight away move on to the manage section, said gateway calls will not be made. Thanks and Regards, Ruwan - sent from my mobile On 31 May 2014 02:43, Ajith Vitharana aji...@wso2.com wrote: Hi All, I have observed that publisher invoking the GW while creating a new API (at the each API design steps ). Why do we need that call before publishing to the GW ? Because we know that the state of the API is CREATED. org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 3 ms at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) *at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)* at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.login(AbstractAPIGatewayAdminClient.java:90) at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.setup(AbstractAPIGatewayAdminClient.java:53) at org.wso2.carbon.apimgt.impl.utils.RESTAPIAdminClient.init(RESTAPIAdminClient.java:40) * at org.wso2.carbon.apimgt.impl.APIGatewayManager.isAPIPublished(APIGatewayManager.java:247)* at org.wso2.carbon.apimgt.impl.APIProviderImpl.isAPIPublished(APIProviderImpl.java:929) at org.wso2.carbon.apimgt.impl.APIProviderImpl.updateAPI(APIProviderImpl.java:508) at org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.updateAPI(UserAwareAPIProvider.java:58) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.saveAPI(APIProviderHostObject.java:727) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_updateAPIDesign(APIProviderHostObject.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.api.c4._c_anonymous_6(/publisher/modules/api/add.jag:119) at org.jaggeryjs.rhino.publisher.modules.api.c4.call(/publisher/modules/api/add.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_29(/publisher/modules/api/module.jag:95) at org.jaggeryjs.rhino.publisher.modules.api.c0
[Dev] [AM-1.7]AM publisher doing redundant calls to GW.
) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag) at org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.exec(/publisher/site/blocks/item-design/ajax/add.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:570) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:432) at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) 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.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketTimeoutException: connect timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140) -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AM-1.7]Sample README outdated. .
Please note. Eg: Go to wso2am-1.0.0/bin folder type 'ant' Run wso2am-1.0.0/samples/YoutubeFeeds/APIPopulator.sh (or APIPopulator.bat if you are on Windows) Extract wso2am-xxx.zip (eg: wso2am-1.0.0.zip) Thanks. Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [ELB 2.1.1/2.1.0]Duplicate member joined logs
Hi All Is this due to just duplicate logs , or joining twice ? *[2014-05-26 11:56:37,064] INFO - HazelcastGroupManagementAgent Member joined [e7b12abd-ee93-4d11-9d80-2d6b27a1256c]: worker1.am.gw.com/127.0.0.1:4002 http://worker1.am.gw.com/127.0.0.1:4002* *[2014-05-26 11:56:37,064] INFO - HazelcastGroupManagementAgent Member joined [e7b12abd-ee93-4d11-9d80-2d6b27a1256c]: worker1.am.gw.com/127.0.0.1:4002 http://worker1.am.gw.com/127.0.0.1:4002* [2014-05-26 11:56:40,135] INFO - MemberUtils Added member: Host:127.0.0.1, Remote Host:null, Port: 4002, HTTP:8282, HTTPS:8245, Domain: wso2.am.domain, Sub-domain:worker, Active:true [2014-05-26 11:56:40,136] INFO - HazelcastGroupManagementAgent Application member Host:127.0.0.1, Remote Host:null, Port: 4002, HTTP:8282, HTTPS:8245, Domain: wso2.am.domain, Sub-domain:worker, Active:true joined application cluster Thanks. Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What should be the correct behavior in publishing services from G-Reg to APIM
On Tue, May 20, 2014 at 5:39 PM, Chathurika Mahaarachchi chathur...@wso2.com wrote: Hi, I tried “Integrating APIM with WSO2 Governance Registry Services” scenario with G-Reg 4.6.0 and API Manager 1.7.0 18th May pack . Configurations are added accordingly as mentioned in the docs. “ https://docs.wso2.org/display/AM160/Integrating+with+WSO2+Governance+Registry+Services” and I have added the following patch to the G-Reg https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/patches/patch0155 . Once I publish a service to APIM using G-reg , The service is published to to the APIM – Publisher page in created state. But according to the document is says it should publish in APIM Store. What should be the correct expected behavior and status in this scenario? It should be the publisher state, because the informations are available in G-Reg side is not enough to publish as a complete API to store. Thanks. Ajith. Thanks and Regards, Chathurika -- *Chathurika Mahaarachchi* Software Engineer, QA. WSO2 Inc.: http://wso2.com/ lean.enterprise.middleware Mobile: +94718223950 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Value too long for REG_VALUE issue in Registry
Hi Nuwan, On Sat, May 10, 2014 at 6:54 AM, Nuwan Dias nuw...@wso2.com wrote: On Fri, May 9, 2014 at 9:25 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Uvindra, On Fri, May 9, 2014 at 5:47 PM, Uvindra Dias Jayasinha uvin...@wso2.comwrote: This limitation was highlighted during the discussion we had with Ajith just before work on the API Store forum was started. As I mentioned we ran into the same limitation when developing the development governance solution. The text area that was to store custom javascript rules could not accommodate anything exceeding 1000 characters. In the end after discussing with Senaka we solved the problem by increasing the column size of REG_VALUE to 5000 and changing the DB scripts that were shipped with the solution accordingly. So, what happen when the length is 5001 ? :) Yes, I think we should someday fix this rxt field to property mapping. Otherwise there's no point in having a field called 'text-area' in the rxt right? Its capabilities become limited to same as the 'text' field. Besides, from a user POV, there's no point in creating a property in the rxt for each field. And when you comes across the need to store more than 1000 characters in an artifact, you're totally blocked from doing so and have to resort to other complicated measures. So I suggest that we make it a point to fix this urgently when appropriate. Kernel 4.3.0 or C5 at least. Sooner the better :) As I mentioned early, property is the storage model we used for RXT. Storing the whole content as XML (BLOB) and parsing XML each time is NOT a solution at all. Registry schema is a generic one to platform and it can't be change the with the requirement of all new features. So, what we can do is use the existing feature combinations to support the new requirement. If you want to store the large content/doc with artifact, then store that content as separate resource and build the dependency/association with the artifacts. WDYT ? Thanks. Ajith. Thanks. Ajith. On Fri, May 9, 2014 at 5:29 PM, Nuwan Dias nuw...@wso2.com wrote: Hi Ajith, We're developing a forum for the API Store using the registry as the storage medium. Each topic/reply is stored in the registry as an artifact. Topics/Replies have a rich text editor which supports code blocks, etc. This text-area has been mapped to a text-area field in the rxt. So limiting the characters to 1000 is not very feasible in this scenario. Are you saying that increasing the column size of REG_VALUE is not a good idea? Thanks, NuwanD. On Fri, May 9, 2014 at 5:22 PM, Ajith Vitharana aji...@wso2.comwrote: Hi Nuwan, We store the each filed as properties of the artifacts, that is the data model used. Anyway, having the 1000 characters for the given field is a special case. So, it is not better to increase the default schema to handle this use case. Can't we limit the characters length for that text-area ? Thanks. Ajith. On Fri, May 9, 2014 at 3:18 PM, Nuwan Dias nuw...@wso2.com wrote: Hi, I have an rxt on which I am using a text-area field. However I get the following error if I am to put more that 1000 characters in the field. org.h2.jdbc.JdbcSQLException: Value too long for column REG_VALUE VARCHAR(1000): STRINGDECODE('tabletbodytrtd class=\votecell\div class=\vote\\nspan class=\vote-count-post \2/span\n... (1107); SQL statement: INSERT INTO REG_PROPERTY (REG_NAME, REG_VALUE, REG_TENANT_ID) VALUES (?, ?, ?) [90005-140] The reason for the above problem is due to the fact that each field in the rxt is also saved as a rxt property. The column length in the database for the property value is 1000 characters. Therefore basically its not possible to have a field in the rxt which is more than 1000 characters long. I see this as a serious limitation. The only possible workaround I see is to increase the column size. Any other solutions to this? Why do we need to have a property corresponding to each field in the rxt? If we can get rid of that, then we're good IMO. Thanks, NuwanD. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Uvindra Mobile: 33962 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev
Re: [Dev] Value too long for REG_VALUE issue in Registry
Hi Nuwan, We store the each filed as properties of the artifacts, that is the data model used. Anyway, having the 1000 characters for the given field is a special case. So, it is not better to increase the default schema to handle this use case. Can't we limit the characters length for that text-area ? Thanks. Ajith. On Fri, May 9, 2014 at 3:18 PM, Nuwan Dias nuw...@wso2.com wrote: Hi, I have an rxt on which I am using a text-area field. However I get the following error if I am to put more that 1000 characters in the field. org.h2.jdbc.JdbcSQLException: Value too long for column REG_VALUE VARCHAR(1000): STRINGDECODE('tabletbodytrtd class=\votecell\div class=\vote\\nspan class=\vote-count-post \2/span\n... (1107); SQL statement: INSERT INTO REG_PROPERTY (REG_NAME, REG_VALUE, REG_TENANT_ID) VALUES (?, ?, ?) [90005-140] The reason for the above problem is due to the fact that each field in the rxt is also saved as a rxt property. The column length in the database for the property value is 1000 characters. Therefore basically its not possible to have a field in the rxt which is more than 1000 characters long. I see this as a serious limitation. The only possible workaround I see is to increase the column size. Any other solutions to this? Why do we need to have a property corresponding to each field in the rxt? If we can get rid of that, then we're good IMO. Thanks, NuwanD. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Value too long for REG_VALUE issue in Registry
On Fri, May 9, 2014 at 5:29 PM, Nuwan Dias nuw...@wso2.com wrote: Hi Ajith, We're developing a forum for the API Store using the registry as the storage medium. Each topic/reply is stored in the registry as an artifact. Topics/Replies have a rich text editor which supports code blocks, etc. This text-area has been mapped to a text-area field in the rxt. So limiting the characters to 1000 is not very feasible in this scenario. Are you saying that increasing the column size of REG_VALUE is not a good idea?. Changing the default script to support this case is not a good option, because all the other scenarios works fine with default length. AFAIK, if we increase the length of REG_VALUE , that can be affect to increase the db space as well ?. Can't we store in multiple (unbounded) text-area ? Thanks. Ajith Thanks, NuwanD. On Fri, May 9, 2014 at 5:22 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Nuwan, We store the each filed as properties of the artifacts, that is the data model used. Anyway, having the 1000 characters for the given field is a special case. So, it is not better to increase the default schema to handle this use case. Can't we limit the characters length for that text-area ? Thanks. Ajith. On Fri, May 9, 2014 at 3:18 PM, Nuwan Dias nuw...@wso2.com wrote: Hi, I have an rxt on which I am using a text-area field. However I get the following error if I am to put more that 1000 characters in the field. org.h2.jdbc.JdbcSQLException: Value too long for column REG_VALUE VARCHAR(1000): STRINGDECODE('tabletbodytrtd class=\votecell\div class=\vote\\nspan class=\vote-count-post \2/span\n... (1107); SQL statement: INSERT INTO REG_PROPERTY (REG_NAME, REG_VALUE, REG_TENANT_ID) VALUES (?, ?, ?) [90005-140] The reason for the above problem is due to the fact that each field in the rxt is also saved as a rxt property. The column length in the database for the property value is 1000 characters. Therefore basically its not possible to have a field in the rxt which is more than 1000 characters long. I see this as a serious limitation. The only possible workaround I see is to increase the column size. Any other solutions to this? Why do we need to have a property corresponding to each field in the rxt? If we can get rid of that, then we're good IMO. Thanks, NuwanD. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Test failures - wso2greg-5.0.0-SNAPSHOT
Hi Krishantha, The product-greg build is unstable due to test failures. Please note. [1] http://54.84.136.218:8080/jenkins/view/product-builds/job/product-greg/28/ Thanks. Ajith. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Test failures - wso2greg-5.0.0-SNAPSHOT
Hi Krishantha, On Tue, May 6, 2014 at 10:23 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Product teams need to own these test failure in future. We've enabled only the tests passing in our local machine. I wanted to verify those failures whether due to latest test migrations or actual bugs. So, if those test was passing before the migration that should be passed after the migrated as well. Thanks. Ajith Thanks, Krishantha. On Tue, May 6, 2014 at 10:21 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Most failures are due to user management issue which is reported at - https://wso2.org/jira/browse/IDENTITY-2230 Can someone form IS team please have a look. Thanks, Krishantha. On Tue, May 6, 2014 at 8:49 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Krishantha, The product-greg build is unstable due to test failures. Please note. [1] http://54.84.136.218:8080/jenkins/view/product-builds/job/product-greg/28/ Thanks. Ajith. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Usage of internal and Export-Package in AM components
Hi Ruwan, On Thu, May 1, 2014 at 9:48 PM, Ruwan Yatawara ruw...@wso2.com wrote: Hi Ajith, I've done the necessary changes to remove the impl.internal references. Can you please apply the attached patch as it seems I don't have access to the carbon-apimgt component for some reason (ERROR: Permission to wso2/carbon-apimgt.git denied to ruwany.) All the tests ran successfully. Do let me know if you encounter further issues. @Kishanthan, thanks for the insight, I've done the fix accordingly. Thanks for providing this patch. But I also can't apply due to set of conflicts. -Ajith. Thanks and Regards, Ruwan Yatawara WSO2 Inc. email : ruw...@wso2.com mobile : +94 77 9110413 blog : http://thoughts.ruwan-ace.com/ www: :http://wso2.com On Tue, Apr 29, 2014 at 9:38 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: On Tue, Apr 29, 2014 at 6:08 PM, Sanjeewa Malalgoda sanje...@wso2.comwrote: On Tue, Apr 29, 2014 at 6:06 PM, Ajith Vitharana aji...@wso2.comwrote: Sanjeewa, On Tue, Apr 29, 2014 at 5:54 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Tue, Apr 29, 2014 at 5:11 PM, Ajith Vitharana aji...@wso2.comwrote: Hi All, The org.wso2.carbon.apimgt.impl has defined the org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but there are some usage inside the other bundles. org.wso2.carbon.apimgt.hostobjects, org.wso2.carbon.apimgt.usage, org.wso2.carbon.apimgt.keymgt ..etc Private-Package * org.wso2.carbon.apimgt.impl.internal* /Private-Package Export-Package *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,* org.wso2.carbon.apimgt.impl.*, /Export-Package We are getting following build failure due to the above wrong usage. And why do we have export(not -!) *class* instead of package ? Here we need to expose only ServiceReferenceHolder to other packages to get configs and etc. And we do not need to expose APIManagerComponent to outside. So lets proceed accordingly. Anyway we didn't got any build failures in builder machine. How it effect here? If you need to expose the ServiceReferenceHolder class to out side, that class should NOT be inside the internal package, because we don't expose internal package to outside. AFAIK you can only the export(or not) the packages , NOT classes. Yes that is exactly what i meant. Ideal solution would be taking ServiceReferenceHolder class to outside from internal package. This is wrong. First, you can only export packages from OSGi bundles, not classes. Also what is the purpose of exposing ServiceHolder outside of a bundle? ServiceReferenceHolder (which stores OSGi service reference objects) should only be used within the bundle and should not be exposed outside. That is why we, as practice, put them under internal package structure and make them private. If you want to use the service references in another bundle, you have to use the same approach with DS components and service reference holders. Thanks, sanjeewa. -Ajith. Thanks, sanjeewa. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml Installation failed. Cannot complete the install because one or more required items could not be found. Software being installed: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT) Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found Cannot satisfy dependency: From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT) To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT] Application failed, log file location: /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/ -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http
[Dev] [GIT]G-Reg 5 startup error due to Identity components.
) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) *Caused by: java.io.FileNotFoundException: Thrift Authentication configuration not found. Cause - * * at org.wso2.carbon.identity.thrift.authentication.internal.util.ThriftAuthenticationConfigParser.buildConfiguration(ThriftAuthenticationConfigParser.java:108)* * at org.wso2.carbon.identity.thrift.authentication.internal.util.ThriftAuthenticationConfigParser.init(ThriftAuthenticationConfigParser.java:51)* * ... 65 more* -Ajith. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Flush the 4.3.0 Kernel PR queue
Hi Sameera/Kishanthan There are test failures in the kernel (wso2), did u ran with the test before merge ? [1]http://54.84.136.218:8080/jenkins/job/carbon4-kernel/195/consoleFull Thanks Ajith. On Wed, Apr 23, 2014 at 11:42 PM, Sameera Jayasoma same...@wso2.com wrote: On Wed, Apr 23, 2014 at 11:00 AM, Ajith Vitharana aji...@wso2.com wrote: Sameera, On Wed, Apr 23, 2014 at 9:48 PM, Sameera Jayasoma same...@wso2.comwrote: Ajith, Yes we were working on this behind the scenes. Specially Kishanthan and Manoj since I am not available for this work until next week. But we cannot simply flush the queue without properly reviewing the changes. Understood the process. But we should have at least 2 owners to merge those commits periodically without keeping the commits long time in the queue. Agreed. I thought the same. But AFAIK, it is a temporary measure to keep an owner for master product repos. In the future only Jenkins will be able to commit. -Ajith. Sameera. On Wed, Apr 23, 2014 at 2:29 AM, Ajith Vitharana aji...@wso2.comwrote: On Wed, Apr 23, 2014 at 9:26 AM, Ajith Vitharana aji...@wso2.comwrote: On Tue, Apr 22, 2014 at 12:18 PM, Kasun Gajasinghe kas...@wso2.comwrote: Hi Sameera, Could you please do $subject? There are 15+ commits waiting in the queue. [1] https://github.com/wso2/carbon4-kernel/pull/4 Please review and merge immediately, because some fixes are blockers for the build stabilization hackathon. Is anyone working on this ? -Ajith. Thanks -Ajith. Thanks, KasunG -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [G-Reg]How to verify non-admin users to registry email notifications?
On Tue, Apr 29, 2014 at 11:39 AM, Chamila Wijayarathna cham...@wso2.comwrote: Hi Subash, I selected notification permission for everyone role, but still getting the same result.[1] is the complete message I am receiving at terminal. 1. https://gist.github.com/cdwijayarathna/11391761 Under the 1. Notification section there are three permissions, Did you check all (Browse , Notifications, Community Features ) ? 1. Notifications 1. All PermissionAdmin PermissionsManageResourcesBrowse 2. All PermissionAdmin PermissionsManageResourcesNotifications 3. All PermissionAdmin PermissionsManageResourcesCommunity Features Thanks. Ajith Thank You. On Tue, Apr 29, 2014 at 11:14 AM, Subash Chaturanga sub...@wso2.comwrote: Hi Chamila, Apparently the user does not have Notifications permissions . Refer [1] to add it to the user. [1] - https://docs.wso2.org/display/Governance460/Roles On Tue, Apr 29, 2014 at 11:02 AM, Chamila Wijayarathna cham...@wso2.comwrote: Hello all, In Enterprise Store, I'm trying to implement email notification system to notify users about new versions of an asset which a particular user has already downloaded. I used registry notification system to implement this. But when user tries to verify subscription, it fails since it requires user to have admin privileges. *[2014-04-29 10:09:56,720] ERROR {java.lang.Class} - Access Denied. Failed authorization attempt to access service 'InfoAdminService' operation 'verifyEmail' by 'chamila'* Is there any workaround for this which enables normal users to verify subscription to email notifications? Thank You! -- *Chamila Wijayarathna* Engineering Intern, WSO2 Inc. -- Thanks /subash *Subash Chaturanga* Senior Software Engineer :Integration TG; WSO2 Inc. http://wso2.com email: sub...@wso2.com blog: http://subashsdm.blogspot.com/ twitter: @subash89 phone: +9477 2225922 Lean . Enterprise . Middleware -- *Chamila Wijayarathna* Engineering Intern, WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Usage of internal and Export-Package in AM components
Hi All, The org.wso2.carbon.apimgt.impl has defined the org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but there are some usage inside the other bundles. org.wso2.carbon.apimgt.hostobjects, org.wso2.carbon.apimgt.usage, org.wso2.carbon.apimgt.keymgt ..etc Private-Package * org.wso2.carbon.apimgt.impl.internal* /Private-Package Export-Package *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,* org.wso2.carbon.apimgt.impl.*, /Export-Package We are getting following build failure due to the above wrong usage. And why do we have export(not -!) *class* instead of package ? [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml Installation failed. Cannot complete the install because one or more required items could not be found. Software being installed: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT) Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found Cannot satisfy dependency: From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT) To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT] Application failed, log file location: /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Usage of internal and Export-Package in AM components
Sanjeewa, On Tue, Apr 29, 2014 at 5:54 PM, Sanjeewa Malalgoda sanje...@wso2.comwrote: On Tue, Apr 29, 2014 at 5:11 PM, Ajith Vitharana aji...@wso2.com wrote: Hi All, The org.wso2.carbon.apimgt.impl has defined the org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but there are some usage inside the other bundles. org.wso2.carbon.apimgt.hostobjects, org.wso2.carbon.apimgt.usage, org.wso2.carbon.apimgt.keymgt ..etc Private-Package * org.wso2.carbon.apimgt.impl.internal* /Private-Package Export-Package *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,* org.wso2.carbon.apimgt.impl.*, /Export-Package We are getting following build failure due to the above wrong usage. And why do we have export(not -!) *class* instead of package ? Here we need to expose only ServiceReferenceHolder to other packages to get configs and etc. And we do not need to expose APIManagerComponent to outside. So lets proceed accordingly. Anyway we didn't got any build failures in builder machine. How it effect here? If you need to expose the ServiceReferenceHolder class to out side, that class should NOT be inside the internal package, because we don't expose internal package to outside. AFAIK you can only the export(or not) the packages , NOT classes. -Ajith. Thanks, sanjeewa. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml Installation failed. Cannot complete the install because one or more required items could not be found. Software being installed: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT) Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found Cannot satisfy dependency: From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT) To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT] Application failed, log file location: /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/ -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [GIT]G-Reg (wso2greg-5.0.0-SNAPSHOT) start up error.
) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GIT]G-Reg (wso2greg-5.0.0-SNAPSHOT) start up error.
On Tue, Apr 29, 2014 at 9:39 PM, Lalaji Sureshika lal...@wso2.com wrote: Hi Ajith, This could be due to you are referring org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject class from a module.xml copied as a jaggery-module [probably from bin.xml of GReg] to GReg pack in the location {GReg_Home}/modules. Yes, thanks for the prompt response . We are no longer use that , therefore should be removed. -Ajith. Thanks; On Tue, Apr 29, 2014 at 12:02 PM, Ajith Vitharana aji...@wso2.com wrote: Hi Ruwan/UdaraR, I'm getting the following startup error in the pack built on git (product-greg). The AssetStoreHostObject class is no longer exist in the org.wso2.carbon.apimgt.hostobjects (1.2.2) bundle [1]. @UdaraR, We are using org.jaggeryjs.feature : 0.9.0.ALPHA5.wso2v1-SNAPSHOT. ? Do we have newer version ? [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.2.2/src/main/java/org/wso2/carbon/apimgt/hostobjects/ [2014-04-29 21:18:30,916] *ERROR {org.jaggeryjs.jaggery.core.manager.ModuleManager} - Error while adding HostObject : AssetStore org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject* *java.lang.ClassNotFoundException: org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject* at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:475) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.jaggeryjs.jaggery.core.manager.ModuleManager.initHostObjects(ModuleManager.java:251) at org.jaggeryjs.jaggery.core.manager.ModuleManager.initModule(ModuleManager.java:129) at org.jaggeryjs.jaggery.core.manager.ModuleManager.loadModule(ModuleManager.java:83) at org.jaggeryjs.jaggery.core.manager.ModuleManager.init(ModuleManager.java:72) at org.jaggeryjs.jaggery.core.manager.ModuleManager.init(ModuleManager.java:56) at org.jaggeryjs.jaggery.core.manager.CommonManager.initialize(CommonManager.java:69) at org.jaggeryjs.jaggery.core.manager.WebAppManager.clinit(WebAppManager.java:83) at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:275) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:280) at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:202) at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:204) at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:213) at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:139) at org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:109) at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140) at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90) at org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135) at org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
Re: [Dev] Test failures in carbon-apimgt
According to the surefire-report, this error is due to the old db scrips, please update. Caused by: org.h2.jdbc.JdbcSQLException: Table IDN_OAUTH2_RESOURCE_SCOPE not found; SQL statement: INSERT INTO IDN_OAUTH2_RESOURCE_SCOPE (RESOURCE ,SCOPE_ID ) VALUES (?,?) [42102-140] Thanks. Ajith On Mon, Apr 28, 2014 at 12:45 PM, Ajith Vitharana aji...@wso2.com wrote: Hi All, Please fix and commit to https://github.com/wso2/carbon-apimgt --- T E S T S --- Running org.wso2.carbon.apimgt.impl.dao.test.TestRealmService Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running org.wso2.carbon.apimgt.impl.dao.test.TestTenantManager Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest log4j:WARN No appenders could be found for logger (org.apache.axiom.om.util.StAXUtils). log4j:WARN Please initialize the log4j system properly. Tests run: 14, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.364 sec FAILURE! Running org.wso2.carbon.apimgt.impl.template.TemplateBuilderTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.wso2.carbon.apimgt.impl.token.TokenGenTest Generated Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0=.eyJpc3MiOiJ3c28yLm9yZy9wcm9kdWN0cy9hbSIsImV4cCI6MTM5ODY2OTIxNjkwNiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9zdWJzY3JpYmVyIjoic2FzdHJ5IiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbmlkIjoiMSIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvYXBwbGljYXRpb25uYW1lIjoiaHViYXBwIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbnRpZXIiOiJVTkxJTUlURUQiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2FwaWNvbnRleHQiOiJjcmljU2NvcmUiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL3ZlcnNpb24iOiIxLjkuMCIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvdGllciI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2tleXR5cGUiOiJudWxsIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy91c2VydHlwZSI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXIiOiJkZW5pc0BjYXJib24uc3VwZXIiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXJUZW5hbnRJZCI6Ii0xMjM0In0=. Header: {typ:JWT,alg:none} Body: {iss:wso2.org/products/am,exp:1398669216906, http://wso2.org/claims/subscriber:sastry,; http://wso2.org/claims/applicationid:1,; http://wso2.org/claims/applicationname:hubapp,; http://wso2.org/claims/applicationtier:UNLIMITED,; http://wso2.org/claims/apicontext:cricScore,; http://wso2.org/claims/version:1.9.0,http://wso2.org/claims/tier :null,http://wso2.org/claims/keytype:null,; http://wso2.org/claims/usertype:null,http://wso2.org/claims/enduser :denis@carbon.super,http://wso2.org/claims/enduserTenantId:-1234} user name denis@carbon.super Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Results : Tests in error: testLifeCycleEvents(org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest): Error while adding URL template(s) to the database for API : org.wso2.carbon.apimgt.api.model.APIIdentifier@a2857b0 testKeyForwardCompatibility(org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest): Error while adding URL template(s) to the database for API : org.wso2.carbon.apimgt.api.model.APIIdentifier@8c2272cc Tests run: 18, Failures: 0, Errors: 2, Skipped: 0 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Test failures in carbon-apimgt
On Mon, Apr 28, 2014 at 12:50 PM, Ajith Vitharana aji...@wso2.com wrote: According to the surefire-report, this error is due to the old db scrips, please update. Caused by: org.h2.jdbc.JdbcSQLException: Table IDN_OAUTH2_RESOURCE_SCOPE not found; SQL statement: INSERT INTO IDN_OAUTH2_RESOURCE_SCOPE (RESOURCE ,SCOPE_ID ) VALUES (?,?) [42102-140]. This failure should be there in Turing as well, therefore please commit the fix to relevant chunk release as well. Thanks. Ajith. Thanks. Ajith On Mon, Apr 28, 2014 at 12:45 PM, Ajith Vitharana aji...@wso2.com wrote: Hi All, Please fix and commit to https://github.com/wso2/carbon-apimgt --- T E S T S --- Running org.wso2.carbon.apimgt.impl.dao.test.TestRealmService Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running org.wso2.carbon.apimgt.impl.dao.test.TestTenantManager Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest log4j:WARN No appenders could be found for logger (org.apache.axiom.om.util.StAXUtils). log4j:WARN Please initialize the log4j system properly. Tests run: 14, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.364 sec FAILURE! Running org.wso2.carbon.apimgt.impl.template.TemplateBuilderTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.wso2.carbon.apimgt.impl.token.TokenGenTest Generated Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0=.eyJpc3MiOiJ3c28yLm9yZy9wcm9kdWN0cy9hbSIsImV4cCI6MTM5ODY2OTIxNjkwNiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9zdWJzY3JpYmVyIjoic2FzdHJ5IiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbmlkIjoiMSIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvYXBwbGljYXRpb25uYW1lIjoiaHViYXBwIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbnRpZXIiOiJVTkxJTUlURUQiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2FwaWNvbnRleHQiOiJjcmljU2NvcmUiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL3ZlcnNpb24iOiIxLjkuMCIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvdGllciI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2tleXR5cGUiOiJudWxsIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy91c2VydHlwZSI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXIiOiJkZW5pc0BjYXJib24uc3VwZXIiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXJUZW5hbnRJZCI6Ii0xMjM0In0=. Header: {typ:JWT,alg:none} Body: {iss:wso2.org/products/am,exp:1398669216906, http://wso2.org/claims/subscriber:sastry,; http://wso2.org/claims/applicationid:1,; http://wso2.org/claims/applicationname:hubapp,; http://wso2.org/claims/applicationtier:UNLIMITED,; http://wso2.org/claims/apicontext:cricScore,; http://wso2.org/claims/version:1.9.0,http://wso2.org/claims/tier :null,http://wso2.org/claims/keytype:null,; http://wso2.org/claims/usertype:null,http://wso2.org/claims/enduser :denis@carbon.super,http://wso2.org/claims/enduserTenantId:-1234} user name denis@carbon.super Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Results : Tests in error: testLifeCycleEvents(org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest): Error while adding URL template(s) to the database for API : org.wso2.carbon.apimgt.api.model.APIIdentifier@a2857b0 testKeyForwardCompatibility(org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest): Error while adding URL template(s) to the database for API : org.wso2.carbon.apimgt.api.model.APIIdentifier@8c2272cc Tests run: 18, Failures: 0, Errors: 2, Skipped: 0 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Test failures in carbon-apimgt
On Mon, Apr 28, 2014 at 1:33 PM, Ruwan Yatawara ruw...@wso2.com wrote: Hi Ajith, I rectified the issue in Turing branch, I've suddenly started facing some issues in committing to git. Therefore, can you add this patch. This should fix the test failure. Committed.! -Ajith. Thanks and Regards, Ruwan Yatawara WSO2 Inc. email : ruw...@wso2.com mobile : +94 77 9110413 blog : http://thoughts.ruwan-ace.com/ www: :http://wso2.com On Mon, Apr 28, 2014 at 12:52 PM, Ajith Vitharana aji...@wso2.com wrote: On Mon, Apr 28, 2014 at 12:50 PM, Ajith Vitharana aji...@wso2.comwrote: According to the surefire-report, this error is due to the old db scrips, please update. Caused by: org.h2.jdbc.JdbcSQLException: Table IDN_OAUTH2_RESOURCE_SCOPE not found; SQL statement: INSERT INTO IDN_OAUTH2_RESOURCE_SCOPE (RESOURCE ,SCOPE_ID ) VALUES (?,?) [42102-140]. This failure should be there in Turing as well, therefore please commit the fix to relevant chunk release as well. Thanks. Ajith. Thanks. Ajith On Mon, Apr 28, 2014 at 12:45 PM, Ajith Vitharana aji...@wso2.comwrote: Hi All, Please fix and commit to https://github.com/wso2/carbon-apimgt --- T E S T S --- Running org.wso2.carbon.apimgt.impl.dao.test.TestRealmService Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running org.wso2.carbon.apimgt.impl.dao.test.TestTenantManager Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest log4j:WARN No appenders could be found for logger (org.apache.axiom.om.util.StAXUtils). log4j:WARN Please initialize the log4j system properly. Tests run: 14, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.364 sec FAILURE! Running org.wso2.carbon.apimgt.impl.template.TemplateBuilderTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.wso2.carbon.apimgt.impl.token.TokenGenTest Generated Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0=.eyJpc3MiOiJ3c28yLm9yZy9wcm9kdWN0cy9hbSIsImV4cCI6MTM5ODY2OTIxNjkwNiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9zdWJzY3JpYmVyIjoic2FzdHJ5IiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbmlkIjoiMSIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvYXBwbGljYXRpb25uYW1lIjoiaHViYXBwIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbnRpZXIiOiJVTkxJTUlURUQiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2FwaWNvbnRleHQiOiJjcmljU2NvcmUiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL3ZlcnNpb24iOiIxLjkuMCIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvdGllciI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2tleXR5cGUiOiJudWxsIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy91c2VydHlwZSI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXIiOiJkZW5pc0BjYXJib24uc3VwZXIiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXJUZW5hbnRJZCI6Ii0xMjM0In0=. Header: {typ:JWT,alg:none} Body: {iss:wso2.org/products/am,exp:1398669216906, http://wso2.org/claims/subscriber:sastry,; http://wso2.org/claims/applicationid:1,; http://wso2.org/claims/applicationname:hubapp,; http://wso2.org/claims/applicationtier:UNLIMITED,; http://wso2.org/claims/apicontext:cricScore,; http://wso2.org/claims/version:1.9.0,http://wso2.org/claims/tier :null,http://wso2.org/claims/keytype:null,; http://wso2.org/claims/usertype:null,http://wso2.org/claims/enduser :denis@carbon.super,http://wso2.org/claims/enduserTenantId :-1234} user name denis@carbon.super Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Results : Tests in error: testLifeCycleEvents(org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest): Error while adding URL template(s) to the database for API : org.wso2.carbon.apimgt.api.model.APIIdentifier@a2857b0 testKeyForwardCompatibility(org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest): Error while adding URL template(s) to the database for API : org.wso2.carbon.apimgt.api.model.APIIdentifier@8c2272cc Tests run: 18, Failures: 0, Errors: 2, Skipped: 0 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [carbon-apimgt]Migrate AM from Turing to Git.
Hi All, The carbon-apimgt build is success with latest carbon-identity. So if the carbon-identity is added to jenkins , please add the carbon-apimgt as well. [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - API Management Aggregator Pom ... SUCCESS [0.144s] [INFO] WSO2 Carbon - API Security Handler Service Stub ... SUCCESS [4.669s] [INFO] WSO2 Carbon - API Key Management Stub . SUCCESS [7.050s] [INFO] API Management SUCCESS [0.005s] [INFO] WSO2 Carbon - Api for API Management .. SUCCESS [0.785s] [INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS [1.356s] [INFO] WSO2 Carbon - API Management Implementation ... SUCCESS [8.861s] [INFO] WSO2 Carbon - API Gateway . SUCCESS [7.034s] [INFO] WSO@ Carbon - API Management Usage Aggregator Module SUCCESS [0.009s] [INFO] WSO2 Carbon - API Management Usage Publisher .. SUCCESS [1:13.912s] [INFO] WSO2 Carbon - API Management Usage Client . SUCCESS [8.201s] [INFO] WSO2 Carbon - HostObject for API management ... SUCCESS [2.221s] [INFO] WSO2 Carbon - API Key Mgt . SUCCESS [1.804s] [INFO] WSO2 Carbon - API Management Core . SUCCESS [1.267s] [INFO] WSO2 Carbon - API Management Interceptor .. SUCCESS [1.456s] [INFO] WSO2 Carbon - API Management Startup Publisher SUCCESS [1.405s] [INFO] WSO2 Carbon - API management Feature Aggregator Module SUCCESS [0.054s] [INFO] WSO2 Carbon - Api management Core Feature . SUCCESS [3.117s] [INFO] WSO2 Carbon - Api management Gateway Feature .. SUCCESS [0.110s] [INFO] WSO2 Carbon - API Publisher Feature ... SUCCESS [6.086s] [INFO] WSO2 Carbon - API Store Feature ... SUCCESS [1.971s] [INFO] WSO2 Carbon - Api management Server Interceptor Feature SUCCESS [0.012s] [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature SUCCESS [0.093s] [INFO] WSO2 Carbon - Api management Feature .. SUCCESS [1.909s] [INFO] [INFO] BUILD SUCCESS [INFO] -Ajith. On Thu, Apr 24, 2014 at 10:27 AM, Ajith Vitharana aji...@wso2.com wrote: Hi All, I have migrated the AM components/stubs and features from the revision r200990 to Git. But i'm getting some compilation failure due to old identity dependencies. So, I have to wait until the identity migration is complete and Chamath is working on that. INFO] [INFO] API Management SUCCESS [0.155s] [INFO] WSO2 Carbon - Api for API Management .. SUCCESS [2.464s] [INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS [2.455s] [INFO] WSO2 Carbon - API Management Implementation ... SUCCESS [11.072s] [INFO] WSO2 Carbon - API Gateway . SUCCESS [4.925s] [INFO] WSO@ Carbon - API Management Usage Aggregator Module SUCCESS [0.004s] [INFO] WSO2 Carbon - API Management Usage Publisher .. SUCCESS [3.073s] [INFO] WSO2 Carbon - API Management Usage Client . SUCCESS [2.047s] [INFO] WSO2 Carbon - HostObject for API management ... SUCCESS [2.133s] [INFO] WSO2 Carbon - API Key Mgt . FAILURE [0.921s] [INFO] WSO2 Carbon - API Management Core . SKIPPED [INFO] WSO2 Carbon - API Management Interceptor .. SKIPPED [INFO] WSO2 Carbon - API Management Startup Publisher SKIPPED [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 29.898s [INFO] Finished at: Thu Apr 24 10:19:51 IST 2014 [INFO] Final Memory: 130M/903M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project org.wso2.carbon.apimgt.keymgt: Compilation failure: Compilation failure: [ERROR] /home/ajith/wso2/build/gitbuild/carbon-apimgt/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/service/APIKeyValidationService.java:[42,50] cannot find symbol [ERROR] symbol : class OAuth2ScopeValidator [ERROR] location: package org.wso2.carbon.identity.oauth2.validators [ERROR] /home/ajith/wso2/build/gitbuild/carbon-apimgt/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/service/APIKeyValidationService.java:[42,50] cannot find symbol [ERROR] symbol : class OAuth2ScopeValidator [ERROR] location: package org.wso2.carbon.identity.oauth2.validators [ERROR] /home/ajith/wso2/build/gitbuild/carbon-apimgt/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/service/APIKeyValidationService.java:[154,9] cannot
Re: [Dev] [carbon-apimgt]Migrate AM from Turing to Git.
Hi KasunG, Please add/start the carbon-apimgt to the jenkins build. -Ajith. On Sun, Apr 27, 2014 at 9:36 PM, Ajith Vitharana aji...@wso2.com wrote: Hi All, The carbon-apimgt build is success with latest carbon-identity. So if the carbon-identity is added to jenkins , please add the carbon-apimgt as well. [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - API Management Aggregator Pom ... SUCCESS [0.144s] [INFO] WSO2 Carbon - API Security Handler Service Stub ... SUCCESS [4.669s] [INFO] WSO2 Carbon - API Key Management Stub . SUCCESS [7.050s] [INFO] API Management SUCCESS [0.005s] [INFO] WSO2 Carbon - Api for API Management .. SUCCESS [0.785s] [INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS [1.356s] [INFO] WSO2 Carbon - API Management Implementation ... SUCCESS [8.861s] [INFO] WSO2 Carbon - API Gateway . SUCCESS [7.034s] [INFO] WSO@ Carbon - API Management Usage Aggregator Module SUCCESS [0.009s] [INFO] WSO2 Carbon - API Management Usage Publisher .. SUCCESS [1:13.912s] [INFO] WSO2 Carbon - API Management Usage Client . SUCCESS [8.201s] [INFO] WSO2 Carbon - HostObject for API management ... SUCCESS [2.221s] [INFO] WSO2 Carbon - API Key Mgt . SUCCESS [1.804s] [INFO] WSO2 Carbon - API Management Core . SUCCESS [1.267s] [INFO] WSO2 Carbon - API Management Interceptor .. SUCCESS [1.456s] [INFO] WSO2 Carbon - API Management Startup Publisher SUCCESS [1.405s] [INFO] WSO2 Carbon - API management Feature Aggregator Module SUCCESS [0.054s] [INFO] WSO2 Carbon - Api management Core Feature . SUCCESS [3.117s] [INFO] WSO2 Carbon - Api management Gateway Feature .. SUCCESS [0.110s] [INFO] WSO2 Carbon - API Publisher Feature ... SUCCESS [6.086s] [INFO] WSO2 Carbon - API Store Feature ... SUCCESS [1.971s] [INFO] WSO2 Carbon - Api management Server Interceptor Feature SUCCESS [0.012s] [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature SUCCESS [0.093s] [INFO] WSO2 Carbon - Api management Feature .. SUCCESS [1.909s] [INFO] [INFO] BUILD SUCCESS [INFO] -Ajith. On Thu, Apr 24, 2014 at 10:27 AM, Ajith Vitharana aji...@wso2.com wrote: Hi All, I have migrated the AM components/stubs and features from the revision r200990 to Git. But i'm getting some compilation failure due to old identity dependencies. So, I have to wait until the identity migration is complete and Chamath is working on that. INFO] [INFO] API Management SUCCESS [0.155s] [INFO] WSO2 Carbon - Api for API Management .. SUCCESS [2.464s] [INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS [2.455s] [INFO] WSO2 Carbon - API Management Implementation ... SUCCESS [11.072s] [INFO] WSO2 Carbon - API Gateway . SUCCESS [4.925s] [INFO] WSO@ Carbon - API Management Usage Aggregator Module SUCCESS [0.004s] [INFO] WSO2 Carbon - API Management Usage Publisher .. SUCCESS [3.073s] [INFO] WSO2 Carbon - API Management Usage Client . SUCCESS [2.047s] [INFO] WSO2 Carbon - HostObject for API management ... SUCCESS [2.133s] [INFO] WSO2 Carbon - API Key Mgt . FAILURE [0.921s] [INFO] WSO2 Carbon - API Management Core . SKIPPED [INFO] WSO2 Carbon - API Management Interceptor .. SKIPPED [INFO] WSO2 Carbon - API Management Startup Publisher SKIPPED [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 29.898s [INFO] Finished at: Thu Apr 24 10:19:51 IST 2014 [INFO] Final Memory: 130M/903M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project org.wso2.carbon.apimgt.keymgt: Compilation failure: Compilation failure: [ERROR] /home/ajith/wso2/build/gitbuild/carbon-apimgt/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/service/APIKeyValidationService.java:[42,50] cannot find symbol [ERROR] symbol : class OAuth2ScopeValidator [ERROR] location: package org.wso2.carbon.identity.oauth2.validators [ERROR] /home/ajith/wso2/build/gitbuild/carbon-apimgt/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/service/APIKeyValidationService.java:[42,50] cannot find symbol [ERROR] symbol : class OAuth2ScopeValidator [ERROR] location: package org.wso2.carbon.identity.oauth2