Re: [Dev] [MB] ValueEvent exception occurred on disruptor for MQTT
Hi Sumedha, As pamod mention this is a generic exception[1][2][3] which requires more info to identify the exact cause. We had long running test(mixed QOS test) for around 5 days(120h+) and during that we didn't observe this particular issue as well. Further, we have done several comparisons tests[4] and added few integration mqtt load tests[5] to verify mqtt stability. [1] https://wso2.org/jira/browse/MB-1211 [2] https://wso2.org/jira/browse/MB-1837 [3] https://wso2.org/jira/browse/MB-1328 [4] https://docs.google.com/a/wso2.com/spreadsheets/d/1C50DqgBqXB8_-SND_YJpmXE-ArhxN8Fbg6-K0kQAZZc/edit?usp=sharing [5] https://github.com/wso2/product-mb/tree/v3.1.0/modules/integration/tests-integration/tests-mqtt/src/test/java/org/wso2/mb/integration/tests/mqtt/load Thanks, On Thu, Apr 27, 2017 at 11:45 PM, Pamod Sylvester <pa...@wso2.com> wrote: > Hi Sumedha, > > With the amount of information available it would be hard to conclude > where the error occurs. > > Also it would be ideal if there's a way to get disruptor to pin-point the > exact location of the Nullpointer when it occurs in the stack trace in it's > log exception handler. Will update this thread if i find any. > > Let's also make sure to monitor the packets exchanged between the clients > since this issue occurs during the protocol handling and converting the > bytes[] to a message, so that we could identify whether it's due to a > result of malformed packet etc just to make sure. > > @Pumudu please add your thoughts. Also could you share the details of the > long running tests we did (the type of tests we carried out etc) > > Thanks, > Pamod > > On Thu, Apr 27, 2017 at 9:51 PM, Sumedha Rubasinghe <sume...@wso2.com> > wrote: > >> Pamod, >> What is the most longest running MB deployment we have? >> >> Is this case, we have had 8 devices pushing data to MB several time >> within a minute and a DAS listener picking them up. We had this setup >> running for more than 1 month. >> >> On Thu, Apr 27, 2017 at 8:18 PM, Pamod Sylvester <pa...@wso2.com> wrote: >> >>> We've not come across this issue before. >>> >>> it seems, this has occurred in one of the disruptor handlers in >>> Moquette. Shall we enable debug/tracing logs in Moquette side to further >>> drill down the issue, >>> >>> The following logs will be useful, >>> >>> 1. org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging >>> 2. org.dna.mqtt.moquette.messaging.spi.impl.ProtocolProcessor >>> >>> Thanks, >>> Pamod >>> >>> On Thu, Apr 27, 2017 at 6:59 PM, Sumedha Rubasinghe <sume...@wso2.com> >>> wrote: >>> >>>> MB guys, >>>> You can consider this as a real production issue. We have been running >>>> the server for few weeks now. >>>> >>>> On Thu, Apr 27, 2017 at 4:22 PM, Ayyoob Hamza <ayy...@wso2.com> wrote: >>>> >>>>> Hi All, >>>>> >>>>> We did a long running test for a couple of weeks and in MB we see >>>>> following logs getting printed continuously and devices are failing to >>>>> publish data. Is this a known issue? >>>>> >>>>> TID: [] [] [2017-04-27 16:03:21,390] ERROR >>>>> {org.dna.mqtt.wso2.MQTTLogExceptionHandler} - ValueEvent exception >>>>> occurred on disruptor. {org.dna.mqtt.wso2.MQTTLogExceptionHandler} >>>>> java.lang.NullPointerException >>>>> >>>>> >>>>> Thanks, >>>>> *Ayyoob Hamza* >>>>> *Senior Software Engineer* >>>>> WSO2 Inc.; http://wso2.com >>>>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495> >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> /sumedha >>>> m: +94 773017743 <077%20301%207743> >>>> b : bit.ly/sumedha >>>> >>> >>> >>> >>> -- >>> *Pamod Sylvester * >>> >>> *WSO2 Inc.; http://wso2.com <http://wso2.com>* >>> cell: +94 77 7779495 <077%20777%209495> >>> >> >> >> >> -- >> /sumedha >> m: +94 773017743 <077%20301%207743> >> b : bit.ly/sumedha >> > > > > -- > *Pamod Sylvester * > > *WSO2 Inc.; http://wso2.com <http://wso2.com>* > cell: +94 77 7779495 <+94%2077%20777%209495> > -- Pumudu Ruhunage Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com <https://wso2.com/signature> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Message Broker 3.2.0 RC2 Released !!
Hi All, Tested MQTT standalone/clustered basic test scenarios and execute eclipse Interop test suite. No issues found. [+] Stable - go ahead and release Thanks, On Thu, Apr 20, 2017 at 6:47 PM, Pamod Sylvester <pa...@wso2.com> wrote: > Hi Devs, > > This is the 2nd release candidate of WSO2 Message Broker 3.2.0. > > *This release fixes the following issues:* > *https://wso2.org/jira/browse/MB-1910?filter=13675 > <https://wso2.org/jira/browse/MB-1910?filter=13675>* > > *Known Issues:* > *https://wso2.org/jira/browse/MB-1757?filter=13676 > <https://wso2.org/jira/browse/MB-1757?filter=13676>* > > <https://wso2.org/jira/issues/?filter=12422> > Please download MB 3.2.0 RC2 and test the functionality and vote. The > vote will be open for 72 hours or as needed. > > *Source & binary distribution files:* > https://github.com/wso2/product-mb/releases/tag/v3.2.0-RC2 > > *The tag to be voted upon:* > https://github.com/wso2/product-mb/tree/v3.2.0-RC2 > > > [+] Stable - go ahead and release > [-] Broken - do not release (explain why) > > Thanks and Regards, > > -- > *Pamod Sylvester * > > *WSO2 Inc.; http://wso2.com <http://wso2.com>* > cell: +94 77 7779495 <077%20777%209495> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Pumudu Ruhunage Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com <https://wso2.com/signature> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Is there a hard and fast rule to chose java 8 streams over for loops
Hi, IMO for less number of iterations/elements for loops are much efficient, and when number gets higher both are performing with similar efficiency. Advantage of parallel streams shows up when number of elements increases and cost of each iteration increases. Therefore, usage of streams/loops is highly dependent of the scenario and can not suggest either without proper knowledge of the scenario, especially for critical paths. Regards, On Thu, Apr 6, 2017 at 5:19 PM, Tharika Madurapperuma <thar...@wso2.com> wrote: > Hi Rajith, > > IMO Java streams should not be used always as a practice. It is not a > silver bullet. There can be issues in performance in some cases as you have > pointed out. > > One of the main advantage of using streams is when the logic of > looping is quite complex and involves different operations on collections > together, so that it can improve readability and understandability. But at > the same time it can result in new and subtle bugs if we are not careful > enough [1]. > > The performance aspect of streams vs loops depends on the type of the > collection and the situation they deal with. This performance difference > can sometimes be negligible. Hence we cannot completely go with one against > another. > > So IMHO we can consider using streams only when necessary based on > our requirement and use loops where it deserves. > > > [1] https://blog.jooq.org/2014/06/13/java-8-friday-10-subtle- > mistakes-when-using-the-streams-api/ > > > Thanks, > Tharika. > > > On Thu, Mar 30, 2017 at 12:01 PM, Rajith Roshan <raji...@wso2.com> wrote: > >> Hi all, >> >> Most of our C5 development have used java8 streams api frequently more >> than the for loops. >> But there are some research have done to compare the performance of >> streams api compared to for loops. They have shown that stream API is slow >> compared to for loops in many scenarios (even for parallel streams). [1][2] >> >> Is there any proper guidance to use which one over the other or are we >> using streams as a practice in C5 development >> >> [1] - https://blog.jooq.org/2015/12/08/3-reasons-why-you-shouldn >> t-replace-your-for-loops-by-stream-foreach/ >> [2] - https://jaxenter.com/java-performance-tutorial-how-fast-ar >> e-the-java-8-streams-118830.html >> >> Thanks! >> Rajith >> >> -- >> Rajith Roshan >> Software Engineer, WSO2 Inc. >> Mobile: +94-72-642-8350 <%2B94-71-554-8430> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Tharika Madurapperuma* > Software Engineer | WSO2, Inc. > > Email : thar...@wso2.com > Mobile : +94777875624 <+94%2077%20787%205624> > Web : http://wso2.com > > <http://wso2.com/signature> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Pumudu Ruhunage Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com <https://wso2.com/signature> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Architecture] WSO2 Message Broker 3.2.0-ALPHA-2 Released!
Hi All, WSO2 Message Broker team is pleased to announce the alpha-2 release of WSO2 Message Broker (MB) 3.2.0. Source & binary distribution files of WSO2 Message Broker can be found in: https://github.com/wso2/product-mb/releases/tag/v3.2.0-ALPHA2 All the known issues identified are listed at https://wso2.org/jira/issues/?filter=13645 Thanks, -- Pumudu Ruhunage Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com <https://wso2.com/signature> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] MB 3.1.0 goes OOM with compression enabled with MSSQL as message store
Hi all, we saw that in MB 3.1.0, for several scenarios (ex: 10KB messages, with compression enabled) servers went OOM half way to 1M messages[1]. Please note that this happens with default flow control settings. AFAIU this is what happened. 1. With MySQL, database was the overall bottleneck in both compression and non-compression scenarios. 2. MSSQL is faster than MySQL and with compression enabled DB is not the bottleneck anymore in inbound message flow. Compression was taking more execution time than db read/writes. Therefore, compression logic becomes the bottleneck in MSSQL scenario. 3. In "contentChunckHandler" (which compress chunks if compression enabled) has executed before[2] "messagePreprocessor" which has the flow control logic[3] implemented. Therefore, lag in compression has not counted in flow control logic. This leads inbound path accept messages from publishers more than server can handle. 4. This might have lead to the OOM. WDYT? [1] https://wso2.org/jira/browse/MB-1683 [2] https://github.com/wso2/andes/blob/v3.1.0/modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/disruptor/inbound/InboundEventManager.java#L154 [3] https://github.com/wso2/andes/blob/v3.1.0/modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/disruptor/inbound/MessagePreProcessor.java#L148 Thanks, -- Pumudu Ruhunage Software Engineer | WSO2 Inc http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Docker][Puppet] [MB] Setting 'thriftServerHost' in WSO2 MB broker.xml file
re.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:514) >>> at >>> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290) >>> at >>> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118) >>> at >>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) >>> at >>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>> at >>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) >>> Caused by: org.wso2.andes.kernel.AndesException: Cannot start Thrift >>> server on port 7611 on host wso2mb-default >>> at org.wso2.andes.thrift.MBThriftServer.start(MBThriftServer.java:87) >>> at >>> org.wso2.andes.kernel.AndesKernelBoot.startThriftServer(AndesKernelBoot.java:440) >>> at >>> org.wso2.andes.kernel.AndesKernelBoot.initializeComponents(AndesKernelBoot.java:93) >>> at org.wso2.andes.server.Broker.startupImpl(Broker.java:293) >>> ... 70 more >>> Caused by: org.apache.thrift.transport.TTransportException: Could not >>> create ServerSocket on address wso2mb-default/10.100.186.164:7611. >>> at >>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:109) >>> at >>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:91) >>> at >>> org.apache.thrift.transport.TServerSocket.(TServerSocket.java:87) >>> at org.wso2.andes.thrift.MBThriftServer.start(MBThriftServer.java:75) >>> ... 73 more >>> TID: [-1234] [] [2016-05-09 05:39:06,816] INFO >>> {org.wso2.andes.server.registry.ApplicationRegistry} - Shutting down >>> ApplicationRegistry(org.wso2.andes.server.registry.ConfigurationFileApplicationRegistry@70194966) >>> {org.wso2.andes.server.registry.ApplicationRegistry} >>> >>> >>> It's because currently 'thriftServerHost' is set to hostname in >>> broker.xml [1] and according to MB clustering guide [2] , this should be >>> set to MB node (docker container) IP which hosts the Thrift Server. >>> >>> If it's correct, what will be the best approach to update the >>> 'thriftServerHost' value with container IP? >>> >>> Please give your suggestions. >>> >>> [1]. >>> https://github.com/wso2/puppet-modules/blob/master/modules/wso2mb/templates/3.1.0/repository/conf/broker.xml.erb#L37 >>> [2]. >>> https://docs.wso2.com/display/CLUSTER44x/Configuring+the+Broker+Nodes >>> >>> >>> Thanks. >>> >>> -- >>> Thanuja Uruththirakodeeswaran >>> Software Engineer >>> WSO2 Inc.;http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: +94 774363167 >>> >> >> >> >> -- >> Thanks and Regards, >> >> Isuru H. >> +94 716 358 048* <http://wso2.com/>* >> >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Darshana Akalanka Pagoda Arachchi,* > *Software Engineer, WSO2* > *+94777118016 <%2B94777118016>* > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [VOTE] Release WSO2 Message Broker 3.0.0 RC 2
Hi all, I tested following MQTT scenarios in a MB cluster. - Multiple subscriber scenarios - Multiple publisher scenarios - Mixed Multiple publisher/subscriber scenarios - Single topic 5 subscribers and 5 publishers - 5 topics 5 subscribers and 5 publishers (1 topic per subscriber and publisher) - Multiple topics 5 subscribers and 5 publishers - Clean session true scenarios - Clean session false scenarios - QOS levels basic test scenarios. Following QOS levels covered. - QOS 0 - QOS 1 - QOS 2 - Hierarchical topics and Wildcard scenarios - Tenant level security - basic scenarios - Retain topic scenarios Did not encounter issues. Thus +1. Stable - go ahead and release. Thanks, Pumudu On Sat, Nov 7, 2015 at 2:21 PM, Hasitha Hiranya <hasit...@wso2.com> wrote: > Hi all, > > I tested the following scenarios in a MB cluster > > >- multiple publisher multiple consumer - queues >- multiple publisher multiple consumer - topics >- multiple publisher multiple consumer - durable topic shared >- multiple publisher multiple consumer - queues - with subscription >break in middle >- hierarchical topic subs - subscribers on multiple nodes >- topics with wildcards (* and #) - subscribers on multiple nodes > > > Did not encounter issues > Thus +1. Stable - go ahead and release > > Thanks > > On Sat, Nov 7, 2015 at 3:28 AM, Akalanka Pagoda Arachchi < > darsha...@wso2.com> wrote: > >> Hi Devs, >> >> This is the second release candidate of WSO2 Message Broker 3.0.0. >> >> This release fixes the following issues: >> https://wso2.org/jira/issues/?filter=12508 >> >> <https://wso2.org/jira/issues/?filter=12422> >> Please download, test and vote. >> >> Source & binary distribution files: >> https://github.com/wso2/product-mb/releases/tag/v3.0.0-RC2 >> >> Maven staging repo: >> http://maven.wso2.org/nexus/content/repositories/orgwso2mb-118/ >> >> The tag to be voted upon: >> https://github.com/wso2/product-mb/tree/v3.0.0-RC2 >> >> >> [+] Stable - go ahead and release >> [-] Broken - do not release (explain why) >> >> Thanks and Regards, >> MB Team. >> >> -- >> *Darshana Akalanka Pagoda Arachchi,* >> *Software Engineer* >> *078-4721791* >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *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 > > -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [ESB][MB] SSL handshake Exception when try to send queue message from ESB 4.8.0 to MB 2.2.0
} - [/10. <http://10.100.5.165:54107>111 <http://10.100.5.165:54107/>.5.165:54107] Data Read: org.apache.mina.filter.support.SSLHandler@213b0eef (HeapBuffer[pos=0 lim=8 cap=1024: 41 4D 51 50 00 00 09 01]) [2015-10-08 18:07:22,228] DEBUG {org.wso2.andes.transport.network.mina.MinaNetworkHandler} - [/10. <http://10.100.5.165:54107>111 <http://10.100.5.165:54107/>.5.165:54107] doHandshake() [2015-10-08 18:07:22,229] DEBUG {org.wso2.andes.transport.network.mina.MinaNetworkHandler} - [/10. <http://10.100.5.165:54107>111 <http://10.100.5.165:54107/>.5.165:54107 <http://10.100.5.165:54107>] handshakeStatus=NEED_UNWRAP [2015-10-08 18:07:22,230] DEBUG {org.wso2.andes.transport.network.mina.MinaNetworkHandler} - [/10. <http://10.100.5.165:54107>111 <http://10.100.5.165:54107/>.5.165:54107 <http://10.100.5.165:54107>] *unwrapHandshake()* [2015-10-08 18:07:22,230] DEBUG {org.wso2.andes.transport.network.mina.MinaNetworkHandler} - [/10. <http://10.100.5.165:54107>111 <http://10.100.5.165:54107/>.5.165:54107 <http://10.100.5.165:54107>]inNetBuffer: java.nio.DirectByteBuffer[pos=0 lim=8 cap=16665] [2015-10-08 18:07:22,230] DEBUG {org.wso2.andes.transport.network.mina.MinaNetworkHandler} - [/10. <http://10.100.5.165:54107>111 <http://10.100.5.165:54107/>.5.165:54107 <http://10.100.5.165:54107>]appBuffer: java.nio.DirectByteBuffer[pos=0 lim=0 cap=0] [2015-10-08 18:07:22,231] ERROR {org.wso2.andes.transport.network.mina.MinaNetworkHandler} - Exception caught by Mina javax.net.ssl.SSLHandshakeException: SSL handshake failed. Thanks, Pumudu -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][MB][MQTT] How to handle permission denied to subscribe a topic due to tenancy
Hi All, @pamod, I also agree disconnecting is not the ideal solution. just thought from client side, since it's not getting any indication of not subscribing to the topic. Then implementation will be as follows. MQTT 3.1- No error code send to client. MQTT 3.1.1 - Send error code 0x80 to client. Thanks, Pumudu On Sat, Oct 3, 2015 at 3:44 PM, Ramith Jayasinghe <ram...@wso2.com> wrote: > I think whats more relevant is to make v 3.1.1 case correct. > > > On Sat, Oct 3, 2015 at 2:03 PM, Pamod Sylvester <pa...@wso2.com> wrote: > >> Both versions of the protocol are supported at the moment AFAIK. >> >> So for 3.1.1 sending the error code is adequate. As mentioned in the >> previous mail there can be several topic subscriptions in one connection. >> So disconnection might not be the ideal solution IMO. WDYT ? >> >> >> On Saturday, October 3, 2015, Pumudu Ruhunage <pum...@wso2.com> wrote: >> >>> Hi All, >>> >>> Since we have to support both protocols we need implement both behaviors >>> based on protocols? right ? >>> IMO for 3.1 we need to indicate that it's not subscribed to the topic by >>> disconnection if it's not subscribed. otherwise it gives false impression >>> that client successfully subscribed to given topic. >>> >>> So can we agree on following implementation? >>> MQTT 3.1- No error code send to client. Disconnect client >>> from broker. >>> MQTT 3.1.1 - Send error code 0x80 to client. (Is error code enough ? >>> should we disconnect client from broker ?) >>> >>> WDYT ? >>> >>> Thanks, >>> Pumudu >>> >>> >>> >>> On Sat, Oct 3, 2015 at 10:18 AM, Pamod Sylvester <pa...@wso2.com> wrote: >>> >>>> The CONNECT and SUBSCRIBE are two different command messages. The >>>> subscription phase comes after the connection. >>>> >>>> Also the other fact is a single connection could involve multiple topic >>>> subscriptions. So lets say if a given tenant sends a list of topic >>>> subscriptions there could be subscriptions which the tenant could be >>>> authorised among that list. So closing/refusing the entire connection might >>>> not be appropriate in this case. >>>> >>>> - 0x05 (Connection Refused: not authorized) is sent as an >>>> acknowledgement for CONNECT message (CONNACK). i.e a given client has >>>> provided unauthorised credentials etc. >>>> >>>> During this phase the subscription will not occur, we only could >>>> validate whether a given tenants credentials are correct or not. >>>> >>>> - When the subscription happens based on my understanding of the spec >>>> it has passed the CONNACK stage. The only way we could indicate an error >>>> related to subscription is through SUBACK. >>>> >>>> # The MQTT 3.1 specification has a limitation where error codes >>>> cannot be sent with SUBACK. Hence for 3.1 spec having subscription failed >>>> in silent mode is expected behaviour. >>>> >>>> You could find a similar discussion on [1]. Based on [1] what they've >>>> done is hacked the client and the server to accept error codes for 3.1 >>>> specification. This will not be clean and will not interop with other >>>> clients (even if we could hack the server to send error codes, the clients >>>> which has implemented according to 3.1 specification will not accept the >>>> error message). >>>> >>>> Another option is to initiate a disconnection from the broker to avoid >>>> stale connections. But then again as mentioned in the beginning if there're >>>> list of subscriptions for a connection, even the authorised subscriptions >>>> would not be able to consume. >>>> >>>> # The MQTT 3.1.1 specification there's an error code introduced 0x80 >>>> for forbidden subscriptions. So that should be the way we should ideally >>>> use for indication of an error IMHO. But it'll be available in 3.1.1. >>>> >>>> >>>> [1] https://issues.jboss.org/browse/ENTMQ-990 >>>> >>>> >>>> >>>> >>>> On Sat, Oct 3, 2015 at 7:06 AM, Hasitha Hiranya <hasit...@wso2.com> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> Yes, Connection Refused, not authorized is the best we can do. >>>>> >>>>>
Re: [Dev] [DEV][MB][MQTT] How to handle permission denied to subscribe a topic due to tenancy
Hi All, Since we have to support both protocols we need implement both behaviors based on protocols? right ? IMO for 3.1 we need to indicate that it's not subscribed to the topic by disconnection if it's not subscribed. otherwise it gives false impression that client successfully subscribed to given topic. So can we agree on following implementation? MQTT 3.1- No error code send to client. Disconnect client from broker. MQTT 3.1.1 - Send error code 0x80 to client. (Is error code enough ? should we disconnect client from broker ?) WDYT ? Thanks, Pumudu On Sat, Oct 3, 2015 at 10:18 AM, Pamod Sylvester <pa...@wso2.com> wrote: > The CONNECT and SUBSCRIBE are two different command messages. The > subscription phase comes after the connection. > > Also the other fact is a single connection could involve multiple topic > subscriptions. So lets say if a given tenant sends a list of topic > subscriptions there could be subscriptions which the tenant could be > authorised among that list. So closing/refusing the entire connection might > not be appropriate in this case. > > - 0x05 (Connection Refused: not authorized) is sent as an acknowledgement > for CONNECT message (CONNACK). i.e a given client has provided > unauthorised credentials etc. > > During this phase the subscription will not occur, we only could validate > whether a given tenants credentials are correct or not. > > - When the subscription happens based on my understanding of the spec it > has passed the CONNACK stage. The only way we could indicate an error > related to subscription is through SUBACK. > > # The MQTT 3.1 specification has a limitation where error codes cannot > be sent with SUBACK. Hence for 3.1 spec having subscription failed in > silent mode is expected behaviour. > > You could find a similar discussion on [1]. Based on [1] what they've done > is hacked the client and the server to accept error codes for 3.1 > specification. This will not be clean and will not interop with other > clients (even if we could hack the server to send error codes, the clients > which has implemented according to 3.1 specification will not accept the > error message). > > Another option is to initiate a disconnection from the broker to avoid > stale connections. But then again as mentioned in the beginning if there're > list of subscriptions for a connection, even the authorised subscriptions > would not be able to consume. > > # The MQTT 3.1.1 specification there's an error code introduced 0x80 for > forbidden subscriptions. So that should be the way we should ideally use > for indication of an error IMHO. But it'll be available in 3.1.1. > > > [1] https://issues.jboss.org/browse/ENTMQ-990 > > > > > On Sat, Oct 3, 2015 at 7:06 AM, Hasitha Hiranya <hasit...@wso2.com> wrote: > >> Hi, >> >> Yes, Connection Refused, not authorized is the best we can do. >> >> @Pamod, any batter alternative? >> >> Thanks! >> >> On Fri, Oct 2, 2015 at 10:55 PM, Yasassri Ratnayake <yasas...@wso2.com> >> wrote: >> >>> Hi Pumudu, >>> >>> MQTT spec doesn't talk about a permission model, So IMO the closest >>> error we can propagate to the client is "0x05 Connection Refused, not >>> authorized". >>> >>> >>> With Regards, >>> >>> On Fri, Oct 2, 2015 at 6:17 PM, Pumudu Ruhunage <pum...@wso2.com> wrote: >>> >>>> Hi All, >>>> >>>> If a tenant don't have permission to subscribe to a given topic (tenant >>>> 'a.com' try to subscribe to tenant 'b.com') currently it will keep >>>> connected even though it's not subscribed, because user authentication was >>>> successful. This is misleading to subscriber as no return code sent and >>>> it's actively connected to broker. >>>> AFAIK mqtt don't define how to handle tenancy scenarios in it's spec. >>>> Couldn't find a definition in MQTT spec 3.1.0/3.1.1 on how to reject if >>>> permission denied to subscribe to a given topic(due to tenancy). >>>> >>>> One option to handle this scenario is to send return code 5 (Connection >>>> Refused, not authorized) to client if it doesn't have permission to >>>> subscribe to given topic. This way client will disconnect if it don't have >>>> permission to subscribe. Is this acceptable or are there any alternatives >>>> to handle this scenario? >>>> >>>> jira https://wso2.org/jira/browse/MB-1409 >>>> >>>> Thanks, >>>> Pumudu >>>> -- &g
[Dev] [DEV][MB][MQTT] How to handle permission denied to subscribe a topic due to tenancy
Hi All, If a tenant don't have permission to subscribe to a given topic (tenant ' a.com' try to subscribe to tenant 'b.com') currently it will keep connected even though it's not subscribed, because user authentication was successful. This is misleading to subscriber as no return code sent and it's actively connected to broker. AFAIK mqtt don't define how to handle tenancy scenarios in it's spec. Couldn't find a definition in MQTT spec 3.1.0/3.1.1 on how to reject if permission denied to subscribe to a given topic(due to tenancy). One option to handle this scenario is to send return code 5 (Connection Refused, not authorized) to client if it doesn't have permission to subscribe to given topic. This way client will disconnect if it don't have permission to subscribe. Is this acceptable or are there any alternatives to handle this scenario? jira https://wso2.org/jira/browse/MB-1409 Thanks, Pumudu -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV] [Automation] How to get a value from Automation.xml file to test classes
Hi, Have you tried something like this? AutomationContext automationContext; automationContext = new AutomationContext(); String maximumWaitingTime = automationContext.getInstance().getProperty("maximumWaitingTime"); It's better if you can check how other integration tests were written and follow the same pattern to refer automation.xml. (without creating new automationContext and use already initialized objects etc.) Regards, Pumudu On Mon, Sep 28, 2015 at 2:05 PM, Mushthaq Rumy <musht...@wso2.com> wrote: > Hi Rajeenthani, > > I think you need to create an object instance of AutomationContext within > your java class and proceed with it. The below link[1] might be useful for > you. > > [1] > http://malinthas.blogspot.com/2014/02/how-to-obtain-configuration-details.html > . > > > > On Mon, Sep 28, 2015 at 1:44 PM, Rajeenthini Satkunam < > rajeenth...@wso2.com> wrote: > >> Hi all, >> >> I am currently working on writing UI integration tests for product UES >> using selenium.I have to make maximum waiting time for search element by() >> as default value.As per discussion it can be configured through >> automation.xml file. I have added 30> maximumWaitingTime> at automation.xml file.So I need to get the value of >> it for test java classes.Can anyone please give any suggestion on how to >> get that value? >> >> -- >> >> *Thank You.* >> >> *Rajeenthini Satkunam* >> >> *Associate Software Engineer | WSO2* >> >> >> *E:rajeenth...@wso2.com <rajeenth...@wso2.com>* >> >> *M :+94770832823 <%2B94770832823> * >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > Thanks & Regards, > -- > Mushthaq Rumy > *Software Engineer* > Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194> > Email : musht...@wso2.com > WSO2, Inc.; http://wso2.com/ > lean . enterprise . middleware. > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] com.hazelcast.core.OperationTimeoutException when testing MQTT
Hi All, I came across attached intermittent hazelcast error[1] when doing some tests on MQTT, 2-node cluster with latest code base. All messages are 1KB. Slot storage mode has set to RDBMS. After this error all operations on that node halted. Following is the scenario I tested. nodeA (coordinator) publish to 'topicA' with QOS-1 100TPS publish to 'topicC' with QOS-1 100TPS publish to 'topic1' with QOS-0 100TPS publish to 'topic3' with QOS-0 100TPS subscribe to 'topicB' with 5 QOS-1 subscribers. subscribe to 'topicD' with 5 QOS-1 subscribers. subscribe to 'topic2' with 20 QOS-0 subscribers. subscribe to 'topic4' with 20 QOS-0 subscribers. nodeB publish to 'topicB' with QOS-1 100TPS publish to 'topicD' with QOS-1 100TPS publish to 'topic2' with QOS-0 100TPS publish to 'topic4' with QOS-0 100TPS subscribe to 'topicA' with 5 QOS-1 subscribers. subscribe to 'topicC' with 5 QOS-1 subscribers. subscribe to 'topic1' with 20 QOS-0 subscribers. subscribe to 'topic3' with 20 QOS-0 subscribers. Have anyone faced this exception with hazelcast? What can be the cause of the issue? [1] https://wso2.org/jira/browse/MB-1193 Thanks, Pumudu -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com hazelcast.core.OperationTimeoutException Description: Binary data ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] How to clean up non-durable topic subscriptions if MB node killed in cluster setup
Hi All, We have implemented it with following PR's[1][2] using newly introduced methods by HasithaH. Following subscription removing scenarios will be covered with the fix. 1. Remove non-durable subscriptions during startup and shuting down the server for it's node id. 2. Remove non-durable subscriptions when member removed for it's node id (by coordinator node). [1] https://github.com/wso2/andes/pull/288 [2] https://github.com/wso2/andes/pull/286 Thanks, Pumudu On Mon, Aug 24, 2015 at 9:40 AM, Hasitha Hiranya hasit...@wso2.com wrote: Hi Pumudu, LocalSubscriptions are local to the node. You can deliver messages only to the Localsubscriptions. Clustersubscription is the object carrying basic info about subscriptions which does not have an actual channel associated with it. To solve the problem I have introduce a method to get a mock local subscription using the cluster subscription. Thanks On Tue, Aug 18, 2015 at 6:22 PM, Pumudu Ruhunage pum...@wso2.com wrote: Adding some info to first question. As I understood there are two types of andes subscriptions for cluster and local. When I try to call removeLocalSubscription() inside createDisconnectOrRemoveClusterSubscription() to remove subscriptions from local database i'm getting following exception[1]. This prevents removing redundant subscriptions from database during startup while initializing in cluster mode. Why do we need two type of andes subscriptions? can't we keep same subscription type for both cluster and local in MB? [1] Caused by: java.lang.ClassCastException: org.wso2.andes.subscription.BasicSubscription cannot be cast to org.wso2.andes.kernel.LocalSubscription at org.wso2.andes.subscription.SubscriptionStore.removeLocalSubscription(SubscriptionStore.java:645) at org.wso2.andes.subscription.SubscriptionStore.createDisconnectOrRemoveClusterSubscription(SubscriptionStore.java:487) at org.wso2.andes.kernel.AndesSubscriptionManager.updateClusterSubscriptionMaps(AndesSubscriptionManager.java:234) at org.wso2.andes.server.cluster.coordination.ClusterCoordinationHandler.handleClusterSubscriptionsChanged(ClusterCoordinationHandler.java:134) at org.wso2.andes.kernel.AndesSubscriptionManager.notifyClusterSubscriptionHasChanged(AndesSubscriptionManager.java:298) at org.wso2.andes.kernel.AndesSubscriptionManager.reloadSubscriptionsFromStorage(AndesSubscriptionManager.java:275) at org.wso2.andes.kernel.AndesRecoveryTask.reloadSubscriptions(AndesRecoveryTask.java:188) at org.wso2.andes.kernel.AndesRecoveryTask.recoverExchangesQueuesBindingsSubscriptions(AndesRecoveryTask.java:94) at org.wso2.andes.kernel.AndesKernelBoot.syncNodeWithClusterState(AndesKernelBoot.java:443) at org.wso2.andes.kernel.AndesKernelBoot.bootAndesKernel(AndesKernelBoot.java:116) at org.wso2.andes.server.Broker.startupImpl(Broker.java:290) Thanks, Pumudu On Tue, Aug 18, 2015 at 4:43 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi All, I faced two issues while fixing this. 1. There is a method for clear cluster subscriptions ('closeAllClusterSubscriptionsOfNode()' in 'andesSubscriptionManager') while initializing a cluster node. But it dosen't clean up database when executed. Is there a specific reason not to delete non-durable subscriptions from database when call this method? 2. Currently all subscriptions(durable/non-durable) are stored in MB_DURABLE_SUBSCRIPTION table. Is there a reason for this? Can't we change this table name to something meaningful if we continue to keep all subscriptions in same table? WDYT? Thanks, Pumudu On Thu, Aug 13, 2015 at 2:41 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi All, Thanks for the inputs. +1 for implementing both cases. will do both implementations. Regards, Pumudu On Thu, Aug 13, 2015 at 11:40 AM, Hemika Kodikara hem...@wso2.com wrote: Hi All, We have already done a similar implementation for durable topics on member removed. +1 for Asanka's suggestion to remove non-topic subscriptions on both occasions. Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 On Thu, Aug 13, 2015 at 11:09 AM, Asitha Nanayakkara asi...@wso2.com wrote: On Thu, Aug 13, 2015 at 3:17 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi Asitha, I don't think we can achieve this by only doing the cleanup at the coordinator selection point. We have to clean the topic subscriptions for a non-coordinator node when it leaves (In this case a new coordinator will not be elected). Oh! yes agreed! On Thu, Aug 13, 2015 at 5:04 AM, Asitha Nanayakkara asi...@wso2.com wrote: On Wed, Aug 12, 2015 at 10:53 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi Pumudu, I think we have to do the clean up in both places. Case 1 is required when the only node in the cluster leaves and come back. Case 2 is required when a single node leaves in a multi node cluster
Re: [Dev] [MB] How to clean up non-durable topic subscriptions if MB node killed in cluster setup
Hi All, I faced two issues while fixing this. 1. There is a method for clear cluster subscriptions ('closeAllClusterSubscriptionsOfNode()' in 'andesSubscriptionManager') while initializing a cluster node. But it dosen't clean up database when executed. Is there a specific reason not to delete non-durable subscriptions from database when call this method? 2. Currently all subscriptions(durable/non-durable) are stored in MB_DURABLE_SUBSCRIPTION table. Is there a reason for this? Can't we change this table name to something meaningful if we continue to keep all subscriptions in same table? WDYT? Thanks, Pumudu On Thu, Aug 13, 2015 at 2:41 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi All, Thanks for the inputs. +1 for implementing both cases. will do both implementations. Regards, Pumudu On Thu, Aug 13, 2015 at 11:40 AM, Hemika Kodikara hem...@wso2.com wrote: Hi All, We have already done a similar implementation for durable topics on member removed. +1 for Asanka's suggestion to remove non-topic subscriptions on both occasions. Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 On Thu, Aug 13, 2015 at 11:09 AM, Asitha Nanayakkara asi...@wso2.com wrote: On Thu, Aug 13, 2015 at 3:17 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi Asitha, I don't think we can achieve this by only doing the cleanup at the coordinator selection point. We have to clean the topic subscriptions for a non-coordinator node when it leaves (In this case a new coordinator will not be elected). Oh! yes agreed! On Thu, Aug 13, 2015 at 5:04 AM, Asitha Nanayakkara asi...@wso2.com wrote: On Wed, Aug 12, 2015 at 10:53 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi Pumudu, I think we have to do the clean up in both places. Case 1 is required when the only node in the cluster leaves and come back. Case 2 is required when a single node leaves in a multi node cluster. On Wed, Aug 12, 2015 at 5:38 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, Currently if MB node got killed unexpectedly non-durable topic subscriptions bind to that node will remain in cluster. This can cause unexpected behaviors in cluster since that node has already removed. IMO these topic subscriptions can clean up in two methods. 1. During each MB node start up, remove all non-durable topic subscriptions for it's local node id. (This will ensure newly started node won't receive any non-durable topic messages related to previously killed MB node with same node id) I think we can do this in org.wso2.andes.kernel.AndesKernelBoot or in a similar class. May be we can do this similar to the way we do the slot recovery task. 2. Cluster coordinator should remove all non-durable topic subscriptions when a member left from cluster. (This can be a problem if coordinator node killed. If there's a method to get previous coordinator node id by newly elected coordinator this method can be implemented) For this case we can do the clean up in org.wso2.andes.server.cluster.ClusterManager#memberRemoved method after checking if the current node is the coordinator. This will work even if the coordinator node get killed. When a new coordinator is elected can't we let that newly elected coordinator do this ? Even at startup there is a coordinator election right? if that's the case we can cover both scenarios IMO? How should we do the clean up. WDYT? Regards, Pumudu -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Asanka Abeyweera Software Engineer WSO2 Inc. Phone: +94 712228648 Blog: a5anka.github.io ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Asitha Nanayakkara* Software Engineer WSO2, Inc. http://wso2.com/ Mob: + 94 77 85 30 682 -- Asanka Abeyweera Software Engineer WSO2 Inc. Phone: +94 712228648 Blog: a5anka.github.io -- *Asitha Nanayakkara* Software Engineer WSO2, Inc. http://wso2.com/ Mob: + 94 77 85 30 682 ___ 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 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] How to clean up non-durable topic subscriptions if MB node killed in cluster setup
Adding some info to first question. As I understood there are two types of andes subscriptions for cluster and local. When I try to call removeLocalSubscription() inside createDisconnectOrRemoveClusterSubscription() to remove subscriptions from local database i'm getting following exception[1]. This prevents removing redundant subscriptions from database during startup while initializing in cluster mode. Why do we need two type of andes subscriptions? can't we keep same subscription type for both cluster and local in MB? [1] Caused by: java.lang.ClassCastException: org.wso2.andes.subscription.BasicSubscription cannot be cast to org.wso2.andes.kernel.LocalSubscription at org.wso2.andes.subscription.SubscriptionStore.removeLocalSubscription(SubscriptionStore.java:645) at org.wso2.andes.subscription.SubscriptionStore.createDisconnectOrRemoveClusterSubscription(SubscriptionStore.java:487) at org.wso2.andes.kernel.AndesSubscriptionManager.updateClusterSubscriptionMaps(AndesSubscriptionManager.java:234) at org.wso2.andes.server.cluster.coordination.ClusterCoordinationHandler.handleClusterSubscriptionsChanged(ClusterCoordinationHandler.java:134) at org.wso2.andes.kernel.AndesSubscriptionManager.notifyClusterSubscriptionHasChanged(AndesSubscriptionManager.java:298) at org.wso2.andes.kernel.AndesSubscriptionManager.reloadSubscriptionsFromStorage(AndesSubscriptionManager.java:275) at org.wso2.andes.kernel.AndesRecoveryTask.reloadSubscriptions(AndesRecoveryTask.java:188) at org.wso2.andes.kernel.AndesRecoveryTask.recoverExchangesQueuesBindingsSubscriptions(AndesRecoveryTask.java:94) at org.wso2.andes.kernel.AndesKernelBoot.syncNodeWithClusterState(AndesKernelBoot.java:443) at org.wso2.andes.kernel.AndesKernelBoot.bootAndesKernel(AndesKernelBoot.java:116) at org.wso2.andes.server.Broker.startupImpl(Broker.java:290) Thanks, Pumudu On Tue, Aug 18, 2015 at 4:43 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi All, I faced two issues while fixing this. 1. There is a method for clear cluster subscriptions ('closeAllClusterSubscriptionsOfNode()' in 'andesSubscriptionManager') while initializing a cluster node. But it dosen't clean up database when executed. Is there a specific reason not to delete non-durable subscriptions from database when call this method? 2. Currently all subscriptions(durable/non-durable) are stored in MB_DURABLE_SUBSCRIPTION table. Is there a reason for this? Can't we change this table name to something meaningful if we continue to keep all subscriptions in same table? WDYT? Thanks, Pumudu On Thu, Aug 13, 2015 at 2:41 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi All, Thanks for the inputs. +1 for implementing both cases. will do both implementations. Regards, Pumudu On Thu, Aug 13, 2015 at 11:40 AM, Hemika Kodikara hem...@wso2.com wrote: Hi All, We have already done a similar implementation for durable topics on member removed. +1 for Asanka's suggestion to remove non-topic subscriptions on both occasions. Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 On Thu, Aug 13, 2015 at 11:09 AM, Asitha Nanayakkara asi...@wso2.com wrote: On Thu, Aug 13, 2015 at 3:17 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi Asitha, I don't think we can achieve this by only doing the cleanup at the coordinator selection point. We have to clean the topic subscriptions for a non-coordinator node when it leaves (In this case a new coordinator will not be elected). Oh! yes agreed! On Thu, Aug 13, 2015 at 5:04 AM, Asitha Nanayakkara asi...@wso2.com wrote: On Wed, Aug 12, 2015 at 10:53 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi Pumudu, I think we have to do the clean up in both places. Case 1 is required when the only node in the cluster leaves and come back. Case 2 is required when a single node leaves in a multi node cluster. On Wed, Aug 12, 2015 at 5:38 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, Currently if MB node got killed unexpectedly non-durable topic subscriptions bind to that node will remain in cluster. This can cause unexpected behaviors in cluster since that node has already removed. IMO these topic subscriptions can clean up in two methods. 1. During each MB node start up, remove all non-durable topic subscriptions for it's local node id. (This will ensure newly started node won't receive any non-durable topic messages related to previously killed MB node with same node id) I think we can do this in org.wso2.andes.kernel.AndesKernelBoot or in a similar class. May be we can do this similar to the way we do the slot recovery task. 2. Cluster coordinator should remove all non-durable topic subscriptions when a member left from cluster. (This can be a problem if coordinator node killed. If there's a method to get previous coordinator node id by newly elected coordinator this method can
Re: [Dev] [MB] How to clean up non-durable topic subscriptions if MB node killed in cluster setup
Hi All, Thanks for the inputs. +1 for implementing both cases. will do both implementations. Regards, Pumudu On Thu, Aug 13, 2015 at 11:40 AM, Hemika Kodikara hem...@wso2.com wrote: Hi All, We have already done a similar implementation for durable topics on member removed. +1 for Asanka's suggestion to remove non-topic subscriptions on both occasions. Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 On Thu, Aug 13, 2015 at 11:09 AM, Asitha Nanayakkara asi...@wso2.com wrote: On Thu, Aug 13, 2015 at 3:17 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi Asitha, I don't think we can achieve this by only doing the cleanup at the coordinator selection point. We have to clean the topic subscriptions for a non-coordinator node when it leaves (In this case a new coordinator will not be elected). Oh! yes agreed! On Thu, Aug 13, 2015 at 5:04 AM, Asitha Nanayakkara asi...@wso2.com wrote: On Wed, Aug 12, 2015 at 10:53 PM, Asanka Abeyweera asank...@wso2.com wrote: Hi Pumudu, I think we have to do the clean up in both places. Case 1 is required when the only node in the cluster leaves and come back. Case 2 is required when a single node leaves in a multi node cluster. On Wed, Aug 12, 2015 at 5:38 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, Currently if MB node got killed unexpectedly non-durable topic subscriptions bind to that node will remain in cluster. This can cause unexpected behaviors in cluster since that node has already removed. IMO these topic subscriptions can clean up in two methods. 1. During each MB node start up, remove all non-durable topic subscriptions for it's local node id. (This will ensure newly started node won't receive any non-durable topic messages related to previously killed MB node with same node id) I think we can do this in org.wso2.andes.kernel.AndesKernelBoot or in a similar class. May be we can do this similar to the way we do the slot recovery task. 2. Cluster coordinator should remove all non-durable topic subscriptions when a member left from cluster. (This can be a problem if coordinator node killed. If there's a method to get previous coordinator node id by newly elected coordinator this method can be implemented) For this case we can do the clean up in org.wso2.andes.server.cluster.ClusterManager#memberRemoved method after checking if the current node is the coordinator. This will work even if the coordinator node get killed. When a new coordinator is elected can't we let that newly elected coordinator do this ? Even at startup there is a coordinator election right? if that's the case we can cover both scenarios IMO? How should we do the clean up. WDYT? Regards, Pumudu -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Asanka Abeyweera Software Engineer WSO2 Inc. Phone: +94 712228648 Blog: a5anka.github.io ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Asitha Nanayakkara* Software Engineer WSO2, Inc. http://wso2.com/ Mob: + 94 77 85 30 682 -- Asanka Abeyweera Software Engineer WSO2 Inc. Phone: +94 712228648 Blog: a5anka.github.io -- *Asitha Nanayakkara* Software Engineer WSO2, Inc. http://wso2.com/ Mob: + 94 77 85 30 682 ___ 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 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] How to clean up non-durable topic subscriptions if MB node killed in cluster setup
Hi, Currently if MB node got killed unexpectedly non-durable topic subscriptions bind to that node will remain in cluster. This can cause unexpected behaviors in cluster since that node has already removed. IMO these topic subscriptions can clean up in two methods. 1. During each MB node start up, remove all non-durable topic subscriptions for it's local node id. (This will ensure newly started node won't receive any non-durable topic messages related to previously killed MB node with same node id) 2. Cluster coordinator should remove all non-durable topic subscriptions when a member left from cluster. (This can be a problem if coordinator node killed. If there's a method to get previous coordinator node id by newly elected coordinator this method can be implemented) How should we do the clean up. WDYT? Regards, Pumudu -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] Defining bind addresses for each transport in MB 3.0.0
Hi All, Currently for all the transports MB have a one global bind address defined in 'conf/broker.xml'. Since MB supports amqp and mqtt protocols, there should be a way to configure bind addresses for each transport separately. IMO defining bind addresses for each transport in 'broker.xml' instead of define it globally will solve this issue. WDYT ? Regards, Pumudu -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] H2 in-memory exception when shutting down server
Hi Akalanka, it already have ;DB_CLOSE_ON_EXIT=FALSE in db url. have to check what was causing the issue. opened a jira[1] to track progress. [1] https://wso2.org/jira/browse/MB-1158 Thanks, Pumudu On Mon, Jul 13, 2015 at 7:08 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi Pumudu, This occurs when MB tries to access the H2 database even after the database is closed. If the database url does have the property mentioned in the error (;DB_CLOSE_ON_EXIT=FALSE) then we have the check the flow and see if MB somehow tries to access the database after database close is called. Thanks, Akalanka. On Mon, Jul 13, 2015 at 9:01 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, I observed following sql exception[1] when starts MB in h2 in-memory mode. Following are the steps followed. 1. Start MB node in in-memory mode. 2. gracefully shutdown the server. Following exception[1] will appear. Even this exception appears server shuts down without hanging. Did anyone face this before? [1] WARN {org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl} - Rollback failed on removing node information node id: NODElocalhost/127.0.0.1 org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ;DB_CLOSE_ON_EXIT=FALSE to the db URL) [90121-140] at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) at org.h2.message.DbException.get(DbException.java:167) at org.h2.message.DbException.get(DbException.java:144) at org.h2.message.DbException.get(DbException.java:133) at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1348) at org.h2.jdbc.JdbcConnection.checkClosedForWrite(JdbcConnection.java:1333) at org.h2.jdbc.JdbcConnection.rollback(JdbcConnection.java:435) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:71) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80) at com.sun.proxy.$Proxy15.rollback(Unknown Source) at org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl.rollback(RDBMSAndesContextStoreImpl.java:947) at org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl.removeNodeData(RDBMSAndesContextStoreImpl.java:323) at org.wso2.andes.store.FailureObservingAndesContextStore.removeNodeData(FailureObservingAndesContextStore.java:168) at org.wso2.andes.server.cluster.ClusterManager.clearAllPersistedStatesOfDisappearedNode(ClusterManager.java:270) at org.wso2.andes.server.cluster.ClusterManager.shutDownMyNode(ClusterManager.java:170) at org.wso2.andes.kernel.disruptor.inbound.InboundKernelOpsEvent.gracefulShutdown(InboundKernelOpsEvent.java:235) at org.wso2.andes.kernel.Andes.shutDown(Andes.java:263) at org.wso2.andes.kernel.AndesKernelBoot.shutDownAndesKernel(AndesKernelBoot.java:311) at org.wso2.carbon.andes.internal.QpidServiceComponent$1.startingShutdown(QpidServiceComponent.java:170) at org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113) at org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97) at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878) at org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901) [2015-07-13 17:54:03,604] ERROR {org.wso2.carbon.andes.internal.QpidServiceComponent} - Error while shutting down Andes kernel. org.wso2.andes.kernel.AndesException: Error occurred while removing node information node id: NODElocalhost/127.0.0.1 at org.wso2.andes.store.rdbms.RDBMSStoreUtils.convertSQLException(RDBMSStoreUtils.java:117) at org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl.removeNodeData(RDBMSAndesContextStoreImpl.java:324) at org.wso2
[Dev] [MB] H2 in-memory exception when shutting down server
.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97) at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878) at org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901) Caused by: org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ;DB_CLOSE_ON_EXIT=FALSE to the db URL) [90121-140] at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) at org.h2.message.DbException.get(DbException.java:167) at org.h2.message.DbException.get(DbException.java:144) at org.h2.message.DbException.get(DbException.java:133) at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1348) at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1323) at org.h2.jdbc.JdbcConnection.setAutoCommit(JdbcConnection.java:364) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:71) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80) at com.sun.proxy.$Proxy15.setAutoCommit(Unknown Source) at org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl.removeNodeData(RDBMSAndesContextStoreImpl.java:314) ... 11 more Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error in MB 3.0.0 Alpha
) at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128) 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-07-10 10:56:11,002] ERROR {org.wso2.andes.kernel.distruptor.LogExceptionHandler} - [ Sequence: 334710 ] Exception occurred while processing inbound events.Event type: STATE_CHANGE_EVENT java.lang.NullPointerException at org.wso2.andes.kernel.OnflightMessageTracker$MsgData.decrementDeliveryCount(OnflightMessageTracker.java:211) at org.wso2.andes.kernel.OnflightMessageTracker$MsgData.access$700(OnflightMessageTracker.java:117) at org.wso2.andes.kernel.OnflightMessageTracker.handleAckReceived(OnflightMessageTracker.java:399) at org.wso2.andes.kernel.distruptor.inbound.AckHandler.ackReceived(AckHandler.java:104) at org.wso2.andes.kernel.distruptor.inbound.AckHandler.onEvent(AckHandler.java:83) at org.wso2.andes.kernel.distruptor.ConcurrentBatchEventHandler.onEvent(ConcurrentBatchEventHandler.java:127) at org.wso2.andes.kernel.distruptor.ConcurrentBatchEventHandler.onEvent(ConcurrentBatchEventHandler.java:37) at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128) 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) -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware phone: +94773325954 email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware phone: +94773325954 email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] How to show mqtt topics in mb ui management console
Hi, Currently mqtt topics are not visible in mb ui management console[1]. Suggested method to solve this is to call addTopic method in TopicManagerAdminService[2]. This will add topic into registry and will be accessible through ui. Currently when amqp topic received it will get authorize first, and if authorizing successful topic will get added to registry. From registry ui gets the topic message list to show in ui. But when mqtt topic received, currently this is not happening while getting authorize. Therefore how to handle this issue properly? Further, there can be mqtt topic messages which have no present routes (ex:- retain enabled messages for future subscribers) Should we show these messages in ui as well ? [1] https://wso2.org/jira/browse/MB-1055 [2] https://github.com/wso2/carbon-commons/blob/master/components/event/org.wso2.carbon.event.admin/src/main/java/org/wso2/carbon/event/admin/internal/TopicManagerAdminService.java Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] How to show mqtt topics in mb ui management console
Hi Pamod, +1 for further discussion on mqtt related security model. Since amqp and mqtt topics are different from each other, shouldn't we separate these topics in UI as well ? It will be tricky and complicated to handle both type of topics in same UI list. Can we use separate partition for mqtt topics? WDYT? Thanks, On Mon, Jun 1, 2015 at 9:53 AM, Pamod Sylvester pa...@wso2.com wrote: Hi Pumudu, For retain messages IMO we need to show the topics and the messages in it separately. Current topic UI would display topics based on non durable subscriptions. Which will not list out the messages contained etc. Also something to think about is we need to integrate the MQTT client with the UI so that users could publish messages from it. Current publish message feature is based on a JMS client. We could add the topic to the registry after authenticating the subscriber connection for a particular topic, the same way we do it for AMQP. Let's discuss further on the security implications/model of it. Also a related thread you could refer would be [1]. [1] MB MQTT Tenant Support Thanks, Pamod On Mon, Jun 1, 2015 at 9:21 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, Currently mqtt topics are not visible in mb ui management console[1]. Suggested method to solve this is to call addTopic method in TopicManagerAdminService[2]. This will add topic into registry and will be accessible through ui. Currently when amqp topic received it will get authorize first, and if authorizing successful topic will get added to registry. From registry ui gets the topic message list to show in ui. But when mqtt topic received, currently this is not happening while getting authorize. Therefore how to handle this issue properly? Further, there can be mqtt topic messages which have no present routes (ex:- retain enabled messages for future subscribers) Should we show these messages in ui as well ? [1] https://wso2.org/jira/browse/MB-1055 [2] https://github.com/wso2/carbon-commons/blob/master/components/event/org.wso2.carbon.event.admin/src/main/java/org/wso2/carbon/event/admin/internal/TopicManagerAdminService.java Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Pamod Sylvester * *WSO2 Inc.; http://wso2.com http://wso2.com* cell: +94 77 7779495 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Dinithi De Silva
___ 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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Thanks and Regards,* Anuruddha Lanka Liyanarachchi Software Engineer - WSO2 Mobile : +94 (0) 712762611 Tel : +94 112 145 345 a thili...@wso2.comnurudd...@wso2.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 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Architecture] WSO2 Message Broker 3.0.0 Alpha Released !
://wso2.org/jira/browse/MB-868] - Implement Clean Session for MQTT subscriptions The documentation for MB 3.0.0 Alpha can be found at [2]. Your feedback is most welcome, and any issues can be reported to the project at [3]. Thanks, -WSO2 MB Team- *References:* [1] https://github.com/wso2/product-mb/releases/download/v3.0.0-ALPHA/wso2mb-3.0.0-ALPHA.zip [2] https://docs.wso2.com/display/MB300/WSO2+Message+Broker+Documentation [3] https://wso2.org/jira/browse/MB -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Could not run the test-ui testcases - Enterprise Store
Hi Rajeenthini, Can you check firefox version and make sure it's compatible with the test framework. AFAIK ui test framework works with firefox version 21. make sure to disable firefox automatic updates before start tests as well. Regards, On Thu, May 7, 2015 at 7:38 AM, Rajeenthini Satkunam rajeenth...@wso2.com wrote: Hi all, Currently I am working on fixing UI test failures for Enterprise Store.I could not run the test cases and build failure when I run the test cases *mvn clean install -DskipUiTests=false -Dwebdriver.firefox.bin=/home/rajee/firfox/firefox/firefox-bin* from */Documents/TeamES/ProductES/product-es/modules/integration/tests-ui-integration/tests-ui* I am getting this error below ERROR [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] - Execution error occurred in TestExecutionListener:-[Ljava.lang.StackTraceElement;@7a43fb04 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74) Caused by: java.lang.RuntimeException: Error on initializing test environment at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71) at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52) at org.testng.TestNG.runExecutionListeners(TestNG.java:1094) at org.testng.TestNG.run(TestNG.java:1041) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105) ... 9 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75) at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47) ... 14 more Caused by: java.lang.IllegalStateException: Not a JSON Object: null at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:84) at org.wso2.es.integration.common.utils.AssetsRESTClient.login(AssetsRESTClient.java:92) at org.wso2.es.integration.common.utils.AssetsRESTClient.isIndexCompleted(AssetsRESTClient.java:212) at org.wso2.es.integration.common.utils.ESServerExtensionForWait.waitTillIndexingCompletes(ESServerExtensionForWait.java:85) at org.wso2.es.integration.common.utils.ESServerExtensionForWait.onExecutionStart(ESServerExtensionForWait.java:45) ... 20 more Can anyone give me the solution to solve this? -- *Thank You.* *Rajeenthini Satkunam* *Associate Software Engineer | WSO2* *E:rajeenth...@wso2.com rajeenth...@wso2.com* *M :+94770832823 %2B94770832823 * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Java heap space Error
Hi Elilmatha, Did you verified if the MAVEN_OPTS set properly? you can check it with this command[1]. If it's not set properly reload bashrc with this command[2]. [1] echo $MAVEN_OPTS [2] source ~/.bashrc Regards, On Tue, Apr 28, 2015 at 11:32 AM, Thusitha Thilina Dayaratne thusit...@wso2.com wrote: Hi Elimantha, Did you check those options are set correctly when you run the build? If they already set successfully, then it might be because still the allocation is not enough. But probably your current allocation looks enough. Anyway you can try to increase and build again. Thanks On Tue, Apr 28, 2015 at 11:27 AM, Elilmatha Sivanesan elilma...@wso2.com wrote: Hi all, I'm building carbon mediation and product-esb from source and getting an error [ERROR] Java heap space - [Help 1] My bashrc file looks like this export MAVEN_OPTS=-Xmx4096m -Xms1024m -XX:PremSize=1024m -XX:MaxPermSize=1024m export JVM_ARGS=-Xmx4096m -XX:MaxPermSize=2048m Can any one suggest with the correct value to use here. -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. ___ 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 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Mahesh Chinthaka
Congratz Mahesh! On Tue, Apr 28, 2015 at 11:13 AM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Congratz, Mahesh!!! *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Tue, Apr 28, 2015 at 10:40 AM, Samith Dassanayake sam...@wso2.com wrote: Congratz Mahesh! On Tue, Apr 28, 2015 at 10:28 AM, Kalpa Welivitigoda kal...@wso2.com wrote: Congratulations Mahesh ! On Tue, Apr 28, 2015 at 10:28 AM, Tharik Kanaka tha...@wso2.com wrote: Congratulations Mahesh. On Tue, Apr 28, 2015 at 9:27 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, It is with great pleasure that WSO2 welcomes Mahesh Chinthaka as WSO2 committer! Thank you for your hard work. Congratulation! thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Tharik Kanaka* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: tha...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 ___ 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 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Architecture] WSO2 Message Broker 3.0.0 Milestone 7 Released !
*WSO2 Message Broker 3.0.0 Milestone 7 Released !* The WSO2 Message Broker team is pleased to announce the 7th milestone release of WSO2 Message Broker (MB) 3.0.0. WSO2 Message Broker (WSO2 MB) 3.0.0 is designed to be a fast, lightweight and user friendly open source distributed message brokering system under the Apache Software License v2.0 http://www.apache.org/licenses/LICENSE-2.0.html. It primarily allows system administrators and developers to easily configure JMS queues and topics which could be used for message routing, message stores and message processors. WSO2 MB is compliant with Advanced Message Queuing Protocol Version 0-9-1, Java Message Service Specification version 1.1 and MQTT protocol version 3.1. WSO2 MB 3.0.0 is developed on top of the revolutionary WSO2 Carbon platform http://wso2.org/projects/carbon (Middleware a' la carte), an OSGi based framework that provides seamless modularity to your SOA via modularization. This release also contains many other new features and a range of optional components (add-ons) that can be installed to customize the behavior of the MB. Further, any existing features of the MB which are not required to your environment can be easily removed using the underlying provisioning framework of Carbon. In a nutshell, WSO2 MB can be fully customized and tailored to meet your exact SOA needs. You can download this distribution from [1]. Release notes for this milestone can be found at [2]. Known issues are listed at [3]. This milestone has mainly focused on bug fixes and performance improvements. How You Can Contribute:Mailing Lists Join our mailing list and correspond with the developers directly. - Developer List : dev@wso2.org | Subscribe | Mail Archive http://wso2.org/mailarchive/carbon-dev/ - User List : StackOverflow.com http://stackoverflow.com/questions/tagged/wso2 Reporting Issues WSO2 encourages you to report issues and your enhancement requests for the WSO2 MB using the public JIRA https://wso2.org/jira/browse/MB. You can also watch how they are resolved, and comment on the progress.. [1] https://svn.wso2.org/repos/wso2/scratch/MB/3.0.0/M7/wso2mb-3.0.0-SNAPSHOT-m7.zip https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fscratch%2FMB%2F3.0.0%2FM7%2Fwso2mb-3.0.0-SNAPSHOT-m7.zipsa=Dsntz=1usg=AFQjCNEj-PKEn-9ZHW0HM2CzMwsR_IyzhQ [2] https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10200version=11766 https://www.google.com/url?q=https%3A%2F%2Fwso2.org%2Fjira%2Fsecure%2FReleaseNote.jspa%3FprojectId%3D10200%26version%3D11766sa=Dsntz=1usg=AFQjCNH50zjXZAR9qR6UZm5RIphFHqD15A [3] https://wso2.org/jira/browse/MB#selectedTab=com.atlassian.jira.plugin.system.project%3Aissues-panel -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Scenarios for comparing performance of Hazelcast and RDBMS slot manager implementations
Hi Anuja, Can you add all the scenarios you tested on a single spreadsheet and share with us including test results (duration, number of messages, average publisher/subscriber tps) try to test with disconnecting subscribers while receiving messages as well. Do it in systematic way covering all the scenarios if you can. Refer these test documents[1][2] as well. [1] https://docs.google.com/a/wso2.com/spreadsheets/d/13Z-Sq4J-6OrzZAP47YNzK410rRGkswBUVmSu72VS4ro [2] https://docs.google.com/a/wso2.com/spreadsheets/d/1gQn9FTdBedvqs_qcNwDsP374Cs-Cg8Q4QRKgdtp1Ado Regards, On Fri, Apr 17, 2015 at 10:38 AM, Pamod Sylvester pa...@wso2.com wrote: Hi Anuja, IMO another scenario that might add value is to compare between fast publishing and slow subscribers. One way of doing it is through adding a thread delay when messages are consumed. Thanks, Pamod On Fri, Apr 17, 2015 at 10:32 AM, Anuja Herath an...@wso2.com wrote: Hi, I have tested and compared below scenarios in relating to $subject [1]. - 01 Publisher, 01 Subscriber, Both in same node, 10 minutes - 01 Publisher, 02 Subscribers, Both in same node, 10 minutes - 10 Publishers, 10 Subscriber, Both in same node, 10 minutes - 10 Publisher, 10 Subscriber, Publisher and subscriber in 02 different nodes, 10 minutes Please suggest if there are more scenarios to be tested. [1] https://redmine.wso2.com/issues/3801 Thanks, Anuja -- Anuja Herath *Software Engineer* *WSO2, Inc.* Mobile : +94 (0)71 429 8861 -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Lakshman Udayakantha
-bin/mailman/listinfo/dev -- *Madhawa Gunasekara* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 719411002 +94+719411002 blog: *http://madhawa-gunasekara.blogspot.com http://madhawa-gunasekara.blogspot.com* linkedin: *http://lk.linkedin.com/in/mgunasekara http://lk.linkedin.com/in/mgunasekara* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Tharik Kanaka* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: tha...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lasitha Wattaladeniya Software Engineer WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +94719397528 Blog : techreadme.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Dinithi De Silva* Associate Software Engineer, WSO2 Inc. m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com | a: #20, Palm Grove, Colombo 03 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn: http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, *Thilini Cooray* Software Engineer Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194 E-mail : thili...@wso2.com WSO2 Inc. www.wso2.com lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Chanuka Dissanayake *Software Engineer | **WSO2 Inc.*; http://wso2.com Mobile: +94 71 33 63 596 Email: chan...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Sam Sivayogam* Software Engineer Mobile : +94 772 906 439 Office : +94 112 145 345 *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Jerad Rutnam* *Software Engineer* WSO2 Inc. lean | enterprise | middleware M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ 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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Chamalee De Silva Software Engineer | WSO2 E:chama...@wso2.com nirosh...@wso2.com M :0711540738| http://wso2.com http://wso2.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org
Re: [Dev] [MB] How to handle reroute operation for durable topic messages in dead letter channel
Hi Pamod, If 'C' failed to receive a message we should be able to browse the list of internal queues of durable topic subscribers (these queues should be mapped with durable topic names in ui to make them readable) and reroute it only to a given internal queue. Internal queues currently not accessible through in dlc. As i understood this is what hasitha mentioned. This way we don't have to send duplicate durable topic messages to all the subscribers. I'm not sure how permission model will work in this case. There can be conflicts if permissions are not granted to subscribe/publish to given queue. As a workaround if it's possible, we can only show queues with sufficient permissions to perform reroute operations in ui. Regards, On Thu, Apr 9, 2015 at 12:38 PM, Pamod Sylvester pa...@wso2.com wrote: Also another question i have, let's say we're rerouting to among the consumers of the same topic. i.e for a given topic there're 3 durable subscriptions(A,B,C), When a message is sent two subscribers receive the message (A and B) and the message sent to C had failed and sent to the DLC. If we reroute the above to A, will it be the case where A received the same message which was received some time back. Thanks, Pamod On Thu, Apr 9, 2015 at 12:32 PM, Pamod Sylvester pa...@wso2.com wrote: Hi Pumudu, 1) Will it be the case where we specify the next route based on the subscription id ? Also in addition to the current flow, we might need to re create/activate a topic entry as well IMO since for durable subscriptions we create a queue and a topic entry 2) Also how with the permission model work in this case ? can there be a conflict of rerouting the message to a different subscriber of a different role? Thanks, Pamod On Thu, Apr 9, 2015 at 12:11 PM, Hasitha Hiranya hasit...@wso2.com wrote: Durable topic has a internal queue. we should be able to browse internal queue. Many people has asked for that feature. On Thu, Apr 9, 2015 at 1:27 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi Hasitha, Since this is a durable topic message will it make sense to reroute it to a queue ? Ideally shouldn't we reroute it to a durable topic, which is currently not handle by dlc? Thanks, On Wed, Apr 8, 2015 at 11:21 PM, Hasitha Hiranya hasit...@wso2.com wrote: Hi Pumudu, Yes. There will be cases where customers would like this reroute function. Make sure to reroute to the same queue for that sub ID. Also, make a note that, by the time you reroute, that subscription can be unsubscribed by user and queue is no longer there. Thanks On Wed, Apr 8, 2015 at 11:33 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, Currently if a durable topic message didn't receive client acknowledgement from subscriber it will retry 10 times and move that durable topic message to dlc queue. dlc have 3 operations delete, restore and reroute. Out of these, delete and restore operations are functional for durable topic messages in dlc. But problem is that reroute operation only support for queues in dlc. Since dlc can contain durable topic messages, will it be possible to reroute dlc messages to topics as well ? WDYT ? Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- *Hasitha Abeykoon* Senior Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- *Hasitha Abeykoon* Senior Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] How to handle reroute operation for durable topic messages in dead letter channel
Hi Hasitha, Since this is a durable topic message will it make sense to reroute it to a queue ? Ideally shouldn't we reroute it to a durable topic, which is currently not handle by dlc? Thanks, On Wed, Apr 8, 2015 at 11:21 PM, Hasitha Hiranya hasit...@wso2.com wrote: Hi Pumudu, Yes. There will be cases where customers would like this reroute function. Make sure to reroute to the same queue for that sub ID. Also, make a note that, by the time you reroute, that subscription can be unsubscribed by user and queue is no longer there. Thanks On Wed, Apr 8, 2015 at 11:33 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, Currently if a durable topic message didn't receive client acknowledgement from subscriber it will retry 10 times and move that durable topic message to dlc queue. dlc have 3 operations delete, restore and reroute. Out of these, delete and restore operations are functional for durable topic messages in dlc. But problem is that reroute operation only support for queues in dlc. Since dlc can contain durable topic messages, will it be possible to reroute dlc messages to topics as well ? WDYT ? Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- *Hasitha Abeykoon* Senior Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] How to handle reroute operation for durable topic messages in dead letter channel
Hi, Currently if a durable topic message didn't receive client acknowledgement from subscriber it will retry 10 times and move that durable topic message to dlc queue. dlc have 3 operations delete, restore and reroute. Out of these, delete and restore operations are functional for durable topic messages in dlc. But problem is that reroute operation only support for queues in dlc. Since dlc can contain durable topic messages, will it be possible to reroute dlc messages to topics as well ? WDYT ? Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Architecture] WSO2 Message Broker 3.0.0 Milestone 6 Released !
*WSO2 Message Broker 3.0.0 Milestone 6 Released !* The WSO2 Message Broker team is pleased to announce the 6th milestone release of WSO2 Message Broker (MB) 3.0.0. WSO2 Message Broker (WSO2 MB) 3.0.0 is designed to be a fast, lightweight and user friendly open source distributed message brokering system under the Apache Software License v2.0 http://www.apache.org/licenses/LICENSE-2.0.html. It primarily allows system administrators and developers to easily configure JMS queues and topics which could be used for message routing, message stores and message processors. WSO2 MB is compliant with Advanced Message Queuing Protocol Version 0-9-1, Java Message Service Specification version 1.1 and MQTT protocol version 3.1. WSO2 MB 3.0.0 is developed on top of the revolutionary WSO2 Carbon platform http://wso2.org/projects/carbon (Middleware a' la carte), an OSGi based framework that provides seamless modularity to your SOA via modularization. This release also contains many other new features and a range of optional components (add-ons) that can be installed to customize the behavior of the MB. Further, any existing features of the MB which are not required to your environment can be easily removed using the underlying provisioning framework of Carbon. In a nutshell, WSO2 MB can be fully customized and tailored to meet your exact SOA needs. You can download this distribution from [1]. Release notes for this milestone can be found at [2]. Known issues are listed at [3]. This milestone has mainly focused on bug fixes and performance improvements. How You Can Contribute:Mailing Lists Join our mailing list and correspond with the developers directly. - Developer List : dev@wso2.org | Subscribe | Mail Archive http://wso2.org/mailarchive/carbon-dev/ - User List : StackOverflow.com http://stackoverflow.com/questions/tagged/wso2 Reporting Issues WSO2 encourages you to report issues and your enhancement requests for the WSO2 MB using the public JIRA https://wso2.org/jira/browse/MB. You can also watch how they are resolved, and comment on the progress.. [1] https://svn.wso2.org/repos/wso2/scratch/MB/3.0.0/M6/wso2mb-3.0.0-SNAPSHOT-m6.zip https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fscratch%2FMB%2F3.0.0%2FM6%2Fwso2mb-3.0.0-SNAPSHOT-m6.zipsa=Dsntz=1usg=AFQjCNEIHTR6d3OKQTJdKaWZfbFZ-tkJnA [2] https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10200version=11753 https://www.google.com/url?q=https%3A%2F%2Fwso2.org%2Fjira%2Fsecure%2FReleaseNote.jspa%3FprojectId%3D10200%26version%3D11753sa=Dsntz=1usg=AFQjCNFQkFQ4oqkItosd9AekgLdXpMKsWA [3] https://wso2.org/jira/browse/MB#selectedTab=com.atlassian.jira.plugin.system.project%3Aissues-panel https://wso2.org/jira/browse/MB#selectedTab=com.atlassian.jira.plugin.system.project%3Aissues-panel -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CodePlex ESB connector review
Hi Shakila, AFAIK integration test resources are not user configurable. therefore, not required to document in user README. Regarding the test failures, i think it's due to some of the patches missing in your esb instance.integration tests are passing with patched esb and with given test resources. @Tharik, can you please help shakila with esb patches needed for codeplex connector? Regards, On Wed, Apr 1, 2015 at 11:33 AM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Pumudu and Tharik, I have tried with the request bodies given in the connector, there are 6 test cases failed. Please find the Log file here. In your connector, you are giving all inputs in *esb-connectors/codeplex/src/test/resources/artifacts/ESB/config/restRequests/codeplex *so you have to mention it in README. If anyone need to test this connector, he/she may needs to change the values in those files. Thank you. On Fri, Mar 20, 2015 at 9:26 AM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi, Thank you Pumudu. On Thu, Mar 19, 2015 at 9:31 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, We have fixed issues as requested. Please find codeplex connector pull request[1] and jira[2]. Documentation has updated in jira. [1] https://github.com/wso2/esb-connectors/pull/83 [2] https://wso2.org/jira/browse/ESBCONNECT-31 Regards, On Tue, Mar 10, 2015 at 5:24 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi Shakila, Currently I'm making necessary changes to test cases. i'll let you know once it's done. Regards, On Tue, Mar 10, 2015 at 2:40 PM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Tharik and Pumudu, Can you please give a quick update on this? Thank you. On Wed, Feb 25, 2015 at 3:44 PM, Pumudu Ruhunage pum...@wso2.com wrote: Adding my correct email. On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Tharik, Ok, Go ahead. On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka tha...@wso2.com wrote: Hi Shakila, We have removed and updated the Snapshot dependencies of the automation and integration. Since automation and integration dependencies have been updated recently our old test cases (which were working in last year) are getting failed now. So we will update test automation code accordingly and send a pull request. Regards, On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Tharik and Pumudu, Please find the feedbacks regarding the CodePlex connector. 1. Some dependencies need to be changed. 2. Instead of SNAPSHOT versions, use stable versions for libraries. 3. Please modify the pom to run the test cases in a single build. 4. Format the code and send the pull request to https://github.com/wso2/esb-connectors. Thank you -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- *Tharik Kanaka* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: tha...@wso2.com | Web: www.wso2.com -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Getting an error on running a jmeter publisher script
Hi Anuja, can you try adding 'andes-client-3.0.0-SNAPSHOT.jar' in {jmeter-home}/lib/ and restart server. Regards, On Tue, Mar 31, 2015 at 3:44 PM, Indika Sampath indi...@wso2.com wrote: Hi Anuja, Please check MB running on defined port in jndi.properties file of Jmeter. Also make sure necessary MB client libraries copied to lib folder of Jmeter. Cheers! On Tue, Mar 31, 2015 at 3:39 PM, Anuja Herath an...@wso2.com wrote: Hi All, I m getting this error when I try to run a jmeter publisher script. org.wso2.andes.AMQConnectionFailureException: Could not open connection at org.wso2.andes.client.AMQConnection.init(AMQConnection.java:475) at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:328) at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:38) at org.apache.jmeter.protocol.jms.Utils.getConnection(Utils.java:194) at org.apache.jmeter.protocol.jms.client.Publisher.init(Publisher.java:104) at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.initClient(PublisherSampler.java:138) at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.sample(PublisherSampler.java:159) at org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler.sample(BaseJMSSampler.java:80) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:431) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:258) at java.lang.Thread.run(Thread.java:722) Caused by: org.wso2.andes.transport.TransportException: Could not open connection at org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216) at org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74) at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:120) at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616) at org.wso2.andes.client.AMQConnection.init(AMQConnection.java:398) ... 10 more -- Anuja Herath *Software Engineer* *WSO2, Inc.* Mobile : +94 (0)71 429 8861 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Indika Sampath Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] Long running MB cluster out of memory issue
) at org.apache.mina.common.SimpleByteBufferAllocator.allocate(SimpleByteBufferAllocator.java:45) at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:225) at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:214) at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:210) at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcessor.java:198) Local Variable: org.apache.mina.transport.socket.nio.SocketIoProcessor#1 Local Variable: java.util.HashMap$KeyIterator#2 Local Variable: sun.nio.ch.SelectionKeyImpl#15 Local Variable: org.apache.mina.transport.socket.nio.SocketSessionImpl#9 Local Variable: sun.nio.ch.Util$2#17 at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$400(SocketIoProcessor.java:45) at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:485) Local Variable: org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker#3 Local Variable: sun.nio.ch.EPollSelectorImpl#49 at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) Local Variable: org.apache.mina.util.NamePreservingRunnable#6 Local Variable: java.lang.String#148830 at java.lang.Thread.run(Thread.java:745) What can be the cause for this issue ? WDYT ? Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][MB] Truncate Tables Script MSSQL
Hi, Added in my git repo[1]. [1] https://github.com/pumudu88/wso2-mb-db-scripts Regards, On Thu, Mar 26, 2015 at 10:42 AM, Ramith Jayasinghe ram...@wso2.com wrote: could you host these in your git hub then we can download it from there. On Wed, Mar 25, 2015 at 7:25 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, While doing mb cluster testing when i wants to start from clean database i've used attached db drop sql script with dsetup. only catch is that mssql user have to have drop/create database privileges to run this script. Make sure to changes database names if anyone using this script. Regards, On Tue, Feb 10, 2015 at 2:16 PM, Ramith Jayasinghe ram...@wso2.com wrote: shall we commit this to a scratch/personal area? On Tue, Feb 10, 2015 at 2:15 PM, Pamod Sylvester pa...@wso2.com wrote: Good stuff. This will be useful when carrying out tests, so that we will not need to drop the DB entirely. On Tue, Feb 10, 2015 at 2:10 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi all, Attached truncate tables script to be used in testing/dev when MB is configured to be used with SQL Server. Thanks, Akalanka. -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 777542851 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][MB] Truncate Tables Script MSSQL
Hi, While doing mb cluster testing when i wants to start from clean database i've used attached db drop sql script with dsetup. only catch is that mssql user have to have drop/create database privileges to run this script. Make sure to changes database names if anyone using this script. Regards, On Tue, Feb 10, 2015 at 2:16 PM, Ramith Jayasinghe ram...@wso2.com wrote: shall we commit this to a scratch/personal area? On Tue, Feb 10, 2015 at 2:15 PM, Pamod Sylvester pa...@wso2.com wrote: Good stuff. This will be useful when carrying out tests, so that we will not need to drop the DB entirely. On Tue, Feb 10, 2015 at 2:10 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi all, Attached truncate tables script to be used in testing/dev when MB is configured to be used with SQL Server. Thanks, Akalanka. -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- 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 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com mssql_db_drop.sql Description: Binary data ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] Issue when writing dlc related test cases in integration test suite
Hi, I came across following issue while writing integration test case for dlc queue path. following are the steps of the test case. 1. Start queue subscriber to dlctenant1.com/tenantQueue, user 'dlctenantuser' at 'dlctenant1.com' domain (this subscriber has set to client acknowledgement mode as well). 2. Publish 1 queue message to dlctenant1.com/tenantQueue. 3. Since subscriber never acknowledge, after retry 10 time this queue message will be moved tenant's dlc queue. 4. This test case tests if a queue message exist in tenant's dlc queue and it's not exist in super tenant admin's dlc queue. (there are two assertions) Test passed successfully in H2 embedded(normal) mode database, but same test failed on H2 in-memory mode database with assertion failure. As i understood following was the cause for this issue. AFAIK mb test suite create tenant/super tenant users when integration test suite starts. dlc queues for each tenant user/admin also creates when creating tenant users/admins. Tenant users/admins are created in carbon registry database (which is constant throughout the test suite) but dlc queues are only created in H2 embedded(normal) database. Currently in H2 in-memory database mode dlc queues were never created for any of the tenant user/admin. Because of this, dlc queue path can't be tested in H2 in-memory mode. How can we overcome this issue ? WDYT? Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Issue when writing dlc related test cases in integration test suite
Hi, +1 for Asitha's suggestion. @Indika, currently test suite replace the original broker.xml with another broker.xml with these h2 in-mem settings and server restarts in org.wso2.mb.integration.tests.amqp.functional.StartH2MemMode class. After server restarts successfully h2 in-memory tests will start to run. Regards, On Mon, Mar 23, 2015 at 11:16 PM, Asitha Nanayakkara asi...@wso2.com wrote: In H2 in memory mode we don't have the queues created on H2 embedded mode but have the tenant user details in registry. SInce we use embedded carbon db. Therefore before we do the H2 in memory mode I think we need unpack a fresh pack an go through the tenant user creation process. In addition to what we do at test suite start-up. I think we should be able to do that. Regards, On Mon, Mar 23, 2015 at 10:55 PM, Indika Sampath indi...@wso2.com wrote: Hi Pumudu, Did you enabled following configuration in broker.xml before test run ? This is by default commented. messageStore class=org.wso2.andes.store.rdbms.h2.H2MemMessageStoreImpl /messageStore contextStore class=org.wso2.andes.store.rdbms.h2.H2MemAndesContextStoreImpl /contextStore Cheers! On Mon, Mar 23, 2015 at 10:26 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, I came across following issue while writing integration test case for dlc queue path. following are the steps of the test case. 1. Start queue subscriber to dlctenant1.com/tenantQueue, user 'dlctenantuser' at 'dlctenant1.com' domain (this subscriber has set to client acknowledgement mode as well). 2. Publish 1 queue message to dlctenant1.com/tenantQueue. 3. Since subscriber never acknowledge, after retry 10 time this queue message will be moved tenant's dlc queue. 4. This test case tests if a queue message exist in tenant's dlc queue and it's not exist in super tenant admin's dlc queue. (there are two assertions) Test passed successfully in H2 embedded(normal) mode database, but same test failed on H2 in-memory mode database with assertion failure. As i understood following was the cause for this issue. AFAIK mb test suite create tenant/super tenant users when integration test suite starts. dlc queues for each tenant user/admin also creates when creating tenant users/admins. Tenant users/admins are created in carbon registry database (which is constant throughout the test suite) but dlc queues are only created in H2 embedded(normal) database. Currently in H2 in-memory database mode dlc queues were never created for any of the tenant user/admin. Because of this, dlc queue path can't be tested in H2 in-memory mode. How can we overcome this issue ? WDYT? Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Indika Sampath Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/ -- *Asitha Nanayakkara* Software Engineer WSO2, Inc. http://wso2.com/ Mob: + 94 77 85 30 682 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] How to handle flow controling in a event of fail-over
Hi All, We did fail over testing on mb nodes in AWS instances and came across following issue. Following is the scenario tested in cluster. 1. Start 2 node mb cluster with nodeA (coordinator), nodeB. 2. Add queue subscriber MyQueue to nodeB. 3. Start publish MyQueue queue messages to nodeA. 4. After flow control enabled in nodeA, disconnect nodeA from the cluster. At a moment where flow control is enabled for the publisher, the coordinator is killed. Even though(assuming) that the publisher moves to the other node, it is still under flow control and the node does not disable the flow control for the publisher. Therefore the publisher does not publish any messages afterwards. How can we overcome this issue ? Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CodePlex ESB connector review
Hi, We have fixed issues as requested. Please find codeplex connector pull request[1] and jira[2]. Documentation has updated in jira. [1] https://github.com/wso2/esb-connectors/pull/83 [2] https://wso2.org/jira/browse/ESBCONNECT-31 Regards, On Tue, Mar 10, 2015 at 5:24 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi Shakila, Currently I'm making necessary changes to test cases. i'll let you know once it's done. Regards, On Tue, Mar 10, 2015 at 2:40 PM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Tharik and Pumudu, Can you please give a quick update on this? Thank you. On Wed, Feb 25, 2015 at 3:44 PM, Pumudu Ruhunage pum...@wso2.com wrote: Adding my correct email. On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Tharik, Ok, Go ahead. On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka tha...@wso2.com wrote: Hi Shakila, We have removed and updated the Snapshot dependencies of the automation and integration. Since automation and integration dependencies have been updated recently our old test cases (which were working in last year) are getting failed now. So we will update test automation code accordingly and send a pull request. Regards, On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Tharik and Pumudu, Please find the feedbacks regarding the CodePlex connector. 1. Some dependencies need to be changed. 2. Instead of SNAPSHOT versions, use stable versions for libraries. 3. Please modify the pom to run the test cases in a single build. 4. Format the code and send the pull request to https://github.com/wso2/esb-connectors. Thank you -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- *Tharik Kanaka* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: tha...@wso2.com | Web: www.wso2.com -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] Out of memory error in long running mb cluster
Hi, I came across out of memory exception while doing long running test on mb cluster with oracle database as message store. Following was the scenario i tested. 1. Start two clustered mb nodes with serializers (nodeA(coordinator), nodeB). 2. Add queue subscriber MyQueue1, to nodeB and publish MyQueue1 messages to nodeA with average 1500 TPS. 3. Add queue subscriber MyQueue2 to nodeA and publish MyQueue2 messages to nodeB with average 1000 TPS. 4. After around 14 hours, om exception has thrown from nodeA and all operations has halted. After analysing heap dump i found which thread has thrown the error, and it's as follows. pool-25-thread-1 prio=5 tid=174 RUNNABLE at java.lang.OutOfMemoryError.init(OutOfMemoryError.java:48) at java.lang.Long.toString(Long.java:267) at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816) at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648) at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659) Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1 Local Variable: com.google.gson.JsonArray#1 at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) at com.google.gson.internal.Streams.parse(Streams.java:44) at com.google.gson.JsonParser.parse(JsonParser.java:84) at com.google.gson.JsonParser.parse(JsonParser.java:59) Local Variable: com.google.gson.stream.JsonReader#1 at com.google.gson.JsonParser.parse(JsonParser.java:45) at org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53) at org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33) at com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59) Local Variable: com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1 at com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221) at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156) at com.hazelcast.map.MapService.toObject(MapService.java:872) at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53) at org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347) Local Variable: java.util.TreeSet#1 at org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56) Local Variable: java.lang.String#2380 Local Variable: java.lang.String#2379 at org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440) Local Variable: org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2 at org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429) Local Variable: org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1 Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32) Local Variable: org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34) at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176) Local Variable: org.apache.thrift.transport.TSocket#2 Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2 Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3 Local Variable: org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) Local Variable: org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1 Local Variable: java.util.concurrent.ThreadPoolExecutor#26 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) Local Variable: java.util.concurrent.ThreadPoolExecutor$Worker#41 at java.lang.Thread.run(Thread.java:745) Have anyone faced similar issue ? What is the best method to handle this out of memory issue? Thanks, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] Oracle ORA-01653 issue with mb cluster
Hi, I got this error log[1] when testing a long running mb cluster. 1. Start two clustered mb nodes with serializers (nodeA(coordinator), nodeB). 2. Add queue subscriber MyQueue1, to nodeB and publish MyQueue1 messages to nodeA with average 1500TPS. 3. Add queue subscriber MyQueue2 to nodeA and publish MyQueue2 messages to nodeB with average 1000TPS. 4. After around 12 hours, om exception has thrown from nodeB and all operations has halted. before the om exception throws following oracle exception has repeatedly thrown by nodeB. TID: [] [] [2015-03-18 02:18:08,684] ERROR {org.wso2.andes.kernel.distruptor.inbound.InboundLogExceptionHandler} - [ Sequence: 400477036 ] Exception occurred while processing inbound events.Event type: MESSAGE_EVENT {org.wso2.andes.kernel.distruptor.inbound.InboundLogExceptionHandler} org.wso2.andes.kernel.AndesException: Error occurred while adding message content to DB at org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl.storeMessagePart(RDBMSMessageStoreImpl.java:125) at org.wso2.andes.kernel.MessagingEngine.messagesReceived(MessagingEngine.java:223) at org.wso2.andes.kernel.distruptor.inbound.MessageWriter.onEvent(MessageWriter.java:58) at org.wso2.andes.kernel.distruptor.inbound.ConcurrentBatchEventHandler.onEvent(ConcurrentBatchEventHandler.java:126) at org.wso2.andes.kernel.distruptor.inbound.ConcurrentBatchEventHandler.onEvent(ConcurrentBatchEventHandler.java:36) at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) *Caused by: java.sql.BatchUpdateException: ORA-01653: *unable to extend table MB.MB_CONTENT by 8192 in tablespace USERS at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:11190) at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:244) at org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl.storeMessagePart(RDBMSMessageStoreImpl.java:121) ... 8 more What is the best way to handle this issue ? is there a oracle database configuration to avoid this issue ? [1] https://drive.google.com/a/wso2.com/file/d/0B3o_bweLeo43a2tCRmt0TjRSVzQ/view?usp=sharing Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Hemika Kodikara
Congratulations Hemika..!!! On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka tha...@wso2.com wrote: Congratulations Hemika !! On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya lasit...@wso2.com wrote: Congratulations Hemika ! On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com wrote: Hi Hemika, Congratulations! It is with great pleasure that we welcome you as a WSO2 committer. Keep up the good work! regards, -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lasitha Wattaladeniya Software Engineer WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +94719397528 Blog : techreadme.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Tharik Kanaka* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: tha...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] Message order issue in queue path when subscriber unstable
Hi, I found a issue in queue path, Steps to reproduce is as follows, 1. Start MB node in standalone mode. 2. Set queue subscriber to 'queue1' and maximum message count to 2,500. 3. Send 10,000 queue messages to 'queue1'. 4. Subscriber will receive 2,500 messages in proper order and will disconnect. 5. After subscriber disconnects re-run subscriber. 6. Subscriber will receive random message set upto 2,500 messages and will get disconnected (it will not receive messages starting from 2,501 th message) 7. If 10,000th message get received by subscriber, it will stop receive any other messages. Is this behavior acceptable according to amqp protocol ? Is it necessary to handle message receiving order when subscriber is unstable? Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] MB cluster throws 'hazelcast operation timeout' exception with long running tests
Hi, As per offline chat with Azeez , i will try to reproduce the issue with jconsole enabled and get system status (load/memory usage etc.) when this exception throws in each machine in cluster. Regards, On Mon, Mar 16, 2015 at 11:23 AM, Ramith Jayasinghe ram...@wso2.com wrote: Looping in Kernel Team. On Mon, Mar 16, 2015 at 11:01 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, I did a long running MB cluster test and got attached exceptions. Following is the test scenario i followed. 1. Start two MB nodes, nodeA(slot coordinator) and nodeB with shared oracle database. 2. Add two subscribers for queue messages (queue1 and queue2) to nodeB. 3. Start publish messages to 'queue1' with average 1000 TPS to nodeA. 4. Start publish messages to 'queue2' with average 300 TPS to nodeA. 5. After around 48 hours attached exceptions were thrown from nodeA. What will be the best approach to solve this issue. Thanks, Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 777542851 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Architecture] WSO2 Message Broker 3.0.0 Milestone 5 Released !
Hi All, The WSO2 Message Broker team is pleased to announce the 5th milestone release of WSO2 Message Broker (MB) 3.0.0. WSO2 Message Broker (WSO2 MB) 3.0.0 is designed to be a fast, lightweight and user friendly open source distributed message brokering system under the Apache Software License v2.0 http://www.apache.org/licenses/LICENSE-2.0.html. It primarily allows system administrators and developers to easily configure JMS queues and topics which could be used for message routing, message stores and message processors. WSO2 MB is compliant with Advanced Message Queuing Protocol Version 0-9-1, Java Message Service Specification version 1.1 and MQTT protocol version 3.1. WSO2 MB 3.0.0 is developed on top of the revolutionary WSO2 Carbon platform http://wso2.org/projects/carbon (Middleware a' la carte), an OSGi based framework that provides seamless modularity to your SOA via modularization. This release also contains many other new features and a range of optional components (add-ons) that can be installed to customize the behavior of the MB. Further, any existing features of the MB which are not required to your environment can be easily removed using the underlying provisioning framework of Carbon. In a nutshell, WSO2 MB can be fully customized and tailored to meet your exact SOA needs. You can download this distribution from [1]. Release notes for this milestone can be found at [2]. Known issues are listed at [3]. Apart from the bug fixes and improvements this milestone adds, 1) Integration with carbon metrics 2) Performance improvements which allows users to read messages defining batch size. How You Can Contribute:Mailing Lists Join our mailing list and correspond with the developers directly. - Developer List : dev@wso2.org | Subscribe | Mail Archive http://wso2.org/mailarchive/carbon-dev/ - User List : StackOverflow.com http://stackoverflow.com/questions/tagged/wso2 Reporting Issues WSO2 encourages you to report issues and your enhancement requests for the WSO2 MB using the public JIRA https://wso2.org/jira/browse/MB. You can also watch how they are resolved, and comment on the progress.. [1] https://svn.wso2.org/repos/wso2/scratch/MB/3.0.0/M5/wso2mb-3.0.0-SNAPSHOT-m5.zip https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fscratch%2FMB%2F3.0.0%2FM5%2Fwso2mb-3.0.0-SNAPSHOT-m5.zipsa=Dsntz=1usg=AFQjCNGaoBSo9_GOrUG9-lc-8Q-dbkemSQ [2] https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10200version=11592 https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10200version=11741 https://www.google.com/url?q=https%3A%2F%2Fwso2.org%2Fjira%2Fsecure%2FReleaseNote.jspa%3FprojectId%3D10200%26version%3D11741sa=Dsntz=1usg=AFQjCNFwCcVwbtZD2Be2OLjBtsd5Rl39Pg [3] https://wso2.org/jira/browse/MB#selectedTab=com.atlassian.jira.plugin.system.project%3Aissues-panel https://wso2.org/jira/browse/MB#selectedTab=com.atlassian.jira.plugin.system.project%3Aissues-panel Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] MB cluster throws 'hazelcast operation timeout' exception with long running tests
Hi, I did a long running MB cluster test and got attached exceptions. Following is the test scenario i followed. 1. Start two MB nodes, nodeA(slot coordinator) and nodeB with shared oracle database. 2. Add two subscribers for queue messages (queue1 and queue2) to nodeB. 3. Start publish messages to 'queue1' with average 1000 TPS to nodeA. 4. Start publish messages to 'queue2' with average 300 TPS to nodeA. 5. After around 48 hours attached exceptions were thrown from nodeA. What will be the best approach to solve this issue. Thanks, Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com mb Description: Binary data ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CodePlex ESB connector review
Adding my correct email. On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Tharik, Ok, Go ahead. On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka tha...@wso2.com wrote: Hi Shakila, We have removed and updated the Snapshot dependencies of the automation and integration. Since automation and integration dependencies have been updated recently our old test cases (which were working in last year) are getting failed now. So we will update test automation code accordingly and send a pull request. Regards, On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah shak...@wso2.com wrote: Hi Tharik and Pumudu, Please find the feedbacks regarding the CodePlex connector. 1. Some dependencies need to be changed. 2. Instead of SNAPSHOT versions, use stable versions for libraries. 3. Please modify the pom to run the test cases in a single build. 4. Format the code and send the pull request to https://github.com/wso2/esb-connectors. Thank you -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- *Tharik Kanaka* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: tha...@wso2.com | Web: www.wso2.com -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 770 760240 shak...@wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] osgi bundle issue in carbon-business-messaging - 'org.wso2.carbon.andes'
Hi, As per offline chat with supun malinga best way to expose classes to internals package is to make the utils package private. Since ' org.wso2.carbon.andes.utils' won't be used by any other class it's better not to export this package as well. Regards, On Tue, Feb 17, 2015 at 10:20 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, I'm getting class not found error when instantiate classes inside 'org.wso2.carbon.andes' in ''org.wso2.carbon.andes.internals'' package. I have created a package named 'utils' inside 'org.wso2.carbon.andes' and added some utility classes which needs to be call from ''org.wso2.carbon.andes.internals'' startAndesBroker method. these 'utils' are not used in any other bundle except for 'org.wso2.carbon.andes'. Therefore these 'utils' classes should exposed to classes inside 'org.wso2.carbon.andes' without exporting in pom since it's in the same bundle. But instead i'm getting class not found error when trying to instantiate a utils class in internals package. As a work around, if i export utils package in pom these classes will be exposed to ''org.wso2.carbon.andes.internals'' package. what can be the cause for this issue ? Any help/advice will be much appreciated. -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] osgi bundle issue in carbon-business-messaging - 'org.wso2.carbon.andes'
Hi, I'm getting class not found error when instantiate classes inside 'org.wso2.carbon.andes' in ''org.wso2.carbon.andes.internals'' package. I have created a package named 'utils' inside 'org.wso2.carbon.andes' and added some utility classes which needs to be call from ''org.wso2.carbon.andes.internals'' startAndesBroker method. these 'utils' are not used in any other bundle except for 'org.wso2.carbon.andes'. Therefore these 'utils' classes should exposed to classes inside 'org.wso2.carbon.andes' without exporting in pom since it's in the same bundle. But instead i'm getting class not found error when trying to instantiate a utils class in internals package. As a work around, if i export utils package in pom these classes will be exposed to ''org.wso2.carbon.andes.internals'' package. what can be the cause for this issue ? Any help/advice will be much appreciated. -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] Renaming WSO2 MB embedded H2 Store name in master-datasources.xml
Hi, I'm working on developing dsetup feature in MB. Since all the datasources are similarly named, it's hard to uniquely identify data source which needs to be sourced to rdbms store. For example, i need to skip following embedded H2 store configuration. !-- WSO2 MB embedded H2 Store -- datasource name*WSO2_MB_STORE_DB*/name descriptionThe datasource used for registry and user manager/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 And following mssql configurations needs to extract from xml. datasource name*WSO2_MB_STORE_DB*/name jndiConfig nameWSO2MBStoreDB/name /jndiConfig definition type=RDBMS configuration urljdbc:jtds:sqlserver://localhost:1433/wso2_mb/url usernameroot/username passwordroot/password driverClassNamenet.sourceforge.jtds.jdbc.Driver/driverClassName maxActive200/maxActive maxWait6/maxWait minIdle5/minIdle testOnBorrowtrue/testOnBorrow validationQuerySELECT 1/validationQuery validationInterval3/validationInterval /configuration /definition /datasource It would be great if we can keep two separate names for embedded db configurations and external rdbms configurations. For example can we rename WSO2 MB embedded H2 Store Name to something like *WSO2_MB_EMBEDDED_STORE_DB *? Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Renaming WSO2 MB embedded H2 Store name in master-datasources.xml
Hi Akalanka/Asitha, Thanks for the help. Using the name element won't be the best method as per offline discussion with Asitha. Since there should be unique jndiConfig's in master-datasources.xml for each data source, i will search for store configuration data source in broker.xml and find the relevant jndiConfig in master-datasource. Then use those data source configurations to configure jdbc driver. Regards, On Thu, Feb 12, 2015 at 5:03 PM, Asitha Nanayakkara asi...@wso2.com wrote: Hi Pumudu What matters here is the jndiConfig name in each datasource entry. We point MB data stores (MessageStore and AndesContextStore) to relevant jndiConfig name in broker.xml. And we can't have the same jndiConfig name to two different datasource entries. Therefore there won't be an issue or relevance in having the same name or different names for datasource name Thanks, Asitha On Thu, Feb 12, 2015 at 3:29 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi Pumudu, You can rename these to any meaningful name. This name is not being used anywhere to retrieve database configurations (jndiConfig is the value which has been used to retrieve configs). Thanks, Akalanka. On Thu, Feb 12, 2015 at 2:43 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, I'm working on developing dsetup feature in MB. Since all the datasources are similarly named, it's hard to uniquely identify data source which needs to be sourced to rdbms store. For example, i need to skip following embedded H2 store configuration. !-- WSO2 MB embedded H2 Store -- datasource name*WSO2_MB_STORE_DB*/name descriptionThe datasource used for registry and user manager/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 And following mssql configurations needs to extract from xml. datasource name*WSO2_MB_STORE_DB*/name jndiConfig nameWSO2MBStoreDB/name /jndiConfig definition type=RDBMS configuration urljdbc:jtds:sqlserver://localhost:1433/wso2_mb/url usernameroot/username passwordroot/password driverClassNamenet.sourceforge.jtds.jdbc.Driver/driverClassName maxActive200/maxActive maxWait6/maxWait minIdle5/minIdle testOnBorrowtrue/testOnBorrow validationQuerySELECT 1/validationQuery validationInterval3/validationInterval /configuration /definition /datasource It would be great if we can keep two separate names for embedded db configurations and external rdbms configurations. For example can we rename WSO2 MB embedded H2 Store Name to something like *WSO2_MB_EMBEDDED_STORE_DB *? Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* -- *Asitha Nanayakkara* Software Engineer WSO2, Inc. http://wso2.com/ Mob: + 94 77 85 30 682 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB] Dsetup feature for RDBMS stores in MB
Hi All, Currently I'm working on implementing $subject[1]. I went through how Dsetup feature implemented in API Manager(APIMgtDBUtil.java). My high level plan is to implement this feature for mysql,h2,mssql,oracle databases as follows. 1. Read 'repository/conf/datasources/datasource.xml' and put those configurations into 'configuration' hashmap as key value pairs. (Ignore multiple reads of datasource.xml) 2. For each RDBMS store configuration verify if there's a corresponding sql in mb-store directory. Else skip that configuration. 3. Execute each sql with given configuration parameters. (Ignore multiple executes) Any advice/ suggestions will be helpful. [1] - https://wso2.org/jira/browse/MB-909 Regards, -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Issue on running wsdl2java.bat on Windows
Hi Irham, Did you try running command line interface as administrator ? (right click cmd icon and click on run as administrator) I think it doesn't have privileges to overwrite files. Also you can try axis2 wsdl2java.bat and see if there's something wrong with wsdl2java.bat in AS pack. Regards, On Wed, Feb 4, 2015 at 3:17 PM, Irham Iqbal iq...@wso2.com wrote: Hi, When running wsdl2java.bat on windows as shown below i am getting the following result. C:\Users\wso2\Desktop\wso2as-1\binwsdl2java.bat -uri http://192.168.1.3:9763/services/HelloService?wsdl BUILD SUCCESSFUL Total time: 7 seconds Using CARBON_HOME: C:\Users\wso2\Desktop\wso2as-1 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_23 Retrieving document at 'http://192.168.1.3:9763/services/HelloService?wsdl '. [2015-02-04 14:58:11,088] INFO {org.apache.axis2.wsdl.codegen.writer.FileWriter} - The .\src\org\wso2\www\types\HelloServiceCallbackHandler .java file cannot be overwritten. [2015-02-04 14:58:11,120] INFO {org.apache.axis2.wsdl.codegen.writer.FileWriter} - The .\src\org\wso2\www\types\HelloServiceStub.java file cannot be overwritten. But src folder is not created in bin folder. But when running the wsdl2java.sh on mac as wsdl2java.sh -uri http://192.168.1.3:9763/services/HelloService?wsdl http://192.168.1.3:9763/services/HelloService?wsdlcreates folder structure with the java classes. -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Tharindu Edirisinghe
Congratulations Tharindu..!!! :) On Sun, Feb 1, 2015 at 10:29 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Congrats tharindu On Feb 1, 2015 10:21 PM, Chamin Nalinda cha...@wso2.com wrote: Congratulations bro :) On Sun, Feb 1, 2015 at 10:19 PM, Vijitha Ekanayake vijit...@wso2.com wrote: Congratulations Tharindu !!! On Sun, Feb 1, 2015 at 10:11 PM, Buddhima Wijeweera buddh...@wso2.com wrote: Congratulations Tharindu !!! On Sun, Feb 1, 2015 at 10:10 PM, Firzhan Naqash firz...@wso2.com wrote: Congratz Tharindhu ... Regards, Firzhan On Sun, Feb 1, 2015 at 10:09 PM, Hasintha Indrajee hasin...@wso2.com wrote: Congratulations Tharindu ...!! On Sun, Feb 1, 2015 at 9:58 PM, Johann Nallathamby joh...@wso2.com wrote: Hi All, It's my pleasure to announce Tharindu Edirisinghe as a WSO2 Committer. Tharindu has been a valuable contributor for WSO2 Identity Server product, and in recognition of his contribution to WSO2, he has been voted as a WSO2 Committer. Tharindu, congratulations and keep up the good work! Thanks Regards. -- *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Buddhima Wijeweera Software Engineer; WSO2 Inc.; http://wso2.com , Mobile: +94 71 427 9966 Email: buddh...@wso2.com Blog: https://buddhimawijeweera.wordpress.com GitHub Profile: https://github.com/Buddhima ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Chamin Nalinda* Intern - Engineering WSO2 Inc. http://www.wso2.com lean.enterprise.middleware Mobile: (+94) 77 241 66 04 Linkedin: https://www.linkedin.com/in/chaminnalinda Web: http://www.ckreativity.com 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 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Gayan Gunawardana
Congratulations..!!! :) On Sun, Feb 1, 2015 at 3:24 PM, Inosh Perera ino...@wso2.com wrote: Congrats Gayan !! :) On Sun, Feb 1, 2015 at 10:39 AM, Waruna Jayaweera waru...@wso2.com wrote: Congratzz Gayan...! On Sat, Jan 31, 2015 at 9:05 PM, Hasintha Indrajee hasin...@wso2.com wrote: Congratulations Gayan!! On Sat, Jan 31, 2015 at 6:55 PM, Buddhima Wijeweera buddh...@wso2.com wrote: Congratulations Gayan!!! On Sat, Jan 31, 2015 at 6:53 PM, Tharindu Edirisinghe tharin...@wso2.com wrote: Congratulations Gayan !!! On Sat, Jan 31, 2015 at 4:43 PM, Chamin Nalinda cha...@wso2.com wrote: Congratulations !!! On Sat, Jan 31, 2015 at 4:32 PM, Prasanna Dangalla prasa...@wso2.com wrote: Congratulations Gayan On Sat, Jan 31, 2015 at 1:54 PM, Harsha Kumara hars...@wso2.com wrote: Congratulations Gayan! On Sat, Jan 31, 2015 at 1:52 PM, Johann Nallathamby joh...@wso2.com wrote: Hi All, It's my pleasure to announce Gayan Gunawardana as a WSO2 Committer . Gayan has been a valuable contributor for WSO2 Identity Server product, and in recognition of his contribution to WSO2, he has been voted as a WSO2 Committer. Gayan, congratulations and keep up the good work! Thanks Regards. -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Prasanna Dangalla Software Engineer, WSO2, Inc.; http://wso2.com/ lean.enterprise.middleware cell: +94 777 55 80 30 | +94 718 11 27 51 twitter: @prasa77 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Chamin Nalinda* Intern - Engineering WSO2 Inc. http://www.wso2.com lean.enterprise.middleware Mobile: (+94) 77 241 66 04 Linkedin: https://www.linkedin.com/in/chaminnalinda Web: http://www.ckreativity.com Blog: http://techspiro.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Tharindu Edirisinghe Software Engineer | WSO2 Inc Identity Server Team mobile : +94 775 181586 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Buddhima Wijeweera Software Engineer; WSO2 Inc.; http://wso2.com , Mobile: +94 71 427 9966 Email: buddh...@wso2.com Blog: https://buddhimawijeweera.wordpress.com GitHub Profile: https://github.com/Buddhima ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ 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 -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error, build the connector external pom
Hi Sabashan, I think there's a issue with parent pom. can you please mention the steps you followed during the process ? +1 for suhan's recommendation. and make sure you have correctly version running in CLI/terminal with mvn -version. Regards, On Fri, Jan 30, 2015 at 12:29 PM, Suhan Dharmasuriya suh...@wso2.com wrote: Hi Sabashan, It is recommended to use Apache Maven versions *3.0.* * e.g.: [1]. [1] https://docs.wso2.com/display/AM180/Installation+Prerequisites Thanks, Suhan On Fri, Jan 30, 2015 at 12:04 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Sabashan, This might be due to your java version being 1.7, try building with 1.6 version. Thank you. Regards Shiva Balachandran On Thu, Jan 29, 2015 at 5:15 PM, Sabashan Baladevan sabashan...@gmail.com wrote: Hi all, My environment is . Apache Maven *3.2.3* (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T02:28:10+05:30) Maven home: /home/sabashan/apache-maven-3.2.3 Java version: *1.7*.0_76, vendor: *Oracle Corporation* Java home: /usr/lib/jvm/java-7-oracle/jre Default locale: en_US, platform encoding: UTF-8 OS name: linux, version: 3.13.0-44-generic, arch: amd64, family: unix - I got the following error while I build the *cloud connectors' external pom * but, I have built *integration-base* pom *successfully* Error logs: org.apache.maven.project.ProjectBuildingException:* Some problems* were encountered while processing the POMs: at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:416) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:663) at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:654) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:243) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Thanks Regards, Sabashan ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Shiva Balachandran Software Engineer WSO2 Inc. Mobile - +94 774445788 Blog - https://shivabalachandran.wordpress.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Suhan Dharmasuriya Software Engineer - Test Automation *WSO2, Inc. * lean . enterprise . middleware Tel: +94 112 145345 Mob: +94 779 869138 Blog: http://suhan-opensource.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] 'Hazelcast Instance Not Active' Exception when gracefully shutting down mb server
Hi Asanka, Noted. thanks for the info. On Thu, Jan 29, 2015 at 12:35 PM, Asanka Vithanage asan...@wso2.com wrote: Hi Pumudu, I observed same issue yesterday and reported under https://wso2.org/jira/browse/MB-914 On Thu, Jan 29, 2015 at 11:02 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, I'm getting Hazelcast Instance Not Active Exception when trying to gracefully shutdown the mb 3.0.0 server. Attached here is the error log. Have anyone faced this issue before ? Following are the steps to reproduce : Built message broker 3.0.0 from git source. Run mb server instance and run few samples in MB (subscribe/publish some topics queues etc.). Try to gracefully shutdown the mb server. Note that these exceptions won't throw if there were no operations done by MB instance before shutting down. -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] 'Hazelcast Instance Not Active' Exception when gracefully shutting down mb server
Hi Sajini, Noted. thanks for the clarification. Regards, On Fri, Jan 30, 2015 at 10:32 AM, Sajini De Silva saj...@wso2.com wrote: Hi Pumudu, This error happens because when shutting down the server we remove all the subscriptions attached to it notify to other cluster nodes about subscription removal. Since hazelcast instance is not active at that movement this run time exception is thrown. Currently we are looking for a fix for this issue. Thank you, Sajini On Thu, Jan 29, 2015 at 2:19 PM, Pumudu Ruhunage pum...@wso2.com wrote: Hi Asanka, Noted. thanks for the info. On Thu, Jan 29, 2015 at 12:35 PM, Asanka Vithanage asan...@wso2.com wrote: Hi Pumudu, I observed same issue yesterday and reported under https://wso2.org/jira/browse/MB-914 On Thu, Jan 29, 2015 at 11:02 AM, Pumudu Ruhunage pum...@wso2.com wrote: Hi, I'm getting Hazelcast Instance Not Active Exception when trying to gracefully shutdown the mb 3.0.0 server. Attached here is the error log. Have anyone faced this issue before ? Following are the steps to reproduce : Built message broker 3.0.0 from git source. Run mb server instance and run few samples in MB (subscribe/publish some topics queues etc.). Try to gracefully shutdown the mb server. Note that these exceptions won't throw if there were no operations done by MB instance before shutting down. -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sajini De SIlva Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Akalanka Darshana Pagoda Arachchi
Congrats Akalanka..!!! On Mon, Jan 5, 2015 at 2:58 PM, Hasitha Amal De Silva hasit...@wso2.com wrote: Congrats Akalanka ! :) On Mon, Jan 5, 2015 at 2:51 PM, Harsha Kumara hars...@wso2.com wrote: Congratulations Akalanka! On Mon, Jan 5, 2015 at 2:47 PM, Abimaran Kugathasan abima...@wso2.com wrote: Congrats! On Mon, Jan 5, 2015 at 2:39 PM, Kalpa Welivitigoda kal...@wso2.com wrote: Congratulations Akalanka ! On Mon, Jan 5, 2015 at 2:38 PM, Pranavan Theivendram pranav...@wso2.com wrote: Congratz Akalanka :) On Mon, Jan 5, 2015 at 2:34 PM, Lasitha Wattaladeniya lasit...@wso2.com wrote: Congratulations Akalanka :) On Mon, Jan 5, 2015 at 2:32 PM, Ramith Jayasinghe ram...@wso2.com wrote: Hi Akalanka, Congratulations! It is with great pleasure that we welcome you as a WSO2 committer. Keep up the good work! regards -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lasitha Wattaladeniya Software Engineer WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +94719397528 Blog : techreadme.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Regards,* *T.Pranavan* *Software Engineering intern, WSO2* *Mobile - +94775136836 %2B94775136836* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Abimaran Kugathasan Software Engineer | WSO2 Inc Data APIs Technologies Team Mobile : +94 773922820 http://stackoverflow.com/users/515034 http://lk.linkedin.com/in/abimaran http://www.lkabimaran.blogspot.com/ https://github.com/abimaran https://twitter.com/abimaran ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Cheers, Hasitha Amal De Silva Software Engineer Mobile : 0772037426 Blog: http://devnutshell.tumblr.com/ WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. ) ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Best approach for writing integration tests for ESB connectors
Hi All, I'm working on writing integration tests for ESB Codeplex connector and I went through available connector examples. All the tests were written in single class(ConnectorIntegrationTest) so far. All mandatory parameter tests, optional parameter tests and faulty parameter tests were written in single class. Due to this integration test class getting too lengthy and not readable. Have anyone tried using parameterized test approach ( http://www.tutorialspoint.com/testng/testng_parameterized_test.htm) as a workaround to this problem? If we can introduce this approach for connector integration testing, we only need one method per proxy. By changing parameters we can develop n number of test cases for same proxy. -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev