Re: [Dev] [Internal] Ask About Javascript Problem

2019-01-16 Thread Vinod Kavinda
[Adding dev group]
Hi Putro,
I'm forwarding this mail to WSO2 Developers' (d...@wso2.com) mail group.
Please report dev related issues to this group in the future.

Thanks,
Vinod

On Mon, Jan 14, 2019 at 2:29 PM Putro Sasono Adi Nugroho <
putro.nugr...@sigma.co.id> wrote:

> Hi,
>
> Yes we are using WSO2 APIM 2.0.0 as mentioned below..
>
>
>
>
>
> *Regards,*
>
>
>
> Putro Sasono Adi Nugroho | BSS Telkomsigma
>
>
>
> [image: Capture]
>
>
>
> *From:* Nadeeshani Pathirennehelage 
> *Sent:* Senin, 14 Januari 2019 14.35
> *To:* Putro Sasono Adi Nugroho 
> *Cc:* Security ; hafiez.raha...@sigma.co.id
> *Subject:* Re: [Internal] Ask About Javascript Problem
>
>
>
> Hi Putro,
>
> According to the initial details, we believe that you use WSO2 APIM 2.0.0.
> If not please let us know the products and their versions that you
> currently use.
>
>
>
> Thank You,
>
> Nadeeshani.
>
>
>
> On Mon, Jan 14, 2019 at 12:43 PM Nadeeshani Pathirennehelage <
> nadeesha...@wso2.com> wrote:
>
> Hi Putro,
>
>
>
> We are currently checking on this. We'll get back to you soon.
>
>
>
> Thank You,
>
> Nadeeshani.
>
>
>
> On Mon, Jan 14, 2019 at 10:32 AM Putro Sasono Adi Nugroho <
> putro.nugr...@sigma.co.id> wrote:
>
> Hi WSO2 Team,
>
>
>
> We want to ask a question,
>
> We want to upgrade our jquery version but we got this error:
>
>
>
>
>
> Currently we are using :
>
>- WSO2 version 2.0.0
>- Red Hat Enterprise Linux Server release 6.10 (Santiago)
>
>
>
> Thanks in Advance,
>
>
>
> *Regards,*
>
>
>
> Putro Sasono Adi Nugroho | BSS Telkomsigma
>
>
>
> [image: Capture]
>
>
>
>
>
> --
>
> Pathirennehelage Nadeeshani
>
> Software Engineer | WSO2 Inc.
>
> Platform Security Team
>
> mobile : +94 716545223
>
>
>
>
>
> --
>
> Pathirennehelage Nadeeshani
>
> Software Engineer | WSO2 Inc.
>
> Platform Security Team
>
> mobile : +94 716545223
>
>
>


-- 

*Vinod Kavinda* | Associate Technical Lead | WSO2 Inc.

(m) +94 (0) 712 415544 | (e) vi...@wso2.com
<https://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPMN-Explorer can not accessible for tenant

2018-08-03 Thread Vinod Kavinda
Hi Kavitha,
Did that solved all the issues you encountered?
Just curious!

/Vinod

On Fri, Aug 3, 2018 at 2:08 PM Kavitha Subramaniyam 
wrote:

> Hi,
>
> This issue occurred because the bpmn-explorer has been copied to '
> business-process/repository/deployment/server/jaggeryapps/' after tenant
> modification, according to doc description in [1].
> But it should be copied to '
> business-process/repository/tenants//jaggeryapps/' instead.
>
> Thanks Milinda to find this.
>
> @Praneesha, please update the doc[1] accordingly?
>
> [1] https://docs.wso2.com/display/EI610/Using+the+BPMN+Explorer
>
>
>
>
> On Fri, Aug 3, 2018 at 1:34 PM, Milinda Perera  wrote:
>
>> Hi Kavitha
>>
>> On Fri, Aug 3, 2018 at 11:57 AM, Kavitha Subramaniyam 
>> wrote:
>>
>>> Hi Vinod/Milinda,
>>>
>>> For the login issue, please check whether the user "kavi...@test.com"
>>>> has the login permission.
>>>>
>>> Issue I faced is, accessing tenant's bpmn explorer is not working after
>>> done configurations.
>>> URL : https://localhost:9445/t/test.com/jaggeryapps/bpmn-explorer/
>>>
>>>
>>> Note that I need to test for tenant admin user, so I believe no need to
>>> update the permissions for tenant admin like as super admin user can log in.
>>>
>>
>> Do you see any error logs in the console?
>>
>> Thanks,
>> Milinda
>>
>> --
>> Milinda Perera
>> Senior Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>

-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544 
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPMN-Explorer can not accessible for tenant

2018-08-02 Thread Vinod Kavinda
Hi Kavitha,
I and Milinda had a look at this issue.
For the login issue, please check whether the user "kavi...@test.com" has
the login permission.

For the second query, you are sending your request to the super tenant
domain with a tenant user id. If you send the request to the "test.com"
tenant URL, it will give the correct response.

Actually, this request should have resulted in an authentication failure.
But in the code level, we have not considered the tenant domain in the
request URL. It's better to improve this authentication logic. Please
report an issue for tracking.

Thanks,
Vinod

On Fri, Aug 3, 2018 at 9:01 AM Kavitha Subramaniyam 
wrote:

> Yes, done all 5 steps from this section.
>
> On Fri, Aug 3, 2018 at 6:30 AM, Milinda Perera  wrote:
>
>> Hi Kavitha,
>>
>> Did you follow "Configuring BPMN Explorer for a tenant account" step in
>> [1] ?
>>
>> [1] https://docs.wso2.com/display/EI610/Using+the+BPMN+Explorer
>>
>> Thanks,
>> Milinda
>>
>> On Thu, Aug 2, 2018 at 6:58 PM, Kavitha Subramaniyam 
>> wrote:
>>
>>> Hi all,
>>>
>>> Using EI-6.1.1-business-profile.
>>>
>>> 1. Access the explorer for tenant after configured according to [1], and
>>> using the url "
>>> https://localhost:9445/t/test.com/jaggeryapps/bpmn-explorer/"; is not
>>> working. Getting 405.
>>>
>>> Anything more needs to be configured?
>>>
>>>
>>> 2. Rest request for tenant user is not valid. Rest API doc[2] doesn't
>>> have any details on that.
>>> e.g.
>>>
>>>
>>>
>>>
>>>
>>> Appreciate any input on this..
>>>
>>> [1]
>>> https://docs.wso2.com/display/EI611/Managing+BPMN+Artifacts#ManagingBPMNArtifacts-ManagingBPMNartifactsusingtheBPMNExplorer
>>>
>>> [2] https://docs.wso2.com/display/EI611/BPMN+REST+API
>>>
>>> Thanks,
>>> Kavitha
>>>
>>>
>>>
>>
>>
>> --
>> Milinda Perera
>> Senior Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>

-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544 
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it possible to commit in database using dataservice in batches of certain number of records , instead of commiting all records at once? please guide.

2018-07-15 Thread Vinod Kavinda
Hi,
Please follow the following documentation and posts. It explains how to do
batch processing in data services.

[1] - https://docs.wso2.com/display/EI620/Batch+Processing+Sample
[2] - https://dzone.com/articles/wso2-dss-batch-insert-sample

Thanks,
Vinod

On Thu, Jul 12, 2018 at 8:56 PM vikram nayak  wrote:

> Hi Sir,
>
> Suppose I have 5 records to be commited to a database using wso2 batch
> option in dataservice.
>
> Is it possible to commit records in batch of 500 at a time , instead of
> committing all 5 records at a time, using wso2 dataservice.
>
> With Regards,
> Vikram
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544 
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] dataservice wso2 create generate response

2018-07-11 Thread Vinod Kavinda
Hi Robson,
As the error says, DSS was unable to generate the required output mappings.
This may happen for complex queries. You will have to add the output
mappings manually to overcome this issue.

Looping in @Madhawa Gunasekara  as well to provide more
insights.

Thanks,
Vinod

On Wed, Jul 11, 2018 at 7:53 PM Robson Duarte 
wrote:

> I would like to create a dataservice in wso2 with a query with? How to
> make? the query would be this:
>
> with servicos as (
> select cast(tec_servico as text) || '-' || ser_nome as servico,
>ser_metodo as metodo,
>coalesce(tec_vl_maximo, 0) as maximo,
>teh_tipo as origem,
>case when teh_dia_semana = 4410 then 0
> when teh_dia_semana = 4404 then 1
> when teh_dia_semana = 4405 then 2
> when teh_dia_semana = 4406 then 3
> when teh_dia_semana = 4407 then 4
> when teh_dia_semana = 4408 then 5
> when teh_dia_semana = 4409 then 6 end as dia,
>teh_hora_inicial_am as hora_inicial_am,
>teh_hora_final_am as hora_final_am,
>teh_hora_inicial_pm as hora_inicial_pm,
>teh_hora_final_pm as hora_final_pm
>   from tb_gcc_ted_configuracao
>   join tb_gfc_servico on (tec_servico = ser_cod_serial)
>   join tb_gcc_ted_horario on (teh_servico = tec_servico)
>   join tb_gen_registro on (reg_id_registro = teh_tipo)
>  where reg_cod_registro = :origem
>and (tec_vl_maximo is null
> or tec_vl_maximo > :valorLancamento)
> )
>
> select metodo
>   from servicos
>  where dia = extract(dow from current_date)
>and (current_time between hora_inicial_am and hora_final_am
> or current_time between hora_inicial_pm and hora_final_pm)
>  order by metodo
>  limit 1
>
> and gives the error below:
>
> SQL query is not applicable to automate the response
>
>
> how can i do for wso2 to recognize?
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544 
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] No active transaction. Require an active transaction WSO2 carbon

2018-07-11 Thread Vinod Kavinda
Hi,
Please share the synapse configuration or carbon application you used when
encountering this issue. From the logs, I assume you are using Wso2 EI and
try to use a transaction mediator.

What is the EI version you are using?

Also, some more contextual information on your use case and what you have
tried will be nice to understand the issue and come up with a solution.

Thanks,
Vinod

On Wed, Jul 11, 2018 at 10:42 PM Robson Duarte 
wrote:

>
> Upload the error log that I am encountering and I can not resolve it, it
> is trying not to insert any database and I am opening a graph before. Could
> they help us?
>
> [2018-06-19 11:48:37,484] [EI-Core] INFO - LogMediator text2 = **
> Provisionando o valor do lancamento ** [2018-06-19 11:48:37,491] [EI-Core]
> INFO - LogMediator text = ** Fluxo de falha ** [2018-06-19 11:48:37,492]
> [EI-Core] INFO - LogMediator text = An unexpected error occured, message =
> No active transaction. Require an active transaction, errordetail =
> org.apache.synapse.SynapseException: No active transaction. Require an
> active transaction at
> org.apache.synapse.mediators.transaction.TransactionMediator.mediate(TransactionMediator.java:157)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:214)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:260)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:775)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:282)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:554)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:262)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748) , errorexception = [2018-06-19
> 11:48:37,492] [EI-Core] WARN - TranscationManger ROLLBACK Some How TX null
>
>
>
> *Atenciosamente*
> *Robson Duarte.*
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544 
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 Enterprise Integrator 6.3.0 RC2

2018-06-18 Thread Vinod Kavinda
>>>>>>> Hi All,
>>>>>>>
>>>>>>> Did basic tests of all artifact types in both Integrator and Micro
>>>>>>> Integrator profiles using artifacts created from EI Tooling.
>>>>>>>
>>>>>>> [+] Stable - go ahead and release
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Jun 16, 2018 at 12:07 PM Thishani Lucas 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi All,
>>>>>>>>
>>>>>>>> Tested the following in both ESB profile and Micro Integrator
>>>>>>>> profile.
>>>>>>>>
>>>>>>>>- Store and forward with scheduled forwarding processor and JMS
>>>>>>>>message store in the Broker profile.
>>>>>>>>- Sampling message processor.
>>>>>>>>- JMS inbound endpoint.
>>>>>>>>- File inbound endpoint (vfs).
>>>>>>>>- Mail-To transport using a listener proxy.
>>>>>>>>- Constructing and sending multipart form data.
>>>>>>>>- Publishing stats to the Analytics profile.
>>>>>>>>- Basic functionalities of some mediators and endpoints.
>>>>>>>>
>>>>>>>> [+] Stable - Go ahead and release.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Thishani
>>>>>>>>
>>>>>>>> On Sat, Jun 16, 2018 at 11:46 AM Lahiru Madushanka <
>>>>>>>> lahirum...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> Tested the following
>>>>>>>>>
>>>>>>>>> Ubuntu Windows
>>>>>>>>> Test EI micro-integrator EI + MI
>>>>>>>>> JMS inbound endpoint ✓ ✓ ✓
>>>>>>>>> JMS listener proxy ✓ ✓ ✓
>>>>>>>>> JMS publisher proxy ✓ ✓ ✓
>>>>>>>>> JMS message Store ✓ ✓ ✓
>>>>>>>>> JMS transaction and rollback ✓ ✓
>>>>>>>>> Message sampling processor ✓ ✓ ✓
>>>>>>>>> Class mediator ✓ ✓ ✓
>>>>>>>>> Data Mapper mediator (using CAPP) ✓ ✓
>>>>>>>>>
>>>>>>>>> Smoke test management console of all profiles in windows
>>>>>>>>> ✓
>>>>>>>>> [+] Stable - go ahead and release
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Lahiru
>>>>>>>>>
>>>>>>>>> On Sat, Jun 16, 2018 at 1:11 AM Malaka Gangananda <
>>>>>>>>> mala...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi All,
>>>>>>>>>>
>>>>>>>>>> We are pleased to announce the second release candidate of WSO2
>>>>>>>>>> Enterprise Integrator 6.3.0.
>>>>>>>>>>
>>>>>>>>>> Known issues: https://github.com/wso2/product-ei/issues
>>>>>>>>>>
>>>>>>>>>> Source and binary distribution files:
>>>>>>>>>> https://github.com/wso2/product-ei/releases/tag/v6.3.0-rc2
>>>>>>>>>>
>>>>>>>>>> The tag to be voted upon:
>>>>>>>>>> https://github.com/wso2/product-ei/tree/v6.3.0-rc2
>>>>>>>>>>
>>>>>>>>>> Please vote as follows:
>>>>>>>>>> [+] Stable - go ahead and release
>>>>>>>>>> [-] Broken - do not release (explain why)
>>>>>>>>>>
>>>>>>>>>> ~The WSO2 Integration Team~
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Malaka.
>>>>>>>>>> --
>>>>>>>>>> Malaka Gangananda - Software E

Re: [Dev] Install CXF Feature on WSO2 EI 6.1.0

2018-04-22 Thread Vinod Kavinda
Hi,
Found this article[1] on publishing a CXF WS in Wso2 products. This is a
bit old content, but the semantics should be same for EI as well.

[1] -
https://wso2.com/library/articles/2012/10/develop-cxf-based-jaxws-wso2-developer-studio/

Thanks,
Vinod

On Sat, Apr 21, 2018 at 7:39 AM, Júnior  wrote:

> I am trying to install the CXF Reliable messaging, but it is failing.
>
> I am using the pom.xml, with this feature:
>
> 
> 
>   org.wso2.carbon.inbound.endpoints.ext.wsrm
>   4.6.6
> 
>   
>
> But it is failing. The error says:
>
> Installation failed.The installable unit 
> org.wso2.carbon.inbound.endpoints.ext.wsrm/4.6.6
> has not been found.
>
> Do you know what is the feature id and version for this?
>
> I am using EI 610.
>
> Thanks,
>
> 2018-04-20 12:30 GMT-03:00 Júnior :
>
>> I tried adding the cxf bundle and I am receiving this error while using
>> the jaxws client:
>>
>> *Caused by: javax.xml.soap.SOAPException: Unable to create message
>> factory for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not
>> found*
>>
>> Is there any documented way to fix this?
>>
>> Thanks,
>>
>> 2018-04-20 10:16 GMT-03:00 Júnior :
>>
>>> Hi Everyone,
>>>
>>> Would you have by any chance a step-by-step guide on how to install the
>>> cxf feature in wso2?
>>>
>>> I need to use a library that uses jaxws client to invoke a web service.
>>> I tried so hard to add the cxf bundle but it doesn't work.
>>>
>>> Would installing the cxf feature give me the ability to use cxf to
>>> invoke web services from inside EI?
>>>
>>> Thanks,
>>> --
>>> Francisco Ribeiro
>>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>>
>>
>>
>>
>> --
>> Francisco Ribeiro
>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>
>
>
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Address endpoint and 404 code

2018-03-21 Thread Vinod Kavinda
Hi Thomas,
How about including your third step in a separate sequence and invoking it
from the fault sequence when it is triggered?

Thanks,
Vinod.

On Wed, Mar 21, 2018 at 8:05 PM, Himasha Guruge  wrote:

> Hi Thomas,
> Could you elaborate on following.
> " And because the second step can be invoked in many contexts, I can't
> just customize the fault sequence to invoke the third step."
>
> How about using switch mediator in fault sequence (for error_code
> property) and based on that, invoke the third step?
>
> Thanks,
> Himasha
>
> On Tue, Mar 20, 2018 at 8:43 PM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello,
>>
>> I have a situation where I want to retrieve data from two sources. So,
>> the client sends a request to a specific resource of an ESB API and the
>> sequence follows like this :
>>
>> - retrieve the data from the local source
>> - retrieve a corresponding id for the other source
>> - if the correspondence exists, retrieve the data from the other source
>>
>> In the second step, I call a little REST web service which returns a 404
>> when the correspondence does not exists. The call is implemented by using a
>> Address mediator, like this:
>>
>> 
>> 
>> 
>> 
>> 
>>
>> Of course, as you can see, the "getCorrespondenceUrl" is built just
>> before thanks to registry parameters. My problem is the Address endpoint
>> takes the 404 code as an error and just stop the sequence:
>>
>> TID: [-1234] [] [2018-03-20 15:48:45,114]  INFO {
>> org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaGet to
>> url[http://blablabla/find/my/correspondence] {
>> org.apache.axis2.transport.http.HTTPSender}
>> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
>>
>> So, I tried to use a fault sequence by setting the onError attribute:
>>
>> > onError="getCorrespondenceFaultSequence"
>> trace="disable" xmlns="http://ws.apache.org/ns/synapse";>
>> 
>>
>> However, once this sequence is triggered, there is no turning back to the
>> third step. And because the second step can be invoked in many contexts, I
>> can't just customize the fault sequence to invoke the third step.
>>
>> So, is there a way to tell the mediator that 404 is no big deal?
>>
>> Regards,
>>
>> Thomas
>>
>>
>>
>>
>>
>> _______
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> Senior Software Engineer
> WS*O2* *Inc.*
> Mobile: +94 777459299 <+94%2077%20745%209299>
> himas...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Throttling Policy in a JMS Listener

2018-03-15 Thread Vinod Kavinda
Hi,
Yes, the throttle mediator relies on the REMOTE_ADDR property. If you just
need to limit the number of messages allowed, this solution will work. The
throttle mediator will see like all the messages coming from the same IP. I
do not see any issue in that in your use-case.

Thanks,
Vinod

On Thu, Mar 15, 2018 at 7:28 PM, Júnior  wrote:

> Hi,
>
> As I could see, the throttle mediator relies on the remote domain and ip
> to work.
> So, after adding this property before the throttle mediator, it started
> working for JMS as well.
>
> 
>
> Is it a bad practice? Is that a recommended approach?
>
> Thanks,
>
> 2018-03-14 18:36 GMT-03:00 Júnior :
>
>> Hi,
>>
>> I am trying to use the Throttle mediator in a proxy that is listening to
>> a JMS Queue.
>>
>> I would to limit the number of messages it process in a time interval.
>> And the rejected ones would be stored in a messageStore to be processed
>> later.
>>
>> When consuming the messages from queue, it seems the policy is not
>> activated but when I call the proxy from SOAPUI, I see the policy working.
>>
>> Does this work for a jms listener?
>>
>> Follow my policy:
>>
>> 
>> 
>> > xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"; xmlns:wsu="
>> http://docs.oasis-open.org/wss/2004/01/oasis-2004
>> 01-wss-wssecurity-utility-1.0.xsd">
>> > xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle";>
>> > ess>2
>> 
>> other> ttle:ID>
>> 
>> 
>> 
>> 5> ttle:MaximumCount>
>> 1> ttle:UnitTime>
>> > wsp:Optional="true">2000
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> > type="STRING" value="true"/>
>> > type="STRING" value="true"/>
>> http://localhost:8280/services/ChannelAQ"/>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> Thanks,
>> --
>> Francisco Ribeiro
>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>
>
>
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Access to the WSO2 BPS registry from a Activiti TaskListener

2018-03-14 Thread Vinod Kavinda
Hi Thomas,
Inside the listener, you do not have the direct assess to the registry. You
will have to write a Wso2 registry client in order to access the registry
resources. Look for different types of clients you can implement. [1] is
one such sample.

[1] - https://docs.wso2.com/display/Governance460/WS-API+Sample

Thanks,
Vinod

On Thu, Mar 8, 2018 at 8:42 PM, Thomas LEGRAND  wrote:

> Hello,
>
> I implemented a TaskListener used by some user task in my process when
> they are completed. However, I need to access to some configuration
> properties that I would like to add in the BPS registry. Is there a way to
> access to the registry from a TaskListener?
>
> Regards,
>
> Thomas
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPS identity link creation via REST API - bug?

2018-03-05 Thread Vinod Kavinda
Hi Thomas,
It is the same thing we are referring hear even though they have different
names. Please use the 'user' when you use the Wso2 APIs.

Thanks,
Vinod

On Mon, Mar 5, 2018 at 8:20 PM, Thomas LEGRAND  wrote:

> Hello,
>
> I noticed there is an incompatibility between the official Activiti
> documentation [1] and the implementation of the REST API [2] & [3] made by
> WSO2 concerning the identity link creation.
>
> To create an identity link, it is officially required to send an object
> with the attribute "userId" and not "user" as defined in the WSO2
> implementation. Is it a bug?
>
> [1] https://www.activiti.org/userguide/#_create_an_identity_link_on_a_task
> [2] https://github.com/wso2/carbon-business-process/blob/
> 3e7f9d53e4e3554a1bec20f79995a856c4c24f19/components/bpmn/
> org.wso2.carbon.bpmn.rest/src/main/java/org/wso2/carbon/
> bpmn/rest/model/common/RestIdentityLink.java
> [3] https://github.com/wso2/carbon-business-process/blob/
> master/components/bpmn/org.wso2.carbon.bpmn.rest/src/
> main/java/org/wso2/carbon/bpmn/rest/service/runtime/
> WorkflowTaskService.java
>
> Regards,
>
> Thomas
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB plain/text

2018-02-04 Thread Vinod Kavinda
Hi Melodias,
You need to create a SOAP envelope inside your sequence and inject the
text/plain message into it. Refer [1], it has used a script mediator to
transfer a text/plain message into a SOAP envelope for JMS transport.

[1] -
https://docs.wso2.com/display/ESB490/Sample+252%3A+Pure+Text+%28Binary%29+and+POX+Message+Support+with+JMS

Thanks,
Vinod

On Fri, Feb 2, 2018 at 3:32 PM, Melodias  wrote:

> Hi
> Using ESB I got response with text/plain without soap envelope, it's just
> simple text. How I can convert this to soap envelope? When I try change
> message type to text/xml I got error.
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
> Development-f3.html
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MTOM Attachment to secured Proxy

2018-02-04 Thread Vinod Kavinda
ev.sgai.csic.es/alfresco/cmisws/cmis?msg"/>
>>>>   >>> key="conf:/RegistryResources/Endpoints/Alfresco/schemas/cmis_core"
>>>>
>>>> location="https://alf2.dev.sgai.csic.es/alfresco/cmisws/cmis?core"/>
>>>>
>>>>scenario2
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>> This is my sec policy: (notice thats it´s SigOnly policy)
>>>>
>>>> >>> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
>>>> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-
>>>> 200401-wss-wssecurity-utility-1.0.xsd">
>>>> >>> xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/
>>>> optimizedmimeserialization">
>>>> 
>>>> 
>>>> >>> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>>>> 
>>>> 
>>>> 
>>>> >>> sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/
>>>> IncludeToken/AlwaysToRecipient">
>>>> 
>>>> 
>>>> 
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> >>> sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/
>>>> IncludeToken/Never">
>>>> 
>>>> 
>>>> 
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> >>> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> >>> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> >>> xmlns:rampart="http://ws.apache.org/rampart/policy";>
>>>> 
>>>> 
>>>> //xenc:EncryptedData/xenc:CipherData/
>>>> xenc:CipherValue
>>>> 
>>>> 
>>>> >>> uri="http://www.w3.org/2001/04/xmlenc#";>
>>>> 
>>>> 
>>>> wso2carbon
>>>> useReqSigCert
>>>>
>>>> true>>> timestampPrecisionInMilliseconds>
>>>> 300
>>>> 300
>>>> false
>>>>
>>>> org.wso2.carbon.security.util.
>>>> SecurityTokenStore
>>>> 
>>>> 300
>>>>
>>>> 
>>>> >>> cryptoKey="org.wso2.carbon.
>>>> security.crypto.privatestore"
>>>> provider="org.wso2.carbon.security.util.ServerCrypto">
>>>> >>> name="org.wso2.carbon.security.crypto.alias">pocei.
>>>> srv.sgai-dev.sistemas.csic.es
>>>> >>> name="org.wso2.carbon.security.crypto.privatestore">
>>>> wso2carbon.jks
>>>> >>> name="org.wso2.stratos.tenant.id">-1234
>>>> >>> name="org.wso2.carbon.security.crypto.truststores">
>>>> wso2carbon.jks
>>>> >>> name="rampart.config.user">wso2carbon
>>>> 
>>>> 
>>>> 
>>>> >>> cryptoKey="org.wso2.carbon.
>>>> security.crypto.privatestore"
>>>> provider="org.wso2.carbon.security.util.ServerCrypto">
>>>> >>> name="org.wso2.carbon.security.crypto.alias">pocei.
>>>> srv.sgai-dev.sistemas.csic.es
>>>> >>> name="org.wso2.carbon.security.crypto.privatestore">
>>>> wso2carbon.jks
>>>> >>> name="org.wso2.stratos.tenant.id">-1234
>>>> >>> name="org.wso2.carbon.security.crypto.truststores">
>>>> wso2carbon.jks
>>>> >>> name="rampart.config.user">wso2carbon
>>>> 
>>>> 
>>>> 
>>>>
>>>> 
>>>>
>>>> On SOAPUI i enabled the "enable MTOM" opcion and attach a file ...
>>>>
>>>> Any Idea of what´s goind on?
>>>>
>>>> Thakxs
>>>>
>>>> R.
>>>>
>>>>
>>>>
>>>> --
>>>> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
>>>> Development-f3.html
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>
>>>
>>>
>>> --
>>> Himasha Guruge
>>> Senior Software Engineer
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299 <+94%2077%20745%209299>
>>> himas...@wso2.com
>>>
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to recover from a java.net exception in a template?

2018-01-29 Thread Vinod Kavinda
Hi Thomas,
I believe this error is happening on the backend server. Then you can use
the fire and forget pattern. Try adding following property, before making
the service invocation.


Thanks,
Vinod

On Mon, Jan 29, 2018 at 8:30 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello,
>
> I have a template where I *Call* a *Address* mediator. However, during the
> runtime, I have a network problem which causes it to explode with a
> graceful java.net.NoRouteToHostException. Of course, I will have to fix
> the network part but, in the same time, I would like to be able to continue
> my process.
>
> My template is something like:
>
> http://ws.apache.org/ns/synapse";>
>> 
>> 
>> 
>> > expression="fn:concat($ctx:commonConfigurationUrl, '/parameters/name/',
>> $ctx:targetParamName)" name="uri.var.parameterRetrievalEndpoint"
>> scope="default" type="STRING"/>
>> > name="REST_URL_POSTFIX" scope="axis2"/>
>> > name="Accept" scope="transport"/>
>> > value="GET"/>
>> 
>> 
>> 
>> 
>> 2
>> fault
>> 
>> 
>> 
>> 
>>
> 
>>
>
> And my "recovery" sequence, named commonServiceFaultSequence , is like
> that:
>
> 
>> http://ws.apache.org/ns/synapse";>
>> 
>> 
>> 
>> 
>>
>
> Have you got any idea?
>
> Regards,
>
> Thomas
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPMN] Rest task json response with null values gives NPE

2018-01-22 Thread Vinod Kavinda
Thanks for the valuable responses. This is been fixed in [1].

[1] - https://github.com/wso2/carbon-business-process/pull/497

Regards,
Vinod

On Mon, Jan 22, 2018 at 1:55 PM, Milinda Perera  wrote:

> Hi,
>
> Actually, we have created a wrapper to avoid changes done internal
> implementation (such as changes in libraries) in future, not to affect
> already existing BPMN processes. That's why we have limited result object
> types. otherwise, we can return any object type.
>
> Thanks,
> Milinda
>
> On Mon, Jan 22, 2018 at 12:36 PM, Waruna Jayaweera 
> wrote:
>
>> Hi,
>> Do we need to filter the data type here. If result is not a Map or List
>> Can we return the result as it is?
>>
>> Thanks,
>> Waruna
>>
>> On Mon, Jan 22, 2018 at 12:18 PM, Vinod Kavinda  wrote:
>>
>>> Hi All,
>>> I'm working on fixing the issue [1]. The reason for the issue is we have
>>> not considered the *null *in the code line [2]. According to the JSON
>>> spec [3], null also treated he same way like other primitive types.
>>>
>>> Any particular reason for not to add *null?*
>>> Shall we add the null also in the line [2] ?
>>>
>>> [1] - https://github.com/wso2/product-ei/issues/1406
>>> [2] - https://github.com/wso2/carbon-business-process/blob/maste
>>> r/components/bpmn/org.wso2.carbon.bpmn/src/main/java/org/wso
>>> 2/carbon/bpmn/core/types/datatypes/json/api/JsonNodeObject.java#L77
>>> [3]  - http://www.json.org/
>>>
>>> Regards,
>>> Vinod
>>>
>>> --
>>> Vinod Kavinda
>>> Senior Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>> [image: http://wso2.com/signature]
>>> <http://wso2.com/signature>
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Waruna Lakshitha Jayaweera
>> Senior Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +94713255198 <+94%2071%20325%205198>
>> http://waruapz.blogspot.com/
>>
>>
>
>
> --
> Milinda Perera
> Senior Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032 <+94%2071%20411%205032>
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPMN] Rest task json response with null values gives NPE

2018-01-21 Thread Vinod Kavinda
Hi All,
I'm working on fixing the issue [1]. The reason for the issue is we have
not considered the *null *in the code line [2]. According to the JSON spec
[3], null also treated he same way like other primitive types.

Any particular reason for not to add *null?*
Shall we add the null also in the line [2] ?

[1] - https://github.com/wso2/product-ei/issues/1406
[2] -
https://github.com/wso2/carbon-business-process/blob/master/components/bpmn/org.wso2.carbon.bpmn/src/main/java/org/wso2/carbon/bpmn/core/types/datatypes/json/api/JsonNodeObject.java#L77
[3]  - http://www.json.org/

Regards,
Vinod

-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing root element above an array in wso2. Please guide

2018-01-21 Thread Vinod Kavinda
Hi Vikram,
This is happening because your XPath generates multiple elements with below
structure, which not your desired output.
**
* 26*
* box*
* 2019-01-17T00:00:00*
*  *

In an XML point of view, you are expecting an xml content like below, which
is not a valid XML content since it does not have a root element. You can
test this with an online XPath evaluator and verify.

* *
* 40*
* car*
* 2019-01-17T00:00:00*
* *
* *
* 37*
* table*
* 2019-01-17T00:00:00*
* *


I don't think you can achieve your requirement with the enrich mediator
since it only supports Xpaths. Please try using the Payload Factory
mediator[1] with Jsonpath. Then you can extract the "Detail" element from
the converted JSON and set it to the body.

[1] - https://docs.wso2.com/display/EI611/PayloadFactory+Mediator

On Sun, Jan 21, 2018 at 8:37 PM, vikram nayak 
wrote:

>
>
> On Sunday, 21 January 2018 8:14 PM, vikram nayak 
> wrote:
>
>
> Hi All,,
>
> I have output like below from my xslt :
>
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> 
> 
> 
> 40
> car
> 2019-01-17T00:00:00
> 
> 
> 37
> table
> 2019-01-17T00:00:00
> 
> 
> 35
> book
> 2019-01-17T00:00:00
> 
> 
> 26
> box
> 2019-01-17T00:00:00
> 
> 
> 
> 
>
> which gets converted into below json in postman :
>
> {
> "Result": {
> "Detail": [
> {
> "a": "40",
> "b": "car",
> "c": "2019-01-17T00:00:00"
> },
> {
> "a": "37",
> "b": "table",
> "c": "2019-01-17T00:00:00"
> },
> {
> "a": "35",
> "b": "book",
> "c": "2019-01-17T00:00:00"
> },
> {
> "a": "26",
> "b": "box",
> "c": "2019-01-17T00:00:00"
> }
> ]
> }
> }
>
> but in my desired output response . I do not want root element "Result".
>
> Desired output :
>
> {
> "Detail": [
> {
> "a": "40",
> "b": "car",
> "c": "2019-01-17T00:00:00"
> },
> {
> "a": "37",
> "b": "table",
> "c": "2019-01-17T00:00:00"
> },
> {
> "a": "35",
> "b": "book",
> "c": "2019-01-17T00:00:00"
> },
> {
> "a": "26",
> "b": "box",
> "c": "2019-01-17T00:00:00"
> }
> ]
> }
> }
>
> Going through some online documents I tried below enrich after xslt.
>
> 
> 
> 
> 
>
> But it gives only one element from my output  like below :
>
> {
> "Detail": {
> "insuranceNumber": "40",
> "policyName": "Laptop insurance - 4 star",
> "agreementValidTill": "2019-01-17T00:00:00"
> }
> }
>
> Please guide.
>
> Thanks,
> Vikram
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Securing API using Basic Auth Handler

2018-01-15 Thread Vinod Kavinda
Hi Godwin,
I'm sorry, missed that.

Regards,
Vinod

On Tue, Jan 16, 2018 at 10:24 AM, Godwin Shrimal  wrote:

> *org.wso2.handler.SimpleOauthHandler *is for OAuth security and here I am
> referring to BasicAuth. So class name in the doc looks correct for me.
>
> Thanks
> Godwin
>
> On Tue, Jan 16, 2018 at 11:51 AM, Godwin Shrimal  wrote:
>
>> Hi Vinod,
>>
>> I tried changing handler name and getting the same error. It looks
>> something wrong with the jar file when I try the following command gives an
>> error as "Error: error reading WSO2-REST-BasicAuth-Handler-1.0-SNAPSHOT.jar;
>> error in opening zip file". Let me compile the source and try.
>>
>> javap -classpath WSO2-REST-BasicAuth-Handler-1.0-SNAPSHOT.jar
>> org.wso2.handler.SimpleOauthHandler
>>
>> Thanks
>> Godwin
>>
>> On Tue, Jan 16, 2018 at 11:35 AM, Vinod Kavinda  wrote:
>>
>>> Hi Godwin,
>>> The jar in the given location has a different name than the doc. Please
>>> try using the handler name "*org.wso2.handler.SimpleOauthHandler". *Let's
>>> verify this. Then we need to correct the doc to align with the sample.
>>> Thanks for reporting.
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Tue, Jan 16, 2018 at 7:56 AM, Godwin Shrimal  wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> When we add the BasicAuth handler to API and save it gives following
>>>> error. (I followed the doc [1] and downloaded the jar file and put into
>>>> /lib)
>>>>
>>>> [2018-01-16 09:24:57,235] [EI-Core] ERROR - APIFactory Error
>>>> initializing API handler: org.wso2.rest.BasicAuthHandler
>>>> java.lang.ClassNotFoundException: org.wso2.rest.BasicAuthHandler
>>>> cannot be found by synapse-core_2.1.7.wso2v15
>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter
>>>> nal(BundleLoader.java:501)
>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>>>> leLoader.java:421)
>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>>>> leLoader.java:412)
>>>> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa
>>>> dClass(DefaultClassLoader.java:107)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>> at org.apache.synapse.config.xml.rest.APIFactory.defineHandler(
>>>> APIFactory.java:161)
>>>> at org.apache.synapse.config.xml.rest.APIFactory.createAPI(APIF
>>>> actory.java:103)
>>>> at org.apache.synapse.config.xml.rest.APIFactory.createAPI(APIF
>>>> actory.java:53)
>>>> at org.wso2.carbon.rest.api.service.RestApiAdmin.updateApiFromS
>>>> tring(RestApiAdmin.java:164)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>> ssorImpl.java:62)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>> thodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RP
>>>> CUtil.java:212)
>>>> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusi
>>>> nessLogic(RPCMessageReceiver.java:117)
>>>> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invo
>>>> keBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>> at org.apache.axis2.receivers.AbstractMessageReceiver.receive(A
>>>> bstractMessageReceiver.java:110)
>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>>> at org.apache.axis2.transport.local.LocalTransportReceiver.proc
>>>> essMessage(LocalTransportReceiver.java:169)
>>>> at org.apache.axis2.transport.local.LocalTransportReceiver.proc
>>>> essMessage(LocalTransportReceiver.java:82)
>>>> at org.wso2.carbon.core.transports.local.CarbonLocalTransportSe
>>>> nder.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>>>> at org.apache.axis2.transport.local.LocalTransportSender.invoke
>>>> (LocalTransportSender.java:77)
>>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>>>> utInAxisOperation.java:430)
>>>> at org.apache.axis2.de

Re: [Dev] [EI] Securing API using Basic Auth Handler

2018-01-15 Thread Vinod Kavinda
nFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(
> CRLFPreventionFilter.java:61)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.
> doFilter(CharacterSetFilter.java:61)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(
> HttpHeaderSecurityFilter.java:124)
> 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:219)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:110)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:506)
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:169)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:103)
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.
> continueInvocation(CompositeValve.java:99)
> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.
> invoke(CarbonTomcatValve.java:47)
> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(
> TenantLazyLoaderValve.java:57)
> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.
> invokeValves(TomcatValveContainer.java:47)
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(
> CompositeValve.java:62)
> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValv
> e.invoke(CarbonStuckThreadDetectionValve.java:159)
> at org.apache.catalina.valves.AccessLogValve.invoke(
> AccessLogValve.java:962)
> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(
> CarbonContextCreatorValve.java:57)
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:116)
> at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:445)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1115)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
> process(AbstractProtocol.java:637)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> doRun(NioEndpoint.java:1775)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> run(NioEndpoint.java:1734)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.synapse.SynapseException: Error initializing API
> handler: org.wso2.rest.BasicAuthHandler
> at org.apache.synapse.config.xml.rest.APIFactory.
> handleException(APIFactory.java:202)
> at org.apache.synapse.config.xml.rest.APIFactory.defineHandler(
> APIFactory.java:191)
> at org.apache.synapse.config.xml.rest.APIFactory.createAPI(
> APIFactory.java:103)
> at org.apache.synapse.config.xml.rest.APIFactory.createAPI(
> APIFactory.java:53)
> at org.wso2.carbon.rest.api.service.RestApiAdmin.updateApiFromString(
> RestApiAdmin.java:164)
> ... 81 more
> Caused by: java.lang.ClassNotFoundException:
> org.wso2.rest.BasicAuthHandler cannot be found by synapse-core_2.1.7.wso2v15
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(
> BundleLoader.java:501)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
> BundleLoader.java:421)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
> BundleLoader.java:412)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(
> DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at org.apache.synapse.config.xml.rest.APIFactory.defineHandler(
> APIFactory.java:161)
> ... 84 more
>
> [1] https://docs.wso2.com/display/EI611/Securing+APIs
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Defining a constant json in a property(variable).

2018-01-15 Thread Vinod Kavinda
Hi Aditya,
Since the JSON string is a constant, you can directly set it as the text of
a property mediator. Please refer below property mediator. You need to
properly escape the characters.




Regards,
Vinod

On Mon, Jan 15, 2018 at 3:51 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected sir,
>
> I want to assign a constant json to property without distrubing my payload
> how could I do this.
> So I cannot use payload factory to generate json as it will vanish my
> payload.
>
> I could achieve this by
> 1. assign payload to a property1
> 2. create new json in payload factory
> 3. assign new payload to property 2
> 4. assign old payload in property1 to current payload.
>
> But is there a direct way ?
>
> Could I do this without using payload factory.
>
> example of canstant json
> {
> "Items": {
> "Book": {
> "Type": "System.Int32"
> },
> "Pencil": {
> "Type": "System.Int32",
> "Value": "10",
> "Original": "10"
> },
> "Table": {
> "Type": "System.Int32",
> "Value": "110",
> "Original": "110"
> }
> }
> }
>
> I want to create a property  in between the flow , with a initial value as
> above json like this.
>
>
> With Regards,
> Aditya
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Oxygen Tank > Manage endpoint text responses from proxy (Unexpected character 'some_character' code 45 in prolog expected '<')

2018-01-12 Thread Vinod Kavinda
Please refer the Message relay documentation I shared and add the
configurations to correct place and correct class names. These are the
classes AFAIK.

Thanks,
Vinod

On Fri, Jan 12, 2018 at 8:39 PM, mwso2  wrote:

> I got a compilation error (pop up) setting your wso2 commands. Can you
> check
> class path, please?
>
>  class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
>  class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
> Development-f3.html
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Oxygen Tank > Manage endpoint text responses from proxy (Unexpected character 'some_character' code 45 in prolog expected '<')

2018-01-12 Thread Vinod Kavinda
>  > class="org.apache.axis2.builder.ApplicationXMLBuilder"
> > contentType="application/xml" formatterClass="org.apache.
> > axis2.transport.http.ApplicationXMLFormatter"/>
> >
> >  > contentType="multipart/related"/>
> >
> >  > contentType="application/soap+xml" formatterClass="org.apache.
> > axis2.transport.http.SOAPMessageFormatter"/>
> >
> >  > contentType="application/json" formatterClass="org.apache.axis2.json.
> > JSONMessageFormatter"/>
> >
> >  > contentType="application/xop+xml"/>
> >
> >  > class="org.apache.axis2.builder.XFormURLEncodedBuilder"
> > contentType="application/x-www-form-urlencoded"
> > formatterClass="org.apache.axis2.transport.http.
> > XFormURLEncodedFormatter"/>
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > But unfortunately i don’t get any response in SOAPUI :(
> >
> > After I make other tests adding the next properties in outsequence. But
> > with no effect:
> >
> > 
> >
> > 
> >
> > Note: I have used always the axis2.xml default file.
> >
> > ¿ Do you know which property should i use in my proxy configuration for
> > managing this kind of text responses?
> >
> > Thanks …
> >
> >
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
> >
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> <http://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
> 
> Quoted from:
> http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Oxygen-
> Tank-Manage-endpoint-text-responses-from-proxy-Unexpected-character-some-
> character-code--tp154376p154387.html
>
>
> _
> Sent from http://wso2-oxygen-tank.10903.n7.nabble.com
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Oxygen Tank > Manage endpoint text responses from proxy (Unexpected character 'some_character' code 45 in prolog expected '<')

2018-01-11 Thread Vinod Kavinda
HI,
I'm sorry, I'm not clear about your question. Too much info :)

However, if you need to passthrough a non-standard content type, add
following message formatter and builder to your axis2.xml.





Here the content type should be whatever content type your backend is
sending. Refer [1] for more info on message Relay.

[1] - https://docs.wso2.com/display/ESB500/Message+Relay

Regards,
Vinod

On Thu, Jan 11, 2018 at 11:47 PM, Marcos Tarín Esteve <
mta...@alfatecsistemas.es> wrote:

> Hi …
>
> I’m making a soap call to an endpoint service through ESB6.1.1 from SOAPUI
>
> PROXY CONFIGURATION
>
> ((( I bloted out some information with  )))
>
>
>
> http://ws.apache.org/
> ns/synapse" name="WsV2_Based_Proxy" startOnLoad="true"
> statistics="disable" trace="enable" transports="http,https">
>
> 
>
> 
>
>  value="true"/>
>
>  value="true"/>
>
>  value="true"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>  uri="file:/var/www/html/WsV2.wsdl"/>
>
> 
>
> 
>
> 
>
> 
>
> SOAPUI receives a correct response when the endpoint service returns a
> ‘SOAP response’.
>
> But i have other soap call that is returning the next non-soap formatted
> response:
>
> NON-SOAP ENDPOINT RESPONSE
>
> --urn:uuid:ax7xx36-98xx9-4ex1-bxxc-ax1x8bxc
>
> Content-Type: text/xml; charset=utf-8
>
> Content-Transfer-Encoding: 8bit
>
> Content-ID: 
>
>
>
> 
>
> http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:ns1="https://.es//ws/ws_v2/1.0/infoEnvioV2";>
>
> 
>
> 
>
> xa3x2x8xx7
>
> 
>
> 
>
> 
>
>
>
> --urn:uuid:a07xxx6-9xxx9-4xxa1-xx9c-a91dxxbcc
>
> Content-Type: application/octet-stream; charset=utf-8
>
> Content-Transfer-Encoding: binary
>
> Content-ID: 
>
> http://xx.x.x.xxx/Texto_de_prueba.txt
>
> --urn:uuid:a07xxx6-9xxx9-4ea1-bxxc-a9xxx0c8bcc—
>
> The problem is that wso2-esb doesn’t return the response to SOAPUI because
> this ESB error:
>
> TID: [-1234] [] [2017-12-21 17:15:38,305] ERROR
> {org.apache.synapse.transport.passthru.util.RelayUtils} -  Error while
> building Passthrough stream {org.apache.synapse.transport.
> passthru.util.RelayUtils}
>
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException:
> Unexpected character '-' (code 45) in prolog; expected '<'
>
> I'm only interested in reading last SOAP-ENV response from SOAPUI.
>
> For getting the solution. I would like to TRANSFORM ‘ONLY’ THE PROXY
> RESPONSE to a format that SOAPUI can read.
>
> For solving the problem. I added the property messageBuilder to the
> proxy’s out-sequence configuration:
>
> NEW OUT-SEQUENCE PROXY CONFIGURATION
>
> 
>
> 
>
>  class="org.wso2.carbon.relay.BinaryRelayBuilder"
> contentType="text/xml" formatterClass="org.apache.axis2.transport.http.
> SOAPMessageFormatter"/>
>
> 
>
> 
>
> 
>
> 
>
> Note: When i added the last property messageBuilder. WSO2 editor added
> itself this new properties:
>
> 
>
> 
>
>  contentType="application/xml" formatterClass="org.apache.
> axis2.transport.http.ApplicationXMLFormatter"/>
>
>  contentType="multipart/related"/>
>
>  contentType="application/soap+xml" formatterClass="org.apache.
> axis2.transport.http.SOAPMessageFormatter"/>
>
>  contentType="application/json" formatterClass="org.apache.axis2.json.
> JSONMessageFormatter"/>
>
>  contentType="application/xop+xml"/>
>
>  class="org.apache.axis2.builder.XFormURLEncodedBuilder"
> contentType="application/x-www-form-urlencoded"
> formatterClass="org.apache.axis2.transport.http.
> XFormURLEncodedFormatter"/>
>
> 
>
> 
>
> 
>
> 
>
> But unfortunately i don’t get any response in SOAPUI :(
>
> After I make other tests adding the next properties in outsequence. But
> with no effect:
>
> 
>
> 
>
> Note: I have used always the axis2.xml default file.
>
> ¿ Do you know which property should i use in my proxy configuration for
> managing this kind of text responses?
>
> Thanks …
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Tes automation framework for SOA integration test

2018-01-11 Thread Vinod Kavinda
Hi Godwin,
In that case, I think you can use the existing wso2 automation framework.
You can refer mediation tests in the product-ei for reference.

Regards,
Vinod

On Fri, Jan 12, 2018 at 4:48 AM, Godwin Shrimal  wrote:

> Hi Nuwan,
>
> Let me explain the scenario. I am building up an echo system and using
> wso2ei-6.1.1 in the mediation layer. So I have many numbers of proxy
> services and APIs. I want to write an automation test suit to test those
> Proxy services and APIs (integration test). So service innovation will be
> enough here and think services are already deployed.
>
> Thanks
> Godwin
>
> On Thu, Jan 11, 2018 at 11:53 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Godwin,
>>
>> The requirement is not clear to me. You want to service invocation only
>> or service deployment and invocation for your testing.
>>
>> Thanks,
>> Nuwanw
>>
>> On Thu, Jan 11, 2018 at 10:44 AM, Milinda Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> @Nuwan: can we use our existing integration test framework that we use
>>> in product-ei. Since all extensions, utils, etc released we can do
>>> integration test using it. WDYT?
>>>
>>> Thanks,
>>> Milinda
>>>
>>>
>>> On Thu, Jan 11, 2018 at 4:39 PM, Godwin Shrimal  wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> I want to write the *integration* test for Proxy service and APIs
>>>> deployed in wso2ei-6.1.1. Can someone propose a recommended open source
>>>> framework for this?
>>>>
>>>>
>>>> Thanks
>>>> Godwin
>>>> --
>>>> *Godwin Amila Shrimal*
>>>> Associate Technical Lead
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94772264165*
>>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>>> twitter: https://twitter.com/godwinamila
>>>> <http://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>> Milinda Perera
>>> Senior Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032 <071%20411%205032>
>>>
>>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Associate Technical Lead
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620 <+94%2071%20668%204620>
>>
>>
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to handle null response , with http header "content-type = application/json" from third party service.

2018-01-10 Thread Vinod Kavinda
Hi,
This should be triggering the fault sequence of your API/Proxy or the
default fault sequence. You can capture the error in fault sequence and
construct your error message.

Regards,
Vinod

On Wed, Jan 10, 2018 at 7:43 PM, vikram nayak 
wrote:

>
> Hi,
>
> Third party service which I need to consume returns “null” when it has no
> data for a particular input.
> Here is how it looks in postman when I hit third party service.
>
> [image: Inline image 1]
> [image: Inline image 2]
>
> and wso2 service console shows below erros and service gets hanged , the
> control does not come to response flow : (Error logs attached)
>
> [2018-01-10 19:34:49,145] [EI-Core] ERROR - JsonUtil #getNewJsonPayload.
> Could not save JSON payload. Invalid input stream found. MessageID:
> urn:uuid:ca4bbd52-ec0d-4fe9-9dcf-b99b5fda1b8c
> [2018-01-10 19:34:49,146] [EI-Core] ERROR - JsonStreamBuilder Error
> occurred while processing document for application/json
> java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.wso2.carbon.integrator.core.json.JsonStreamBuilder.processDocument(
> JsonStreamBuilder.java:69)
> at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.
> getDocument(DeferredMessageBuilder.java:148)
> at org.apache.synapse.transport.passthru.util.RelayUtils.
> builldMessage(RelayUtils.java:136)
>
> Please suggest how to handle this error. I want to throw some business
> exception like {"Message": "Not Data Found."}
>
> Regards,
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deletion of Faulty Proxy Services Not Supported

2018-01-10 Thread Vinod Kavinda
Hi Thishani,
Why don't you just add the file separator (/) before appending the service
name in line [1]? It won't break any requirement achieved by substring
method.

[1] -
https://github.com/wso2/carbon-deployment/blob/4.7.x/components/service-mgt/axis2-service-mgt/org.wso2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt/ServiceAdmin.java#L793


Regards,
Vinod

On Wed, Jan 10, 2018 at 1:59 PM, Thishani Lucas  wrote:

> Hi All,
>
> Please find the link to the relevant code below [1].
>
> [1] https://github.com/wso2/carbon-deployment/blob/4.7.x/
> components/service-mgt/axis2-service-mgt/org.wso2.carbon.
> service.mgt/src/main/java/org/wso2/carbon/service/mgt/
> ServiceAdmin.java#L777
>
> Thanks.
>
> On Wed, Jan 10, 2018 at 1:26 PM, Isuru Udana  wrote:
>
>> Hi Thishani,
>>
>> Please discuss these type of topics in dev list. And please provide links
>> to relevant sources in github as explaining the logics in words is not that
>> useful to someone to understand the question.
>>
>> Thanks.
>>
>> On Wed, Jan 10, 2018 at 1:12 PM, Thishani Lucas 
>> wrote:
>>
>>>
>>>
>>> On Wed, Jan 10, 2018 at 12:46 PM, Thishani Lucas 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> It seems that the deletion of faulty proxy services being not supported
>>>> is not because to disallow modifying capp.
>>>>
>>>> The class ServiceAdmin.java in the package org.wso2.carbon.service.mgt
>>>> of carbon deployment, is having a method 'deleteFaultyServiceGroup'. In
>>>> that method we're doing a substring of the variable 'repository', which
>>>> holds the path to the artifacts (eg : "
>>>> */home/thishani/wso2ei-6.1.1/repository/deployment/server/*"). But the
>>>> substring method is removing the ending slash. Because of this, when
>>>> appending the service name that should be undeployed, the file path is
>>>> derived as "
>>>> */home/thishani/wso2ei-6.1.1/repository/deployment/serverFaultyProxy*".
>>>> Since this file does not exist in the system, it's not getting removed and
>>>> the service is also not getting undeployed.
>>>>
>>>> Therefore, I'm planning to remove that substring function. But I want
>>>> to make sure if there is any reason for doing that substring. Is that
>>>> needed for any other product's functionality? Other than EI? If so, please
>>>> let me know, so that I can come up with a different solution.
>>>>
>>>> Thanks,
>>>> Thishani
>>>>
>>>>
>>>>
>>>> On Tue, Jan 9, 2018 at 6:12 PM, Thishani Lucas 
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> Currently, deleting faulty proxy services in the EI is not possible.
>>>>> This has been reported as an issue in [1]. This might be because since
>>>>> we're allowing deployment of proxies through capp and that the
>>>>> configurations of the capp should not be modified, the deletion of faulty
>>>>> proxy services is not supported. IMO, we should support deletion of faulty
>>>>> proxies that are not deployed via a capp.
>>>>>
>>>>> Would that cause any issues? WDYT?
>>>>>
>>>>> [1] https://wso2.org/jira/browse/ESBJAVA-4068
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Thishani
>>>>>
>>>>> --
>>>>> Regards,
>>>>>
>>>>> *Thishani Lucas*
>>>>> *Software Engineer*
>>>>> *WSO2 Lanka (Private) Limited**: http://wso2.com <http://wso2.com/>*
>>>>> *lean.enterprise.middle-ware*
>>>>>
>>>>> *Tel: +94 77 2556931 <+94%2077%20255%206931> *
>>>>>
>>>>> *LinkedIn: https://www.linkedin.com/in/thishani-lucas/
>>>>> <https://www.linkedin.com/in/thishani-lucas/>*
>>>>>
>>>>> <http://wso2.com/signature>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> *Thishani Lucas*
>>>> *Software Engineer*
>>>> *WSO2 Lanka (Private) Limited**: http://wso2.com <http://wso2.com/>*
>>>> *lean.enterprise.middle-ware*
>>>>
>>>> *Tel: +94 77 2556931 <+94%2077%20255%206931> *
>>>>
>&

Re: [Dev] Json Array transformation using payloadfactory or enrich mediator. Please guide.

2018-01-09 Thread Vinod Kavinda
Hi,
Select the "Source URL Entry" for the "Local entry Type" field's value.

Thanks,
Vinod

On Tue, Jan 9, 2018 at 7:04 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected Sir,
>
> I think the screenshots in the mail are not appearing . Please check
> attachment ( Local entry of xslt ).
>
> With Regards,
> Aditya
>
> On Tue, Jan 9, 2018 at 5:04 PM, aditya shivankar <
> shivankar.adit...@gmail.com> wrote:
>
>> Respected Sir,
>>
>>
>> I went through the online docs.
>>
>> My xslt is placed in registry project in below structure :
>>
>>
>>
>>
>>
>>  So I think, if not wrong, I need to create local entry like below
>>
>>
>>
>> > />
>>
>>
>>
>> I right clicked on my App project(TestXsltApp)ànewàlocalentry
>>
>>
>>
>>
>>
>>
>>
>> Selected “create a new local entry”
>>
>>
>>
>>
>>
>> But here I find no option to configure the local entry like below:
>>
>>
>>
>> > />
>>
>>  Please find attached file (Local entry of xslt).
>>
>> Thanks please guide.
>>
>> On Mon, Jan 8, 2018 at 4:42 PM, Vinod Kavinda  wrote:
>>
>>> Hi Aditya,
>>> You need to add the local entry declaration in the registry inside your
>>> API config. Without that, synapse does not know the location of your xsl.
>>> Refer [1] for more details.
>>>
>>> 
>>>
>>> [1] - https://docs.wso2.com/display/EI611/Working+with+Local+Reg
>>> istry+Entries
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Mon, Jan 8, 2018 at 3:36 PM, aditya shivankar <
>>> shivankar.adit...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Thanks for the reply. But I am getting below error trying it. I think i
>>>> am not able to configure xslt properly. followed online docs for
>>>> configuring xslt in wso2 but still not able to. Could you please check my
>>>> steps (attachment named "xsltTest_stepsFollowed.docx" )and correct me.
>>>> Thanks.
>>>>
>>>>
>>>> Error :
>>>>
>>>> [2018-01-08 15:19:35,020] [EI-Core]  WARN - SynapseConfigUtils Cannot
>>>> convert null to a StreamSource
>>>>
>>>> [2018-01-08 15:19:35,020] [EI-Core] ERROR - XSLTMediator Error creating
>>>> XSLT transformer using : Value {name ='null', keyValue ='transform'}
>>>>
>>>> *org.apache.synapse.SynapseException*: Cannot convert null to a
>>>> StreamSource
>>>>
>>>>
>>>>
>>>> With Regards,
>>>> Aditya
>>>>
>>>>
>>>>
>>>>
>>>> On Sun, Jan 7, 2018 at 11:49 PM, Eranda Rajapakshe 
>>>> wrote:
>>>>
>>>>> Hi Aditya,
>>>>>
>>>>> You can use XSLT mediator to achieve this, following is a sample
>>>>> configuration I created.
>>>>>
>>>>> 
>>>>>> http://ws.apache.org/ns/synapse";
>>>>>>name="sample"
>>>>>>startOnLoad="true"
>>>>>>statistics="disable"
>>>>>>trace="disable"
>>>>>>transports="http,https">
>>>>>>
>>>>>>   
>>>>>>  >>>>> value="application/json"/>
>>>>>>  
>>>>>>  
>>>>>>   
>>>>>>
>>>>>>
>>>>>> 
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> http://www.w3.org/1
>>>>>> 999/XSL/Transform">
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>
>>>>>
>>>>>
>>>>> Input will be following,
>>>&g

Re: [Dev] Json Array transformation using payloadfactory or enrich mediator. Please guide.

2018-01-08 Thread Vinod Kavinda
Hi Aditya,
You need to add the local entry declaration in the registry inside your API
config. Without that, synapse does not know the location of your xsl. Refer
[1] for more details.



[1] -
https://docs.wso2.com/display/EI611/Working+with+Local+Registry+Entries

Regards,
Vinod

On Mon, Jan 8, 2018 at 3:36 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Hi,
>
> Thanks for the reply. But I am getting below error trying it. I think i am
> not able to configure xslt properly. followed online docs for configuring
> xslt in wso2 but still not able to. Could you please check my steps
> (attachment named "xsltTest_stepsFollowed.docx" )and correct me. Thanks.
>
>
> Error :
>
> [2018-01-08 15:19:35,020] [EI-Core]  WARN - SynapseConfigUtils Cannot
> convert null to a StreamSource
>
> [2018-01-08 15:19:35,020] [EI-Core] ERROR - XSLTMediator Error creating
> XSLT transformer using : Value {name ='null', keyValue ='transform'}
>
> *org.apache.synapse.SynapseException*: Cannot convert null to a
> StreamSource
>
>
>
> With Regards,
> Aditya
>
>
>
>
> On Sun, Jan 7, 2018 at 11:49 PM, Eranda Rajapakshe 
> wrote:
>
>> Hi Aditya,
>>
>> You can use XSLT mediator to achieve this, following is a sample
>> configuration I created.
>>
>> 
>>> http://ws.apache.org/ns/synapse";
>>>name="sample"
>>>startOnLoad="true"
>>>statistics="disable"
>>>trace="disable"
>>>transports="http,https">
>>>
>>>   
>>>  >> value="application/json"/>
>>>  
>>>  
>>>   
>>>
>>>
>>> 
>>
>>
>>
>>
>>> http://www.w3.org/1
>>> 999/XSL/Transform">
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>
>>
>>
>> Input will be following,
>>
>>
>>> {
>>> "Children": [
>>> {
>>> "Name": {
>>> "Type": "System.String",
>>> "Value": "Gayle"
>>> },
>>> "Education":{
>>> "Type": "System.String",
>>> "Value": "PostGraduate"
>>> }
>>> },
>>> {
>>> "Name": {
>>> "Type": "System.String",
>>> "Value": "Chris"
>>> },
>>> "Education":{
>>> "Type": "System.String",
>>> "Value": "Graduate"
>>> }
>>> },
>>> {
>>> "Name": {
>>> "Type": "System.String",
>>> "Value": "Steve"
>>> },
>>> "Education":{
>>> "Type": "System.String",
>>> "Value": "PostGraduate"
>>> }
>>> },
>>> {
>>> "Name": {
>>> "Type": "System.String",
>>> "Value": "Stephen"
>>> },
>>> "Education":{
>>> "Type": "System.String",
>>> "Value": "Graduate"
>>> }
>>> }
>>> ]
>>> }
>>
>>
>>
>> Output:
>>
>> {
>>> "Childern": {
>>> "Gayle": "PostGraduate",
>>> "Chris": "Graduate",
>>> "Steve": "PostGraduate",
>>> "Stephen": "Graduate"
>>> }
>>> }
>>
>>
>>
>> Thanks,
>>
>>
>> On Sun, Jan 7, 2018 at 6:23 PM, aditya shivankar <
>> shivankar.adit...@gmail.com> wrote:
>>
>>> Respected Sir,
>>>
>>> I have response from one external service something like below,
>>> indicating children name and education.
>>> Each time i call this service with different input, it returns me few
>>> children( number of children returned could be different each time
>>> depending on my request data ).
>>>
>>>
>>> Service R

Re: [Dev] JSON to XML object array conversion

2018-01-05 Thread Vinod Kavinda
Hi Sameera,
Did you try the script mediator? Please refer SO question[1], script
mediator has been successfully used here for a similar case.

[1] -
https://stackoverflow.com/questions/44817012/how-to-transform-json-array-response-to-xml-array-in-esb-wso2-using-script-media

Regards,
Vinod

On Fri, Jan 5, 2018 at 1:51 PM, Sameera Gunarathne 
wrote:

> Hi,
>
> I'm generating a soap message from a JSON payload and there I would get
> custom object arrays for the payload. An example message format would be
> like below.
>
> {
>"phoneNumbers":[
>   {
>  "number":"",
>  "person":""
>   }
>]
> }
>
> respective soap message should be like this.
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> I have used a payload factory mediator for the simple object types(without
> arrays) and I use property mediator to access the object fields so that I
> can inject them using an argument to the message template used for payload
> factory. But when getting an array of as mentioned payload the argument
> should be populated with following elements for the size of the array.
>
> * *
> * *
> * *
> * *
>
> In this case, is there a way I can use payload factory with property
> mediator? Or Is there a recommended mediators I can use for this scenario?
>
> Thanks and Regards,
> Sameera,
> --
> Sameera Gunarathne
> Software Engineer, WSO2 Inc. http://wso2.com
> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa>
> Email: samee...@wso2.com
> Mobile: +94714155561
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Difference between SESSION_TRANSACTED Ack Mode and transport.jms.SessionTransacted property

2018-01-04 Thread Vinod Kavinda
Hi Heshitha,
We need to update the docs as well. Raise a doc issue as well with required
changes.

/Vinod

On Fri, Jan 5, 2018 at 12:03 PM, Asanka Abeyweera  wrote:

> I think we should remove it from the inbound endpoint edit page since it
> is deprecated in the newer releases.
>
> On Fri, Jan 5, 2018 at 11:33 AM, Heshitha Hettihewa 
> wrote:
>
>> Hi all,
>>
>> In Management console's inbound endpoint edit page
>> transport.jms.SessionTransacted parameter is in mandatory fields inbound
>> endpoint edit page. Since this is deprecated in the above pull request
>> shall we move this parameter to optional fields?. Or should we remove it
>> completely from the inbound endpoint edit page?. WDYT?
>>
>> Thanks,
>> Heshitha.
>>
>> On Thu, Jan 4, 2018 at 12:24 PM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi all,
>>>
>>> This is fixed with the PR below[1].
>>>
>>> [1]. https://github.com/wso2/carbon-mediation/pull/938
>>>
>>> Thanks,
>>> Heshitha.
>>>
>>> On Wed, Jan 3, 2018 at 12:27 PM, Heshitha Hettihewa 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Thanks for the clarification. Since transacted sessions invalidates
>>>> other ack modes and omitting the transport.jms.SessionTransacted
>>>> parameter will omit ambiguous parameter definitions, +1 for using
>>>> SESSION_TRANSACTED as Ack mode only. But since omitting it will cause
>>>> backward compatibility issues shall we set isTransacted flag to true on ack
>>>> mode as chanika suggested and generate a deprecated message for
>>>> transport.jms.SessionTransacted parameter. WDYT?.
>>>>
>>>> Thanks,
>>>> Heshitha.
>>>>
>>>
>>>
>>>
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@wso2.com
>>>
>>
>>
>>
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>
>
> --
> Asanka Abeyweera
> Associate Technical Lead
> WSO2 Inc.
>
> Phone: +94 712228648 <+94%2071%20222%208648>
> Blog: a5anka.github.io
>
> <https://wso2.com/signature>
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Vinod Kavinda
Hi Godwin,
Proxy deployers and DSS deployers are different components. Maybe we are
not listening to the unpacked carbon apps folder by the DSS deployer. Yes,
this is useful for testing. Let's report a bug. We can fix if it is
technically feasible.

Regards,
Vinod

On Thu, Jan 4, 2018 at 10:33 AM, Godwin Shrimal  wrote:

> Hi Vinod,
>
> If you change anything in Proxy (deployed using CAR) it's getting hot
> deploy. Yeah, changes get discard once server restart. Again my problem is
> why proxy services changes reflect and not in DSS.
>
>
> Thanks
> Godwin
>
> On Thu, Jan 4, 2018 at 11:57 AM, Vinod Kavinda  wrote:
>
>> Hi Godwin,
>> In proxy services also, changes do not get persisted. If you restart the
>> server, the changes will be discarded.
>>
>> Regards,
>> Vinod
>>
>> On Wed, Jan 3, 2018 at 12:58 PM, Godwin Shrimal  wrote:
>>
>>> Hi Nandika,
>>>
>>> Thanks for the response. I understand it's not recommending to change
>>> the artifact from UI, my problem is if we change proxy service (deployed
>>> using CAR) it's getting hot deploy. But it's not working with Data
>>> services. Is this intentionally done or is this a bug?
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>> On Wed, Jan 3, 2018 at 12:35 PM, Nandika Jayawardana 
>>> wrote:
>>>
>>>> HI Godwin,
>>>>
>>>> It is not recommended to make changes to artefacts deployed using a car
>>>> file from the management console. And these changes are not persisted and
>>>> server restart will result in the changes being discarded. Hence pls use
>>>>  dev studio to make any changes necessary to artefacts contained within a
>>>> CAR.
>>>>
>>>> Regards
>>>> Nandika
>>>>
>>>> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal 
>>>> wrote:
>>>>
>>>>> Hi Devs,
>>>>>
>>>>> We can change proxy services (Deployed using CAR) from UI and its
>>>>> getting hot deploy after changes. But we can't observe same with Data
>>>>> Services. Any reason for this ? Is it the expected behaviour ?
>>>>>
>>>>> Thanks
>>>>> Godwin
>>>>>
>>>>> --
>>>>> *Godwin Amila Shrimal*
>>>>> Associate Technical Lead
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> mobile: *+94772264165*
>>>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>>>> twitter: https://twitter.com/godwinamila
>>>>> <http://wso2.com/signature>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Nandika Jayawardana
>>>> WSO2 Inc ; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>> twitter: https://twitter.com/godwinamila
>>> <http://wso2.com/signature>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Vinod Kavinda
Hi Godwin,
In proxy services also, changes do not get persisted. If you restart the
server, the changes will be discarded.

Regards,
Vinod

On Wed, Jan 3, 2018 at 12:58 PM, Godwin Shrimal  wrote:

> Hi Nandika,
>
> Thanks for the response. I understand it's not recommending to change the
> artifact from UI, my problem is if we change proxy service (deployed using
> CAR) it's getting hot deploy. But it's not working with Data services. Is
> this intentionally done or is this a bug?
>
> Thanks
> Godwin
>
>
> On Wed, Jan 3, 2018 at 12:35 PM, Nandika Jayawardana 
> wrote:
>
>> HI Godwin,
>>
>> It is not recommended to make changes to artefacts deployed using a car
>> file from the management console. And these changes are not persisted and
>> server restart will result in the changes being discarded. Hence pls use
>>  dev studio to make any changes necessary to artefacts contained within a
>> CAR.
>>
>> Regards
>> Nandika
>>
>> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:
>>
>>> Hi Devs,
>>>
>>> We can change proxy services (Deployed using CAR) from UI and its
>>> getting hot deploy after changes. But we can't observe same with Data
>>> Services. Any reason for this ? Is it the expected behaviour ?
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>> twitter: https://twitter.com/godwinamila
>>> <http://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> Nandika Jayawardana
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Oxygen Tank > WSO2 Development> ESB > Message Processor > Continuous operation Message Processor

2017-12-21 Thread Vinod Kavinda
Hi Marcos,
You can set the *max.delivery.attempts* to a very large number. There is no
such method to avoid deactivation since it is required to maintain the
order of messages.

[1] -
https://docs.wso2.com/display/ESB490/Scheduled+Failover+Message+Forwarding+Processor

Regards,
Vinod

On Thu, Dec 21, 2017 at 5:56 PM, Marcos Tarín Esteve <
mta...@alfatecsistemas.es> wrote:

> Hello
>
>
>
> When the backend is down, I would like to keep the Message Processor
> active always without having to drop any pending message and without having
> the necessity of reactivate the Message Processor manually.
>
>
>
> I don’t care how to achieve this configuration ¿Can you send an example?
>
>
>
> Thanks in advance
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Average response time for back-end call

2017-12-20 Thread Vinod Kavinda
There are two other parameters missing in the docs AIR, that are required
for mediation level stats. Refer [2] for them :)

[2] -
http://soatechflicks.blogspot.com/2017/06/wso2-esb-ei-mediation-latencies-with.html

Regards,
Vinod

On Wed, Dec 20, 2017 at 7:46 PM, Godwin Shrimal  wrote:

> Thanks for response Vinod, Yes. This is what I wanted.
>
> Thanks
> Godwin
>
> On Wed, Dec 20, 2017 at 7:41 PM, Vinod Kavinda  wrote:
>
>> Hi Godwin.
>> You can use the JMX monitoring for this. Refer [1].
>>
>> [1] - https://docs.wso2.com/display/ESB500/JMX+Monitoring
>>
>> Thanks,
>> Vinod
>>
>> On Wed, Dec 20, 2017 at 7:35 PM, Godwin Shrimal  wrote:
>>
>>> Hi Devs,
>>>
>>> I have a proxy service which calls DSS service. I want to check the
>>> average response time of the DSS call in a load test. Do we have a way to
>>> check the average response time of the backend call?
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>> twitter: https://twitter.com/godwinamila
>>> <http://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Average response time for back-end call

2017-12-20 Thread Vinod Kavinda
Hi Godwin.
You can use the JMX monitoring for this. Refer [1].

[1] - https://docs.wso2.com/display/ESB500/JMX+Monitoring

Thanks,
Vinod

On Wed, Dec 20, 2017 at 7:35 PM, Godwin Shrimal  wrote:

> Hi Devs,
>
> I have a proxy service which calls DSS service. I want to check the
> average response time of the DSS call in a load test. Do we have a way to
> check the average response time of the backend call?
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.net.BindException: Address already in use (Bind failed)

2017-12-17 Thread Vinod Kavinda
ransport.http.HTTPSender.sendViaPost(
> HTTPSender.java:195)
> ... 24 more
>
>
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ACK interleaving

2017-12-14 Thread Vinod Kavinda
Hi,
You can't use the usual feature installer since your jar is not in the
feature repo. Can you try following,

   1. Copy the jar file to wso2/components/plugins folder.
   2. Modify the
   wso2/components/default/configuration/org.eclipse.equinox.simpleconfigurator/
   bundles.info file's entry related to above jar.
   3. Restart the server

Regards,
Vinod

On Thu, Dec 14, 2017 at 3:45 PM, Marco Sessa  wrote:

> Hi Dev,
> I have download the carbon-mediation-release-4.6.40-v775 source code and
> I made some changes in the code of the HL7 feature (
> https://github.com/wso2/carbon-mediation/tree/master/compon
> ents/business-adaptors/hl7). After I have rebuild
> carbon-mediation-release-4.6.40-v775 (mvn clean install) with succses;
> in my repository I have: .m2\repository\org\wso2\
> carbon\mediation\org.wso2.carbon.hl7.feature\4.6.41-SNAPSHOT\
> [image: Immagine incorporata 1]
>
> *How do I add the new HL7 feature(4.6.41-SNAPSHOT) to the WSO2 EI?*
>
> I have tried to rebuild(mvn clean install -X) the wso2 using pom (
> https://docs.wso2.com/display/EI611/Installing+Features+Using+POM+Files)
> replacing  4.6.6 with 4.6.41-SNAPSHOT version>
> 
> 
>   org.wso2.carbon.hl7.feature.group
>   4.6.41-SNAPSHOT
> 
> 
>
> but I have the follow error:
> *The installable unit org.wso2.carbon.hl7.feature.group/4.6.41.SNAPSHOT
> has not been found*
> The complete log are in attachment
>
> Thank for help
> Marco
>
>
> *Marco Sessa*
>
>
> *Software Analyst / Developer*
> CSP S.p.A.
> Napoli - Centro Direzionale,
> isola G/1, scala C
> Tel: 081.191.38.607
> Cel: 340.8689247
> Email: marco.se...@cspnet.it
> www.cspnet.it
>
>
> 2017-12-13 12:28 GMT+01:00 Marco Sessa :
>
>> Hi Vinod,
>> I have found the potential problem:
>> one instance of the class
>> *org.wso2.carbon.business.messaging.hl7.common.HL7ProcessingContext*  is
>> shared over multiple threads request for the same proxy and the
>> blockingQueue *applicationResponses *could contains all the responses(in
>> any order based on server response time).
>> When *handleApplicationACK *is called from each thread this method
>> return *the first *response in the queue(if available, otherwise the
>> thread wait for any), without making sure it is the answer(ACK) associated
>> with the current message(*hl7Msg *parameter).
>> I have observed that the order of the *applicationResponses *queue could
>> be different of the order of the waiting thread.
>> This causes the wrong ACK to be sent to the sender.
>>
>> How to we proceed to the bug fix?
>>
>> Many thanks
>> Marco
>>
>> P.S.: I have already opened this issue:
>> https://github.com/wso2/carbon-mediation/issues/928
>>
>>
>>
>> *Marco Sessa*
>>
>>
>> *Software Analyst / Developer*
>> CSP S.p.A.
>> Napoli - Centro Direzionale,
>> isola G/1, scala C
>> Tel: 081.191.38.607
>> Cel: 340.8689247
>> Email: marco.se...@cspnet.it
>> www.cspnet.it
>>
>>
>> 2017-12-02 6:20 GMT+01:00 Vinod Kavinda :
>>
>>> Hi Marco,
>>> The HL7 related code is in [1] inside carbon-mediation repo.
>>>
>>> [1] - https://github.com/wso2/carbon-mediation/tree/master/compo
>>> nents/business-adaptors/hl7
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Sat, Dec 2, 2017 at 10:01 AM, Jason De Silva  wrote:
>>>
>>>> Hi Marco,
>>>>
>>>> In order to debug the code you should be able to do so by checking out
>>>> the code in [1] as mentioned in [2].
>>>>
>>>> [1] https://github.com/wso2/product-ei
>>>> [2] https://github.com/wso2/product-ei#build-from-the-source
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>> Jason De Silva
>>>> *Software Engineer - QA*
>>>> Mobile: +94 (0) 772 097 678
>>>> Email: jas...@wso2.com
>>>> WSO2 Inc. www.wso2.com
>>>> <http://wso2.com/signature>
>>>>
>>>> On Sat, Dec 2, 2017 at 1:54 AM, Marco Sessa 
>>>> wrote:
>>>>
>>>>> Hi Dev,
>>>>> I am analyzed the ACK interleaving with Wireshark and I have observed
>>>>> that WSO2 Integrator send back ACK in the wrong channel if receive 
>>>>> parallel
>>>>> messages on a HL7 proxy.
>>>>> I have opened this issue
>>>>> <https://github.com/wso2/product-ei/issues/1421> on github.
>>>>> I 

Re: [Dev] generate the email (auto-generation )when storing the data in the database

2017-12-12 Thread Vinod Kavinda
is2FlexibleMEPClient.java:581)
> at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:78)
> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(
> Axis2SynapseEnvironment.java:548)
> at org.apache.synapse.endpoints.AbstractEndpoint.send(
> AbstractEndpoint.java:382)
> at org.apache.synapse.endpoints.AddressEndpoint.send(
> AddressEndpoint.java:65)
> at org.apache.synapse.endpoints.RecipientListEndpoint.sendToEndpointList(
> RecipientListEndpoint.java:185)
> at org.apache.synapse.endpoints.RecipientListEndpoint.sendMessage(
> RecipientListEndpoint.java:137)
> at org.apache.synapse.endpoints.RecipientListEndpoint.send(
> RecipientListEndpoint.java:116)
> at org.apache.synapse.mediators.builtin.CallMediator.
> handleNonBlockingCall(CallMediator.java:221)
> at org.apache.synapse.mediators.builtin.CallMediator.mediate(
> CallMediator.java:99)
> at org.apache.synapse.mediators.AbstractListMediator.mediate(
> AbstractListMediator.java:97)
> at org.apache.synapse.mediators.AbstractListMediator.mediate(
> AbstractListMediator.java:59)
> at org.apache.synapse.mediators.base.SequenceMediator.mediate(
> SequenceMediator.java:158)
> at org.apache.synapse.rest.Resource.process(Resource.java:343)
> at org.apache.synapse.rest.API.process(API.java:399)
> at org.apache.synapse.rest.RESTRequestHandler.apiProcess(
> RESTRequestHandler.java:123)
> at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(
> RESTRequestHandler.java:101)
> at org.apache.synapse.rest.RESTRequestHandler.process(
> RESTRequestHandler.java:69)
> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(
> Axis2SynapseEnvironment.java:304)
> at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(
> SynapseMessageReceiver.java:75)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at org.apache.synapse.transport.passthru.ServerWorker.
> processNonEntityEnclosingRESTHandler(ServerWorker.java:325)
> at org.apache.synapse.transport.passthru.ServerWorker.
> processEntityEnclosingRequest(ServerWorker.java:371)
> at org.apache.synapse.transport.passthru.ServerWorker.run(
> ServerWorker.java:151)
> at org.apache.axis2.transport.base.threads.NativeWorkerPool$
> 1.run(NativeWorkerPool.java:172)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.axis2.AxisFault: Error creating mail message or
> sending it to the configured server
> at org.apache.axis2.transport.base.AbstractTransportSender.
> handleException(AbstractTransportSender.java:226)
> at org.apache.axis2.transport.mail.MailTransportSender.
> sendMail(MailTransportSender.java:512)
> at org.apache.axis2.transport.mail.MailTransportSender.sendMessage(
> MailTransportSender.java:182)
> ... 33 more
> Caused by: javax.mail.AuthenticationFailedException
> at javax.mail.Service.connect(Service.java:306)
> at javax.mail.Service.connect(Service.java:156)
> at javax.mail.Service.connect(Service.java:105)
> at javax.mail.Transport.send0(Transport.java:168)
> at javax.mail.Transport.send(Transport.java:98)
> at org.apache.axis2.transport.mail.MailTransportSender.
> sendMail(MailTransportSender.java:501)
> ... 34 more
>
>
>  Can anyone please help on this or suggest If I am wrong somewhere.
>
> Thanks
> Dilusha
>
>
>
> --
>
>
> *Best Regards,Dilusha Alphonso*
>
> *Software Engineer - Support Team*
>
>
> *WSO2*
> *Mobile : *
>
> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
> <http://wso2.com/signature>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] error occur when submitting POST/PUT requests via API-M : ERROR - JsonUtil #writeAsJson. Payload could not be written as JSON. MessageID:

2017-12-04 Thread Vinod Kavinda
Hi Dushantha,
Is this error logs from APIM or ESB node? Shall we enable wire logs and see
what is actually passed to the backend? Look like an invalid JSON is passed
to the backend ESB.

Regards,
Vinod

On Tue, Dec 5, 2017 at 11:28 AM, Dushantha Batuwita 
wrote:

> Hi Dev
>
>  As a part of my work, I have to connect to a SOAP backend via an ESB
> secure proxy that accepts the REST request sent via an API-M.
>
> My Cluster set up is having bellow particulars
>
>
>- Cluster is developed in the local machine
>- consists of two Gateway Nodes
>- One is a* Gateway worker offset by 3*
>- Other is a *Gateway worker and Manager* *offset by 2*
>- Those nodes are fronted by LB
>
>
>-
>
> Now the cluster is up and running.
>
> There are 4 services defined in API-M ( refer to the attached image)
> respectively GET, POST, PUT and DELETE to perform CRUD operations on SOAP
> back-end.
>
>
>
> *Question*
>
> GET/DELETE operations are functioning absolutely as expected and generate
> the required output.
>
> But the POST/PUT which requires JSON payload to be defined at API_M throws
> errors from the terminal but it indeed adds the record(s) to the SOAP back
> end and Updates the record as intended.
>
> *Sample payload supplied to POST and PUT*
> {
> "patient":{
>
> "patientFullName":"Ramboda Arachchige",
>   "patientId":"n...@yahoo.com",
> "insurer":{
>
>   "insurerEmail":"q...@yahoo.com",
>   "insurerName":"MUSTPAY not really",
>   "insurerPhone":""
>
> },
> "medical":{
>
>   "condition":"NO critical ILLNESS",
>   "treatment":"Panadol and Antibiotic"
>
> },
> "parentGuardian":{
>
>   "guardianEmail":"hector.batuw...@yahoo.com",
>   "guardianName":"Hector Filex",
>   "guardianPhone":"0322247644"
>
> },
> "patientContact":{
>
>   "address":"Hatfield",
>   "email":"stalb...@gamil.com",
>   "phone":"0112345234"
> },
> "physician":{
>
>   "physicianEmail":"ab.si...@ebok.com",
>   "physicianName":"CDE Silva",
>   "physicianPhone":"0112678908"
> }
>   }
> }
>
>
>
>
> *the error:*
>
> ERROR - JsonUtil #writeAsJson. Payload could not be written as JSON.
> MessageID: urn:uuid:b11551de-088c-4e7e-8eab-7c4066e97866
> [2017-12-05 10:50:48,413] ERROR - PassThroughHttpSSLSender Failed to
> submit the response
> org.apache.axis2.AxisFault: Payload could not be written as JSON.
> at org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUtil.java:276)
> at org.apache.synapse.commons.json.JsonFormatter.writeTo(
> JsonFormatter.java:62)
> at org.apache.synapse.transport.passthru.PassThroughHttpSender.
> submitResponse(PassThroughHttpSender.java:573)
> at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(
> PassThroughHttpSender.java:264)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(
> Axis2Sender.java:230)
> .
> .
> .
>
>
> [2017-12-05 10:50:48,424] ERROR - Axis2Sender Access-Control-Allow-Headers:
> authorization,Access-Control-Allow-Origin,Content-Type,
> SOAPAction,Access-Control-Allow-Methods:POST,Access-
> Control-Allow-Origin:*,Content-Type:application/json; charset=UTF-8, version='1.0' encoding='utf-8'?>http://schemas.xmlsoap.org/soap/envelope/";>
> Unexpected error sending message back
> org.apache.axis2.AxisFault: Failed to submit the response
> at org.apache.synapse.transport.passthru.PassThroughHttpSender.
> handleException(PassThroughHttpSender.java:632)
> at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(
> PassThroughHttpSender.java:266)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> .
> .
> .
> Caused by: org.apache.axis2.AxisFault: Payload could not be written as
> JSON.
> at org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUtil.java:276)
> at org.apache.synapse.commons.json.JsonFormatter.writeTo(
> JsonFormatter.java:62
>
>
> If you have come across such an incident or have a solution please kindly
> share the wisdom
>
> Many thanks
>
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ACK interleaving

2017-12-01 Thread Vinod Kavinda
Hi Marco,
The HL7 related code is in [1] inside carbon-mediation repo.

[1] -
https://github.com/wso2/carbon-mediation/tree/master/components/business-adaptors/hl7

Regards,
Vinod

On Sat, Dec 2, 2017 at 10:01 AM, Jason De Silva  wrote:

> Hi Marco,
>
> In order to debug the code you should be able to do so by checking out the
> code in [1] as mentioned in [2].
>
> [1] https://github.com/wso2/product-ei
> [2] https://github.com/wso2/product-ei#build-from-the-source
>
> Regards,
> Jason
>
> Jason De Silva
> *Software Engineer - QA*
> Mobile: +94 (0) 772 097 678
> Email: jas...@wso2.com
> WSO2 Inc. www.wso2.com
> <http://wso2.com/signature>
>
> On Sat, Dec 2, 2017 at 1:54 AM, Marco Sessa  wrote:
>
>> Hi Dev,
>> I am analyzed the ACK interleaving with Wireshark and I have observed
>> that WSO2 Integrator send back ACK in the wrong channel if receive parallel
>> messages on a HL7 proxy.
>> I have opened this issue <https://github.com/wso2/product-ei/issues/1421>
>> on github.
>> I would try to debug the code, but I not know which source code of
>> projects other then wso2/product-ei I should download.
>>
>> Thanks for help
>> Marco
>>
>> *Marco Sessa*
>>
>>
>> *Software Analyst / Developer*
>> CSP S.p.A.
>> Napoli - Centro Direzionale,
>> isola G/1, scala C
>> Tel: 081.191.38.607
>> Cel: 340.8689247
>> Email: marco.se...@cspnet.it
>> www.cspnet.it
>>
>>
>> 2017-11-29 11:59 GMT+01:00 Marco Sessa :
>>
>>> Hi All,
>>> I am struggling with an drawback related to ACK interleaving on a HL7
>>> proxy (EI 6.1.0).
>>> In some conditions (parallel request to the same proxy) the system
>>> sender seems to receive Interleaved ACKs .
>>> I have no control on sender(and on receiver) system and in the log the
>>> ACKs come in to the correct sequence.
>>> In the Analytics profile the messages and relative ACK are paired
>>> correctly, but the sender receive a wrokg ACKs for some request.
>>>
>>> The proxy is in attachment
>>>
>>> My problem is know what IP and PORT is used by WSO2 Integrator to send
>>> back the ACKs for exclude an ESB problem.
>>>
>>>
>>> Thank in advance
>>> Marco
>>>
>>> *Marco Sessa*
>>>
>>>
>>> *Software Analyst / Developer*
>>> CSP S.p.A.
>>> Napoli - Centro Direzionale,
>>> isola G/1, scala C
>>> Tel: 081.191.38.607
>>> Cel: 340.8689247
>>> Email: marco.se...@cspnet.it
>>> www.cspnet.it
>>>
>>>
>>
>> ___
>> 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
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-28 Thread Vinod Kavinda
Hi Godwin,
Thanks for the update. Reported the issue [1]

[1] - https://github.com/wso2/product-ei/issues/1428

Regards,
Vinod

On Tue, Nov 28, 2017 at 2:02 PM, Godwin Shrimal  wrote:

> Thanks for the response guy, I could resolve it by setting
> "EnterpriseServiceBus" server role when exporting car file. I think this
> should work OOB, best thing is adding "GovernanceRegistry"  in carbon.xml
> under server roles.
>
>
> Thanks
> Godwin
>
>
>
> On Mon, Nov 27, 2017 at 12:23 PM, Sashika Wijesinghe 
> wrote:
>
>> Hi Himasha,
>>
>> When exporting the carbon application project we can select the required
>> server role. I have tried that option for 'EnterpriseServiceBus' server
>> role and it works for me.
>>
>> Regards,
>> Sashika
>>
>> On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge 
>> wrote:
>>
>>> Hi Sashika,
>>>
>>> To solve the issue, you can add the 'GovernanceRegistry' server role to
>>> the EI server under "" in the carbon.xml or set the server
>>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>>> CAR file.
>>> Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
>>> AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for
>>> registry projects.
>>>
>>> Thanks,
>>> Himasha
>>>
>>> On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda  wrote:
>>>
>>>> Hi All,
>>>> IMO, this should work OOB. If above changes works, we can ship the
>>>> carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?
>>>>
>>>> Regards,
>>>> Vinod
>>>>
>>>> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe 
>>>> wrote:
>>>>
>>>>> Hi Godwin,
>>>>>
>>>>> To solve the issue, you can add the 'GovernanceRegistry' server role
>>>>> to the EI server under "" in the carbon.xml or set the server
>>>>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>>>>> CAR file.
>>>>>
>>>>> Regards,
>>>>> Sashika
>>>>>
>>>>> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga >>>> > wrote:
>>>>>
>>>>>> Hi Godwin,
>>>>>>
>>>>>> I think it because of your car file don't compatible with EI server
>>>>>> role. Can you please find the EI server role and update in the 
>>>>>> artifact.xml.
>>>>>>
>>>>>> Thanks and Regards
>>>>>>
>>>>>> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Devs,
>>>>>>>
>>>>>>> Can't we have a CAR application with only registry project and
>>>>>>> deploy? It's complaining there are no artifacts to deploy and goes to
>>>>>>> faulty.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Godwin
>>>>>>>
>>>>>>> --
>>>>>>> *Godwin Amila Shrimal*
>>>>>>> Associate Technical Lead
>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>> mobile: *+94772264165*
>>>>>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>>>>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>>>>>> twitter: https://twitter.com/godwinamila
>>>>>>> <http://wso2.com/signature>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Rukshan Chathuranga.
>>>>>> Software Engineer.
>>>>>> WSO2, Inc.
>>>>>> +94711822074 <+94%2071%20182%202074>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Sas

Re: [Dev] [EI] Car application with only registry resources

2017-11-26 Thread Vinod Kavinda
Hi All,
IMO, this should work OOB. If above changes works, we can ship the
carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?

Regards,
Vinod

On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe 
wrote:

> Hi Godwin,
>
> To solve the issue, you can add the 'GovernanceRegistry' server role to
> the EI server under "" in the carbon.xml or set the server
> role of the registry resource to 'EnterpriseIntegrator' when creating the
> CAR file.
>
> Regards,
> Sashika
>
> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga 
> wrote:
>
>> Hi Godwin,
>>
>> I think it because of your car file don't compatible with EI server role.
>> Can you please find the EI server role and update in the artifact.xml.
>>
>> Thanks and Regards
>>
>> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal  wrote:
>>
>>> Hi Devs,
>>>
>>> Can't we have a CAR application with only registry project and deploy?
>>> It's complaining there are no artifacts to deploy and goes to faulty.
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>>> twitter: https://twitter.com/godwinamila
>>> <http://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>> +94711822074 <+94%2071%20182%202074>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Sashika WijesingheSoftware Engineer - QA Team*
> Mobile : +94 (0) 774537487
> sash...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] could not find admin service in ESB

2017-11-23 Thread Vinod Kavinda
Hi Dilusha,
What made you assume that ESB contains this
RemoteUserStoreManagerService? According
to [1], you should install this feature, it is not shipped by default with
ESB.

[1] -
http://xacmlinfo.org/2013/12/15/remote-user-management-feature-in-wso2-carbon-products/

Regards,
Vinod

On Thu, Nov 23, 2017 at 7:22 PM, Dilusha Alphonso  wrote:

> Hi All,
>
> I tried to call the admin service referring the link [1]  and followed
> those step. But I was unable to find this particular admin service
> "https://:9443/services/RemoteUserStoreManagerService/" in the
> console in ESB 5.0.0.  I have attached screenshot below.
>
> Could you please tell me what is the issue behind this or let me know
> whether there is something wrong with my step?
>
>
>
> [1]https://docs.wso2.com/display/ESB500/Calling+Admin+Services+from+Apps
>
> Thanks
> Dilusha
> --
>
>
> *Best Regards,Dilusha Alphonso*
>
> *Software Engineer - Support Team*
>
>
> *WSO2*
> *Mobile : *
>
> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
> <http://wso2.com/signature>*
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Not able to access xslt from inside wso2 xslt mediator. Please guide.

2017-11-21 Thread Vinod Kavinda
.
>>>>>> I am trying to access it using xslt mediator like below.
>>>>>>
>>>>>> 
>>>>>>
>>>>>> But getting below error.Full logs can be found in attachment .
>>>>>>
>>>>>> [2017-11-15 18:11:39,128] [EI-Core]  INFO - DependencyTracker Local
>>>>>> entry : api/test.xsl was added to the Synapse configuration successfully
>>>>>> [2017-11-15 18:11:39,129] [EI-Core]  WARN - SynapseConfigUtils Cannot
>>>>>> convert null to a StreamSource
>>>>>> [2017-11-15 18:11:39,131] [EI-Core] ERROR - XSLTMediator Error
>>>>>> creating XSLT transformer using : Value {name ='null', keyValue
>>>>>> ='api/test.xsl'}
>>>>>> org.apache.synapse.SynapseException: Cannot convert null to a
>>>>>> StreamSource
>>>>>> at org.apache.synapse.config.SynapseConfigUtils.handleException
>>>>>> (SynapseConfigUtils.java:580)
>>>>>> at org.apache.synapse.config.SynapseConfigUtils.getStreamSource
>>>>>> (SynapseConfigUtils.java:81)
>>>>>> at org.apache.synapse.mediators.transform.XSLTMediator.createTe
>>>>>> mplate(XSLTMediator.java:420)
>>>>>> at org.apache.synapse.mediators.transform.XSLTMediator.performX
>>>>>> SLT(XSLTMediator.java:268)
>>>>>> at org.apache.synapse.mediators.transform.XSLTMediator.mediate(
>>>>>> XSLTMediator.java:227)
>>>>>> ---
>>>>>> I tried printing body/jsonObject just one line before call to xslt.
>>>>>> And it printed full payload, somewhat like below. So the payload is not
>>>>>> empty.
>>>>>>
>>>>>> .
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>
>>>>>> Please Guide.
>>>>>>
>>>>>> With Regards,
>>>>>> Aditya
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> 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
>>>
>>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Senior 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
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Error while running ciphertool

2017-11-21 Thread Vinod Kavinda
Hi Godwin,
This is a known issue. It is already fixed in master branches.

Regards,
Vinod

On Tue, Nov 21, 2017 at 12:22 PM, Godwin Shrimal  wrote:

> Hi Devs,
>
> I am getting an error when running ciphertool from /bin
> directory. It works when running from . Please see the error
> below. I think this is a bug.
>
> Exception in thread "main" org.wso2.ciphertool.exception.CipherToolException:
> File, cipher-standalone-config.properties does not exist.
> at org.wso2.ciphertool.utils.Utils.setSystemProperties(
> Utils.java:247)
> at org.wso2.ciphertool.CipherTool.initialize(CipherTool.java:93)
> at org.wso2.ciphertool.CipherTool.main(CipherTool.java:52)
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Pass argument to profile creator

2017-11-20 Thread Vinod Kavinda
+1 for the change.

/Vinod

On Tue, Nov 21, 2017 at 10:45 AM, Vijitha Ekanayake 
wrote:

> Hi Godwin,
>
> Agree with you. At the moment we don't have an option of passing a command
> line argument to create the required profile. We need to change existing
> profile creator script to take command line arguments and generate the
> distribution accordingly. I've reported an issue[1] to introduce system
> argument to the profile creator script. We'll include the changes in an
> upcoming release. Thanks a lot for raising the concern.
>
> [1]. https://github.com/wso2/product-ei/issues/1361
>
> Thanks.
>
> On Mon, Nov 20, 2017 at 3:49 PM, Godwin Shrimal  wrote:
>
>> Hi Integration Team,
>>
>> Can we pass required profile as command line argument and run
>> *profile-creator.sh* ?  If not its something necessary feature when we
>> are automating deployment. We can't ask users input.
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
>> twitter: https://twitter.com/godwinamila
>> <http://wso2.com/signature>
>>
>
>
>
> --
> Vijitha Ekanayake
> Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EI 6.0.0 and HL7 transport activation

2017-11-14 Thread Vinod Kavinda
sing the ESB-integrated-way.
>
> Regards,
>
> Thomas
>
>
> 2017-11-10 9:38 GMT+01:00 Thomas LEGRAND :
>
>> Hello again!
>>
>> Finally, I made a diff of the directory via the command comp > where there aren't the feature libs> > libs> (I am on Windows). So, something like that:
>>
>> C:\Users\t.legrand>comp D:\ProjetESB\wso2ei-6.0.0-bis\wso2\components\plugins
>>> D:\ProjetESB\wso2ei-6.0.0\wso2\components\plugins /A > test.log
>>> Comparer d’autres fichiers (O/N) ? n
>>>
>>
>> This generated a file where I could see some messages like
>>
>> Comparaison de D:\ProjetESB\wso2ei-6.0.0-bis\
>>> wso2\components\plugins\axis2-transport-mqtt_2.0.0.wso2v1.jar et
>>> D:\ProjetESB\wso2ei-6.0.0\wso2\components\plugins\axis2-tran
>>> sport-mqtt_2.0.0.wso2v1.jar...
>>> Comparaison des fichiers OK
>>>
>> Comparaison de D:\ProjetESB\wso2ei-6.0.0-bis\wso2\components\plugins\
>>> org.wso2.carbon.business.messaging.hl7.common_4.6.6.jar et
>>> D:\ProjetESB\wso2ei-6.0.0\wso2\components\pluginsorg.wso2.
>>> carbon.business.messaging.hl7.common_4.6.6.jar...
>>>
>> Impossible de trouver/ouvrir le fichier: D:\ProjetESB\wso2ei-6.0.0\wso2
>>> \components\plugins\org.wso2.carbon.business.messaging.hl7.
>>> common_4.6.6.jar
>>>
>>
>> So, in the end, the installed libraries were:
>>
>> - openjpa-all_2.2.2.wso2v1
>> - org.wso2.carbon.business.messaging.hl7.common_4.6.6.jar
>> - org.wso2.carbon.business.messaging.hl7.message_4.6.6
>> - org.wso2.carbon.business.messaging.hl7.store.ui_4.6.6.jar
>> - org.wso2.carbon.business.messaging.hl7.store_4.6.6.jar
>> - org.wso2.carbon.business.messaging.hl7.transport_4.6.6.jar
>>
>> So, I dropped those in my dropins directory, in the EI installation
>> without the feature installed, and that works!
>>
>> Regards,
>>
>> Thomas
>>
>>
>>
>> 2017-11-10 5:13 GMT+01:00 Vinod Kavinda :
>>
>>> [Adding few more people]
>>>
>>> On Thu, Nov 9, 2017 at 9:27 PM, Thomas LEGRAND <
>>> thomas.legr...@versusmind.eu> wrote:
>>>
>>>> Hello again!
>>>>
>>>> That works nicely after I installed the thingy. But, I am behind a
>>>> proxy which causes problems so I had to download the whole Wilkes
>>>> repository and modify the elements metadataRepository & artifactRepository
>>>> to point to it (something like file:///to/my/local/repo). And I am
>>>> disappointed because it installs directly in the components directory which
>>>> make the installation on production a more painful. I think this is
>>>> overkill to deploy a 2 Gb repository to install jar (And I don't think I am
>>>> the only person who think that :))).
>>>>
>>>> Is there a way to extract the jars that was installed to install them
>>>> "manually" on another platform? Except by making a diff of the directory
>>>> /wso2/components? And if I copy/paster them manually, will that
>>>> work or P2 make some hidden configuration on the EI too?
>>>>
>>>> Regards,
>>>>
>>>> Thomas
>>>>
>>>> 2017-11-09 16:08 GMT+01:00 Thomas LEGRAND >>> >:
>>>>
>>>>> Hello Vinod,
>>>>>
>>>>> This is embarrassing... :$
>>>>>
>>>>> I did not "see" this paragraph thinking that it was just a *boring*
>>>>> introduction (like we have in every tutorial on the net) so I jumped
>>>>> directly to the "Enabling the transport" part via the summary. :$
>>>>>
>>>>> Regards,
>>>>>
>>>>> Thomas
>>>>>
>>>>> 2017-11-09 16:04 GMT+01:00 Vinod Kavinda :
>>>>>
>>>>>> Hi Thomas,
>>>>>> The HL7 feature is not shipped with EI 6 by default, due to the
>>>>>> licensing issues. Did you install the HL7 feature as mentioned in the 
>>>>>> first
>>>>>> paragraph of the doc [1]?
>>>>>>
>>>>>> [1] https://docs.wso2.com/display/EI600/HL7+Transport
>>>>>>
>>>>>> Regards,
>>>>>> Vinod
>>>>>>
>>>>>> On Thu, Nov 9, 2017 at 4:07 PM, Thomas LEGRAND <
>>>>>> thomas.legr...@versusmind.eu> wrote:
>>>>>>
>>>>>>> Hello,

Re: [Dev] EI 6.0.0 and HL7 transport activation

2017-11-09 Thread Vinod Kavinda
[Adding few more people]

On Thu, Nov 9, 2017 at 9:27 PM, Thomas LEGRAND  wrote:

> Hello again!
>
> That works nicely after I installed the thingy. But, I am behind a proxy
> which causes problems so I had to download the whole Wilkes repository and
> modify the elements metadataRepository & artifactRepository to point to it
> (something like file:///to/my/local/repo). And I am disappointed because it
> installs directly in the components directory which make the installation
> on production a more painful. I think this is overkill to deploy a 2 Gb
> repository to install jar (And I don't think I am the only person who think
> that :))).
>
> Is there a way to extract the jars that was installed to install them
> "manually" on another platform? Except by making a diff of the directory
> /wso2/components? And if I copy/paster them manually, will that
> work or P2 make some hidden configuration on the EI too?
>
> Regards,
>
> Thomas
>
> 2017-11-09 16:08 GMT+01:00 Thomas LEGRAND :
>
>> Hello Vinod,
>>
>> This is embarrassing... :$
>>
>> I did not "see" this paragraph thinking that it was just a *boring*
>> introduction (like we have in every tutorial on the net) so I jumped
>> directly to the "Enabling the transport" part via the summary. :$
>>
>> Regards,
>>
>> Thomas
>>
>> 2017-11-09 16:04 GMT+01:00 Vinod Kavinda :
>>
>>> Hi Thomas,
>>> The HL7 feature is not shipped with EI 6 by default, due to the
>>> licensing issues. Did you install the HL7 feature as mentioned in the first
>>> paragraph of the doc [1]?
>>>
>>> [1] https://docs.wso2.com/display/EI600/HL7+Transport
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Thu, Nov 9, 2017 at 4:07 PM, Thomas LEGRAND <
>>> thomas.legr...@versusmind.eu> wrote:
>>>
>>>> Hello,
>>>>
>>>> I have a use case where I have a directory in which are dropped HL7
>>>> messages in the ER7 format (the pipe one). So I created an inbound endpoint
>>>> which monitors this directory and eat every .hl7 file it founds. But, it
>>>> does not know how to parse them correctly because it displays some error
>>>> about a mistake in the file prolog (expecting a < and found a M). OK, so it
>>>> tries to read my HL7 file like if it was an XML one.
>>>>
>>>> So I check the doc and found that [1]. Nice! Let's try this!
>>>>
>>>> And... BOOM:
>>>>
>>>> Caused by: org.apache.axis2.deployment.DeploymentException:
>>>> org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
>>>> cannot be found by axis2_1.6.1.wso2v20
>>>> at org.apache.axis2.deployment.AxisConfigBuilder.processTranspo
>>>> rtReceivers(AxisConfigBuilder.java:639)
>>>> at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig
>>>> (AxisConfigBuilder.java:130)
>>>> at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConf
>>>> iguration(CarbonAxisConfigurator.java:341)
>>>> at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfigura
>>>> tion(CarbonAxisConfigurator.java:192)
>>>> ... 41 more
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
>>>> cannot be found by axis2_1.6.1.wso2v20
>>>>
>>>> I searched a little and I found a class [2] which seems to be in a
>>>> business-adaptors component which I can't find in my distribution.
>>>>
>>>> Where can I have it, please?
>>>>
>>>> Regards,
>>>>
>>>> Thomas
>>>>
>>>> [1] https://docs.wso2.com/display/EI600/HL7+Transport
>>>> [2] https://github.com/wso2/carbon-mediation/blob/master/compone
>>>> nts/business-adaptors/hl7/org.wso2.carbon.business.messaging
>>>> .hl7.transport/src/main/java/org/wso2/carbon/business/messag
>>>> ing/hl7/transport/HL7TransportListener.java
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Vinod Kavinda
>>> Senior Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>> [image: http://wso2.com/signature]
>>> <http://wso2.com/signature>
>>>
>>>
>>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EI 6.0.0 and HL7 transport activation

2017-11-09 Thread Vinod Kavinda
Hi Thomas,
The HL7 feature is not shipped with EI 6 by default, due to the licensing
issues. Did you install the HL7 feature as mentioned in the first paragraph
of the doc [1]?

[1] https://docs.wso2.com/display/EI600/HL7+Transport

Regards,
Vinod

On Thu, Nov 9, 2017 at 4:07 PM, Thomas LEGRAND  wrote:

> Hello,
>
> I have a use case where I have a directory in which are dropped HL7
> messages in the ER7 format (the pipe one). So I created an inbound endpoint
> which monitors this directory and eat every .hl7 file it founds. But, it
> does not know how to parse them correctly because it displays some error
> about a mistake in the file prolog (expecting a < and found a M). OK, so it
> tries to read my HL7 file like if it was an XML one.
>
> So I check the doc and found that [1]. Nice! Let's try this!
>
> And... BOOM:
>
> Caused by: org.apache.axis2.deployment.DeploymentException:
> org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
> cannot be found by axis2_1.6.1.wso2v20
> at org.apache.axis2.deployment.AxisConfigBuilder.
> processTransportReceivers(AxisConfigBuilder.java:639)
> at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
> AxisConfigBuilder.java:130)
> at org.wso2.carbon.core.CarbonAxisConfigurator.
> populateAxisConfiguration(CarbonAxisConfigurator.java:341)
> at org.wso2.carbon.core.CarbonAxisConfigurator.
> getAxisConfiguration(CarbonAxisConfigurator.java:192)
> ... 41 more
> Caused by: java.lang.ClassNotFoundException: org.wso2.carbon.business.
> messaging.hl7.transport.HL7TransportListener cannot be found by
> axis2_1.6.1.wso2v20
>
> I searched a little and I found a class [2] which seems to be in a
> business-adaptors component which I can't find in my distribution.
>
> Where can I have it, please?
>
> Regards,
>
> Thomas
>
> [1] https://docs.wso2.com/display/EI600/HL7+Transport
> [2] https://github.com/wso2/carbon-mediation/blob/master/
> components/business-adaptors/hl7/org.wso2.carbon.business.
> messaging.hl7.transport/src/main/java/org/wso2/carbon/
> business/messaging/hl7/transport/HL7TransportListener.java
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] RabbitMQ connection related errors on WSO2 startup

2017-11-04 Thread Vinod Kavinda
Hi Noberto,
I'm not sure how the *rabbitMQ *clusters are working. But based on the
error the EI has connected to your *rabbit@node2.site1 *as the error
suggested, and this error since it is down. I think this is something to do
with your rabbitMQ cluster because if you have configured to node1, there
is no way that EI can get node2 details if that was not some redirection by
the cluster :)

Regards,
Vinod

On Fri, Nov 3, 2017 at 7:20 PM, Norberto Fernandes 
wrote:

> Hi,
>
> Any ideias on the below issue?
> Already tried to run the IE with SNAPSHOT versions of axis and rabbitmq
> jar files but had the same outcome.
>
> This looks like a main issue for scenarios where we have one wso2 node
> connecting to rabbitmq cluster.
>
> Regards,
> Norberto
>
> On 2 Nov 2017, at 16:09, Norberto Fernandes 
> wrote:
>
> Hi all,
>
> I am getting some strange errors while starting up the WSO2 6.1.1 server.
> Hope that you can help.
>
> So, I have a single node WSO2 Server running and connecting to a RabbitMQ
> node (rmqNode1) that is part of a cluster of two (rmqNode1 and rmqNode2).
> Have in mind that all the transportSender and listeners are pointing to
> rmqNode1. No connection details are defined for rmqNode2.
>
>
> If I have the two RabbitMQ cluster nodes up and running and start the WSO2
> 6.1.1 server there isn’t any issue.
> With all servers up, if I shutdown rmqNode2, all continues ok with no
> errors.
>
> If I only have rmqNode1 up and then start WSO2 6.1.1, I get a endless
> stream of errors like :
> TID: [-1] [] [2017-11-02 15:34:48,232] ERROR 
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager}
> -  Error, Connection already closed myProxysample, Listner id - 78
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager}
> com.rabbitmq.client.AlreadyClosedException: channel is already closed due
> to channel error; protocol method: #method(reply-code=404,
> reply-text=NOT_FOUND - home node '*rabbit@node2.site1*' of durable queue
> ’sample.queue' in vhost ’sample' is down or inaccessible, class-id=50,
> method-id=10)
> at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:198)
> at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:244)
> at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:222)
> at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117)
> at com.rabbitmq.client.impl.ChannelN.queueDeclare(ChannelN.java:925)
> at com.rabbitmq.client.impl.recovery.AutorecoveringChannel.queueDeclare(
> AutorecoveringChannel.java:332)
> at org.apache.axis2.transport.rabbitmq.utils.RabbitMQUtils.
> declareQueue(RabbitMQUtils.java:213)
> at org.apache.axis2.transport.rabbitmq.ServiceTaskManager$
> MessageListenerTask.initConsumer(ServiceTaskManager.java:527)
> at org.apache.axis2.transport.rabbitmq.ServiceTaskManager$
> MessageListenerTask.run(ServiceTaskManager.java:335)
> at org.apache.axis2.transport.base.threads.NativeWorkerPool$
> 1.run(NativeWorkerPool.java:172)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> TID: [-1234] [] [2017-11-02 15:34:48,267]  INFO {
> org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector
> for servlet write/read {org.apache.tomcat.util.net.NioSelectorPool}
> TID: [-1] [] [2017-11-02 15:34:48,303]  INFO 
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager}
> -  Successfully reconnected to RabbitMQ Broker for the
> service myProxysampleSecond, Listner id - 78 {org.apache.axis2.transport.
> rabbitmq.ServiceTaskManager}
> TID: [-1] [] [2017-11-02 15:34:48,243] ERROR 
> {org.apache.axis2.transport.rabbitmq.ServiceTaskManager}
> -  Error, Connection already closed STD.cacheXRefReceiver.1.0.0, Listner id
> - 77 {org.apache.axis2.transport.rabbitmq.ServiceTaskManager}
> com.rabbitmq.client.AlreadyClosedException: channel is already closed due
> to channel error; protocol method: #method(reply-code=404,
> reply-text=NOT_FOUND - home node *'rabbit@node2.site1*' of durable queue
> ’second.sample.queue' in vhost 'sample' is down or inaccessible,
> class-id=50, method-id=10)
> at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:198)
>
> Please note that node2.site1 is the hostname for rmqNode2.
> I don’t think the server should complain about this. The node that is used
> on the transport configuration is always node1.
>
>
> Any ideias on what may be incorrect? Or can be done ?
> I didn’t find any connection parameter that is related to cluster setup,
> is there any?
>
>
> Many thanks in advance.
>
> Norbert

Re: [Dev] In a ESB sequence, how to continue process in case of error

2017-10-25 Thread Vinod Kavinda
Hi Thomas,
You can control the error scenarios in your Fault Sequence. If you haven't
added a fault sequence to your proxy service/ API the default fault
sequence will be invoked. If you want to control the error scenario, add a
fault sequence to your synapse configuration and include the relevant logic.

Refer [1] for more info.

[1] - https://docs.wso2.com/display/ESB500/Error+Handling

Regards,
Vinod

On Mon, Oct 23, 2017 at 4:02 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello,
>
> I have an inbound endpoint calling a sequence once triggered. In this
> sequence, I call a REST API which can return a 404 causing the whole
> sequence and subsequences to stop. But the return of the API is useful and
> I would like to continue the process with it even if it is a 404.
>
> Have you any idea how I can achieve that ?
>
> Regards,
>
> Thomas
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Vinod Kavinda
HI,
You can fix the second issue by enabling the property "
synapse.commons.json.output.disableAutoPrimitive.regex". Refer doc [1] for
more information.

[1] -
https://docs.wso2.com/display/EI611/JSON+Support#JSONSupport-XMLtoJSONtransformationparameters

/Vinod

On Wed, Oct 25, 2017 at 2:28 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Hi,
>
> Thanks Manorama , the 2nd issue is relsoved with this.
>
> Could you please help me with 1st issue as well ?
> Or Provide some configuration like above , which will preserve the array,
> even if there is only one element in array.
>
> With Regards
> Aditya
>
>
> On Wed, Oct 25, 2017 at 12:32 PM, Manorama Perera 
> wrote:
>
>> Hi Aditya,
>>
>> In order to preserve the double quotations around the numbers, you can
>> configure the below property in /repository/conf/syn
>> apse.properties
>>
>> synapse.commons.json.output.autoPrimitive=false
>>
>> Thanks,
>> Manorama
>>
>> On Wed, Oct 25, 2017 at 11:31 AM, aditya shivankar <
>> shivankar.adit...@gmail.com> wrote:
>>
>>> Below is the sample service I have created to Highlight the issues I am
>>> facing in my project(where the request and response are very big and these
>>> issues are repeating at many places).
>>>
>>> Request :
>>> {
>>> "id" : "3",
>>> "parts" : ["Screen"]
>>> }
>>>
>>> Actual Response :
>>> {
>>> "id": 3,
>>> "parts": "Screen",
>>> "make": "Tamsung"
>>> }
>>>
>>> Desired Response  :
>>>
>>> {
>>> "id": "3",
>>> "parts": ["Screen"],
>>> "make": "Tamsung"
>>> }
>>>
>>> 
>>> ---
>>> Issues :
>>>
>>> 1. "parts": "Screen",
>>>
>>>should have been like below
>>>
>>>"parts": ["Screen"],
>>>
>>>   i.e. it does not remain array anymore. I understand the array
>>> consist only one element. But the third party system to which the output of
>>> this service is sent as input(request) expects the element as array. So I
>>> need it to be as array.
>>>
>>> 2."id": 3,
>>>
>>> should have been like below
>>> "id": "3",
>>> i.e. the string should have been kept as string.
>>>
>>>
>>> 
>>> -------
>>> arrayTest.xml :
>>>
>>> 
>>> http://ws.apache.org/ns/synapse";>
>>> 
>>> 
>>>
>>> 
>>> 
>>> Tamsung
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Manorama Perera
>> Software Engineer
>> WSO2, Inc.;  http://wso2.com/
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamic routing key on rabbitmq endpoint

2017-09-18 Thread Vinod Kavinda
Hi,
Can you try using "get-property('sendToThisQueue')" other than using
the context. Found this blog post[1] by a wso2 developer that may useful.

[1] -
http://wso2tech.blogspot.com/2015/06/wso2-esb-dynamic-jms-endpoint.html

Regards,
Vinod

On Mon, Sep 18, 2017 at 1:13 PM, Norberto Fernandes 
wrote:

> Hi Developers,
>
> Could you please let me know if it is possible to pass a variable into a
> rabbitmq endpoint?
>
> I would like to set the routing key dynamically. So I was trying to use a
> property from the context and define the routing key based on that
> property. But I could not make it work.
>
> I tried :
>
>  key={ctx:key}&rabbitmq...”/>
>
> Where key is the context property where I have the desired value of the
> routing key.
>
> Thanks in advance.
>
> Regards,
> Norberto
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ${ballerina.home} variable found in the netty-transports.yml config in carbon-tranposrts

2017-09-17 Thread Vinod Kavinda
HI All,
In addition to what Sajith mentioned, shouldn't we move all the configs to
the deployment.yaml, according to the C5 based config model[1]? Why are we
having a separate config for netty?

[1] -
https://github.com/wso2/carbon-config/blob/master/docs/UpdatingConfigurations.md

On Mon, Sep 18, 2017 at 11:12 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Sajith,
>
> AFAIK with the redesign of carbon-transport, OSGi functionality is no
> longer valid in transport. But IMHO we should fix this.
>
> Thanks
> Thusitha
>
> On Mon, Sep 18, 2017 at 11:00 AM, SajithAR Ariyarathna 
> wrote:
>
>> Hi All,
>>
>> I noticed $subject [1]. Any particular reason behind this?
>>
>> This Ballerina variable has been introduced in v4.2.3 and presents at the
>> latest v6.0.7 too. IMO, this variable shouldn't be in the
>> netty-transports.yml as this is not a Ballerina repo.
>>
>> [1] https://github.com/wso2/carbon-transports/blob/v6.0.7/fe
>> atures/http/org.wso2.carbon.transport.http.netty.feature/res
>> ources/conf/netty-transports.yml#L136
>>
>> Thanks.
>>
>> --
>> Sajith Janaprasad Ariyarathna
>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>> <https://wso2.com/signature>
>>
>
>
>
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> <http://wso2.com/signature>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Local variables in a BPMN user task

2017-09-12 Thread Vinod Kavinda
Hi Thomas,
As I understood you are trying to set some process variables as local
variables for a task.
I can think of two options,

   1. Define form properties of the task with the same process variable
   name. (I'm not sure whether the scope will be local or not, haven't tried)
   2. Add a task listener and get the variable from the execution and set
   as a local variable.

execution.setVariableLocal(varName, value);

Regards,
Vinod

On Tue, Sep 12, 2017 at 2:04 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello everybody,
>
> Do you know if it is possible to set local variables to a User task
> automatically by using existing global variables?
>
> My use-case is the following:
>
> I have a process where you have to define some variables to create an
> instance. The first task is a user one in which I would like to set some
> local variables with some of the values passed during the creation of the
> instance.
> Then, I could query tasks with specific criteria via the endpoint
> /bpmn/query/tasks by using those local variables (because I can't filter on
> GLOBAL variables).
>
> I know we can define local variables to a user task with the REST API but
> that would mean that this is not automatically done with the param I set
> during the creation of the instance.
>
> Can you help me, please?
>
> Regards,
>
> Thomas
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Enterprise Integrator 6.2.0-M2 Released!

2017-08-10 Thread Vinod Kavinda
The WSO2 Integration team is pleased to announce the release of Enterprise
Integrator 6.2.0-M2. It is available for download now from following
location.

https://github.com/wso2/product-ei/releases/tag/v6.2.0-m2
*Tasks/Bug Fixes and Improvements*

WSO2 Jira - Fixed Issues <https://wso2.org/jira/issues/?filter=13946>
Product EI - Github fixed issues
<https://github.com/wso2/product-ei/issues?q=is%3Aissue+milestone%3A6.2.0+is%3Aclosed>
*List of Open Issues*

WSO2 Jira - Open Issues <https://wso2.org/jira/issues/?filter=13937>
WSO2 EI Github - Open Issues
<https://github.com/wso2/product-ei/issues?q=is%3Aopen+is%3Aissue>

*Mailing Lists*
Join our mailing list and correspond with the developers directly.
Developer List : dev@wso2.org | Subscribe | Mail Archive
User Forum : StackOverflow

*Reporting Issues*

We encourage you to report issues, improvements and feature requests
regarding WSO2 Integrator through WSO2 EI GIT Issues.

~ The WSO2 Integration Team ~

-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI-Analytics] [kubernetes] NPE when activating analytics data service

2017-08-08 Thread Vinod Kavinda
leged(ServiceRegistry.java:819)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>> blishServiceEvent(ServiceRegistry.java:771)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>> nImpl.register(ServiceRegistrationImpl.java:130)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>> gisterService(ServiceRegistry.java:214)
>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>> egisterService(BundleContextImpl.java:433)
>> at org.eclipse.equinox.http.servlet.internal.Activator.register
>> HttpService(Activator.java:81)
>> at org.eclipse.equinox.http.servlet.internal.Activator.addProxy
>> Servlet(Activator.java:60)
>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(
>> ProxyServlet.java:40)
>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(
>> DelegationServlet.java:38)
>> at org.apache.catalina.core.StandardWrapper.initServlet(Standar
>> dWrapper.java:1269)
>> at org.apache.catalina.core.StandardWrapper.loadServlet(Standar
>> dWrapper.java:1182)
>> at org.apache.catalina.core.StandardWrapper.load(StandardWrappe
>> r.java:1072)
>> at org.apache.catalina.core.StandardContext.loadOnStartup(Stand
>> ardContext.java:5368)
>> at org.apache.catalina.core.StandardContext.startInternal(Stand
>> ardContext.java:5660)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.
>> java:145)
>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>> inerBase.java:1571)
>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>> inerBase.java:1561)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>> [2017-08-08 04:15:09,288] [EI-Analytics]  INFO
>> {org.wso2.carbon.core.init.JMXServerManager} -  JMX Service URL  :
>> service:jmx:rmi://localhost:2/jndi/rmi://localhost:1/jmxrmi
>> [2017-08-08 04:15:09,330] [EI-Analytics]  INFO
>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -
>> Server   :  WSO2 Enterprise Integrator Analytics-6.0.0
>> [2017-08-08 04:15:09,331] [EI-Analytics]  INFO
>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
>> Carbon started in 45 sec
>>
>> Any idea on what's wrong, may be with the configurations ?
>>
>> Current configurations can be found at [3].
>>
>> References :
>> - - - - - - - - - - -
>> [1] [Architecture] [Kubernetes] Improving Kubernetes Deployment Support
>> for WSO2 Products
>> [2] https://github.com/DilanUA/kubernetes-ei/tree/master/pattern
>> -2/wso2ei-integrator-ha-analytics-stdln
>> [3] https://github.com/DilanUA/conf-ei/tree/master/pattern-2/wso
>> 2ei-integrator-ha-analytics-stdln/wso2ei-analytics-nod-stdln
>>
>> Thanks,
>> Dilan.
>>
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Recursively request going on for one soap request

2017-08-04 Thread Vinod Kavinda
Hi Senuwan,
As a solution, Please use a Call mediator in place of the send mediator in
the outSequece.

Regards,
Vinod


On Fri, Aug 4, 2017 at 4:55 PM, Nandika Jayawardana 
wrote:

> This is the expected behavior. In in sequence, the request is sent to the
> endpoint and response returns to the out sequence. When the message is sent
> from out sequence, the response returns to the out sequence, resulting in
> the loop.
>
> Regards
> Nandika
>
> On Fri, Aug 4, 2017 at 12:20 PM, Senuwan Withana  wrote:
>
>>
>> *Scenario *
>> I have created below proxy and added address endpoint URL.However by
>> mistakenly I have added same endpoint URL to the 'Out Sequence'. After that
>> I have send one SOAP request. in back-end recursively request going on.
>>
>>
>> *Please refer XML file   [WSO2-ESB 4.9.0]*
>>
>> 
>> http://ws.apache.org/ns/synapse";
>>name="tenone"
>>transports="http,https"
>>statistics="disable"
>>trace="disable"
>>startOnLoad="true">
>>
>>   
>>  
>>  
>> 
>>http://www.mocky.io/v2/59
>> 84075e11b601416671"/>
>> 
>>  
>>   
>>   
>>  
>> 
>>http://www.mocky.io/v2/59
>> 84075e11b601416671"/>
>> 
>>  
>>   
>>
>>
>> 
>>
>>
>>
>> *Carbon Log file is attached *
>>
>> As per my understand this might not be the expected behaviour and what we
>> would able to do this.
>>
>>
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853 <077%20321%202853>
>> Web: http://www.wso2.com
>>
>>
>>
>
>
> --
> Nandika Jayawardana
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EI 6.1.1 PayloadFactory mediator

2017-07-25 Thread Vinod Kavinda
Hi Melodies,
As per my knowledge, this config should work by sending the text/xml to the
backend. However, this could happen while rebuilding the message by the
PayloadFactory.

You can overcome your issue by setting the messageType property to text/xml.

.

Since this worked fine in 4.8.1 for you, please report a bug in [1] with
config and logs if you have, then we can fix this if there is an issue.

[1] - https://github.com/wso2/product-ei/issues

Regards,
Vinod

On Tue, Jul 25, 2017 at 1:48 PM, Melodias  wrote:

> Hi Vinod Kavinda,
> Thanks for replay.
> My inSeq:
>
> 
>
>   http://org.apache.synapse/xsd";
> expression="get-property('transport', 'Content-Type')" name="LOG1" />
>
> type="STRING"
> value="true" />
> name="headerSave" scope="default" type="OM" />
>
>   
>   
>
>
>   
>  
> 
>http://pl.esp.ws/";>
>   CODE_$1
>   pl
>
> 
> 
> />
> 
>  
>   
>   
>  
> http://org.apache.synapse/xsd";
> expression="get-property('transport', 'Content-Type')" name="LOG2" />
>  
>  
> 
>http://pl.esp.ws/";>
>   SIMPLE_CODE_$1
>   pl
>
> 
> 
> />
> 
>  
>  
> http://org.apache.synapse/xsd";
> expression="get-property('transport', 'Content-Type')" name="LOG3" />
>  
>   
>
>
>   http://org.apache.synapse/xsd";
> expression="get-property('transport', 'Content-Type')" name="LOG4" />
>
>
>   
>
>
> 
>
> OS: Ubuntu 14.04.2 LTS
> Java: oracle jdk1.8.0_141
>
> I attached axis2.xml and carbon.xml
> axis2.xml
> <http://wso2-oxygen-tank.10903.n7.nabble.com/file/n150571/axis2.xml>
> carbon.xml
> <http://wso2-oxygen-tank.10903.n7.nabble.com/file/n150571/carbon.xml>
>
>
>
> --
> View this message in context: http://wso2-oxygen-tank.10903.
> n7.nabble.com/WSO2-EI-6-1-1-PayloadFactory-mediator-tp150568p150571.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
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EI 6.1.1 PayloadFactory mediator

2017-07-25 Thread Vinod Kavinda
Hi Melodies,
Can you please share your configuration.

Regards,
Vinod

On Tue, Jul 25, 2017 at 1:09 PM, Melodias  wrote:

> Hi,
> When I use payload factory mediator then my content type is changing from
> text/xml to application/xml. After that, when I call backend i got error.
> In
> ESB 4.8.1 that problem not exists.
>
> Is it intentional action of mediator or is it bug?
>
>
>
>
> --
> View this message in context: http://wso2-oxygen-tank.10903.
> n7.nabble.com/WSO2-EI-6-1-1-PayloadFactory-mediator-tp150568.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
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Enterprise Integrator 6.2.0-M1 Released!

2017-07-14 Thread Vinod Kavinda
The WSO2 Integration team is pleased to announce the release of Enterprise
Integrator 6.2.0-M1. It is available for download now from following
location.

https://github.com/wso2/product-ei/releases/tag/v6.2.0-m1
*Tasks/Bug Fixes and Improvements*

WSO2 Jira - Fixed Issues <https://wso2.org/jira/issues/?filter=13936>
Product EI - Github fixed issues
<https://github.com/wso2/product-ei/issues?q=is%3Aissue+milestone%3A6.2.0+is%3Aclosed>
*List of Open Issues*

WSO2 Jira - Open Issues <https://wso2.org/jira/issues/?filter=13937>
WSO2 EI Github - Open Issues
<https://github.com/wso2/product-ei/issues?q=is%3Aopen+is%3Aissue>

*Mailing Lists*
Join our mailing list and correspond with the developers directly.
Developer List : dev@wso2.org | Subscribe | Mail Archive
User Forum : StackOverflow

*Reporting Issues*

We encourage you to report issues, improvements and feature requests
regarding WSO2 Integrator through WSO2 EI GIT Issues.

~ The WSO2 Integration Team ~

-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Foreach is not working properly under AggregateMediator's scope in response flow

2017-07-12 Thread Vinod Kavinda
Hi Aditya,
Please use Iterate mediator with the Aggregate mediator. Please refer [1],
it explains the difference between the forEach and Iterate mediators.

[1] - https://docs.wso2.com/display/ESB490/ForEach+Mediator

Thanks,
Vinod

On Wed, Jul 12, 2017 at 1:34 PM, Sudharma Subasinghe 
wrote:

> Hi,
>
> Foreach mediator is working properly, above issue can be occurred when log
> mediator is invoking.
>
> On Tue, Jul 11, 2017 at 2:48 PM, aditya shivankar <
> shivankar.adit...@gmail.com> wrote:
>
>> Foreach is not working properly under AggregateMediator's scope in
>> response flow
>>
>> Input request :
>>
>> [
>> {
>> "name" : "Home"
>> },
>> {
>> "name" : "Car"
>> },
>> {
>> "name" : "Mobile"
>> }
>> ]
>>
>>
>> I am using iterate, to send each element of above array as request to a
>> passthrough service( In myactual project this is not pass through. for
>> better understanding of issue I kept it like this ).
>>
>> The responses of the pass through service are aggregated in one soap xml
>> by AggregateMediator.
>>
>>
>> Below is response from AggregateMediator
>>
>> 
>> http://schemas.
>> xmlsoap.org/soap/envelope/">
>> 
>> 
>> 
>> Mobile
>> 
>> 
>> Car
>> 
>> 
>> Home
>> 
>> 
>> 
>> 
>>
>>
>> Using foreach to modify each response depending on some parameters coming
>> in response.
>> But Foreach is not working properly under Aggregator scope in response
>> flow . Its response is weird.
>> -
>> For-each response :
>>
>> [2017-07-11 14:07:44,696]  INFO - LogMediator msg4 = "Inside Foreach"
>> [2017-07-11 14:07:44,697]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
>> response, Envelope: 
>> http://schemas.
>> xmlsoap.org/soap/envelope/">
>> 
>> 
>> Home
>> 
>> 
>> 
>>
>> [2017-07-11 14:07:44,697]  INFO - LogMediator msg4 = "Inside Foreach"
>> [2017-07-11 14:07:44,697]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
>> response, Payload: {"name":"Home"}
>>
>> [2017-07-11 14:07:44,697]  INFO - LogMediator msg4 = "Inside Foreach"
>> [2017-07-11 14:07:44,698]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
>> response, Payload: {"name":"Home"}
>>
>> 
>> 
>> The second and third iterate of foreach should have been like below :
>>
>> http://schemas.
>> xmlsoap.org/soap/envelope/">
>> 
>> 
>> Mobile
>> 
>> 
>> 
>>
>> http://schemas.
>> xmlsoap.org/soap/envelope/">
>> 
>> 
>> Car
>> 
>> 
>> 
>>
>> Instead of :
>>
>>  Payload: {"name":"Home"}
>>  Payload: {"name":"Home"}
>>
>>  Please find attached flow xml's.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sudharma Subasinghe,
> Software Engineer,
> WSO2 Inc.
> Email: sudhar...@wso2.com 
> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] net.sf.saxon.om.NamePool$NamePoolLimitException: NamePool limit exceeded:

2017-07-05 Thread Vinod Kavinda
Hi,
What is the product version you are using?
If you are using  EI 6.x, remove the xalan-2.7.2.wso2v2.jar file from the
/wso2/lib/endorsed directory. This jar is required only if you are
using business process profile.

Regards,
Vinod

On Mon, Jul 3, 2017 at 2:54 AM, Júnior  wrote:

> Hi Himasha,
>
> I will try to grab the logs, but as I could see from the JIRA there is no
> fix for that?
>
> Is there any suggestion for this?
>
> Thanks,
>
> 2017-07-01 22:53 GMT-03:00 Himasha Guruge :
>
>> Hi Francisco,
>>
>> Could you provide the complete error log? Looks like the issue is as
>> reported in [1].
>>
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-3363
>>
>> Thanks,
>> Himasha
>>
>> On Sat, Jul 1, 2017 at 5:18 AM, Júnior  wrote:
>>
>>> Hello,
>>>
>>> I am facing this exception when doing XQuery or XSLT transformation:
>>>
>>>
>>> net.sf.saxon.om.NamePool$NamePoolLimitException: NamePool limit
>>> exceeded:
>>>
>>>
>>>
>>> Does anyone knows a workaround for this?
>>>
>>> Thanks,
>>> --
>>> Francisco Ribeiro
>>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299 <+94%2077%20745%209299>
>> himas...@wso2.com
>>
>
>
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2017-06-30 Thread Vinod Kavinda
Hi,
I have tested Wso2 EI with the staged repo.

[x] stable - Go ahead and release

Regards,
Vinod

On Thu, Jun 29, 2017 at 3:36 PM, Chandana Napagoda 
wrote:

> Hi Devs,
>
> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.17.
>
> This release fixes the following issues
> https://github.com/wso2/carbon-kernel/milestone/15?closed=1
>
> Please test your products with kernel 4.4.17 RC1 and vote. The vote will
> be open for 72 hours or as longer as needed.
>
> Maven staging repository
> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1177/
>
> The tag to be voted upon :
> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.17-rc1
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable  - Go ahead and release
>
> Thank you
> Platform Team
>
> --
> *Chandana Napagoda*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com **Mobile : +94718169299
> <+94%2071%20816%209299>*
>
> *Blog  :http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>
> | http://chandana.napagoda.com <http://chandana.napagoda.com>*
>
> *Linkedin : http://www.linkedin.com/in/chandananapagoda
> <http://www.linkedin.com/in/chandananapagoda>*
>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Multiple DataBases

2017-06-29 Thread Vinod Kavinda
Hi Lipsa,
You need to create separate data sources for each DB[2]. Then inside your
mediation logic (proxy, api), incorporate result from both these
datasources.

[2] -
https://docs.wso2.com/display/EI600/Exposing+an+RDBMS+as+a+Data+Service

/Vinod

On Thu, Jun 29, 2017 at 1:18 PM, Lipsa Pradhan <
lipsa.prad...@adnatesolutions.com> wrote:

> I got this but it works only if the databases in one single RDBMS such as
> MySQL. I want to fetch data from MySQL and Oracle as well.
> How to do this?
>
>
>
> On Thu, Jun 29, 2017 at 11:47 AM, Vinod Kavinda  wrote:
>
>> Hi Lipsa,
>> Is it you need to fetch data from several DBs in your integration logic?
>> If that is the case, you can use data services in EI. Refer [1].
>>
>> [1] - https://docs.wso2.com/display/EI600/Data+Integration+Tutorials
>>
>> Regards,
>> Vinod
>>
>> On Thu, Jun 29, 2017 at 11:43 AM, Danushka Fernando 
>> wrote:
>>
>>> I think you are looking for [1]. You can configure multiple secondary
>>> userstores.
>>>
>>> [1] https://docs.wso2.com/display/ADMIN44x/Configuring+Secon
>>> dary+User+Stores
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Associate Tech Lead
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729 <+94%2071%20633%202729>
>>>
>>> On Thu, Jun 29, 2017 at 11:39 AM, Lipsa Pradhan <
>>> lipsa.prad...@adnatesolutions.com> wrote:
>>>
>>>> User related data..
>>>>
>>>> On Thu, Jun 29, 2017 at 11:23 AM, Danushka Fernando >>> > wrote:
>>>>
>>>>> Hi Lipsa
>>>>> What kind of data you want to fetch from those dbs? Do you want to
>>>>> expose data as service or do you want to fetch some user related data from
>>>>> those dbs?
>>>>>
>>>>> Thanks & Regards
>>>>> Danushka Fernando
>>>>> Associate Tech Lead
>>>>> WSO2 inc. http://wso2.com/
>>>>> Mobile : +94716332729 <+94%2071%20633%202729>
>>>>>
>>>>> On Thu, Jun 29, 2017 at 11:15 AM, Lipsa Pradhan <
>>>>> lipsa.prad...@adnatesolutions.com> wrote:
>>>>>
>>>>>> Hello All,
>>>>>>
>>>>>> Can we connect different databases to EI server?
>>>>>>
>>>>>> Actually, I want to fetch data from different DB such as some from
>>>>>> MySQL, some from Oracle and so on.
>>>>>>
>>>>>> And one more thing, I don't want to change the default DB i.e, the H2
>>>>>> DB and want to fetch data from different DBs (maybe as external DB , if
>>>>>> possible).
>>>>>>
>>>>>> Regards
>>>>>> Lipsa Pradhan
>>>>>>
>>>>>> ___
>>>>>> 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
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> <http://wso2.com/signature>
>>
>>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Multiple DataBases

2017-06-28 Thread Vinod Kavinda
Hi Lipsa,
Is it you need to fetch data from several DBs in your integration logic? If
that is the case, you can use data services in EI. Refer [1].

[1] - https://docs.wso2.com/display/EI600/Data+Integration+Tutorials

Regards,
Vinod

On Thu, Jun 29, 2017 at 11:43 AM, Danushka Fernando 
wrote:

> I think you are looking for [1]. You can configure multiple secondary
> userstores.
>
> [1] https://docs.wso2.com/display/ADMIN44x/Configuring+
> Secondary+User+Stores
>
> Thanks & Regards
> Danushka Fernando
> Associate Tech Lead
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>
> On Thu, Jun 29, 2017 at 11:39 AM, Lipsa Pradhan  adnatesolutions.com> wrote:
>
>> User related data..
>>
>> On Thu, Jun 29, 2017 at 11:23 AM, Danushka Fernando 
>> wrote:
>>
>>> Hi Lipsa
>>> What kind of data you want to fetch from those dbs? Do you want to
>>> expose data as service or do you want to fetch some user related data from
>>> those dbs?
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Associate Tech Lead
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729 <+94%2071%20633%202729>
>>>
>>> On Thu, Jun 29, 2017 at 11:15 AM, Lipsa Pradhan <
>>> lipsa.prad...@adnatesolutions.com> wrote:
>>>
>>>> Hello All,
>>>>
>>>> Can we connect different databases to EI server?
>>>>
>>>> Actually, I want to fetch data from different DB such as some from
>>>> MySQL, some from Oracle and so on.
>>>>
>>>> And one more thing, I don't want to change the default DB i.e, the H2
>>>> DB and want to fetch data from different DBs (maybe as external DB , if
>>>> possible).
>>>>
>>>> Regards
>>>> Lipsa Pradhan
>>>>
>>>> ___
>>>> 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
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problem in authentication

2017-06-19 Thread Vinod Kavinda
Hi Lipsa,
Your client is sending HTTP requests while the proxy service is configured
to only accept HTTPS requests. Either enable http also with proxy header
something like this,

 or send HTTPS requests from the client.

Regards,
Vinod

On Mon, Jun 19, 2017 at 5:04 PM, Lipsa Pradhan <
lipsa.prad...@adnatesolutions.com> wrote:

> Hello
>
> I am using Enterprise Integrator. I want to authorise customised users,
> using authentication service to have access tokens. I had tried "proxy
> service" method for this. But it isn't working.
>
> How can I do this?
>
>
> I'm getting this while firing the proxy service.
>
> http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:axis2ns7="http://www.w3.org/2003/05/soap-envelope";>
>   
>   axis2ns7:Sender
>   
>  xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>wsse:InvalidSecurity
>   
> 
> 
>   Expected transport is "https" but incoming 
> transport found : "http" 
> 
> 
> 
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Vote] Release WSO2 Enterprise Integrator 6.1.1 RC1

2017-05-02 Thread Vinod Kavinda
Hi All,
Tested the BPEL and BPMN functionality including BPMN explorer in BPS
profile.

[+] Stable - go ahead and release

Regards,
Vinod

On Tue, May 2, 2017 at 4:31 PM, Sasikala Kottegoda 
wrote:

> Hi all,
>
> I have tested distributed transactions for the broker profile of WSO2
> Enterprise Integrator 6.1.1 for the following scenarios:
> - dtx commit - Publish message to queue. Transactionally receive and
> publish to another queue
> - dtx rollback - Publish message to the same queue. Rollback the message
> continuously and and verify that it ends up in DLC.
> - dtx recover - Recover before and after preparing
> - Session joining
>
> [+] Stable - go ahead and release
>
> Thank you,
> Sasikala
>
> On Fri, Apr 28, 2017 at 5:50 PM, Milinda Perera  wrote:
>
>> Hi Devs,
>>
>> This is the first release candidate of WSO2 Enterprise Integrator 6.1.1.
>>
>> The vote will be open for 24 hours or as needed. Please download, test
>> the product and vote.
>>
>> Source & binary distribution files:
>>
>> *Product-EI:*
>>
>> https://svn.wso2.org/repos/wso2/scratch/EI/Votes/6.1.1-RC1/w
>> so2ei-6.1.1-rc1.zip
>>
>> *Tooling pack to be used for EI runtime testing:*
>>
>> https://svn.wso2.org/repos/wso2/people/erandac/ei_610_tooling/
>>
>>
>>
>> *The tag to be voted upon:*https://github.com/wso2/produc
>> t-ei/releases/tag/v6.1.1-rc1
>>
>> [-] Broken - do not release (explain why)
>> [+] Stable - go ahead and release
>>
>> Thanks,
>> Integration Team
>>
>> --
>> Milinda Perera
>> Senior Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032 <+94%2071%20411%205032>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sasikala Kottegoda
> *Senior Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928 <+94%2077%20483%205928>
>
> [image: https://wso2.com/signature] <https://wso2.com/signature>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [Vote] Release WSO2 Enterprise Integrator 6.1.0 RC1

2017-04-08 Thread Vinod Kavinda
Tested and verified following:
EI tooling,
  -Server startup
  -Capp deployment
BPS profile
  -BPMN basic functionality
  -HumanTask basic functionality
  -BPEL basic functionality
  -BPMN explorer
  -HumanTask Explorer

No issues found.
[x] Stable - go ahead and release

Regards,
Vinod


On Sun, Apr 9, 2017 at 12:08 AM, Vijitha Ekanayake 
wrote:

> Tested and verified the following:
>
> Proxy services, APIs
> JMS (Message Store/Processor, JMS Inbound, JMS Consumer/Producer
> scenarios) with WSO2 MB
> Data Mapper scenarios
> CAR file deployment through management console
> MSF4J service deployment
> BPMN processors (Mail Task, Rest Task, User Task)
> Mail Connector integration
> Data Services Sample scenarios (Soap, Rest)
>
>
> No issues found.
> [x] Stable - go ahead and release
>
> Thanks.
>
> On Sat, Apr 8, 2017 at 9:48 PM, Nandika Jayawardana 
> wrote:
>
>> Tested data services, microservice deployment, ciphertool, bpel
>> processes, bpmn processes, proxy services and  samples deployment.
>>
>> No issues found.
>> [x] Stable - go ahead and release
>>
>>
>> Nandika
>>
>> On Sat, Apr 8, 2017 at 6:52 PM, Prabushi Samarakoon 
>> wrote:
>>
>>> Tested the following.
>>>
>>>- Using mysql as a data service with INSERT, UPDATE, DELETE queries.
>>>- Deploying microservices and invoking them.
>>>- Feature installation using a pom file.
>>>- Using VFS transport as a transport medium and for file procesing.
>>>- Management console footer update.
>>>- Namespace editor UI update.
>>>- Data source test connection pop up UI update.
>>>
>>>
>>> No issues found.
>>> [x] Stable - go ahead and release
>>>
>>> Thanks,
>>> Prabushi
>>>
>>> On Sat, Apr 8, 2017 at 5:26 AM, Eranda Rajapakshe 
>>> wrote:
>>>
>>>> Hi Devs, This is the first release candidate of WSO2 Enterprise
>>>> Integrator 6.1.0.
>>>>
>>>> The vote will be open for 24 hours or as needed. Please download, test
>>>> the product and vote. ​​This release fixes the following issues: 
>>>> *https://github.com/wso2/product-ei/issues?q=is%3Aissue+is%3Aclosed+milestone%3A6.1.0
>>>> <https://github.com/wso2/product-ei/issues?q=is%3Aissue+is%3Aclosed+milestone%3A6.1.0>*
>>>> ​​*Source & binary distribution files*:
>>>> Product-EI
>>>>
>>>> https://svn.wso2.org/repos/wso2/scratch/EI/6.1.0-RC1/wso2ei-
>>>> 6.1.0-rc1.zip
>>>> https://github.com/wso2/product-ei/releases/tag/v6.1.0-rc1 Tooling pack
>>>>
>>>> https://svn.wso2.org/repos/wso2/people/erandac/ei_610_tooling/
>>>>
>>>> *​​*
>>>>
>>>> *The tag to be voted upon*: https://github.com/wso2/produc
>>>> t-ei/releases/tag/v6.1.0-rc1 [ ] Broken - do not release (explain why)
>>>> [ ] Stable - go ahead and release Thanks, Integration Team
>>>>
>>>> ___
>>>> Architecture mailing list
>>>> architect...@wso2.org
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>>
>>>
>>>
>>> --
>>> *Prabushi Samarakoon*
>>> Software Engineer
>>> Mobile: +94715434580 <071%20543%204580>
>>> Email: prabus...@wso2.com
>>>
>>> _______
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nandika Jayawardana
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the pull request

2017-04-05 Thread Vinod Kavinda
Hi Kishanthan,
Please review and merge PR[1] for preparing 4.4.16 release.

[1] - https://github.com/wso2/carbon-kernel/pull/1350

Thanks

On Thu, Apr 6, 2017 at 10:37 AM, Vijitha Ekanayake 
wrote:

> Hi Kishanthan,
>
> I've updated the PR[1] with the issue[2] and a proper description. Could
> you review and merge the pull request?
>
>
> [1]. https://github.com/wso2/carbon-kernel/pull/1349
> [2]. https://github.com/wso2/product-ei/issues/322
>
>
> Thanks
>
> On Thu, Apr 6, 2017 at 9:59 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Can you also create a github issue with the proper description for this
>> and link it with the PR?
>>
>> On Wed, Apr 5, 2017 at 9:44 PM, Vijitha Ekanayake 
>> wrote:
>>
>>> Hi Carbon team,
>>>
>>> Please merge the pull request [1] which contains critical fixes to
>>> support DSS multitenancy over passthru transport.
>>>
>>> [1]. https://github.com/wso2/carbon-kernel/pull/1349
>>>
>>> Thanks.
>>>
>>> --
>>> Vijitha Ekanayake
>>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635 <+94%2077%20342%206635>
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>



-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Enterprise Integrator 6.1.0 Alpha Released!

2017-03-28 Thread Vinod Kavinda
The tooling distribution for alpha release also is available to download at
[1].

[1] -
https://github.com/wso2/devstudio-tooling-ei/releases/tag/Released-1.1.0-release-2017-03-27-162435


Thanks,
 -WSO2 Integration Team-


On Wed, Mar 29, 2017 at 9:14 AM, Eranda Rajapakshe  wrote:

> WSO2 Integration Team is pleased to announce the alpha release of WSO2
> Enterprise Integrator (EI) 6.1.0.
>
> Source & Distribution: https://github.com/wso2/produc
> t-ei/releases/tag/v6.1.0-ALPHA
> Known issues: https://github.com/wso2/product-ei/issues
>
>
> *How to Run*
>
> 1. Extract the downloaded zip.
>
> 2. Start the required profile,
>
>- For following profiles, go to \bin directory and execute
>the appropriate script.
>
> Enterprise Integrator (integrator.sh / integrator.bat)
> Integrator Analytics (analytics.sh / analytics.bat)
> Business Process Server (business-process.sh / business-process.bat)
> Message Broker (broker.sh / broker.bat)
>
>
>- For MSF4J profile, go to \wso2\msf4j\bin directory and
>execute the appropriate script.
>
> MSF4J (carbon.sh / carbon.bat)
>
>
> 3. Launch a web browser and navigate to https://localhost:9443/carbon to
> access the Enterprise Integrator Management Console.
>
> 4. Navigate to https://localhost:9444/carbon to access analytics
> management console and https://localhost:9444/dashboard to access
> Enterprise Integrator Dashboard.
>
> 5. Navigate to https://localhost:9445/carbon to access business process
> management console.
>
> 6. Navigate to https://localhost:9446/carbon to access broker management
> console.
>
> 7. Use "admin", "admin" as the username and password to login as an admin.
>
>
> Thanks,
>  -WSO2 Integration Team-
>
> --
> *Eranda Rajapakshe*
> Software Engineer
> WSO2 Inc.
> Mobile : +94784822608
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPS 3.6.0 Problem with retry Invoke

2017-02-16 Thread Vinod Kavinda
Hi,
In order to retry is possible, you need to configure your BPEL in such a
way. Following blog pos t[1] from our colleague might help.

[1] -
http://tryitnw.blogspot.com/2014/03/recovering-bpel-activity-failures-wso2.html

Regards,
Vinod

On Thu, Feb 16, 2017 at 12:09 PM, Melodias  wrote:

> Hi,
> I have problem with retry invoke when web service send me back fault
> message.
> When I login into the console and select BPEL Instances, my instance have
> status failed and I can't use Retry option on that Invoke.
> Any idea how to config process to let me retry invoke when i got fault
> message?
>
>
>
> --
> View this message in context: http://wso2-oxygen-tank.10903.
> n7.nabble.com/BPS-3-6-0-Problem-with-retry-Invoke-tp146592.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
>



-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon-Business-Process 4.4.11 released.

2017-02-01 Thread Vinod Kavinda
Hi All,
Carbon-Business-Process 4.4.11 released.

org.wso2.carbon.business-process
carbon-business-process
4.4.11

Regards,
Vinod
-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-business-process build failure (was: [Builder] Build failed in Jenkins: carbon-business-process #2420)

2017-01-30 Thread Vinod Kavinda
Hi KasunG,
I think it is  wso2-scm-server.

/vinod


On Tue, Jan 31, 2017 at 12:47 PM, Vinod Kavinda  wrote:

> [Adding hasitha,Nandika]
>
> On Tue, Jan 31, 2017 at 12:43 PM, KasunG Gajasinghe 
> wrote:
>
>> Hi all,
>>
>> The maven-release-plugin which is part of the Jenkins wso2 maven release
>> plugin has failed to find the credentials.
>>
>> These credentials are read from maven settings.xml. There should be a
>>  entry for the project.scm.id you guys are using. What is the
>> project.scm.id you are using?
>>
>>
>> On Tue, Jan 31, 2017 at 9:51 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Vinod
>>>
>>> Just checked the configuration, the credentials (wso2-jenkins-bot) are
>>> the same given in other jobs as well.
>>>
>>> @kasung : please advice.
>>>
>>> On Tue, Jan 31, 2017 at 9:34 AM, Vinod Kavinda  wrote:
>>>
>>>> Hi KasunG,
>>>> The business process build has failed when trying to do a release after
>>>> a commit. It seems the GitHub credentials are incorrect. Please have a 
>>>> look.
>>>>
>>>> Regards,
>>>> Vinod
>>>>
>>>> On Tue, Jan 31, 2017 at 9:22 AM,  wrote:
>>>>
>>>>> See <https://wso2.org/jenkins/job/carbon-business-process/2420/changes
>>>>> >
>>>>>
>>>>> Changes:
>>>>>
>>>>> [suba.11] fixing issues with #447
>>>>>
>>>>> --
>>>>> [...truncated 21671 lines...]
>>>>> [WARNING] Ignoring unrecognized line: ?? features/unified-endpoint/pom.
>>>>> xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? release.properties
>>>>> [WARNING] Ignoring unrecognized line: ?? repoLastDeleteRecord.txt
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/application-mgt/
>>>>> org.wso2.carbon.application.mgt.bpel.stub/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/application-mgt/
>>>>> org.wso2.carbon.application.mgt.humantask.stub/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/application-mgt/
>>>>> pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/attachment-mgt/o
>>>>> rg.wso2.carbon.attachment.mgt.skeleton/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/attachment-mgt/o
>>>>> rg.wso2.carbon.attachment.mgt.stub/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/attachment-mgt/p
>>>>> om.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/
>>>>> org.wso2.carbon.bpel.analytics.publisher.
>>>>> skeleton/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/
>>>>> org.wso2.carbon.bpel.analytics.publisher.stub/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/
>>>>> org.wso2.carbon.bpel.skeleton/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/
>>>>> org.wso2.carbon.bpel.stub/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/pom.xml.rel
>>>>> easeBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpmn/
>>>>> org.wso2.carbon.bpmn.stub/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpmn/pom.xml.rel
>>>>> easeBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/humantask/
>>>>> org.wso2.carbon.humantask.skeleton/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/humantask/
>>>>> org.wso2.carbon.humantask.stub/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/humantask/pom.xm
>>>>> l.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/unified-endpoint
>>>>> /org.wso2.carbon.unifiedendpoint.stub/pom.xml.releaseBackup
>>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/unified-endpoint
>>>>> /pom.xml.relea

Re: [Dev] carbon-business-process build failure (was: [Builder] Build failed in Jenkins: carbon-business-process #2420)

2017-01-30 Thread Vinod Kavinda
[Adding hasitha,Nandika]

On Tue, Jan 31, 2017 at 12:43 PM, KasunG Gajasinghe  wrote:

> Hi all,
>
> The maven-release-plugin which is part of the Jenkins wso2 maven release
> plugin has failed to find the credentials.
>
> These credentials are read from maven settings.xml. There should be a
>  entry for the project.scm.id you guys are using. What is the
> project.scm.id you are using?
>
>
> On Tue, Jan 31, 2017 at 9:51 AM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Vinod
>>
>> Just checked the configuration, the credentials (wso2-jenkins-bot) are
>> the same given in other jobs as well.
>>
>> @kasung : please advice.
>>
>> On Tue, Jan 31, 2017 at 9:34 AM, Vinod Kavinda  wrote:
>>
>>> Hi KasunG,
>>> The business process build has failed when trying to do a release after
>>> a commit. It seems the GitHub credentials are incorrect. Please have a look.
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Tue, Jan 31, 2017 at 9:22 AM,  wrote:
>>>
>>>> See <https://wso2.org/jenkins/job/carbon-business-process/2420/changes>
>>>>
>>>> Changes:
>>>>
>>>> [suba.11] fixing issues with #447
>>>>
>>>> --
>>>> [...truncated 21671 lines...]
>>>> [WARNING] Ignoring unrecognized line: ?? features/unified-endpoint/pom.
>>>> xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? release.properties
>>>> [WARNING] Ignoring unrecognized line: ?? repoLastDeleteRecord.txt
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/application-mgt/
>>>> org.wso2.carbon.application.mgt.bpel.stub/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/application-mgt/
>>>> org.wso2.carbon.application.mgt.humantask.stub/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/application-mgt/
>>>> pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/attachment-mgt/o
>>>> rg.wso2.carbon.attachment.mgt.skeleton/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/attachment-mgt/o
>>>> rg.wso2.carbon.attachment.mgt.stub/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/attachment-mgt/p
>>>> om.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/org.wso2.ca
>>>> rbon.bpel.analytics.publisher.skeleton/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/org.wso2.ca
>>>> rbon.bpel.analytics.publisher.stub/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/org.wso2.ca
>>>> rbon.bpel.skeleton/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/org.wso2.ca
>>>> rbon.bpel.stub/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpel/pom.xml.rel
>>>> easeBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpmn/org.wso2.ca
>>>> rbon.bpmn.stub/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/bpmn/pom.xml.rel
>>>> easeBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/humantask/org.ws
>>>> o2.carbon.humantask.skeleton/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/humantask/org.ws
>>>> o2.carbon.humantask.stub/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/humantask/pom.xm
>>>> l.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/unified-endpoint
>>>> /org.wso2.carbon.unifiedendpoint.stub/pom.xml.releaseBackup
>>>> [WARNING] Ignoring unrecognized line: ?? service-stubs/unified-endpoint
>>>> /pom.xml.releaseBackup
>>>> [INFO] Executing: /bin/sh -c cd <https://wso2.org/jenkins/job/
>>>> carbon-business-process/ws/> && git commit --verbose -F
>>>> /tmp/maven-scm-614765158.commit pom.xml 
>>>> service-stubs/attachment-mgt/pom.xml
>>>> service-stubs/attachment-mgt/org.wso2.carbon.attachment.mgt.skeleton/pom.xml
>>>> service-stubs/attachment-mgt/org.wso2.carbon.attachment.mgt.stub/pom.xml
>>>> servi

Re: [Dev] Supporting MongoDB as a Secondary Userstore : an Extension for WSO2 Platform

2017-01-09 Thread Vinod Kavinda
Hi All,
FYI, there is another attempt for using MongoDB with WSO2 Analytics. See
the Dev mail thread [1].

[1] - "[Dev] [MongoDB] MongoDB support for analytics"

On Mon, Jan 9, 2017 at 12:30 PM, Asantha Thilina 
wrote:

> Hi all,
>
> I am willing to contribute and January (30, 31) is ok for me for a meeting
>
> thanks,
> Asantha
>
> On Sun, Jan 8, 2017 at 10:20 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Devs,
>>
>> Along with Google Summer of Code 2016, we initiated this project [1] for
>> supporting MongoDB as a secondary userstore for WSO2 products.
>>
>> Asantha (CC'ed) here successfully completed the project where it
>> supported IS 5.1.0. (for IS 5.2.0 we need to do some minor modification to
>> get it to working and for IS 5.3.0 which is about to be released.. we'll
>> have to do some more changes because the claim management API is changed).
>>
>> We cannot ship this with a WSO2 product, because it is not scalable. The
>> end user might use a different version of MongoDB database or JDBC driver,
>> releasing patches would be difficult if any bug is found etc.
>>
>> Therefore the best way is to develop it as a connector (extension) and
>> publicly release to WSO2 store.
>>
>> For that, I am initiating this email where we can discuss on how to
>> proceed with this.
>>
>> @Kathees - I hope you can take the ownership of this. We can get
>> Asantha's help as well whenever necessary.
>>
>> My idea is to have a meeting for this during the last week of January
>> (30,31) and come up with a plan.
>>
>> [1] https://docs.wso2.com/display/GSoC/Project+Proposals+for+201
>> 6#ProjectProposalsfor2016-Proposal21:[IS]DocumentBasedNoSQLS
>> upportforWSO2IdentityServerDatabase
>>
>> Thanks,
>> TharinduE
>>
>> --
>>
>> Tharindu Edirisinghe
>> Senior Software Engineer | WSO2 Inc
>> Platform Security Team
>> Blog : tharindue.blogspot.com
>> mobile : +94 775181586 <+94%2077%20518%201586>
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Willing to Contribute in Machine Learning Projects

2017-01-03 Thread Vinod Kavinda
[Adding Nirmal, Seshika]

On Tue, Jan 3, 2017 at 4:40 PM, Satyarth Praveen 
wrote:

> Hi,
>
> I am Satyarth and I am willing to contribute to WSO2.
> I have been involved in the field of Machine Learning for a while now and
> wish to contribute to a similar project.
>
> I found *carbon-ml* and *product-ml* repositories in WSO2 that match this
> profile.
>
> It'll be great if someone could help me figure out how to proceed or if
> there is a better machine learning project that I could work.
>
> Thank you
>
> Regards,
> Satyarth Praveen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 IS] Issue whien trying to customize user form creation

2016-12-22 Thread Vinod Kavinda
Hi,
How did you add the modified jar? You need to add it as a patch. Here is a
guide [1].

[1] - https://docs.wso2.com/display/Carbon420/Applying+a+Patch+to+the+Kernel


Regards,
Vinod

On Wed, Dec 21, 2016 at 10:35 PM, Hanen Ben Rhouma 
wrote:

> Hello,
>
> I am trying to enrich the user creation form within WSO2 IS. For this I
> checked out the source code of org.wso2.carbon.user.mgt.ui-5.6.34 and
> changed it a bit by adding an "organization" attribute within the first
> step in user creation form (modified *add-step1.jsp*,
> *add-finish-ajaxprocessor.jsp* and *UserBean.java*).
>
> After generating the jar and restarting WSO2 IS I noticed that the field
> is there and I can fill it and the creation if successfully finished but
> when I display my user profile the "organization" field is empty and even
> within ApacheDs the information wasn't persisted.
>
> Do I have to modify the server bundle as well
> (org.wso2.carbon.user.mgt_5.6.34). If so could you please guide me where
> the new attribute needs to be declared.
>
>
> Regards,
> Hanen
>
>
>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE][RC1] Release - WSO2 Business Process Server 3.6.0 RC1

2016-08-25 Thread Vinod Kavinda
Hi,
I verified,

   - Substitution feature.
   - BPMN Explorer.
   - Human Task Explorer.
   - Migration from 3.5.1.

[+] Stable - go ahead and release.

Regards,
Vinod

On Wed, Aug 24, 2016 at 2:30 PM, Milinda Perera  wrote:

> Hi All,
>
> This is the 1st Release Candidate of WSO2 Business Process Server 3.6.0
>
> Please download, test the product and vote. Vote will be open for 72 hours
> or as needed.
>
> *Source and distribution*
>
> *Run-time* : https://github.com/wso2/product-bps/releases/tag/v3.6.0-RC1
> *Tooling*  : https://github.com/wso2/devstudio-tooling-bps/
> releases/tag/Released-release-3.6.0-RC1-2016-08-24-114818
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
> Thanks,
> ~ WSO2 BPS Team ~
>
> --
> Milinda Perera
> Senior Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5]Class cast exception in MSF4j OAuth2 intercepter

2016-08-22 Thread Vinod Kavinda
Hi Thusitha,

Please Ignore above reply. I did not try this with Basic auth.

Regards,
Vinod

On Mon, Aug 22, 2016 at 1:33 PM, Vinod Kavinda  wrote:

> Yes. Getting the same error when running the sample with 2.0.1-SNAPSHOT
> and when using inside BPS with v2.0.0.
>
> Regards,
> Vinod
>
> On Mon, Aug 22, 2016 at 1:29 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Vinod,
>>
>> Are you getting this error when you run the basicauth sample?
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Aug 22, 2016 at 12:40 PM, Vinod Kavinda  wrote:
>>
>>> Hi All,
>>> I'm trying to use the OAuth2 intercepter from msf4j. I have tried the
>>> OAuth2 sample from [1] and getting the following error. Problem seem to be
>>> the line [2] where string is expected while a boolean is returned from the
>>> response map.
>>>
>>> Is this a known bug? or am I missing something here?
>>>
>>> org.wso2.msf4j.internal.InterceptorException: Exception while executing
>>> preCalls at org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>>> erceptorExecutor.java:69) at org.wso2.msf4j.internal.MSF4JM
>>> essageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113) at
>>> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JM
>>> essageProcessor.java:73) at org.wso2.carbon.transport.http
>>> .netty.listener.WorkerPoolDispatchingSourceHandler$1.run(Wor
>>> kerPoolDispatchingSourceHandler.java:127) at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1142) at java.util.concurrent.ThreadPoo
>>> lExecutor$Worker.run(ThreadPoolExecutor.java:617) at
>>> java.lang.Thread.run(Thread.java:745)
>>>
>>> Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be
>>> cast to java.lang.String at org.wso2.msf4j.security.oauth2
>>> .OAuth2SecurityInterceptor.validateToken(OAuth2SecurityInter
>>> ceptor.java:117) at org.wso2.msf4j.security.oauth2
>>> .OAuth2SecurityInterceptor.preCall(OAuth2SecurityInterceptor.java:80) at
>>> org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>>> erceptorExecutor.java:63)
>>>
>>> ... 6 more
>>> [2] - https://github.com/wso2/msf4j/tree/master/samples/oauth2-security
>>> [3] - https://github.com/wso2/msf4j/blob/master/core/src/main/ja
>>> va/org/wso2/msf4j/security/oauth2/OAuth2SecurityInterceptor.java#L117
>>>
>>> --
>>> Vinod Kavinda
>>> Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>> [image: http://wso2.com/signature]
>>> <http://wso2.com/signature>
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> <http://wso2.com/signature>
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5]Class cast exception in MSF4j OAuth2 intercepter

2016-08-22 Thread Vinod Kavinda
Yes. Getting the same error when running the sample with 2.0.1-SNAPSHOT and
when using inside BPS with v2.0.0.

Regards,
Vinod

On Mon, Aug 22, 2016 at 1:29 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Vinod,
>
> Are you getting this error when you run the basicauth sample?
>
> Thanks
> Thusitha
>
> On Mon, Aug 22, 2016 at 12:40 PM, Vinod Kavinda  wrote:
>
>> Hi All,
>> I'm trying to use the OAuth2 intercepter from msf4j. I have tried the
>> OAuth2 sample from [1] and getting the following error. Problem seem to be
>> the line [2] where string is expected while a boolean is returned from the
>> response map.
>>
>> Is this a known bug? or am I missing something here?
>>
>> org.wso2.msf4j.internal.InterceptorException: Exception while executing
>> preCalls at org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>> erceptorExecutor.java:69) at org.wso2.msf4j.internal.MSF4JM
>> essageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113) at
>> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JM
>> essageProcessor.java:73) at org.wso2.carbon.transport.http
>> .netty.listener.WorkerPoolDispatchingSourceHandler$1.run(Wor
>> kerPoolDispatchingSourceHandler.java:127) at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142) at java.util.concurrent.ThreadPoo
>> lExecutor$Worker.run(ThreadPoolExecutor.java:617) at
>> java.lang.Thread.run(Thread.java:745)
>>
>> Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast
>> to java.lang.String at org.wso2.msf4j.security.oauth2
>> .OAuth2SecurityInterceptor.validateToken(OAuth2SecurityInter
>> ceptor.java:117) at org.wso2.msf4j.security.oauth2
>> .OAuth2SecurityInterceptor.preCall(OAuth2SecurityInterceptor.java:80) at
>> org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>> erceptorExecutor.java:63)
>>
>> ... 6 more
>> [2] - https://github.com/wso2/msf4j/tree/master/samples/oauth2-security
>> [3] - https://github.com/wso2/msf4j/blob/master/core/src/main/
>> java/org/wso2/msf4j/security/oauth2/OAuth2SecurityInterceptor.java#L117
>>
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> <http://wso2.com/signature>
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [C5]Class cast exception in MSF4j OAuth2 intercepter

2016-08-22 Thread Vinod Kavinda
Hi All,
I'm trying to use the OAuth2 intercepter from msf4j. I have tried the
OAuth2 sample from [1] and getting the following error. Problem seem to be
the line [2] where string is expected while a boolean is returned from the
response map.

Is this a known bug? or am I missing something here?

org.wso2.msf4j.internal.InterceptorException: Exception while executing
preCalls at
org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(InterceptorExecutor.java:69)
at
org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113)
at
org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:73)
at
org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler$1.run(WorkerPoolDispatchingSourceHandler.java:127)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast
to java.lang.String at
org.wso2.msf4j.security.oauth2.OAuth2SecurityInterceptor.validateToken(OAuth2SecurityInterceptor.java:117)
at
org.wso2.msf4j.security.oauth2.OAuth2SecurityInterceptor.preCall(OAuth2SecurityInterceptor.java:80)
at
org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(InterceptorExecutor.java:63)

... 6 more
[2] - https://github.com/wso2/msf4j/tree/master/samples/oauth2-security
[3] -
https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/security/oauth2/OAuth2SecurityInterceptor.java#L117

-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5][BPS] Writing integration tests for Rest APIs

2016-08-16 Thread Vinod Kavinda
Thanks Hemika, I will have a look at this. Yes, we are using MSF4J.

@Manuranga, I'm testing REST APIs from Activiti that we have integrated.
I'm trying to test the resource authorizations for these APIs. I'm afraid
unit tests aren't an option for this.

Regards,
Vinod

On Wed, Aug 17, 2016 at 7:38 AM, Manuranga Perera  wrote:

> Are all the Java methods in the service class unit tested? What is the
> unit test code coverage?
>
> If so the integration will only be needed to test high level interactions.
>



-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [C5][BPS] Writing integration tests for Rest APIs

2016-08-16 Thread Vinod Kavinda
Hi,
I'm working in $subject. In C4 we had utility methods to start a server
instance and get server URLs. Then we used a HTTP client to test rest APIs.

In C5 how do we achieve the same?

Regards,
Vinod

-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification on C5 permission model

2016-08-11 Thread Vinod Kavinda
Thanks Thanuja.
@Rasika,@SajithAR
Any idea on defining the resources and actions (permission tree)?

Regards,
Vinod

On Fri, Aug 12, 2016 at 11:41 AM, Thanuja Jayasinghe 
wrote:

> Hi Vinod,
>
> You have to use the JAAS authorization API, instead calling CarbonPrincipa
> l.isAuthorized. As an example, let say we have a CarbonPrincipal. So we
> can use that principal to build a Subject.
>
> Subject subject = new Subject();
>
> subject.getPrincipals().add(carbonPrincipal);
>
> Then we can use this Subject to call the authorization  API,
>
> private boolean isAuthorized(Subject subject, final CarbonPermission 
> carbonPermission) {
>
> final SecurityManager securityManager;
>
> if (System.getSecurityManager() == null) {
> securityManager = new SecurityManager();
> } else {
> securityManager = System.getSecurityManager();
> }
>
> try {
> Subject.doAsPrivileged(subject, (PrivilegedExceptionAction) () -> {
> securityManager.checkPermission(carbonPermission);
> return null;
> }, null);
> return true;
> } catch (AccessControlException | PrivilegedActionException e) {
> if (log.isDebugEnabled()) {
> log.debug("Authorization Failed", e);
> }
> return false;
> }
> }
>
> Thanks,
> Thanuja
>
> On Fri, Aug 12, 2016 at 11:18 AM, Manuranga Perera  wrote:
>
>> HI Vinod, shouldn't this be asked in a new thread?
>> Hi Rasika, Sajith, You did this recently, right, Can you please help?
>>
>> On Fri, Aug 12, 2016 at 10:26 AM, Vinod Kavinda  wrote:
>>
>>> Hi Jayanga,
>>> I'm trying to authorize the current user with a particular action. I
>>> have used the following code snippet, Is this correct?
>>>
>>> public static boolean isUserAuthorized(String resource, String action) {
>>> CarbonPermission carbonPermission = new CarbonPermission(resource,
>>> action);
>>> return ((CarbonPrincipal) PrivilegedCarbonContext.getCur
>>> rentContext().getUserPrincipal())
>>> .isAuthorized(carbonPermission);
>>> }
>>>
>>> Further, how do we define a set of Resources and Actions for them? Any
>>> documentation on this?
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Wed, Aug 10, 2016 at 10:46 PM, Jayanga Kaushalya 
>>> wrote:
>>>
>>>> Hi Prabushi,
>>>>
>>>> Actually there will be no permissions that directly assigned to the
>>>> user. All permissions are assigned through roles. By calling the above
>>>> method in user will indirectly get all permissions through roles which are
>>>> assigned to that particular user. If you need to get permissions for
>>>> specific role, then you can use the same method in role.
>>>>
>>>> Thanks!
>>>>
>>>> *Jayanga Kaushalya*
>>>> Software Engineer
>>>> Mobile: +94777860160
>>>> WSO2 Inc. | http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> On Wed, Aug 10, 2016 at 10:31 PM, Prabushi Samarakoon <
>>>> prabus...@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Thank you for the clarifications Darshana and Jayanga.
>>>>>
>>>>> On Wed, Aug 10, 2016 at 8:08 PM, Jayanga Kaushalya 
>>>>> wrote:
>>>>>
>>>>>> On Wed, Aug 10, 2016 at 5:56 PM, Prabushi Samarakoon <
>>>>>> prabus...@wso2.com> wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> 1. Is there an  API method to get all the resources permitted to a
>>>>>>> particular user or a role?
>>>>>>>
>>>>>>
>>>>>> Yes. You can use the method getPermissions(Action action) [1] in User
>>>>>> to retrieve all the permissions assigned to that particular user filtered
>>>>>> by the action. Permission is a resource + action. So permissions filtered
>>>>>> by the action is a list of permitted resources.
>>>>>>
>>>>>
>>>>>  Ah great, now I understood that part. Can we use the same way for a
>>>>> role also? But in that case we might get duplicates of the resources 
>>>>> right?
>>>>>
>>>>>>
>>>>>>> 2. With this permission model, are we going to in

Re: [Dev] Clarification on C5 permission model

2016-08-11 Thread Vinod Kavinda
Hi Jayanga,
I'm trying to authorize the current user with a particular action. I have
used the following code snippet, Is this correct?

public static boolean isUserAuthorized(String resource, String action) {
CarbonPermission carbonPermission = new CarbonPermission(resource,
action);
return ((CarbonPrincipal)
PrivilegedCarbonContext.getCurrentContext().getUserPrincipal())
.isAuthorized(carbonPermission);
}

Further, how do we define a set of Resources and Actions for them? Any
documentation on this?

Regards,
Vinod

On Wed, Aug 10, 2016 at 10:46 PM, Jayanga Kaushalya 
wrote:

> Hi Prabushi,
>
> Actually there will be no permissions that directly assigned to the user.
> All permissions are assigned through roles. By calling the above method in
> user will indirectly get all permissions through roles which are assigned
> to that particular user. If you need to get permissions for specific role,
> then you can use the same method in role.
>
> Thanks!
>
> *Jayanga Kaushalya*
> Software Engineer
> Mobile: +94777860160
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> On Wed, Aug 10, 2016 at 10:31 PM, Prabushi Samarakoon 
> wrote:
>
>> Hi,
>>
>> Thank you for the clarifications Darshana and Jayanga.
>>
>> On Wed, Aug 10, 2016 at 8:08 PM, Jayanga Kaushalya 
>> wrote:
>>
>>> On Wed, Aug 10, 2016 at 5:56 PM, Prabushi Samarakoon >> > wrote:
>>>
>>>>
>>>> Hi All,
>>>>
>>>> 1. Is there an  API method to get all the resources permitted to a
>>>> particular user or a role?
>>>>
>>>
>>> Yes. You can use the method getPermissions(Action action) [1] in User to
>>> retrieve all the permissions assigned to that particular user filtered by
>>> the action. Permission is a resource + action. So permissions filtered by
>>> the action is a list of permitted resources.
>>>
>>
>>  Ah great, now I understood that part. Can we use the same way for a role
>> also? But in that case we might get duplicates of the resources right?
>>
>>>
>>>> 2. With this permission model, are we going to introduce the email
>>>> based authentication for the products, or remain with the username model?
>>>>
>>>> 3. In our current management console, we have one view to create the
>>>> user, and another view to create the user profile according to the given
>>>> http://wso2.org/claims. Is there a particular reason to have the user
>>>> profile in a separate view? Do we need to have two views for user creation
>>>> and profile in C5 model also?
>>>>
>>>> Any clarification on above matters is appreciated.
>>>>
>>>> Thanks and Regards,
>>>> Prabushi
>>>>
>>>> --
>>>> *Prabushi Samarakoon*
>>>> Software Engineer
>>>> Mobile: +94715434580
>>>> Email: prabus...@wso2.com
>>>>
>>>
>>> [1] https://github.com/wso2/carbon-security/blob/master/comp
>>> onents/org.wso2.carbon.security.caas/src/main/java/org/wso2/
>>> carbon/security/caas/user/core/bean/User.java#L188
>>>
>>> Thanks!
>>>
>>
>>
>> Thanks and Regards.
>> --
>> *Prabushi Samarakoon*
>> Software Engineer
>> Mobile: +94715434580
>> Email: prabus...@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 <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] Substitute API - Change substitute API method

2016-08-09 Thread Vinod Kavinda
Hi Gayan,

Find my comments inline.

On Wed, Aug 10, 2016 at 2:07 AM, Gayan Gunarathne  wrote:

>
> What is the use case of the BPS change substitution api method in [1] ? Is
> it change whole the existing substitute records(I mean old records
> + future records) of the user?
>
It allows to change the substitute. There is no such thing called old
records and future records. A user can have only one substitution record.
Change substitute will change the substitute of the existing record.

>
> Also what is the different between update substitution record and Change
> substitute?Seems we don't have much information in the documentation.
>
> Change substitution allows to change only the substitute
user. Update allows to change all the substitution parameters.

[1]https://docs.wso2.com/display/BPS360/Substitution+REST+APIs
>
> Thanks,
> Gayan
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CARBON] [BPS] Getting permission array from AuthorizationManager not working for admin role

2016-08-02 Thread Vinod Kavinda
Hi Team.
Any update on this?

Regards,
Vinod

On Fri, Jul 29, 2016 at 3:13 PM, Milinda Perera  wrote:

> Hi all,
>
> Similar problem exists with tenants also with jaggery[1] (since same used
> in jaggery extentions). But that won't get working even after adding a new
> roles for tenants.
>
> [1] mail: [Jaggerry][BPS] Check user permission using jaggery user.User
> not working for tenants
>
> Thanks,
> Milinda
>
> On Fri, Jul 29, 2016 at 3:01 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Adding IS guys
>>
>> On Fri, Jul 29, 2016 at 3:00 PM, Vinod Kavinda  wrote:
>>
>>> Hi Team,
>>> Any idea on this?
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Fri, Jul 29, 2016 at 12:15 PM, Vinod Kavinda  wrote:
>>>
>>>> Hi,
>>>> I'm trying to do $subject using getAllowedUIResourcesForUser() method.
>>>> When only the admin role exists in the system, it always returns an empty
>>>> array. It works fine after adding another role.
>>>>
>>>> I'm using the following code block for this.
>>>>
>>>> UserRealm userRealm = BPMNOSGIService.getUserRealm();
>>>> String[] permissionArray =
>>>> userRealm.getAuthorizationManager().getAllowedUIResourcesForUser(username,"/permission/admin/manage");
>>>>
>>>> Am I missing something here? Is this a known bug?
>>>>
>>>> Regards,
>>>> Vinod
>>>>
>>>> Vinod Kavinda
>>>> Software Engineer
>>>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>>>> Mobile : +94 (0) 712 415544
>>>> Blog : http://soatechflicks.blogspot.com/
>>>> [image: http://wso2.com/signature]
>>>> <http://wso2.com/signature>
>>>>
>>>>
>>>
>>>
>>> --
>>> Vinod Kavinda
>>> Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>> [image: http://wso2.com/signature]
>>> <http://wso2.com/signature>
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Milinda Perera
> Senior Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CARBON] [BPS] Getting permission array from AuthorizationManager not working for admin role

2016-07-29 Thread Vinod Kavinda
Hi Team,
Any idea on this?

Regards,
Vinod

On Fri, Jul 29, 2016 at 12:15 PM, Vinod Kavinda  wrote:

> Hi,
> I'm trying to do $subject using getAllowedUIResourcesForUser() method.
> When only the admin role exists in the system, it always returns an empty
> array. It works fine after adding another role.
>
> I'm using the following code block for this.
>
> UserRealm userRealm = BPMNOSGIService.getUserRealm();
> String[] permissionArray =
> userRealm.getAuthorizationManager().getAllowedUIResourcesForUser(username,"/permission/admin/manage");
>
> Am I missing something here? Is this a known bug?
>
> Regards,
> Vinod
>
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> <http://wso2.com/signature>
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CARBON] [BPS] Getting permission array from AuthorizationManager not working for admin role

2016-07-28 Thread Vinod Kavinda
Hi,
I'm trying to do $subject using getAllowedUIResourcesForUser() method. When
only the admin role exists in the system, it always returns an empty array.
It works fine after adding another role.

I'm using the following code block for this.

UserRealm userRealm = BPMNOSGIService.getUserRealm();
String[] permissionArray =
userRealm.getAuthorizationManager().getAllowedUIResourcesForUser(username,"/permission/admin/manage");

Am I missing something here? Is this a known bug?

Regards,
Vinod

Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Storing TimeZone neutral times with Mysql

2016-07-19 Thread Vinod Kavinda
Hi all,
I have a requirement that I need to store timestamp values where it will be
required to retrieve it in different time zones. So in MySql, I used
timestamp data type where MySQL store  the time in UTC and return in local
timezone.

The problem is when the time is null, I need to represent 'forever'.
Thought of setting the max date possible in epoch time (Long.Max) for this.
But the max possible timestamp value in MySql is year 2038/1/19... [1].

So, is this 2038 is fair enough as the max date? (This will be the max date
for other DBMS also.)

Should I use DateTime datatype instead and handle the timezone stuff in
application level?

What is the best practice used here in Wso2?


[1] - https://dev.mysql.com/doc/refman/5.5/en/datetime.html

Regards,
Vinod
-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPS 3.5.1 compatible mysql version

2016-07-11 Thread Vinod Kavinda
Hi Gayan,
There are separate scripts for mysql 5.5 for bpmn. Have you tried with
those scripts. You need to run following scripts located at
/dbscripts/bps/bpmn/create folder.

activiti.mysql55.create.engine.sql

activiti.mysql55.create.history.sql

We have not tested for mysql 5.7 AFAIU.


Regards,

Vinod




On Tue, Jul 12, 2016 at 11:19 AM, Gayan Gunarathne  wrote:

> Hi,
>
> Seems BPS 3.5.1 worked only with mysql 5.6. Got the following
> incompatibility issues with mysql 5.5 and mysql 5.7.
> But in the documentation we didn't mention anything about the mysql
> version[1]. If we are support only mysql 5.6, shall we update the
> documentation with the compatible mysql version?
>
> mysql 5.5 - Syntax incompatibility with BPMN_DB
>
> bps_rdbms  | /usr/local/bin/docker-entrypoint.sh: running
> /docker-entrypoint-initdb.d/bpsdb.sql
> bps_rdbms  | ERROR 1064 (42000) at line 2052: You have an error in your
> SQL syntax; check the manual that corresponds to your MySQL server version
> for the right syntax to use near '(3),
> bps_rdbms  | primary key (ID_)
> bps_rdbms  | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin' at
> line 6
> bps_rdbms exited with code 1
>
>
> mysql 5.7 - Syntax incompatibility  with WSO2_USER_DB
>
> bps_rdbms  | /usr/local/bin/docker-entrypoint.sh: running
> /docker-entrypoint-initdb.d/bpsdb.sql
> bps_rdbms  | ERROR 1067 (42000) at line 55: Invalid default value for
> 'REG_CREATED_TIME'
> bps_rdbms exited with code 1
>
> [1]https://docs.wso2.com/display/BPS351/Setting+up+MySQL
>
> Thanks,
> Gayan
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 BPS - Email Task

2016-05-20 Thread Vinod Kavinda
;>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ==
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>> Luis
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2016-04-12 16:17 GMT-05:00 Luis Calderon Rodríguez <
>>>>>>>>> luis.calde...@proxus.pe>:
>>>>>>>>>
>>>>>>>>>> I'm very grateful for your answers.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>>
>>>>>>>>>> 2016-04-12 2:12 GMT-05:00 Nandika Jayawardana :
>>>>>>>>>>
>>>>>>>>>>> Hi Luis,
>>>>>>>>>>>
>>>>>>>>>>> A BPMN process executed in a transactional manner from one wait
>>>>>>>>>>> state to another wait state, Please refer to [1] for more details. 
>>>>>>>>>>> Hence,
>>>>>>>>>>> the bpmn db which keeps the state of the process instance will 
>>>>>>>>>>> always
>>>>>>>>>>> be at a consistent state even if a sudden BPS server shutdown 
>>>>>>>>>>> occurred.
>>>>>>>>>>>
>>>>>>>>>>> However, within your process, if you are calling externals
>>>>>>>>>>> services , and these service invocations may result in state 
>>>>>>>>>>> changes in
>>>>>>>>>>> those services, there needs to be  compensation option provided by 
>>>>>>>>>>> the
>>>>>>>>>>> service to handle those. For example, let's assume your process 
>>>>>>>>>>> invokes
>>>>>>>>>>> Operation A and B one after the other. If operation B failed, we 
>>>>>>>>>>> need to
>>>>>>>>>>> catch the application error and call compensation operation of 
>>>>>>>>>>> Operation A.
>>>>>>>>>>> (reverse operation A) This can be done by having  error handling.
>>>>>>>>>>>
>>>>>>>>>>> However, for a scenario like sudden BPS server shutdown, you
>>>>>>>>>>> might need some manual intervention to reverse some of these 
>>>>>>>>>>> operations to
>>>>>>>>>>> bring the external services state to last consistant process 
>>>>>>>>>>> instance state.
>>>>>>>>>>>
>>>>>>>>>>> [1]
>>>>>>>>>>> http://www.activiti.org/userguide/#bpmnConcurrencyAndTransactions
>>>>>>>>>>>
>>>>>>>>>>> Regards
>>>>>>>>>>> Nandika
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Apr 12, 2016 at 11:10 AM, Hasitha Hiranya <
>>>>>>>>>>> hasit...@wso2.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> Looping in some resource people who can answer the question..
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Apr 12, 2016 at 5:37 AM, Luis Calderon Rodríguez <
>>>>>>>>>>>> luis.calde...@proxus.pe> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Hasitha,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> I liked your article, it is very interesting because you use a
>>>>>>>>>>>>> real business case where there are external services and manage 
>>>>>>>>>>>>> errors.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> I would like to implement a workflow in BPS/BMPN where there
>>>>>>>>>>>>> is no manual tasks, on the other hand are automated tasks that 
>>>>>>>>>>>>> invoke REST
>>>>>>>>>>>>> services or DataServices to persist data in an RDBMS. So, I have 
>>>>>>>>>>>>> a question
>>>>>>>>>>>>> how it could manage transactionality throughout the execution 
>>>>>>>>>>>>> flow . I
>>>>>>>>>>>>> think in the situation to happen if a shutdown occurs BPS server 
>>>>>>>>>>>>> and the
>>>>>>>>>>>>> flow has not completely finished, how it could reverse everything 
>>>>>>>>>>>>> already
>>>>>>>>>>>>> being stored in the RDBMS.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks for your time.
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> *Luis Calderón*
>>>>>>>>>>>>> *e-mail: luis.calde...@proxus.pe *
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> *Hasitha Abeykoon*
>>>>>>>>>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>>>>>>>>>>> *cell:* *+94 719363063*
>>>>>>>>>>>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Nandika Jayawardana
>>>>>>>>>>> WSO2 Inc ; http://wso2.com
>>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Luis Calderón*
>>>>>>>>>> *PROXUS SAC*
>>>>>>>>>> *e-mail: luis.calde...@proxus.pe *
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Luis Calderón*
>>>>>>>>> *PROXUS SAC*
>>>>>>>>> *e-mail: luis.calde...@proxus.pe *
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Amal Gunatilake*
>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>> Lean . Enterprise . Middleware
>>>>>>>>
>>>>>>>> mobile: (+94) 773561195
>>>>>>>> blog: amalg-blogs.blogspot.com; twitter: @daag123
>>>>>>>> linkedIn: https://www.linkedin.com/in/amalgunatilake
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Luis Calderón*
>>>>>>> *PROXUS SAC*
>>>>>>> *e-mail: luis.calde...@proxus.pe *
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Amal Gunatilake*
>>>>>> WSO2 Inc.; http://wso2.com
>>>>>> Lean . Enterprise . Middleware
>>>>>>
>>>>>> mobile: (+94) 773561195
>>>>>> blog: amalg-blogs.blogspot.com; twitter: @daag123
>>>>>> linkedIn: https://www.linkedin.com/in/amalgunatilake
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Nandika Jayawardana
>>>>>> WSO2 Inc ; http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> Waruna Lakshitha Jayaweera
>>>> Software Engineer
>>>> WSO2 Inc; http://wso2.com
>>>> phone: +94713255198
>>>>
>>>
>>>
>>>
>>> --
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
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] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-01 Thread Vinod Kavinda
Hi team,

I'm getting the following error. It seems that "package io.swagger.util" is
missing. Please resolve this.

Installation failed.

Cannot complete the install because one or more required items could not be
found.

 Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
(org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)

 Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8) requires
'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but it could
not be found

 Cannot satisfy dependency:

  From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)

  To: package org.wso2.msf4j [1.1.0,2.0.0)

 Cannot satisfy dependency:

  From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)

  To: package io.swagger.util [1.5.0,2.0.0)

 Cannot satisfy dependency:

  From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
1.1.0.SNAPSHOT)

  To: msf4j-analytics [1.1.0.SNAPSHOT]


Regards,

Vinod
-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Make tasks claimable conditionaly

2016-04-25 Thread Vinod Kavinda
nt, the tasks become
>>>>>>> available to both users and who ever available can claim them and 
>>>>>>> continue.
>>>>>>> Also, we can have a timer boundary event to define a deadline and if the
>>>>>>> first user fails to complete it on time then we could trigger a Java
>>>>>>> service task that reassigns the task to next available user in the 
>>>>>>> group.
>>>>>>>
>>>>>>> The above suggestion was given based on the details given in the
>>>>>>> thread, not sure whether it best suits to all requirements. We can 
>>>>>>> revisit
>>>>>>> the scenario when there are more additional details. :)
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Amal.
>>>>>>>
>>>>>>> On Thu, Apr 21, 2016 at 7:16 PM, Manuranga Perera 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I have the following requirement:
>>>>>>>>
>>>>>>>> * By default the given process's instance is claimable by user1
>>>>>>>> * But when user1 is on vacation (we have this data in a DB) we
>>>>>>>> want user2 to be able to claim it
>>>>>>>>
>>>>>>>> I can think of two ways:
>>>>>>>>
>>>>>>>> 1. Create a temporary role and keep switching user1 and user2
>>>>>>>> in and out that role
>>>>>>>> 2. Keep monitoring all claimable tasks and make it claimable to
>>>>>>>> user2 if user1 is not there
>>>>>>>>
>>>>>>>> Is there a better way (eg: specify this requirement directly in
>>>>>>>> BPMN). If not which is the better option?
>>>>>>>>
>>>>>>>> --
>>>>>>>> With regards,
>>>>>>>> *Manu*ranga Perera.
>>>>>>>>
>>>>>>>> phone : 071 7 70 20 50
>>>>>>>> mail : m...@wso2.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Amal Gunatilake*
>>>>>>> Software Engineer
>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> With regards,
>>>>>> *Manu*ranga Perera.
>>>>>>
>>>>>> phone : 071 7 70 20 50
>>>>>> mail : m...@wso2.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> With regards,
>>>>> *Manu*ranga Perera.
>>>>>
>>>>> phone : 071 7 70 20 50
>>>>> mail : m...@wso2.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Amal Gunatilake*
>>>> Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>
>>>
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>
>>
>>
>> --
>> *Amal Gunatilake*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@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 <http://www.wso2.com>.*
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] Retrieving OAuth applications by consumer key

2016-03-20 Thread Vinod Kavinda
Hi IS team,
Is there any API or Admin service to get the registered oAuth application
information using the consumer key?
This is required for a APIM, IS integration as a third party key manager.
I found that it is possible to get all the application data from
oAuthAdminService. This won't be a proper solution in performance
wise since we have to iterate through the list.


Please help me on this.

Regards,
Vinod

-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS]Grant Types not getting saved when using OAuthAdminService

2016-03-19 Thread Vinod Kavinda
Hi Thrindu/Maduranga,

Thanks for the help guys..

I'm using the stub generated from the wsdl of the admin service. In the
implementation, I retrieve the allowed grant types and it is assigned back
with the request. I debuged the request and the grant type string is there.


Regards,
Vinod


On Fri, Mar 18, 2016 at 9:14 AM, Tharindu Edirisinghe 
wrote:

> Hi Vinod,
>
> I also tested the same with IS 5.1.0 fresh pack and could not reproduce
> your scenario. The grant types is a space separated string. If you create
> the OAuth app from management console, for each grant type you have
> selected with the checkboxes, it will add something like
> "authorization_code implicit password client_credentials refresh_token" to
> the GRANT_TYPES column of IDN_OAUTH_CONSUMER_APPS  table.
>
> Can you please share more details about the environment and the request
> you have used to create applications.
>
> Thanks,
> TharinduE
>
> On Thu, Mar 17, 2016 at 5:40 PM, Maduranga Siriwardena  > wrote:
>
>> Hi Vinod,
>>
>> I have used OAuthAdminService to register an OAuth application and I was
>> able to save the grant types properly.
>>
>> Any grant type is not allowed by default. If client_credentials is not
>> included in the grant types list you will not be able to use that grant
>> type to generate an access token.
>>
>> Bellow is the Soap request I used to register the application.
>>
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
>> http://org.apache.axis2/xsd"; xmlns:xsd1="
>> http://dto.oauth.identity.carbon.wso2.org/xsd";>
>>
>>
>>   
>>  
>> OAuth-2.0
>> test
>> 
>> https://localhost:9443/services/OAuthAdminService
>> authorization_code implicit
>>  
>>   
>>
>> 
>>
>> Thanks,
>> Maduranga.
>>
>> On Thu, Mar 17, 2016 at 4:36 PM, Vinod Kavinda  wrote:
>>
>>> Hi,
>>> I'm trying to register an oAuth client using OAuthAdminService. I'm
>>> sending the grant types string with the request. I have checked the table
>>> "IDN_OAUTH_CONSUMER_APPS", the grant types column is always NULL.
>>>
>>> But, I could generate access tokens with client_credentials grant type.
>>> Is it because by default all types are allowed?
>>>
>>> Am I missing something here? How can I set the specific set of grant
>>> types?
>>>
>>> I'm using IS 5.0.1. Appreciate your feedback on this.
>>>
>>>
>>> Regards,
>>> Vinod
>>>
>>> --
>>> Vinod Kavinda
>>> Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>>
>>>
>>> _______
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Maduranga Siriwardena
>> Software Engineer
>> WSO2 Inc.
>>
>> email: madura...@wso2.com
>> mobile: +94718990591
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>



-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
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] [IS]Grant Types not getting saved when using OAuthAdminService

2016-03-19 Thread Vinod Kavinda
Hi,
I'm trying to register an oAuth client using OAuthAdminService. I'm sending
the grant types string with the request. I have checked the table
"IDN_OAUTH_CONSUMER_APPS", the grant types column is always NULL.

But, I could generate access tokens with client_credentials grant type. Is
it because by default all types are allowed?

Am I missing something here? How can I set the specific set of grant types?

I'm using IS 5.0.1. Appreciate your feedback on this.


Regards,
Vinod

-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Retrieving OAuth applications by consumer key

2016-03-18 Thread Vinod Kavinda
Thanks Pushpalanka..
This should work indeed.

Regards,
Vinod

On Fri, Mar 18, 2016 at 12:42 PM, Pushpalanka Jayawardhana 
wrote:

> Hi Vinod,
>
> This[1], should cater for your requirement.
>
> [1] -
> https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/OAuthAdminService.java#L142-L162
>
> Thanks,
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Fri, Mar 18, 2016 at 12:34 PM, Vinod Kavinda  wrote:
>
>> Hi IS team,
>> Is there any API or Admin service to get the registered oAuth application
>> information using the consumer key?
>> This is required for a APIM, IS integration as a third party key manager.
>> I found that it is possible to get all the application data from
>> oAuthAdminService. This won't be a proper solution in performance
>> wise since we have to iterate through the list.
>>
>>
>> Please help me on this.
>>
>> Regards,
>> Vinod
>>
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>>
>>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >