Re: [Dev] GSoC '16 - Proposal 1

2016-03-11 Thread Sajini De Silva
Hi,

AFAIK user authentication and Mutual SSL is currently supported with IBM
MQ. For user authentication you have to give username and password in JMS
transport configuration section in axis2.xml and for mutual SSL you refer
this [1].

[1] http://sajinid.blogspot.com/

Thank you

On Fri, Mar 11, 2016 at 12:02 PM, Malaka Silva  wrote:

> Hi Danushka,
>
> Firstly integration is not straight forward. You can try generic JMS
> transport with IBM MQ. [1] and [2]
>
> Other addition is the user authentication and Mutual SSL that is currently
> not supported.
>
> [1] https://docs.wso2.com/display/ESB490/JMS+Transport
> [2] https://docs.wso2.com/display/ESB490/JMS+Inbound+Protocol
>
> On Thu, Mar 10, 2016 at 2:01 AM, Danushka Menikkumbura <
> danushka.menikkumb...@gmail.com> wrote:
>
>> Hey guys,
>>
>> Its me again.
>>
>> Would you mind sharing the issues/concerns that are there in the current
>> approach based on the JMS transport please?
>>
>> Thanks,
>> Danushka
>>
>> On Wed, Mar 2, 2016 at 12:57 AM, Malaka Silva  wrote:
>>
>>> Hi
>>> ​
>>> Danushka,
>>>
>>> Sounds good. Please proceed.
>>>
>>> -- Forwarded message --
>>> From: Danushka Menikkumbura 
>>> Date: Wed, Mar 2, 2016 at 11:07 AM
>>> Subject: GSoC '16 - Proposal 1
>>> To: mal...@wso2.com, saj...@wso2.com
>>>
>>>
>>> Hi Malaka & Sajini,
>>>
>>> I am an ex-WOS2er and Purdue CS grad student at the moment.
>>>
>>> I am planning to take part in GSoC '16 and find $SUBJECT interesting. I
>>> can go through the references given on the proposals page just to start
>>> with. Anyways please let me know what you think.
>>>
>>> Cheers,
>>> ​​
>>> Danushka
>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>> https://store.wso2.com/store/
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Puppet Modules 1.1.0 RC2

2016-03-11 Thread Sajith Kariyawasam
[X] - Go ahead and release.

Verified,
 wso2as-5.3.0 - default profile
 wso2esb-4.9.0 - default profile
 wso2bps-3.5.0 - default profile

Thanks,
Sajith


On Sat, Mar 12, 2016 at 12:25 AM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> [X] - Go ahead and release.
>
> Verified below products default profile with secure vault enabled:
>
>- AM-1.9.1, AM-1.10.0
>- AS-5.3.0
>- BPS-3.5.0
>- BRS-2.1.0, BRS-2.2.0
>- CEP-4.0.0
>- DAS-3.0.0, DAS-3.0.1
>- DSS-3.5.0
>- ES-2.0.0
>- ESB-4.9.0
>- GREG-5.1.0
>- IS-5.0.0, IS-5.1.0
>- MB-3.0.0, MB-3.1.0
>
> Thanks.
>
> On Fri, Mar 11, 2016 at 4:34 PM, Vishanth Balasubramaniam <
> vishan...@wso2.com> wrote:
>
>> Hi,
>>
>> [X] Stable - Go ahead and release
>>
>>- Tested the default profiles of all and clustering scenarios of some.
>>- wso2as
>>   - wso2am
>>   - wso2brs
>>   - wso2bps
>>   - wso2greg
>>   - wso2mb
>>- Verified Heiradata from some profiles
>>- Verified the Readme and License
>>
>> Regards,
>> Vishanth
>>
>> On Wed, Mar 9, 2016 at 12:07 PM, Chamila De Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> Please note that the voting period is 72 hours.
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Wed, Mar 9, 2016 at 10:33 AM, Chamila De Alwis 
>>> wrote:
>>>
 Hi,

 This is RC2 for WSO2 Puppet Modules 1.1.0. Please download, verify, and
 vote.

 [ ] Broken - Do not release (explain why)
 [ ] Stable - Go ahead and release

 *This release is based on the following tag:*
 https://github.com/wso2/puppet-modules/releases/tag/1.1.0-rc2

 *Release verification guide can be found at:*
 https://github.com/wso2/puppet-modules/wiki/Verifying-Puppet-Modules

 *Source and distribution packages can be downloaded at:*
 https://github.com/wso2/puppet-modules/releases/tag/1.1.0-rc2

 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Vishanth Balasubramaniam*
>> Committer & PMC Member, Apache Stratos,
>> Software Engineer, WSO2 Inc.; http://wso2.com
>>
>> mobile: *+94 77 17 377 18*
>> about me: *http://about.me/vishanth *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sajith Kariyawasam
*Committer and PMC member, Apache Stratos, *
*WSO2 Inc.; http://wso2.com *
*Mobile: 0772269575*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.5 RC1

2016-03-11 Thread Chandana Napagoda
Hi,

Verified following scenarios.
- G-Reg product level integration tests
- G-Reg getting started data population.
- Did a smoke test in GC Store and Publisher
- Enabled and Verified known test failures with kernel 4.4.4 releases.

[x] Stable - go ahead and release.

[1]. https://wso2.org/jira/browse/REGISTRY-3358

Regards,
Chandana

On Thu, Mar 10, 2016 at 6:34 PM, Niranjan Karunanandham 
wrote:

> Hi Devs,
>
> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.5.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12978
>
> Please download and test your products with kernel 4.4.5 RC1 and vote.
> Vote will be open for 72 hours or as longer as needed.
>
> ​*Source and binary distribution files:*​
>
> http://svn.wso2.org/repos/wso2/people/niranjan/Carbon-4.4.5/wso2carbon-4.4.5.zip
>
> ​*Maven staging repository:*​
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-402/
>
> ​*The tag to be voted upon:*​
> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.5-RC1
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you
> Carbon Team​
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chandana Napagoda*
Senior Software Engineer
WSO2 Inc. - http://wso2.org

*Email  :  chand...@wso2.com **Mobile : +94718169299*

*Blog  :http://cnapagoda.blogspot.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Gsoc Project proposal 21

2016-03-11 Thread Asantha Thilina
Hi tharindu,

currently i'm in the development stage of mongodb user store manager and i
implemented some modules to communicate with mongodb and i shared what i
have done so far in github[1]. can you review my code and give me a
feedback whether my approach is correct or has to be improve,  I had some
questions while i developing user store,how can i make carbon core module?
 and also how can i package osgi bundles inside jar folder i added
packaging as bundle in pom file but it's still not adding it to jar file
any idea or suggestion would be grateful.

[1].  https://github.com/asanthamax/mongodbuserstoremanager

thanks,
Best Regards,
Asantha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Puppet Modules 1.1.0 RC2

2016-03-11 Thread Thanuja Uruththirakodeeswaran
[X] - Go ahead and release.

Verified below products default profile with secure vault enabled:

   - AM-1.9.1, AM-1.10.0
   - AS-5.3.0
   - BPS-3.5.0
   - BRS-2.1.0, BRS-2.2.0
   - CEP-4.0.0
   - DAS-3.0.0, DAS-3.0.1
   - DSS-3.5.0
   - ES-2.0.0
   - ESB-4.9.0
   - GREG-5.1.0
   - IS-5.0.0, IS-5.1.0
   - MB-3.0.0, MB-3.1.0

Thanks.

On Fri, Mar 11, 2016 at 4:34 PM, Vishanth Balasubramaniam <
vishan...@wso2.com> wrote:

> Hi,
>
> [X] Stable - Go ahead and release
>
>- Tested the default profiles of all and clustering scenarios of some.
>- wso2as
>   - wso2am
>   - wso2brs
>   - wso2bps
>   - wso2greg
>   - wso2mb
>- Verified Heiradata from some profiles
>- Verified the Readme and License
>
> Regards,
> Vishanth
>
> On Wed, Mar 9, 2016 at 12:07 PM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> Please note that the voting period is 72 hours.
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Wed, Mar 9, 2016 at 10:33 AM, Chamila De Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> This is RC2 for WSO2 Puppet Modules 1.1.0. Please download, verify, and
>>> vote.
>>>
>>> [ ] Broken - Do not release (explain why)
>>> [ ] Stable - Go ahead and release
>>>
>>> *This release is based on the following tag:*
>>> https://github.com/wso2/puppet-modules/releases/tag/1.1.0-rc2
>>>
>>> *Release verification guide can be found at:*
>>> https://github.com/wso2/puppet-modules/wiki/Verifying-Puppet-Modules
>>>
>>> *Source and distribution packages can be downloaded at:*
>>> https://github.com/wso2/puppet-modules/releases/tag/1.1.0-rc2
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Vishanth Balasubramaniam*
> Committer & PMC Member, Apache Stratos,
> Software Engineer, WSO2 Inc.; http://wso2.com
>
> mobile: *+94 77 17 377 18*
> about me: *http://about.me/vishanth *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [ESB] Oauth Mediator Documentation

2016-03-11 Thread Praneesha Chandrasiri
Will check this.

Thanks Erandi and Nisrin!

On Thu, Mar 3, 2016 at 12:24 PM, Nisrin Sheriff  wrote:

> Hi Chathurika,
>
> Thank you for the information.
>
> Created a JIRA [1] to get this done.
>
> [1] https://wso2.org/jira/browse/DOCUMENTATION-3100
>
> Best Regards,
> Nisrin
>
> Nisrin Sheriff
> Senior Technical Writer
>
> *WSO2, Inc.*lean.enterprise.middleware.
> mobile: +94 776 24 84 56
> http://wso2.com
>
> On Wed, Mar 2, 2016 at 5:03 PM, Chathurika De Silva 
> wrote:
>
>> Hi
>>
>> As per the offline chat with Asela the documentation that is pointed by
>> [1] is Oauth 1.0 [2] . There seems to be no sample for Oauth 2.0 related
>> scenario. Can we get it included in the documentation?
>>
>> [1] https://docs.wso2.com/display/ESB500/OAuth+Mediator
>> [2]
>> https://docs.wso2.com/display/IS510/2-legged+OAuth+for+Securing+a+RESTful+Service
>>
>> Thank You
>> Erandi
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Techcontent Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to techcontent-group+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Visual Neural Network Builder

2016-03-11 Thread Nirmal Fernando
Hi Sajeer,

Thanks for your interest on this project. Before go into details, could you
please tell us where're you studying currently and when do you graduate?

On Fri, Mar 11, 2016 at 10:04 PM, Sajeer Ahamed 
wrote:

> sir,
> I have an interest in doing the project 'Visual Neural Network Builder'.
> I'm following an online course in Machine learning by University of
> Stanford in Cousera (www.coursera.org). I'm hoping for your support in
> GSoC 2016.
>
> -Sajeer-
>



-- 

Thanks & regards,
Nirmal

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


Re: [Dev] CEP does not accept requests after receiving a high rate of events for some time

2016-03-11 Thread Sajith Ravindra
>
> I think it's better to include some metrics in CEP to see how the CEP
> engine is behaving, especially some metrics related to Disruptor. Do we
> have such metrics in the latest CEP release?
>

Currently we don't have queue sizes as metrics in Siddhi, but we do have,
- throughput per stream
- per query latency
- per query memory consumption
as metrics in Siddhi.

I think as Mohan mentioned we can use those for identifying the hotspots.
But it's included only in CEP 4.1.0

Thanks
*,Sajith Ravindra*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/


On Fri, Mar 11, 2016 at 7:39 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> [Adding Dev and Removing Architecture]
>
> On Fri, Mar 11, 2016 at 8:08 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Hi,
>>>
>>>
>> Hi Isuru,
>>
>> Please find my comments below..
>>
>>
>>
>>> This is regarding the analytics for US Election 2016 Tweets. The ESB
>>> uses Twitter Connector to find tweets with some specific hashtags and sends
>>> the tweets as events to CEP via HTTP. The CEP version is 4.0.0.
>>>
>>> The CEP receives the events via the Tomcat HTTP Connector (port 9763).
>>> As mentioned in $subject, the CEP fails to accept requests as there are no
>>> worker threads to handle the requests.
>>>
>>> I have attached a thread dump and I analyzed it using the ThreadLogic
>>> application [1]. All 250 HTTP worker threads (http-nio-9763-exec-*) are in
>>> "PARKING" state and following is a part of stack trace in each thread.
>>>
>>> "http-nio-9763-exec-102" #810 daemon prio=5 os_prio=0
>>> tid=0x7f7678010800 nid=0x710 waiting on condition [0x7f75da48f000]
>>>*java.lang.Thread.State: WAITING (parking)*
>>> at sun.misc.Unsafe.park(Native Method)
>>> - parking to wait for  <0x0005cc6bd6a8> (a
>>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
>>> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
>>> at
>>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
>>> at
>>> java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:350)
>>>
>>>
>>>
>>>
>>> *at
>>> org.wso2.carbon.event.input.adapter.http.HTTPEventAdapter$1.rejectedExecution(HTTPEventAdapter.java:99)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369)
>>> at
>>> java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
>>> at
>>> org.wso2.carbon.event.input.adapter.http.HTTPMessageServlet.doPost(HTTPMessageServlet.java:177)*
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>>
>>>
>>> The HTTPMessageServlet submits a HTTPRequestProcessor [2] to an
>>> executor service and the executor service rejects it as the worker queue is
>>> full. However in the RejectedExecutionHandler, the task is put back to
>>> same queue [3]. Here the thread gets parked while waiting for some
>>> condition. This is why the Tomcat HTTP connector can no longer process any
>>> requests.
>>>
>>>
>> Yes, above implementation is done purposefully.. We had a requirement
>> where we need to block the HTTP requests when there is no thread (or space
>> in the queue) rather dropping the events. That is why above HTTP adapter is
>> implemented in such way.. Because of above implementation, there will not
>> be an event loss at receiver level.
>>
>>
>>> Then I checked the thread pool used in [2] and found out that all 100
>>> threads (pool-75-thread-*) in that pool are also in "PARKING" state.
>>> Following is the stack trace.
>>>
>>>
>>> "pool-75-thread-100" #758 prio=5 os_prio=0 tid=0x7f7634017800
>>> nid=0x6ba runnable [0x7f75dd8c4000]
>>> *   java.lang.Thread.State: TIMED_WAITING (parking)*
>>> at sun.misc.Unsafe.park(Native Method)
>>> at
>>> java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:338)
>>> at
>>> com.lmax.disruptor.MultiProducerSequencer.next(MultiProducerSequencer.java:136)
>>> at
>>> com.lmax.disruptor.MultiProducerSequencer.next(MultiProducerSequencer.java:105)
>>> at *com.lmax.disruptor.RingBuffer.next(RingBuffer.java:246)*
>>> at
>>> *org.wso2.siddhi.core.stream.input.SingleStreamEntryValve.send(SingleStreamEntryValve.java:74)*
>>> at
>>> org.wso2.siddhi.core.stream.input.SingleStreamEntryValve.send(SingleStreamEntryValve.java:99)
>>> at
>>> org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:49)
>>> at
>>> 

[Dev] Implementing UI for [taxonomy]

2016-03-11 Thread Lahiru J Ekanayake
Hi All,

I'm currently implementing taxonomy feature [1] . Here we have to render a
tree structure in store view .I have tried with several tree structures
while implementing taxonomy UI for store side. If we implement horizontal
or vertical tree structures  [2] with more nodes ,

   - we will have a usability issue. That is , If we have more nodes to
   render, user interface will not have enough space to render those nodes.
   Even we reduce the size dynamically, user will not able to see nodes
   clearly.
   - Another problem is , assets are rendering bellow to tree structure. So
   when tree becomes larger, we will not able to see the assets results until
   we scroll down.

So my suggestion is if we render this kind of tree structure as drop down
tree [3] , It will more user friendly. As well as if we have more nodes we
can handle it by only scrolling drop down menu.

[1] -
https://docs.google.com/a/wso2.com/document/d/1gU0KCCb595kJ0-B9ERMYmIbducZO3-4OCAGf0coZCs4/edit?usp=sharing
[2] - http://bl.ocks.org/mbostock/4339184
[3] -
 
http://www.jqueryscript.net/demo/Animated-Vertical-Accordion-Menu-with-jQuery-CSS3-mtree-js/


-- 



*Lahiru J Ekanayake**Software Engineer*
Mobile : +94 (0) 77 8812629 / +94(0) 778509547
Email : lahi...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [PET] Removing element using script mediator

2016-03-11 Thread Malaka Silva
Hi Kalyani,

You can use script mediator to do this [1].

However best I think is to add the elements as needed rather than adding
them and deleting them.

You can try the enrich mediator or script mediator again to add xml tags.
[2]

[1]
http://mrmalakasilva.blogspot.com/2014/03/how-to-remove-xml-elements-using-script.html
[2] https://docs.wso2.com/display/ESB490/Script+Mediator

On Fri, Mar 11, 2016 at 1:28 PM, Kalyani Yogeswaranathan 
wrote:

> Hi All,
>
> I'm working on Google contacts connector. For create Contact method we
> need to set the request format as,
>
> http://www.w3.org/2005/Atom;
> xmlns:gd="http://schemas.google.com/g/2005;>
> http://schemas.google.com/g/2005#kind;
>term="http://schemas.google.com/contact/2008#contact"/>
> $1
> 
> $2
> $3
> $4
> 
> http://schemas.google.com/g/2005#work;
>   primary="true"
>   address="$ctx:workEmail" displayName="E. Bennet"/>
> http://schemas.google.com/g/2005#home;
>   address="$ctx:homeEmail"/>
> http://schemas.google.com/g/2005#work;
> primary="true">$7
>  rel="http://schemas.google.com/g/2005#home;>$8
>  rel="http://schemas.google.com/g/2005#work;
> primary="true">
> $9
> $10
> $11
> $12
> $13
> $14
> 
> 
>
> Here some parameters are optional. If it is optional parameter and value
> is not set, it's not needed in the request. for example,
> givenName is optional and it's null, then request should be as,
>
> 
> $3
> $4
> 
>
> Here each element has name-space. How can I remove this kind of element from 
> payload?
>
> Any guide on this?
>
>
> --
>
> *Kalyani Yogeswaranathan*
>
> *Associate software engineer*
> *WSO2 Inc.*
>
> *Mobile: 0776390284 <0776390284>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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

https://store.wso2.com/store/

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


[Dev] Implementing REST API [Taxonomy]

2016-03-11 Thread Lahiru J Ekanayake
Hi All,

Currently i'm implementing a REST API for taxonomy feature [1] . Its need
to render a tree structure in Store view. So we are providing REST api to
generate tree structure. We are reading XML file to generate this tree
structure. After discussion we decided to have following kind of REST API.

Get root node

GET

 apis/taxa

   -

   This will return root node and its all children. (It will not return
   grandchildren of root node) with pagination


Get sub nodes

GET   apis/taxa?path=WSO2/Engineering

   - This will return all children nodes of given node. (It will not return
   grandchildren of given node) with pagination


So, when implementing this scenario , AFAIK i have two solutions to
implement this. *To retrieve all child nodes of given node,* In back end
implementation,

   - Use this REST call (apis/taxa?path=WSO2/Engineering) , Then read the
   query parameter and and convert it into correct xpath expression
   (/WSO2/Enigneering/*). Then return the results with JSON response.

   - Other way is to use (apis/taxa?path=/WSO2/Engineering/*) . In here we
   are directly allowing API user to pass the xpath. Then we create the
   generic response json object.

If we use 2nd method that is pass xpath directly, Our REST API will  more
expandable. User will have wide range of queries to use. As well as in
future implementations,  if we want to add some custom attributes to that
main XML file, we can do it without API level modification. But if we use
this, User who is using this api need to aware about xpath expressions.
However we always providing a documentation to use our apis. In
documentation we can provide general use cases.


*Question is : I don't know whether providing  xpath as parameter in REST
API is a good practice or not.*


   1.
   
https://docs.google.com/a/wso2.com/document/d/1gU0KCCb595kJ0-B9ERMYmIbducZO3-4OCAGf0coZCs4/edit?usp=sharing

Please advice.

Regards




*Lahiru J Ekanayake**Software Engineer*
Mobile : +94 (0) 77 8812629 / +94(0) 778509547
Email : lahi...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2016 - Proposal 14 Inquiry

2016-03-11 Thread yi zhang
Hi,

I'm currently working on getting familiar with the ESB system. Please let
me know if any further information about the proposal is released.

Regards,

2016-03-11 14:35 GMT+08:00 Viraj Rajaguru :

> [+dev]
>
> Hi Zhang,
>
> Thanks for your interest on above project proposal. We will get back to
> you soon with further information on this proposal.
>
> Thanks,
> Viraj.
>
> On Thu, Mar 10, 2016 at 6:35 PM,  wrote:
>
>> Dear Viraj and Nuwan,
>>
>> My name is Yi Zhang, a graduate student in Beijing University of Posts
>> and Telecommunications in China, majored in Information and Communication
>> Engineering. I have already applied for a master program in computer
>> science in the U.S. this fall.
>>
>> I am really interested in proposal on the WSO2 webpage. *Proposal
>> 14: [ESB/Tooling] Support JSON, CSV, Java, Excel and Web services formats
>> in Data Mapper tool* seems quite interesting. I am familiar with Java,
>> JSON etc. and I would like to take part in this project in GSoC2016. What’s
>> more, as I have already finished my graduate study in BUPT, I have plenty
>> of time to participate in the program.
>>
>> Now I am working on Apache Avro instructions and trying to get familiar
>> with the ESB. Please kindly give me some advices and further information on
>> how I could proceed. Looking forward to your reply.
>>
>> Best regards,
>>
>> Yi Zhang
>> Wireless Theories and Technologies Lab/WT
>> ==
>> Beijing University of Posts and Telecommunications
>> 10 XiTuCheng Road, HaiDian District
>> Beijing, CHINA (100876)
>> Tel:+86-13121927568
>>
>
>
>
> --
> Viraj Rajaguru
> Senior Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile: +94 77 3683068
>
>
>
>


-- 
Yi Zhang
Wireless Theories and Technologies Lab/WT
==
Beijing University of Posts and Telecommunications
10 XiTuCheng Road, HaiDian District
Beijing, CHINA (100876)
Tel:+86-13121927568
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we add a batch of resources to registry in one go?

2016-03-11 Thread Prabath Abeysekera
Folks,

Is $Subject possible? API doesn't say so, was just wondering if we got any
workaround.

Cheers,
Prabath
-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] CEP does not accept requests after receiving a high rate of events for some time

2016-03-11 Thread Mohanadarshan Vivekanandalingam
[Adding Dev and Removing Architecture]

On Fri, Mar 11, 2016 at 8:08 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> Hi,
>>
>>
> Hi Isuru,
>
> Please find my comments below..
>
>
>
>> This is regarding the analytics for US Election 2016 Tweets. The ESB uses
>> Twitter Connector to find tweets with some specific hashtags and sends the
>> tweets as events to CEP via HTTP. The CEP version is 4.0.0.
>>
>> The CEP receives the events via the Tomcat HTTP Connector (port 9763). As
>> mentioned in $subject, the CEP fails to accept requests as there are no
>> worker threads to handle the requests.
>>
>> I have attached a thread dump and I analyzed it using the ThreadLogic
>> application [1]. All 250 HTTP worker threads (http-nio-9763-exec-*) are in
>> "PARKING" state and following is a part of stack trace in each thread.
>>
>> "http-nio-9763-exec-102" #810 daemon prio=5 os_prio=0
>> tid=0x7f7678010800 nid=0x710 waiting on condition [0x7f75da48f000]
>>*java.lang.Thread.State: WAITING (parking)*
>> at sun.misc.Unsafe.park(Native Method)
>> - parking to wait for  <0x0005cc6bd6a8> (a
>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
>> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
>> at
>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
>> at
>> java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:350)
>>
>>
>>
>>
>> *at
>> org.wso2.carbon.event.input.adapter.http.HTTPEventAdapter$1.rejectedExecution(HTTPEventAdapter.java:99)
>> at
>> java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)
>> at
>> java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369)
>> at
>> java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
>> at
>> org.wso2.carbon.event.input.adapter.http.HTTPMessageServlet.doPost(HTTPMessageServlet.java:177)*
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>
>>
>> The HTTPMessageServlet submits a HTTPRequestProcessor [2] to an executor
>> service and the executor service rejects it as the worker queue is full.
>> However in the RejectedExecutionHandler, the task is put back to same
>> queue [3]. Here the thread gets parked while waiting for some condition.
>> This is why the Tomcat HTTP connector can no longer process any requests.
>>
>>
> Yes, above implementation is done purposefully.. We had a requirement
> where we need to block the HTTP requests when there is no thread (or space
> in the queue) rather dropping the events. That is why above HTTP adapter is
> implemented in such way.. Because of above implementation, there will not
> be an event loss at receiver level.
>
>
>> Then I checked the thread pool used in [2] and found out that all 100
>> threads (pool-75-thread-*) in that pool are also in "PARKING" state.
>> Following is the stack trace.
>>
>>
>> "pool-75-thread-100" #758 prio=5 os_prio=0 tid=0x7f7634017800
>> nid=0x6ba runnable [0x7f75dd8c4000]
>> *   java.lang.Thread.State: TIMED_WAITING (parking)*
>> at sun.misc.Unsafe.park(Native Method)
>> at
>> java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:338)
>> at
>> com.lmax.disruptor.MultiProducerSequencer.next(MultiProducerSequencer.java:136)
>> at
>> com.lmax.disruptor.MultiProducerSequencer.next(MultiProducerSequencer.java:105)
>> at *com.lmax.disruptor.RingBuffer.next(RingBuffer.java:246)*
>> at
>> *org.wso2.siddhi.core.stream.input.SingleStreamEntryValve.send(SingleStreamEntryValve.java:74)*
>> at
>> org.wso2.siddhi.core.stream.input.SingleStreamEntryValve.send(SingleStreamEntryValve.java:99)
>> at
>> org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:49)
>> at
>> org.wso2.carbon.event.processor.core.internal.listener.SiddhiInputEventDispatcher.sendEvent(SiddhiInputEventDispatcher.java:39)
>> at
>> org.wso2.carbon.event.processor.core.internal.listener.AbstractSiddhiInputEventDispatcher.consumeEvent(AbstractSiddhiInputEventDispatcher.java:92)
>> at
>> org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvent(EventJunction.java:142)
>> at
>> org.wso2.carbon.event.receiver.core.internal.management.InputEventDispatcher.onEvent(InputEventDispatcher.java:27)
>> at
>> org.wso2.carbon.event.receiver.core.internal.EventReceiver.sendEvent(EventReceiver.java:256)
>> at
>> org.wso2.carbon.event.receiver.core.internal.EventReceiver.processMappedEvent(EventReceiver.java:200)
>> at
>> org.wso2.carbon.event.receiver.core.internal.EventReceiver$MappedEventSubscription.onEvent(EventReceiver.java:307)
>> at
>> 

[Dev] Defining different policies for request and response

2016-03-11 Thread Shazni Nazir
Hi,

I'm trying to figure out a way to engage two different policies to request
and response messages of a proxy. Is there a way to to define it in the
ESB?

If that's not possible even defining two different policies for request and
response in the same policy file would also be fine.

Appreciate if someone can share an example of how to do this if it's
possible.

thanks

Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Synapse NHTTP - 202 Accepted Responses

2016-03-11 Thread pratik.pai
Hi Lakmali,

I am stuck into a similar kind of a problem as you have mentioned. Have we
managed to solve the problem(Read response from backend service in case of
202)?

Thanks,
Pratik



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Synapse-NHTTP-202-Accepted-Responses-tp77956p133186.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Complete Task using Human Task explorer

2016-03-11 Thread Lakshitha Warnakulasuriya
Thanx Vinod and Himasha.

On Fri, Mar 11, 2016 at 8:55 AM, Vinod Kavinda  wrote:

> Hi Lakshitha,
> There is a sample with ht renderings shipped with BPS,
> /repository/samples/ClaimsApprovalTaskWithHTRenderings.zip. You
> can deploy this and try or follow [1] to refer more about task rendering.
>
> [1] -
> http://milindaperera.blogspot.com/2015/10/humantask-rendering-in-wso2-business.html
>
> Regards,
> Vinod
>
> On Fri, Mar 11, 2016 at 8:37 AM, Himasha Guruge  wrote:
>
>> Hi Lakshitha,
>>
>> You can complete the task using Human Task Explorer of BPS, as long as
>> your deployed sample contains ht renderings. Explorer will not work without
>> ht renderings.
>>
>> Thanks,
>> Himasha
>>
>> On Fri, Mar 11, 2016 at 7:21 AM, Lakshitha Warnakulasuriya <
>> lakshitha...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> How to complete a task in Human Task Explorer. Is there any option to
>>> Complete the task using Human Task Explorer or Human Task Explorer is only
>>> for view the Task.
>>> Any help can be really appreciated.
>>>
>>> Thanks and Regards,
>>> Lakshitha.
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-11 Thread Sameera Wickramasekara
Hi ,
Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
Moratuwa Faculty of information Technology. Im interested in the Location
and Time-based Device policy Endorsement Project. I have good experience in
Java and Android development. and Im confident i would be able to complete
this project with your guidance.please let me know how to proceed from here.

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


Re: [Dev] [GSoC][2016] Proposal 29: [Cloud] Native Cloud Support for Running WSO2 Middleware on Apache Mesos

2016-03-11 Thread Imesh Gunaratne
Hi Milindu,

We have decided to change this project proposal, will update soon.

Thanks

On Fri, Mar 11, 2016 at 9:26 AM, Milindu Sanoj Kumarage <
agentmili...@gmail.com> wrote:

> Hi,
>
> I'm Milindu Sanoj Kumarage, an undergraduate of University of Colombo
> School of Computing doing my 4th year of Computer Science major. I'm
> interested in task "Native Cloud Support for Running WSO2 Middleware on
> Apache Mesos"
> .
> I have  worked with Docker, Kubernetes and has a good knowledge of cgroups,
> containers, pods, etc. I have a  decent knowledge on Apache Mesos and
> Marathon also. I have just started my 4th year and I am working on a
> research base on distributed computing, therefor I'm working with tools and
> technologies related to distributed computing, which I hope that will help
> me to work on this task better. I went though the given references also,  I
> like to work on this task. Please guide me through.
>
> Regards,
> Milindu
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2016-03-11 Thread Kavitha Subramaniyam
It is because the refresh_token you are using is an invalid/ expired as
Lakmali mentioned. Hope this[1] will help for more understanding.

[1] http://tools.ietf.org/html/rfc6749#page-44

Thanks,
Kavitha

On Fri, Mar 11, 2016 at 3:34 PM, Ishara Cooray  wrote:

> Thanks Lakmali.
>
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Fri, Mar 11, 2016 at 3:16 PM, Lakmali Baminiwatta 
> wrote:
>
>> This can happen if you reuse the same refresh token more than once [1].
>> Please check whether you are using the latest refresh token returned or
>> reusing a old one.
>>
>> Thanks,
>> Lakmali
>>
>> On 11 March 2016 at 14:59, Ishara Cooray  wrote:
>>
>>> Thanks Lakmali. It works!
>>>
>>> It works for the password grant type as you have pointed out.
>>> But for refresh_token grant type i get Provided Authorization Grant is
>>> invalid error.
>>>
>>>  curl -k -d
>>> "grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
>>> -H "Authorization: Basic
>>> bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh"
>>> -H "Content-Type: application/x-www-form-urlencoded"
>>> https://api.cloudstaging.wso2.com:8243/token
>>> {"error":"invalid_grant","error_description":"Provided Authorization
>>> Grant is invalid"}
>>>
>>> is there something to change here?
>>>
>>>
>>>
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> On Fri, Mar 11, 2016 at 2:30 PM, Lakmali Baminiwatta 
>>> wrote:
>>>
 Hi Ishara,

 On 11 March 2016 at 14:27, Ishara Cooray  wrote:

> Hi Malithi/Pushpalanka,
>
> I tried renewing access token by invoking TokenAPi. Below is my CURL.
>
> curl  -d
> "grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
> -H "Authorization:Basic
> bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh,
> Content-Type: application/x-www-form-urlencoded"
> https://api.cloudstaging.wso2.com:8243/token -v
>

  Headers should be sent separately as given in [1]

 [1] https://wso2.org/jira/browse/APIMANAGER-4452

 Thanks,
 Lakmali

> I get Authentication failed error from the above command and Error
> Error decoding authorization header. Space delimited "
> " format violated. was observed in the keymanager console 
> where
> we have APIM 1.10.0
> {"error":"invalid_client","error_description":"Client Authentication
> failed."}
>
> Followed the doc [1]. What could have went wrong?
>
> If i use the curl --user Client_Id:Client_Secret as pushpalanka
> suggested i get
> {"error":"invalid_grant","error_description":"Provided Authorization
> Grant is invalid"}
>
>
> Console Log:
>
>  ERROR
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
> Error while extracting credentials from authorization header
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint}
> org.wso2.carbon.identity.oauth.common.exception.OAuthClientException:
> Error decoding authorization header. Space delimited "
> " format violated.
> at
> org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.extractCredentialsFromAuthzHeader(EndpointUtil.java:152)
> at
> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:82)
> at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
> at
> 

Re: [Dev] [VOTE] Release WSO2 Puppet Modules 1.1.0 RC2

2016-03-11 Thread Vishanth Balasubramaniam
Hi,

[X] Stable - Go ahead and release

   - Tested the default profiles of all and clustering scenarios of some.
   - wso2as
  - wso2am
  - wso2brs
  - wso2bps
  - wso2greg
  - wso2mb
   - Verified Heiradata from some profiles
   - Verified the Readme and License

Regards,
Vishanth

On Wed, Mar 9, 2016 at 12:07 PM, Chamila De Alwis  wrote:

> Hi,
>
> Please note that the voting period is 72 hours.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Wed, Mar 9, 2016 at 10:33 AM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> This is RC2 for WSO2 Puppet Modules 1.1.0. Please download, verify, and
>> vote.
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable - Go ahead and release
>>
>> *This release is based on the following tag:*
>> https://github.com/wso2/puppet-modules/releases/tag/1.1.0-rc2
>>
>> *Release verification guide can be found at:*
>> https://github.com/wso2/puppet-modules/wiki/Verifying-Puppet-Modules
>>
>> *Source and distribution packages can be downloaded at:*
>> https://github.com/wso2/puppet-modules/releases/tag/1.1.0-rc2
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB500] JMS Inbound Endpoint behavior with Session Acknowledgement

2016-03-11 Thread Dilshani Subasinghe
Hi all,

Any updates on issue?

Regards,
Dilshani

On Wed, Mar 2, 2016 at 3:18 PM, Dilshani Subasinghe 
wrote:

> Hi Malaka,
>
> Thank you and will try to proceed with that in mind. Still ESB having
> different behavior rather than normal JMS Client (Even though having same
> configurations). Will check on that.
>
> Regards,
> Dilshani
>
>
> On Wed, Mar 2, 2016 at 3:08 PM, Malaka Silva  wrote:
>
>>
>>
>> On Wed, Mar 2, 2016 at 2:55 PM, Dilshani Subasinghe 
>> wrote:
>>
>>> Hi Malaka,
>>>
>>> Thank you for explanations. I checked configurations and updated
>>> accordingly. And also there is a small point to clarify.
>>>
>>> When creating JMS Client use following function to create a session:
>>>
>>> *Session session = connection.createSession(false,
>>> Session.CLIENT_ACKNOWLEDGE);*
>>>
>>> JMS Inbound Endpoint will be using following parameter:
>>>
>>>
>>>
>>> *transport.jms.SessionAcknowledgement*
>>> Do both parameters refer same function of JMS ? Do ESB having special
>>> characteristics rather than normal JMS client ?
>>>
>> ​It's same.
>>
>> protected Session createSession(Connection connection) {
>> try {
>> if (jmsSpec11) {
>> return connection.createSession(transactedSession,
>> sessionAckMode);
>> } else {
>> if
>> (this.destinationType.equals(JMSConstants.JMSDestinationType.QUEUE)) {
>> return (QueueSession) ((QueueConnection)
>> (connection)).createQueueSession(
>> transactedSession, sessionAckMode);
>> } else if
>> (this.destinationType.equals(JMSConstants.JMSDestinationType.TOPIC)) {
>> return (TopicSession) ((TopicConnection)
>> (connection)).createTopicSession(
>> transactedSession, sessionAckMode);
>> }
>> }
>> } catch (JMSException e) {
>> logger.error("JMS Exception while obtaining session for
>> factory '"
>> + this.connectionFactoryString + "' " +
>> e.getMessage());
>> }
>>
>> return null;
>> }​
>>
>>
>>>
>>> Your support is highly appreciated.
>>>
>>> Regards,
>>> Dilshani
>>>
>>>
>>> On Tue, Mar 1, 2016 at 5:58 PM, Malaka Silva  wrote:
>>>
 Hi Dilshani,

 Flow is very simple except following exceptions. Take message ->
 execute mediation (sequence) -> ack the broker.

 If you want to rollback set SET_ROLLBACK_ONLY mc property to true in
 fault sequence.

 Also in mediation flow non-blocking mediator should be used. eg:-
 callout mediator not send mediator.

 On Tue, Mar 1, 2016 at 3:34 PM, Dilshani Subasinghe 
 wrote:

> Hi Malaka,
>
> In ESB, JMS Inbound endpoint can configure Acknowledgement Type with
> "transport.jms.SessionAcknowledgement". When it set as
> "Client_Acknowledge" , What will be the behavior of ESB ? Does it behave
> like normal JMS Client which enabled "Client_Acknowledgement" ?
>
> I'm using separate JMS Client with "Client_Acknowledge" mode and using
> it to test JMSX Delivery Count. But ESB Inbound endpoint doesn't behave
> like particular JMS Client (With "Client_Acknowledge" mode).
>
> Can you explain ESB behavior within the particular scenario ?
>
> Thank you.
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94773375185
>



 --

 Best Regards,

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

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

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

>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Dilshani Subasinghe
>>> Software Engineer - QA
>>> WSO2, Inc.;http://wso2.com/
>>> 
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94773375185
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . 

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2016-03-11 Thread Ishara Cooray
Thanks Lakmali.

Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Fri, Mar 11, 2016 at 3:16 PM, Lakmali Baminiwatta 
wrote:

> This can happen if you reuse the same refresh token more than once [1].
> Please check whether you are using the latest refresh token returned or
> reusing a old one.
>
> Thanks,
> Lakmali
>
> On 11 March 2016 at 14:59, Ishara Cooray  wrote:
>
>> Thanks Lakmali. It works!
>>
>> It works for the password grant type as you have pointed out.
>> But for refresh_token grant type i get Provided Authorization Grant is
>> invalid error.
>>
>>  curl -k -d
>> "grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
>> -H "Authorization: Basic
>> bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh"
>> -H "Content-Type: application/x-www-form-urlencoded"
>> https://api.cloudstaging.wso2.com:8243/token
>> {"error":"invalid_grant","error_description":"Provided Authorization
>> Grant is invalid"}
>>
>> is there something to change here?
>>
>>
>>
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> On Fri, Mar 11, 2016 at 2:30 PM, Lakmali Baminiwatta 
>> wrote:
>>
>>> Hi Ishara,
>>>
>>> On 11 March 2016 at 14:27, Ishara Cooray  wrote:
>>>
 Hi Malithi/Pushpalanka,

 I tried renewing access token by invoking TokenAPi. Below is my CURL.

 curl  -d
 "grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
 -H "Authorization:Basic
 bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh,
 Content-Type: application/x-www-form-urlencoded"
 https://api.cloudstaging.wso2.com:8243/token -v

>>>
>>>  Headers should be sent separately as given in [1]
>>>
>>> [1] https://wso2.org/jira/browse/APIMANAGER-4452
>>>
>>> Thanks,
>>> Lakmali
>>>
 I get Authentication failed error from the above command and Error
 Error decoding authorization header. Space delimited "
 " format violated. was observed in the keymanager console where
 we have APIM 1.10.0
 {"error":"invalid_client","error_description":"Client Authentication
 failed."}

 Followed the doc [1]. What could have went wrong?

 If i use the curl --user Client_Id:Client_Secret as pushpalanka
 suggested i get
 {"error":"invalid_grant","error_description":"Provided Authorization
 Grant is invalid"}


 Console Log:

  ERROR
 {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
 Error while extracting credentials from authorization header
 {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint}
 org.wso2.carbon.identity.oauth.common.exception.OAuthClientException:
 Error decoding authorization header. Space delimited "
 " format violated.
 at
 org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.extractCredentialsFromAuthzHeader(EndpointUtil.java:152)
 at
 org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:82)
 at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
 at
 org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
 at
 org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
 at
 org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
 at
 org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
 at
 org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
 at
 

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2016-03-11 Thread Lakmali Baminiwatta
This can happen if you reuse the same refresh token more than once [1].
Please check whether you are using the latest refresh token returned or
reusing a old one.

Thanks,
Lakmali

On 11 March 2016 at 14:59, Ishara Cooray  wrote:

> Thanks Lakmali. It works!
>
> It works for the password grant type as you have pointed out.
> But for refresh_token grant type i get Provided Authorization Grant is
> invalid error.
>
>  curl -k -d
> "grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
> -H "Authorization: Basic
> bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh"
> -H "Content-Type: application/x-www-form-urlencoded"
> https://api.cloudstaging.wso2.com:8243/token
> {"error":"invalid_grant","error_description":"Provided Authorization Grant
> is invalid"}
>
> is there something to change here?
>
>
>
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Fri, Mar 11, 2016 at 2:30 PM, Lakmali Baminiwatta 
> wrote:
>
>> Hi Ishara,
>>
>> On 11 March 2016 at 14:27, Ishara Cooray  wrote:
>>
>>> Hi Malithi/Pushpalanka,
>>>
>>> I tried renewing access token by invoking TokenAPi. Below is my CURL.
>>>
>>> curl  -d
>>> "grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
>>> -H "Authorization:Basic
>>> bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh,
>>> Content-Type: application/x-www-form-urlencoded"
>>> https://api.cloudstaging.wso2.com:8243/token -v
>>>
>>
>>  Headers should be sent separately as given in [1]
>>
>> [1] https://wso2.org/jira/browse/APIMANAGER-4452
>>
>> Thanks,
>> Lakmali
>>
>>> I get Authentication failed error from the above command and Error Error
>>> decoding authorization header. Space delimited " "
>>> format violated. was observed in the keymanager console where we have APIM
>>> 1.10.0
>>> {"error":"invalid_client","error_description":"Client Authentication
>>> failed."}
>>>
>>> Followed the doc [1]. What could have went wrong?
>>>
>>> If i use the curl --user Client_Id:Client_Secret as pushpalanka
>>> suggested i get
>>> {"error":"invalid_grant","error_description":"Provided Authorization
>>> Grant is invalid"}
>>>
>>>
>>> Console Log:
>>>
>>>  ERROR
>>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>>> Error while extracting credentials from authorization header
>>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint}
>>> org.wso2.carbon.identity.oauth.common.exception.OAuthClientException:
>>> Error decoding authorization header. Space delimited "
>>> " format violated.
>>> at
>>> org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.extractCredentialsFromAuthzHeader(EndpointUtil.java:152)
>>> at
>>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:82)
>>> at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
>>> at
>>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
>>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
>>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
>>> at
>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
>>> at
>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
>>> at
>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
>>> at
>>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>>> at
>>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
>>> at
>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
>>> at
>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
>>> at
>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
>>> at
>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
>>> at
>>> 

Re: [Dev] wso2-ready-api-plugin is not building

2016-03-11 Thread Rukshan Premathunga
Hi Sagara,

here it https://github.com/SmartBear/readyapi-swagger-plugin

Thanks and Regards.

On Fri, Mar 11, 2016 at 2:58 PM, Sagara Gunathunga  wrote:

>
>
> On Fri, Mar 11, 2016 at 2:54 PM, Rukshan Premathunga 
> wrote:
>
>> Hi Sagara,
>>
>> since com.smartbear:soapui-swagger-plugin:jar:2.1.3 is not available in
>> public maven
>>
> From where I can find source code for above dependency ?
>
> Thanks !
>
>
>> , we need to build this locally. Then build the wso2-api-manager-plugins.
>>
>> Thanks and Regards.
>>
>> On Fri, Mar 11, 2016 at 2:17 PM, Sagara Gunathunga 
>> wrote:
>>
>>> I'm trying to build wso2-ready-api-plugin repo[1] but build is failing
>>> due to unavailability of some maven dependencies, can someone familiar with
>>> the codebase look into this please ?
>>>
>>> [INFO]
>>> 
>>>
>>> [INFO] Building SoapUI Action Plugin 1.0.1
>>>
>>> [INFO]
>>> 
>>>
>>> [WARNING] The POM for com.smartbear:soapui-swagger-plugin:jar:2.1.3 is
>>> missing, no dependency information available
>>>
>>> [INFO]
>>> 
>>>
>>> [INFO] BUILD FAILURE
>>>
>>> [INFO]
>>> 
>>>
>>> [INFO] Total time: 0.552 s
>>>
>>> [INFO] Finished at: 2016-03-11T14:15:38+05:30
>>>
>>> [INFO] Final Memory: 9M/245M
>>>
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal on project apiManager-plugin: Could not
>>> resolve dependencies for project org.wso2:apiManager-plugin:jar:1.0.1:
>>> Failure to find com.smartbear:soapui-swagger-plugin:jar:2.1.3 in
>>> http://www.soapui.org/repository/maven2 was cached in the local
>>> repository, resolution will not be reattempted until the update interval of
>>> soapUI Repository has elapsed or updates are forced -> [Help 1]
>>>
>>>
>>> [1] - https://github.com/wso2/wso2-api-manager-plugins
>>>
>>>
>>> Thanks !
>>> --
>>> Sagara Gunathunga
>>>
>>> Architect; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>
>
>
> --
> Sagara Gunathunga
>
> Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


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


Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2016-03-11 Thread Ishara Cooray
Thanks Lakmali. It works!

It works for the password grant type as you have pointed out.
But for refresh_token grant type i get Provided Authorization Grant is
invalid error.

 curl -k -d
"grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
-H "Authorization: Basic
bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh"
-H "Content-Type: application/x-www-form-urlencoded"
https://api.cloudstaging.wso2.com:8243/token
{"error":"invalid_grant","error_description":"Provided Authorization Grant
is invalid"}

is there something to change here?



Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Fri, Mar 11, 2016 at 2:30 PM, Lakmali Baminiwatta 
wrote:

> Hi Ishara,
>
> On 11 March 2016 at 14:27, Ishara Cooray  wrote:
>
>> Hi Malithi/Pushpalanka,
>>
>> I tried renewing access token by invoking TokenAPi. Below is my CURL.
>>
>> curl  -d
>> "grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
>> -H "Authorization:Basic
>> bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh,
>> Content-Type: application/x-www-form-urlencoded"
>> https://api.cloudstaging.wso2.com:8243/token -v
>>
>
>  Headers should be sent separately as given in [1]
>
> [1] https://wso2.org/jira/browse/APIMANAGER-4452
>
> Thanks,
> Lakmali
>
>> I get Authentication failed error from the above command and Error Error
>> decoding authorization header. Space delimited " "
>> format violated. was observed in the keymanager console where we have APIM
>> 1.10.0
>> {"error":"invalid_client","error_description":"Client Authentication
>> failed."}
>>
>> Followed the doc [1]. What could have went wrong?
>>
>> If i use the curl --user Client_Id:Client_Secret as pushpalanka suggested
>> i get
>> {"error":"invalid_grant","error_description":"Provided Authorization
>> Grant is invalid"}
>>
>>
>> Console Log:
>>
>>  ERROR
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} -
>> Error while extracting credentials from authorization header
>> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint}
>> org.wso2.carbon.identity.oauth.common.exception.OAuthClientException:
>> Error decoding authorization header. Space delimited "
>> " format violated.
>> at
>> org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.extractCredentialsFromAuthzHeader(EndpointUtil.java:152)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:82)
>> at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
>> at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
>> at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>> at
>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
>> at
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> 

Re: [Dev] wso2-ready-api-plugin is not building

2016-03-11 Thread Sagara Gunathunga
On Fri, Mar 11, 2016 at 2:54 PM, Rukshan Premathunga 
wrote:

> Hi Sagara,
>
> since com.smartbear:soapui-swagger-plugin:jar:2.1.3 is not available in
> public maven
>
>From where I can find source code for above dependency ?

Thanks !


> , we need to build this locally. Then build the wso2-api-manager-plugins.
>
> Thanks and Regards.
>
> On Fri, Mar 11, 2016 at 2:17 PM, Sagara Gunathunga 
> wrote:
>
>> I'm trying to build wso2-ready-api-plugin repo[1] but build is failing
>> due to unavailability of some maven dependencies, can someone familiar with
>> the codebase look into this please ?
>>
>> [INFO]
>> 
>>
>> [INFO] Building SoapUI Action Plugin 1.0.1
>>
>> [INFO]
>> 
>>
>> [WARNING] The POM for com.smartbear:soapui-swagger-plugin:jar:2.1.3 is
>> missing, no dependency information available
>>
>> [INFO]
>> 
>>
>> [INFO] BUILD FAILURE
>>
>> [INFO]
>> 
>>
>> [INFO] Total time: 0.552 s
>>
>> [INFO] Finished at: 2016-03-11T14:15:38+05:30
>>
>> [INFO] Final Memory: 9M/245M
>>
>> [INFO]
>> 
>> [ERROR] Failed to execute goal on project apiManager-plugin: Could not
>> resolve dependencies for project org.wso2:apiManager-plugin:jar:1.0.1:
>> Failure to find com.smartbear:soapui-swagger-plugin:jar:2.1.3 in
>> http://www.soapui.org/repository/maven2 was cached in the local
>> repository, resolution will not be reattempted until the update interval of
>> soapUI Repository has elapsed or updates are forced -> [Help 1]
>>
>>
>> [1] - https://github.com/wso2/wso2-api-manager-plugins
>>
>>
>> Thanks !
>> --
>> Sagara Gunathunga
>>
>> Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>



-- 
Sagara Gunathunga

Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2-ready-api-plugin is not building

2016-03-11 Thread Rukshan Premathunga
Hi Sagara,

since com.smartbear:soapui-swagger-plugin:jar:2.1.3 is not available in
public maven, we need to build this locally. Then build the
wso2-api-manager-plugins.

Thanks and Regards.

On Fri, Mar 11, 2016 at 2:17 PM, Sagara Gunathunga  wrote:

> I'm trying to build wso2-ready-api-plugin repo[1] but build is failing due
> to unavailability of some maven dependencies, can someone familiar with the
> codebase look into this please ?
>
> [INFO]
> 
>
> [INFO] Building SoapUI Action Plugin 1.0.1
>
> [INFO]
> 
>
> [WARNING] The POM for com.smartbear:soapui-swagger-plugin:jar:2.1.3 is
> missing, no dependency information available
>
> [INFO]
> 
>
> [INFO] BUILD FAILURE
>
> [INFO]
> 
>
> [INFO] Total time: 0.552 s
>
> [INFO] Finished at: 2016-03-11T14:15:38+05:30
>
> [INFO] Final Memory: 9M/245M
>
> [INFO]
> 
> [ERROR] Failed to execute goal on project apiManager-plugin: Could not
> resolve dependencies for project org.wso2:apiManager-plugin:jar:1.0.1:
> Failure to find com.smartbear:soapui-swagger-plugin:jar:2.1.3 in
> http://www.soapui.org/repository/maven2 was cached in the local
> repository, resolution will not be reattempted until the update interval of
> soapUI Repository has elapsed or updates are forced -> [Help 1]
>
>
> [1] - https://github.com/wso2/wso2-api-manager-plugins
>
>
> Thanks !
> --
> Sagara Gunathunga
>
> Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2016-03-11 Thread Lakmali Baminiwatta
Hi Ishara,

On 11 March 2016 at 14:27, Ishara Cooray  wrote:

> Hi Malithi/Pushpalanka,
>
> I tried renewing access token by invoking TokenAPi. Below is my CURL.
>
> curl  -d
> "grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
> -H "Authorization:Basic
> bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh,
> Content-Type: application/x-www-form-urlencoded"
> https://api.cloudstaging.wso2.com:8243/token -v
>

 Headers should be sent separately as given in [1]

[1] https://wso2.org/jira/browse/APIMANAGER-4452

Thanks,
Lakmali

> I get Authentication failed error from the above command and Error Error
> decoding authorization header. Space delimited " "
> format violated. was observed in the keymanager console where we have APIM
> 1.10.0
> {"error":"invalid_client","error_description":"Client Authentication
> failed."}
>
> Followed the doc [1]. What could have went wrong?
>
> If i use the curl --user Client_Id:Client_Secret as pushpalanka suggested
> i get
> {"error":"invalid_grant","error_description":"Provided Authorization Grant
> is invalid"}
>
>
> Console Log:
>
>  ERROR {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint}
> -  Error while extracting credentials from authorization header
> {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint}
> org.wso2.carbon.identity.oauth.common.exception.OAuthClientException:
> Error decoding authorization header. Space delimited "
> " format violated.
> at
> org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.extractCredentialsFromAuthzHeader(EndpointUtil.java:152)
> at
> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:82)
> at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> 

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2016-03-11 Thread Ishara Cooray
Hi Malithi/Pushpalanka,

I tried renewing access token by invoking TokenAPi. Below is my CURL.

curl  -d
"grant_type=refresh_token_token=87c4145a25f2e72d6d51edce3362f382=PRODUCTION"
-H "Authorization:Basic
bTlKZ2dkaXhGOGs3Y09jS1lLcW5ZQU16Q2lBYTphS19meWRraVlmS3k3VXlicEZkMU53eF81WkFh,
Content-Type: application/x-www-form-urlencoded"
https://api.cloudstaging.wso2.com:8243/token -v

I get Authentication failed error from the above command and Error Error
decoding authorization header. Space delimited " "
format violated. was observed in the keymanager console where we have APIM
1.10.0
{"error":"invalid_client","error_description":"Client Authentication
failed."}

Followed the doc [1]. What could have went wrong?

If i use the curl --user Client_Id:Client_Secret as pushpalanka suggested i
get
{"error":"invalid_grant","error_description":"Provided Authorization Grant
is invalid"}


Console Log:

 ERROR {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint}
-  Error while extracting credentials from authorization header
{org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint}
org.wso2.carbon.identity.oauth.common.exception.OAuthClientException: Error
decoding authorization header. Space delimited " "
format violated.
at
org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.extractCredentialsFromAuthzHeader(EndpointUtil.java:152)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:82)
at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at

[Dev] wso2-ready-api-plugin is not building

2016-03-11 Thread Sagara Gunathunga
I'm trying to build wso2-ready-api-plugin repo[1] but build is failing due
to unavailability of some maven dependencies, can someone familiar with the
codebase look into this please ?

[INFO]


[INFO] Building SoapUI Action Plugin 1.0.1

[INFO]


[WARNING] The POM for com.smartbear:soapui-swagger-plugin:jar:2.1.3 is
missing, no dependency information available

[INFO]


[INFO] BUILD FAILURE

[INFO]


[INFO] Total time: 0.552 s

[INFO] Finished at: 2016-03-11T14:15:38+05:30

[INFO] Final Memory: 9M/245M

[INFO]

[ERROR] Failed to execute goal on project apiManager-plugin: Could not
resolve dependencies for project org.wso2:apiManager-plugin:jar:1.0.1:
Failure to find com.smartbear:soapui-swagger-plugin:jar:2.1.3 in
http://www.soapui.org/repository/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of soapUI
Repository has elapsed or updates are forced -> [Help 1]


[1] - https://github.com/wso2/wso2-api-manager-plugins


Thanks !
-- 
Sagara Gunathunga

Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API Requirements for IoT Snapshot Dashboard

2016-03-11 Thread Grainier Perera
Hi all,

I'm in the process of implementing the first phase of IoT Snapshot
Dashboard. So far I have managed to create generic bar (both vertical &
horizontal), stack charts (with inter gadget communication) and a LeafletJS
based OSM map gadget to be used with the IoT Snapshot Dashboard.

However, there ain't any API to get required data to populate gadgets. [1]
describes the API requirements for the IoT Snapshot Dashboard. Furthermore,
as per offline discussion had with DilanA, we decided to use following
request/response structure and implement the required APIs.

WDYT?

i.e. : all security concerns for the given filters.
*Request:*

> POST /iot-analytics/securityConcerns
> {
> "filters": [
> {
> "filter": "platform",
> "selections" : ["Android", "iOS"]
> },
> {
> "filter": "ownership",
> "selections" : ["BYOD"]
> }
> ],
> }


*Response:*

> {
> "status": "success",
> "message": null,
>   "data": {
> [
>{
>"filter_id":"non-compliant",
>"name":"Non Compliant Devices",
>"count":12
>},
>{
>"filter_id":"unmonitored",
>"name":"Unmonitored Devices",
>"count":15
>}
> ]
>   },
> }



[1]
https://docs.google.com/a/wso2.com/spreadsheets/d/1EjGCgMvo8Hgi8HQC9AjHxKVdfYYYMwwQ9Rxugk7lwIE/edit?usp=sharing

Regards,
-- 
Grainier Perera
Software Engineer
Mobile : +94716122384
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Introducing a model generator for DataMapper

2016-03-11 Thread Awanthika Senarath
Please find the component diagram attached,

​
 Data Mapper Tool Workflow

​

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Fri, Mar 11, 2016 at 12:09 PM, Awanthika Senarath 
wrote:

>
> Please find the modified class diagram attached,
>
> ​
>  Schema Generator - Factory Implementation - Cla...
> 
> ​
>
>>

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