Re: [Dev] [BAM] java.lang.OutOfMemoryError: GC overhead limit exceeded

2014-02-22 Thread Malintha Adikari
Hi Chamila,

Seems this happens from the cassandra side. You can solve this issue up to
some level by tuning Garbage Collector for Cassandra. Please look at
this[1] blog post. Hope it would be helpful

1.
http://malinthas.blogspot.com/2014/01/how-to-tune-apache-cassandra-garbage.html

Regards,


On Sat, Feb 22, 2014 at 8:41 AM, Udara Liyanage ud...@wso2.com wrote:

 Googling got me to have this disable GC overhead limit by using below
 command line parameter.
   -XX:-UseGCOverheadLimit
 This can be used to temporary avoid the error and proceed. However please
 investigate.

 Touched, not typed. Erroneous words are a feature, not a typo.

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




-- 
*Malintha Adikari*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 2312958
Blog: http://malinthas.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB: Issue with setting timeout values dynamically

2014-02-22 Thread Malaka Silva
This is a requirement for connector implementations.


On Fri, Feb 21, 2014 at 2:36 PM, Isuru Udana isu...@wso2.com wrote:

 Hi,

 Setting the endpoint timeout values dynamically is not supported.
 What is the actual requirement to make it dynamic ? In typical integration
 scenarios, endpoint timeout value is a pre-configured static value.

 Thanks.


 On Fri, Feb 21, 2014 at 2:13 PM, Krishantha Dinesh 
 kr...@krishantha.comwrote:

 try this

 xsl:value-of select=number($valueinText)



 On Fri, Feb 21, 2014 at 1:27 PM, wchinthakaps 
 senanayakachinth...@gmail.com wrote:

 I have to set endpoint call timeout dynamically, from user input SOAP
 request
 value.

 Timeout synapse template:
 template name=timeout xmlns=http://ws.apache.org/ns/synapse;
 parameter name=timout_duration /
 parameter name=initial_duration /
 parameter name=progressafactor /
 parameter name=maximumDuration /

 endpoint name=annonymous
 default format=soap11
 timeout
 duration$timout_duration/duration
 responseActionfault/responseAction
 /timeout
 suspendOnFailure

 initialDuration$initial_duration/initialDuration

 progressionFactor$progressafactor/progressionFactor

 maximumDuration$maximumDuration/maximumDuration
 /suspendOnFailure
 /default
 /endpoint
 /template

 Call the endpoint:
 call
 endpoint name=templ_ep_timeout
 template=[timeout template path]
 parameter name=timout_duration
 value=6000 /
 parameter name=initial_duration
 value=2000 /
 parameter name=progressafactor
 value=2.0 /
 parameter name=maximumDuration
 value=3000 /
 /endpoint
 /call

 Questions:

 1. parameter name=timout_duration value=6000 /. How to set
 timout_duration parameter value dynamically? ex: taken from SOAP
 request
 and set value through expression=get-property('timeoutDuration')

 2. Anyway I tried, without timeout template, inside my synapse template
 with: parameter name=timeoutDuration description=timout_duration /
 call:
 call
 endpoint
 default format=soap11
 timeout
 duration$timeoutDuration/duration
 responseActionfault/responseAction
 /timeout
 suspendOnFailure
 initialDuration2000/initialDuration

 progressionFactor1.5/progressionFactor
 maximumDuration3000/maximumDuration
 /suspendOnFailure
 /default
 /endpoint
 /call

 when template deployed:
 Caused by: org.apache.synapse.SynapseException: Endpoint timeout
 duration
 expected as a number but was not a number, comes.
 if this way is poible, how to make $timeoutDuration as number?



 --
 View this message in context:
 http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Issue-with-setting-timeout-values-dynamically-tp92461.html
 Sent from the WSO2 Development mailing list archive at Nabble.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




 --
 *Isuru Udana*
 Senior
 * Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana

 ___
 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] Error using BAM mediator from proxy

2014-02-22 Thread Samisa Abeysinghe
There seem to be a registry issue. And I am using Windows, so I wonder if
this is a Windows issue.

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Developer Evangelism

WSO2 Inc.
http://wso2.com



On Fri, Feb 21, 2014 at 10:26 PM, Evanthika Amarasiri evanth...@wso2.comwrote:

 Hi Samisa,

 I followed [1] with ESB 4.8.1 and stats were published as expected. We did
 test this for the release as well.

 [1] - http://docs.wso2.org/display/BAM240/Setting+up+BAM+Mediator

 Regards,
 Evanthika

 On Fri, Feb 21, 2014 at 5:31 PM, Samisa Abeysinghe sam...@wso2.comwrote:

 So looks like ESB 4.8.1 BAM mediator is not working.

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Developer Evangelism

 WSO2 Inc.
 http://wso2.com



 On Fri, Feb 21, 2014 at 5:26 PM, Samisa Abeysinghe sam...@wso2.comwrote:

 Ah mistake, it is already installed.

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Developer Evangelism

 WSO2 Inc.
 http://wso2.com



 On Fri, Feb 21, 2014 at 5:24 PM, Samisa Abeysinghe sam...@wso2.comwrote:

 Looks like *BAM Mediator *is not available for ESB 4.8.1. Do I have to
 use 4.8.0?

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Developer Evangelism

 WSO2 Inc.
 http://wso2.com



 On Fri, Feb 21, 2014 at 4:36 PM, Maninda Edirisooriya mani...@wso2.com
  wrote:

 Hi Samisa,

 You may have missed the 5 and 6 steps under the topic Configuring
 server profiles and streams in the doc [1]. (i.e. Saving BAM server
 profile in ESB)

 [1] http://docs.wso2.org/display/BAM240/Setting+up+BAM+Mediator


 *Maninda Edirisooriya*
 Software Engineer

 *WSO2, Inc. *lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *Phone* : +94 777603226


 On Fri, Feb 21, 2014 at 4:32 PM, Chanaka Fernando 
 chana...@wso2.comwrote:

 Hi Samisa,

 According to the error, ESB can't find the registry resource for the
 BAM server profile.

 ERROR - RegistryManager Error while getting the resource from
 Registry. Resource does not exist at path /_system/config/
 bamServerProfiles/SimpleStockQuoteProfile


 You can browse this from the ESB registry and check whether this
 resource is available in this path (/_system/config/
 bamServerProfiles/SimpleStockQuoteProfile). This kind of error can
 happen if you change the stream definition of the BAM server profile, 
 when
 it is already used by a proxy. But in this scenario, it looks like this 
 BAM
 profile is not saved in  the registry.


 Thanks,
 Chanaka





 On Fri, Feb 21, 2014 at 3:55 PM, Samisa Abeysinghe 
 sam...@wso2.comwrote:

 I am following the instructions in
 http://wso2.com/library/articles/2013/07/monitoring-a-web-service-via-esb-analyzing-and-visualizing-results-using-bam/on
  Windows.

 I have defined the BAM server profile.

 But cannot use it form the proxy service. When configuring the
 mediator, the UI fails to fetch the stream name and version.

 I am using 2.4.0

 What could be the issue here?


 [2014-02-21 15:47:13,597] ERROR - RegistryManager Error while
 getting the resource from Registry. Resource does not exist at path
 /_system/config/bamServerProfiles/SimpleStockQuoteProfile
 org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
 Resource does not exist at path
 /_system/config/bamServerProfiles/SimpleStockQuoteProfile
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:532)
 at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:164)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:524)
 at
 org.wso2.carbon.mediator.bam.config.RegistryManager.getResourceString(RegistryManager.java:90)
 at
 org.wso2.carbon.mediator.bam.config.services.BamServerProfileConfigAdmin.getResourceString(BamServerProfileConfigAdmin.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at
 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
 at
 

Re: [Dev] Error using BAM mediator from proxy

2014-02-22 Thread Pandula Kariyawasam
Hi Samisa,

I tried this with having ESB4.8.1 on a windows7 machine and BAM2.4.1 
AS5.2.1 on Ubuntu. It worked for me, expected message properties (company
name  volume) received to BAM side. Since the windows machine is very low
in performance, couldn't try all three on it.


Thanks,
Pandula



On Sun, Feb 23, 2014 at 6:30 AM, Samisa Abeysinghe sam...@wso2.com wrote:

 There seem to be a registry issue. And I am using Windows, so I wonder if
 this is a Windows issue.

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Developer Evangelism

 WSO2 Inc.
 http://wso2.com



 On Fri, Feb 21, 2014 at 10:26 PM, Evanthika Amarasiri 
 evanth...@wso2.comwrote:

 Hi Samisa,

 I followed [1] with ESB 4.8.1 and stats were published as expected. We
 did test this for the release as well.

 [1] - http://docs.wso2.org/display/BAM240/Setting+up+BAM+Mediator

 Regards,
 Evanthika

 On Fri, Feb 21, 2014 at 5:31 PM, Samisa Abeysinghe sam...@wso2.comwrote:

 So looks like ESB 4.8.1 BAM mediator is not working.

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Developer Evangelism

 WSO2 Inc.
 http://wso2.com



 On Fri, Feb 21, 2014 at 5:26 PM, Samisa Abeysinghe sam...@wso2.comwrote:

 Ah mistake, it is already installed.

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Developer Evangelism

 WSO2 Inc.
 http://wso2.com



 On Fri, Feb 21, 2014 at 5:24 PM, Samisa Abeysinghe sam...@wso2.comwrote:

 Looks like *BAM Mediator *is not available for ESB 4.8.1. Do I have
 to use 4.8.0?

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Developer Evangelism

 WSO2 Inc.
 http://wso2.com



 On Fri, Feb 21, 2014 at 4:36 PM, Maninda Edirisooriya 
 mani...@wso2.com wrote:

 Hi Samisa,

 You may have missed the 5 and 6 steps under the topic Configuring
 server profiles and streams in the doc [1]. (i.e. Saving BAM server
 profile in ESB)

 [1] http://docs.wso2.org/display/BAM240/Setting+up+BAM+Mediator


 *Maninda Edirisooriya*
 Software Engineer

 *WSO2, Inc. *lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *Phone* : +94 777603226


 On Fri, Feb 21, 2014 at 4:32 PM, Chanaka Fernando 
 chana...@wso2.comwrote:

 Hi Samisa,

 According to the error, ESB can't find the registry resource for the
 BAM server profile.

 ERROR - RegistryManager Error while getting the resource from
 Registry. Resource does not exist at path /_system/config/
 bamServerProfiles/SimpleStockQuoteProfile


 You can browse this from the ESB registry and check whether this
 resource is available in this path (/_system/config/
 bamServerProfiles/SimpleStockQuoteProfile). This kind of error can
 happen if you change the stream definition of the BAM server profile, 
 when
 it is already used by a proxy. But in this scenario, it looks like this 
 BAM
 profile is not saved in  the registry.


 Thanks,
 Chanaka





 On Fri, Feb 21, 2014 at 3:55 PM, Samisa Abeysinghe 
 sam...@wso2.comwrote:

 I am following the instructions in
 http://wso2.com/library/articles/2013/07/monitoring-a-web-service-via-esb-analyzing-and-visualizing-results-using-bam/on
  Windows.

 I have defined the BAM server profile.

 But cannot use it form the proxy service. When configuring the
 mediator, the UI fails to fetch the stream name and version.

 I am using 2.4.0

 What could be the issue here?


 [2014-02-21 15:47:13,597] ERROR - RegistryManager Error while
 getting the resource from Registry. Resource does not exist at path
 /_system/config/bamServerProfiles/SimpleStockQuoteProfile
 org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
 Resource does not exist at path
 /_system/config/bamServerProfiles/SimpleStockQuoteProfile
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:532)
 at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:164)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:524)
 at
 org.wso2.carbon.mediator.bam.config.RegistryManager.getResourceString(RegistryManager.java:90)
 at
 org.wso2.carbon.mediator.bam.config.services.BamServerProfileConfigAdmin.getResourceString(BamServerProfileConfigAdmin.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at