[Dev] [MB] Null pointer exception thrown when opening admin console

2015-05-21 Thread Anuja Herath
Hi,

I'm getting below exception when opening admin console.

[2015-05-21 13:24:10,355] ERROR
{org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} -  Tenant
domain has not been set in CarbonContext

java.lang.NullPointerException: Tenant domain has not been set in
CarbonContext

at
org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)

at
org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:365)

at
org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)

at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)

at org.apache.axis2.engine.Phase.invoke(Phase.java:313)

at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)

at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:359)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)

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.loginWithRememberMeCookie(AuthenticationAdminStub.java:1724)

at
org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.loginWithRememberMeCookie(AuthenticationAdminClient.java:99)

at
org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:109)

at
org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)

at
org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticateWithCookie(BasicAuthUIAuthenticator.java:96)

at
org.wso2.carbon.ui.CarbonUILoginUtil.saveOriginalUrl(CarbonUILoginUtil.java:118)

at
org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:276)

at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)

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: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:183)

at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)

at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)

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: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.runWorker(ThreadPoolExecutor.java:1110)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:722)

-- 
Anuja Herath
*Software Engineer*
*WSO2, Inc.*
Mobile : +94 (0)71 429 8861

Re: [Dev] [MB] Null pointer exception thrown when opening admin console

2015-05-21 Thread Anuja Herath
Hi Shashika,

Yes, It happens when I login into console.

Thank You.

On Thu, May 21, 2015 at 2:03 PM, Shashika Karunatilaka shashi...@wso2.com
wrote:

 Hi Anuja,

 Does this happen while you loggin to the management console?

 Thank you.

 On Thu, May 21, 2015 at 1:25 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I'm getting below exception when opening admin console.

 [2015-05-21 13:24:10,355] ERROR
 {org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} -  Tenant
 domain has not been set in CarbonContext

 java.lang.NullPointerException: Tenant domain has not been set in
 CarbonContext

 at
 org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)

 at
 org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:365)

 at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)

 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)

 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)

 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)

 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)

 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:359)

 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)

 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.loginWithRememberMeCookie(AuthenticationAdminStub.java:1724)

 at
 org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.loginWithRememberMeCookie(AuthenticationAdminClient.java:99)

 at
 org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:109)

 at
 org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)

 at
 org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticateWithCookie(BasicAuthUIAuthenticator.java:96)

 at
 org.wso2.carbon.ui.CarbonUILoginUtil.saveOriginalUrl(CarbonUILoginUtil.java:118)

 at
 org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:276)

 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)

 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: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:183)

 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)

 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:408)

 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

 at
 

Re: [Dev] Enterprise Store - UI test failures

2015-05-21 Thread Ruchira Wageesha
Hi Krishantha,

We have fixed most of the issues, but several of them are still in progress.

/Ruchira

On Thu, May 21, 2015 at 11:25 AM, Krishantha Samaraweera 
krishan...@wso2.com wrote:

 Ping !

 Thanks,
 Krishantha

 On Tue, May 19, 2015 at 7:37 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi all,

 Have we fixed all failures ? or introduce new tests ?

 Thanks,
 Krishantha.

 On Wed, Apr 29, 2015 at 8:58 AM, Ayesha Dissanayaka aye...@wso2.com
 wrote:

 Hi all,

 I was able to fix one test class[1] in this[2] commit.
 Hope this would be helpful in order to fix other test failures.

 Best approach would be to debug test classes one at a time to locate the
 UI element mismatches.

 [1]
 https://github.com/wso2/product-es/blob/e6a6a2b2891f0d436294320436caa09ed9ffae23/modules/integration/tests-ui-integration/tests-ui/src/test/java/org/wso2/es/ui/integration/test/publisher/ESPublisherAddEditAssetTestCase.java
 [2]
 https://github.com/wso2/product-es/commit/e6a6a2b2891f0d436294320436caa09ed9ffae23

 Thanks!
 -Ayesha

 On Tue, Apr 28, 2015 at 12:46 AM, Rajeenthini Satkunam 
 rajeenth...@wso2.com wrote:

 Hi,

 Noted,I will look into this links and I will discuss with team if I
 need further helps on this.

 On Tue, Apr 28, 2015 at 7:52 AM, Ayesha Dissanayaka aye...@wso2.com
 wrote:

 Hi all,

 I think the reason for this test failures should be the recent UI
 changes in ES. The mentioned UI tests were written on top of previous ES
 UIs and I don't think we have re-written them on top of new UI. Hope the
 team has already started working on this.

 Almost all the tests are failing due to unavailability of UI elements,
 which is expected due to the change in UI. So, I think the best way to fix
 this would be to re-generate the tests using selenium record and playback,
 rather than someone going through line by line to map previous UI elements
 to new ones.

 We already have the templates for ES publisher and Store UI test
 generation. And the initial idea of having Selenium UI Test Generation
 for ES is exactly to address this kind of scenarios without much of a
 trouble.

 @Rajeenthini, since you are working on this, below e-mail threads and
 links would be helpful for you. Let me know if you need further help on
 this.

 [1] [Dev][ES] Selenium UI Integration Test Generation
 [2] [ES- Integration Test] Custom WebDriver Class for UI test
 Automation
 [3]
 http://techspace-ps.blogspot.com/2015/01/selenium-ide-template-for-testng.html
 [4]
 http://asadistechspace.blogspot.com/2014/12/customize-selenium-code-jeneration.html#.VT7oGzlO0c0

 Thanks!
 -Ayesha

 On Tue, Apr 21, 2015 at 6:01 AM, Udara Rathnayake uda...@wso2.com
 wrote:

 Hi Krishantha,

 We are looking into this.

 Regards,
 UdaraR

 On Mon, Apr 20, 2015 at 5:12 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 More test failures in tests-ui module.

 Failed tests:
 testESPublishToStore(org.wso2.es.ui.integration.test.common.ESPublishToStore):
 Timed out after 30 seconds waiting for presence of element located by:
 By.linkText: Add gadget(..)

 setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase):
 Timed out after 30 seconds waiting for presence of element located by:
 By.linkText: Add gadget(..)

 tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase)

 testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase):
 Timed out after 30 seconds waiting for presence of element located by:
 By.linkText: Add gadget(..)

 testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase):
 Timed out after 30 seconds waiting for presence of element located by:
 By.linkText: Add gadget(..)

 testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase):
 Timed out after 30 seconds waiting for presence of element located by:
 By.linkText: Add gadget(..)

 testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase):
 Timed out after 30 seconds waiting for presence of element located by:
 By.linkText: Add gadget(..)

 setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase):
 Timed out after 30 seconds waiting for presence of element located by:
 By.linkText: Add gadget(..)

 setUp(org.wso2.es.ui.integration.test.store.ESStoreAnonCategorySortingTestCase):
 Timed out after 30 seconds waiting for presence of element located by:
 By.linkText: Add gadget(..)

 tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase)

 testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase):
 Timed out after 30 seconds waiting for presence of element located by:
 By.selector: div.span3.store-right  div.row  div.span3(..)

 testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase):
 Recent Gadgets link not working expected 

Re: [Dev] Writing automation tests to check cache timeouts

2015-05-21 Thread Pulasthi Supun
Hi Krishantha,

We don't have an debug logs that can be used to check if the request was
taken from the cache or from the database. Adding such a log is also not
possible since if a debug log is added that will be printed for each and
every resource and that would flood the carbon log.

I will check if an automation test can be written using the cache listeners
that gayashan has mentioned.

Best Regards,
Pulasthi

On Thu, May 21, 2015 at 1:27 PM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Hi Pulasthi,

 Any default debug logs available in cache implementation. Using debug logs
 we can verify whether the resource is really cached or not.

 Other option would be to check DB calls.. which is bit hard to use as
 automation verification step.

 Thanks,
 Krishantha.

 On Wed, May 20, 2015 at 1:18 PM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Pulasthi,

 Apologies, didn't understand that your query is regarding resource
 caching in the registry. Perhaps, you can use a cache listener for this
 task [1] if it is possible to engage listeners to the resource cache?

 [1]
 https://github.com/wso2/carbon4-kernel/blob/master/core/javax.cache/src/test/java/org/wso2/carbon/caching/impl/CacheListenerTestCase.java

 Thank you.
 /Gayashan

 On Wed, May 20, 2015 at 1:09 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Hi Krishantha,

 The manual process that i used to test the changes was to add several
 conditional logs to check if a specific resource was taken from the
 database or of the cache hit was successful. And test which log was hit
 after 15mints ( the timeout period ).

 @Gayashan

 What you are explaining can be used to test the caching implementation
 it self, not if the changes done to make the registry resource cache works
 properly.

 Best Regards,
 Pulasthi



 On Wed, May 20, 2015 at 1:04 PM, Gayashan Amarasinghe gayas...@wso2.com
  wrote:

 Hi Pulasthi,

 You can initiate a new cache manager and a cache with a proper cache
 expiry time.

 CacheManager cacheManager =
 Caching.getCacheManagerFactory().getCacheManager(
 cacheManagerName);
 CacheString, String cache = cacheManager.String, String
 createCacheBuilder(cacheName).
 setExpiry(CacheConfiguration.ExpiryType.MODIFIED,
 new CacheConfiguration.Duration(TimeUnit.SECONDS, 10)).
 setStoreByValue(false).build();

 and put items in to that cache and sleep the thread until the cache
 expiry time. After waking up you can assert whether the inserted item is
 null. If null, the cache has expired.

 There are some existing test cases [1] in the kernel.

 [1]
 https://github.com/wso2/carbon4-kernel/blob/master/core/javax.cache/src/test/java/org/wso2/carbon/caching/impl/CachingTestCase.java#L246


 Thank you.
 /Gayashan

 On Wed, May 20, 2015 at 12:26 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Hi All,

 Is there a way to write automation tests to tests the timeout
 configurations of the cache. The test needs to be able to test if the 
 cache
 values were invalidated after the given timeout.

 Best Regards,
 Pulasthi

 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 
--
Pulasthi Supun
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: pulas...@wso2.com
Mobile: +94 (71) 9258281
Blog : http://pulasthisupun.blogspot.com/
Git hub profile: https://github.com/pulasthi
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Writing automation tests to check cache timeouts

2015-05-21 Thread Krishantha Samaraweera
Hi Pulasthi,

Any default debug logs available in cache implementation. Using debug logs
we can verify whether the resource is really cached or not.

Other option would be to check DB calls.. which is bit hard to use as
automation verification step.

Thanks,
Krishantha.

On Wed, May 20, 2015 at 1:18 PM, Gayashan Amarasinghe gayas...@wso2.com
wrote:

 Hi Pulasthi,

 Apologies, didn't understand that your query is regarding resource caching
 in the registry. Perhaps, you can use a cache listener for this task [1] if
 it is possible to engage listeners to the resource cache?

 [1]
 https://github.com/wso2/carbon4-kernel/blob/master/core/javax.cache/src/test/java/org/wso2/carbon/caching/impl/CacheListenerTestCase.java

 Thank you.
 /Gayashan

 On Wed, May 20, 2015 at 1:09 PM, Pulasthi Supun pulas...@wso2.com wrote:

 Hi Krishantha,

 The manual process that i used to test the changes was to add several
 conditional logs to check if a specific resource was taken from the
 database or of the cache hit was successful. And test which log was hit
 after 15mints ( the timeout period ).

 @Gayashan

 What you are explaining can be used to test the caching implementation it
 self, not if the changes done to make the registry resource cache works
 properly.

 Best Regards,
 Pulasthi



 On Wed, May 20, 2015 at 1:04 PM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Pulasthi,

 You can initiate a new cache manager and a cache with a proper cache
 expiry time.

 CacheManager cacheManager =
 Caching.getCacheManagerFactory().getCacheManager(
 cacheManagerName);
 CacheString, String cache = cacheManager.String, String
 createCacheBuilder(cacheName).
 setExpiry(CacheConfiguration.ExpiryType.MODIFIED,
 new CacheConfiguration.Duration(TimeUnit.SECONDS, 10)).
 setStoreByValue(false).build();

 and put items in to that cache and sleep the thread until the cache
 expiry time. After waking up you can assert whether the inserted item is
 null. If null, the cache has expired.

 There are some existing test cases [1] in the kernel.

 [1]
 https://github.com/wso2/carbon4-kernel/blob/master/core/javax.cache/src/test/java/org/wso2/carbon/caching/impl/CachingTestCase.java#L246


 Thank you.
 /Gayashan

 On Wed, May 20, 2015 at 12:26 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Hi All,

 Is there a way to write automation tests to tests the timeout
 configurations of the cache. The test needs to be able to test if the cache
 values were invalidated after the given timeout.

 Best Regards,
 Pulasthi

 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Null pointer exception thrown when opening admin console

2015-05-21 Thread Shashika Karunatilaka
Hi Anuja,

Does this happen while you loggin to the management console?

Thank you.

On Thu, May 21, 2015 at 1:25 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I'm getting below exception when opening admin console.

 [2015-05-21 13:24:10,355] ERROR
 {org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} -  Tenant
 domain has not been set in CarbonContext

 java.lang.NullPointerException: Tenant domain has not been set in
 CarbonContext

 at
 org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)

 at
 org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:365)

 at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)

 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)

 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)

 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)

 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)

 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:359)

 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)

 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.loginWithRememberMeCookie(AuthenticationAdminStub.java:1724)

 at
 org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.loginWithRememberMeCookie(AuthenticationAdminClient.java:99)

 at
 org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:109)

 at
 org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)

 at
 org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticateWithCookie(BasicAuthUIAuthenticator.java:96)

 at
 org.wso2.carbon.ui.CarbonUILoginUtil.saveOriginalUrl(CarbonUILoginUtil.java:118)

 at
 org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:276)

 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)

 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: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:183)

 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)

 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: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
 

Re: [Dev] [MB] Null pointer exception thrown when opening admin console

2015-05-21 Thread Shashika Karunatilaka
Hi Anuja,

What is the MB version you are using, and this issue is fixed in the carbon
kernel 4.4.0, on this JIRA [1]

[1] https://wso2.org/jira/browse/CARBON-15140

On Thu, May 21, 2015 at 2:04 PM, Anuja Herath an...@wso2.com wrote:

 Hi Shashika,

 Yes, It happens when I login into console.

 Thank You.

 On Thu, May 21, 2015 at 2:03 PM, Shashika Karunatilaka shashi...@wso2.com
  wrote:

 Hi Anuja,

 Does this happen while you loggin to the management console?

 Thank you.

 On Thu, May 21, 2015 at 1:25 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I'm getting below exception when opening admin console.

 [2015-05-21 13:24:10,355] ERROR
 {org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} -  Tenant
 domain has not been set in CarbonContext

 java.lang.NullPointerException: Tenant domain has not been set in
 CarbonContext

 at
 org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)

 at
 org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:365)

 at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)

 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)

 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)

 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)

 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)

 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:359)

 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)

 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.loginWithRememberMeCookie(AuthenticationAdminStub.java:1724)

 at
 org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.loginWithRememberMeCookie(AuthenticationAdminClient.java:99)

 at
 org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:109)

 at
 org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)

 at
 org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticateWithCookie(BasicAuthUIAuthenticator.java:96)

 at
 org.wso2.carbon.ui.CarbonUILoginUtil.saveOriginalUrl(CarbonUILoginUtil.java:118)

 at
 org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:276)

 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)

 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: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:183)

 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)

 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:408)

 at
 

[Dev] [ESB] Please review and merge

2015-05-21 Thread Nadeeshaan Gunasinghe
Hi all,
Please merge the following for sample 300 fix,

[1] https://github.com/wso2/product-esb/pull/144
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Java 7 syntax support in JSP

2015-05-21 Thread Sameera Jayasoma
Hi Pulasthi,

As per our offline discussion.

Can you try this in Apache Tomcat? If this is working in tomcat, then we
will have to fix this in the Carbon environment.

Thanks,
Sameera.

On Wed, May 20, 2015 at 6:31 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi,

 Do we have $subject? I'm getting the following error at runtime when ''
 is used in a jsp.

 *'' operator is not allowed for source level below 1.7 *

 Thanks.
 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification on Require re-subscription functionality

2015-05-21 Thread Nirdesha Munasinghe
I also raised a JIRA as the 'deprecate old versions' and 'require
re-subscription' options don't show when we try to publish a prototyped API
version (with old versions) using the LIfecycle tab:
https://wso2.org/jira/browse/APIMANAGER-3624.

Thanks,
-Nirdesha

On Thu, May 21, 2015 at 11:13 AM, Nirdesha Munasinghe nirde...@wso2.com
wrote:

 Hi,

 If we do not click this option, does it mean that the users who subscribed
 to the old version do not have to subscribe to the new one again? If that
 is the case, can someone please explain how to document it if there are
 multiple old versions (say v1 and v2) with different user subscriptions
 each. Do all of them get subscribed to v3 automatically?

 Thanks,
 -Nirdesha

 On Wed, May 20, 2015 at 11:08 AM, Sewmini Jayaweera sewm...@wso2.com
 wrote:

 Hi,

 In API manager documentation [1] Require Re-Subscription functionality is
 being described as Invalidates current user subscriptions, forcing the
 users to subscribe again.

 In the product When user publish a new version given 'Require
 re-subscription' option doesn't invalidates original API subscriptions.

 There is a mismatch between the functionality and the documentation. I
 have already reported a documentation jira [2]

  Will you please confirm that the functionality is correct.

 [1]
 https://docs.wso2.com/display/AM190/Publish+the+new+Version+and+Deprecate+the+old
 [2] https://wso2.org/jira/browse/DOCUMENTATION-1742

 Thanks  Regards,
 Sewmini

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

 --
 You received this message because you are subscribed to the Google Groups
 WSO2 Documentation group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.




 --

 Thanks,

 Nirdesha Munasinghe,
 WSO2 Inc.
 Web:http://wso2.com

 Mobile: +94 776321920




-- 

Thanks,

Nirdesha Munasinghe,
WSO2 Inc.
Web:http://wso2.com

Mobile: +94 776321920
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting the userPassword from the directory user storage

2015-05-21 Thread Damith Senanayake
Hi,

I have a need to get the userPassword entry in the directory server into my
java-code as a credential object so that I can duplicate the user
information(exactly).

Currently, in org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager,
in doSetUserClaimValues method, we have a list of entries for the specific
user called returnedResultList, and by get the first element in the
enumeration, we can get the said attribute list.

I was able to obtain the plaintext password as a string successfully from
this. But I don't know how to get it if it were a SHA password stored in
the DS.

Could someone please help me out here? :)


-- 
*-Damith Senanayake-*
+94712205272
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Web app class loading issue

2015-05-21 Thread Sameera Jayasoma
Hello Geeth,

We've encountered many similar issues in the past. The main cause of these
issues is the existence of multiple versions of some packages. OSGi is
designed to support this scenario. But in some cases, OSGi resolution
algorithm fails wire dynamical imported packages due multiple versions of
some packages. This is indeed a wired observation.

We've removed some duplicated bundles in CDM pack (e.g. httpclient,
httpmime, httpcore). But we could still reproduce the issue, then we found
out that one of the fixes introduced in Carbon 4.4.0 was not available in
MDM distribution. I believe MDM or other components pack a custom
launch.ini file. Let me explain.

Carbon kernel used to export *javax.xml.soap* package from the JDK, hence
this package was specified in the *launch.ini* file. Geronimo-saaj bundle
exports this package as well. Now there are two versions of
javax.xml.soap package available in the OSGi runtime. The strange thing
is, tomcat bundle dynamically wire to both of the soap package versions
time to time. This behavior is not predictable. When the tomcat bundle get
wired to javax.xml.soap 0.0.0, above mentioned issue occurs. But when the
tomcat is wired to 1.0.0 version of the package this issue does not occur.
We still don't know why this happens.

Working
osgi p javax.xml.soap
*javax.xml.soap*; version=0.0.0org.eclipse.osgi_3.9.1.v20130814-1242 [0]
  org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
  org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports
  org.wso2.carbon.p2.touchpoint_4.4.0 [277] imports
*javax.xml.soap*; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38]
  axis2_1.6.1.wso2v12 [14] imports
  org.wso2.carbon.apimgt.core_1.4.0 [154] imports
  spring.framework_3.2.9.wso2v1 [372] imports

*  tomcat_7.0.59.wso2v1 [375] imports*  wss4j_1.5.11.wso2v10 [386] imports
  wss4j_1.5.11.wso2v9 [387] imports


Not Working
osgi p javax.xml.soap
*javax.xml.soap*; version=0.0.0org.eclipse.osgi_3.9.1.v20130814-1242 [0]
  org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
  org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports
  org.wso2.carbon.p2.touchpoint_4.4.0 [277] imports

*  tomcat_7.0.59.wso2v1 [375] importsjavax.xml.soap;*
version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38]
  axis2_1.6.1.wso2v12 [14] imports
  org.wso2.carbon.apimgt.core_1.4.0 [154] imports
  spring.framework_3.2.9.wso2v1 [372] imports
  wss4j_1.5.11.wso2v10 [386] imports
  wss4j_1.5.11.wso2v9 [387] imports

Anyway his issue has been fixed in Carbon Kernel 4.4.0 by removing the
export of 0.0.0 version of this package.

MDM team, please remove the custom launch.ini file if possible and try to
use the one packed with the Kernel.

Thanks,
Sameera.

On Tue, May 19, 2015 at 3:50 PM, Geeth Munasinghe ge...@wso2.com wrote:

 Hi all,

 I am getting the following CNF error intermittently. MDM is built on
 kernel 4.4.0.

  As I remember we got this issue for kernel 4.3.0, but it was fixed by a
 tomcat patch. Seems the same CNF error is happening on kernel 4.4.0 too.



 /wso2mdm-2.0.0-SNAPSHOT/repository/deployment/server/webapps/mdm-windows-agent.war]

 [2015-05-19 15:29:17,619]  INFO
 {org.springframework.web.context.support.XmlWebApplicationContext} -
 Refreshing Root WebApplicationContext: startup date [Tue May 19 15:29:17
 IST 2015]; root of context hierarchy

 [2015-05-19 15:29:17,651]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from class path resource [META-INF/cxf/cxf.xml]

 [2015-05-19 15:29:17,676]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from URL
 [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]

 [2015-05-19 15:29:17,745]  INFO
 {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
 Pre-instantiating singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@787dc93c:
 defining beans
 [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
 root of factory hierarchy

 [2015-05-19 15:29:17,899]  INFO
 {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
 Destroying singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@787dc93c:
 defining beans
 [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
 root of factory hierarchy

 [2015-05-19 15:29:17,901] ERROR
 {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable

 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'tokEP': Cannot resolve reference to bean
 

[Dev] error in running ESB sample 153

2015-05-21 Thread Rukshan Premathunga
hi,

i'm getting an error when i run the ESB sample 153 client
I copy the bcprov-jdk15.jar and install the unlimited strength policy files
from
http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
.

But still i get the error as follow.


[2015-05-21 12:16:47,273] DEBUG - OutMediator Start : Out mediator
[2015-05-21 12:16:47,273] DEBUG - OutMediator Current message is a request
- skipping child mediators
[2015-05-21 12:16:47,273] DEBUG - OutMediator End : Out mediator
[2015-05-21 12:16:47,273] DEBUG - SequenceMediator End : Sequence main
[2015-05-21 12:16:47,828] ERROR - AxisEngine InvalidSecurity
org.apache.axis2.AxisFault: InvalidSecurity
at
org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
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-05-21 12:16:47,830] ERROR - ClientWorker Fault processing response
message through Axis2
org.apache.axis2.AxisFault: InvalidSecurity
at
org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
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-05-21 12:17:47,037]  WARN - SourceHandler Connection time out after
request is read: http-incoming-1
[2015-05-21 12:19:01,997]  WARN - TimeoutHandler Expiring message ID :
urn:uuid:d6a5ec0c-62e3-4022-b53a-2fd41dd34362; dropping message after
global timeout of : 120 seconds


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] error in running ESB sample 153

2015-05-21 Thread Thusitha Thilina Dayaratne
Hi Rukshan,

What is the Java version that you are using?
You can refer to following mail thread  [Dev] Exception when running the
ESB Sample 153

Thanks

On Thu, May 21, 2015 at 12:22 PM, Rukshan Premathunga ruks...@wso2.com
wrote:

 hi,

 i'm getting an error when i run the ESB sample 153 client
 I copy the bcprov-jdk15.jar and install the unlimited strength policy
 files from
 http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
 .

 But still i get the error as follow.


 [2015-05-21 12:16:47,273] DEBUG - OutMediator Start : Out mediator
 [2015-05-21 12:16:47,273] DEBUG - OutMediator Current message is a request
 - skipping child mediators
 [2015-05-21 12:16:47,273] DEBUG - OutMediator End : Out mediator
 [2015-05-21 12:16:47,273] DEBUG - SequenceMediator End : Sequence main
 [2015-05-21 12:16:47,828] ERROR - AxisEngine InvalidSecurity
 org.apache.axis2.AxisFault: InvalidSecurity
 at
 org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
 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-05-21 12:16:47,830] ERROR - ClientWorker Fault processing response
 message through Axis2
 org.apache.axis2.AxisFault: InvalidSecurity
 at
 org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
 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-05-21 12:17:47,037]  WARN - SourceHandler Connection time out after
 request is read: http-incoming-1
 [2015-05-21 12:19:01,997]  WARN - TimeoutHandler Expiring message ID :
 urn:uuid:d6a5ec0c-62e3-4022-b53a-2fd41dd34362; dropping message after
 global timeout of : 120 seconds


 --
 Rukshan Chathuranga.
 Software Engineer.
 WSO2, Inc.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Ravi Undupitiya
Hi all,

We upgraded carbon-commons to 4.4.2 and we are getting [1] when loading the
carbon console.

[1] Stack Trace
[2015-05-21 14:00:56,449]  INFO - CarbonUIServiceComponent Mgt Console URL
 : https://10.100.0.22:10343/carbon/
[2015-05-21 14:01:32,657] ERROR - ApplicationDispatcher Servlet.service()
for servlet bridgeservlet threw exception
java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
javax.xml.parsers.DocumentBuilderFactory
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:115)
at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:95)
at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:243)
at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:302)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:115)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
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.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:411)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
at
org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
at
org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
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)

Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Manoj Kumara
Hi Ravi,

Can you share a ESB server.

Regards,
Manoj


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Thu, May 21, 2015 at 2:49 PM, Ravi Undupitiya r...@wso2.com wrote:

 We're also seeing this error when trying to upload a CApp after upgrade to
 carbon-commons 4.4.2.

 [2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying Carbon
 Application : esb-test_1.0.0.car...
 [2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while deploying
 carbon application
 /home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
 java.lang.NullPointerException
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployRecursively(DefaultAppDeployer.java:152)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployArtifacts(DefaultAppDeployer.java:69)
 at
 org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
 at
 org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
 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.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 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)

 On Thu, May 21, 2015 at 2:36 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi all,

 We upgraded carbon-commons to 4.4.2 and we are getting [1] when loading
 the carbon console.

 [1] Stack Trace
 [2015-05-21 14:00:56,449]  INFO - CarbonUIServiceComponent Mgt Console
 URL  : https://10.100.0.22:10343/carbon/
 [2015-05-21 14:01:32,657] ERROR - ApplicationDispatcher Servlet.service()
 for servlet bridgeservlet threw exception
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
 javax.xml.parsers.DocumentBuilderFactory
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
 org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:115)
 at
 org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:95)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:243)
 at
 org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:302)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:115)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
 at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
 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
 

Re: [Dev] [MB] Null pointer exception thrown when opening admin console

2015-05-21 Thread Anuja Herath
Hi Shashika,

My pack contains carbon 4.3.0. That might be the problem.

Thanks.

On Thu, May 21, 2015 at 2:19 PM, Shashika Karunatilaka shashi...@wso2.com
wrote:

 Hi Anuja,

 What is the MB version you are using, and this issue is fixed in the
 carbon kernel 4.4.0, on this JIRA [1]

 [1] https://wso2.org/jira/browse/CARBON-15140

 On Thu, May 21, 2015 at 2:04 PM, Anuja Herath an...@wso2.com wrote:

 Hi Shashika,

 Yes, It happens when I login into console.

 Thank You.

 On Thu, May 21, 2015 at 2:03 PM, Shashika Karunatilaka 
 shashi...@wso2.com wrote:

 Hi Anuja,

 Does this happen while you loggin to the management console?

 Thank you.

 On Thu, May 21, 2015 at 1:25 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I'm getting below exception when opening admin console.

 [2015-05-21 13:24:10,355] ERROR
 {org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} -  Tenant
 domain has not been set in CarbonContext

 java.lang.NullPointerException: Tenant domain has not been set in
 CarbonContext

 at
 org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)

 at
 org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:365)

 at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)

 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)

 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)

 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)

 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)

 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:359)

 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)

 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.loginWithRememberMeCookie(AuthenticationAdminStub.java:1724)

 at
 org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.loginWithRememberMeCookie(AuthenticationAdminClient.java:99)

 at
 org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:109)

 at
 org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)

 at
 org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticateWithCookie(BasicAuthUIAuthenticator.java:96)

 at
 org.wso2.carbon.ui.CarbonUILoginUtil.saveOriginalUrl(CarbonUILoginUtil.java:118)

 at
 org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:276)

 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)

 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: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:183)

 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)

 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
 

[Dev] [BPS] Please review and merge the pull request

2015-05-21 Thread Vinod Kavinda
Hi,
Please find the PR [1], [2] for issue [3].

[1] - https://github.com/wso2/carbon-business-process/pull/54
[2] - https://github.com/wso2/product-bps/pull/34
[3] - https://wso2.org/jira/browse/BPS-515

-- 
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


[Dev] WSO2 Identity Server OTP SMS

2015-05-21 Thread Godwin Amila Shrimal
Hi,

Can we use OTP feature with SMS ?, As per the documentation currently it
support only with Email. And can we use this feature with other WSO2
products ? (Hope it can by installing identity mgt feature). If there are
any article, blogs etc related to this please share.


Thanks
Godwin

-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Ravi Undupitiya
We're also seeing this error when trying to upload a CApp after upgrade to
carbon-commons 4.4.2.

[2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying Carbon
Application : esb-test_1.0.0.car...
[2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while deploying
carbon application
/home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
java.lang.NullPointerException
at
org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
at
org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
at
org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
at
org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployRecursively(DefaultAppDeployer.java:152)
at
org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployArtifacts(DefaultAppDeployer.java:69)
at
org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
at
org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
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.RepositoryListener.startListener(RepositoryListener.java:371)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
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)

On Thu, May 21, 2015 at 2:36 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi all,

 We upgraded carbon-commons to 4.4.2 and we are getting [1] when loading
 the carbon console.

 [1] Stack Trace
 [2015-05-21 14:00:56,449]  INFO - CarbonUIServiceComponent Mgt Console URL
  : https://10.100.0.22:10343/carbon/
 [2015-05-21 14:01:32,657] ERROR - ApplicationDispatcher Servlet.service()
 for servlet bridgeservlet threw exception
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
 javax.xml.parsers.DocumentBuilderFactory
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
 org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:115)
 at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:95)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:243)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:302)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:115)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
 at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
 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 

[Dev] [MB] 'jmstansport' sample in MB is not related to JMS.

2015-05-21 Thread Hemika Kodikara
Hi All,

In MB 3.0.0, we have a sample called jmstansport. As far as I understood
in this sample was that a service is hosted using a wsdl and its methods
are called using generated stubs. So in my opinion, this is not related to
JMS.

I was looking into the sample because of the following JIRA :
https://wso2.org/jira/browse/MB-536

Initially I got a different exception which I was able to fix using the
following jar.

axis2-transport-jms-1.1.0-wso2v11.jar

My concern is that should we keep this in MB samples ?

Correct me if my findings are wrong.

Source code for sample [1].

[1] -
https://github.com/wso2/product-mb/tree/master/modules/samples/product/jmstransport

Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Ravi Undupitiya
Hi Manoj,

You can find the pack at [1].

[1]
https://svn.wso2.com/wso2/custom/projects/scratch/ravi/commons-4.4.2/wso2esb-4.9.0-M8-SNAPSHOT.zip

On Thu, May 21, 2015 at 2:54 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 Can you share a ESB server.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:49 PM, Ravi Undupitiya r...@wso2.com wrote:

 We're also seeing this error when trying to upload a CApp after upgrade
 to carbon-commons 4.4.2.

 [2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying Carbon
 Application : esb-test_1.0.0.car...
 [2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while deploying
 carbon application
 /home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
 java.lang.NullPointerException
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployRecursively(DefaultAppDeployer.java:152)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployArtifacts(DefaultAppDeployer.java:69)
 at
 org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
 at
 org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
 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.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 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)

 On Thu, May 21, 2015 at 2:36 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi all,

 We upgraded carbon-commons to 4.4.2 and we are getting [1] when loading
 the carbon console.

 [1] Stack Trace
 [2015-05-21 14:00:56,449]  INFO - CarbonUIServiceComponent Mgt Console
 URL  : https://10.100.0.22:10343/carbon/
 [2015-05-21 14:01:32,657] ERROR - ApplicationDispatcher
 Servlet.service() for servlet bridgeservlet threw exception
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
 javax.xml.parsers.DocumentBuilderFactory
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
 org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:115)
 at
 org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:95)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:243)
 at
 org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:302)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:115)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
 at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
 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 

Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Manoj Kumara
Hi Ravi,

I manually deleted 'xercesImpl_2.8.1.wso2v2.jar' from the pack and things
seems to be working fine. You may required to bundle that one. I think the
root course is it export unnecessary packages and this cause issue.

Regards,
Manoj


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Thu, May 21, 2015 at 2:59 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Manoj,

 You can find the pack at [1].

 [1]
 https://svn.wso2.com/wso2/custom/projects/scratch/ravi/commons-4.4.2/wso2esb-4.9.0-M8-SNAPSHOT.zip

 On Thu, May 21, 2015 at 2:54 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 Can you share a ESB server.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:49 PM, Ravi Undupitiya r...@wso2.com wrote:

 We're also seeing this error when trying to upload a CApp after upgrade
 to carbon-commons 4.4.2.

 [2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying Carbon
 Application : esb-test_1.0.0.car...
 [2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while
 deploying carbon application
 /home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
 java.lang.NullPointerException
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployRecursively(DefaultAppDeployer.java:152)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployArtifacts(DefaultAppDeployer.java:69)
 at
 org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
 at
 org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
 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.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 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)

 On Thu, May 21, 2015 at 2:36 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi all,

 We upgraded carbon-commons to 4.4.2 and we are getting [1] when loading
 the carbon console.

 [1] Stack Trace
 [2015-05-21 14:00:56,449]  INFO - CarbonUIServiceComponent Mgt Console
 URL  : https://10.100.0.22:10343/carbon/
 [2015-05-21 14:01:32,657] ERROR - ApplicationDispatcher
 Servlet.service() for servlet bridgeservlet threw exception
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
 javax.xml.parsers.DocumentBuilderFactory
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
 org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:115)
 at
 org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:95)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:243)
 at
 org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:302)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:115)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
 at
 

Re: [Dev] [AppM] Issue with clustering AppM with large mobile apps

2015-05-21 Thread Chathura Dilan
Thanks Ruwan and Sajith.

NuwanS and I tested it with mounting a common location for all nodes of the
cluster and pointing that location as the file repository and it worked.
Since mobile apps are stored in the file system, it is the only and
effective option we have now.

for more information refer to this[1] JIRA

[1] - https://wso2.org/jira/browse/APPM-943


Thank you,


On Wed, May 20, 2015 at 6:02 PM, Sajith Ariyarathna sajit...@wso2.com
wrote:

 Hi Chathura,

 My suggestion is to give the capability of specifying a location (path) to
 the admin user.

 Admin user can specify a location in the configuration file
 (app-manager.xml). Then he can mount that location to all nodes in the
 cluster. So, in Java we can access that location.

 This approach have several advantages:

- High fault tolerance. Because we can safely assume that admin user
will choose a secured location with a low downtime.
- No extra effort to read/write data, because location will be mounted
to every node.
- Less implementation burden as we don't have to use any extra
libraries.


 Cheers.

 On Wed, May 20, 2015 at 5:07 PM, Chathura Dilan chathu...@wso2.com
 wrote:

 Hi All,

 In App Manager users can upload mobile applications though publisher
 Jaggery app and others can download them from that app.

 Uploaded mobile applications are currently saved in
 /repository/resources/mobileapps folder in the server home.

 We have a issue in clustering AppM, since
 /repository/resources/mobileapps not synced in all nodes of the cluster.

 Mobile apps can be large files and we can neither store them in the
 registry nor move it to  /repository/deployment folder for dep sync. If we
 take uploaded mobile apps all together sometimes it could exceed 10GB.

 Only way is to store them in a central location. Do we have any solution
 to address it? or is there any better approach to save those binaries to a
 central location.


 Thank you,

 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer** - WSO2 Inc.**)*
 www.dilan.me




 --
 Sajith Ariyarathna
 Software Engineer; WSO2, Inc.;  http://wso2.com/
 mobile: +94 77 6602284, +94 71 3951048




-- 
Regards,

Chatura Dilan Perera
*(Senior Software Engineer** - WSO2 Inc.**)*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-05-21 Thread Sriskandarajah Suhothayan
merged

Thanks for the quick fix

Suho

On Thu, May 21, 2015 at 4:34 PM, Nirmal Fernando nir...@wso2.com wrote:

 [Looping CEP Team]

 On Thu, May 21, 2015 at 4:22 PM, Manorama Perera manor...@wso2.com
 wrote:

 Hi,

 Please review and merge PR [1] - PMML extension.

 [1] https://github.com/wso2-gpl/siddhi/pull/9

 Thanks
 --
 Manorama Perera
 Software Engineer
 WSO2, Inc.;  http://wso2.com/
 Mobile : +94716436216

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 Thanks  regards,
 Nirmal

 Associate Technical Lead - Data Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





-- 

*S. Suhothayan*
Technical Lead  Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* http://wso2.com/*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan
http://twitter.com/suhothayan | linked-in:
http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Java 7 syntax support in JSP

2015-05-21 Thread Pulasthi Mahawithana
Hi Sameera,

I checked with tomcat, and it also gives the same error.

Adding compilerSourceVM and compilerTargetVM  parameters with value
1.7 (see [1] below) to the tomcat's web.xml file fixed those issues in
tomcat. However the same fix doesn't seem to work with carbon's web.xml.

[1] Changes to the tomcat's web.xml
servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
   *init-param*
*param-namecompilerSourceVM/param-name*
*param-value1.7/param-value*
*/init-param*
*init-param*
*param-namecompilerTargetVM/param-name*
*param-value1.7/param-value*
*/init-param*
load-on-startup3/load-on-startup
/servlet

On Thu, May 21, 2015 at 12:20 PM, Sameera Jayasoma same...@wso2.com wrote:

 Hi Pulasthi,

 As per our offline discussion.

 Can you try this in Apache Tomcat? If this is working in tomcat, then we
 will have to fix this in the Carbon environment.

 Thanks,
 Sameera.

 On Wed, May 20, 2015 at 6:31 PM, Pulasthi Mahawithana pulast...@wso2.com
 wrote:

 Hi,

 Do we have $subject? I'm getting the following error at runtime when ''
 is used in a jsp.

 *'' operator is not allowed for source level below 1.7 *

 Thanks.
 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




-- 
*Pulasthi Mahawithana*
Software Engineer
WSO2 Inc., http://wso2.com/
Mobile: +94-71-5179022
Blog: http://blog.pulasthi.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Java 7 syntax support in JSP

2015-05-21 Thread Sameera Jayasoma
Hi Pulasthi,

Can you share the artifacts you've used to test this scenario?  I can also
give it a try.

Thanks,
Sameera.

On Thu, May 21, 2015 at 5:43 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi Sameera,

 I checked with tomcat, and it also gives the same error.

 Adding compilerSourceVM and compilerTargetVM  parameters with value
 1.7 (see [1] below) to the tomcat's web.xml file fixed those issues in
 tomcat. However the same fix doesn't seem to work with carbon's web.xml.

 [1] Changes to the tomcat's web.xml
 servlet
 servlet-namejsp/servlet-name
 servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
 init-param
 param-namefork/param-name
 param-valuefalse/param-value
 /init-param
 init-param
 param-namexpoweredBy/param-name
 param-valuefalse/param-value
 /init-param
*init-param*
 *param-namecompilerSourceVM/param-name*
 *param-value1.7/param-value*
 */init-param*
 *init-param*
 *param-namecompilerTargetVM/param-name*
 *param-value1.7/param-value*
 */init-param*
 load-on-startup3/load-on-startup
 /servlet

 On Thu, May 21, 2015 at 12:20 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Pulasthi,

 As per our offline discussion.

 Can you try this in Apache Tomcat? If this is working in tomcat, then we
 will have to fix this in the Carbon environment.

 Thanks,
 Sameera.

 On Wed, May 20, 2015 at 6:31 PM, Pulasthi Mahawithana pulast...@wso2.com
  wrote:

 Hi,

 Do we have $subject? I'm getting the following error at runtime when
 '' is used in a jsp.

 *'' operator is not allowed for source level below 1.7 *

 Thanks.
 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Malithi Edirisinghe
Hi Isuru,

We are not packing that bundle. Neither we use entitlement.proxy in our
pack.
However, org.wso2.carbon.identity.entitlement component which we use, also
requests for 'org.apache.xerces.util' and it comes from the osgi framework
(org.eclipse.osgi_3.9.1.v20130814-1242). The same package is used
with 'org.wso2.carbon.identity.entitlement.proxy'

Thanks,
Malithi.

On Thu, May 21, 2015 at 3:18 PM, Isuru Udana isu...@wso2.com wrote:

 IS also packing the same bundle. Are they also facing the same issue ?
 Actually we packed this jar from entitlement.mediator feature since
 entitlement.proxy (in carbon-identity) requires it.

 On Thu, May 21, 2015 at 3:10 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 I manually deleted 'xercesImpl_2.8.1.wso2v2.jar' from the pack and things
 seems to be working fine. You may required to bundle that one. I think the
 root course is it export unnecessary packages and this cause issue.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:59 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Manoj,

 You can find the pack at [1].

 [1]
 https://svn.wso2.com/wso2/custom/projects/scratch/ravi/commons-4.4.2/wso2esb-4.9.0-M8-SNAPSHOT.zip

 On Thu, May 21, 2015 at 2:54 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 Can you share a ESB server.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:49 PM, Ravi Undupitiya r...@wso2.com wrote:

 We're also seeing this error when trying to upload a CApp after
 upgrade to carbon-commons 4.4.2.

 [2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying Carbon
 Application : esb-test_1.0.0.car...
 [2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while
 deploying carbon application
 /home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
 java.lang.NullPointerException
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployRecursively(DefaultAppDeployer.java:152)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployArtifacts(DefaultAppDeployer.java:69)
 at
 org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
 at
 org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
 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.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 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)

 On Thu, May 21, 2015 at 2:36 PM, Ravi Undupitiya r...@wso2.com
 wrote:

 Hi all,

 We upgraded carbon-commons to 4.4.2 and we are getting [1] when
 loading the carbon console.

 [1] Stack Trace
 [2015-05-21 14:00:56,449]  INFO - CarbonUIServiceComponent Mgt
 Console URL  : https://10.100.0.22:10343/carbon/
 [2015-05-21 14:01:32,657] ERROR - ApplicationDispatcher
 Servlet.service() for servlet bridgeservlet threw exception
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
 

[Dev] [ESB] Please review and merge the PR[1]

2015-05-21 Thread Kathees Rajendram
Hi,

$subject for the Kafka inbound sample 904

[1] - https://github.com/wso2/product-esb/pull/162

Thanks,
Kathees

-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the PR

2015-05-21 Thread Vinod Kavinda
Hi,

Please merge the PR[1] for issue [2].

[1] - https://github.com/wso2/carbon-business-process/pull/55
[2] - https://wso2.org/jira/browse/BPS-633

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


[Dev] Added missing plugRepository to carbon-parent pom

2015-05-21 Thread Niranjan Karunanandham
Hi Supun,

I have sent a pull request[1] to carbon-parent pom to add the url 
http://maven.wso2.org/nexus/content/groups/wso2-public/; to
pluginRepositories. Please review and merge it.

[1] - https://github.com/wso2/carbon-parent/pull/5

Regards,
Nira

-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR

2015-05-21 Thread Manorama Perera
Hi,

Please review and merge PR [1] - PMML extension.

[1] https://github.com/wso2-gpl/siddhi/pull/9

Thanks
-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
Mobile : +94716436216
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-05-21 Thread Nirmal Fernando
[Looping CEP Team]

On Thu, May 21, 2015 at 4:22 PM, Manorama Perera manor...@wso2.com wrote:

 Hi,

 Please review and merge PR [1] - PMML extension.

 [1] https://github.com/wso2-gpl/siddhi/pull/9

 Thanks
 --
 Manorama Perera
 Software Engineer
 WSO2, Inc.;  http://wso2.com/
 Mobile : +94716436216

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Thanks  regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Isuru Udana
IS also packing the same bundle. Are they also facing the same issue ?
Actually we packed this jar from entitlement.mediator feature since
entitlement.proxy (in carbon-identity) requires it.

On Thu, May 21, 2015 at 3:10 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 I manually deleted 'xercesImpl_2.8.1.wso2v2.jar' from the pack and things
 seems to be working fine. You may required to bundle that one. I think the
 root course is it export unnecessary packages and this cause issue.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:59 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Manoj,

 You can find the pack at [1].

 [1]
 https://svn.wso2.com/wso2/custom/projects/scratch/ravi/commons-4.4.2/wso2esb-4.9.0-M8-SNAPSHOT.zip

 On Thu, May 21, 2015 at 2:54 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 Can you share a ESB server.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:49 PM, Ravi Undupitiya r...@wso2.com wrote:

 We're also seeing this error when trying to upload a CApp after upgrade
 to carbon-commons 4.4.2.

 [2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying Carbon
 Application : esb-test_1.0.0.car...
 [2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while
 deploying carbon application
 /home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
 java.lang.NullPointerException
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployRecursively(DefaultAppDeployer.java:152)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployArtifacts(DefaultAppDeployer.java:69)
 at
 org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
 at
 org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
 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.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 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)

 On Thu, May 21, 2015 at 2:36 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi all,

 We upgraded carbon-commons to 4.4.2 and we are getting [1] when
 loading the carbon console.

 [1] Stack Trace
 [2015-05-21 14:00:56,449]  INFO - CarbonUIServiceComponent Mgt Console
 URL  : https://10.100.0.22:10343/carbon/
 [2015-05-21 14:01:32,657] ERROR - ApplicationDispatcher
 Servlet.service() for servlet bridgeservlet threw exception
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
 javax.xml.parsers.DocumentBuilderFactory
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
 org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:115)
 at
 org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:95)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:243)
 at
 org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:302)
 at 

Re: [Dev] Please review and release carbon-identity-4.4.1

2015-05-21 Thread Malithi Edirisinghe
Hi Isuru, Sameera,

carbon-identity-4.5.0 is released to staging [1]. Can you please verify and
confirm...

[1] http://maven.wso2.org/nexus/index.html#view-repositories

Thanks,
Malithi.

On Thu, May 21, 2015 at 9:56 AM, Isuru Udana isu...@wso2.com wrote:

 Hi All,

 When are we releasing carbon-identity ? Appreciate if you can release
 today morning to prevent ESB 4.9.0 Alpha getting delayed further.

 Thanks.

 On Wed, May 20, 2015 at 8:06 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi,

 release:perform operation failed due to [1] unmappable character on a
 javadoc :(
 Now starting the release process again. Will update once done.

 [1]
 https://github.com/wso2/carbon-commons/commit/00f01029aaa6df5d53eca25f5c1d2d1b927e1386


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Wed, May 20, 2015 at 7:08 PM, Malithi Edirisinghe malit...@wso2.com
 wrote:

 Hi All,

 we are waiting till carbon-commons is released. Will release soon after
 that.

 On Tue, May 19, 2015 at 2:29 PM, Prasad Tissera pras...@wso2.com
 wrote:

 added identity.base component to security.mgt.server feature.

 [1].https://github.com/wso2/carbon-identity/pull/303

 On Tue, May 19, 2015 at 1:52 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Lets go with packing it into security.mgt.server feature. Having
 feature for just one bundle doesn't seem right.

 On Tue, May 19, 2015 at 1:49 PM, Isuru Udana isu...@wso2.com wrote:



 On Mon, May 18, 2015 at 4:42 PM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Can we get a new release of carbon-identity before Wed? I think we
 have sent all the required PRs.

 On Mon, May 18, 2015 at 4:36 PM, Isuru Udana isu...@wso2.com
 wrote:

 Hi,

 In ESB we are installing
 org.wso2.carbon.security.mgt.server.feature coming from 
 carbon-identity.

 org.wso2.carbon.identity.sts.store is also getting packed from the
 same feature.

 In sts store IdentityException is used in DBStsDAO class. That
 exception class is located in org.wso2.carbon.identity.base package 
 which
 is packing from org.wso2.carbon.identity.core.server.feature.
 So we have to ship that feature with ESB.
 But since identity.core is also getting packed from that feature,
 there are lot of unnecessary files like identity.xml getting added to 
 the
 ESB server. And also I noticed a significant delay in server start-up.

 So can we please create a more lightweight feature which packs only
 the org.wso2.carbon.identity.base, so that we can ship that with ESB ?

 We have the option to pack the identity.base with
 security.mgt.server feature too. Please evaluate the available options 
 and
 release the carbon-identity asap.

 Thanks.


 This is applicable to other servers like AS,DSS as well.

 Thanks.

 On Mon, May 18, 2015 at 3:07 PM, Isuru Udana isu...@wso2.com
 wrote:

 Hi,

 Few more issues.

 1.

 Installation failed.
 An error occurred while configuring the installed items
  session context was:(profile=worker,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, 
 operand=null
 -- [R]org.wso2.carbon.security.mgt.server.feature.group 4.4.1,
 action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
  I/O Error while copying
 /Users/isuruu/wso2/source/public/git/isudana/product-esb/modules/p2-profile/target/wso2carbon-core-4.4.0/repository/components/worker/../features/org.wso2.carbon.security.mgt.server_4.4.1/conf/jaas.conf
 - see details.
 Caused by:  java.io.IOException: Source:
 /Users/isuruu/wso2/source/public/git/isudana/product-esb/modules/p2-profile/target/wso2carbon-core-4.4.0/repository/components/worker/../features/org.wso2.carbon.security.mgt.server_4.4.1/conf/jaas.confdoes
 not exists
 Application failed, log file location:
 /Users/isuruu/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1431939984331.log

 2.

 !MESSAGE session context was:(profile=worker,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, 
 operand=null
 -- [R]org.wso2.carbon.identity.core.server.feature.group 4.4.1,
 action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
 !SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0
 2015-05-18 14:13:26.117
 !MESSAGE I/O Error while copying
 /Users/isuruu/wso2/source/public/git/isudana/product-esb/modules/p2-profile/target/wso2carbon-core-4.4.0/repository/components/worker/../features/org.wso2.carbon.identity.core.server_4.4.1/identity.xml
 - see details.
 !STACK 0
 java.io.IOException: Source:
 /Users/isuruu/wso2/source/public/git/isudana/product-esb/modules/p2-profile/target/wso2carbon-core-4.4.0/repository/components/worker/../features/org.wso2.carbon.identity.core.server_4.4.1/identity.xmldoes
 not exists

 This is something related to following commit.


 https://github.com/wso2/carbon-identity/commit/2e4316d253df5068eb20696663de483629b5ad47

 Error went away by reverting changes made to the following files
 in the above commit.


 

Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Ravi Undupitiya
Hi Manoj,

Some thing else we noticed was that we had xercesImpl jar in pack with
commons-4.4.1 and we did not see that error (this pack is located in [1]).


[1]
https://svn.wso2.com/wso2/custom/projects/scratch/ravi/wso2esb-4.9.0-ALPHA-SNAPSHOT.zip


Ravi

On Thu, May 21, 2015 at 3:18 PM, Isuru Udana isu...@wso2.com wrote:

 IS also packing the same bundle. Are they also facing the same issue ?
 Actually we packed this jar from entitlement.mediator feature since
 entitlement.proxy (in carbon-identity) requires it.

 On Thu, May 21, 2015 at 3:10 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 I manually deleted 'xercesImpl_2.8.1.wso2v2.jar' from the pack and things
 seems to be working fine. You may required to bundle that one. I think the
 root course is it export unnecessary packages and this cause issue.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:59 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Manoj,

 You can find the pack at [1].

 [1]
 https://svn.wso2.com/wso2/custom/projects/scratch/ravi/commons-4.4.2/wso2esb-4.9.0-M8-SNAPSHOT.zip

 On Thu, May 21, 2015 at 2:54 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 Can you share a ESB server.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:49 PM, Ravi Undupitiya r...@wso2.com wrote:

 We're also seeing this error when trying to upload a CApp after
 upgrade to carbon-commons 4.4.2.

 [2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying Carbon
 Application : esb-test_1.0.0.car...
 [2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while
 deploying carbon application
 /home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
 java.lang.NullPointerException
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployRecursively(DefaultAppDeployer.java:152)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployArtifacts(DefaultAppDeployer.java:69)
 at
 org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
 at
 org.wso2.carbon.application.deployer.CappAxis2Deployer.deploy(CappAxis2Deployer.java:72)
 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.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 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)

 On Thu, May 21, 2015 at 2:36 PM, Ravi Undupitiya r...@wso2.com
 wrote:

 Hi all,

 We upgraded carbon-commons to 4.4.2 and we are getting [1] when
 loading the carbon console.

 [1] Stack Trace
 [2015-05-21 14:00:56,449]  INFO - CarbonUIServiceComponent Mgt
 Console URL  : https://10.100.0.22:10343/carbon/
 [2015-05-21 14:01:32,657] ERROR - ApplicationDispatcher
 Servlet.service() for servlet bridgeservlet threw exception
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
 javax.xml.parsers.DocumentBuilderFactory
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
 Source)
 at
 

Re: [Dev] Please review and merge the PR

2015-05-21 Thread Waruna Jayaweera
Hi Vinod,
Merged the PR.

Thanks,
Waruna

On Thu, May 21, 2015 at 3:32 PM, Vinod Kavinda vi...@wso2.com wrote:

 Hi,

 Please merge the PR[1] for issue [2].

 [1] - https://github.com/wso2/carbon-business-process/pull/55
 [2] - https://wso2.org/jira/browse/BPS-633

 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




-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Please review and merge the PR[1]

2015-05-21 Thread Malaka Silva
Merged

On Thu, May 21, 2015 at 3:52 PM, Kathees Rajendram kath...@wso2.com wrote:

 Hi,

 $subject for the Kafka inbound sample 904

 [1] - https://github.com/wso2/product-esb/pull/162

 Thanks,
 Kathees

 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
http://wso2.com/about/team/malaka-silva/

Save a tree -Conserve nature  Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Please review and merge

2015-05-21 Thread Malaka Silva
merged

On Thu, May 21, 2015 at 11:55 AM, Nadeeshaan Gunasinghe nadeesh...@wso2.com
 wrote:

 Hi all,
 Please merge the following for sample 300 fix,

 [1] https://github.com/wso2/product-esb/pull/144

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
http://wso2.com/about/team/malaka-silva/

Save a tree -Conserve nature  Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2015-05-21 Thread Supun Sethunga
Thanks Manorama!

On Thu, May 21, 2015 at 4:22 PM, Manorama Perera manor...@wso2.com wrote:

 Hi,

 Please review and merge PR [1] - PMML extension.

 [1] https://github.com/wso2-gpl/siddhi/pull/9

 Thanks
 --
 Manorama Perera
 Software Engineer
 WSO2, Inc.;  http://wso2.com/
 Mobile : +94716436216




-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge AS Integration test commit#65

2015-05-21 Thread Nuwan Wimalasekara
Hi AS Team,

Please merge the pull request https://github.com/wso2/product-as/pull/65
for java security manager test cases.

Thanks,
Nuwanw

-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Lucene version mismatch in Greg features and BAM features

2015-05-21 Thread Gimantha Bandara
Hi Nirmal,

There are some changes need to be done in analytics indexing in order to
get it work with lucene 5 (planning to go with the latest 5.1.0) and also a
new orbit bundle needs to be created. I ll keep this thread updated.

On Wed, May 20, 2015 at 10:47 AM, Niranda Perera nira...@wso2.com wrote:

 Looping in Gimantha

 On Wed, May 20, 2015 at 10:39 AM, Nirmal Fernando nir...@wso2.com wrote:

 Hi,

 Whilst Greg is using lucene 5.0, BAM is using 4.10.3 version. This leads
 to conflicts at the ML product level.

 BAM team is it an option to move to Lucene 5.0.0 ?

 --

 Thanks  regards,
 Nirmal

 Associate Technical Lead - Data Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




-- 
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


Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Manoj Kumara
I'll start release process on Carbon-Commons now.


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Thu, May 21, 2015 at 10:09 PM, Isuru Udana isu...@wso2.com wrote:

 Hi All,

 We have encountered lot of issues after upgrading carbon-commons and
 carbon-identity (not released yet).

 We have to release following repos.

 carbon-commons, carbon-identity, carbon-multitenancy, carbon-deployment


 Carbon-commons
 

 Got the following error in p2 profile gen.

 Installation failed.
 An error occurred while configuring the installed items
  session context was:(profile=worker,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
 -- [R]org.wso2.carbon.tenant.mgt.common.server.feature.group 4.4.2,
 action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
  I/O Error while copying
 /Users/isuruu/wso2/source/public/git/isudana/product-esb/modules/p2-profile/target/wso2carbon-core-4.4.0/repository/components/worker/../features/org.wso2.carbon.tenant.mgt.common.server_4.4.2/conf/stratos.xml
 - see details.
 Caused by:  java.io.IOException: Source:
 /Users/isuruu/wso2/source/public/git/isudana/product-esb/modules/p2-profile/target/wso2carbon-core-4.4.0/repository/components/worker/../features/org.wso2.carbon.tenant.mgt.common.server_4.4.2/conf/stratos.xmldoes
 not exists
 Application failed, log file location:
 /Users/isuruu/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1432223824690.log



 This is due to
 https://github.com/wso2/carbon-commons/blob/1b946695cf10f0e4ae6c526675ecfc1db81e9f7d/features/tenant-mgt-common/org.wso2.carbon.tenant.mgt.common.server.feature/resources/p2.inf
 We need to remove line #6 here.


 Carbon-identity
 ——--

 Got issues due to massive refactoring has made.
 Ex.
 In captcha orbit packages are exported without a version

 http://maven.wso2.org/nexus/content/groups/wso2-public/kaptcha/wso2/kaptcha/2.3.0.wso2v1/kaptcha-2.3.0.wso2v1.pom
 But in identity packages are imported with a version.

 Diff attached to fix the issues. Please review and commit.


 Carnbon-multitenancy and carbon-deployment
 —— ——
 Need to upgrade carbon-identity version and do a release as features
 coming form these repos cannot co-exist with features coming from
 carbon-identity.

 Thanks.


 On Thu, May 21, 2015 at 3:52 PM, Malithi Edirisinghe malit...@wso2.com
 wrote:

 Hi Isuru,

 We are not packing that bundle. Neither we use entitlement.proxy in our
 pack.
 However, org.wso2.carbon.identity.entitlement component which we use,
 also requests for 'org.apache.xerces.util' and it comes from the osgi
 framework (org.eclipse.osgi_3.9.1.v20130814-1242). The same package is used
 with 'org.wso2.carbon.identity.entitlement.proxy'

 Thanks,
 Malithi.

 On Thu, May 21, 2015 at 3:18 PM, Isuru Udana isu...@wso2.com wrote:

 IS also packing the same bundle. Are they also facing the same issue ?
 Actually we packed this jar from entitlement.mediator feature since
 entitlement.proxy (in carbon-identity) requires it.

 On Thu, May 21, 2015 at 3:10 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 I manually deleted 'xercesImpl_2.8.1.wso2v2.jar' from the pack and
 things seems to be working fine. You may required to bundle that one. I
 think the root course is it export unnecessary packages and this cause
 issue.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:59 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Manoj,

 You can find the pack at [1].

 [1]
 https://svn.wso2.com/wso2/custom/projects/scratch/ravi/commons-4.4.2/wso2esb-4.9.0-M8-SNAPSHOT.zip

 On Thu, May 21, 2015 at 2:54 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 Can you share a ESB server.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:49 PM, Ravi Undupitiya r...@wso2.com
 wrote:

 We're also seeing this error when trying to upload a CApp after
 upgrade to carbon-commons 4.4.2.

 [2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying
 Carbon Application : esb-test_1.0.0.car...
 [2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while
 deploying carbon application
 /home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
 java.lang.NullPointerException
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
 at
 

Re: [Dev] ESB SendMediator : synapse properties from the cache - synapse.timeout_handler_interval

2015-05-21 Thread Malaka Silva
Hi Viraj,

TimeoutHandler is executed in an interval of 15 seconds. So the time the
callbacks get cleared can be deviated up to 15 seconds from the configured
value. The TimeoutHandler execution interval can be configured by defining
the following property at synapse.properties file:
synapse.timeout_handler_interval.

you can learn more about how to configuring timeouts using [1]

[1]
http://wso2.com/library/articles/2014/05/wso2-esb-a-guide-to-troubleshoot/


On Thu, May 21, 2015 at 10:22 PM, Dilini Muthumala dil...@wso2.com wrote:

 Hi Viraj,
 You can read about 'synapse.timeout_handler_interval' property in
 'Endpoint Timeout' section in [1]

 This property value can be set/changed-if-already-set, in
 synapse.properties file in ESB_HOME/repository/conf folder.
 If this property is not set in synapse.properties file, (by default it is
 not set, which is why you see the DEBUG log saying that it's not found.) a
 default value of 15 seconds is set. This default value is set
 in org.apache.synapse.SynapseConstants class [2].

 Regards,
 Dilini

 [1] https://docs.wso2.com/display/ESB481/Address+Endpoint
 [2]
 https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java


 On Thu, May 21, 2015 at 9:36 PM, Viraj Senevirathne vir...@wso2.com
 wrote:

 Hi All,

 I noticed when SendMediator is running for the first time, ESB retrieves
 synapse properties from the cache.

 What is the variable 'synapse.timeout_handler_interval' specified in
 following ESB DEBUG output and why it is not found?

 How this default value can be changed?





 [2015-05-21 21:08:50,756] DEBUG - SendMediator Start : Send mediator

 [2015-05-21 21:08:50,756] DEBUG - SendMediator Sending request message
 using implicit message properties..

 Sending To: http://localhost:9000/services/SimpleStockQuoteService

 SOAPAction: urn:getQuote

 [2015-05-21 21:08:50,758] DEBUG - Axis2FlexibleMEPClient Sending [add =
 false] [sec = false] [rm = false] [to=Address:
 http://localhost:9000/services/SimpleStockQuoteService]

 [2015-05-21 21:08:50,759] DEBUG - Axis2FlexibleMEPClient Message
 [Original Request Message ID :
 urn:uuid:e38066df-f98f-4b32-8404-08033defb9f5] [New Cloned Request Message
 ID : urn:uuid:14647c0b-d47c-403b-aa46-6f48a3ab9707]

 [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
 synapse properties from the cache

 *[2015-05-21 21:08:50,760] INFO - TimeoutHandler This engine will expire
 all callbacks after : 120 seconds, irrespective of the timeout action,
 after the specified or optional timeout*

 [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
 synapse properties from the cache

 *[2015-05-21 21:08:50,760] DEBUG - MiscellaneousUtil The name with
 'synapse.timeout_handler_interval' cannot be found. Using default value :
 15000*

 [2015-05-21 21:08:50,762] DEBUG - SynapseCallbackReceiver Callback added.
 Total callbacks waiting for : 1

 [2015-05-21 21:08:50,771] DEBUG - SendMediator End : Send mediator

 [2015-05-21 21:08:50,771] DEBUG - InMediator End : In mediator

 Thank you.

 Viraj

 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
 Email : vir...@wso2.com thili...@wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94 713-400-029

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
http://wso2.com/about/team/malaka-silva/

Save a tree -Conserve nature  Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB SendMediator : synapse properties from the cache - synapse.timeout_handler_interval

2015-05-21 Thread Viraj Senevirathne
Hi All,

Thank you for the information.What if backend server doesn't response back
and timeout will occur, so that callback will be cleared to eliminate
memory leaks. How will it be communicated back to the client?

Thanks

On Fri, May 22, 2015 at 9:14 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Viraj,

 TimeoutHandler is executed in an interval of 15 seconds. So the time the
 callbacks get cleared can be deviated up to 15 seconds from the configured
 value. The TimeoutHandler execution interval can be configured by defining
 the following property at synapse.properties file:
 synapse.timeout_handler_interval.

 you can learn more about how to configuring timeouts using [1]

 [1]
 http://wso2.com/library/articles/2014/05/wso2-esb-a-guide-to-troubleshoot/


 On Thu, May 21, 2015 at 10:22 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi Viraj,
 You can read about 'synapse.timeout_handler_interval' property in
 'Endpoint Timeout' section in [1]

 This property value can be set/changed-if-already-set, in
 synapse.properties file in ESB_HOME/repository/conf folder.
 If this property is not set in synapse.properties file, (by default it is
 not set, which is why you see the DEBUG log saying that it's not found.) a
 default value of 15 seconds is set. This default value is set
 in org.apache.synapse.SynapseConstants class [2].

 Regards,
 Dilini

 [1] https://docs.wso2.com/display/ESB481/Address+Endpoint
 [2]
 https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java


 On Thu, May 21, 2015 at 9:36 PM, Viraj Senevirathne vir...@wso2.com
 wrote:

 Hi All,

 I noticed when SendMediator is running for the first time, ESB retrieves
 synapse properties from the cache.

 What is the variable 'synapse.timeout_handler_interval' specified in
 following ESB DEBUG output and why it is not found?

 How this default value can be changed?





 [2015-05-21 21:08:50,756] DEBUG - SendMediator Start : Send mediator

 [2015-05-21 21:08:50,756] DEBUG - SendMediator Sending request message
 using implicit message properties..

 Sending To: http://localhost:9000/services/SimpleStockQuoteService

 SOAPAction: urn:getQuote

 [2015-05-21 21:08:50,758] DEBUG - Axis2FlexibleMEPClient Sending [add =
 false] [sec = false] [rm = false] [to=Address:
 http://localhost:9000/services/SimpleStockQuoteService]

 [2015-05-21 21:08:50,759] DEBUG - Axis2FlexibleMEPClient Message
 [Original Request Message ID :
 urn:uuid:e38066df-f98f-4b32-8404-08033defb9f5] [New Cloned Request Message
 ID : urn:uuid:14647c0b-d47c-403b-aa46-6f48a3ab9707]

 [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
 synapse properties from the cache

 *[2015-05-21 21:08:50,760] INFO - TimeoutHandler This engine will expire
 all callbacks after : 120 seconds, irrespective of the timeout action,
 after the specified or optional timeout*

 [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
 synapse properties from the cache

 *[2015-05-21 21:08:50,760] DEBUG - MiscellaneousUtil The name with
 'synapse.timeout_handler_interval' cannot be found. Using default value :
 15000*

 [2015-05-21 21:08:50,762] DEBUG - SynapseCallbackReceiver Callback
 added. Total callbacks waiting for : 1

 [2015-05-21 21:08:50,771] DEBUG - SendMediator End : Send mediator

 [2015-05-21 21:08:50,771] DEBUG - InMediator End : In mediator

 Thank you.

 Viraj

 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
 Email : vir...@wso2.com thili...@wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94 713-400-029

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
Email : vir...@wso2.com thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB SendMediator : synapse properties from the cache - synapse.timeout_handler_interval

2015-05-21 Thread Isuru Udana
Hi Viraj,

On Fri, May 22, 2015 at 9:51 AM, Viraj Senevirathne vir...@wso2.com wrote:

 Hi All,

 Thank you for the information.What if backend server doesn't response back
 and timeout will occur, so that callback will be cleared to eliminate
 memory leaks.

Callbacks are getting cleared from the TimeoutHandler, that's actually the
task of this TimeoutHandler.

 How will it be communicated back to the client?

Fault sequence will be invoked, we can configure fault sequence to send
some error response back to the client.


 Thanks

 On Fri, May 22, 2015 at 9:14 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Viraj,

 TimeoutHandler is executed in an interval of 15 seconds. So the time the
 callbacks get cleared can be deviated up to 15 seconds from the configured
 value. The TimeoutHandler execution interval can be configured by defining
 the following property at synapse.properties file:
 synapse.timeout_handler_interval.

 you can learn more about how to configuring timeouts using [1]

 [1]
 http://wso2.com/library/articles/2014/05/wso2-esb-a-guide-to-troubleshoot/


 On Thu, May 21, 2015 at 10:22 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi Viraj,
 You can read about 'synapse.timeout_handler_interval' property in
 'Endpoint Timeout' section in [1]

 This property value can be set/changed-if-already-set, in
 synapse.properties file in ESB_HOME/repository/conf folder.
 If this property is not set in synapse.properties file, (by default it
 is not set, which is why you see the DEBUG log saying that it's not found.)
 a default value of 15 seconds is set. This default value is set
 in org.apache.synapse.SynapseConstants class [2].

 Regards,
 Dilini

 [1] https://docs.wso2.com/display/ESB481/Address+Endpoint
 [2]
 https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java


 On Thu, May 21, 2015 at 9:36 PM, Viraj Senevirathne vir...@wso2.com
 wrote:

 Hi All,

 I noticed when SendMediator is running for the first time, ESB
 retrieves synapse properties from the cache.

 What is the variable 'synapse.timeout_handler_interval' specified in
 following ESB DEBUG output and why it is not found?

 How this default value can be changed?





 [2015-05-21 21:08:50,756] DEBUG - SendMediator Start : Send mediator

 [2015-05-21 21:08:50,756] DEBUG - SendMediator Sending request message
 using implicit message properties..

 Sending To: http://localhost:9000/services/SimpleStockQuoteService

 SOAPAction: urn:getQuote

 [2015-05-21 21:08:50,758] DEBUG - Axis2FlexibleMEPClient Sending [add =
 false] [sec = false] [rm = false] [to=Address:
 http://localhost:9000/services/SimpleStockQuoteService]

 [2015-05-21 21:08:50,759] DEBUG - Axis2FlexibleMEPClient Message
 [Original Request Message ID :
 urn:uuid:e38066df-f98f-4b32-8404-08033defb9f5] [New Cloned Request Message
 ID : urn:uuid:14647c0b-d47c-403b-aa46-6f48a3ab9707]

 [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
 synapse properties from the cache

 *[2015-05-21 21:08:50,760] INFO - TimeoutHandler This engine will
 expire all callbacks after : 120 seconds, irrespective of the timeout
 action, after the specified or optional timeout*

 [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
 synapse properties from the cache

 *[2015-05-21 21:08:50,760] DEBUG - MiscellaneousUtil The name with
 'synapse.timeout_handler_interval' cannot be found. Using default value :
 15000*

 [2015-05-21 21:08:50,762] DEBUG - SynapseCallbackReceiver Callback
 added. Total callbacks waiting for : 1

 [2015-05-21 21:08:50,771] DEBUG - SendMediator End : Send mediator

 [2015-05-21 21:08:50,771] DEBUG - InMediator End : In mediator

 Thank you.

 Viraj

 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
 Email : vir...@wso2.com thili...@wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94 713-400-029

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
 Email : vir...@wso2.com thili...@wso2.com


Re: [Dev] [DEV]: Device Cloud HTML

2015-05-21 Thread Rasika Perera
Hi Sharon,

Noted and thanks you. Will update the UIs.

Regards,

On Fri, May 22, 2015 at 8:22 AM, Sharon David shar...@wso2.com wrote:

 Hi All,

 Updated HTML.

 On Thu, May 21, 2015 at 7:56 PM, Sharon David shar...@wso2.com wrote:

 HI

 Please find attached Updated HTML

 On Mon, May 18, 2015 at 9:20 AM, Sharon David shar...@wso2.com wrote:

 Hi Shabir,

 I have fixed the cancel button for login and register.

 @Milan, thanks for pointing it out, have done the changes and reattached
 the HTML zip.




 On Sat, May 16, 2015 at 11:43 AM, Milan Perera mi...@wso2.com wrote:

 Hi,

 When I click a menu item in the top menu, colour of the text of that
 selected item becomes greay. IMO it is hard to see what has been selected
 and I think it has to be changed to some other colour instead of grey.

 For example, I have just selected '*ARCHITECTURE*'


 ​
 Regards,

 On Sat, May 16, 2015 at 12:18 AM, Shabir Mohamed sha...@wso2.com
 wrote:

 Hi Sharon,

 Please note that the *Cancel, *buttons under both *Login *and *Register
 *are not working.

 Thanks

 -
 *Shabir Mohamed*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 Email: sha...@wso2.com ayy...@wso2.com
 Mobile: +94 77 3516019 | +94 71 6583393

 On Fri, May 15, 2015 at 3:57 PM, Shabir Mohamed sha...@wso2.com
 wrote:

 Hi Chamin,


 Yeah. That was noted.
 Thanks Very Much

 -
 *Shabir Mohamed*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 Email: sha...@wso2.com ayy...@wso2.com
 Mobile: +94 77 3516019 | +94 71 6583393

 On Fri, May 15, 2015 at 3:54 PM, Chamin Nalinda chm...@gmail.com
 wrote:

 Hi,

 Please do note that the ArduinoUno image and Beaglebone image in
 the index.html need to switch with each other.

 Regards !

 On Fri, May 15, 2015 at 3:42 PM, Sharon David shar...@wso2.com
 wrote:

 Hi Shabir,

 Please find attached HTML for the above mentioned,
 I have made the register and login function.

 let me know if you need further assistance.

 --
 Sharon David
 Software Engineer - UI/UX  |   WSO2 Inc

 +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Chamin Nalinda
 Research Undergraduate
 University of Colombo School of Computing (UCSC).
 Student Member IEEE (92387118)
 Student Member ACM (5654073)

 LinkedIn: https://www.linkedin.com/in/chaminnalinda
 GitHub: https://github.com/CoolCK
 SlideShare: http://www.slideshare.net/ChaminNalindaLokuGam/
 Blog: http://techspiro.blogspot.com/



 ___
 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




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Sharon David
 Software Engineer - UI/UX  |   WSO2 Inc

 +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com




 --
 Sharon David
 Software Engineer - UI/UX  |   WSO2 Inc

 +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com




 --
 Sharon David
 Software Engineer - UI/UX  |   WSO2 Inc

 +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com




-- 
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


[Dev] [IS] Deleting Users of a group through SCIM PATCH

2015-05-21 Thread Chamila Wijayarathna
Hello all,

I have a group [1] in my user store.
I'm trying to delete all the members of this group using a SCIM PATCH
request.
I'm sent a PATCH request to the corresponding resource URL with following
method body.

{
  schemas: [urn:scim:schemas:core:1.0],
  meta: {
attributes: [
  members
]
  }
}

Then I am getting following error response from my client side[2].

What is the reason for this? Is our SCIM operations support deleting
attributes through PATCH?

Thank YOU!


1.
{
id: 3cf874f7-b845-44fd-8188-21d649645d72,
schemas:[
urn:scim:schemas:core:1.0
],
displayName: engineer2,
members:[
{
value: 0edcf100-d08a-449e-8a72-f6273fbed38e,
display: b
}
],
meta:{
lastModified: 2015-05-22T09:10:33,
created: 2015-05-22T09:10:33,
location: 
https://localhost:9443/wso2/scim/Groups/3cf874f7-b845-44fd-8188-21d649645d72

}
}

2.
htmlheadtitleApache Tomcat/7.0.59 - Error report/titlestyle!--H1
{fontfamily:Tahoma,Arial,sansserif;color:white;backgroundcolor:#525D76;fontsize:22px;}
H2
{fontfamily:Tahoma,Arial,sansserif;color:white;backgroundcolor:#525D76;fontsize:16px;}
H3
{fontfamily:Tahoma,Arial,sansserif;color:white;backgroundcolor:#525D76;fontsize:14px;}
BODY {fontfamily:Tahoma,Arial,sansserif;color:black;backgroundcolor:white;}
B {fontfamily:Tahoma,Arial,sansserif;color:white;backgroundcolor:#525D76;}
P
{fontfamily:Tahoma,Arial,sansserif;background:white;color:black;fontsize:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--/style
/headbodyh1HTTP Status 500 - org.apache.cxf.interceptor.Fault:
java.lang.NullPointerException cannot be cast to
org.wso2.charon.core.exceptions.ResourceNotFoundException/h1HR size=1
noshade=noshadepbtype/b Exception report/ppbmessage/b
uorg.apache.cxf.interceptor.Fault: java.lang.NullPointerException cannot
be cast to
org.wso2.charon.core.exceptions.ResourceNotFoundException/u/ppbdescription/b
uThe server encountered an internal error that prevented it from
fulfilling this request./u/ppbexception/b
prejava.lang.RuntimeException: org.apache.cxf.interceptor.Fault:
java.lang.NullPointerException cannot be cast to
org.wso2.charon.core.exceptions.ResourceNotFoundException
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:264)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
/pre/ppbroot cause/b preorg.apache.cxf.interceptor.Fault:
java.lang.NullPointerException cannot be cast to
org.wso2.charon.core.exceptions.ResourceNotFoundException
org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)
org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:264)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
/pre/ppbroot cause/b prejava.lang.ClassCastException:
java.lang.NullPointerException cannot be cast to
org.wso2.charon.core.exceptions.ResourceNotFoundException
org.wso2.charon.core.protocol.endpoints.GroupResourceEndpoint.handleException(GroupResourceEndpoint.java:440)

Re: [Dev] [MB] Error while starting MB 3.0.0 cluster setup

2015-05-21 Thread Krishantha Samaraweera
You can use applyConfigurationWithoutRestart() method in
ServerConfigurationManager class.

After applying all configuration call restartGracefully() method in the
same class.

Thanks,
Krishantha.

On Fri, May 22, 2015 at 9:28 AM, Asitha Nanayakkara asi...@wso2.com wrote:

 Commenting out in-memory mode by default led to automation test failure
 [1] since server couldn't start in in-memory mode without the in-memory
 datasource set

 For in-memory mode related test we are restarting the server with a
 broker.xml file configured to start the server in in-memory mode. We assume
 master-datasources.xml in-memory mode configuration is set. But if we
 comment it out we need to find a way to activate it again when the server
 restarts for in-memory mode tests.

 @Krishantha Is there a way to restart a server with changes to multiple
 configuration files. Currently we only change the broker.xml [2]

 * Restart the testing MB server in In-Memory H2 database mode by applying
 In-Memory database configurations * in andes-virtualhosts-H2-mem.xml file.
 * * @throws Exception */ protected void restartServerWithH2MemMode()
 throws Exception { serverManager = new ServerConfigurationManager
 (automationContext); // Replace the broker.xml with the new configuration
 and restarts the server. serverManager.applyConfiguration(new File(
 FrameworkPathUtil.getSystemResourceLocation() + File.separator + 
 artifacts + File.separator + mb + File.separator + config + 
 File.separator
 + broker.xml), new File(ServerConfigurationManager.getCarbonHome() +
 File.separator + repository + File.separator + conf + File.separator +
 broker.xml), true, true); }


 [1] https://wso2.org/jenkins/job/product-mb/424/console
 [2]
 https://github.com/wso2/product-mb/blob/master/modules/integration/tests-common/integration-tests-utils/src/main/java/org/wso2/mb/integration/common/utils/backend/MBIntegrationBaseTest.java#L63

 Thanks,
 Asitha

 On Thu, May 21, 2015 at 10:44 AM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi all,

 I've commented out H2 In-memory store by default with PR [1]

 [1] https://github.com/wso2/product-mb/pull/102


 On Thu, May 21, 2015 at 10:29 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 +1

 On Thu, May 21, 2015 at 10:26 AM, Hemika Kodikara hem...@wso2.com
 wrote:

 Also I think we should comment out the H2-In Memory store by default.
 WDYT ?

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Thu, May 21, 2015 at 10:22 AM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Better to highlight this in our docs as well.


 On Wed, May 20, 2015 at 11:16 PM, Indika Sampath indi...@wso2.com
 wrote:

 I looked into master-datasources.xml and there are two RDBMS
 datasources configured for WSO2MBStoreDB (H2 and MySQL). H2 is default
 database we distributed with MB pack. Please comment it [1] before you
 configure any other RDBMS datasource.

 !-- WSO2 MB embedded H2 Store --
 datasource
 nameWSO2_MB_STORE_DB/name
 descriptionThe datasource used for message broker
 database/description
 jndiConfig
 nameWSO2MBStoreDB/name
 /jndiConfig
 definition type=RDBMS
 configuration

 urljdbc:h2:repository/database/WSO2MB_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6/url
 driverClassNameorg.h2.Driver/driverClassName
 maxActive50/maxActive
 maxWait6/maxWait
 testOnBorrowtrue/testOnBorrow
 validationQuerySELECT 1/validationQuery
 validationInterval3/validationInterval
 /configuration
 /definition
 /datasource

 Cheers!


 On Thu, May 21, 2015 at 8:33 AM, Amalka Subasinghe ama...@wso2.com
 wrote:

 attached broker.xml and master-datasources.xml files

 On Wed, May 20, 2015 at 11:31 PM, Hemika Kodikara hem...@wso2.com
 wrote:

 Hi Amalka,

 Can you attach the broker.xml file and master-datasources.xml files
 ?

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Wed, May 20, 2015 at 10:54 PM, Amalka Subasinghe 
 ama...@wso2.com wrote:

 I'm using M7 pack. but I have to create the databases manually.

 On Wed, May 20, 2015 at 10:51 PM, Indika Sampath indi...@wso2.com
  wrote:

 Hi Amalka,

 You don't need to externally run db script. Below set of tables
 created when you start MB 3.0.0 pack with -Dsetup option. Which 
 milestone
 pack did you configure ?

 MB_BINDING
 MB_CONTENT
 MB_DURABLE_SUBSCRIPTION
 MB_EXCHANGE
 MB_EXPIRATION_DATA
 MB_METADATA
 MB_NODE
 MB_QUEUE
 MB_QUEUE_COUNTER
 MB_QUEUE_MAPPING

 Cheers!

 On Wed, May 20, 2015 at 10:14 PM, Amalka Subasinghe 
 ama...@wso2.com wrote:

 Hi,

 I'm trying to setup MB cluster with 2 MB nodes. When I start the
 MB node with -Dsetup following error was thrown.
 Do 

Re: [Dev] [MB] 'jmstansport' sample in MB is not related to JMS.

2015-05-21 Thread Ramith Jayasinghe
HI,
 I'm in favour of deprecating this one.
 @Shammi, @Hasitha: thoughts?

On Thu, May 21, 2015 at 2:53 PM, Hemika Kodikara hem...@wso2.com wrote:

 Hi All,

 In MB 3.0.0, we have a sample called jmstansport. As far as I understood
 in this sample was that a service is hosted using a wsdl and its methods
 are called using generated stubs. So in my opinion, this is not related to
 JMS.

 I was looking into the sample because of the following JIRA :
 https://wso2.org/jira/browse/MB-536

 Initially I got a different exception which I was able to fix using the
 following jar.

 axis2-transport-jms-1.1.0-wso2v11.jar

 My concern is that should we keep this in MB samples ?

 Correct me if my findings are wrong.

 Source code for sample [1].

 [1] -
 https://github.com/wso2/product-mb/tree/master/modules/samples/product/jmstransport

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762




-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] 'jmstansport' sample in MB is not related to JMS.

2015-05-21 Thread Hasitha Hiranya
AFAIR In good old days these two were mandatory tests for the platform.
Now the things has changed.
Thus +1

On Fri, May 22, 2015 at 12:10 AM, Ramith Jayasinghe ram...@wso2.com wrote:

 HI,
  I'm in favour of deprecating this one.
  @Shammi, @Hasitha: thoughts?

 On Thu, May 21, 2015 at 2:53 PM, Hemika Kodikara hem...@wso2.com wrote:

 Hi All,

 In MB 3.0.0, we have a sample called jmstansport. As far as I
 understood in this sample was that a service is hosted using a wsdl and its
 methods are called using generated stubs. So in my opinion, this is not
 related to JMS.

 I was looking into the sample because of the following JIRA :
 https://wso2.org/jira/browse/MB-536

 Initially I got a different exception which I was able to fix using the
 following jar.

 axis2-transport-jms-1.1.0-wso2v11.jar

 My concern is that should we keep this in MB samples ?

 Correct me if my findings are wrong.

 Source code for sample [1].

 [1] -
 https://github.com/wso2/product-mb/tree/master/modules/samples/product/jmstransport

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




-- 
*Hasitha Abeykoon*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Error while starting MB 3.0.0 cluster setup

2015-05-21 Thread Hemika Kodikara
Hi Asitha,

Cant we use the serverManager.applyConfiguration() method to apply a
master-datasources.xml file as well along with the broker.xml ?
Here, the master-datasources.xml file will have H2-InMemory uncommented.

Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Fri, May 22, 2015 at 10:40 AM, Krishantha Samaraweera 
krishan...@wso2.com wrote:

 You can use applyConfigurationWithoutRestart() method in
 ServerConfigurationManager class.

 After applying all configuration call restartGracefully() method in the
 same class.

 Thanks,
 Krishantha.

 On Fri, May 22, 2015 at 9:28 AM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Commenting out in-memory mode by default led to automation test failure
 [1] since server couldn't start in in-memory mode without the in-memory
 datasource set

 For in-memory mode related test we are restarting the server with a
 broker.xml file configured to start the server in in-memory mode. We assume
 master-datasources.xml in-memory mode configuration is set. But if we
 comment it out we need to find a way to activate it again when the server
 restarts for in-memory mode tests.

 @Krishantha Is there a way to restart a server with changes to multiple
 configuration files. Currently we only change the broker.xml [2]

 * Restart the testing MB server in In-Memory H2 database mode by applying
 In-Memory database configurations * in andes-virtualhosts-H2-mem.xml
 file. * * @throws Exception */ protected void restartServerWithH2MemMode()
 throws Exception { serverManager = new ServerConfigurationManager
 (automationContext); // Replace the broker.xml with the new
 configuration and restarts the server. serverManager.applyConfiguration(
 new File(FrameworkPathUtil.getSystemResourceLocation() + File.separator +
 artifacts + File.separator + mb + File.separator + config + 
 File.separator
 + broker.xml), new File(ServerConfigurationManager.getCarbonHome() +
 File.separator + repository + File.separator + conf + File.separator
 + broker.xml), true, true); }


 [1] https://wso2.org/jenkins/job/product-mb/424/console
 [2]
 https://github.com/wso2/product-mb/blob/master/modules/integration/tests-common/integration-tests-utils/src/main/java/org/wso2/mb/integration/common/utils/backend/MBIntegrationBaseTest.java#L63

 Thanks,
 Asitha

 On Thu, May 21, 2015 at 10:44 AM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi all,

 I've commented out H2 In-memory store by default with PR [1]

 [1] https://github.com/wso2/product-mb/pull/102


 On Thu, May 21, 2015 at 10:29 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 +1

 On Thu, May 21, 2015 at 10:26 AM, Hemika Kodikara hem...@wso2.com
 wrote:

 Also I think we should comment out the H2-In Memory store by default.
 WDYT ?

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Thu, May 21, 2015 at 10:22 AM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Better to highlight this in our docs as well.


 On Wed, May 20, 2015 at 11:16 PM, Indika Sampath indi...@wso2.com
 wrote:

 I looked into master-datasources.xml and there are two RDBMS
 datasources configured for WSO2MBStoreDB (H2 and MySQL). H2 is default
 database we distributed with MB pack. Please comment it [1] before you
 configure any other RDBMS datasource.

 !-- WSO2 MB embedded H2 Store --
 datasource
 nameWSO2_MB_STORE_DB/name
 descriptionThe datasource used for message broker
 database/description
 jndiConfig
 nameWSO2MBStoreDB/name
 /jndiConfig
 definition type=RDBMS
 configuration

 urljdbc:h2:repository/database/WSO2MB_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6/url
 driverClassNameorg.h2.Driver/driverClassName
 maxActive50/maxActive
 maxWait6/maxWait
 testOnBorrowtrue/testOnBorrow
 validationQuerySELECT 1/validationQuery
 validationInterval3/validationInterval
 /configuration
 /definition
 /datasource

 Cheers!


 On Thu, May 21, 2015 at 8:33 AM, Amalka Subasinghe ama...@wso2.com
 wrote:

 attached broker.xml and master-datasources.xml files

 On Wed, May 20, 2015 at 11:31 PM, Hemika Kodikara hem...@wso2.com
 wrote:

 Hi Amalka,

 Can you attach the broker.xml file and master-datasources.xml
 files ?

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Wed, May 20, 2015 at 10:54 PM, Amalka Subasinghe 
 ama...@wso2.com wrote:

 I'm using M7 pack. but I have to create the databases manually.

 On Wed, May 20, 2015 at 10:51 PM, Indika Sampath 
 indi...@wso2.com wrote:

 Hi Amalka,

 You don't need to externally run db script. Below set of tables
 created when you start 

Re: [Dev] [MB] Error while starting MB 3.0.0 cluster setup

2015-05-21 Thread Asitha Nanayakkara
Thanks Krishantha and Hemika. I will try that out

On Fri, May 22, 2015 at 10:45 AM, Hemika Kodikara hem...@wso2.com wrote:

 Hi Asitha,

 Cant we use the serverManager.applyConfiguration() method to apply a
 master-datasources.xml file as well along with the broker.xml ?
 Here, the master-datasources.xml file will have H2-InMemory uncommented.

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Fri, May 22, 2015 at 10:40 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 You can use applyConfigurationWithoutRestart() method in
 ServerConfigurationManager class.

 After applying all configuration call restartGracefully() method in the
 same class.

 Thanks,
 Krishantha.

 On Fri, May 22, 2015 at 9:28 AM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Commenting out in-memory mode by default led to automation test failure
 [1] since server couldn't start in in-memory mode without the in-memory
 datasource set

 For in-memory mode related test we are restarting the server with a
 broker.xml file configured to start the server in in-memory mode. We assume
 master-datasources.xml in-memory mode configuration is set. But if we
 comment it out we need to find a way to activate it again when the server
 restarts for in-memory mode tests.

 @Krishantha Is there a way to restart a server with changes to multiple
 configuration files. Currently we only change the broker.xml [2]

 * Restart the testing MB server in In-Memory H2 database mode by
 applying In-Memory database configurations * in
 andes-virtualhosts-H2-mem.xml file. * * @throws Exception */ protected
 void restartServerWithH2MemMode() throws Exception { serverManager = new
 ServerConfigurationManager(automationContext); // Replace the
 broker.xml with the new configuration and restarts the server.
 serverManager.applyConfiguration(new 
 File(FrameworkPathUtil.getSystemResourceLocation()
 + File.separator + artifacts + File.separator + mb + File.separator
 + config + File.separator + broker.xml), new File(
 ServerConfigurationManager.getCarbonHome() + File.separator + 
 repository + File.separator + conf + File.separator + broker.xml),
 true, true); }


 [1] https://wso2.org/jenkins/job/product-mb/424/console
 [2]
 https://github.com/wso2/product-mb/blob/master/modules/integration/tests-common/integration-tests-utils/src/main/java/org/wso2/mb/integration/common/utils/backend/MBIntegrationBaseTest.java#L63

 Thanks,
 Asitha

 On Thu, May 21, 2015 at 10:44 AM, Asitha Nanayakkara asi...@wso2.com
 wrote:

 Hi all,

 I've commented out H2 In-memory store by default with PR [1]

 [1] https://github.com/wso2/product-mb/pull/102


 On Thu, May 21, 2015 at 10:29 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 +1

 On Thu, May 21, 2015 at 10:26 AM, Hemika Kodikara hem...@wso2.com
 wrote:

 Also I think we should comment out the H2-In Memory store by default.
 WDYT ?

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Thu, May 21, 2015 at 10:22 AM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Better to highlight this in our docs as well.


 On Wed, May 20, 2015 at 11:16 PM, Indika Sampath indi...@wso2.com
 wrote:

 I looked into master-datasources.xml and there are two RDBMS
 datasources configured for WSO2MBStoreDB (H2 and MySQL). H2 is default
 database we distributed with MB pack. Please comment it [1] before you
 configure any other RDBMS datasource.

 !-- WSO2 MB embedded H2 Store --
 datasource
 nameWSO2_MB_STORE_DB/name
 descriptionThe datasource used for message broker
 database/description
 jndiConfig
 nameWSO2MBStoreDB/name
 /jndiConfig
 definition type=RDBMS
 configuration

 urljdbc:h2:repository/database/WSO2MB_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6/url
 driverClassNameorg.h2.Driver/driverClassName
 maxActive50/maxActive
 maxWait6/maxWait
 testOnBorrowtrue/testOnBorrow
 validationQuerySELECT 1/validationQuery
 validationInterval3/validationInterval
 /configuration
 /definition
 /datasource

 Cheers!


 On Thu, May 21, 2015 at 8:33 AM, Amalka Subasinghe ama...@wso2.com
  wrote:

 attached broker.xml and master-datasources.xml files

 On Wed, May 20, 2015 at 11:31 PM, Hemika Kodikara hem...@wso2.com
  wrote:

 Hi Amalka,

 Can you attach the broker.xml file and master-datasources.xml
 files ?

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Wed, May 20, 2015 at 10:54 PM, Amalka Subasinghe 
 ama...@wso2.com wrote:

 I'm using M7 pack. but I have to create the databases manually.

 On Wed, May 20, 2015 at 10:51 PM, 

Re: [Dev] Please merge AS Integration test commit#65

2015-05-21 Thread Jayanga Dissanayake
Hi,

PR[1] is merged.
[1]
https://github.com/wso2/product-as/commit/d8f13675c06f9b57901fcaf52be33f509bdb41a4

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Thu, May 21, 2015 at 7:04 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi AS Team,

 Please merge the pull request https://github.com/wso2/product-as/pull/65
 for java security manager test cases.

 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Component missing : com.google.code.gson in kernel pack

2015-05-21 Thread Niranjan Karunanandham
Hi Anjana,

Kind reminder.

Regards,
Nira


On Thu, May 21, 2015 at 4:49 PM, Ruchira Wageesha ruch...@wso2.com wrote:



 On Tue, May 19, 2015 at 5:52 PM, Niranjan Karunanandham niran...@wso2.com
  wrote:

 Hi,

 When writing the integration test for axis2 gson [1], I came across a
 runtime exception. This was because axis2 gson requires*
 com.google.code.gson* which is not there in the kernel pack. Shall I add
 bundleDefcom.google.code.gson:gson/bundleDef in pom.xml of
 features/org.wso2.carbon.core.common.feature ? Currently the latest version
 is 2.3.1.

 @Anjana and Ruchira: I noticed that currently* com.google.code.gson *is
 installed when *jaggery server feature* [2] or* datapublisher feature*
 [3]. If this component is installed along with kernel, can we remove it
 being installed by jaggery server and datapublisher features? I also
 noticed that for jaggery depends on 2.1 and datapublisher depends on 2.2.4.
 If this is moved to kernel, can we have the latest version, i.e., 2.3.1?

 +1




-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB SendMediator : synapse properties from the cache - synapse.timeout_handler_interval

2015-05-21 Thread Viraj Senevirathne
Hi All,

I noticed when SendMediator is running for the first time, ESB retrieves
synapse properties from the cache.

What is the variable 'synapse.timeout_handler_interval' specified in
following ESB DEBUG output and why it is not found?

How this default value can be changed?

[2015-05-21 21:08:50,756] DEBUG - SendMediator Start : Send mediator

[2015-05-21 21:08:50,756] DEBUG - SendMediator Sending request message
using implicit message properties..

Sending To: http://localhost:9000/services/SimpleStockQuoteService

SOAPAction: urn:getQuote

[2015-05-21 21:08:50,758] DEBUG - Axis2FlexibleMEPClient Sending [add =
false] [sec = false] [rm = false] [to=Address:
http://localhost:9000/services/SimpleStockQuoteService]

[2015-05-21 21:08:50,759] DEBUG - Axis2FlexibleMEPClient Message [Original
Request Message ID : urn:uuid:e38066df-f98f-4b32-8404-08033defb9f5] [New
Cloned Request Message ID : urn:uuid:14647c0b-d47c-403b-aa46-6f48a3ab9707]

[2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
synapse properties from the cache

*[2015-05-21 21:08:50,760] INFO - TimeoutHandler This engine will expire
all callbacks after : 120 seconds, irrespective of the timeout action,
after the specified or optional timeout*

[2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
synapse properties from the cache

*[2015-05-21 21:08:50,760] DEBUG - MiscellaneousUtil The name with
'synapse.timeout_handler_interval' cannot be found. Using default value :
15000*

[2015-05-21 21:08:50,762] DEBUG - SynapseCallbackReceiver Callback added.
Total callbacks waiting for : 1

[2015-05-21 21:08:50,771] DEBUG - SendMediator End : Send mediator

[2015-05-21 21:08:50,771] DEBUG - InMediator End : In mediator

Thank you.

Viraj

-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
Email : vir...@wso2.com thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB SendMediator : synapse properties from the cache - synapse.timeout_handler_interval

2015-05-21 Thread Dilini Muthumala
Hi Viraj,
You can read about 'synapse.timeout_handler_interval' property in 'Endpoint
Timeout' section in [1]

This property value can be set/changed-if-already-set, in
synapse.properties file in ESB_HOME/repository/conf folder.
If this property is not set in synapse.properties file, (by default it is
not set, which is why you see the DEBUG log saying that it's not found.) a
default value of 15 seconds is set. This default value is set
in org.apache.synapse.SynapseConstants class [2].

Regards,
Dilini

[1] https://docs.wso2.com/display/ESB481/Address+Endpoint
[2]
https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java

On Thu, May 21, 2015 at 9:36 PM, Viraj Senevirathne vir...@wso2.com wrote:

 Hi All,

 I noticed when SendMediator is running for the first time, ESB retrieves
 synapse properties from the cache.

 What is the variable 'synapse.timeout_handler_interval' specified in
 following ESB DEBUG output and why it is not found?

 How this default value can be changed?





 [2015-05-21 21:08:50,756] DEBUG - SendMediator Start : Send mediator

 [2015-05-21 21:08:50,756] DEBUG - SendMediator Sending request message
 using implicit message properties..

 Sending To: http://localhost:9000/services/SimpleStockQuoteService

 SOAPAction: urn:getQuote

 [2015-05-21 21:08:50,758] DEBUG - Axis2FlexibleMEPClient Sending [add =
 false] [sec = false] [rm = false] [to=Address:
 http://localhost:9000/services/SimpleStockQuoteService]

 [2015-05-21 21:08:50,759] DEBUG - Axis2FlexibleMEPClient Message [Original
 Request Message ID : urn:uuid:e38066df-f98f-4b32-8404-08033defb9f5] [New
 Cloned Request Message ID : urn:uuid:14647c0b-d47c-403b-aa46-6f48a3ab9707]

 [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
 synapse properties from the cache

 *[2015-05-21 21:08:50,760] INFO - TimeoutHandler This engine will expire
 all callbacks after : 120 seconds, irrespective of the timeout action,
 after the specified or optional timeout*

 [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving
 synapse properties from the cache

 *[2015-05-21 21:08:50,760] DEBUG - MiscellaneousUtil The name with
 'synapse.timeout_handler_interval' cannot be found. Using default value :
 15000*

 [2015-05-21 21:08:50,762] DEBUG - SynapseCallbackReceiver Callback added.
 Total callbacks waiting for : 1

 [2015-05-21 21:08:50,771] DEBUG - SendMediator End : Send mediator

 [2015-05-21 21:08:50,771] DEBUG - InMediator End : In mediator

 Thank you.

 Viraj

 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 818 4742 %2B94%20%280%29%20773%20451194
 Email : vir...@wso2.com thili...@wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
*Dilini Muthumala*
Software Engineer,
WSO2 Inc.

*E-mail :* dil...@wso2.com
*Mobile: *+94 713-400-029
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.9.0 with carbon-commons 4.4.2

2015-05-21 Thread Isuru Udana
Hi All,

We have encountered lot of issues after upgrading carbon-commons and
carbon-identity (not released yet).

We have to release following repos.

carbon-commons, carbon-identity, carbon-multitenancy, carbon-deployment


Carbon-commons


Got the following error in p2 profile gen.

Installation failed.
An error occurred while configuring the installed items
 session context was:(profile=worker,
phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
-- [R]org.wso2.carbon.tenant.mgt.common.server.feature.group 4.4.2,
action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
 I/O Error while copying
/Users/isuruu/wso2/source/public/git/isudana/product-esb/modules/p2-profile/target/wso2carbon-core-4.4.0/repository/components/worker/../features/org.wso2.carbon.tenant.mgt.common.server_4.4.2/conf/stratos.xml
- see details.
Caused by:  java.io.IOException: Source:
/Users/isuruu/wso2/source/public/git/isudana/product-esb/modules/p2-profile/target/wso2carbon-core-4.4.0/repository/components/worker/../features/org.wso2.carbon.tenant.mgt.common.server_4.4.2/conf/stratos.xmldoes
not exists
Application failed, log file location:
/Users/isuruu/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1432223824690.log



This is due to
https://github.com/wso2/carbon-commons/blob/1b946695cf10f0e4ae6c526675ecfc1db81e9f7d/features/tenant-mgt-common/org.wso2.carbon.tenant.mgt.common.server.feature/resources/p2.inf
We need to remove line #6 here.


Carbon-identity
——--

Got issues due to massive refactoring has made.
Ex.
In captcha orbit packages are exported without a version
http://maven.wso2.org/nexus/content/groups/wso2-public/kaptcha/wso2/kaptcha/2.3.0.wso2v1/kaptcha-2.3.0.wso2v1.pom
But in identity packages are imported with a version.

Diff attached to fix the issues. Please review and commit.


Carnbon-multitenancy and carbon-deployment
—— ——
Need to upgrade carbon-identity version and do a release as features coming
form these repos cannot co-exist with features coming from carbon-identity.

Thanks.


On Thu, May 21, 2015 at 3:52 PM, Malithi Edirisinghe malit...@wso2.com
wrote:

 Hi Isuru,

 We are not packing that bundle. Neither we use entitlement.proxy in our
 pack.
 However, org.wso2.carbon.identity.entitlement component which we use, also
 requests for 'org.apache.xerces.util' and it comes from the osgi framework
 (org.eclipse.osgi_3.9.1.v20130814-1242). The same package is used
 with 'org.wso2.carbon.identity.entitlement.proxy'

 Thanks,
 Malithi.

 On Thu, May 21, 2015 at 3:18 PM, Isuru Udana isu...@wso2.com wrote:

 IS also packing the same bundle. Are they also facing the same issue ?
 Actually we packed this jar from entitlement.mediator feature since
 entitlement.proxy (in carbon-identity) requires it.

 On Thu, May 21, 2015 at 3:10 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 I manually deleted 'xercesImpl_2.8.1.wso2v2.jar' from the pack and
 things seems to be working fine. You may required to bundle that one. I
 think the root course is it export unnecessary packages and this cause
 issue.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:59 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Manoj,

 You can find the pack at [1].

 [1]
 https://svn.wso2.com/wso2/custom/projects/scratch/ravi/commons-4.4.2/wso2esb-4.9.0-M8-SNAPSHOT.zip

 On Thu, May 21, 2015 at 2:54 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Ravi,

 Can you share a ESB server.

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Thu, May 21, 2015 at 2:49 PM, Ravi Undupitiya r...@wso2.com
 wrote:

 We're also seeing this error when trying to upload a CApp after
 upgrade to carbon-commons 4.4.2.

 [2015-05-21 14:07:31,654]  INFO - ApplicationManager Deploying Carbon
 Application : esb-test_1.0.0.car...
 [2015-05-21 14:07:32,797] ERROR - CappAxis2Deployer Error while
 deploying carbon application
 /home/wso2builder/WSO2/product-esb/modules/distribution/target/wso2esb-4.9.0-M8-SNAPSHOT/repository/deployment/server/carbonapps/esb-test_1.0.0.car
 java.lang.NullPointerException
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.areAllFeaturesInstalled(AppDeployerUtils.java:610)
 at
 org.wso2.carbon.application.deployer.AppDeployerUtils.buildAcceptanceList(AppDeployerUtils.java:634)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.isAccepted(DefaultAppDeployer.java:214)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployRecursively(DefaultAppDeployer.java:152)
 at
 org.wso2.carbon.application.deployer.handler.DefaultAppDeployer.deployArtifacts(DefaultAppDeployer.java:69)
 at
 org.wso2.carbon.application.deployer.internal.ApplicationManager.deployCarbonApp(ApplicationManager.java:263)
 at
 

Re: [Dev] Please review and merge PR

2015-05-21 Thread Nirmal Fernando
Great work Manorama!!

On Thu, May 21, 2015 at 8:32 PM, Supun Sethunga sup...@wso2.com wrote:

 Thanks Manorama!

 On Thu, May 21, 2015 at 4:22 PM, Manorama Perera manor...@wso2.com
 wrote:

 Hi,

 Please review and merge PR [1] - PMML extension.

 [1] https://github.com/wso2-gpl/siddhi/pull/9

 Thanks
 --
 Manorama Perera
 Software Engineer
 WSO2, Inc.;  http://wso2.com/
 Mobile : +94716436216




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 http://wso2.com/
 lean | enterprise | middleware
 Mobile : +94 716546324

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Thanks  regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev