Re: [Dev] [Architecture] [Intern Project] Integrating API gateway with AWS Lambda

2019-08-30 Thread Himasha Guruge
Hi Binod,

Is this capability going to be available in the micro gateway as well? In
such a case could we introduce extensions to add lambda endpoints in the
swagger too?

Thanks,
Himasha

On Fri, Aug 30, 2019 at 12:21 PM Chanaka Jayasena  wrote:

> Also +1 to disable both Endpoints section and Resources while enabling
> the LAMBDA section as you suggested. Wizard is something you can do
> optionally. But you can reuse the components from Resource and Endpoints to
> build the LAMDA component.
>
> thanks,
> Chanaka
>
> On Fri, Aug 30, 2019 at 12:07 PM Chanaka Jayasena 
> wrote:
>
>> I would suggest to add them separately and provide them a wizard to set
>> AWS Lambda starting from the BIG overview page.
>>
>> The wizard will take the user through necessary steps and guide him
>> through the different sections.
>>
>> With old UI tech, it's difficult to do something like this without
>> duplicating the code hear and there. But now we can reuse the components in
>> different sections and build a wizard out of them just to make the UX nice.
>>
>> We have done a similar thing with subscriptions in Store. It guides the
>> user up to key generation but the application creation subscriptions and
>> key generation are still keeps it's own location on the content tree. You
>> can get more info from Dushan. He has nicely architecture the
>> implementation of the same in store.
>>
>> thanks,
>> Chanaka
>>
>> On Fri, Aug 30, 2019 at 11:46 AM Binod Karunanayake 
>> wrote:
>>
>>> Hi all,
>>>
>>> So far, I have developed the code for creating apis to invoke Lambda
>>> functions through REST API. *Still the above issue (set ByteBuffer
>>> response to response path directly) is not resolved*. However, I'm
>>> planning to start developing UI for this feature. Before that, I want to
>>> clarify some things I noticed with the suggested UI.
>>>
>>> As we discussed in the design review, following widget will be added to
>>> ENDPOINTS section.
>>>
>>> [image: image.png]
>>> But I have some UX issues adding this kind of widget to ENDPOINTS page
>>> in APIM 3.0.
>>>
>>> 1. A typical user will confuse by seeing resources in ENDPOINTS section.
>>> 2. What will happen to RESOURCES section (whether it has to be disabled
>>> after he selected the endpoint type as AWS Lambda)?
>>> 3. What if the user adds resources first and then goes to ENDPOINTS
>>> section to set AWS LAMBDA?
>>>
>>> To outcome these problems one can suggest to add AWS user role details
>>> (access key & secret key) in ENDPOINTS section and map resources to ARNs in
>>> RESOURCES section which raise following issues.
>>>
>>> 1. User has to first selects the endpoint type as AWS LAMBDA before set
>>> the resources.
>>> 2. Have to add optional interface for mapping ARNs in RESOURCES section.
>>>
>>> I'm suggesting to add separate section for LAMBDA configuration which
>>> will disable ENDPOINTS and RESOURCES sections when an user enables LAMBDA
>>> functions.
>>>
>>> [image: image.png]
>>> What will be the best way to add this feature in APIM-Publisher?
>>>
>>>
>>> On Tue, Aug 6, 2019 at 5:52 PM Binod Karunanayake 
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I'm doing the above project which is a new feature in WSO2 API-M to
>>>> invoke AWS Lambda functions through WSO2 API gateway. You can find the
>>>> detailed document attached below.
>>>>
>>>> There will be no backend endpoints for APIs. Instead, an API invokes
>>>> Lambda functions as shown below.
>>>> [image: 1*ucaFQnPaYgniRfOHbBpgwA.png]
>>>> Calling Lambda is done by a class mediator. However, Lambda response is
>>>> a *byteBuffer* which have to be set to the *messageContext*. I'm
>>>> looking for a solution to set the Lambda response to messageContext without
>>>> converting it to *String*.
>>>>
>>>> Best Regards.
>>>>
>>>> --
>>>> *Binod Karunanayake* | Software Engineering Intern | WSO2 Inc.
>>>> (m) +94716611642 | (e) bi...@wso2.com
>>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>>
>>>
>>>
>>> --
>>> *Binod Karunanayake* | Software Engineering Intern | WSO2 Inc.
>>> (m) +94716611642 | (e) bi...@wso2.com
>>> [image: http://wso2.com/signature] <http://wso2.com/sign

Re: [Dev] Callout problem in a XA Transation

2018-04-15 Thread Himasha Guruge
Hi Evandro,

What is the EI version you are using? Would be better if you could provide
the complete error log (EI/repository/logs/wso2carbon.log)

Thanks,
Himasha

On Thu, Apr 12, 2018 at 11:13 PM, Evandro Pires da Silva <
evan...@evandropires.com.br> wrote:

> Hi,
>
> I'm creating a new proxy service in a XA Transaction. My proxy service
> inserts a new record in DB and after sends a JMS message to a queue.
>
> I developed based on that sample: https://github.com/wso2/platfo
> rm-scenarios/tree/master/ei-distributed-transactions
>
> When I try to execute my proxy service I'm getting that message:
> [2018-04-12 14:21:35,584] [EI-Core]  INFO - LogMediator text = An
> unexpected error occured, message = Error while performing the callout
> operation
>
> That's my first complex sequence. Anybody can help me?
>
> Database:
>
> saldo_provisionado=# \d+ public.provisao_conta_corrente
> Tabela "public.provisao_conta_corrente"
>Coluna   | Tipo  | Modificadores | Armazenamento |
> Estatísticas | Descrição
> +---+---+---
> +--+---
>  codigo_cooperativa | numeric(9,0)  | não nulo  | main
> |  |
>  numero_conta   | numeric(9,0)  | não nulo  | main
> |  |
>  valor_provisionado | numeric(15,2) |   | main
> |  |
> Índices:
> "provisao_conta_corrente_pkey" PRIMARY KEY, btree (codigo_cooperativa,
> numero_conta)
>
> Thanks.
>
> --
> Evandro Pires da Silva
> Arquiteto de Sistemas
>
> +55 48 98488.6056
> Florianópolis - SC
> www.evandropires.com.br
>
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Read records from file and insert them into DB tables failing. Error : Input Message and request_box Axis Operation didn't match.

2018-03-25 Thread Himasha Guruge
Hi Aditya,

Could you attach the error log you are getting? Probably some required
header is missing in this case. What you could do is enable wire logs and
send the request (through the proxy) and compare it with the raw request
sent from SoapUI. ('raw' tab in SoapUI request provides the exact headers
that are passed)

Thanks,
Himasha

On Sun, Mar 25, 2018 at 9:16 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected Madam/Sir,
>
> I am not able to get why I am getting this error, When I am invoking from
> using vfs file trigger. While  the same flow works good when  I am
> invoking from soapui .
> The request going to dataservice looks same to me both times. Please Guide.
>
>
> With Regards,
> Aditya
>
> On Thu, Mar 22, 2018 at 5:46 PM, aditya shivankar <
> shivankar.adit...@gmail.com> wrote:
>
>> Hi Himasha,
>>
>> Please find dataMapper output attached in each of the case.
>>
>> With Regards,
>> Aditya
>>
>>
>> On Thu, Mar 22, 2018 at 5:15 PM, aditya shivankar <
>> shivankar.adit...@gmail.com> wrote:
>>
>>> Hi Himasha,
>>>
>>> I have logged the payload after datamapper.
>>>
>>> I compared the output of logger , When I am invoking from soapui and ,
>>> When I am invoking from using vfs file trigger.
>>> Both times ,datamapper output logged look the same.
>>> But for soapui invocation it is working and for vfs file trigger it is
>>> throwing error.
>>>
>>> With Regards,
>>> Aditya
>>>
>>> On Thu, Mar 22, 2018 at 4:47 PM, Himasha Guruge <himas...@wso2.com>
>>> wrote:
>>>
>>>> Hi Aditya,
>>>>
>>>> Have you constructed your payload appropriately, before invoking data
>>>> service? In SOAPUI request following format is maintained.
>>>>
>>>> 
>>>> ...
>>>> 
>>>>
>>>> Thanks,
>>>> Himasha
>>>>
>>>> On Thu, Mar 22, 2018 at 4:14 PM, aditya shivankar <
>>>> shivankar.adit...@gmail.com> wrote:
>>>>
>>>>> Hi Himasha,
>>>>>
>>>>> Please find the modified proxy service " WriteToDB2.xml" attached.
>>>>> After adding below line.
>>>>> 
>>>>>
>>>>>
>>>>> But it is still giving the same error.
>>>>>
>>>>> With Regards,
>>>>> Aditya
>>>>>
>>>>> On Thu, Mar 22, 2018 at 4:03 PM, aditya shivankar <
>>>>> shivankar.adit...@gmail.com> wrote:
>>>>>
>>>>>> Hi Himasha,
>>>>>>
>>>>>> Added below line
>>>>>>
>>>>>> But still getting the same error.
>>>>>>
>>>>>> >>>>> value="urn:request_box"/>
>>>>>>
>>>>>>
>>>>>> With Regards,
>>>>>> Aditya
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Himasha Guruge
>>>> Senior Software Engineer
>>>> WS*O2* *Inc.*
>>>> Mobile: +94 777459299 <+94%2077%20745%209299>
>>>> himas...@wso2.com
>>>>
>>>
>>>
>>
>


-- 
Himasha Guruge
Senior 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


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

2018-03-22 Thread Himasha Guruge
Hi Niranjan,

Some of these issues are Documentation issues, which I believe
Documentation team is still working on. We will update the labels of  rest
of the issues once verified.

Thanks,
Himasha

On Fri, Mar 23, 2018 at 8:45 AM, Niranjan Karunanandham <
niranjan.k...@gmail.com> wrote:

> Hi Himasha,
>
> The GIt repository of Product EI is not updated. There couple of issues
> labeled as 6.2.0[1] and also the label Severity/Major or Severity/Critical.
> Are these fixed in 6.2.0 release? If not, it would be better to change the
> label.
>
> [1] - https://github.com/wso2/product-ei/issues?q=is%3Aopen+is%
> 3Aissue+label%3A6.2.0+no%3Amilestone
>
> Regards,
> Nira
>
> On Mon, Mar 19, 2018 at 6:00 PM, Prabushi Samarakoon <prabus...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> EI 6.2.0-RC2 Tooling Installed Distributions are now available under the
>> GIT release tag [1]
>> <https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc2>.
>>
>> Known issues : https://github.com/wso2/devstudio-tooling-ei/issues and ht
>> tps://github.com/wso2/product-ei/labels/EI%20Tooling
>>
>> Thanks,
>> Prabushi
>>
>> [1] - https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc2
>>
>> On Mon, Mar 19, 2018 at 8:03 AM, Himasha Guruge <himas...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> Thanks for testing WSO2 Enterprise Integrator 6.2.0 -RC2.
>>>
>>> Since this vote passed with 13 +1s and 0 -1s, we’re hereby closing this
>>> vote and proceeding with the Enterprise Integrator GA release.
>>>
>>> Thanks,
>>>
>>> Himasha
>>>
>>> On Sun, Mar 18, 2018 at 7:47 PM, Heshitha Hettihewa <heshit...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I've tested the following,
>>>>
>>>>- Capp Deployment and deployment/undeployment order validation
>>>>- ESB Analytics component Data publishing and Dashboard
>>>>improvements
>>>>- Devstudio tooling BPMN Editor
>>>>- Devstudio tooling BPEL editor
>>>>- Devstudio tooling Humantask Editor
>>>>- Devstudio tooling Dataservice Editor and data service deployer
>>>>- Devstudio tooling EI server feature and artifact deployment
>>>>through dev studio
>>>>- Basic Devstudio tooling ESB functionalities
>>>>
>>>> No blockers found.
>>>>
>>>> [+] Stable - go ahead and release
>>>>
>>>> Thanks,
>>>> Heshitha.
>>>>
>>>> On Sun, Mar 18, 2018 at 7:24 PM, Sohani Weerasinghe <soh...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> Tested below in EI Tooling
>>>>>
>>>>>- Main p2 installation for kernel, platform and product plugins
>>>>>- Signing process with new certificate
>>>>>- Updater tool functionality in 620 and exiting 611 packs
>>>>>- New dashboard changes
>>>>>- Mediator project creation, Solutions project creation and MMM
>>>>>project creation
>>>>>- Proxy service preserve policy attribute
>>>>>- Sequence and template creation
>>>>>- Form editors for Endpoint, scheduleTask, MS and MP
>>>>>- API creation and version type property
>>>>>- JMS inbound EP polling suspension attributes
>>>>>- Tested enableCacheControl, includeAgeHeader and collector
>>>>>attribute in cache mediator
>>>>>- Nashron support for script mediator
>>>>>- Data service secret alias support
>>>>>- Data source creation
>>>>>- Apply securiy for data service
>>>>>- Smooks editor
>>>>>- WSpolicy creation
>>>>>- Bpel workflow creation
>>>>>- Apply security for bpel
>>>>>- Human task file creation
>>>>>- BPMN diagram creation
>>>>>- CAPP creation
>>>>>- EI server role in CAPP creation
>>>>>- EI 6.2.0 server option in adding a server
>>>>>
>>>>> [+] Stable - go ahead and release
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Sohani Weerasinghe
>>>>> Senior Software Engineer
>>>>> WSO2, Inc: http://wso2.com
>>>&g

Re: [Dev] File connector why ? when vfs is there.

2018-03-22 Thread Himasha Guruge
Hi Vikram,

You can perform these additional operations with file connector[1].

[1]
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the+File+Connector

Thanks,
Himasha

On Thu, Mar 22, 2018 at 5:56 PM, vikram nayak <nayak.vikr...@yahoo.in>
wrote:

> Hi ,
>
> When we have vfs proxies which could do both reading and writing of file ?
> Why there is File connector as well?
> Does it provide anything extra.
>
> Thanks,
> Vikram
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Read records from file and insert them into DB tables failing. Error : Input Message and request_box Axis Operation didn't match.

2018-03-22 Thread Himasha Guruge
Hi Aditya,

Have you constructed your payload appropriately, before invoking data
service? In SOAPUI request following format is maintained.


...


Thanks,
Himasha

On Thu, Mar 22, 2018 at 4:14 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Hi Himasha,
>
> Please find the modified proxy service " WriteToDB2.xml" attached.
> After adding below line.
> 
>
> But it is still giving the same error.
>
> With Regards,
> Aditya
>
> On Thu, Mar 22, 2018 at 4:03 PM, aditya shivankar <
> shivankar.adit...@gmail.com> wrote:
>
>> Hi Himasha,
>>
>> Added below line
>>
>> But still getting the same error.
>>
>> 
>>
>>
>> With Regards,
>> Aditya
>>
>
>


-- 
Himasha Guruge
Senior 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


Re: [Dev] Read records from file and insert them into DB tables failing. Error : Input Message and request_box Axis Operation didn't match.

2018-03-22 Thread Himasha Guruge
Hi Aditya,

I think you have not set the SOAPAction (before invoking the data service
from your proxy), for the data service operation you are trying to
invoke.(See example below). In the attached error log,
soapAction is set to SOAPAction: urn:mediate.

If you check headers of your request (in SOAPUI), you can get the exact
value that needs to be set.




Thanks,
Himasha

On Thu, Mar 22, 2018 at 12:22 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected Sir,
>
> Please find the error logs attached.
>
> With Regards,
> Aditya
>
>
> On Thu, Mar 22, 2018 at 12:14 PM, aditya shivankar <
> shivankar.adit...@gmail.com> wrote:
>
>> Respected Sir,
>>
>> I have to read records from a file and insert them into Database tables.
>> Below are the tables into which records are to be inserted. All fields
>> are varchar.
>>
>>
>>
>>
>>
>> I created dataservice named 'MDS_USERBUSINESS'(attached) for this.
>>
>> Then created a proxy service named 'WriteToDB2.xml'(attached) which reads
>> data from input file 'inputfor_writeToDb.xml' (attached) converts it into
>> format required for dataservice and invokes data service.(attached)
>>
>> I tried to hit the proxy service from  soapui. It inserted the data in db.
>>
>>
>>
>> But when i trigger the same service via putting file in inputDB folder
>> using vfs. It is giving below error. Please guide.
>>
>> [2018-03-22 11:48:49,412] [EI-Core] ERROR - DBInOutMessageReceiver Error
>> in in-out message receiver
>> DS Fault Message: Input Message and request_box Axis Operation didn't
>> match.
>> DS Code: UNKNOWN_ERROR
>>
>> at org.wso2.carbon.dataservices.core.dispatch.DataServiceReques
>> t.createDataServiceRequest(DataServiceRequest.java:96)
>>
>> With Regards,
>> Aditya
>>
>
>
> ___
> 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
himas...@wso2.com
___
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 Himasha Guruge
Hi Thomas,

Yes given your scenarios  handling each separately based on a flag/flags
(with switch mediator) would be the possible solution. You could store
these properties(such as documents) in registry itself.

Thanks,
Himasha

On Wed, Mar 21, 2018 at 9:08 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello,
>
> "And because the second step can be invoked in many contexts" can be like
> :
>
> * context 1 : retrieval of documents. We have an API like
> /documents/customer/{id}.
>
> - First step, I retrieve the local documents from the {id}.
> - Then step 2, I want to find the equivalence of the {id} for the other
> source (we'll call this equivalence, {id2}). However, {id2} does not exist
> so my web service returns 404. BOOM, step 2 prime is trigger
> - step 2 prime, fault sequence. How can I send back the retrieved
> documents from the first step? I can use a property and in this sequence,
> retrieve the property via a PayloadFactory and just use the respond
> mediator.
>
> whereas step 3 should be:
> - retrieve the document from the other source and merge them with the
> local ones
>
> * context 2 : retrieval of customer information. We have an API like
> /customer/{id}
>
> - First step, I retrieve the local information from the {id}.
> - Then, step 2,  I want to find the equivalence of the {id} for the other
> source (we'll call this equivalence, {id2}). However, {id2} does not exist
> so my web service returns 404. BOOM, step 2 prime is trigger. Yep, because
> we use the same sequence as in the context 1 because we are lazy :)
> - step 2 prime, fault sequence. How can I send back the local information
> from the first step whereas this same fault sequence could potentially be
> used for the context 1? Use the same property?
>
> whereas step 3 should be:
> - retrieve the information from the other source and merge them with the
> local ones
>
> Because of those two contexts (or more), I can't just call the fault
> sequence to do the merge because the data types are different. Or maybe by
> using a flag with the switch mediator but I don't know if it is
> common/right practice to do so.
>
> Regards,
>
> Thomas
>
> 2018-03-21 15:41 GMT+01:00 Vinod Kavinda <vi...@wso2.com>:
>
>> 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 <himas...@wso2.com>
>> 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:
>>>>
>>>> >>>

Re: [Dev] Address endpoint and 404 code

2018-03-21 Thread Himasha Guruge
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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2018-03-18 Thread Himasha Guruge
Hi all,

Thanks for testing WSO2 Enterprise Integrator 6.2.0 -RC2.

Since this vote passed with 13 +1s and 0 -1s, we’re hereby closing this vote
 and proceeding with the Enterprise Integrator GA release.

Thanks,

Himasha

On Sun, Mar 18, 2018 at 7:47 PM, Heshitha Hettihewa <heshit...@wso2.com>
wrote:

> Hi All,
>
> I've tested the following,
>
>- Capp Deployment and deployment/undeployment order validation
>- ESB Analytics component Data publishing and Dashboard
>improvements
>- Devstudio tooling BPMN Editor
>- Devstudio tooling BPEL editor
>- Devstudio tooling Humantask Editor
>- Devstudio tooling Dataservice Editor and data service deployer
>- Devstudio tooling EI server feature and artifact deployment
>through dev studio
>- Basic Devstudio tooling ESB functionalities
>
> No blockers found.
>
> [+] Stable - go ahead and release
>
> Thanks,
> Heshitha.
>
> On Sun, Mar 18, 2018 at 7:24 PM, Sohani Weerasinghe <soh...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> Tested below in EI Tooling
>>
>>- Main p2 installation for kernel, platform and product plugins
>>- Signing process with new certificate
>>- Updater tool functionality in 620 and exiting 611 packs
>>- New dashboard changes
>>- Mediator project creation, Solutions project creation and MMM
>>project creation
>>- Proxy service preserve policy attribute
>>- Sequence and template creation
>>- Form editors for Endpoint, scheduleTask, MS and MP
>>- API creation and version type property
>>- JMS inbound EP polling suspension attributes
>>- Tested enableCacheControl, includeAgeHeader and collector attribute
>>in cache mediator
>>- Nashron support for script mediator
>>- Data service secret alias support
>>- Data source creation
>>- Apply securiy for data service
>>- Smooks editor
>>- WSpolicy creation
>>- Bpel workflow creation
>>- Apply security for bpel
>>- Human task file creation
>>- BPMN diagram creation
>>- CAPP creation
>>- EI server role in CAPP creation
>>- EI 6.2.0 server option in adding a server
>>
>> [+] Stable - go ahead and release
>>
>>
>> Thanks,
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774 <+94%2071%20643%209774>
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Sun, Mar 18, 2018 at 4:34 PM, Waruna Jayaweera <waru...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Tested the following.
>>>
>>>- Capp deployment sample API and proxy and test the APIs in ESB
>>>profile.
>>>- JMS publish/subscribe with proxy services of the ESB Profile with
>>>Broker profile.
>>>- Enable the ESB analytics and publish statistics.
>>>- Analyse ESB statistics with analytics profile.
>>>- Deploy and test sample BPEL, BPMN, and human-task process.
>>>- BPMN explorer for basic functionalities.
>>>- Humanatsk explorer with task actions.
>>>- Add users, roles, and Tenants.
>>>- View, add and delete registry resources.
>>>- Check the readme files and release notes.
>>>
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Regards,
>>> Waruna
>>>
>>> On Sat, Mar 17, 2018 at 2:50 AM, Himasha Guruge <himas...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> We are pleased to announce the second release candidate of WSO2
>>>> Enterprise Integrator 6.2.0.
>>>>
>>>> *Known issues*: https://github.com/wso2/product-ei/issues
>>>>
>>>> *Source and binary distribution files*:
>>>> <https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc1>*https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc2
>>>> <https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc2>*
>>>>
>>>> *The tag to be voted upon*: 
>>>> *https://github.com/wso2/product-ei/tree/v6.2.0-rc2
>>>> <https://github.com/wso2/product-ei/tree/v6.2.0-rc2>*
>>>>
>>>> Please vote as follows:
>>>> [+] Stable - go ahead and release
>>>> [-] Broken - do not release (explain why)
>>>>
>>>> ~The WSO2 Integration Team~
>>

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

2018-03-16 Thread Himasha Guruge
Hi All,

I have tested following scenarios.

1. business-process profile
   1.1 Deploy and invoke bpmn/human tasks/BPEL  artifacts.
   1.2  Add new users/roles
   1.3 Verify basic functionalities in bpmn-explorer
(Processes,Tasks,Monitoring,Search)
   1.3 Verify basic functionalities in humantask-explorer
   1.4 BPMN REST API functionalities (Process Instances,
Process-Definitions,Tasks,Deployments)
   1.5 User substitution feature in MYSQL

2. data-services basic functionalities ( Request box, batch processing ,
JSON mapping )

[+] Stable - go ahead and release.

Thanks,
Himasha

On Sat, Mar 17, 2018 at 10:47 AM, Malaka Gangananda <mala...@wso2.com>
wrote:

> Hi All,
>
> I have tested following,
>
> VFS transport with following scenarios:
>
>- VFS transfer with file types  ascii and binary,
>- VFS absolute path test with sftp server
>- VFS SFTP server using passphrase protected keys
>
> Auto ACK/ Client ACK, Durable subscriptions , DTX related scenarios with
> broker profile
>
> Kafka Inbound Protocol with latest Kafka version
>
> [+] Stable - go ahead and release.
>
> Thanks,
>
> On Sat, Mar 17, 2018 at 6:20 AM, Himasha Guruge <himas...@wso2.com> wrote:
>
>> Hi All,
>>
>> We are pleased to announce the second release candidate of WSO2
>> Enterprise Integrator 6.2.0.
>>
>> *Known issues*: https://github.com/wso2/product-ei/issues
>>
>> *Source and binary distribution files*:
>> <https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc1>*https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc2
>> <https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc2>*
>>
>> *The tag to be voted upon*: 
>> *https://github.com/wso2/product-ei/tree/v6.2.0-rc2
>> <https://github.com/wso2/product-ei/tree/v6.2.0-rc2>*
>>
>> Please vote as follows:
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>> ~The WSO2 Integration Team~
>>
>>
>> --
>> Himasha Guruge
>> Senior Software Engineer
>> WS*O2* *Inc.*
>> Mobile: +94 777459299 <+94%2077%20745%209299>
>> himas...@wso2.com
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Malaka.
> --
> Malaka Gangananda - Software Engineer | WSO2
> Email : mala...@wso2.com
> Mobile : +94713564340 <+94%2071%20356%204340>
> Web : http://wso2.com
>   <http://wso2.com/signature>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Himasha Guruge
Senior 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


[Dev] [VOTE] Release WSO2 Enterprise Integrator 6.2.0 RC2

2018-03-16 Thread Himasha Guruge
Hi All,

We are pleased to announce the second release candidate of WSO2 Enterprise
Integrator 6.2.0.

*Known issues*: https://github.com/wso2/product-ei/issues

*Source and binary distribution files*:
<https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc1>*https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc2
<https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc2>*

*The tag to be voted upon*: *https://github.com/wso2/product-ei/tree/v6.2.0-rc2
<https://github.com/wso2/product-ei/tree/v6.2.0-rc2>*

Please vote as follows:
[+] Stable - go ahead and release
[-] Broken - do not release (explain why)

~The WSO2 Integration Team~


-- 
Himasha Guruge
Senior 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


Re: [Dev] [Architecture] [VOTE] Release WSO2 Enterprise Integrator 6.2.0 RC1

2018-03-16 Thread Himasha Guruge
Hi All,

We are calling off this vote as we have found an issue in VFS upgrade .
 We will do a RC2 and call a vote soon.

Thanks,
Himasha

On Fri, Mar 16, 2018 at 3:10 PM, Heshitha Hettihewa <heshit...@wso2.com>
wrote:

> Hi all,
>
> EI Tooling Installed distribution packs are now available in Git release
> tag[1].
>
> [1]. https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc1
>
> Thanks,
> Heshitha.
>
>
> On Fri, Mar 16, 2018 at 10:37 AM, Sohani Weerasinghe <soh...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> Please find the EI Tooling Installed Distributions below.
>>
>> Linux 32bit   - https://jenkins-support-ei.wso
>> 2.com/jenkins/view/Developer%20Studio/job/devstudio-tooling
>> -ei/7/org.wso2.developerstudio$developer-studio-ei-eclipse-
>> jee-mars-linux-gtk/
>> Linux 64bit   - https://jenkins-support-ei.wso
>> 2.com/jenkins/view/Developer%20Studio/job/devstudio-tooling-
>> ei/7/org.wso2.developerstudio$developer-studio-ei-eclipse-
>> jee-mars-linux-gtk-x86_64/
>> Mac 64bit -  https://jenkins-support-ei.ws
>> o2.com/jenkins/view/Developer%20Studio/job/devstudio-tooling
>> -ei/7/org.wso2.developerstudio$developer-studio-ei-eclipse-
>> jee-mars-macosx-cocoa-x86_64/
>> Windows 32bit - https://jenkins-support-ei.w
>> so2.com/jenkins/view/Developer%20Studio/job/devstudio-toolin
>> g-ei/7/org.wso2.developerstudio$developer-studio-ei-eclipse-
>> jee-mars-win32/
>> Windows 64bit - https://jenkins-support-ei.w
>> so2.com/jenkins/view/Developer%20Studio/job/devstudio-toolin
>> g-ei/7/org.wso2.developerstudio$developer-studio-ei-eclipse-
>> jee-mars-win64-x86_64/
>>
>> *Known issues *: https://github.com/wso2/devstudio-tooling-ei/issues
>> <https://github.com/wso2/devstudio-tooling-ei/issues>
>>
>> Please note that the packs will be available in GIT soon.
>>
>>
>> Thanks,
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774 <071%20643%209774>
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Fri, Mar 16, 2018 at 6:20 AM, Himasha Guruge <himas...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> We are pleased to announce the first release candidate of WSO2
>>> Enterprise Integrator 6.2.0.
>>>
>>> *Known issues*: https://github.com/wso2/product-ei/issues
>>>
>>> *Source and binary distribution files*: https://github.com/wso2
>>> /product-ei/releases/tag/v6.2.0-rc1
>>> <https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc1>
>>>
>>> *The tag to be voted upon*: https://github.com/wso2/
>>> product-ei/tree/v6.2.0-rc1
>>>
>>> Please vote as follows:
>>> [+] Stable - go ahead and release
>>> [-] Broken - do not release (explain why)
>>>
>>> ~The WSO2 Integration Team~
>>>
>>> Himasha Guruge
>>> Senior Software Engineer
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299 <077%20745%209299>
>>> himas...@wso2.com
>>>
>>> ___________
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Enterprise Integrator 6.2.0 RC1

2018-03-15 Thread Himasha Guruge
Hi All,

We are pleased to announce the first release candidate of WSO2 Enterprise
Integrator 6.2.0.

*Known issues*: https://github.com/wso2/product-ei/issues

*Source and binary distribution files*:
 https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc1
<https://github.com/wso2/product-ei/releases/tag/v6.2.0-rc1>

*The tag to be voted upon*:
https://github.com/wso2/product-ei/tree/v6.2.0-rc1

Please vote as follows:
[+] Stable - go ahead and release
[-] Broken - do not release (explain why)

~The WSO2 Integration Team~

Himasha Guruge
Senior 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


Re: [Dev] Enable XSLT 2.0 on WSO2 EI 6.1.1

2018-03-12 Thread Himasha Guruge
Hi Norberto,

Please refer property 'synapse.xpath.dom.failover.enabled'  configurations
in [1].


[1] https://docs.wso2.com/display/Ei611/Configuring+synapse.properties

Thanks,
Himasha

On Mon, Mar 12, 2018 at 7:01 PM, Norberto Fernandes <norbe...@memoryvox.com>
wrote:

> Hi Team.
>
> Could you point me or give the required instructions to enable XSLT 2.0 on
> WSO2 6.1.1 EI?
>
> I found several personal webpages talking about this for old versions of
> WSO2. I was trying to get an more recent version of the same.
>
> Regards,
> Thanks in advance,
> Norberto
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Extra spaces coming while writing the data from database to a file using vfs and data service.

2018-02-27 Thread Himasha Guruge
Hi Aditya,

Before writing the content to a file , you can use xslt mediator[1]  and
remove the extra spaces of the payload.

[1] https://docs.wso2.com/display/EI611/XSLT+Transformation+Sample

Thanks,
Himasha

On Tue, Feb 27, 2018 at 4:38 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected Sir,
> I wrote a dataservice to read data from "Employee" table.
>
> Consumed that service as a soap(wsdl) service inside my proxy service.
> and wrote it in a file using vfs.
>
> but in output file there are extra spaces coming in each field.
> Please guide how to avoid those.
>
> Current Output :
>
> http://ws.wso2.org/dataservice;>
> 
> 1 
> John  
> 1 
> Helinki   
> 
> 
> 2 
> Tim   
> 2 
> Washington
> 
> 
>
> Database Table screenshot:
>
> [image: Inline image 1]
>
> dataService :
>
> 
>
>   MSSQL
>
>
>   select id,name,salary,address from dbo.EmployeeData
>   
>  
>  
>  
>  
>   
>
>
>   
>
> 
>
>
>
> proxy service:
>
> 
> http://ws.apache.org/ns/synapse;
>name="ReadEmployeeTableProxy"
>startOnLoad="true"
>statistics="disable"
>trace="disable"
>transports="http,https">
>
>   
>   expression="fn:concat(fn:substring-after(get-property('MessageID'),
> 'urn:uuid:'), '.xml')"
>name="transport.vfs.ReplyFileName"
>scope="transport"
>type="STRING"/>
>   value="true"/>
>  scope="axis2"
>type="STRING"
>value="application/xml"/>
>  
>  
> 
>
> 
>  
>   
>   
>  service="ReadEmployeeTable"
>uri="http://localhost:8285/services/ReadEmployeeTable?wsdl
> "/>
>   
>
>http://localhost:8285/services/ReadEmployeeTable?wsdl
> "/>
>
> 
>
> With Regards,
> Aditya
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Writing xml response from data service into file in local server.

2018-02-26 Thread Himasha Guruge
Hi Aditya,

Yes, you would have to use a mediation sequence and invoke the dataservice
from there. Please refer [1] as a sample.

[1]
https://wso2.com/library/articles/2012/10/implementing-restful-services-wso2-esb/

Thanks,
Himasha

On Mon, Feb 26, 2018 at 2:42 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Hi sir,
> I have created a data service which reads the record in the table and
> converts it into xml which is exposed as soap web service.
>
> sample output I achieved is:
>
> http://www.w3.org/2003/05/soap-envelope;>
>
>   http://www.my1stdataservice.com;>
>  
> bk100
> J K Rowling
> Harry Potter
> Fictional
> 2000
> 2000-01-31+05:30
> Story of Mr Potter
>  
>  
> bk200
> Great Expectation
> Charles Dickens
> Novel
> 800
> 1861-05-02+05:30
> Depicts the personal growth and personal
> development of an orphan
>  
>   
>
> 
>
>
>
> but instead of exposing it as soap webservice , i need to write ouput xml
> in a file. How do i do it in dataservice.
> or If i need to call dataservice from proxy service in esb, how do i do
> it. Please guide.
>
> With Regards,
> Aditya
>
>
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Reading file using inbound endpoint

2018-02-23 Thread Himasha Guruge
Hi Dhanya,

Please check if you have necessary permissions(read/write) in '
/C:/ProcessedFiles'.

Thanks,
Himasha

On Fri, Feb 23, 2018 at 2:19 PM, dhanya <dhanyasanth2...@gmail.com> wrote:

> Hi,
>
> While using an inbound endpoint for file processing, i am getting  the
> error
> message that the file could not be renamed even though the file is
> processed
> successfully and move to the specified "ProcessedFiles" folder.
>
> What could be causing this error message?
>
>
> [2018-02-23 13:24:26,534] [EI-Core] ERROR - FilePollingConsumer Error
> moving
> file : file:///C:/Sample.txt to file://C:/ProcessedFiles
> org.apache.commons.vfs2.FileSystemException: Could not rename
> "file:///C:/Sample.txt" to "file:///C:/ProcessedFiles/Sample.txt".
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.
> moveTo(AbstractFileObject.java:1117)
> at
> org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.
> moveOrDeleteAfterProcessing(FilePollingConsumer.java:849)
> at
> org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.
> directoryHandler(FilePollingConsumer.java:570)
> at
> org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.poll(
> FilePollingConsumer.java:214)
> at
> org.wso2.carbon.inbound.endpoint.protocol.file.
> FilePollingConsumer.execute(FilePollingConsumer.java:134)
> at
> org.wso2.carbon.inbound.endpoint.protocol.file.
> FileTask.taskExecute(FileTask.java:47)
> at
> org.wso2.carbon.inbound.endpoint.common.InboundTask.
> execute(InboundTask.java:51)
> at
> org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:98)
> at
> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.
> execute(TaskQuartzJobAdapter.java:67)
> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
> at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 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)
> Caused by: org.apache.commons.vfs2.FileSystemException: Could not rename
> file "C:\Sample.txt" to "file:///C:/ProcessedFiles/Sample.txt".
> at
> org.apache.commons.vfs2.provider.local.LocalFile.
> doRename(LocalFile.java:141)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.
> moveTo(AbstractFileObject.java:1103)
>
>
> Inbound Endpoint:
>
> 
>  sequence="Endpoint"
> suspend="false" xmlns="http://ws.apache.org/ns/synapse;>
> 
> 10
> false
> true
> text/plain
> MOVE parameter>
> 3
> MOVE parameter>
>  name="transport.vfs.FileURI"/>
>  name="transport.vfs.MoveAfterFailure"/>
>  name="transport.vfs.MoveAfterProcess"/>
> true
> false
> false
> 
> 
>
> Thanks and regards,
> Dhanya
>
>
>
>
> --
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Not able to write esb processed file to a folder at remote location. Please guide.

2018-02-22 Thread Himasha Guruge
Hi Aditya,

Please note below extraction from [1]. Therefore make sure proper
permissions are set. Are you receiving any error logs on this?

 "When you transfer a file to a remote FTP location via VFS, the ESB tries
to detect the FTP location by navigating from the root folder first. If the
ESB does not  have  at least list permission  to the root (/), the file
transfer fails."


[1] https://docs.wso2.com/display/EI611/VFS+Transport

Thanks,
Himasha

On Thu, Feb 22, 2018 at 2:30 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> I wrote a application which is now able to poll files from  "input" folder
> on my local machine and put the esb processed files in "output folder" on
> my local machine.
>
> Code which worked for me for Flatfile(putting processed files to folder on
> local machine) is below
>
> 
> http://ws.apache.org/ns/synapse;>
> 
> 
> 
> 
> 
>  value="true"/>
>  value=""/>
>  inputSchema="gov:datamapper/xmlToCsv1_inputSchema.json" inputType="XML"
> outputSchema="gov:datamapper/xmlToCsv1_outputSchema.json"
> outputType="CSV"/>
> 
> 
> 
>  name="transport.vfs.ReplyFileName" scope="transport" type="STRING"/>
>  value="true"/>
>  value="application/csv"/>
> 
> 
> ftp://username:password@
> windowsServerIp/output"/>
> 
> 
> 
> 
> 
> 
> 15
> file:///C:/Flatfile/input parameter>
> application/xml parameter>
> MOVE
> file:///C:/
> Flatfile/failure
> MOVE
> .*\.xml
> file:///C:/Flatfile/
> orgFilesProcessedSuccessfully
> 
>
>
> I am trying to modify it to write files in an "output" folder on a windows
> server, to which I have access. But it is not working for me.
> I tried changing the send block few times like below.
> --
> 1. 
>   
>   ftp://username:password@windowsServerIp/output"/>
>   
>   
> --
> 2.
> 
>   
>   ftp://username:password@
> windowsServerIp/D:/output"/>
>   
> 
> --
>
> In above send block while running the code , I replaced below keys like
>
> username : my username for windows server , with which I can connect to
> windows using ftp protocol in filezilla
>
> password : my password for windows server , with which I can connect to
> windows using ftp protocol in filezilla
>
> windowsServerIp : Ip of windows service machine.
>
> Please guide.
>
> With Regards,
> Aditya
>
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AM-2.1.0] Issues with client application based on SDK

2018-02-21 Thread Himasha Guruge
Hi,

I'm trying out [1] with Api Manager 2.1.0. I have downloaded the java SDK
of PizzaShackAPI and tried to run APIClient main method. At first with the
exact same code, I was getting below error.


com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2

 To sort it out I updated defaultAPI.java code of the SDK, to return a
List instead, and it got sorted. (See changes below)

 public List menuGet() throws ApiException {
ApiResponse<List> resp = menuGetWithHttpInfo();
return resp.getData();
}


   public ApiResponse<List> menuGetWithHttpInfo() throws
ApiException {
com.squareup.okhttp.Call call = menuGetCall(null, null);
Type localVarReturnType = new TypeToken<List>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}


 However, now I'm getting a response but the menu list is empty. Any idea
what could be the issue?


[1]
https://docs.wso2.com/display/AM210/Write+a+Client+Application+Using+the+SDK#1a97b57b1791422f99d81743523b612e

Thanks,
Himasha Guruge
Senior 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


Re: [Dev] Performing XA transactions with MYSQL

2018-02-14 Thread Himasha Guruge
Was able to get it working after setting below property in
EI/wso2/lib/transactions.properties file  and using mysql driver 5.1.5.

com.atomikos.icatch.serial_jta_transactions=false


Thanks,
Himasha

On Wed, Feb 14, 2018 at 1:50 PM, Himasha Guruge <himas...@wso2.com> wrote:

> Hi,
>
> I have configured master-datasources.xml and used transaction mediator
> similar to [1] with MYSQL.  In a scenario , where  we restart MYSQL server
> while executing a transaction following error is displayed and we cannot
> perform any more transactions without a EI server restart.
>
> Caused by: com.atomikos.datasource.ResourceException: XA resource
> 'TXDB1': resume for XID 
> '3132372E302E302E312E746D30303030383030303639:3132372E302E302E312E746D38'
> raised -7: the XA resource has become unavailable
>
> at com.atomikos.datasource.xa.XAResourceTransaction.resume(
> XAResourceTransaction.java:505)
>
>
> According to [2] it seems to be a known issue with MYSQL XA transactions
> ,which occurs when we try to access the same database multiple times using
> the same transaction. It also suggests a workaround of setting some
> properties, however this does not solve the issue.(Tried with
> mysql-connector-java-6.0.6.jar) Appreciate any feedback on this.
>
>  [1] https://docs.wso2.com/display/EI611/Transaction+Mediator+Example
>  [2]  https://www.atomikos.com/Documentation/KnownProblems#JTDS_XA_Driver_
> Problems
>
> Thanks,
> Himasha Guruge
> Senior Software Engineer
> WS*O2* *Inc.*
> Mobile: +94 777459299 <+94%2077%20745%209299>
> himas...@wso2.com
>



-- 
Himasha Guruge
Senior 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


[Dev] Performing XA transactions with MYSQL

2018-02-14 Thread Himasha Guruge
Hi,

I have configured master-datasources.xml and used transaction mediator
similar to [1] with MYSQL.  In a scenario , where  we restart MYSQL server
while executing a transaction following error is displayed and we cannot
perform any more transactions without a EI server restart.

Caused by: com.atomikos.datasource.ResourceException: XA resource 'TXDB1':
resume for XID
'3132372E302E302E312E746D30303030383030303639:3132372E302E302E312E746D38'
raised -7: the XA resource has become unavailable

at
com.atomikos.datasource.xa.XAResourceTransaction.resume(XAResourceTransaction.java:505)


According to [2] it seems to be a known issue with MYSQL XA transactions
,which occurs when we try to access the same database multiple times using
the same transaction. It also suggests a workaround of setting some
properties, however this does not solve the issue.(Tried with
mysql-connector-java-6.0.6.jar) Appreciate any feedback on this.

 [1] https://docs.wso2.com/display/EI611/Transaction+Mediator+Example
 [2]
https://www.atomikos.com/Documentation/KnownProblems#JTDS_XA_Driver_Problems

Thanks,
Himasha Guruge
Senior 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


Re: [Dev] BPS and REST Web Service: filter tasks by category

2018-02-07 Thread Himasha Guruge
Hi Thomas,

It seems your observations are correct as [1] is missing the field
'category'. I have reported an issue at [2] so that this can be fixed in a
future release.

[1]
https://github.com/wso2/carbon-business-process/blob/master/components/bpmn/org.wso2.carbon.bpmn.rest/src/main/java/org/wso2/carbon/bpmn/rest/model/runtime/TaskQueryRequest.java
[2] https://github.com/wso2/product-ei/issues/1840

Thanks,
Himasha

On Wed, Feb 7, 2018 at 7:15 PM, Thomas LEGRAND <thomas.legr...@versusmind.eu
> wrote:

> Hello,
>
> I am currently using the BPS 3.6.0 (via EI 6.0.0) and I have a user store
> "US" in which I have two users: Toto and titi. Toto has the Internal role
> "Role A" and Titi has the Internal role "Role B".
>
> My use case is to retrieve a list of tasks in which I set the "category"
> with the value "PRIMO". One of the task has the groups "Role A" and "Role
> B" but has only the user "Toto" as candidates. Because Tito has the "Role
> B", so it should retrieve the task, too.
>
> But but but, I tried two ways to retrieve this task and they all failed:
>
> - The first one by using the Activiti Java API but I found out that I my
> "identified" user is not really identified to be in the group because when
> I check in the Activiti DB, I can't see any "Titi" in the table
> ACT_HI_IDENTITYLINK. However, I can see "Internet/Role B" but... hey, this
> is WSO2-only so I think I have to pass via the BPS WS.
>
> - The second one is to use the WSO2 BPS REST Web Service. My request in
> the http://{{bps.server}}:{{bps.port}}/bpmn/query/tasks resources using
> POST, as specified in the Activiti Documentation [1] :
>
> Request:
> {
> "candidateUser": "US/Titi",
> "category": "PRIMO"
> }
>
> Response:
> {
> "errorMessage": "Unrecognized field \"category\" (Class
> org.wso2.carbon.bpmn.rest.model.runtime.TaskQueryRequest), not marked as
> ignorable\n at [Source: org.apache.cxf.transport.http.
> AbstractHTTPDestination$1@1a0a0f94; line: 3, column: 15] (through
> reference chain: org.wso2.carbon.bpmn.rest.model.runtime.
> TaskQueryRequest[\"category\"])",
> "statusCode": 500
> }
>
> Yep. It seems that some of the query parameter specified in the Activiti
> documentation are not plugged-in to the WS implementation of WSO2.
>
> So, how can I update/fix the WSO2 web service part only without having to
> install a new version of the EI? Or am I screwed to take a scenic route
> with ugly workarounds to retrieve the tasks I want via the WS? :(
>
> Regards,
>
> Thomas
>
> [1] https://www.activiti.org/userguide/#_query_for_tasks
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Iterate mediator not working as expected.

2018-02-05 Thread Himasha Guruge
Hi,

According to the given error, it looks like the namesapace prefix (ns1) is
not properly defined, Could you please  check if the namespace value is set
to the given prefix?

Thanks,
Himasha

On Mon, Feb 5, 2018 at 4:52 PM, dhanya <dhanyasanth2...@gmail.com> wrote:

> Hi Himasha,
>
> Thanks for the reply. I tried adding the namespace. However the error now
> changed to :
>
> [2018-02-05 16:41:00,215] []  INFO - LogMediator To:
> /services/iFlightLiteReciev
> e, MessageID: urn:uuid:caa488fc-ed36-4301-ac2c-bdd421dfd79f, Direction:
> request,
>  property_name = "AfterPayloadFactory:", Envelope:  encoding=
> 'utf-8'?>http://www.w3.org/
> 2003/05/soap-envelope"
> xml
> ns:ns1="http://ws.apache.org/ns/synapse;> node1>hi :node>hi1
> [2018-02-05 16:41:00,217] [] ERROR - SynapseXPath Evaluation of the XPath
> expres
> sion //ns1:node1 resulted in an error
> org.jaxen.UnresolvableException: Cannot resolve namespace prefix 'ns1'
> at org.jaxen.expr.DefaultNameStep.matches(
> DefaultNameStep.java:358)
> at org.jaxen.expr.DefaultNameStep.evaluate(
> DefaultNameStep.java:285)
> at
> org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:
> 140)
> at
> org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLo
> cationPath.java:113)
> at org.jaxen.expr.DefaultXPathExpr.asList(
> DefaultXPathExpr.java:102)
> at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:677)
> at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:216)
> at org.jaxen.BaseXPath.evaluate(BaseXPath.java:175)
> at
> org.apache.synapse.util.xpath.SynapseXPath.evaluate(SynapseXPath.java
> :403)
> at
> org.apache.synapse.mediators.eip.EIPUtils.getDetachedMatchingElements
> (EIPUtils.java:92)
> at
> org.apache.synapse.mediators.eip.splitter.IterateMediator.mediate(Ite
> rateMediator.java:130)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLis
> tMediator.java:97)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLis
> tMediator.java:59)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMe
> diator.java:158)
> at
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pro
> xyServiceMessageReceiver.java:213)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEn
> closingRESTHandler(ServerWorker.java:326)
> at
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.j
> ava:158)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(Native
> WorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:617)
>
>
> Code snippet for Iterate:
>
>   xmlns:ns1="http://ws.apache.org/ns/synapse; id="ENTRY_ITERATOR">
> 
> 
> 
>  value="Iterated:"/>
> 
> 
> 
> 
>
>
> Sample Request :
>
> 
> http://www.w3.org/2003/05/soap-envelope;
> xmlns:ns1="http://ws.apache.org/ns/synapse;>
> 
> 
> hi
> hi1
> 
> 
> 
>
> Is there something that i am missing here?
>
> Thanks and regards
> Dhanya
>
>
>
> --
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Iterate mediator not working as expected.

2018-02-05 Thread Himasha Guruge
Hi Dhanya,

Could you update your expression with namespace prefix? Something similar
to following works.

 http://ws.apache.org/ns/synapse;
  continueParent="true"
  expression="//m0:node1"
  id="ENTRY_ITERATOR">

Thanks,
Himasha

On Mon, Feb 5, 2018 at 2:01 PM, dhanya <dhanyasanth2...@gmail.com> wrote:

> Hi,
>
> I am using wso2 integrator and facing an issue while trying to use the
> iterator mediator.
> My requirement is to iterate using a node in the xml and use the resulting
> split value to create new files in a folder.
> I have created a sample proxy file as follows:
>
> 
>  xmlns="http://ws.apache.org/ns/synapse;>
> 
> 
> 
> hi
> hi1
> 
> 
> 
>  expression="get-property('mediatorPayload')"/>
> 
> 
> 
>  value="AfterPayloadFactory:"/>
> 
> http://schemas.xmlsoap.org/soap/envelope/;
> continueParent="true" expression="//soapenv:Envelope/node1"
> xmlns="http://ws.apache.org/ns/synapse; id="ENTRY_ITERATOR"  >
> 
> 
> 
>  value="Iterated:"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
>
>
> sample XML:
>
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> 
> http://ws.apache.org/ns/synapse;>
> hi
> hi1
> 
> 
> 
>
> Based on the above xml i would like to split the file on  to get the
> values hi, and hi1. Then create 2 files in the mentioned folder ( one file
> having value hi and another file having value hi1).
>
> However the iterate block is not getting invoked since the logs are not
> getting printed from within the iterate mediator.
> What could be wrong here?
>
> Thanks and Regards
> Dhanya
>
>
>
> --
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MTOM Attachment to secured Proxy

2018-01-29 Thread Himasha Guruge
   
> 
> 
>  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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Creating an json array inside property and updating it in loop . Not able to implement this in wso2 . Please guide

2018-01-25 Thread Himasha Guruge
Hi Aditya,

Could you please try out following approach?


First use  enrich mediator create a root element. Next inside iterate
mediator (where you iterate your payload) add a payload mediator to create
a json object  and pass the property values. Then you can add it as a child
element to the initially created root element with enrich mediator.
Following is a sample flow which explains the idea.



   


 

 
 
 



{
"name":"$1",
"price":"$2"
}


 

 


 

 
 
 
 
 

Thanks,
Himasha

On Tue, Jan 23, 2018 at 4:24 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected sir,
> I have a response big json response from one backend service.
> Suppose the response is in my payload.
> I am running the loop on Children element of this payload.
>
> I want to extract two values in each loop, say name and price and keep it
> in an property. Say like below
>
> [{
> "name":"mobile",
> "price":"1000"
> }]
>
> I am not able to create a array inside property like this.
>
>  then in the second loop , when I extaxct two new values for name(say
> "bottle") and price(say "50"). I want to add them to my property as follows
> [
> {
> "name":"mobile",
> "price":"1000"
> },
> {
> "name":"bottle",
> "price":"50"
> }
>
> ]
>
> I am not add this new element to the existing array.
>
> Please guide.
>
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Date formatting in datamapper

2018-01-11 Thread Himasha Guruge
Hi Aditya,

Could you please try with a custom function in data-mapper? Please refer[1]
for more information.

[1]
http://chathurikaerandi.blogspot.com/2016/07/custom-function-and-global-variables-in.html

Thanks,
Himasha

On Wed, Jan 10, 2018 at 6:40 PM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected Sir,
>
> I am getting dates as string in input.
>
> {
> "From": "2017-03-17T00:00:00",
>  "To": "2018-03-16T00:00:00"
> }
>
>
> need to convert them to mm/dd/ format.
>
> expected output :
> {
> "From": "03/17/2017",
>  "To": "03/16/2018"
> }
>
> I cannot use xslt mediator here as I am already facing issues with this
> xslt mediator,
> I am not able to configure and use xslt to transform json messages.
>
> With Regards,
> Aditya
>
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Oxygen Tank > WSO2 Development> ESB > Message Processor > max.delivery.attempts bug

2018-01-03 Thread Himasha Guruge
Hi Marcos,

Thanks for reporting this. I have created an issue at [1] for tracking and
it will be fixed in a future release.

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

Thanks,
Himasha

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

> Hello
>
>
>
> When I change the value of max.delivery.attempts parameter in the message
> processor and save changes. It always return to its default value of 4.
>
>
>
> Ubuntu 16.04 – mysql  5 – wso2 6.1.1 configuration
>
>
>
> Thanks
>
>
>
> Marcos
>
> *Marcos *
>
>
>
> ___
> 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
himas...@wso2.com
___
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-26 Thread Himasha Guruge
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 <vi...@wso2.com> 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 <sash...@wso2.com>
> 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 <ruks...@wso2.com>
>> 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 <god...@wso2.com> 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
>
>


-- 
Himasha Guruge
Senior 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


Re: [Dev] Pass user details into the out sequence.

2017-11-22 Thread Himasha Guruge
Hi Senuwan,

What is your requirement here? Could you post your complete synapse
configuration?

Thanks,
Himasha

On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana <senu...@wso2.com> wrote:

> Hi Team,
>
>
> I have created the below class mediator to call my JWTRoleReder, in
> Sequence .
>
> 
>   
>
>
>
> However I could not able to pass above details into the outSequence .
> Kindly suggest solutions?
>
> Thanks.
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] CRUD operation in API response with 202 accepted but operations are not performed

2017-11-12 Thread Himasha Guruge
Hi Thivya,

As discussed offline given [1],  since you are not setting a content type
header in the request, 'application/x-www-form-urlencoded' is preserved as
default hence above fix would work.

[1]
https://docs.wso2.com/display/ESB500/Configuring+Specific+Use+Cases#ConfiguringSpecificUseCases-EnablingRESTtoSOAP

Thanks,
Himasha

On Mon, Nov 13, 2017 at 11:30 AM, Thivya Mahenthirarasa <thi...@wso2.com>
wrote:

> Hi Himasha,
>
> ESB sends application/x-www-form-urlencoded as the Content-Type to the
> backend which is the reason for this failure. When I do comment out the
> following parameter in the passthru-http.properties.
>
> http.headers.preserve=Content-Type.
>
> Also When i configured  args as  expression="get-property('uri.var.patientId')"/> I could able to receive
> the json response.
>
> Thank you
>
> On Mon, Nov 13, 2017 at 9:53 AM, Thivya Mahenthirarasa <thi...@wso2.com>
> wrote:
>
>> Hi Himasha
>>
>> As you said having xml in the media type also ended up with the same
>> response. What could be the root cause that the request couldn' t reach the
>> backend?
>>
>>
>> Thank you
>>
>> On Mon, Nov 13, 2017 at 8:21 AM, Himasha Guruge <himas...@wso2.com>
>> wrote:
>>
>>> Hi Thivya,
>>>
>>>  Could you verify the media type you have used in payload 
>>> mediator?(>> media-type="soap+xml">)  AFAIK, you can only use xml/json there [1] .
>>> According to the wire logs the request that is been sent is an empty
>>> soap envelope which means your request content has not been set through
>>> payload mediator.
>>>
>>> "Direction: request, Envelope: >> encoding='utf-8'?>http://schemas.
>>> xmlsoap.org/soap/envelope/">"
>>>
>>> [1] https://docs.wso2.com/display/ESB500/PayloadFactory+Medi
>>> ator#PayloadFactoryMediator-Syntax
>>>
>>> Thanks,
>>> Himasha
>>>
>>> On Mon, Nov 13, 2017 at 12:33 AM, Thivya Mahenthirarasa <thi...@wso2.com
>>> > wrote:
>>>
>>>> Hi ,
>>>> Thank you for the response.
>>>>
>>>> I wonder that no request is sent to the back-end service. Just ESB is
>>>> sending a response to the rest client that it accepts the requests. What
>>>> might be the root cause?. This behavior occurs in all other resources
>>>> too(DELETE, PUT, POST).
>>>>
>>>> What might be the root cause for this? Find the wire logs attached.
>>>>
>>>>
>>>> [2017-11-13 00:27:48,651] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "GET /services/CentralPatientService/readCMedi HTTP/1.1[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "cache-control: no-cache[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "Postman-Token: bfba4351-46c4-4fed-90f5-745566dbfdf7[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "patientId: 15[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "Accept: application/json[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "Content-Type: application/json[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "User-Agent: PostmanRuntime/6.1.6[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "Host: 172.16.2.73:8285[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "accept-encoding: gzip, deflate[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "Connection: keep-alive[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - wire HTTP-Listener I/O dispatcher-2
>>>> >> "[\r][\n]"
>>>> [2017-11-13 00:27:48,652] DEBUG - headers http-incoming-7 >> GET
>>>> /services/CentralPatientService/readCMedi HTTP/1.1
>>>> [2017-11-13 00:27:48,652] DEBUG - headers http-incoming-7 >>
>>>> cache-control: no-cache
>>>> [2017-11-13 00:27:48,652] DEBUG - headers http-incoming-7 >>
>>>> Postman-Token: bfba4351-46c4-4fed-90f5-745566dbf

Re: [Dev] [DEV] CRUD operation in API response with 202 accepted but operations are not performed

2017-11-12 Thread Himasha Guruge
<
> "0[\r][\n]"
> [2017-11-13 00:27:48,655] DEBUG - wire HTTP-Listener I/O dispatcher-2 <<
> "[\r][\n]"
>
> Cheers,
> Thivya
>
> On Sun, Nov 12, 2017 at 11:44 PM, Bhathiya Jayasekara <bhath...@wso2.com>
> wrote:
>
>> You can enable wire logs and see where the issue is. (i.e. the API itself
>> or backend).
>>
>> Thanks,
>> Bhathiya
>>
>> On Sun, Nov 12, 2017 at 11:22 PM, Thivya Mahenthirarasa <thi...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I created an API for CRUD operation in ESB 5.0.0 and tried to access a
>>> soap backend. And where
>>> the responses I get from all CRUD operations are 202 accepted. But no of
>>> the operations are performed. Also, I'm not observing any error logs.
>>>
>>> I have attached here the GET operation resource of my API as a sample.
>>>
>>>
>>>
>>>  
>>>   
>>>  
>>> 
>>>http://www.w3.org/
>>> 2003/05/soap-envelope">
>>>   
>>>  http://service.samp
>>> le.central.com">
>>> $1
>>>  
>>>   
>>>
>>> 
>>> 
>>>http://dto.service.sample.central.com/xsd;
>>> evaluator="xml" expression="//m0:patientId"/>
>>> 
>>>  
>>>  
>>>  
>>>  
>>> 
>>>https://192.168.55.160:94
>>> 43/services/CentralPatientService" format="soap11"/>
>>> 
>>>  
>>>  
>>>   
>>>   
>>>  
>>>  >> scope="axis2" type="STRING"/>
>>>  
>>>   
>>>
>>>
>>>
>>> WSDL location http://192.168.55.160:9763/ser
>>> vices/CentralPatientService?wsdl
>>>
>>> Could you please advice on this?
>>>
>>>
>>> Cheers,
>>> Thivya
>>>
>>>
>>> --
>>>
>>> *Thivya Mahenthirarasa*
>>>
>>> *Software Engineer -Support Team | WSO2*
>>>
>>>
>>> *Email: thi...@wso2.com <thi...@wso2.com>*
>>>
>>> *Mobile: +94766461966 <076%20646%201966> <http://wso2.com/signature>*
>>> *Web: http://wso2.com <http://wso2.com>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Associate Technical Lead,*
>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>
>> *Phone: +94715478185 <+94%2071%20547%208185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> <http://www.linkedin.com/in/bhathiyaj>*
>> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
>> *Blog: http://movingaheadblog.blogspot.com
>> <http://movingaheadblog.blogspot.com/>*
>>
>
>
>
> --
>
> *Thivya Mahenthirarasa*
>
> *Software Engineer -Support Team | WSO2*
>
>
> *Email: thi...@wso2.com <thi...@wso2.com>*
>
> *Mobile: +94766461966 <+94%2076%20646%201966> <http://wso2.com/signature>*
> *Web: http://wso2.com <http://wso2.com>*
>
> ___
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 BPS REST API and query with variables filtering

2017-11-02 Thread Himasha Guruge
Hi Thomas,

Could you try using TransientVariables[1] for your use-case? REST api
provided through WSO2 BPS is actually wrapping the REST API provided by
Activiti.In [2] it suggests that transient variables might be better for
performance.

[1] https://www.activiti.org/userguide/#apiTransientVariables
[2]
http://www.jorambarrez.be/blog/2016/09/01/how-to-use-transient-variables-in-activiti/

Thanks
Himasha

On Wed, Nov 1, 2017 at 12:33 AM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello everybody,
>
> I am creating an interface to display the list of the current user tasks
> waiting for approval. In this list, I display some information provided by
> the variables inside the process instances. For example, it can be the id
> of an object that I defined during the creation of the instance of the
> process.
>
> To retrieve the information for the list, I am using the REST API. But,
> because I would like the user to be able to filter the list with criteria,
> I am using the query endpoint for the tasks to be able to filter by the
> values of the variables in the instances.
>
> However, I have a problem because it seems that I have huge responsiveness
> lag when I want the REST API to return the current state of the variables
> of the instances. Actually, when I send a query request, it takes around 40
> seconds for the server to respond, if it does not time out. The problem
> disappears when I don't set the attribute to retrieve the list of the
> variables in my query request.
>
> For example, this one causes problems:
>
> {
> "includeProcessVariables": true
> "variables": [
> {
> "name": "group",
> "operation": "equals",
> "value": "MyGroupName
> }
> ]
> }
>
> whereas this one causes no problems:
> {
> "variables": [
> {
> "name": "group",
> "operation": "equals",
> "value": "MyGroupName
> }
> ]
> }
>
> I don't see other way to retrieve "custom" informations from a process
> instance except by using the variables. And because this is a list I want
> to display, it is really overkill to retrieve the list of the instances to
> loop on each one of them to retrieve their variables.
>
> Of course, in this example, I try to retrieve the current pending
> instances because one of their user task is waiting to be unblocked by a
> user. But I am doing the same thing to retrieve a list of already finished
> tasks/process instances (so by using the historic-task-instances endpoint).
> And I have exactly the same problem. Too much time to respond or time out.
>
> So, here are my questions:
>
> - Do you have any idea from where those "latency" problems could come from?
> - Do you know if I can use the Activiti Java API with the embedded
> Activiti in the WSO2 Business Process Server?
>
> I am using WSO2 Enterprise Integrator 6.0.0.
>
> 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
himas...@wso2.com
___
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-29 Thread Himasha Guruge
gt;>>> "parts": "Screen",
>>>>>> "numberTest": "40",
>>>>>> "make": "Tamsung"
>>>>>>}
>>>>>>
>>>>>> Desired Response :
>>>>>> {
>>>>>>"id": "3",
>>>>>>"parts": ["Screen"],
>>>>>>"test" : [],
>>>>>>"numberTest": "40",
>>>>>>"make": "Tamsung"
>>>>>> }
>>>>>>
>>>>>>
>>>>>> Issue :
>>>>>>
>>>>>>   In the actual response , the empty array named "test" is missing.
>>>>>>
>>>>>>   So overall there are two issues scenarios.
>>>>>> 1. When there is a array in request , with a single(one) element in
>>>>>> it .
>>>>>> 2. When there is an empty array in request.
>>>>>>
>>>>>>
>>>>>> With Regards,
>>>>>> Aditya
>>>>>> 
>>>>>> 
>>>>>> ---
>>>>>>
>>>>>> On Wed, Oct 25, 2017 at 5:37 PM, aditya shivankar <
>>>>>> shivankar.adit...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Let me reformat(summarize) the remaining issue now, as one issue is
>>>>>>> resolved.
>>>>>>> The issue which still needs to be addressed is.
>>>>>>>
>>>>>>>
>>>>>>> Below is the sample service I have created to Highlight the issue I
>>>>>>> am facing in my project(In actual project service, the request and 
>>>>>>> response
>>>>>>> are very big, dynamic and this issue is 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" }
>>>>>>> --
>>>>>>>
>>>>>>> Issue :
>>>>>>>
>>>>>>>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.
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> I think , I cannot recreate the message using payloadFactory
>>>>>>> because,
>>>>>>>" the message(payload) I am modifying with enrich mediator is a
>>>>>>> "huge and dynamic response from Third party service". This response I 
>>>>>>> need
>>>>>>> to modify/enrich at many places in my service and send it to another 
>>>>>>> third
>>>>>>> party service as input.
>>>>>>>
>>>>>>>With "Dynamic" :  I mean, some things in the message(payload) are
>>>>>>> different(change) everytime service receives the request, depending on 
>>>>>>> some
>>>>>>> factors in the request received by the third party service whose output 
>>>>>>> is
>>>>>>> input message to this service.
>>>>>>>
>>>>>>>so I think I cannot recreate message using payloadFactory like
>>>>>>> this
>>>>>>>
>>>>>>>
>>>>>>>  {"id" : $1, "parts" : $2, "make" :
>>>>>>> "Tamsung"}
>>>>>>>   
>>>>>>>  
>>>>>>>  >>>>>> expression="$.parts">
>>>>>>>   
>>>>>>> 
>>>>>>>
>>>>>>>as it will be dynamic response from a third party service.
>>>>>>> So we cannot recreate the message in payloadFactory it being not
>>>>>>> static.
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> arrayTest.xml :
>>>>>>>
>>>>>>> 
>>>>>>> http://ws.apache.org/ns/synapse;>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> Tamsung
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>>
>>>>>>> Please guide...
>>>>>>>
>>>>>>> With Regards,
>>>>>>> Aditya
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sudharma Subasinghe,
>>>>> Software Engineer,
>>>>> WSO2 Inc.
>>>>> Email: sudhar...@wso2.com <hasi...@wso2.com>
>>>>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Sudharma Subasinghe,
>>> Software Engineer,
>>> WSO2 Inc.
>>> Email: sudhar...@wso2.com <hasi...@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
>
>


-- 
Himasha Guruge
Senior 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


Re: [Dev] Endpoint Address

2017-10-24 Thread Himasha Guruge
Hi ,

Could you try with  context.getEndpoint(endpointKey).getName();

[1] https://github.com/wso2/wso2-synapse/blob/master/modules/
core/src/main/java/org/apache/synapse/core/axis2/
Axis2MessageContext.java#L235

Thanks,
Himasha

On Tue, Oct 24, 2017 at 6:05 PM, Melodias <osbtestmail...@gmail.com> wrote:

> Hi dev,
> It is possible to get backend endpoint address from
> org.apache.axis2.context.MessageContext?
>
>
>
> --
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Custom endpoint in a REST task in a BPMN process

2017-09-25 Thread Himasha Guruge
Hi Thomas,

You need to use 'serviceRef' instead of Service URL property if you are
going to point to a registry location. Please refer [1]

[1] https://docs.wso2.com/display/BPS351/Invoking+a+BPMN+REST+Endpoint

Thanks,
Himasha

On Mon, Sep 25, 2017 at 6:59 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello,
>
> I am writing a little process where I need to call a REST endpoint. But,
> this process will be deployed on different environment (dev, prod, etc...)
> so the endpoint will change. This endpoint is something like that :
>
> /somethingConstant/${aValueHere}
>
> I read that it is possible to use registry entry to fill a Service URL but
> that does not work for me (I put conf:/baseEndpointParameters [1] [2] where
> the content of the resource baseEndpointParameters was a joinable one) but
> the error message I received in the console was :
>
> [2017-09-25 15:24:58,534] [EI-Business-Process] ERROR
> {org.wso2.carbon.bpmn.extensions.rest.RESTTask} -  Failed to execute GET
> conf:/baseEndpointParameters within task servicetask4:Récupération
> correspondance in process instance 107599
> org.apache.http.client.ClientProtocolException: URI does not specify a
> valid host name: conf:/baseEndpointParameters
>
> Then, I would like to reuse the value of the param in the registry to
> append the custom value. Is it possible?
>
> Regards,
>
> Thomas
>
>
> [1] [image: Images intégrées 1]
>
> [2] [image: Images intégrées 2]
>
> _______
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPMN Simulation

2017-09-20 Thread Himasha Guruge
Hi ,

Could you please elaborate on your requirement? What do you mean by
'simulate process'?

Thanks,
Himasha

On Wed, Sep 20, 2017 at 7:13 PM, Melodias <osbtestmail...@gmail.com> wrote:

> Hi dev,
> Is option to do simulate process using WSO2 BPS or any other product?
>
>
>
> --
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problem with response EI 6.1.1

2017-07-24 Thread Himasha Guruge
Hi,

Is there any specific reason/requirement to use multiple proxies in your
use-case? Usually calling different services and engaging their
request/response in a single flow is done through service chaining.[1]

[1]
https://docs.wso2.com/display/EI611/Exposing+Several+Services+as+a+Single+Service

Thanks,
Himasha

On Mon, Jul 24, 2017 at 5:32 PM, Riyafa Abdul Hameed <riy...@wso2.com>
wrote:

> Hi,
>
> The recommended way is to call a sequences[1] if you want to do some
> logic in the mediation but invoking proxy in another proxy is not wrong.
> Please share your proxy service so that it can be reproduced.
>
> [1] https://docs.wso2.com/display/EI611/Mediation+Sequences
>
> Regards,
> Riyafa
>
> On Mon, Jul 24, 2017 at 2:47 PM, Melodias <osbtestmail...@gmail.com>
> wrote:
>
>> Hi dev,
>> I have flow: proxyA invoke proxyB and proxyB invoke backend. In this
>> scenario I have timeout on proxyA. When I invoke proxyB I received a
>> response.
>>
>> Is it a problem with invoke proxy by proxy in EI 6.1.1?
>>
>>
>>
>> --
>> View this message in context: http://wso2-oxygen-tank.10903.
>> n7.nabble.com/Problem-with-response-EI-6-1-1-tp150540.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
>>
>
>
>
> --
> Riyafa Abdul Hameed
> Software Engineer, WSO2 Lanka (Pvt) Ltd <http://wso2.com/>
>
> Email: riy...@wso2.com <riyafa...@cse.mrt.ac.lk>
> Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/>
> <http://facebook.com/riyafa.ahf>  <http://lk.linkedin.com/in/riyafa>
> <http://twitter.com/Riyafa1>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding responses as elements , to an array in json response

2017-07-20 Thread Himasha Guruge
.
>>>
>>> *modifyAgRes.xml*
>>>
>>> 
>>> 
>>>   
>>> 
>>> $1
>>>  
>>> $1
>>> $2
>>> Car
>>> Tmaze
>>>  
>>> 
>>>   
>>>   
>>>  
>>>  >> />
>>>   
>>>
>>> 
>>> 
>>> 
>>>   
>>> 
>>> $1
>>>  
>>> $1
>>> $2
>>> Mobile
>>> S8
>>>  
>>> 
>>>   
>>>   
>>>  
>>>  >> />
>>>   
>>>
>>> 
>>> --
>>>  
>>>
>>>
>>>
>>> *addChild.xml*>>  expression="//jsonObject/children"
>>>  scope="default"
>>>  type="OM"/>
>>>
>>> 
>>>  
>>>   
>>> 
>>>
>>> Thanks
>>> Sudharma
>>>
>>> On Thu, Jul 20, 2017 at 2:03 AM, aditya shivankar <
>>> shivankar.adit...@gmail.com> wrote:
>>>
>>>>  Adding responses as elements ,to an array in json response
>>>>
>>>> Input request :
>>>>
>>>> [
>>>> {
>>>>"id" : "1",
>>>> "make" : "TAHB",
>>>> "children":[
>>>> {
>>>> "kid":"1"
>>>> },
>>>> {
>>>> "kid":"2"
>>>> }
>>>> ]
>>>> },
>>>> {
>>>> "id" : "2",
>>>> "make" : "Tonda"
>>>> },
>>>> {
>>>> "id" : "3",
>>>> "make" : "Tamsung"
>>>> }
>>>> ]
>>>>
>>>>
>>>> I am using iterate, to send each element of above array as request to a
>>>> backend service( In myactual project this is not so simple service i.e.
>>>> backend service reponse is very complex json with lots of arrays and
>>>> sub-arrays(child arrays)in it . for better understanding of issue I kept it
>>>> like this ).
>>>>
>>>> The responses of the backend service are aggregated in one soap xml by
>>>> AggregateMediator.
>>>>
>>>> Below is response from AggregateMediator
>>>>
>>>>  
>>>> http://schemas.
>>>> xmlsoap.org/soap/envelope/">
>>>> 
>>>> 
>>>> 
>>>> 1
>>>> TAHB
>>>> 
>>>> 1
>>>> 
>>>> 
>>>> 2
>>>> 
>>>> Home
>>>> 5000sqft
>>>> 
>>>> 
>>>> 2
>>>> Tonda
>>>> Car
>>>> Tmaze
>>>> 
>>>> 
>>>> 3
>>>> Tamsung
>>>> Mobile
>>>> S8
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>> Requirement is to add all the responses from the backend service except
>>>> the first one, to the child array of the first response of the backend
>>>> service.
>>>> I do not know how to do this ? not even how to add new elements to a
>>>> array in wso2.
>>>>
>>>> My Current Output :
>>>>
>>>> {
>>>> "id": 1,
>>>> "make": "TAHB",
>>>> "children": [{
>>>> "kid": 1
>>>> },
>>>> {
>>>> "kid": 2
>>>> }],
>>>> "name": "Home",
>>>> "area": "5000sqft",
>>>> "jsonObject": [{
>>>> "id": 2,
>>>> "make": "Tonda",
>>>> "name": "Car",
>>>> "model": "Tmaze"
>>>> },
>>>> {
>>>> "id": 3,
>>>> "make": "Tamsung",
>>>> "name": "Mobile",
>>>> "model": "S8"
>>>> }]
>>>> }
>>>>
>>>>
>>>> Desired Output :
>>>>
>>>> {
>>>> "id": 1,
>>>> "make": "TAHB",
>>>> "children": [
>>>> {
>>>> "kid": 1
>>>> },
>>>> {
>>>> "kid": 2
>>>> },
>>>> {
>>>> "id": 2,
>>>> "make": "Tonda",
>>>> "name": "Car",
>>>> "model": "Tmaze"
>>>> },
>>>> {
>>>> "id": 3,
>>>> "make": "Tamsung",
>>>> "name": "Mobile",
>>>> "model": "S8"
>>>> }
>>>> ],
>>>> "name": "Home",
>>>> "area": "5000sqft",
>>>> }
>>>>
>>>> Please find main xml and backendService xml attached. It contains what
>>>> I tried.
>>>> main xml : addChild.xml
>>>> backendService xml : modifyAgrRes.xml
>>>>
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Sudharma Subasinghe,
>>> Software Engineer,
>>> WSO2 Inc.
>>> Email: sudhar...@wso2.com <hasi...@wso2.com>
>>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>>
>>
>>
>
>
> --
> Sudharma Subasinghe,
> Software Engineer,
> WSO2 Inc.
> Email: sudhar...@wso2.com <hasi...@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
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com

http://www.w3.org/1999/XSL/Transform; version="1.0">
   
  
 
  
   
   
  
 

 
 

   

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


[Dev] [Documentation][IS-Analytics] IS 5.3.0 Configuring Email alerts for IS-analytics

2017-07-18 Thread Himasha Guruge
Hi Samuel/Sherene,

In [1] and [2] we are missing information on configuring alerts as email.
We need to update the documentation with relevant steps and screenshots.
Please refer Hasintha's blog [3].


[1] https://docs.wso2.com/display/IS530/Configuring+Alerts
[2] https://docs.wso2.com/display/IS530/Receiving+Alerts
[3]
https://medium.com/@hasinthaindrajee/real-time-email-alerts-for-abnormal-user-behaviors-with-wso2-identity-server-analytics-2dbf0cfdeeb6

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


Re: [Dev] ESB - Keep the processing even if a service call goes wrong

2017-07-18 Thread Himasha Guruge
Hi,

You could use the  SET_ROLLBACK_ONLY property in a fault sequence, so that
when a failure occurs the transaction will be rolled back. Please refer [1]
for more information.

[1] https://docs.wso2.com/display/ESB500/JMS+Transactions

Thanks,
Himasha

On Wed, Jul 19, 2017 at 1:45 AM, Júnior <fjunio...@gmail.com> wrote:

> Hello,
>
> I have a proxy and inside the proxy we have some calls to a  template for
> auditing that just post a message to a queue.
>
> I'd like that even if there is a problem when sending the message to
> queue, the processing proceed in the Proxy.
>
> Is there any way of doing that?
>
> Any ideas are very welcome.
>
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager Basic Auth

2017-07-05 Thread Himasha Guruge
Hi,

Yes, when creating the API you can define endpoint authentication type.
Please refer [1] for your requirement.

[1] https://docs.wso2.com/display/AM210/Basic+Auth

Thanks,
Himasha

On Thu, Jul 6, 2017 at 1:32 AM, Júnior <fjunio...@gmail.com> wrote:

> Hello,
>
> I am trying to configure an API on WSO2AM 2.1.0, and the only
> authentication mechanism it supports is via OAuth. Is there any way to use
> Basic Auth for API Authentication?
>
> 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
himas...@wso2.com
___
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-01 Thread 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 <fjunio...@gmail.com> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automated Datasource creation WSO2 Server

2017-05-30 Thread Himasha Guruge
Hi Junior,

Please have a look at [1]  on how you can change the default databases and
which configuration files you need to update.

[1] https://docs.wso2.com/display/ADMIN44x/Working+with+Databases

Thanks,
Himasha


On Wed, May 31, 2017 at 12:10 AM, Júnior <fjunio...@gmail.com> wrote:

> Hello,
>
> What is the prefered way of automating the creation of datasources on WSO2
> Servers?
>
> I've posted a question on Stackoverflow[1].
>
> Any tips are very welcome.
>
> Thanks,
> [1]https://stackoverflow.com/questions/44269334/automated-
> datasource-creation-on-wso2-server
> --
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamic Values on attachPath for iterate mediator

2017-05-23 Thread Himasha Guruge
Hi ,

You could have a look at [1] where templates can be used to specify dynamic
XPath expressions.

[1]
https://docs.wso2.com/display/ESB500/Sample+751%3A+Message+Split+Aggregate+Using+Templates

Thanks,
Himasha

On Wed, May 24, 2017 at 2:55 AM, Júnior <fjunio...@gmail.com> wrote:

> Hi,
>
> Is it possible to pass dynamic values to the attachPath of iterateMediator?
>
> I have scenario where I'd like to apply the same iterate sequence to
> different payloads, and the only thing that I need to change is the
> attachPath and expression.
>
> Expression seems to work, but not attachPath.
>
> attachPath="$ctx:TAG"
>   continueParent="true"
>   expression="//imp1:Person"
>   preservePayload="true"
>   sequential="true">
>
>
> In this TAG property I have the attachPath xpath, but, it seems that the
> code is evaluating only the string not the Xpath itself.
>
> Is there any to achieve this? Or using iterate mediator this way, I need
> to create the same itereate but with different configs?
>
>
>
> 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
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Integrator 6.0.0 RC2

2017-02-20 Thread Himasha Guruge
Tested Business Process related features.

[x ] Stable - go ahead and release

On Mon, Feb 20, 2017 at 7:14 PM, Madhawa Gunasekara <madha...@wso2.com>
wrote:

> tested DSS features
>
> [x ] Stable - go ahead and release
>
>
>
> On Mon, Feb 20, 2017 at 7:01 PM, Afkham Azeez <az...@wso2.com> wrote:
>
>>
>> On Mon, Feb 20, 2017 at 6:57 PM, Malith Munasinghe <mali...@wso2.com>
>> wrote:
>>
>>> [ ] Stable - go ahead and release
>>
>>
>> [x ] Stable - go ahead and release
>>
>>
>> --
>> *Afkham Azeez*
>> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **az...@wso2.com* <az...@wso2.com>
>> * cell: +94 77 3320919 <+94%2077%20332%200919>blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*
>> <http://twitter.com/afkham_azeez>
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> <http://madhawa-gunasekara.blogspot.com>*
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> <http://lk.linkedin.com/in/mgunasekara>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] [Vote] Release WSO2 Enterprise Integrator 6.0.0 RC1

2017-02-18 Thread Himasha Guruge
Hi Devs, This is the first release candidate of WSO2 Enterprise Integrator
6.0.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?utf8=%E2%9C%
93=is%3Aissue%20is%3Aclosed%20 ​​*Source & binary distribution files*: ​
https://github.com/wso2/product-ei/releases/tag/v6.0.0-rc1 *​​The tag to be
voted upon*: https://github.com/wso2/product-ei/releases/tag/v6.0.0-rc1
*Documentation*: https://docs.wso2.com/display/EI600/WSO2+Enterprise+
Integrator+Documentation [ ] Broken - do not release (explain why) [ ]
Stable - go ahead and release Thanks, Integration Team
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 Enterprise Integrator 6.0.0 Alpha Released !

2017-02-09 Thread Himasha Guruge
WSO2 Integration Team is pleased to announce the alpha release of WSO2
Enterprise Integrator (EI) 6.0.0.

Source & Distribution:
https://github.com/wso2/product-ei/releases/tag/v6.0.0-alpha
Bug fixes:
https://github.com/wso2/product-ei/issues?page=1=is%3Aissue+is%3Aclosed
Known issues: https://github.com/wso2/product-ei/issues

*How to Run*

1.Extract the downloaded zip.

2.Go to the bin directory in the extracted folder.

3.Run the start-all.sh or start-all.bat as appropriate.

4.Launch a web browser and navigate to https://localhost:8243/carbon to
access the Enterprise Integrator Management Console.

5.Navigate to https://localhost:9444/carbon to access analytics management
console and https://localhost:9444/dashboard to access Enterprise
Integrator Dashboard.

6.Navigate to https://localhost:9445/carbon to access business process
management console.

7.Navigate to https://localhost:9446/carbon to access broker management
console.

8.Use "admin", "admin" as the username and password to login as an admin.

Thanks,

  -WSO2 Integration Team-


___
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-27 Thread Himasha Guruge
od
>>>>>>>>
>>>>>>>> On Wed, Aug 24, 2016 at 2:30 PM, Milinda Perera <milin...@wso2.com>
>>>>>>>> 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/produc
>>>>>>>>> t-bps/releases/tag/v3.6.0-RC1
>>>>>>>>> *Tooling*  : https://github.com/wso2/devstu
>>>>>>>>> dio-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>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Milinda Perera
>>>>>>> Senior 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Milinda Perera
>>>>> Senior 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sudharma Subasinghe,
>>>> Software Engineer,
>>>> WSO2 Inc.
>>>> Email: sudhar...@wso2.com <hasi...@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
>>>>
>>>>
>>>
>>>
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@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
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> https://wso2.com/signature*Malintha Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] Manually create heapdump in IBM JDK

2016-07-28 Thread Himasha Guruge
Hi,

Has anyone performed $subject? I came across [1] , where you need to
process the kill command for the process id to get the heap dump. What I'm
looking for is a way to create it like a snapshot. Some command like how we
use jmap. ( jmap -dump:format=b,file=filename.hprof )

[1] http://www-01.ibm.com/support/docview.wss?uid=swg21597830

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


Re: [Dev] [C5] Retrieving claim values with Claim Manager changes

2016-05-26 Thread Himasha Guruge
Thanks Jayanga.

On Thu, May 26, 2016 at 12:59 PM, Jayanga Kaushalya <jayan...@wso2.com>
wrote:

> Hi Himasha,
>
> This is fixed with
> https://github.com/wso2-extensions/carbon-security-user-store-jdbc/pull/28
>
> Thanks!
>
> *Jayanga Kaushalya*
> Software Engineer
> Mobile: +94777860160
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> On Thu, May 26, 2016 at 10:26 AM, Himasha Guruge <himas...@wso2.com>
> wrote:
>
>> Thanks for the quick response Thanuja.
>>
>> On Thu, May 26, 2016 at 10:24 AM, Thanuja Jayasinghe <than...@wso2.com>
>> wrote:
>>
>>> Hi Himasha,
>>>
>>> This is a known issue and Jayanga will provide a fix soon.
>>>
>>> Thanks,
>>> Thanuja
>>>
>>> On Thu, May 26, 2016 at 10:19 AM, Himasha Guruge <himas...@wso2.com>
>>> wrote:
>>>
>>>> [1]
>>>> https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/75d466dd4110ab55fb5dcb728b33611ec116bf63/feature/resources/database/WSO2CARBON_DB.sql
>>>>
>>>> [2]
>>>> https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/master/tests/osgi-tests/src/test/resources/h2_test_data.sql
>>>>
>>>> On Thu, May 26, 2016 at 10:19 AM, Himasha Guruge <himas...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi ,
>>>>>
>>>>> With the latest Claim Manager changes in carbon-security, following
>>>>> test was done to retrieve user claim values for user admin. However, an
>>>>> empty claim list is returned for the following line.
>>>>>
>>>>> user.getClaims(claims);
>>>>>
>>>>> While debugging, following stack trace was identified. I have used [1]
>>>>> and [2] to create the database tables and test data values. Any idea on
>>>>> what could be the issue? User object contains the claim mappings , however
>>>>> the values are not retrieved.
>>>>>
>>>>> Given *Caused by: org.h2.jdbc.JdbcSQLException: Invalid value "3" for
>>>>> parameter "parameterIndex" [90008-191]* could it be an issue with the
>>>>> test data?
>>>>>
>>>>> org.wso2.carbon.bpmn[org.wso2.carbon.bpmn.core.integration.BPSUserIdentityManager]
>>>>> : Error retrieving user info by id for: 41dadd2aea6e11e59ce95e5517507c66
>>>>> org.wso2.carbon.security.caas.user.core.exception.IdentityStoreException:
>>>>> Error occurred while retrieving user claims.
>>>>> at
>>>>> org.wso2.carbon.security.userstore.jdbc.connector.JDBCIdentityStoreConnector.getUserAttributeValues(JDBCIdentityStoreConnector.java:250)
>>>>> at
>>>>> org.wso2.carbon.security.caas.user.core.store.IdentityStore.getUserAttributeValues(IdentityStore.java:185)
>>>>> at
>>>>> org.wso2.carbon.security.caas.user.core.bean.User.getClaims(User.java:146)
>>>>> at
>>>>> org.wso2.carbon.bpmn.core.integration.BPSUserIdentityManager.findUserById(BPSUserIdentityManager.java:111)
>>>>> at
>>>>> org.wso2.carbon.bpmn.tests.osgi.BPMNClaimUserTaskTest.testInvokeClaimedUserTask(BPMNClaimUserTaskTest.java:144)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>>> at
>>>>> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.injectContextAndInvoke(ProbeInvokerImpl.java:125)
>>>>> at
>>>>> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.findAndInvoke(ProbeInvokerImpl.java:85)
>>>>> at
>>>>> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.call(ProbeInvokerImpl.java:73)
>>>>> at
>>>>> org.ops4j.pax.exam.nat.internal.NativeTestContainer.call(NativeTestContainer.java:112)
>>>>> at
>>>>> org.ops4j.pax.exam.spi.reactors.SingletonStagedReactor.invoke(SingletonStagedReactor.java:114)
>>>>> at
>>>>> org.ops4j.pax.exam.spi.reactors.PerSuiteStagedReactor.invoke(PerSuiteStagedReactor.java:47)
>>>>> at
>>>>> org.ops4j.pax.exam.testng.listener.PaxExam.runByDriver(PaxExam.ja

Re: [Dev] [C5] Retrieving claim values with Claim Manager changes

2016-05-25 Thread Himasha Guruge
Thanks for the quick response Thanuja.

On Thu, May 26, 2016 at 10:24 AM, Thanuja Jayasinghe <than...@wso2.com>
wrote:

> Hi Himasha,
>
> This is a known issue and Jayanga will provide a fix soon.
>
> Thanks,
> Thanuja
>
> On Thu, May 26, 2016 at 10:19 AM, Himasha Guruge <himas...@wso2.com>
> wrote:
>
>> [1]
>> https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/75d466dd4110ab55fb5dcb728b33611ec116bf63/feature/resources/database/WSO2CARBON_DB.sql
>>
>> [2]
>> https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/master/tests/osgi-tests/src/test/resources/h2_test_data.sql
>>
>> On Thu, May 26, 2016 at 10:19 AM, Himasha Guruge <himas...@wso2.com>
>> wrote:
>>
>>> Hi ,
>>>
>>> With the latest Claim Manager changes in carbon-security, following test
>>> was done to retrieve user claim values for user admin. However, an empty
>>> claim list is returned for the following line.
>>>
>>> user.getClaims(claims);
>>>
>>> While debugging, following stack trace was identified. I have used [1]
>>> and [2] to create the database tables and test data values. Any idea on
>>> what could be the issue? User object contains the claim mappings , however
>>> the values are not retrieved.
>>>
>>> Given *Caused by: org.h2.jdbc.JdbcSQLException: Invalid value "3" for
>>> parameter "parameterIndex" [90008-191]* could it be an issue with the
>>> test data?
>>>
>>> org.wso2.carbon.bpmn[org.wso2.carbon.bpmn.core.integration.BPSUserIdentityManager]
>>> : Error retrieving user info by id for: 41dadd2aea6e11e59ce95e5517507c66
>>> org.wso2.carbon.security.caas.user.core.exception.IdentityStoreException:
>>> Error occurred while retrieving user claims.
>>> at
>>> org.wso2.carbon.security.userstore.jdbc.connector.JDBCIdentityStoreConnector.getUserAttributeValues(JDBCIdentityStoreConnector.java:250)
>>> at
>>> org.wso2.carbon.security.caas.user.core.store.IdentityStore.getUserAttributeValues(IdentityStore.java:185)
>>> at
>>> org.wso2.carbon.security.caas.user.core.bean.User.getClaims(User.java:146)
>>> at
>>> org.wso2.carbon.bpmn.core.integration.BPSUserIdentityManager.findUserById(BPSUserIdentityManager.java:111)
>>> at
>>> org.wso2.carbon.bpmn.tests.osgi.BPMNClaimUserTaskTest.testInvokeClaimedUserTask(BPMNClaimUserTaskTest.java:144)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>> at
>>> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.injectContextAndInvoke(ProbeInvokerImpl.java:125)
>>> at
>>> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.findAndInvoke(ProbeInvokerImpl.java:85)
>>> at
>>> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.call(ProbeInvokerImpl.java:73)
>>> at
>>> org.ops4j.pax.exam.nat.internal.NativeTestContainer.call(NativeTestContainer.java:112)
>>> at
>>> org.ops4j.pax.exam.spi.reactors.SingletonStagedReactor.invoke(SingletonStagedReactor.java:114)
>>> at
>>> org.ops4j.pax.exam.spi.reactors.PerSuiteStagedReactor.invoke(PerSuiteStagedReactor.java:47)
>>> at
>>> org.ops4j.pax.exam.testng.listener.PaxExam.runByDriver(PaxExam.java:458)
>>> at org.ops4j.pax.exam.testng.listener.PaxExam.run(PaxExam.java:308)
>>> at
>>> org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
>>> at org.testng.internal.Invoker.invokeMethod(Invoker.java:652)
>>> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:845)
>>> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1153)
>>> at
>>> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
>>> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
>>> at org.testng.TestRunner.privateRun(TestRunner.java:771)
>>> at org.testng.TestRunner.run(TestRunner.java:621)
>>> at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
>>> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
>>> at org.testng.SuiteRunner.run(SuiteRunner.java:259)
>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteR

Re: [Dev] [C5] Retrieving claim values with Claim Manager changes

2016-05-25 Thread Himasha Guruge
[1]
https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/75d466dd4110ab55fb5dcb728b33611ec116bf63/feature/resources/database/WSO2CARBON_DB.sql

[2]
https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/master/tests/osgi-tests/src/test/resources/h2_test_data.sql

On Thu, May 26, 2016 at 10:19 AM, Himasha Guruge <himas...@wso2.com> wrote:

> Hi ,
>
> With the latest Claim Manager changes in carbon-security, following test
> was done to retrieve user claim values for user admin. However, an empty
> claim list is returned for the following line.
>
> user.getClaims(claims);
>
> While debugging, following stack trace was identified. I have used [1] and
> [2] to create the database tables and test data values. Any idea on what
> could be the issue? User object contains the claim mappings , however the
> values are not retrieved.
>
> Given *Caused by: org.h2.jdbc.JdbcSQLException: Invalid value "3" for
> parameter "parameterIndex" [90008-191]* could it be an issue with the
> test data?
>
> org.wso2.carbon.bpmn[org.wso2.carbon.bpmn.core.integration.BPSUserIdentityManager]
> : Error retrieving user info by id for: 41dadd2aea6e11e59ce95e5517507c66
> org.wso2.carbon.security.caas.user.core.exception.IdentityStoreException:
> Error occurred while retrieving user claims.
> at
> org.wso2.carbon.security.userstore.jdbc.connector.JDBCIdentityStoreConnector.getUserAttributeValues(JDBCIdentityStoreConnector.java:250)
> at
> org.wso2.carbon.security.caas.user.core.store.IdentityStore.getUserAttributeValues(IdentityStore.java:185)
> at
> org.wso2.carbon.security.caas.user.core.bean.User.getClaims(User.java:146)
> at
> org.wso2.carbon.bpmn.core.integration.BPSUserIdentityManager.findUserById(BPSUserIdentityManager.java:111)
> at
> org.wso2.carbon.bpmn.tests.osgi.BPMNClaimUserTaskTest.testInvokeClaimedUserTask(BPMNClaimUserTaskTest.java:144)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.injectContextAndInvoke(ProbeInvokerImpl.java:125)
> at
> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.findAndInvoke(ProbeInvokerImpl.java:85)
> at
> org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.call(ProbeInvokerImpl.java:73)
> at
> org.ops4j.pax.exam.nat.internal.NativeTestContainer.call(NativeTestContainer.java:112)
> at
> org.ops4j.pax.exam.spi.reactors.SingletonStagedReactor.invoke(SingletonStagedReactor.java:114)
> at
> org.ops4j.pax.exam.spi.reactors.PerSuiteStagedReactor.invoke(PerSuiteStagedReactor.java:47)
> at org.ops4j.pax.exam.testng.listener.PaxExam.runByDriver(PaxExam.java:458)
> at org.ops4j.pax.exam.testng.listener.PaxExam.run(PaxExam.java:308)
> at
> org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:652)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:845)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1153)
> at
> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
> at org.testng.TestRunner.privateRun(TestRunner.java:771)
> at org.testng.TestRunner.run(TestRunner.java:621)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
> at org.testng.SuiteRunner.run(SuiteRunner.java:259)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1199)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1124)
> at org.testng.TestNG.run(TestNG.java:1032)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
> Caused by: org.h2.jdbc.JdbcSQLException: Invalid value "3" for parameter
> "parameterIndex"

[Dev] [C5] Retrieving claim values with Claim Manager changes

2016-05-25 Thread Himasha Guruge
Hi ,

With the latest Claim Manager changes in carbon-security, following test
was done to retrieve user claim values for user admin. However, an empty
claim list is returned for the following line.

user.getClaims(claims);

While debugging, following stack trace was identified. I have used [1] and
[2] to create the database tables and test data values. Any idea on what
could be the issue? User object contains the claim mappings , however the
values are not retrieved.

Given *Caused by: org.h2.jdbc.JdbcSQLException: Invalid value "3" for
parameter "parameterIndex" [90008-191]* could it be an issue with the test
data?

org.wso2.carbon.bpmn[org.wso2.carbon.bpmn.core.integration.BPSUserIdentityManager]
: Error retrieving user info by id for: 41dadd2aea6e11e59ce95e5517507c66
org.wso2.carbon.security.caas.user.core.exception.IdentityStoreException:
Error occurred while retrieving user claims.
at
org.wso2.carbon.security.userstore.jdbc.connector.JDBCIdentityStoreConnector.getUserAttributeValues(JDBCIdentityStoreConnector.java:250)
at
org.wso2.carbon.security.caas.user.core.store.IdentityStore.getUserAttributeValues(IdentityStore.java:185)
at
org.wso2.carbon.security.caas.user.core.bean.User.getClaims(User.java:146)
at
org.wso2.carbon.bpmn.core.integration.BPSUserIdentityManager.findUserById(BPSUserIdentityManager.java:111)
at
org.wso2.carbon.bpmn.tests.osgi.BPMNClaimUserTaskTest.testInvokeClaimedUserTask(BPMNClaimUserTaskTest.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.injectContextAndInvoke(ProbeInvokerImpl.java:125)
at
org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.findAndInvoke(ProbeInvokerImpl.java:85)
at
org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.call(ProbeInvokerImpl.java:73)
at
org.ops4j.pax.exam.nat.internal.NativeTestContainer.call(NativeTestContainer.java:112)
at
org.ops4j.pax.exam.spi.reactors.SingletonStagedReactor.invoke(SingletonStagedReactor.java:114)
at
org.ops4j.pax.exam.spi.reactors.PerSuiteStagedReactor.invoke(PerSuiteStagedReactor.java:47)
at org.ops4j.pax.exam.testng.listener.PaxExam.runByDriver(PaxExam.java:458)
at org.ops4j.pax.exam.testng.listener.PaxExam.run(PaxExam.java:308)
at
org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:652)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:845)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1153)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:771)
at org.testng.TestRunner.run(TestRunner.java:621)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1199)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1124)
at org.testng.TestNG.run(TestNG.java:1032)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: org.h2.jdbc.JdbcSQLException: Invalid value "3" for parameter
"parameterIndex" [90008-191]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)

Thanks,

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


Re: [Dev] WSO2 BPS - Email Task

2016-05-20 Thread Himasha Guruge
Hi Waruna,

You can send the content if you pass the message body from 'non html'
field.  For example,

 
  


Thanks,
Himasha

On Fri, May 20, 2016 at 12:50 PM, Waruna Jayaweera <waru...@wso2.com> wrote:

> Hi,
> I tried the same sample but I am receiving empty mail body. I get the mail
> subject correctly but mail body is missing. Appreciate any help on this.
>
> Thanks,
> Waruna
>
> On Thu, May 19, 2016 at 11:10 AM, Himasha Guruge <himas...@wso2.com>
> wrote:
>
>> Hi Luis,
>>
>> I have tested email task in BPS 3.5.1 server with following steps.
>>
>> 1. Add the configurations in /repository/conf/activti.xml.
>> Please look into attached, for further reference.
>> 2. Add required jars mentioned in [1]  into
>> /repository/components/lib.
>> 3. Deploy the sample, and start the process from bpmn-explorer.
>>
>> As Amal mentioned make sure you have enabled less secure apps to access.
>> I'm also attaching the sample I used. (MyProcess.bar)
>>
>> [1] https://docs.wso2.com/display/BPS351/Working+With+Email+Task
>>
>> Thanks,
>> Himasha
>>
>>
>> On Thu, May 19, 2016 at 10:08 AM, Nandika Jayawardana <nand...@wso2.com>
>> wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: Amal Gunatilake <am...@wso2.com>
>>> Date: Wed, May 18, 2016 at 9:29 PM
>>> Subject: Re: WSO2 BPS - Email Task
>>> To: Luis Calderon Rodríguez <luis.calde...@proxus.pe>
>>> Cc: Nandika Jayawardana <nand...@wso2.com>, Hasitha Hiranya <
>>> hasit...@wso2.com>, Miler Alberto García Villanueva <
>>> miler.gar...@proxus.pe>
>>>
>>>
>>> Hi Luis,
>>>
>>> Seems like you have everything in order from BPS side configurations.
>>>
>>> I can only think of one more configuration that is missing on your
>>> steps. Have you enabled Gmail security settings[1] to allow less secure
>>> apps to access?
>>>
>>> [1] https://support.google.com/accounts/answer/6010255?hl=en
>>>
>>> Best regards,
>>> Amal.
>>>
>>> On Wed, May 18, 2016 at 9:05 PM, Luis Calderon Rodríguez <
>>> luis.calde...@proxus.pe> wrote:
>>>
>>>> Hi Amal,
>>>>
>>>>
>>>> Thanks for answering this mail.
>>>>
>>>>
>>>> If I have installed the latest version:
>>>> /opt/wso2bps-3.5.1/repository/deployment/server/
>>>>
>>>>
>>>> Copy the dependencies jar :
>>>> /opt/wso2bps-3.5.1./repository/components/lib/
>>>>
>>>>
>>>> org.apache.commons:commons-email:jar:1.3
>>>>
>>>> javax.mail:mail:jar:1.4.7
>>>>
>>>> javax.activation:activation:jar:1.1
>>>>
>>>>
>>>> Then, set the parameters in the file activiti.xml:
>>>> /opt/wso2bps-3.5.1./repository/conf/
>>>>
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> Finally restart the server, but still the problem persists.
>>>>
>>>>
>>>> Best regards
>>>> Luis
>>>>
>>>> 2016-05-18 1:09 GMT-05:00 Amal Gunatilake <am...@wso2.com>:
>>>>
>>>>> Hi Luis,
>>>>>
>>>>> There was a dependency issue[1] in email task which we fixed in BPS
>>>>> 3.5.1 release. Could you please try it out with the latest BPS release?
>>>>> This should probably resolve the error.
>>>>>
>>>>> [1] https://wso2.org/jira/browse/BPS-978
>>>>>
>>>>> Best regards,
>>>>> Amal.
>>>>>
>>>>> On Wed, May 18, 2016 at 11:13 AM, Luis Calderon Rodríguez <
>>>>> luis.calde...@proxus.pe> wrote:
>>>>>
>>>>>> Hi guys,
>>>>>>
>>>>>>
>>>>>> I hope you are very well.
>>>>>>
>>>>>>
>>>>>> I've had some problems with mail tasks,I have this error message: “Error
>>>>>> starting process:
>>>>>> org.apache.commons.mail.Email.setSSLOnConnect(Z)Lorg/apache/commons/mail/Email
>>>>>> ”
>>>>>>
>>>>>>
>>>>>&g

Re: [Dev] WSO2 BPS - Email Task

2016-05-18 Thread Himasha Guruge
t;>>>
>>>> 
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>> ==
>>>>
>>>>
>>>> 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 <nand...@wso2.com>:
>>>>>
>>>>>> 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 <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.calde...@proxus.pe>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Luis Calderón*
>>>> *PROXUS SAC*
>>>> *e-mail: luis.calde...@proxus.pe <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 <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


MyProcess.bar
Description: Binary data
http://www.springframework.org/schema/beans;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd;>


































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


Re: [Dev] Reading headers/form fields of a multipart/form-data request in msf4j

2016-05-10 Thread Himasha Guruge
In C4 we have used [1] for this purpose.

[1] http://cxf.apache.org/docs/jax-rs-multiparts.html

On Wed, May 11, 2016 at 11:12 AM, Afkham Azeez <az...@wso2.com> wrote:

> Any libraries you are familiar with? Since BPS folks are using the code
> from the MSF4J master branch, we may be able to quickly implement it.
>
> On Wed, May 11, 2016 at 11:09 AM, Samiyuru Senarathne <samiy...@wso2.com>
> wrote:
>
>> Hi Azeez,
>>
>> Yes I looked at this sometime back. But it was not progressed to the
>> implementation level.
>>
>> For the moment we will have to use a multipart/form-data parsing library
>> to parse the raw HTTP body. We can get the raw HTTP body by injecting an
>> org.wso2.msf4j.Request object to the resource method using @Context
>> annotation.
>>
>> Best Regards,
>> Samiyuru
>>
>> On Wed, May 11, 2016 at 11:02 AM, Afkham Azeez <az...@wso2.com> wrote:
>>
>>> Samiyuru,
>>> You looked at this some time back right? What work is involved in
>>> implementing this?
>>>
>>> Azeez
>>>
>>> On Wed, May 11, 2016 at 11:00 AM, Himasha Guruge <himas...@wso2.com>
>>> wrote:
>>>
>>>> From the offline discussion with Azeez, it seems that this is not
>>>> supported in current msf4j implementation. How are we to proceed with the
>>>> use case of acquiring form field values from the request?
>>>>
>>>>
>>>>
>>>> On Wed, Apr 6, 2016 at 11:22 AM, Himasha Guruge <himas...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I have gone through the available sample [1]  on how to process a
>>>>> stream and read and save files in msf4j. However given a request with form
>>>>> fields like [2] , how can we retrieve those form fields in msf4j? If it is
>>>>> to read from the stream itself, any suggested way to do this?
>>>>>
>>>>> [1]
>>>>> https://github.com/wso2/msf4j/blob/652435ee7f8fdf31307667adb888e9a13513f6d8/samples/petstore/microservices/fileserver/src/main/java/org/wso2/msf4j/examples/petstore/fileserver/FileServerService.java
>>>>>
>>>>> [2] curl --form
>>>>> "fileupload=@Desktop/bigdot.png;filename=desired-filename.txt" --form
>>>>> param1=value1 --form param2=value2
>>>>> http://localhost:8080/bps/repo/stream
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Himasha Guruge
>>>>> *Software Engineer*
>>>>> WS*O2* *Inc.*
>>>>> Mobile: +94 777459299
>>>>> himas...@wso2.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * <http://www.apache.org/>*
>>> *email: **az...@wso2.com* <az...@wso2.com>
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> <http://twitter.com/afkham_azeez>
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Samiyuru Senarathne
>> *Software Engineer*
>> Mobile : +94 (0) 71 134 6087
>> samiy...@wso2.com
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *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


Re: [Dev] Reading headers/form fields of a multipart/form-data request in msf4j

2016-05-10 Thread Himasha Guruge
>From the offline discussion with Azeez, it seems that this is not supported
in current msf4j implementation. How are we to proceed with the use case of
acquiring form field values from the request?



On Wed, Apr 6, 2016 at 11:22 AM, Himasha Guruge <himas...@wso2.com> wrote:

> Hi All,
>
> I have gone through the available sample [1]  on how to process a stream
> and read and save files in msf4j. However given a request with form fields
> like [2] , how can we retrieve those form fields in msf4j? If it is to read
> from the stream itself, any suggested way to do this?
>
> [1]
> https://github.com/wso2/msf4j/blob/652435ee7f8fdf31307667adb888e9a13513f6d8/samples/petstore/microservices/fileserver/src/main/java/org/wso2/msf4j/examples/petstore/fileserver/FileServerService.java
>
> [2] curl --form
> "fileupload=@Desktop/bigdot.png;filename=desired-filename.txt" --form
> param1=value1 --form param2=value2 http://localhost:8080/bps/repo/stream
>
> Thanks,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



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


Re: [Dev] [Architecture] [PC] Web based flowchart editor using jsPlumb

2016-04-08 Thread Himasha Guruge
>>
>>>>> Hi,
>>>>>
>>>>> Can you share the notes that taken during the review.
>>>>>
>>>>> Regards,
>>>>>
>>>>> *Dakshika Jayathilaka*
>>>>> PMC Member & Committer of Apache Stratos
>>>>> Senior Software Engineer
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware
>>>>> 0771100911
>>>>>
>>>>> On Fri, Mar 18, 2016 at 12:13 PM, Dilini Mihindra <dili...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I implemented a flowchart editor for the Process Center (PC). It was
>>>>>> implemented using the jsPlumb.js library. A user can describe a BPMN
>>>>>> process by creating a corresponding flowchart diagram using this editor.
>>>>>> There are four basic elements in the editor; the start element, the
>>>>>> decision element, the step element and the end element.
>>>>>>
>>>>>> Following functionalities are included in the editor:
>>>>>>
>>>>>>- User can draw flowchart diagrams using the elements provided in
>>>>>>the palette.
>>>>>>- User can connect elements by drawing connections from source
>>>>>>endpoints to target endpoints.
>>>>>>- These connections can be labeled.
>>>>>>- Elements and connections can be deleted.
>>>>>>- All the elements within the drawing area can be dragged and
>>>>>>re-positioned.
>>>>>>- The step and the decision elements can be re-sized.
>>>>>>- User can edit the label of an element and specify his/her own
>>>>>>descriptions.
>>>>>>- User can modify previously saved flowcharts.
>>>>>>
>>>>>> Please find a document containing more details regarding the
>>>>>> flowchart editor, attached herewith.
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>> Dilini Mihindra Mampitiya Arachchi
>>>>>> Intern - Software Engineer
>>>>>> Mobile: +94 710 420 550
>>>>>> Email: dili...@wso2.com
>>>>>>
>>>>>> ___
>>>>>> Architecture mailing list
>>>>>> architect...@wso2.org
>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ___
>>>> Architecture mailing list
>>>> architect...@wso2.org
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>>
>>>
>>>
>>> --
>>> *Thanks and Regards*,
>>> Imesh Chandrasiri
>>> Software Engineer
>>> *E:* ime...@wso2.com | *P:* 0716519187
>>>
>>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] product-mss hangs after deploying a (faulty) service

2016-04-07 Thread Himasha Guruge
Hi Rasika,

Please find the attached  pom.xml that is in place.

Regards,
Himasha

On Thu, Apr 7, 2016 at 2:07 PM, Manuranga Perera <m...@wso2.com> wrote:

> Rasika is the one who actually fixed it. I think it was some OSGi thing
> being not imported or exported properly.
> Rasika can you please mention the steps.
>
> On Thu, Apr 7, 2016 at 1:57 PM, Hasitha Aravinda <hasi...@wso2.com> wrote:
>
>> Hi Manu,
>>
>> were you able to solve this issue, I am getting the same error.
>>
>> Thanks,
>> Hasitha.
>>
>> On Wed, Feb 10, 2016 at 1:42 PM, Manuranga Perera <m...@wso2.com> wrote:
>>
>>> MSS product hangs when I deploy my service, but fat-jar mode works.
>>>
>>> prints
>>> Waiting on pending capability registration. Capability:
>>> org.wso2.msf4j.Interceptor
>>>
>>> how to proceed debugging?
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> --
>> Hasitha Aravinda,
>> Senior Software Engineer,
>> WSO2 Inc.
>> Email: hasi...@wso2.com
>> Mobile : +94 718 210 200
>>
>
>
>
> --
> 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
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com


http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;>


org.wso2.carbon.business-process
bpmn
5.0.0-SNAPSHOT
../pom.xml



4.0.0
org.wso2.carbon.bpmn.rest
bpmn rest api
bundle
WSO2 Carbon - BPMN Rest Component
http://wso2.org




org.codehaus.mojo
findbugs-maven-plugin

false










org.wso2.carbon.business-process
org.wso2.carbon.bpmn




org.wso2.orbit.org.activiti
activiti-all


org.wso2.orbit.com.fasterxml.jackson.core
jackson-core


org.wso2.orbit.com.fasterxml.jackson.core
jackson-annotations


org.wso2.orbit.com.fasterxml.jackson.core
jackson-databind


org.wso2.orbit.com.fasterxml.jackson.module
jackson-module-jaxb-annotations


joda-time
joda-time




org.wso2.msf4j
msf4j-core


org.eclipse.osgi
org.eclipse.osgi





commons-httpclient
commons-httpclient
3.1
provided


commons-logging
commons-logging
provided


org.apache.commons
commons-lang3


org.eclipse.equinox
javax.servlet




true

org.wso2.carbon.bpmn.rest.*,
version=${carbon.business-process.exp.pkg.version},


org.osgi.framework; version="[1.8.0, 2.0.0)",
org.wso2.msf4j.*;version="${carbon.msf4j.version}",
org.slf4j; version="[1.7.7, 2.0.0)",
javax.ws.rs.*,

*


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


[Dev] Reading headers/form fields of a multipart/form-data request in msf4j

2016-04-05 Thread Himasha Guruge
Hi All,

I have gone through the available sample [1]  on how to process a stream
and read and save files in msf4j. However given a request with form fields
like [2] , how can we retrieve those form fields in msf4j? If it is to read
from the stream itself, any suggested way to do this?

[1]
https://github.com/wso2/msf4j/blob/652435ee7f8fdf31307667adb888e9a13513f6d8/samples/petstore/microservices/fileserver/src/main/java/org/wso2/msf4j/examples/petstore/fileserver/FileServerService.java

[2] curl --form
"fileupload=@Desktop/bigdot.png;filename=desired-filename.txt" --form
param1=value1 --form param2=value2 http://localhost:8080/bps/repo/stream

Thanks,

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


[Dev] Resources supported by @Context annotation in msf4j

2016-03-23 Thread Himasha Guruge
Hi All,

Found from [1] that currently the supported object injections are for
HttpStreamHandler,HttpRequest and HttpResponder.

 Are there any plans for this annotation to support injecting Http URI
related details  as well? Since our existing BPMN REST api is using this
annotation to get above information.


[1]
https://docs.wso2.com/display/MSF4J100/Key+Concepts#KeyConcepts-Supportedannotations

Thanks,

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


Re: [Dev] JNDI bundle deployment error

2016-03-19 Thread Himasha Guruge
Hi Nipuni,

I tried removing all custom bundles but it didn't resolve the issue.
However, I built a new pack and tried  the bundle and it got activated
fine. Thanks for the quick response.

Thanks,
Himasha

On Wed, Mar 16, 2016 at 5:45 PM, Nipuni Perera <nip...@wso2.com> wrote:

> Hi Himasha,
>
> I have build the msf4j (master branch) and added the jndi jar to dropins
> location and could start the server. I have checked the bundle status and
> the bundle org.wso2.carbon.jndi_1.0.0.SNAPSHOT is in Active state.
>
> As per the exception  [1], jndi activation should fail and the bundle
> should not activate.
>
> Can you please try to reproduce this without any custom bundles in your
> environment?
>
> [1] [org.wso2.carbon.jndi.internal.JNDIActivator] :
> InitialContextFactoryBuilder already set
>
> java.lang.IllegalStateException: InitialContextFactoryBuilder already set
>
> ...
>
> Thanks,
>
> Nipuni
>
> On Wed, Mar 16, 2016 at 4:56 PM, Himasha Guruge <himas...@wso2.com> wrote:
>
>> Thanks for the update Nipuni. I have created a JIRA in [1].
>>
>>
>> []1 https://wso2.org/jira/browse/CARBON-15812
>>
>> On Wed, Mar 16, 2016 at 4:48 PM, Nipuni Perera <nip...@wso2.com> wrote:
>>
>>> Hi Himasha,
>>>
>>> With JNDIActivator we set the InitialContextFactoryBuilder while
>>> starting the bundle. It seems that some other service too trying to set the 
>>> InitialContextFactoryBuilder
>>> in mss.
>>> I will check this and get back to you soon.
>>>
>>> Can you also create a jira to track the issue?
>>>
>>> Thanks,
>>> Nipuni
>>>
>>> On Wed, Mar 16, 2016 at 3:57 PM, Himasha Guruge <himas...@wso2.com>
>>> wrote:
>>>
>>>> Hi Nipuni,
>>>>
>>>> I was trying to deploy JNDI jar built from [1]  in mss, and got the
>>>> following exception. I have removed our custom component bundles to make
>>>> sure they are not causing below exceptions. Appreciate any help on this.
>>>>
>>>> [org.wso2.carbon.jndi.internal.JNDIActivator] :
>>>> InitialContextFactoryBuilder already set
>>>>
>>>> java.lang.IllegalStateException: InitialContextFactoryBuilder already
>>>> set
>>>>
>>>> at
>>>> javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:709)
>>>>
>>>> at
>>>> org.wso2.carbon.jndi.internal.JNDIActivator.start(JNDIActivator.java:53)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>>>>
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>>>>
>>>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>>>>
>>>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
>>>>
>>>> at
>>>> org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)
>>>>
>>>> at
>>>> org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)
>>>>
>>>> at
>>>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)
>>>>
>>>> at
>>>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)
>>>>
>>>> at org.eclipse.osgi.container.Module.start(Module.java:416)
>>>>
>>>> at
>>>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)
>>>>
>>>> at
>>>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
>>>&g

Re: [Dev] JNDI bundle deployment error

2016-03-19 Thread Himasha Guruge
Thanks for the update Nipuni. I have created a JIRA in [1].


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

On Wed, Mar 16, 2016 at 4:48 PM, Nipuni Perera <nip...@wso2.com> wrote:

> Hi Himasha,
>
> With JNDIActivator we set the InitialContextFactoryBuilder while starting
> the bundle. It seems that some other service too trying to set the 
> InitialContextFactoryBuilder
> in mss.
> I will check this and get back to you soon.
>
> Can you also create a jira to track the issue?
>
> Thanks,
> Nipuni
>
> On Wed, Mar 16, 2016 at 3:57 PM, Himasha Guruge <himas...@wso2.com> wrote:
>
>> Hi Nipuni,
>>
>> I was trying to deploy JNDI jar built from [1]  in mss, and got the
>> following exception. I have removed our custom component bundles to make
>> sure they are not causing below exceptions. Appreciate any help on this.
>>
>> [org.wso2.carbon.jndi.internal.JNDIActivator] :
>> InitialContextFactoryBuilder already set
>>
>> java.lang.IllegalStateException: InitialContextFactoryBuilder already set
>>
>> at
>> javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:709)
>>
>> at
>> org.wso2.carbon.jndi.internal.JNDIActivator.start(JNDIActivator.java:53)
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>>
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>>
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>>
>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>>
>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>>
>> at
>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)
>>
>> at org.eclipse.osgi.container.Module.start(Module.java:416)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>> [1] https://github.com/wso2/carbon-jndi
>>
>> Thanks,
>>
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Blog : http://nipunipererablog.blogspot.com/
> Mobile: +94 (71) 5626680
> <http://wso2.com>
>
>


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


Re: [Dev] C5- Datasource startup order issue

2016-03-19 Thread Himasha Guruge
Thanks for the explanation Kishanthan.It seems that the JNDI and data
sources bundles used were outdated.  Was able to solve the issue with a
reference to JNDIContextManager.

On Tue, Mar 15, 2016 at 5:44 PM, Kishanthan Thangarajah <kishant...@wso2.com
> wrote:

>
> On Tue, Mar 15, 2016 at 11:28 AM, Himasha Guruge <himas...@wso2.com>
> wrote:
>
>> Hi Sameera,
>>
>> Thanks for the provided info.In bpmn component   to  build  activiti
>> engine, we require the datasource bundle to be available. Therefore we
>> tried adding  @Reference annotation  of
>> org.wso2.carbon.kernel.datasource.core.internal.DataSourceListenerComponent
>> (for activate method of ActivitiEngineBuilder) but this did not work.
>>
>
> Why this did not work? What's the issue?
>
>>
>>  AFAIU what you suggest is to implement a Listener class that would
>> contain onJNDIReady() method, which would require other bundles(activiti
>> bundle in this case) to wait until this method is executed.  Could you
>> please provide any suggestions on this?
>>
>
> To use JNDI in carbon OSGi env, you have to add a mandatory reference to
> JNDIContextManager and then wait on until it's available. This will be our
> recommendation. Can you explain the use case of activity bundle and
> datasources and the ordering issue you are facing with the above approach?
>
>
>
>> Regards,
>>
>>
>> On Tue, Mar 15, 2016 at 8:52 AM, Sameera Jayasoma <same...@wso2.com>
>> wrote:
>>
>>> HI Himasha,
>>>
>>> You can refer following documents and samples.
>>>
>>> https://github.com/wso2/carbon-jndi
>>>
>>> https://github.com/wso2/carbon-datasources/blob/master/sample/src/main/java/org/wso2/carbon/datasource/sample/DataSourceServiceListenerComponent.java
>>>
>>> On Tue, Mar 15, 2016 at 4:08 AM, Himasha Guruge <himas...@wso2.com>
>>> wrote:
>>>
>>>> Hi Sameera,
>>>>
>>>> With regards to $subject, so far we have used the workaround of
>>>> manually renaming the bundle's symbolic name which works perfectly. However
>>>> is it possible to know when this fix will be available?
>>>>
>>>> Regards,
>>>>
>>>> Himasha Guruge
>>>> *Software Engineer*
>>>> WS*O2* *Inc.*
>>>> Mobile: +94 777459299
>>>> himas...@wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://blog.sameera.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



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


Re: [Dev] [BPS] Error when passing parameters to a SOAP operation with Apache CXF

2016-03-19 Thread Himasha Guruge
Hi Natasha,

Can you try passing the operation name with the namespace as well?

Regards,
Himasha

On Thu, Mar 17, 2016 at 2:16 PM, Natasha Wijesekara <nata...@wso2.com>
wrote:

> Hi,
>
> I'm trying to invoke an external soap service operation which takes
> integers as the parameters.
>
> *Request Body of the Soap Service *:
>
> * xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> <http://schemas.xmlsoap.org/soap/envelope/>"
> xmlns:add="http://wso2.org/wso2con/2011/sample/adder
> <http://wso2.org/wso2con/2011/sample/adder>">*
> *   *
> *   *
> *  *
> * ?*
> * ?*
> *  *
> *   *
> **
>
> I have created a client to invoke the soap operation using
> JaxWsDynamicClientFactory.
> JaxWsDynamicClientFactory clientFactory =
> JaxWsDynamicClientFactory.newInstance();
>
> I have invoked the operation by passing the operation name and the
> parameters to the client.
> When multiple parameters of type *string* is passed, no error is given.
>
> In this request I need to pass 2 *integers* as the parameters as shown
> below :
> client.invoke("operationName", num1, num2);
> But when I do so I get the following error :
>
> *java.lang.IllegalArgumentException: Part
> {http://wso2.org/wso2con/2011/sample/adder}payload
> <http://wso2.org/wso2con/2011/sample/adder%7Dpayload> should be of type
> org.wso2.wso2con._2011.sample.adder.AdderProcessRequest, not
> java.lang.Integer*
> * at
> org.apache.cxf.jaxb.io.DataWriterImpl.checkPart(DataWriterImpl.java:284)*
> * at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:212)*
> * at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:122)*
> * at
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)*
> * at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)*
> * at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:572)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:341)*
>
>  Appreciate any help on this.
>
> Best Regards,
> *Natasha Wijesekare*
>
> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
> <http://wso2.com/>*
> *email  : nata...@wso2.com <nata...@wso2.com>*
> *mobile: +94 771358651 <%2B94%20771358651>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] JNDI bundle deployment error

2016-03-16 Thread Himasha Guruge
Hi Nipuni,

I was trying to deploy JNDI jar built from [1]  in mss, and got the
following exception. I have removed our custom component bundles to make
sure they are not causing below exceptions. Appreciate any help on this.

[org.wso2.carbon.jndi.internal.JNDIActivator] :
InitialContextFactoryBuilder already set

java.lang.IllegalStateException: InitialContextFactoryBuilder already set

at
javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:709)

at org.wso2.carbon.jndi.internal.JNDIActivator.start(JNDIActivator.java:53)

at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)

at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)

at java.security.AccessController.doPrivileged(Native Method)

at
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)

at
org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)

at
org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)

at
org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)

at org.eclipse.osgi.container.Module.doStart(Module.java:571)

at org.eclipse.osgi.container.Module.start(Module.java:439)

at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)

at
org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)

at
org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)

at
org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)

at
org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)

at org.eclipse.osgi.container.Module.start(Module.java:416)

at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)

at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
[1] https://github.com/wso2/carbon-jndi

Thanks,

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


Re: [Dev] C5- Datasource startup order issue

2016-03-14 Thread Himasha Guruge
Hi Sameera,

Thanks for the provided info.In bpmn component   to  build  activiti
engine, we require the datasource bundle to be available. Therefore we
tried adding  @Reference annotation  of
org.wso2.carbon.kernel.datasource.core.internal.DataSourceListenerComponent
(for activate method of ActivitiEngineBuilder) but this did not work.

 AFAIU what you suggest is to implement a Listener class that would contain
onJNDIReady() method, which would require other bundles(activiti bundle in
this case) to wait until this method is executed.  Could you please provide
any suggestions on this?

Regards,


On Tue, Mar 15, 2016 at 8:52 AM, Sameera Jayasoma <same...@wso2.com> wrote:

> HI Himasha,
>
> You can refer following documents and samples.
>
> https://github.com/wso2/carbon-jndi
>
> https://github.com/wso2/carbon-datasources/blob/master/sample/src/main/java/org/wso2/carbon/datasource/sample/DataSourceServiceListenerComponent.java
>
> On Tue, Mar 15, 2016 at 4:08 AM, Himasha Guruge <himas...@wso2.com> wrote:
>
>> Hi Sameera,
>>
>> With regards to $subject, so far we have used the workaround of manually
>> renaming the bundle's symbolic name which works perfectly. However is it
>> possible to know when this fix will be available?
>>
>> Regards,
>>
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


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


[Dev] C5- Datasource startup order issue

2016-03-14 Thread Himasha Guruge
Hi Sameera,

With regards to $subject, so far we have used the workaround of manually
renaming the bundle's symbolic name which works perfectly. However is it
possible to know when this fix will be available?

Regards,

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


Re: [Dev] Complete Task using Human Task explorer

2016-03-10 Thread Himasha Guruge
Hi Lakshitha,

You can complete the task using Human Task Explorer of BPS, as long as your
deployed sample contains ht renderings. Explorer will not work without ht
renderings.

Thanks,
Himasha

On Fri, Mar 11, 2016 at 7:21 AM, Lakshitha Warnakulasuriya <
lakshitha...@gmail.com> wrote:

> Hi All,
>
> How to complete a task in Human Task Explorer. Is there any option to
> Complete the task using Human Task Explorer or Human Task Explorer is only
> for view the Task.
> Any help can be really appreciated.
>
> Thanks and Regards,
> Lakshitha.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Business Process Server 3.5.1 RC3

2016-03-01 Thread Himasha Guruge
Hi,

Tested following against mysql db.

1. Bpmn samples and bpmn explorer.

2. Human task sample and human-task explorer.

3. Bpel samples.

4.Email/sms notifications of humantasks.

5.Bpmn/bpel cleanup script execution with a load of 1000 instances each.

[ ] Stable - go ahead and release.

Thanks,

Himasha

On Tue, Mar 1, 2016 at 11:44 AM, Amal Gunatilake <am...@wso2.com> wrote:

> Hi Devs,
>
> This is the third release candidate of WSO2 Business Process Server 3.5.1
>
> *This release fixes the following issues:*
> https://wso2.org/jira/secure/IssueNavigator.jspa?mode=hide=12625
>
> Please download, test and vote.
>
> *Source & binary distribution files:*
> Source : https://github.com/wso2/product-bps/archive/v3.5.1-RC3.zip
> Binary :
> https://github.com/wso2/product-bps/releases/download/v3.5.1-RC3/wso2bps-3.5.1.zip
>
> *Maven staging repo:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-394/
>
> The tag to be voted upon:
>
> https://github.com/wso2/product-bps/releases/tag/v3.5.1-RC3
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Best regards,
> Amal.
> --
> *Amal Gunatilake*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> ___________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 BRS 2.2.0 RC

2015-12-22 Thread Himasha Guruge
Hi All,

I have tested following.
[1]. Load testing against stateless rule services.

No issues found.

[x] - Stable - Go ahead and release.


Thanks,
Himasha

On Tue, Dec 22, 2015 at 8:48 PM, Milinda Perera <milin...@wso2.com> wrote:

> Hi Devs,
>
> WSO2 BRS 2.2.0 RC Release Vote
>
> This release fixes the following issues:
> https://wso2.org/jira/browse/BRS-134?filter=12526
>
> Please download BRS 2.2.0 RC and test the functionality and vote. Vote
> will be open for 72 hours or as needed.
>
> Binary distribution at:
>
> https://svn.wso2.org/repos/wso2/people/milindap/BRS/releases/RC/wso2brs-2.2.0.zip
>
> Maven staging repository:
> http://maven.wso2.org/nexus/content/repositories/orgwso2brs-233/
>
> The tag to be voted upon :
> https://github.com/wso2/product-brs/tree/v2.2.0-RC
>
>
> [-] Broken - do not release (explain why)
> [+] Stable - go ahead and release
>
> Thanks and Regards,
> WSO2 BPS/BRS Team
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>


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


Re: [Dev] [ES]Query of recent assets in ES store

2015-10-13 Thread Himasha Guruge
Thanks for the response Udara.

On Tue, Oct 13, 2015 at 6:02 PM, Udara Rathnayake <uda...@wso2.com> wrote:

> Since we have the asset UUID in url, using a proxy to track page views is
> an option. But not sure how practical.
>
> On Tue, Oct 13, 2015 at 5:58 PM, Udara Rathnayake <uda...@wso2.com> wrote:
>
>>
>>
>> On Tue, Oct 13, 2015 at 4:36 PM, Himasha Guruge <himas...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> How are recent assets queried in ES store? Is it based on the created
>>> time( most recently created) or is it based on the number of views per
>>> asset?
>>>
>> based on created time.
>>
>>>
>>>   Also is there an already available api/method  that can be used to
>>> query mostly viewed/accessed assets?  Given that there is no out of the box
>>> method what would be the best way to achieve above?
>>>
>>
>> We don't have any stat related capabilities to track no of views ATM. We
>> have stats related to number of bookmarks/downloads.
>>
>>>
>>> Thanks,
>>>
>>> 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
>>>
>>>
>>
>


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


[Dev] [ES]Query of recent assets in ES store

2015-10-13 Thread Himasha Guruge
Hi all,

How are recent assets queried in ES store? Is it based on the created time(
most recently created) or is it based on the number of views per asset?

  Also is there an already available api/method  that can be used to query
mostly viewed/accessed assets?  Given that there is no out of the box
method what would be the best way to achieve above?

Thanks,

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


Re: [Dev] [VOTE] Release WSO2 BPS 3.5.0 RC2

2015-10-01 Thread Himasha Guruge
Hi,

I tested following areas related to BPEL Capp .

 1. BPEL Capp deployment.
 2. BPEL Capp undeployment.
 3.  Active/retire/suspend actions on the deployed Capp.

[x]Stable- go ahead and release.

Thanks,


On Thu, Oct 1, 2015 at 11:42 AM, Isuru Wijesinghe <isur...@wso2.com> wrote:

> Hi,
> I tested all the samples.
>
>- BPMN samples
>- BPEL Samples
>- HumanTask Samples
>
> [x] Stable - go ahead and release
>
> Thanks and Regards,
>
> On Wed, Sep 30, 2015 at 3:40 PM, Vinod Kavinda <vi...@wso2.com> wrote:
>
>> Hi,
>> I tested the HumanTask and BPEL functionalities.
>>
>> [x] Stable - go ahead and release
>>
>> Regards,
>> Vinod
>>
>> On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash <firz...@wso2.com>
>> wrote:
>>
>>>
>>> Hi Devs,
>>>
>>> *WSO2 BPS 3.5.0 RC2 Release Vote*
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/browse/BPS-604?filter=12415
>>>
>>> Please download BPS 3.5.0 RC2 and test the functionality and vote. Vote
>>> will be open for 72 hours or as needed.
>>>
>>> Binary distribution at:
>>> http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/
>>>
>>> Maven staging repository:
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/
>>>
>>> The tag to be voted upon :
>>> https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2
>>>
>>>
>>> [-] Broken - do not release (explain why)
>>> [+] Stable - go ahead and release
>>>
>>> Thanks and Regards,
>>> WSO2 BPS Team
>>>
>>>
>>>
>>> Regards,
>>> Firzhan
>>>
>>>
>>> --
>>> *Firzhan Naqash*
>>> Senior Software Engineer - Integration Platform Team
>>> WSO2 Inc. http://wso2.com
>>>
>>> email: firz...@wso2.com <lasan...@wso2.com>
>>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>>> blog: http://firzhanblogger.blogspot.com/
>>> <http://firzhanblogger.blogspot.com/>  <http://suhothayan.blogspot.com/>*
>>> *twitter: https://twitter.com/firzhan007
>>> <https://twitter.com/firzhan007> | linked-in: 
>>> **https://www.linkedin.com/in/firzhan
>>> <https://www.linkedin.com/in/firzhan>*
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> Mobile: 0710933706
> isur...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ES : Unable to retrieve resource from registry

2015-09-16 Thread Himasha Guruge
Hi,

In an ES asset extension, I'm saving a resource (text with some html tags)
to the registry, and later on with ajax GET i'm trying to retrieve that
content. ( var result = userReg.get(path))

 A result object is given but when trying to access result.content it gives
null. Any idea how to overcome this? I was creating the resource before
with mediaType:text/plain. Could changing the mediaType solve this?


Thanks,

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


Re: [Dev] ES : Unable to retrieve resource from registry

2015-09-16 Thread Himasha Guruge
Thanks Chanaka, will try it out.


Regards,
Himasha

On Thu, Sep 17, 2015 at 10:15 AM, Chanaka Jayasena <chan...@wso2.com> wrote:

> You can access the content with userReg.content(path);
>
> Refer to [1] for a sample where we read and write resources from registry
> with product ES.
>
> [1] -
> https://github.com/wso2/carbon-store/blob/master/apps/publisher/modules/registry/registry.operator.js
>
> thanks,
> Chanaka
>
> On Wed, Sep 16, 2015 at 5:06 PM, Himasha Guruge <himas...@wso2.com> wrote:
>
>>
>> Hi,
>>
>> In an ES asset extension, I'm saving a resource (text with some html
>> tags) to the registry, and later on with ajax GET i'm trying to retrieve
>> that content. ( var result = userReg.get(path))
>>
>>  A result object is given but when trying to access result.content it
>> gives null. Any idea how to overcome this? I was creating the resource
>> before with mediaType:text/plain. Could changing the mediaType solve this?
>>
>>
>> Thanks,
>>
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Chanaka Jayasena
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> email: chan...@wso2.com; cell: +94 77 785 5565
> blog: http://chanaka3d.blogspot.com
>



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


Re: [Dev] [ES]Overriding a Global Page returns TypeError: Cannot read property "types" from undefined

2015-09-10 Thread Himasha Guruge
Hi Rasika,

Shouldn't it be 'store_common' instead of store-common?

Thanks,
Himasha

On Thu, Sep 10, 2015 at 11:15 AM, Rasika Perera <rasi...@wso2.com> wrote:

> Hi all,
>
> I am trying to partially override a global page in ES v2. I followed this
> [1] doc. Here are the steps I followed;
>
> 1. Created "shell" of an app extension called "store-device" in
> "/repository/deployment/server/jaggeryapps/store/extensions/app"
> path.
>
> 2. Added a dependency to "store-common" and overridden app.server()
> callback method on app.js on
> "/repository/deployment/server/jaggeryapps/store/extensions/app/store-device/app.js"
> path.
>
> app.dependencies = ['store-common'];
> app.server = function(ctx) {
> return {
> endpoints: {
> pages: [
> title:'Store | My Items',
> url:'my-items',
> path:'my_items.jag',
> secured:true,
> permission:'APP_MYITEMS'
> }]
> },
>
> 3. Added an overriding controller "my_items.jag" on "
> /repository/deployment/server/jaggeryapps/store/extensions/app/store-device/pages/"
> path.
>
> 4. Added an overriding renderer "my_items.js" on
> "/repository/deployment/server/jaggeryapps/store/extensions/app/store-device/themes/store/renders/pages/"
> path.
>
> 5. Added an overriding partial "my_items.hbs" on "
> /repository/deployment/server/jaggeryapps/store/extensions/app/store-device/themes/store/partials/"
> path.
>
> --
>
> When trying to access the my page on "
> https://localhost:9443/store/pages/my-items;; I am getting a "TypeError:
> Cannot read property "types" from undefined". Complete log can be found on
> [2].
>
> Complete "store-device" shell's folder structure is as follows;
>
>
> /repository/deployment/server/jaggeryapps/store/extensions/app/store-device
>  |
>  |---*app.js*
>  |---pages
>  |`---*my_items.jag*
>  `---themes
>   |---default
>   |`---renderers
>   |  `---pages
>   |`---*my_items.js*
>   `---store
> `---partials
>   `---*my_items.hbs*
>
> Any help to solve this problem will be greatly appreciated.
>
> Thank you
>
> Links
> [1] https://docs.wso2.com/display/ES200/Overriding+a+Global+Page
> ​[2] Error log; see the attachment: console_log.txt
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: rasi...@wso2.com
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [DEV] SMS publisher gives a negative bind response

2015-08-12 Thread Himasha Guruge
Hi Udani,

Just a hunch, when defining the new user in user.txt, make sure you have
not added any spaces/blank lines. According to the spec, name= cep1 and
name=cep1 are considered as two different users.


Thanks,
Himasha

On Wed, Aug 12, 2015 at 8:20 AM, Sriskandarajah Suhothayan s...@wso2.com
wrote:

 Please also attach all the config files you have created

 Suho

 On Wed, Aug 12, 2015 at 5:47 PM, Udani Weeraratne ud...@wso2.com wrote:

 Hi,

 I have been trying to use the sample given in (
 https://docs.wso2.com/display/CEP400/Sample+0065+-+Publishing+JSON+Events+via+SMS+Transport
 ) to check the sms type publisher in DAS. But it gives the following error
 when the stream is simulated. I have even checked that using the CEP 4.0,
 but still it gives the same error. Could you please explain what is wrong
 with it.
 Please find the attachment.

 Thanks

 --
 *Udani Weeraratne*
 Software Engineer - Intern
 WSO2 Inc.: www.wso2.com
 lean.enterprise.middleware

 Email: ud...@wso2.com
 Mobile: +94 775437714
 LinkedIn: *https://lk.linkedin.com/in/udaniweeraratne
 https://lk.linkedin.com/in/udaniweeraratne*




 --

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


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*

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




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


Re: [Dev] how to overcome page reload after postback?

2015-07-11 Thread Himasha Guruge
Hi Nashry,

Why don't you call a js method onClick, that would do an ajax call (POST)
and onSuccess call DrawGraph() method? You can come with something like
below.

$(button).click(function(){
$.ajax({url: demo_test.txt,  // Make a post ajax call to your jaggery
api so you can retrieve the params
success: function(result){
DrawGraph();
}});
});

Thanks,
Himasha


On Fri, Jul 10, 2015 at 4:28 PM, Aaquibah Nashry nas...@wso2.com wrote:

 Hi Irham,

 Now it doesnt disappear. but i dont get the value of the variable im
 retrieving.
 Any suggestions how i can retrieve form elements into jaggery?

 Regards,

 M.R.Aaquibah Nashry
 *Intern, Engineering**| **WSO2, Inc.*
 Mobile : +94 773946123
 Tel  : +94 112662541
 Email : nas...@wso2.com nas...@wso2.com

 On Fri, Jul 10, 2015 at 4:09 PM, Irham Iqbal iq...@wso2.com wrote:

 Hi Nashry,

 I think since you have input type=submit the form is getting
 submitted change it to input type=button and see whether it's working.

 Thanks,
 Iqbal

 On Fri, Jul 10, 2015 at 4:01 PM, Aaquibah Nashry nas...@wso2.com wrote:

 well... i used the following code:

 form id=yearForm method=POST

 input type=checkbox name=FullYear id=FullYear
 value=FullYear onclick=DisableDropdown()Display Full year
 br
 Enter Year:
 input type=text name=Year id=Year value=2015 tab
 align=right
 Select Quarter:
 select id=Quarter
 option name=Quarter11/option
 option name=Quarter22/option
 option name=Quarter33/option
 option name=Quarter44/option
 /select br
 input type=submit name=button id=button
 value=Generate Graph onClick=DrawGraph() br
 /form


 %

 if(request.getMethod() == POST){
  var dyear = request.getParameter(Year);

 if(!dyear){
 response.status = 400;
 }
 else{
 //query
 response.status = 200
 }
 }

 Regards,

 M.R.Aaquibah Nashry
 *Intern, Engineering**| **WSO2, Inc.*
 Mobile : +94 773946123
 Tel  : +94 112662541
 Email : nas...@wso2.com nas...@wso2.com

 On Fri, Jul 10, 2015 at 3:40 PM, Lakshani Gamage laksh...@wso2.com
 wrote:

 Hi Nashry,

 How did you send form details to server side? Did you use AJAX or
 something else?

 Thanks,
 Lakshani.

 On Fri, Jul 10, 2015 at 3:14 PM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi,

 i am calling a post method in a form. When submitted, a graph should
 be displayed.
 When i run the page in a browser, the graph appears and then
 disappears within seconds.

 I think after postback the page reloads.
 How can i overcome this?

 I am using javascript and jaggery.

 Thanks in advance
 Regards,

 M.R.Aaquibah Nashry
 *Intern, Engineering**| **WSO2, Inc.*
 Mobile : +94 773946123
 Tel  : +94 112662541
 Email : nas...@wso2.com nas...@wso2.com

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




 --
 Lakshani Gamage

 *Software Engineer*
 Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194



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




 --
 Irham Iqbal
 Software Engineer - Test Automation
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware
 phone: +94 777888452



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




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


Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Himasha Guruge
Hi Rajeenthini,

You could use a time out or .blur() ( user focus out from the text box)
depending on your requirement. You could look into [1].

[1] how-to-trigger-an-event-in-input-text-after-i-stop-typing-writing
http://stackoverflow.com/questions/14042193/how-to-trigger-an-event-in-input-text-after-i-stop-typing-writing
Thanks,
Himasha

On Thu, Jul 9, 2015 at 9:52 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Rajeenthini,

 I think you can use jquery focusout method to detect when the textfiled
 focus get put.
 That might help https://api.jquery.com/focusout/

 Thanks

 On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam rajeenth...@wso2.com
  wrote:

 Hi all,

 Currently I am working on a task validating CRUD forms of Enterprise
 store publisher.So I need to check with the overview name is already exists
 or not.So I will make a AJAX call through server side to get the exactly
 matching asset in the publisher.I am using jQuery validation plugin as well
 as I have an custom method to validate this overview name field on the
 client side.

 //custom validator for remote ajax call to validate asset name
 $.validator.addMethod(FieldValidate, function (value, element) {
 var data = '%22name%22 : %22' + value + '%22';
 var result = false;
 $.ajax({
 type: GET,
 url: caramel.url(/apis/assets?type=gadgetq= + data),
 dataType: json,
 async: false,
 success: function (data, textStatus, xhr) {
 var obj = data;
 if (obj.list.length  0) {
 result = false;
 } else {
 result = true;
 }
 },
 error: function (xhr, thrownError) {
 console.log(error  + xhr.responseText ++ thrownError);
 }
 });
 return result;

 }, The name already taken);

 By the way I need to trigger the validation only if the user finish
 typing at the text box.But now the Ajax call sends for each and every input
 those are given by user.So can anyone suggest me any idea to handle this?
 Suggestion would appreciate.
 --

 *Thank You.*

 *Rajeenthini Satkunam*

 *Associate Software Engineer | WSO2*


 *E:rajeenth...@wso2.com rajeenth...@wso2.com*

 *M :+94770832823 %2B94770832823   *


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




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

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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




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


[Dev] [Architecture] WSO2 BPS v3.5.0 Beta Released!

2015-07-02 Thread Himasha Guruge
Hi,

WSO2 BPS team is pleased to announce the Beta release of WSO2 BPS v3.5.0.
The distribution is available at [1]. This release includes following
bug-fixes, improvements and tasks.
Bug

   - [BPS-665 https://wso2.org/jira/browse/BPS-665] - Fix Incorrect
   rendering namespace in human task explorer
   - [BPS-672 https://wso2.org/jira/browse/BPS-672] - Broken Image in
   Running Applications List page
   - [BPS-683 https://wso2.org/jira/browse/BPS-683] - Allow policy file
   to be specified for a bpel process using policy key.
   - [BPS-686 https://wso2.org/jira/browse/BPS-686] - Username in session
   still exist even logout from BPMN explorer
   - [BPS-694 https://wso2.org/jira/browse/BPS-694] - BPMN Explorer -
   Clicking next page button on process list view loads the task list page
   - [BPS-696 https://wso2.org/jira/browse/BPS-696] - Claimable Task view
   pagination does not work properly
   - [BPS-701 https://wso2.org/jira/browse/BPS-701] - Claimable tasks get
   duplicated in bpmn explorer
   - [BPS-714 https://wso2.org/jira/browse/BPS-714] - Rename jaggery
   inbox context path to mytasks
   - [BPS-715 https://wso2.org/jira/browse/BPS-715] - Rename bpmn
   explorer dashboard topics

Improvement

   - [BPS-634 https://wso2.org/jira/browse/BPS-634] -
   [ws-humantask-explorer] Restructure inbox task view of human task explorer
   - [BPS-667 https://wso2.org/jira/browse/BPS-667] - Recovery mechanism
   if humantask package versions content removed from file system
   - [BPS-699 https://wso2.org/jira/browse/BPS-699] - BPMN Explorer: Make
   process diagram scrolable

Task

   - [BPS-675 https://wso2.org/jira/browse/BPS-675] - Add new ODE
   Clustering Implementation
   - [BPS-687 https://wso2.org/jira/browse/BPS-687] - Add new theme to
   BPMN explorer
   - [BPS-688 https://wso2.org/jira/browse/BPS-688] - Add new theme to
   HumanTask explorer
   - [BPS-691 https://wso2.org/jira/browse/BPS-691] - Add configuration
   file to Humantask explorer


The documentation for BPS v3.5.0 can be found at [2]. Your feedback is most
welcome, and any issues can be reported to the project at [3].

[1]
https://svn.wso2.org/repos/wso2/people/himashag/bps350/Beta/wso2bps-3.5.0-SNAPSHOT.zip

[2]
https://docs.wso2.com/display/BPS350/WSO2+Business+Process+Server+Documentation

[3]  https://wso2.org/jira/browse/BPS https://wso2.org/jira/browse/BPS

-WSO2 BPS Team-

Regards,

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


Re: [Dev] [DEV] Sending multipart/form-data gives invalid uri

2015-06-21 Thread Himasha Guruge
:31 AM, Rasika Perera rasi...@wso2.com
 wrote:

 Hi Nirmal  all,

 I suppose below error is getting due to conflicting of the url
 parameter defined by user and url
 parameter inside ajaxForm method.


 Caused by: org.mozilla.javascript.WrappedException: Wrapped
 java.lang.IllegalArgumentException: Invalid uri '
 *http://192.168.1.2:9763null'*: invalid port number
 (http/META-INF/scripts/http.js#220)


 ​​
 var *url* = / + CONTEXT + /send?req=/bpmn/runtime/tasks/ + id +
 /attachments;
 $('#attachForm').ajaxForm({
 *url*: httpUrl + *url*
 ​,
 .
 })

 So I suggested;

 var
 ​
 *​serviceU​rl*= / + CONTEXT + /send?req=/bpmn/runtime/tasks/ + id
 + /attachments;
 $('#attachForm').ajaxForm({
 *url*: httpUrl +
 *serviceU​rl*
 ​,
 .
 })

 ​She's still getting the same error​. Then I suggested just try and
 see the output of hardcoding the desired url into url parameter.

 $('#attachForm').ajaxForm({
 *url*: 
 https://192.168.1.2:9443/bpmn-explorer/send?req=/bpmn/runtime/tasks/15048/attachments
 https://www.google.com/url?q=https%3A%2F%2F192.168.1.2%3A9443%2Fbpmn-explorer%2Fsend%3Freq%3D%2Fbpmn%2Fruntime%2Ftasks%2F15048%2Fattachmentssa=Dsntz=1usg=AFQjCNGtlHGgHQIkEKjRr4tnkFlGAySrqw
 ,

 .
 })

 Still getting the same error. So three things needs to be clarified.

 1. Does HTML form has an action parameter which affects the jQuery
 .ajaxForm method.
 2. Any javascript that replaces the value of url parameter?
 3. Is it a problem with caching?


 Thank you

 On Sat, Jun 20, 2015 at 10:54 AM, Himasha Guruge himas...@wso2.com
 wrote:

 Hi Nirmal,

 it passes the intended url to send the form data.
 var httpUrl = location.protocol + // + location.host;   (
 https://192.168.1.2:9443)
 var url = / + CONTEXT + /send?req=/bpmn/runtime/tasks/ + id +
 /attachments;

 On Sat, Jun 20, 2015 at 10:44 AM, Nirmal Fernando nir...@wso2.com
 wrote:



 On Sat, Jun 20, 2015 at 9:47 AM, Himasha Guruge himas...@wso2.com
 wrote:

 Hi All,

 In order to send an input file using Ajax I'm using [1] which is
 also used in ES and ML . My ajax call looks like following where the 
 url
 value is (
 https://192.168.1.2:9443/bpmn-explorer/send?req=/bpmn/runtime/tasks/15048/attachments
 ).

 $('#attachForm').ajaxForm({
 url: httpUrl + url,

 What does the above line do?


 success : function(res){
 window.location = httpUrl + / + CONTEXT + /inbox;

 },
 error :  function(res){
 var errorText = res.responseText
 alert('ERROR' + errorText);
 }

 });

 When clicking on submit button of form, it goes to error function
 and i'm getting following exception trace on console.

 Caused by: org.mozilla.javascript.WrappedException: Wrapped
 java.lang.IllegalArgumentException: Invalid uri '
 *http://192.168.1.2:9763null'*: invalid port number
 (http/META-INF/scripts/http.js#220)

 at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)

 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)

 at
 org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)

 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)

 at
 org.jaggeryjs.rhino.http.META_INF.scripts.c0._c_anonymous_5(http/META-INF/scripts/http.js:220)

 at
 org.jaggeryjs.rhino.http.META_INF.scripts.c0.call(http/META-INF/scripts/http.js)

 at
 org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)

 at
 org.jaggeryjs.rhino.http.META_INF.scripts.c0._c_anonymous_8(http/META-INF/scripts/http.js:232)

 at
 org.jaggeryjs.rhino.http.META_INF.scripts.c0.call(http/META-INF/scripts/http.js)

 at
 org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)

 at
 org.jaggeryjs.rhino.bpmn_explorer.controller.c4._c_script_0(/bpmn-explorer/controller/communication.jag:39)

 at
 org.jaggeryjs.rhino.bpmn_explorer.controller.c4.call(/bpmn-explorer/controller/communication.jag)

 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)

 at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)

 at
 org.jaggeryjs.rhino.bpmn_explorer.controller.c4.call(/bpmn-explorer/controller/communication.jag)

 at
 org.jaggeryjs.rhino.bpmn_explorer.controller.c4.exec(/bpmn-explorer/controller/communication.jag)

 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)

 ... 41 more

 Caused by: java.lang.IllegalArgumentException: Invalid uri
 'http://192.168.1.2:9763null': invalid port number

 at
 org.apache.commons.httpclient.HttpMethodBase.init(HttpMethodBase.java:222)

 at
 org.apache.commons.httpclient.methods.ExpectContinueMethod.init(ExpectContinueMethod.java:93)

 at
 org.apache.commons.httpclient.methods.EntityEnclosingMethod.init(EntityEnclosingMethod.java:119)

 at
 org.apache.commons.httpclient.methods.PostMethod.init(PostMethod.java:106)

 at
 org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(XMLHttpRequestHostObject.java:472

[Dev] [DEV] Sending multipart/form-data gives invalid uri

2015-06-19 Thread Himasha Guruge
Hi All,

In order to send an input file using Ajax I'm using [1] which is also used
in ES and ML . My ajax call looks like following where the url value is (
https://192.168.1.2:9443/bpmn-explorer/send?req=/bpmn/runtime/tasks/15048/attachments
).

$('#attachForm').ajaxForm({
url: httpUrl + url,
success : function(res){
window.location = httpUrl + / + CONTEXT + /inbox;

},
error :  function(res){
var errorText = res.responseText
alert('ERROR' + errorText);
}

});

When clicking on submit button of form, it goes to error function and i'm
getting following exception trace on console.

Caused by: org.mozilla.javascript.WrappedException: Wrapped
java.lang.IllegalArgumentException: Invalid uri '
*http://192.168.1.2:9763null'*: invalid port number
(http/META-INF/scripts/http.js#220)

at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)

at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)

at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)

at
org.jaggeryjs.rhino.http.META_INF.scripts.c0._c_anonymous_5(http/META-INF/scripts/http.js:220)

at
org.jaggeryjs.rhino.http.META_INF.scripts.c0.call(http/META-INF/scripts/http.js)

at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)

at
org.jaggeryjs.rhino.http.META_INF.scripts.c0._c_anonymous_8(http/META-INF/scripts/http.js:232)

at
org.jaggeryjs.rhino.http.META_INF.scripts.c0.call(http/META-INF/scripts/http.js)

at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)

at
org.jaggeryjs.rhino.bpmn_explorer.controller.c4._c_script_0(/bpmn-explorer/controller/communication.jag:39)

at
org.jaggeryjs.rhino.bpmn_explorer.controller.c4.call(/bpmn-explorer/controller/communication.jag)

at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)

at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)

at
org.jaggeryjs.rhino.bpmn_explorer.controller.c4.call(/bpmn-explorer/controller/communication.jag)

at
org.jaggeryjs.rhino.bpmn_explorer.controller.c4.exec(/bpmn-explorer/controller/communication.jag)

at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)

... 41 more

Caused by: java.lang.IllegalArgumentException: Invalid uri
'http://192.168.1.2:9763null': invalid port number

at
org.apache.commons.httpclient.HttpMethodBase.init(HttpMethodBase.java:222)

at
org.apache.commons.httpclient.methods.ExpectContinueMethod.init(ExpectContinueMethod.java:93)

at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.init(EntityEnclosingMethod.java:119)

at
org.apache.commons.httpclient.methods.PostMethod.init(PostMethod.java:106)

at
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(XMLHttpRequestHostObject.java:472)

at
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_send(XMLHttpRequestHostObject.java:284)

at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

I can't figure out what's being passed as null, because when analyzing the
request file binary value is sent as expected. Any ideas/hints on what
could be the issue would be appreciated.

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


Re: [Dev] [DEV] Sending multipart/form-data gives invalid uri

2015-06-19 Thread Himasha Guruge
Hi Nirmal,

it passes the intended url to send the form data.
var httpUrl = location.protocol + // + location.host;   (
https://192.168.1.2:9443)
var url = / + CONTEXT + /send?req=/bpmn/runtime/tasks/ + id +
/attachments;

On Sat, Jun 20, 2015 at 10:44 AM, Nirmal Fernando nir...@wso2.com wrote:



 On Sat, Jun 20, 2015 at 9:47 AM, Himasha Guruge himas...@wso2.com wrote:

 Hi All,

 In order to send an input file using Ajax I'm using [1] which is also
 used in ES and ML . My ajax call looks like following where the url value
 is (
 https://192.168.1.2:9443/bpmn-explorer/send?req=/bpmn/runtime/tasks/15048/attachments
 ).

 $('#attachForm').ajaxForm({
 url: httpUrl + url,

 What does the above line do?


 success : function(res){
 window.location = httpUrl + / + CONTEXT + /inbox;

 },
 error :  function(res){
 var errorText = res.responseText
 alert('ERROR' + errorText);
 }

 });

 When clicking on submit button of form, it goes to error function and i'm
 getting following exception trace on console.

 Caused by: org.mozilla.javascript.WrappedException: Wrapped
 java.lang.IllegalArgumentException: Invalid uri '
 *http://192.168.1.2:9763null'*: invalid port number
 (http/META-INF/scripts/http.js#220)

 at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)

 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)

 at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)

 at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)

 at
 org.jaggeryjs.rhino.http.META_INF.scripts.c0._c_anonymous_5(http/META-INF/scripts/http.js:220)

 at
 org.jaggeryjs.rhino.http.META_INF.scripts.c0.call(http/META-INF/scripts/http.js)

 at
 org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)

 at
 org.jaggeryjs.rhino.http.META_INF.scripts.c0._c_anonymous_8(http/META-INF/scripts/http.js:232)

 at
 org.jaggeryjs.rhino.http.META_INF.scripts.c0.call(http/META-INF/scripts/http.js)

 at
 org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)

 at
 org.jaggeryjs.rhino.bpmn_explorer.controller.c4._c_script_0(/bpmn-explorer/controller/communication.jag:39)

 at
 org.jaggeryjs.rhino.bpmn_explorer.controller.c4.call(/bpmn-explorer/controller/communication.jag)

 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)

 at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)

 at
 org.jaggeryjs.rhino.bpmn_explorer.controller.c4.call(/bpmn-explorer/controller/communication.jag)

 at
 org.jaggeryjs.rhino.bpmn_explorer.controller.c4.exec(/bpmn-explorer/controller/communication.jag)

 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)

 ... 41 more

 Caused by: java.lang.IllegalArgumentException: Invalid uri
 'http://192.168.1.2:9763null': invalid port number

 at
 org.apache.commons.httpclient.HttpMethodBase.init(HttpMethodBase.java:222)

 at
 org.apache.commons.httpclient.methods.ExpectContinueMethod.init(ExpectContinueMethod.java:93)

 at
 org.apache.commons.httpclient.methods.EntityEnclosingMethod.init(EntityEnclosingMethod.java:119)

 at
 org.apache.commons.httpclient.methods.PostMethod.init(PostMethod.java:106)

 at
 org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(XMLHttpRequestHostObject.java:472)

 at
 org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_send(XMLHttpRequestHostObject.java:284)

 at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)

 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:601)

 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

 I can't figure out what's being passed as null, because when analyzing
 the request file binary value is sent as expected. Any ideas/hints on what
 could be the issue would be appreciated.

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




 --

 Thanks  regards,
 Nirmal

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





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


[Dev] Handling version change in C-App

2015-06-04 Thread Himasha Guruge
Hi Sameera,

The scenario that we come across is as below.

 1. Deploy a C-App containing BPEL artifacts
 2. Invoke an instance (instance 1)
 3. Redeploy the C-App with updated BPEL artifacts.
 4.When redeploying the previous C-App is undeployed  which removes the
 invoked instance (instance 1) as well.

For our BPEL C-App deployer we have implemented AppDeploymentHandler. We
are unable to identify whether the undeployment is a direct undeployment (
user undeploying the C-App from console) or if it is getting undeployed due
to a new upload of the same C-App. We are unable to handle the version
change since AppDeploymentHandler only provides  deployArtifacts
and undeployArtifacts methods.

Appreciate your suggestions on how to handle this.

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


Re: [Dev] [Jaggery] Calling javascript function from .Jag file

2015-05-25 Thread Himasha Guruge
Hi All,

Yes, the issue was regarding directly calling a client-side function.
Therefore passed the required attributes through a session, and called the
functions from the client-side.

Thanks,

On Tue, May 26, 2015 at 10:13 AM, Sajith Ariyarathna sajit...@wso2.com
wrote:

 Hi Himasha,

 Jaggery scripts runs in the server-side. Hence, you cannot use client-side
 JavaScript functions such as 'alert'. Please make sure that /js/actions.js
 have only server-side functions.

 Thank you.

 On Mon, May 25, 2015 at 10:57 AM, Himasha Guruge himas...@wso2.com
 wrote:

 Hi All,

 I have a .jag file(startProcess.jag) that needs to call a javascript
 function (showStatus()). In the .jag, I have added a require statement to
 get the .js file and calling the function through that like below.


 var process = require(/js/actions.js);
 process.showStatus(id);

 In the controller all the jags are included, and jquery/bootstrap
 references are added in footer.jag. My controller looks like below.

 include(/template/startProcess.jag);
   ...
 include(/template/partials/footer.jag);
 But at the execution of the process, it gives undefined error for methods
 such as 'alert'. (Methods that are used within showStatus()). What could be
 the reason for this? I came across [1] , so if this is the same issue in
 this scenario as well, is there any workaround?

 [1]
 http://stackoverflow.com/questions/1125/referenceerror-alert-is-not-defined

 Thanks,

 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




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




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


[Dev] [Jaggery] Calling javascript function from .Jag file

2015-05-24 Thread Himasha Guruge
Hi All,

I have a .jag file(startProcess.jag) that needs to call a javascript
function (showStatus()). In the .jag, I have added a require statement to
get the .js file and calling the function through that like below.


var process = require(/js/actions.js);
process.showStatus(id);

In the controller all the jags are included, and jquery/bootstrap
references are added in footer.jag. My controller looks like below.

include(/template/startProcess.jag);
  ...
include(/template/partials/footer.jag);
But at the execution of the process, it gives undefined error for methods
such as 'alert'. (Methods that are used within showStatus()). What could be
the reason for this? I came across [1] , so if this is the same issue in
this scenario as well, is there any workaround?

[1]
http://stackoverflow.com/questions/1125/referenceerror-alert-is-not-defined

Thanks,

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


Re: [Dev] what is get-property('Action') and what it do?

2015-05-20 Thread Himasha Guruge
Hi Rukshan,

You can refer to [1] .

[1] https://docs.wso2.com/display/ESB480/SOAP+Headers#SOAPHeaders-Action

Thanks,
Himasha

On Thu, May 21, 2015 at 9:50 AM, Rukshan Premathunga ruks...@wso2.com
wrote:

 Hi,

 I ran the 51st sample of the ESB.

 filter source=get-property('Action') regex=urn:uploadFileUsingMTOM
 property name=example value=mtom/
 send
 endpoint
 address uri=
 http://localhost:9000/services/MTOMSwASampleService; optimize=mtom/
 /endpoint
 /send
 /filter

 Does anyone know what the Action property is, where it is defined and
 what it does?

 Thanks and Regards.



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

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




-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Vishanth Balasubramaniam

2015-05-15 Thread Himasha Guruge
Congrats Vishanth!!

On Fri, May 15, 2015 at 7:11 PM, Dinithi De Silva dinit...@wso2.com wrote:

 Congratulations Vishanth...

 On Fri, May 15, 2015 at 7:10 PM, Madhuranga Bandara madhura...@wso2.com
 wrote:

 Congratulations Vishanth !!!
 Madhuranga Sampath Bandara
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94722241065


 On Fri, May 15, 2015 at 6:58 PM, Imesh Gunaratne im...@wso2.com wrote:
  Hi Devs,
 
  It's my pleasure to welcome Vishanth Balasubramaniam as a WSO2
 Committer.
  Vishanth, welcome aboard and keep up the good work!
 
  Thanks
 
  --
  Imesh Gunaratne
  Senior Technical Lead
  WSO2 Inc: http://wso2.com
  T: +94 11 214 5345 M: +94 77 374 2057
  W: http://imesh.gunaratne.org
  Lean . Enterprise . Middleware
 
 
  ___
  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




 --
 *Dinithi De Silva*
 Associate Software Engineer, WSO2 Inc.
 m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
 | a: #20, Palm Grove, Colombo 03

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




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


Re: [Dev] Dynamically loading jars that implements an interface

2015-05-13 Thread Himasha Guruge
Hi Madhuranga/ Thusitha,

Thanks for the response, I'll look into them.

Thanks,
Himasha

On Wed, May 13, 2015 at 11:54 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Himasha,

 This might be helpful for you
 [1] -
 http://stackoverflow.com/questions/9433003/how-to-load-a-class-which-implements-a-interface-from-a-jar-file-at-runtime

 Thanks

 On Wed, May 13, 2015 at 10:47 AM, Himasha Guruge himas...@wso2.com
 wrote:

 Hi All,

 I'm working on a requirement where jars need to be dynamically loaded to
 the classpath in order to prevent server restarting. I was able to load the
 jar and load the required class by using a URLClassLoader. But at the place
 where I'm using the implementation of this class(ex:foo.a), an error is
 thrown saying cannot instantiate foo.a . I assume this is happening
 because this class is initially implementing an interface (javaDelegate)
 and this interface is not available in the classpath.

 What I have done so far is getting the current system class loader, and
 within my custom class loader I'm adding the jar path as a url.

 URLClassLoader loader =
 (URLClassLoader)ClassLoader.getSystemClassLoader();
 MyClassLoader loader1 = new MyClassLoader(loader.getURLs());
 loader1.addURL(new URL(jar,,file:+artifactLocation+!/));

 Any suggestions on how to resolve this issue/ better method of handling
 dynamic loading will be appreciated.

 Thanks,

 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




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

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




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


[Dev] Dynamically loading jars that implements an interface

2015-05-12 Thread Himasha Guruge
Hi All,

I'm working on a requirement where jars need to be dynamically loaded to
the classpath in order to prevent server restarting. I was able to load the
jar and load the required class by using a URLClassLoader. But at the place
where I'm using the implementation of this class(ex:foo.a), an error is
thrown saying cannot instantiate foo.a . I assume this is happening
because this class is initially implementing an interface (javaDelegate)
and this interface is not available in the classpath.

What I have done so far is getting the current system class loader, and
within my custom class loader I'm adding the jar path as a url.

URLClassLoader loader = (URLClassLoader)ClassLoader.getSystemClassLoader();
MyClassLoader loader1 = new MyClassLoader(loader.getURLs());
loader1.addURL(new URL(jar,,file:+artifactLocation+!/));

Any suggestions on how to resolve this issue/ better method of handling
dynamic loading will be appreciated.

Thanks,

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


Re: [Dev] WSO2 Committers += Vinuri Perera

2015-04-27 Thread Himasha Guruge
Congrats Vinuri!!!

On Mon, Apr 27, 2015 at 2:25 PM, Shiro Kulatilake sh...@wso2.com wrote:

 Congrats Vinuri !!!

 *Shiroshica Kulatilake | **Solutions Architect,  **WSO2 Inc.*
 *+94 776523867 %2B94%20776523867 *

 On Mon, Apr 27, 2015 at 2:24 PM, Hemika Kodikara hem...@wso2.com wrote:

 Congratulations Vinuri!

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

 Mobile : +9477762

 On Mon, Apr 27, 2015 at 2:22 PM, Malith Munasinghe mali...@wso2.com
 wrote:

 Congratulations Vinuri !!

 On Mon, Apr 27, 2015 at 2:19 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Hi all,

 Its my pleasure to welcome Vinuri Perera as a WSO2 Committer. Vinuri is
 a member of WSO2 Cloud team and she has done a great contribution to WSO2
 Cloud and has shown great enthusiasm in her work both in development and
 other cloud related work. In recognition of her contribution, she has been
 voted as a WSO2 Committer.

 Vinuri, welcome aboard and keep up the good work..

 Regards,
 Amila.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 Malith Munasinghe | Software Engineer
 M: +94 (071) 9401122
 E: mali...@wso2.com
 W: http://wso2.com

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



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



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




-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Green Mail server : Email notifications based integration test

2015-04-22 Thread Himasha Guruge
Hi Waruna,

Thanks for the response, I was able to get it to work. The issue was with
one of the config files , which was not getting copied hence the email
sending implementation was not getting deployed.

Thanks
Himasha

On Wed, Apr 22, 2015 at 2:58 PM, Waruna Perera waru...@wso2.com wrote:

 Hi Himasha,

 I tested above scenario with the current implementation and it worked.

 1) Started green mail server
 2) Created user to receive mail
 3) Created proxy service to send out mails
 4) Once request is  sent to proxy it send a mail to greenmail server
 5) you can retrieve it

 EmailServerUtil emailServerUtil;
 emailServerUtil = new EmailServerUtil();
 emailServerUtil.startMailServer();

 emailServerUtil.createUser(to@localhost, to, to123);


 int count = emailServerUtil.getReceivedMessages().length;



 Please try this with your test case and let us know.


 Thanks,


 On Mon, Apr 20, 2015 at 1:31 PM, Himasha Guruge himas...@wso2.com wrote:



 Thanks for  the quick reply Waruna.

 On Mon, Apr 20, 2015 at 1:18 PM, Himasha Guruge himas...@wso2.com
 wrote:

 [Looping Nandika]

 On Mon, Apr 20, 2015 at 1:15 PM, Waruna Perera waru...@wso2.com wrote:

 Hi Himasha,

 You can not achieve the functionality that you are looking for with
 GreanMail utility. If you want to receive mails you have to send mail
 first. Will further look through API if there is any possibility to provide
 what you have requested.

 Thanks,

 On Mon, Apr 20, 2015 at 1:04 PM, Himasha Guruge himas...@wso2.com
 wrote:

 Hi All,

 I'm in the process of writing an integration test which will test the
 email notification feature implementation of BPS. Therefore I have set up
 the GreenMail server with a user registered, to receive the emails, but 
 the
 email count is always 0.

 When looking into methods provided by GreenMailUtil, it is noticed
 that to send an email ,GreenMailUtil.sendTextEmail() method is used. For
 this scenario, the email sending process will occur within the
 implementation. Therefore is it possible for the mail messages to be sent
 through feature implementation (without using above method) and just to
 receive the sent emails through GreenMail ? Following are the steps I have
 followed so far.

 1. Start GreenMail server
 2. Set a new user to created server
 3. Add axis2-client mailto configuration (same port as GreenMail
 server)
 4. Use  method server.getReceivedMessages() to retrieve the emails.

 If this approach is not valid, any other suggestions on this will be
 appreciated.

 Thanks  Regards,

 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com




 --
 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




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


[Dev] Green Mail server : Email notifications based integration test

2015-04-20 Thread Himasha Guruge
Hi All,

I'm in the process of writing an integration test which will test the email
notification feature implementation of BPS. Therefore I have set up the
GreenMail server with a user registered, to receive the emails, but the
email count is always 0.

When looking into methods provided by GreenMailUtil, it is noticed that to
send an email ,GreenMailUtil.sendTextEmail() method is used. For this
scenario, the email sending process will occur within the implementation.
Therefore is it possible for the mail messages to be sent through feature
implementation (without using above method) and just to receive the sent
emails through GreenMail ? Following are the steps I have followed so far.

1. Start GreenMail server
2. Set a new user to created server
3. Add axis2-client mailto configuration (same port as GreenMail server)
4. Use  method server.getReceivedMessages() to retrieve the emails.

If this approach is not valid, any other suggestions on this will be
appreciated.

Thanks  Regards,

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


Re: [Dev] Green Mail server : Email notifications based integration test

2015-04-20 Thread Himasha Guruge
[Looping Nandika]

On Mon, Apr 20, 2015 at 1:15 PM, Waruna Perera waru...@wso2.com wrote:

 Hi Himasha,

 You can not achieve the functionality that you are looking for with
 GreanMail utility. If you want to receive mails you have to send mail
 first. Will further look through API if there is any possibility to provide
 what you have requested.

 Thanks,

 On Mon, Apr 20, 2015 at 1:04 PM, Himasha Guruge himas...@wso2.com wrote:

 Hi All,

 I'm in the process of writing an integration test which will test the
 email notification feature implementation of BPS. Therefore I have set up
 the GreenMail server with a user registered, to receive the emails, but the
 email count is always 0.

 When looking into methods provided by GreenMailUtil, it is noticed that
 to send an email ,GreenMailUtil.sendTextEmail() method is used. For this
 scenario, the email sending process will occur within the implementation.
 Therefore is it possible for the mail messages to be sent through feature
 implementation (without using above method) and just to receive the sent
 emails through GreenMail ? Following are the steps I have followed so far.

 1. Start GreenMail server
 2. Set a new user to created server
 3. Add axis2-client mailto configuration (same port as GreenMail server)
 4. Use  method server.getReceivedMessages() to retrieve the emails.

 If this approach is not valid, any other suggestions on this will be
 appreciated.

 Thanks  Regards,

 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




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


Re: [Dev] Green Mail server : Email notifications based integration test

2015-04-20 Thread Himasha Guruge
Thanks for  the quick reply Waruna.

On Mon, Apr 20, 2015 at 1:18 PM, Himasha Guruge himas...@wso2.com wrote:

 [Looping Nandika]

 On Mon, Apr 20, 2015 at 1:15 PM, Waruna Perera waru...@wso2.com wrote:

 Hi Himasha,

 You can not achieve the functionality that you are looking for with
 GreanMail utility. If you want to receive mails you have to send mail
 first. Will further look through API if there is any possibility to provide
 what you have requested.

 Thanks,

 On Mon, Apr 20, 2015 at 1:04 PM, Himasha Guruge himas...@wso2.com
 wrote:

 Hi All,

 I'm in the process of writing an integration test which will test the
 email notification feature implementation of BPS. Therefore I have set up
 the GreenMail server with a user registered, to receive the emails, but the
 email count is always 0.

 When looking into methods provided by GreenMailUtil, it is noticed that
 to send an email ,GreenMailUtil.sendTextEmail() method is used. For this
 scenario, the email sending process will occur within the implementation.
 Therefore is it possible for the mail messages to be sent through feature
 implementation (without using above method) and just to receive the sent
 emails through GreenMail ? Following are the steps I have followed so far.

 1. Start GreenMail server
 2. Set a new user to created server
 3. Add axis2-client mailto configuration (same port as GreenMail server)
 4. Use  method server.getReceivedMessages() to retrieve the emails.

 If this approach is not valid, any other suggestions on this will be
 appreciated.

 Thanks  Regards,

 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com




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


Re: [Dev] Enable testing in Publisher

2015-04-08 Thread Himasha Guruge
Hi Prabushi,

Please go through the dev mail thread with subject [1]  for more
information regarding this.

[1] [ES] [Jaggery] Using jaggery test framework

On Wed, Apr 8, 2015 at 2:40 PM, Prabushi Samarakoon prabus...@wso2.com
wrote:

 Hi,

 I'm writing a test class for an asset extension in Publisher. When I go to
 https://localhost:9443/publisher/test/, I'm getting this error.

 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot be
 found with the specified name : jaggery-test
 (/publisher/test/executer.jag#18)

 How to enable testing in publisher?


 --
 *Prabushi Samarakoon*
 Software Engineering Intern | WSO2 Lanka
 Mobile.: +710415616
 Email: prabus...@wso2.com

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




-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException

2015-03-27 Thread Himasha Guruge
/mainClass
 /manifest
 /archive
 /configuration
 /plugin
 /plugins
 /build

 profiles
 profile
 idbuildclient/id
 build
 defaultGoalassembly:assembly/defaultGoal
 /build
 /profile
 profile
 idfetch-wsdl/id
 build
 defaultGoalgenerate-sources/defaultGoal
 plugins
 plugin
 artifactIdmaven-antrun-plugin/artifactId
 executions
 execution
 phasegenerate-sources/phase
 goals
 goalrun/goal
 /goals
 configuration
 tasks
 get 
 src=${jira.soapclient.jiraurl}/rpc/soap/jirasoapservice-v2?wsdl
  
 dest=${basedir}/src/main/wsdl/jirasoapservice-v2.wsdl/
 /tasks
 /configuration
 /execution
 /executions
 dependencies
 dependency
 groupIdaxis/groupId
 artifactIdaxis-ant/artifactId
 version1.3/version
 /dependency
 /dependencies
 /plugin
 /plugins
 /build
 properties
 
 jira.soapclient.jiraurlhttp://wso2:2990/jira/jira.soapclient.jiraurl
 /properties
 /profile
 /profiles

 dependencies
 dependency
 groupIdaxis/groupId
 artifactIdaxis/artifactId
 version1.3/version
 /dependency
 dependency
 groupIdaxis/groupId
 artifactIdaxis-jaxrpc/artifactId
 version1.3/version
 /dependency
 dependency
 groupIdaxis/groupId
 artifactIdaxis-saaj/artifactId
 version1.3/version
 /dependency
 dependency
 groupIdaxis/groupId
 artifactIdaxis-wsdl4j/artifactId
 version1.5.1/version
 scopecompile/scope
 /dependency

 /dependencies

 /project

 It would be really helpful if anyone can point out why I'm getting this
 exception.

 Thanks.
 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

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




 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*



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




-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >