Re: [Dev] [PET] Couldn't retrieve the endpoint template

2016-02-18 Thread Rajjaz Mohammed
Hi Vivekananthan,
Did you tried without Quotation mark[1]. it's may be the reason for getting
as string. or write a script to convert[2]

[1] 
[2]
http://stackoverflow.com/questions/19539730/how-to-do-addition-of-two-numbers-in-wso2esb

On Fri, Feb 19, 2016 at 11:50 AM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi Malaka ,
>
> As we discussed in the meeting, I've changed the endpoint name as
> "org.wso2.carbon.connector.salesforce.salesforceEndPoint" and now it finds
> the endpoint template, but the problem is that it shows error like
> "EndpointDefinitionFactory Endpoint timeout duration expected as a number
> but was not a number".
>
> [1] *salesforceEndPoint Template*
>
> 
> http://ws.apache.org/ns/synapse
> ">
> 
> 
> 
> 
> 
> 
> 
> 
> $initialDuration
>
> $progressionFactor
> $maximumDuration
> 
> 
> $duration
> $responseAction
> 
> 
> 
> 
>
> [2]*called within connector*
>
> 
>
> value="{ctx:salesforce.initialDuration}" />
> value="{ctx:salesforce.progressionFactor}" />
> value="{ctx:salesforce.maximumDuration}" />
> value="{ctx:salesforce.duration}" />
>  value="{ctx:salesforce.responseAction}" />
> 
>
> *Error*
>
> ERROR - EndpointDefinitionFactory Endpoint timeout duration expected as a
> number but was not a number
> [2016-02-19 11:46:33,276]  INFO - LogMediator To:
> /services/Salesforce_Create, MessageID:
> urn:uuid:eb3880a6-1306-4a28-9906-e1fe43275eaf, Direction: request, MESSAGE
> = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE =
> Endpoint timeout duration expected as a number but was not a number,
> Payload: {
>   "username":"vsvivevi...@gmail.com",
>   "password":"XXWeK49TGh8jNfAzBmww9Se97T",
>   "loginUrl":"https://login.salesforce.com/services/Soap/u/27.0";,
>   "sobject":"Account",
>   "initialDuration":2,
>   "progressionFactor":1.0,
>   "maximumDuration":3000,
>   "responseAction":"fault",
>   "duration":60
> }
>
> On the other hand, I tested with hard coded value in endpoint template[3]
> and called it within connector definition, It is working as we expected.
>
> [3] *salesforceEndPoint Template*
>
> 
> http://ws.apache.org/ns/synapse
> ">
> 
> 
> 
> 
> 
> 
> 
> 
> 2000
> 1.0
> 3000
> 
> 
> 6
> fault
> 
> 
> 
> 
>
>
>
>
> *Thank youVivekananthan Sivanayagam*
>
> *Associate Software Engineer | WSO2*
>
> *E:vivekanant...@wso2.com *
> *M:+94752786138 <%2B94752786138>*
>
> On Wed, Feb 17, 2016 at 10:07 PM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> I debugged [1] and [2], it got deployed.
>>
>> [1]
>> https://github.com/wso2/wso2-synapse/blob/master/modules/core/src/main/java/org/apache/synapse/libraries/model/LibraryArtifact.java
>>
>> [2]
>> https://github.com/wso2/wso2-synapse/blob/master/modules/core/src/main/java/org/apache/synapse/deployers/LibraryArtifactDeployer.java
>>
>> I will debug that you mentioned above and update the status.
>>
>>
>>
>>
>> *Thank youVivekananthan Sivanayagam*
>>
>> *Associate Software Engineer | WSO2*
>>
>> *E:vivekanant...@wso2.com *
>> *M:+94752786138 <%2B94752786138>*
>>
>> On Wed, Feb 17, 2016 at 9:35 PM, Malaka Silva  wrote:
>>
>>> Vivekananthan try debugging [2] when you enable the connector. May be we
>>> need to patch esb for this.
>>>
>>> Check updateStatus method.
>>>
>>> [1]
>>> https://github.com/wso2/carbon-mediation/blob/master/components/mediation-admin/org.wso2.carbon.mediation.library/src/main/java/org/wso2/carbon/mediation/library/service/MediationLibraryAdminService.java
>>>
>>> On Wed, Feb 17, 2016 at 6:15 PM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 (-) support-dev
 (+) dev




 *Thank youVivekananthan Sivanayagam*

 *Associate Software Engineer | WSO2*

 *E:vivekanant...@wso2.com *
 *M:+94752786138 <%2B94752786138>*

 On Wed, Feb 17, 2016 at 6:12 PM, Vivekananthan Sivanayagam <
 vivekanant...@wso2.com> wrote:

> Hi ,
>
> I am working on endpoint templates within the connector definition and
> pass the parameters when calling connector operations.
>
> For that I created endpoint template[1] within connector and called it
> within connector method[2]. When I called, I got these error[3].
> I followed this doc[4]. Any suggestions?
>
> [1] salesforceEndPoint Template
>
> 
>  xmlns="http://ws.apache.org/ns/synapse";>
> 
> 
> 
> 
> 
> 

Re: [Dev] [PET] Couldn't retrieve the endpoint template

2016-02-18 Thread Vivekananthan Sivanayagam
Hi Malaka ,

As we discussed in the meeting, I've changed the endpoint name as
"org.wso2.carbon.connector.salesforce.salesforceEndPoint" and now it finds
the endpoint template, but the problem is that it shows error like
"EndpointDefinitionFactory Endpoint timeout duration expected as a number
but was not a number".

[1] *salesforceEndPoint Template*


http://ws.apache.org/ns/synapse";>








$initialDuration

$progressionFactor
$maximumDuration


$duration
$responseAction





[2]*called within connector*


   
   
   
   
   



*Error*

ERROR - EndpointDefinitionFactory Endpoint timeout duration expected as a
number but was not a number
[2016-02-19 11:46:33,276]  INFO - LogMediator To:
/services/Salesforce_Create, MessageID:
urn:uuid:eb3880a6-1306-4a28-9906-e1fe43275eaf, Direction: request, MESSAGE
= Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE =
Endpoint timeout duration expected as a number but was not a number,
Payload: {
  "username":"vsvivevi...@gmail.com",
  "password":"XXWeK49TGh8jNfAzBmww9Se97T",
  "loginUrl":"https://login.salesforce.com/services/Soap/u/27.0";,
  "sobject":"Account",
  "initialDuration":2,
  "progressionFactor":1.0,
  "maximumDuration":3000,
  "responseAction":"fault",
  "duration":60
}

On the other hand, I tested with hard coded value in endpoint template[3]
and called it within connector definition, It is working as we expected.

[3] *salesforceEndPoint Template*


http://ws.apache.org/ns/synapse";>








2000
1.0
3000


6
fault








*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

*E:vivekanant...@wso2.com *
*M:+94752786138*

On Wed, Feb 17, 2016 at 10:07 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi Malaka,
>
> I debugged [1] and [2], it got deployed.
>
> [1]
> https://github.com/wso2/wso2-synapse/blob/master/modules/core/src/main/java/org/apache/synapse/libraries/model/LibraryArtifact.java
>
> [2]
> https://github.com/wso2/wso2-synapse/blob/master/modules/core/src/main/java/org/apache/synapse/deployers/LibraryArtifactDeployer.java
>
> I will debug that you mentioned above and update the status.
>
>
>
>
> *Thank youVivekananthan Sivanayagam*
>
> *Associate Software Engineer | WSO2*
>
> *E:vivekanant...@wso2.com *
> *M:+94752786138 <%2B94752786138>*
>
> On Wed, Feb 17, 2016 at 9:35 PM, Malaka Silva  wrote:
>
>> Vivekananthan try debugging [2] when you enable the connector. May be we
>> need to patch esb for this.
>>
>> Check updateStatus method.
>>
>> [1]
>> https://github.com/wso2/carbon-mediation/blob/master/components/mediation-admin/org.wso2.carbon.mediation.library/src/main/java/org/wso2/carbon/mediation/library/service/MediationLibraryAdminService.java
>>
>> On Wed, Feb 17, 2016 at 6:15 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> (-) support-dev
>>> (+) dev
>>>
>>>
>>>
>>>
>>> *Thank youVivekananthan Sivanayagam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>> *E:vivekanant...@wso2.com *
>>> *M:+94752786138 <%2B94752786138>*
>>>
>>> On Wed, Feb 17, 2016 at 6:12 PM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 Hi ,

 I am working on endpoint templates within the connector definition and
 pass the parameters when calling connector operations.

 For that I created endpoint template[1] within connector and called it
 within connector method[2]. When I called, I got these error[3].
 I followed this doc[4]. Any suggestions?

 [1] salesforceEndPoint Template

 
 >>> xmlns="http://ws.apache.org/ns/synapse";>
 
 
 
 
 
 
 
 
 $initialDuration
 
 $progressionFactor
 $maximumDuration
 
 
 $duration
 $responseAction
 
 
 
 


 [2]*INIT method*

 >>>   xmlns="http://ws.apache.org/ns/synapse";>
 
 
 
 
 
 
 
 
 
 

 
 >>> name="org.wso2.carbon.connector.salesforce.SetupLoginParams"/>
 
 
 
 
 
 
 
 >>> type="propert

Re: [Dev] Regarding retrieving the local path of DataMapper Configuration

2016-02-18 Thread Sohani Weerasinghe
Hi All,

I am going to try the approach of finding the mapping config resource in
the workspace without introducing the a new property to the mediator. I'll
update with the progress

Thanks,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Fri, Feb 19, 2016 at 10:38 AM, Sohani Weerasinghe 
wrote:

>
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Fri, Feb 19, 2016 at 10:23 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi Chanaka,
>>
>> With the current level of the implementation we are creating a data
>> mapper configuration and it is saved as a registry resource in the Registry
>> project and when we double click on the DM Mediator it should open the
>> datamapper configuration in the DM Editor. Therefore, there should be a way
>> for us to identify the local path of the configuration.The basic idea of
>> introducing this property is to keep track of the local path of the
>> datamapper configuration.
>>
>> Please note that this property should not be included in the XML
>> configuration of the DM Mediator and should not be visible as a property to
>> the end user.
>>
>> Thanks,
>> Sohani
>>
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Fri, Feb 19, 2016 at 10:20 AM, Susinda Perera 
>> wrote:
>>
>>> Hi Cahanka/Sohani et al
>>>
>>> We have some other options for this.
>>> 1 - Have mapping config inline with datamapper mediator
>>>
>> AFAIK, this will be too complex at this level to include the config inline
>
>> 2 - Have mapping config as a local entry
>>>
>> Well, if we can save the config as a a local entry then we can directly
> get the resource since it is saved in the same ESB Project
>
>> 3 - Have mapping-config as registry-resource (as we have now) and when
>>> opening the editor, we will try to find the mapping config (.dmc) resource
>>> in the workspace, based on the resource path. If we find multiple entries
>>> or if we do not find any we may give a dialog-box to chose it.
>>>
>> WDYT?
>>>
>> If there are several resources with the same path since user will have to
> select the correct one will it be an extra work for the user?
>
> Based on the above concerns, how should we proceed? Can we have a property
> in the DM Mediator or any other solution.
>
> Appreciate your input.
>
>
>>
>>> Thanks
>>> Susinda
>>>
>>>
>>> On Thu, Feb 18, 2016 at 9:44 PM, Chanaka Fernando 
>>> wrote:
>>>
 Hi Sohani,

 Can you elaborate on the existing XML configuration of the DM mediator
 and the proposed property for this localpath?



 On Thu, Feb 18, 2016 at 4:09 PM, Sohani Weerasinghe 
 wrote:

> Hi All,
>
> When considering the current level of the implementation of Visual
> DataMapper Editor, following steps are needed in opening the Visual
> DataMapper Editor
>
> 1. Drag and drop a DataMapper Mediator to the mediation flow (eg:
> Proxy)
> 2. Double click on the Mediator, then it pop-ups a dialog to save the
> datamapper configuration as a registry resource ( inside a Registry 
> Project)
> 3. Then it opens the configuration in the Visual DataMapper Editor
> 4. After saving, you can open and view the configuration in the
> DataMapper Editor.
>
> In order to open the Data Mapper Editor while double clicking on the
> DataMapper mediator, we need to keep track on the local path of the
> configuration (path of the registry resource inside the Registry Project).
>
> This property needs to be saved in the DataMapper Mediator object at
> the time of creating the configuration (DataMapperMediatorTransformer) , 
> so
> that this can be retrieved when opening the
> Editor(DataMapperMediatorDeserializer)
>
> Shall we introduce a new property (meta data) to the DataMapper
> Mediator to save the localPath of the configuration? Really appreciate 
> your
> input on this
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



 --
 Thank you and Best Regards,
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya





>>>

[Dev] Integrating Appfactory with Orion IDE

2016-02-18 Thread Danushka Fernando
Hi All
I am working on $subject. I am trying to add a servlet to the orion server
which runs on jetty. If anybody have done it before please let me know.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [DepSync] Question about deployment synchronizer code

2016-02-18 Thread Rajith Vitharana
Hi,

When going through the code, noticed that in
"org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository"
class [1] "SVNBasedArtifactRepository" method it tries to check for
directory information in svn remote location. If that fails(throws
exception) then code tries to create that folder in svn remote location.
The issue I saw is this happens even for worker nodes(it doesn't check for
"AutoCommit" property).

Is this the correct behavior? shouldn't worker nodes avoid doing such
things?

[1] -
https://github.com/wso2/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java

Thanks,

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding retrieving the local path of DataMapper Configuration

2016-02-18 Thread Sohani Weerasinghe
Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Fri, Feb 19, 2016 at 10:23 AM, Sohani Weerasinghe 
wrote:

> Hi Chanaka,
>
> With the current level of the implementation we are creating a data mapper
> configuration and it is saved as a registry resource in the Registry
> project and when we double click on the DM Mediator it should open the
> datamapper configuration in the DM Editor. Therefore, there should be a way
> for us to identify the local path of the configuration.The basic idea of
> introducing this property is to keep track of the local path of the
> datamapper configuration.
>
> Please note that this property should not be included in the XML
> configuration of the DM Mediator and should not be visible as a property to
> the end user.
>
> Thanks,
> Sohani
>
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Fri, Feb 19, 2016 at 10:20 AM, Susinda Perera  wrote:
>
>> Hi Cahanka/Sohani et al
>>
>> We have some other options for this.
>> 1 - Have mapping config inline with datamapper mediator
>>
> AFAIK, this will be too complex at this level to include the config inline

> 2 - Have mapping config as a local entry
>>
> Well, if we can save the config as a a local entry then we can directly
get the resource since it is saved in the same ESB Project

> 3 - Have mapping-config as registry-resource (as we have now) and when
>> opening the editor, we will try to find the mapping config (.dmc) resource
>> in the workspace, based on the resource path. If we find multiple entries
>> or if we do not find any we may give a dialog-box to chose it.
>>
> WDYT?
>>
> If there are several resources with the same path since user will have to
select the correct one will it be an extra work for the user?

Based on the above concerns, how should we proceed? Can we have a property
in the DM Mediator or any other solution.

Appreciate your input.


>
>> Thanks
>> Susinda
>>
>>
>> On Thu, Feb 18, 2016 at 9:44 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Sohani,
>>>
>>> Can you elaborate on the existing XML configuration of the DM mediator
>>> and the proposed property for this localpath?
>>>
>>>
>>>
>>> On Thu, Feb 18, 2016 at 4:09 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi All,

 When considering the current level of the implementation of Visual
 DataMapper Editor, following steps are needed in opening the Visual
 DataMapper Editor

 1. Drag and drop a DataMapper Mediator to the mediation flow (eg: Proxy)
 2. Double click on the Mediator, then it pop-ups a dialog to save the
 datamapper configuration as a registry resource ( inside a Registry 
 Project)
 3. Then it opens the configuration in the Visual DataMapper Editor
 4. After saving, you can open and view the configuration in the
 DataMapper Editor.

 In order to open the Data Mapper Editor while double clicking on the
 DataMapper mediator, we need to keep track on the local path of the
 configuration (path of the registry resource inside the Registry Project).

 This property needs to be saved in the DataMapper Mediator object at
 the time of creating the configuration (DataMapperMediatorTransformer) , so
 that this can be retrieved when opening the
 Editor(DataMapperMediatorDeserializer)

 Shall we introduce a new property (meta data) to the DataMapper
 Mediator to save the localPath of the configuration? Really appreciate your
 input on this

 Thanks,
 Sohani
 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

>>>
>>>
>>>
>>> --
>>> Thank you and Best Regards,
>>> Chanaka Fernando
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 773337238
>>> Blog : http://soatutorials.blogspot.com
>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>> Twitter:https://twitter.com/chanakaudaya
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *Susinda Perera*
>> Software Engineer
>> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
>> Mobile:(+94)716049075
>> Blog: susinda.blogspot.com
>> WSO2 Inc. http://wso2.com/
>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon-Transport Disruptor ExecutorService threads

2016-02-18 Thread Samiyuru Senarathne
Hi,

In carbon-transport, why are the number of event handlers and the number of
threads in the ExecutorService of Disruptor [1] the same? Is there a way to
configure them separately?

[1] -
https://github.com/wso2/carbon-transports/blob/master/http/netty/components/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/common/disruptor/config/DisruptorFactory.java#L47

Best Regards,
Samiyuru

-- 
Samiyuru Senarathne
*Software Engineer*
Mobile : +94 (0) 71 134 6087
samiy...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] development maven

2016-02-18 Thread Sohani Weerasinghe
Hi John,

Further you can refer below references about creating the artifacts,
packaging and deploying artifacts using the WSO2 Developer Studio

[1] https://docs.wso2.com/display/DVS380/User+Guide
[2]
https://docs.wso2.com/display/DVS380/Packaging+Artifacts+Into+Deployable+Archives
[3] https://docs.wso2.com/display/DVS380/Deploying+a+C-App

Thanks,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Fri, Feb 19, 2016 at 7:45 AM, Awanthika Senarath 
wrote:

> Hi John,
>
> The best practice is to not to edit, create artifact xml by hand.
>
> The WSO2 Developer Studio is supporting the creation of artifacts
> deployable in WSO2 servers end to end.
>
> Any particular reason you are moving away from Developer Studio and using
> IntelliJ instead?
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Fri, Feb 19, 2016 at 12:08 AM, John Q  wrote:
>
>> Hello,
>> I'm trying to use wso2 with intellij instead of developer studio, for the
>> time being I'm creating a lot of things manually, for instance, entries on
>> artifax.xml, dependencies on the composite application project pom, etc.
>> can any body tell me a better aprouch, best practice or something like that?
>>
>> thanks,
>> john
>>
>> ___
>> 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


[Dev] [IS] Access Token tables dedicated to user stores

2016-02-18 Thread Chamara Philips
Hi,

Currently the "IDN_OAUTH2_ACCESS_TOKEN" table is used to store the access
tokens. But when the access token partitioning is enabled and username
assertion is is enabled the tokens are used to be stored in a table
named  "IDN_OAUTH2_ACCESS_TOKEN_" + user store. As it seems it is not the
same with the "IDN_OAUTH2_AUTHORIZATION_CODE".  Is it and why is that? Why
don't we need to have Authorization Code tables dedicated to user stores?

Thanks.
-- 
Hareendra Chamara P h i l i p s
*Software  Engineer*
Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
chama...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding retrieving the local path of DataMapper Configuration

2016-02-18 Thread Sohani Weerasinghe
Hi Chanaka,

With the current level of the implementation we are creating a data mapper
configuration and it is saved as a registry resource in the Registry
project and when we double click on the DM Mediator it should open the
datamapper configuration in the DM Editor. Therefore, there should be a way
for us to identify the local path of the configuration.The basic idea of
introducing this property is to keep track of the local path of the
datamapper configuration.

Please note that this property should not be included in the XML
configuration of the DM Mediator and should not be visible as a property to
the end user.

Thanks,
Sohani


Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Fri, Feb 19, 2016 at 10:20 AM, Susinda Perera  wrote:

> Hi Cahanka/Sohani et al
>
> We have some other options for this.
> 1 - Have mapping config inline with datamapper mediator
> 2 - Have mapping config as a local entry
> 3 - Have mapping-config as registry-resource (as we have now) and when
> opening the editor, we will try to find the mapping config (.dmc) resource
> in the workspace, based on the resource path. If we find multiple entries
> or if we do not find any we may give a dialog-box to chose it.
> WDYT?
>
> Thanks
> Susinda
>
>
> On Thu, Feb 18, 2016 at 9:44 PM, Chanaka Fernando 
> wrote:
>
>> Hi Sohani,
>>
>> Can you elaborate on the existing XML configuration of the DM mediator
>> and the proposed property for this localpath?
>>
>>
>>
>> On Thu, Feb 18, 2016 at 4:09 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> When considering the current level of the implementation of Visual
>>> DataMapper Editor, following steps are needed in opening the Visual
>>> DataMapper Editor
>>>
>>> 1. Drag and drop a DataMapper Mediator to the mediation flow (eg: Proxy)
>>> 2. Double click on the Mediator, then it pop-ups a dialog to save the
>>> datamapper configuration as a registry resource ( inside a Registry Project)
>>> 3. Then it opens the configuration in the Visual DataMapper Editor
>>> 4. After saving, you can open and view the configuration in the
>>> DataMapper Editor.
>>>
>>> In order to open the Data Mapper Editor while double clicking on the
>>> DataMapper mediator, we need to keep track on the local path of the
>>> configuration (path of the registry resource inside the Registry Project).
>>>
>>> This property needs to be saved in the DataMapper Mediator object at the
>>> time of creating the configuration (DataMapperMediatorTransformer) , so
>>> that this can be retrieved when opening the
>>> Editor(DataMapperMediatorDeserializer)
>>>
>>> Shall we introduce a new property (meta data) to the DataMapper Mediator
>>> to save the localPath of the configuration? Really appreciate your input on
>>> this
>>>
>>> Thanks,
>>> Sohani
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>
>>
>>
>> --
>> Thank you and Best Regards,
>> Chanaka Fernando
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>>
>>
>>
>>
>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding retrieving the local path of DataMapper Configuration

2016-02-18 Thread Susinda Perera
Hi Cahanka/Sohani et al

We have some other options for this.
1 - Have mapping config inline with datamapper mediator
2 - Have mapping config as a local entry
3 - Have mapping-config as registry-resource (as we have now) and when
opening the editor, we will try to find the mapping config (.dmc) resource
in the workspace, based on the resource path. If we find multiple entries
or if we do not find any we may give a dialog-box to chose it.
WDYT?

Thanks
Susinda


On Thu, Feb 18, 2016 at 9:44 PM, Chanaka Fernando  wrote:

> Hi Sohani,
>
> Can you elaborate on the existing XML configuration of the DM mediator and
> the proposed property for this localpath?
>
>
>
> On Thu, Feb 18, 2016 at 4:09 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> When considering the current level of the implementation of Visual
>> DataMapper Editor, following steps are needed in opening the Visual
>> DataMapper Editor
>>
>> 1. Drag and drop a DataMapper Mediator to the mediation flow (eg: Proxy)
>> 2. Double click on the Mediator, then it pop-ups a dialog to save the
>> datamapper configuration as a registry resource ( inside a Registry Project)
>> 3. Then it opens the configuration in the Visual DataMapper Editor
>> 4. After saving, you can open and view the configuration in the
>> DataMapper Editor.
>>
>> In order to open the Data Mapper Editor while double clicking on the
>> DataMapper mediator, we need to keep track on the local path of the
>> configuration (path of the registry resource inside the Registry Project).
>>
>> This property needs to be saved in the DataMapper Mediator object at the
>> time of creating the configuration (DataMapperMediatorTransformer) , so
>> that this can be retrieved when opening the
>> Editor(DataMapperMediatorDeserializer)
>>
>> Shall we introduce a new property (meta data) to the DataMapper Mediator
>> to save the localPath of the configuration? Really appreciate your input on
>> this
>>
>> Thanks,
>> Sohani
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>


-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Droping a Unique Constraint in a DB2 database

2016-02-18 Thread Chamila Wijayarathna
Hi Tharindu,

I could successfully drop the constraint by following the steps. I'll use
this in the migration scripts.

Thank You Very Much!

On Fri, Feb 19, 2016 at 9:02 AM, Tharindu Edirisinghe 
wrote:

> Hi Chamila,
>
> IBM DB2 behaves little bit differently compared to other well known
> databases when comes to constraints and indexes. So let me explain the
> solution for your problem in detail.
>
> You have the following table.
>
> CREATE TABLE IDP_PROVISIONING_ENTITY (
> ID INTEGER NOT NULL,
> PROVISIONING_CONFIG_ID INTEGER NOT NULL,
> ENTITY_TYPE VARCHAR(255) NOT NULL,
> ENTITY_LOCAL_USERSTORE VARCHAR(255) NOT NULL,
> ENTITY_NAME VARCHAR(255) NOT NULL,
> ENTITY_VALUE VARCHAR(255) NOT NULL,
> TENANT_ID INTEGER NOT NULL,
> *PRIMARY KEY (ID),*
>
> *UNIQUE (ENTITY_TYPE, TENANT_ID, ENTITY_LOCAL_USERSTORE,
> ENTITY_NAME),UNIQUE (PROVISIONING_CONFIG_ID, ENTITY_TYPE,
> ENTITY_VALUE),*
> FOREIGN KEY (PROVISIONING_CONFIG_ID) REFERENCES
> IDP_PROVISIONING_CONFIG(ID) ON DELETE CASCADE)
> /
>
> It has a primary key and two unique constraints. The DB2 will
> automatically create indexes for these three constraints.
>
> The problem is, we have not defined the constraints as named constraints.
> Therefore we have to take an extra effort to find out the names of the
> indexes and the constraints which are auto generated by DB2.
>
> These are the two unique constraints that we have in the table.
>
>
> *   UNIQUE (ENTITY_TYPE, TENANT_ID, ENTITY_LOCAL_USERSTORE,
> ENTITY_NAME),UNIQUE (PROVISIONING_CONFIG_ID, ENTITY_TYPE,
> ENTITY_VALUE)*
>
> You can find the auto generated names for the unique constraints by
> running the following query. the constraintyp='U' for unique constraints
> and it is 'P' for primary keys.
>
> *db2 "select NAME from sysibm.systabconst where
> tbname='IDP_PROVISIONING_ENTITY' and constraintyp='U'"*
>
> NAME
>
>
> 
> SQL160219074557840
>
> SQL160219074557920
>
>
> Above is the result I got. You will get different values in your database
> as these are random generated.
>
> You can run the following query to see the indexes created for the
> IDP_PROVISIONING_ENTITY' table.
>
> *db2 "SELECT NAME, COLNAMES FROM SYSIBM.SYSINDEXES WHERE
> TBNAME='IDP_PROVISIONING_ENTITY'"*
>
> NAMECOLNAMES
> SQL160219074557290+ID
> SQL160219074557790
> +PROVISIONING_CONFIG_ID+ENTITY_TYPE+ENTITY_VALUE
> SQL160219074557860
> +ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME
>
> Now we know the constraint names for the two unique constraints and the
> index names for the IDP_PROVISIONING_ENTITY table.
>
> You can find the particular index you need to drop by adding a where
> clause for the above query as below.
>
> *db2 "SELECT NAME FROM SYSIBM.SYSINDEXES WHERE
> TBNAME='IDP_PROVISIONING_ENTITY' and
> COLNAMES='+ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME'"*
>
> NAME
>
>
> 
> SQL160219074557860
>
> In IBM DB2, you cannot drop an index which is generated for a constraint
> (primary key or unique) directly. For that, you need to drop the constraint
> which will drop the index also.
>
> But the problem is we do not know what is the name of the unique
> constraint that is associated with the index
> "+ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME". We already
> know that the index name we need to drop is *SQL160219074557860*.
>
> You can find it out which constraint is associated with which index by
> running the following query.
>
> *db2 "select CONSTNAME, BNAME from SYSCAT.CONSTDEP where TABNAME =
> 'IDP_PROVISIONING_ENTITY'"*
>
> CONSTNAME  BNAME
> SQL160219074557790  SQL160219074557290
> SQL160219074557840  SQL160219074557790
> SQL160219074557920  *SQL160219074557860*
>
>
>
> Based on the results, you can get to know the name of the constraint.
> So the constraint name associated with the index name "
> *SQL160219074557860*" is "*SQL160219074557920*".
>
> So since we know the constraint name now, we can drop the unique
> constraint.
>
> *db2 "ALTER TABLE IDP_PROVISIONING_ENTITY DROP UNIQUE SQL160219074557920"*
>
> This will drop the constraint as well as the index created for the
> constraint.
>
> For the migration, you can write a stored procedure which follows the
> above steps and finds the constraint name and then drop the constraint.
>
> Thank you,
> TharinduE
>
>
>
> On Wed, Feb 17, 2016 at 3:22 PM, Chamila Wijayarathna 
> wrote:
>
>> Hi all,
>>
>> Still I couldn't came up with a way to achieve this target.
>>
>> So as a workaround I thought of dropping all the UNIQUE constraints and
>> then adding constraints w

Re: [Dev] Access Public key certificates from wso2carbon.jks

2016-02-18 Thread Rajjaz Mohammed
Hi Tharinda,
If you want to work with certificate sample code you can try this
example[1][2].

[1] http://l-lin.github.io/2014/09/09/Auth_with_certificates_Tomcat_spring/
[2]
https://github.com/wso2/carbon-identity/tree/master/components/carbon-authenticators/mutual-ssl-authenticator/org.wso2.carbon.identity.authenticator.mutualssl/src/main/java/org/wso2/carbon/identity/authenticator

On Fri, Feb 19, 2016 at 9:06 AM, Niranjan Karunanandham 
wrote:

> Hi Tharinda,
>
> What's the Kernel version in which you want to do this? In Kernel 4.2.0,
> the SSL certificate was stored in the Keystore defined in carbon.xml
> () and it can be retrieved using the methods mentioned in this
> thread.
> But if you are using Kernel 4.4.x, the keystore for the SSL certificate is
> defined in catalina-server.xml (same as tomcat) [1]. Here if you use the
> above method, you will retrieve the certificate which is used for
> encrypting [2].
>
> [1] -
> https://docs.wso2.com/display/Carbon440/Configuring+catalina-server.xml
> [2] -
> https://docs.wso2.com/display/Carbon440/Configuring+Keystores+in+WSO2+Products
>
> Regards,
> Nira
>
> On Thu, Feb 18, 2016 at 11:14 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Tharinda,
>>
>> You can refer to
>> https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java
>> It contains teh method to get privateKey as well getDefaultPrivateKey,
>> getPrivateKey(String keyStoreName, String alias)
>>
>>
>> On Thu, Feb 18, 2016 at 11:10 AM, Tharinda Ehelepola 
>> wrote:
>>
>>> Hi Godwin,
>>>
>>> That's what I need. And also I need to access the private key. Can you
>>> please share any code example on git relevant for this.
>>>
>>> Thanks,
>>> Tharinda.
>>>
>>> On Thu, Feb 18, 2016 at 10:57 AM, Godwin Shrimal 
>>> wrote:
>>>
 Hi Tharinda,

 If you need to do this in carbon runtime, you can use KeyStoreManager
 class as follows to get public certificate of the keystore in super and
 other tenants.

 KeyStoreManager.getInstance(tenantID).getDefaultPublicKey();


 Thanks
 Godwin

 On Thu, Feb 18, 2016 at 10:42 AM, Tharinda Ehelepola <
 tharin...@wso2.com> wrote:

> Hi ,
>
> According to the subject I need to access EMM public key certificate
> which is stored in "wso2carbon.jks". How can I do it?
>
> Regards,
> Tharinda.
> --
>
> *Tharinda Ehelepola*
>
> *Software Engineering Intern*
> LinkedIn 
> TP :  94711834769
> Email: tharin...@wso2.com
> Web: tharinda.tk
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila

>>>
>>>
>>>
>>> --
>>>
>>> *Tharinda Ehelepola*
>>>
>>> *Software Engineering Intern*
>>> LinkedIn 
>>> TP :  94711834769
>>> Email: tharin...@wso2.com
>>> Web: tharinda.tk
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834
Email   | raj...@wso2.com
LinkedIn | Blogger | WSO2 Profile

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


Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-18 Thread Sameera Jayasoma
I don't think we should do that. Datasources is a generic feature.

On Mon, Feb 15, 2016 at 10:38 AM, Niranjan Karunanandham 
wrote:

> Hi Sameera,
>
> Are we planning to bundle the h2 with the datasource core feature or have
> it as a separate orbit?
>
> Regards,
> Nira
>
> On Fri, Feb 12, 2016 at 8:22 PM, Sameera Jayasoma 
> wrote:
>
>> You don't necessarily need to do this. You can package only the sql
>> script and create the database during the product build
>>
>> On Friday, February 12, 2016, Hemika Kodikara  wrote:
>>
>>> Hi All,
>>>
>>> We already have something similar in our carbon-business-messaging repo
>>> [1].
>>>
>>> [1] -
>>> https://github.com/hemikak/carbon-business-messaging/blob/master/features/andes/org.wso2.carbon.andes.server.feature/pom.xml
>>>
>>> Hemika Kodikara
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middleware
>>> http://wso2.com
>>>
>>> Mobile : +9477762
>>>
>>> On Fri, Feb 12, 2016 at 5:02 PM, Sameera Jayasoma 
>>> wrote:
>>>
 Hi All,

 You can easily create an H2 database form a given sql Script in your
 project. I've attached a sample pom.xml.

 This can be used in products as well as components repos. You can
 easily populate an H2 database from an sql file for your component level
 OSGi testing as well.

 Thanks,
 Sameera.

 On Fri, Feb 12, 2016 at 4:32 PM, Akalanka Pagoda Arachchi <
 darsha...@wso2.com> wrote:

> What I meant was, I already tried upgrading the H2 version to the
> latest version. When I did, the previous database URL's we were using
> failed since the new H2 driver is not taking relative paths for the URL.
>
> Thanks,
> Akalanka.
>
> On Fri, Feb 12, 2016 at 3:48 PM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> We can, but we will have to verify all the database URL's again,
>> since when I tried, it gave me an exception since it was no longer
>> accepting relative paths.
>>
>> On Fri, Feb 12, 2016 at 3:46 PM, Ramith Jayasinghe 
>> wrote:
>>
>>> and shall we upgrade H2 version to latest?
>>>
>>> On Fri, Feb 12, 2016 at 2:24 PM, Ramith Jayasinghe 
>>> wrote:
>>> > So whats the verdict?
>>> > @sameera: can we have some thing similar to 'carbon-persistence' or
>>> > something which contains H2?
>>> >
>>> > On Fri, Feb 12, 2016 at 11:48 AM, Niranjan Karunanandham
>>> >  wrote:
>>> >> Hi Akalanka,
>>> >>
>>> >> On Fri, Feb 12, 2016 at 11:37 AM, Akalanka Pagoda Arachchi
>>> >>  wrote:
>>> >>>
>>> >>> Hi Niranjan,
>>> >>>
>>> >>> Yes, we could have avoided adding h2-database-engine as a
>>> dependency in
>>> >>> 4.4.x Andes.
>>> >>>
>>> >>> If we add the h2 driver to the datasource feature, it would mean
>>> whenever
>>> >>> datasource feature is used h2 driver will be copied. Will that
>>> be OK? My
>>> >>> opinion is if the H2 driver is not a dependency for the feature,
>>> it should
>>> >>> not be contained in the feature. When we create a distribution
>>> from that
>>> >>> feature, if H2 DB is used as the default DB configuration, we
>>> should provide
>>> >>> the H2 driver with the distribution.
>>> >>
>>> >> Sorry about it. I was under the impression that the datasource
>>> core for C5
>>> >> supports by default is for H2 DB like in C4. This is why I
>>> suggested that we
>>> >> define it at the datasource core feature.
>>> >>
>>> >>>
>>> >>> WDYT?
>>> >>>
>>> >>> Thanks,
>>> >>> Akalanka.
>>> >>>
>>> >>> On Fri, Feb 12, 2016 at 11:05 AM, Niranjan Karunanandham
>>> >>>  wrote:
>>> 
>>>  Hi Akalanka / all
>>> 
>>>  On Fri, Feb 12, 2016 at 10:46 AM, Akalanka Pagoda Arachchi
>>>   wrote:
>>> >
>>> > Hi All,
>>> >
>>> > In the previous distributions, we had H2 database driver as a
>>> dependency
>>> > for our features so that it will be copied to the plugins
>>> folder when the
>>> > pack is created.However, in this scenario, H2 database driver
>>> is not exactly
>>> > a dependency of the Andes Core feature since it is not using
>>> the H2 driver.
>>> 
>>>  Are you referring to the h2-database-engine jar? This was there
>>> in the
>>>  plugins folder of kernel core zip in 4.4.x. If so, then why is
>>> andes core
>>>  feature also packing this?
>>> 
>>> >
>>> > Therefore, my suggestion is to avoid adding H2 database driver
>>> as a
>>> > dependency for the Andes Core feature, but rather add it as a
>>> dependency for
>>> > product distribution module so that when the distribution pack
>>> is created,
>>> > the H2 driver, which is required for default database
>>> configurations is
>>> > copied 

Re: [Dev] [Test Automation Framework] Compilation Error while building

2016-02-18 Thread Yashothara Shanmugarajah
Hi,

I could build Test Automation Framework 4.2.5 which is in platform
directory.

Thank you.

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Tue, Feb 16, 2016 at 7:42 AM, Yashothara Shanmugarajah <
yashoth...@wso2.com> wrote:

> Hi Iqbal,
>
> I had build from SVN directory which is mentioned in the Test Automation
> Framework directory. Herewith I have attached the screen shot of the error.
> Today I have tested with recent git repository. It is also giving error.
>
> Thank you.
>
> Best Regards,
> Yashothara.S
>
> Software Engineer
> WSO2
>
>
> On Mon, Feb 15, 2016 at 6:51 PM, Irham Iqbal  wrote:
>
>> Hi Yashothara,
>>
>> Did you try to build the latest version from git ?. Please share the full
>> stack trace.
>>
>> Thanks,
>> iqbal
>>
>> On Mon, Feb 15, 2016 at 3:57 AM, Yashothara Shanmugarajah <
>> yashoth...@wso2.com> wrote:
>>
>>> Hi,
>>> I have already build carbon kernel 4.2.0 in JDK 1.6 and maven 3.0.4.
>>> After that I went  to *Platform* and build the modules listed below
>>> accordingly:parent, dependencies, service-stubs and components.
>>>
>>> Even though I could not build Test Automation Frame work. It is giving
>>> error in Test API. The following error came when I try to build it.
>>>
>>> [ERROR]Could not resolve dependencies for project
>>> org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.2.0-SNAPSHOT:
>>>
>>> Like that it says most of the jar files could not be resolved.
>>>
>>> Best Regards,
>>> Yashothara.S
>>>
>>> Software Engineer
>>> WSO2
>>>
>>>
>>> ___
>>> 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


Re: [Dev] Access Public key certificates from wso2carbon.jks

2016-02-18 Thread Niranjan Karunanandham
Hi Tharinda,

What's the Kernel version in which you want to do this? In Kernel 4.2.0,
the SSL certificate was stored in the Keystore defined in carbon.xml
() and it can be retrieved using the methods mentioned in this
thread.
But if you are using Kernel 4.4.x, the keystore for the SSL certificate is
defined in catalina-server.xml (same as tomcat) [1]. Here if you use the
above method, you will retrieve the certificate which is used for
encrypting [2].

[1] -
https://docs.wso2.com/display/Carbon440/Configuring+catalina-server.xml
[2] -
https://docs.wso2.com/display/Carbon440/Configuring+Keystores+in+WSO2+Products

Regards,
Nira

On Thu, Feb 18, 2016 at 11:14 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Tharinda,
>
> You can refer to
> https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java
> It contains teh method to get privateKey as well getDefaultPrivateKey,
> getPrivateKey(String keyStoreName, String alias)
>
>
> On Thu, Feb 18, 2016 at 11:10 AM, Tharinda Ehelepola 
> wrote:
>
>> Hi Godwin,
>>
>> That's what I need. And also I need to access the private key. Can you
>> please share any code example on git relevant for this.
>>
>> Thanks,
>> Tharinda.
>>
>> On Thu, Feb 18, 2016 at 10:57 AM, Godwin Shrimal  wrote:
>>
>>> Hi Tharinda,
>>>
>>> If you need to do this in carbon runtime, you can use KeyStoreManager
>>> class as follows to get public certificate of the keystore in super and
>>> other tenants.
>>>
>>> KeyStoreManager.getInstance(tenantID).getDefaultPublicKey();
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Thu, Feb 18, 2016 at 10:42 AM, Tharinda Ehelepola >> > wrote:
>>>
 Hi ,

 According to the subject I need to access EMM public key certificate
 which is stored in "wso2carbon.jks". How can I do it?

 Regards,
 Tharinda.
 --

 *Tharinda Ehelepola*

 *Software Engineering Intern*
 LinkedIn 
 TP :  94711834769
 Email: tharin...@wso2.com
 Web: tharinda.tk

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


>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>
>>
>>
>> --
>>
>> *Tharinda Ehelepola*
>>
>> *Software Engineering Intern*
>> LinkedIn 
>> TP :  94711834769
>> Email: tharin...@wso2.com
>> Web: tharinda.tk
>>
>> ___
>> 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
>
>


-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Droping a Unique Constraint in a DB2 database

2016-02-18 Thread Tharindu Edirisinghe
Hi Chamila,

IBM DB2 behaves little bit differently compared to other well known
databases when comes to constraints and indexes. So let me explain the
solution for your problem in detail.

You have the following table.

CREATE TABLE IDP_PROVISIONING_ENTITY (
ID INTEGER NOT NULL,
PROVISIONING_CONFIG_ID INTEGER NOT NULL,
ENTITY_TYPE VARCHAR(255) NOT NULL,
ENTITY_LOCAL_USERSTORE VARCHAR(255) NOT NULL,
ENTITY_NAME VARCHAR(255) NOT NULL,
ENTITY_VALUE VARCHAR(255) NOT NULL,
TENANT_ID INTEGER NOT NULL,
*PRIMARY KEY (ID),*

*UNIQUE (ENTITY_TYPE, TENANT_ID, ENTITY_LOCAL_USERSTORE,
ENTITY_NAME),UNIQUE (PROVISIONING_CONFIG_ID, ENTITY_TYPE,
ENTITY_VALUE),*
FOREIGN KEY (PROVISIONING_CONFIG_ID) REFERENCES
IDP_PROVISIONING_CONFIG(ID) ON DELETE CASCADE)
/

It has a primary key and two unique constraints. The DB2 will automatically
create indexes for these three constraints.

The problem is, we have not defined the constraints as named constraints.
Therefore we have to take an extra effort to find out the names of the
indexes and the constraints which are auto generated by DB2.

These are the two unique constraints that we have in the table.


*   UNIQUE (ENTITY_TYPE, TENANT_ID, ENTITY_LOCAL_USERSTORE,
ENTITY_NAME),UNIQUE (PROVISIONING_CONFIG_ID, ENTITY_TYPE,
ENTITY_VALUE)*

You can find the auto generated names for the unique constraints by running
the following query. the constraintyp='U' for unique constraints and it is
'P' for primary keys.

*db2 "select NAME from sysibm.systabconst where
tbname='IDP_PROVISIONING_ENTITY' and constraintyp='U'"*

NAME


SQL160219074557840

SQL160219074557920


Above is the result I got. You will get different values in your database
as these are random generated.

You can run the following query to see the indexes created for the
IDP_PROVISIONING_ENTITY' table.

*db2 "SELECT NAME, COLNAMES FROM SYSIBM.SYSINDEXES WHERE
TBNAME='IDP_PROVISIONING_ENTITY'"*

NAMECOLNAMES
SQL160219074557290+ID
SQL160219074557790
+PROVISIONING_CONFIG_ID+ENTITY_TYPE+ENTITY_VALUE
SQL160219074557860
+ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME

Now we know the constraint names for the two unique constraints and the
index names for the IDP_PROVISIONING_ENTITY table.

You can find the particular index you need to drop by adding a where clause
for the above query as below.

*db2 "SELECT NAME FROM SYSIBM.SYSINDEXES WHERE
TBNAME='IDP_PROVISIONING_ENTITY' and
COLNAMES='+ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME'"*

NAME


SQL160219074557860

In IBM DB2, you cannot drop an index which is generated for a constraint
(primary key or unique) directly. For that, you need to drop the constraint
which will drop the index also.

But the problem is we do not know what is the name of the unique constraint
that is associated with the index
"+ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME". We already
know that the index name we need to drop is *SQL160219074557860*.

You can find it out which constraint is associated with which index by
running the following query.

*db2 "select CONSTNAME, BNAME from SYSCAT.CONSTDEP where TABNAME =
'IDP_PROVISIONING_ENTITY'"*

CONSTNAME  BNAME
SQL160219074557790  SQL160219074557290
SQL160219074557840  SQL160219074557790
SQL160219074557920  *SQL160219074557860*



Based on the results, you can get to know the name of the constraint.
So the constraint name associated with the index name "*SQL160219074557860*"
is "*SQL160219074557920*".

So since we know the constraint name now, we can drop the unique constraint.

*db2 "ALTER TABLE IDP_PROVISIONING_ENTITY DROP UNIQUE SQL160219074557920"*

This will drop the constraint as well as the index created for the
constraint.

For the migration, you can write a stored procedure which follows the above
steps and finds the constraint name and then drop the constraint.

Thank you,
TharinduE



On Wed, Feb 17, 2016 at 3:22 PM, Chamila Wijayarathna 
wrote:

> Hi all,
>
> Still I couldn't came up with a way to achieve this target.
>
> So as a workaround I thought of dropping all the UNIQUE constraints and
> then adding constraints which were not suppose to dropped. It may be more
> costly than our previously mentioned approach, I don't see any other way of
> achieving this.
>
> WDYT?
>
> Thanks
>
> On Wed, Feb 17, 2016 at 12:30 PM, Chamila Wijayarathna 
> wrote:
>
>> Hi all,
>>
>> Currently I am working on developing the migration client and and scripts
>> for DB2 to migrate from IS 5.0.0 to 5.1.0.
>>
>> There are some unique constraints, primary keys and for

[Dev] [Docker Images] Can't pull the wso2/as-5.2.1 docker image from docker hub

2016-02-18 Thread Madhawa Perera
Hi,

When I tried to pull the wso2as-5.2.1 docker image from docker hub (
https://hub.docker.com/r/wso2/as-5.2.1/) I'm getting following message
saying that "Tag latest not found in repository docker.io/wso2/as-5.2.1"

Please refer the terminal-capture below

[image: Inline image 1]

Any idea on what might help?

Thank you
Best Regards,

-- 
Madhawa Perera
*Software Engineer*
Mobile : +94 (0) 773655496
<%2B94%20%280%29%20773%20451194>
madha...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] development maven

2016-02-18 Thread Awanthika Senarath
Hi John,

The best practice is to not to edit, create artifact xml by hand.

The WSO2 Developer Studio is supporting the creation of artifacts
deployable in WSO2 servers end to end.

Any particular reason you are moving away from Developer Studio and using
IntelliJ instead?

Regards
Awanthika

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



On Fri, Feb 19, 2016 at 12:08 AM, John Q  wrote:

> Hello,
> I'm trying to use wso2 with intellij instead of developer studio, for the
> time being I'm creating a lot of things manually, for instance, entries on
> artifax.xml, dependencies on the composite application project pom, etc.
> can any body tell me a better aprouch, best practice or something like that?
>
> thanks,
> john
>
> ___
> 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] [VOTE] Release WSO2 Complex Event Processor 4.1.0 RC2

2016-02-18 Thread Grainier Perera
Hi Devs,

This is the second release candidate of WSO2 Complex Event Processor 4.1.0.

*This release fixes the following issues:*
https://wso2.org/jira/issues/?filter=12644

Please download CEP 4.1.0 RC2 and test the functionality and vote. Vote
will be open for 72 hours or as needed.

*Source & binary distribution files:*
https://github.com/wso2/product-cep/releases/tag/v4.1.0-RC2

*The tag to be voted upon:*
https://github.com/wso2/product-cep/tree/release-4.1.0-RC2

[+] Stable - go ahead and release
[-] Broken - do not release (explain why)

Thanks and Regards,
WSO2 CEP Team.

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


Re: [Dev] [Architecture]Proposal 12: [ESB/GW] WSO2 ESB JMS Transactions support with JTA

2016-02-18 Thread Vanjikumaran Sivajothy
There is JTA based transaction implementation done for DBReport and
DBLookup [1]

[1]
https://github.com/wso2/wso2-synapse/blob/master/modules/core/src/main/java/org/apache/synapse/mediators/db/DBReportMediator.java

On Thu, Feb 18, 2016 at 5:43 AM, Shafreen Anfar  wrote:

> Hi Dinanjana,
>
> You can start with the samples in WSO2 documentation [1]. In addition to
> that it is better if you can read a bit about Java Transaction API as well.
>
> [1] https://docs.wso2.com/display/ESB490/JMS+Samples
>
> On Thu, Feb 18, 2016 at 7:09 AM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Dear Shafreen,
>>
>> I am a 3rd year computer engineering student from University of
>> Peradeniya. I am currently engaged in internship. I know JMS. So i would
>> like to contribute to this GSOC project. Let me know how can i start.
>>
>
>
>
> --
> Regards,
> *Shafreen*
> Software Engineer
> WSO2 Inc
> Mobile : 077-556-395-1
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
 *+1-925-464-6816*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] development maven

2016-02-18 Thread John Q
Hello,
I'm trying to use wso2 with intellij instead of developer studio, for the
time being I'm creating a lot of things manually, for instance, entries on
artifax.xml, dependencies on the composite application project pom, etc.
can any body tell me a better aprouch, best practice or something like that?

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


Re: [Dev] Regarding retrieving the local path of DataMapper Configuration

2016-02-18 Thread Chanaka Fernando
Hi Sohani,

Can you elaborate on the existing XML configuration of the DM mediator and
the proposed property for this localpath?



On Thu, Feb 18, 2016 at 4:09 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> When considering the current level of the implementation of Visual
> DataMapper Editor, following steps are needed in opening the Visual
> DataMapper Editor
>
> 1. Drag and drop a DataMapper Mediator to the mediation flow (eg: Proxy)
> 2. Double click on the Mediator, then it pop-ups a dialog to save the
> datamapper configuration as a registry resource ( inside a Registry Project)
> 3. Then it opens the configuration in the Visual DataMapper Editor
> 4. After saving, you can open and view the configuration in the DataMapper
> Editor.
>
> In order to open the Data Mapper Editor while double clicking on the
> DataMapper mediator, we need to keep track on the local path of the
> configuration (path of the registry resource inside the Registry Project).
>
> This property needs to be saved in the DataMapper Mediator object at the
> time of creating the configuration (DataMapperMediatorTransformer) , so
> that this can be retrieved when opening the
> Editor(DataMapperMediatorDeserializer)
>
> Shall we introduce a new property (meta data) to the DataMapper Mediator
> to save the localPath of the configuration? Really appreciate your input on
> this
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture]Proposal 12: [ESB/GW] WSO2 ESB JMS Transactions support with JTA

2016-02-18 Thread Shafreen Anfar
Hi Dinanjana,

You can start with the samples in WSO2 documentation [1]. In addition to
that it is better if you can read a bit about Java Transaction API as well.

[1] https://docs.wso2.com/display/ESB490/JMS+Samples

On Thu, Feb 18, 2016 at 7:09 AM, Dinanjana Gunaratne <
dinanjanagunara...@gmail.com> wrote:

> Dear Shafreen,
>
> I am a 3rd year computer engineering student from University of
> Peradeniya. I am currently engaged in internship. I know JMS. So i would
> like to contribute to this GSOC project. Let me know how can i start.
>



-- 
Regards,
*Shafreen*
Software Engineer
WSO2 Inc
Mobile : 077-556-395-1
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS Authenticator] Issue in logout from mailchimp authenticator

2016-02-18 Thread Hariprasath Thanarajah
As Malithi mentioned the issue is by the host. I have changed the
SAML2.IdPURL as https://127.0.0.1:9443/samlsso in the travelocity webapp.
Now it is working. Thank you guys for your help.

On Thu, Feb 18, 2016 at 2:48 PM, Indunil Upeksha Rathnayake <
indu...@wso2.com> wrote:

> Hi Hariprasath,
>
> This error occurs when session has already been expired, when logout
> request is sent. Please try the same scenario, after enabling session
> persistence and configuring a higher value for SSO session time out as
> follows(Default : 15min).
>
> You can enable session persistence using following property in
> identity.xml file.
>
> * true*
> After WSO2IS 5.1.0, it has been enabled by default.
>
>
> You can configure SSO session time out as follows.
> If you are using WSO2IS 5.1.0. you can configure it using following
> property in repository/conf/identity/identity.xml file
>
> * 15*
>
> If you are using WSO2IS 5.0.0, you can configure it using following
> property in repository/conf/tomcat/carbon/WEB-INF/web.xml file
>
>
> * 15 *
>
> Please refer [1] for more details.
>
> Thanks and Regards
>
> On Thu, Feb 18, 2016 at 11:24 AM, Malithi Edirisinghe 
> wrote:
>
>> Hi Haripasath,
>>
>> When analyzing the trace that you have attached I noted that the IdP
>> hostname has been changed from localhost -> 127.0.0.1 -> localhost. IS
>> maintains the logged in session via a cookie set to the IdP Url. These
>> cookies are set against the hostname in the browser.
>>
>> So in your case, after the successful authentication 'samlssoTokenId' is
>> set against 127.0.0.1 hostname. But the login request is sent under
>> 'localhost' hostname. So the cookie is not sent back to the server there.
>> So the server cannot find the session with regard to this logout request.
>>
>> Please make sure that you use the same hostname along the full flow
>> either localhost or 127.0.0.1
>>
>> Thanks,
>> Malithi.
>>
>> On Thu, Feb 18, 2016 at 12:45 AM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I couldn't find the reason behind this why is this happening. Can anyone
>>> have any idea ?
>>>
>>> On Fri, Feb 5, 2016 at 12:56 PM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi Philips,

 Any update on this?

 On Tue, Feb 2, 2016 at 2:57 PM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Hi Philips,
>
> You can find the SSO tracer in the following attachment.
>
>
>
> On Tue, Feb 2, 2016 at 2:22 PM, Chamara Philips 
> wrote:
>
>> Hi Hariprasath,
>> It is because the sessionID is null. It will be helpfull, if you can
>> attach the SSO tracer.
>>
>> Thanks.
>>
>> On Tue, Feb 2, 2016 at 11:58 AM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have implemented mailChimp Authenticator for IS. When I logout
>>> from sample webapp(travelocity.com) i got the below error,
>>>
>>> [2016-02-02 11:41:01,907] ERROR
>>> {org.wso2.carbon.identity.sso.saml.processors.SPInitLogoutRequestProcessor}
>>> -  ssoTokenId cookie not found in the logout request
>>>
>>>
>>> Any suggestions?
>>>
>>> --
>>>
>>>
>>> *Thank you and Regards**Hariprasath Thanarajah*
>>> Associate Software Engineer | WSO2
>>> E: haripras...@wso2.com
>>> M: +94752806528
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Hareendra Chamara Philips
>> *Software  Engineer*
>> Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
>> chama...@wso2.com 
>>
>>
>
>
> --
>
>
> *Thank you and Regards**Hariprasath Thanarajah*
> Associate Software Engineer | WSO2
> E: haripras...@wso2.com
> M: +94752806528
>
>


 --


 *Thank you and Regards**Hariprasath Thanarajah*
 Associate Software Engineer | WSO2
 E: haripras...@wso2.com
 M: +94752806528


>>>
>>>
>>> --
>>>
>>>
>>> *Thank you and Regards**Hariprasath Thanarajah*
>>> Associate Software Engineer | WSO2
>>> E: haripras...@wso2.com
>>> M: +94752806528
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Indunil Upeksha Rathnayake
> Software Engineer | WSO2 Inc
> Emailindu...@wso2.com
>



-- 


*Thank you and Regards**Hariprasath Thanarajah*
Associate Software Engineer | WSO2
E: haripras...@wso2.com
M: +94752806528
___

[Dev] Regarding retrieving the local path of DataMapper Configuration

2016-02-18 Thread Sohani Weerasinghe
Hi All,

When considering the current level of the implementation of Visual
DataMapper Editor, following steps are needed in opening the Visual
DataMapper Editor

1. Drag and drop a DataMapper Mediator to the mediation flow (eg: Proxy)
2. Double click on the Mediator, then it pop-ups a dialog to save the
datamapper configuration as a registry resource ( inside a Registry Project)
3. Then it opens the configuration in the Visual DataMapper Editor
4. After saving, you can open and view the configuration in the DataMapper
Editor.

In order to open the Data Mapper Editor while double clicking on the
DataMapper mediator, we need to keep track on the local path of the
configuration (path of the registry resource inside the Registry Project).

This property needs to be saved in the DataMapper Mediator object at the
time of creating the configuration (DataMapperMediatorTransformer) , so
that this can be retrieved when opening the
Editor(DataMapperMediatorDeserializer)

Shall we introduce a new property (meta data) to the DataMapper Mediator to
save the localPath of the configuration? Really appreciate your input on
this

Thanks,
Sohani
Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ML 1.1.0 is not backward compatible with older models

2016-02-18 Thread Rukshani Weerasinha
Hi all,

Please check the information note I added about ML models in [1] and [2]

Machine Learner models are not backward compatible. e.g., models generated
using WSO2 ML 1.0.0 cannot be used with WSO2 ML 1.1.0 functionality.

@ ML team, can you please check whether the draft ML guide [3] that is
currently not published is valid for ML 1.1.0, and whether we can add some
information on migrating artifacts?

[1]
https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions
[2]
https://docs.wso2.com/display/CEP410/Predictive+Analytics+with+WSO2+Machine+Learner
[3] https://docs.wso2.com/display/TESB/Upgrading+from+a+Previous+Release

Best Regards,
Rukshani.

On Thu, Feb 18, 2016 at 2:49 PM, Niranjan Karunanandham 
wrote:

> Hi Fazlan,
>
> On Thu, Feb 18, 2016 at 2:47 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>>
>>
>> On Thu, Feb 18, 2016 at 2:42 PM, Fazlan Nazeem  wrote:
>>
>>> Hi NIranjan,
>>>
>>> Yes, but currently we do not have a migration guide for ML. The changes
>>> needed were minimal and hence was decided not to include a migration guide.
>>>
>>
>> No Fazlan.. It is not correct.. Eventhough changes are minimal we need a
>> migration guide specifying those minimal things or to say there is nothing
>> to migrate.. It is a mandatory doc requirement for a release..
>>
> I agree with Mohan. We need to mention this in the migration doc and
> provide a guide to migrate it.
>
>
>>
>>
>>
>>>
>>> On Thu, Feb 18, 2016 at 12:27 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Fazlan,

 IMO we need to also mention this in the ML migration doc from 1.0.0 to
 1.1.0.

 Regards,
 Nira

 On Thu, Feb 18, 2016 at 12:22 PM, Fazlan Nazeem 
 wrote:

> Hi Tishan,
>
> This is an expected behaviour since we have changed the model classes
> in ML 1.1.0.
>
> @Rukshani can you please document this under [1].
>
> [1]
> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions
>
> On Thu, Feb 18, 2016 at 12:12 PM, Tishan Dahanayakage  > wrote:
>
>> Hi all,
>>
>> ML models built with ML 1.0.0 is not compatible with ML 1.1.0. If we
>> try to use a model build with 1.0.0 against ML 1.1.0 features following
>> exception is generated. Came across this when testing ML extension for 
>> CEP.
>>
>>
>> org.wso2.carbon.event.processor.core.exception.ExecutionPlanConfigurationException:
>> org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error 
>> while
>> retrieving ML-model :
>> registry:/_system/governance/2.Model.2015-12-22_19-47-59
>> org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
>> class incompatible: stream classdesc serialVersionUID =
>> -1410218250358516850, local class serialVersionUID = 8020448562088344988 
>> in
>> execution plan "ExecutionPlanML"
>> at
>> org.wso2.carbon.event.processor.core.internal.util.helper.EventProcessorHelper.validateExecutionPlan(EventProcessorHelper.java:193)
>> ...
>> Caused by:
>> org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error 
>> while
>> retrieving ML-model :
>> registry:/_system/governance/2.Model.2015-12-22_19-47-59
>> org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
>> class incompatible: stream classdesc serialVersionUID =
>> -1410218250358516850, local class serialVersionUID = 8020448562088344988
>> at
>> org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.logError(PredictStreamProcessor.java:350)
>> at
>> org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.init(PredictStreamProcessor.java:187)
>> ... 82 more
>>
>> Is this expected behavior? If so ​I think we need to mention that
>> models are not backward compatible in docs.​
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender 
>> indicating
>> that fact and delete the copy you received and in addition, you should 
>> not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software 

Re: [Dev] [IS Authenticator] Issue in logout from mailchimp authenticator

2016-02-18 Thread Indunil Upeksha Rathnayake
Hi Hariprasath,

This error occurs when session has already been expired, when logout
request is sent. Please try the same scenario, after enabling session
persistence and configuring a higher value for SSO session time out as
follows(Default : 15min).

You can enable session persistence using following property in identity.xml
file.

* true*
After WSO2IS 5.1.0, it has been enabled by default.


You can configure SSO session time out as follows.
If you are using WSO2IS 5.1.0. you can configure it using following
property in repository/conf/identity/identity.xml file

* 15*

If you are using WSO2IS 5.0.0, you can configure it using following
property in repository/conf/tomcat/carbon/WEB-INF/web.xml file


* 15 *

Please refer [1] for more details.

Thanks and Regards

On Thu, Feb 18, 2016 at 11:24 AM, Malithi Edirisinghe 
wrote:

> Hi Haripasath,
>
> When analyzing the trace that you have attached I noted that the IdP
> hostname has been changed from localhost -> 127.0.0.1 -> localhost. IS
> maintains the logged in session via a cookie set to the IdP Url. These
> cookies are set against the hostname in the browser.
>
> So in your case, after the successful authentication 'samlssoTokenId' is
> set against 127.0.0.1 hostname. But the login request is sent under
> 'localhost' hostname. So the cookie is not sent back to the server there.
> So the server cannot find the session with regard to this logout request.
>
> Please make sure that you use the same hostname along the full flow either
> localhost or 127.0.0.1
>
> Thanks,
> Malithi.
>
> On Thu, Feb 18, 2016 at 12:45 AM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi All,
>>
>> I couldn't find the reason behind this why is this happening. Can anyone
>> have any idea ?
>>
>> On Fri, Feb 5, 2016 at 12:56 PM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi Philips,
>>>
>>> Any update on this?
>>>
>>> On Tue, Feb 2, 2016 at 2:57 PM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi Philips,

 You can find the SSO tracer in the following attachment.



 On Tue, Feb 2, 2016 at 2:22 PM, Chamara Philips 
 wrote:

> Hi Hariprasath,
> It is because the sessionID is null. It will be helpfull, if you can
> attach the SSO tracer.
>
> Thanks.
>
> On Tue, Feb 2, 2016 at 11:58 AM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have implemented mailChimp Authenticator for IS. When I logout from
>> sample webapp(travelocity.com) i got the below error,
>>
>> [2016-02-02 11:41:01,907] ERROR
>> {org.wso2.carbon.identity.sso.saml.processors.SPInitLogoutRequestProcessor}
>> -  ssoTokenId cookie not found in the logout request
>>
>>
>> Any suggestions?
>>
>> --
>>
>>
>> *Thank you and Regards**Hariprasath Thanarajah*
>> Associate Software Engineer | WSO2
>> E: haripras...@wso2.com
>> M: +94752806528
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Hareendra Chamara Philips
> *Software  Engineer*
> Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
> chama...@wso2.com 
>
>


 --


 *Thank you and Regards**Hariprasath Thanarajah*
 Associate Software Engineer | WSO2
 E: haripras...@wso2.com
 M: +94752806528


>>>
>>>
>>> --
>>>
>>>
>>> *Thank you and Regards**Hariprasath Thanarajah*
>>> Associate Software Engineer | WSO2
>>> E: haripras...@wso2.com
>>> M: +94752806528
>>>
>>>
>>
>>
>> --
>>
>>
>> *Thank you and Regards**Hariprasath Thanarajah*
>> Associate Software Engineer | WSO2
>> E: haripras...@wso2.com
>> M: +94752806528
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ML 1.1.0 is not backward compatible with older models

2016-02-18 Thread Niranjan Karunanandham
Hi Fazlan,

On Thu, Feb 18, 2016 at 2:47 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Thu, Feb 18, 2016 at 2:42 PM, Fazlan Nazeem  wrote:
>
>> Hi NIranjan,
>>
>> Yes, but currently we do not have a migration guide for ML. The changes
>> needed were minimal and hence was decided not to include a migration guide.
>>
>
> No Fazlan.. It is not correct.. Eventhough changes are minimal we need a
> migration guide specifying those minimal things or to say there is nothing
> to migrate.. It is a mandatory doc requirement for a release..
>
I agree with Mohan. We need to mention this in the migration doc and
provide a guide to migrate it.


>
>
>
>>
>> On Thu, Feb 18, 2016 at 12:27 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Fazlan,
>>>
>>> IMO we need to also mention this in the ML migration doc from 1.0.0 to
>>> 1.1.0.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Thu, Feb 18, 2016 at 12:22 PM, Fazlan Nazeem 
>>> wrote:
>>>
 Hi Tishan,

 This is an expected behaviour since we have changed the model classes
 in ML 1.1.0.

 @Rukshani can you please document this under [1].

 [1]
 https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions

 On Thu, Feb 18, 2016 at 12:12 PM, Tishan Dahanayakage 
 wrote:

> Hi all,
>
> ML models built with ML 1.0.0 is not compatible with ML 1.1.0. If we
> try to use a model build with 1.0.0 against ML 1.1.0 features following
> exception is generated. Came across this when testing ML extension for 
> CEP.
>
>
> org.wso2.carbon.event.processor.core.exception.ExecutionPlanConfigurationException:
> org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error while
> retrieving ML-model :
> registry:/_system/governance/2.Model.2015-12-22_19-47-59
> org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
> class incompatible: stream classdesc serialVersionUID =
> -1410218250358516850, local class serialVersionUID = 8020448562088344988 
> in
> execution plan "ExecutionPlanML"
> at
> org.wso2.carbon.event.processor.core.internal.util.helper.EventProcessorHelper.validateExecutionPlan(EventProcessorHelper.java:193)
> ...
> Caused by:
> org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error while
> retrieving ML-model :
> registry:/_system/governance/2.Model.2015-12-22_19-47-59
> org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
> class incompatible: stream classdesc serialVersionUID =
> -1410218250358516850, local class serialVersionUID = 8020448562088344988
> at
> org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.logError(PredictStreamProcessor.java:350)
> at
> org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.init(PredictStreamProcessor.java:187)
> ... 82 more
>
> Is this expected behavior? If so ​I think we need to mention that
> models are not backward compatible in docs.​
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender 
> indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thanks & Regards,

 Fazlan Nazeem

 *Software Engineer*

 *WSO2 Inc*
 Mobile : +94772338839
 <%2B94%20%280%29%20773%20451194>
 fazl...@wso2.com

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


>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> Fazlan Nazeem
>>
>> *Software Engineer*
>>
>> *WSO2 Inc*
>> Mobile : +94772338839
>> <%2B94%20%280%29%20773%20451194>
>> fazl...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middlew

Re: [Dev] ML 1.1.0 is not backward compatible with older models

2016-02-18 Thread Mohanadarshan Vivekanandalingam
On Thu, Feb 18, 2016 at 2:42 PM, Fazlan Nazeem  wrote:

> Hi NIranjan,
>
> Yes, but currently we do not have a migration guide for ML. The changes
> needed were minimal and hence was decided not to include a migration guide.
>

No Fazlan.. It is not correct.. Eventhough changes are minimal we need a
migration guide specifying those minimal things or to say there is nothing
to migrate.. It is a mandatory doc requirement for a release..



>
> On Thu, Feb 18, 2016 at 12:27 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Fazlan,
>>
>> IMO we need to also mention this in the ML migration doc from 1.0.0 to
>> 1.1.0.
>>
>> Regards,
>> Nira
>>
>> On Thu, Feb 18, 2016 at 12:22 PM, Fazlan Nazeem  wrote:
>>
>>> Hi Tishan,
>>>
>>> This is an expected behaviour since we have changed the model classes in
>>> ML 1.1.0.
>>>
>>> @Rukshani can you please document this under [1].
>>>
>>> [1]
>>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions
>>>
>>> On Thu, Feb 18, 2016 at 12:12 PM, Tishan Dahanayakage 
>>> wrote:
>>>
 Hi all,

 ML models built with ML 1.0.0 is not compatible with ML 1.1.0. If we
 try to use a model build with 1.0.0 against ML 1.1.0 features following
 exception is generated. Came across this when testing ML extension for CEP.


 org.wso2.carbon.event.processor.core.exception.ExecutionPlanConfigurationException:
 org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error while
 retrieving ML-model :
 registry:/_system/governance/2.Model.2015-12-22_19-47-59
 org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
 class incompatible: stream classdesc serialVersionUID =
 -1410218250358516850, local class serialVersionUID = 8020448562088344988 in
 execution plan "ExecutionPlanML"
 at
 org.wso2.carbon.event.processor.core.internal.util.helper.EventProcessorHelper.validateExecutionPlan(EventProcessorHelper.java:193)
 ...
 Caused by:
 org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error while
 retrieving ML-model :
 registry:/_system/governance/2.Model.2015-12-22_19-47-59
 org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
 class incompatible: stream classdesc serialVersionUID =
 -1410218250358516850, local class serialVersionUID = 8020448562088344988
 at
 org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.logError(PredictStreamProcessor.java:350)
 at
 org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.init(PredictStreamProcessor.java:187)
 ... 82 more

 Is this expected behavior? If so ​I think we need to mention that
 models are not backward compatible in docs.​


 --
 Tishan Dahanayakage
 Software Engineer
 WSO2, Inc.
 Mobile:+94 716481328

 Disclaimer: This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, re-transmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.

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


>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> Fazlan Nazeem
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc*
>>> Mobile : +94772338839
>>> <%2B94%20%280%29%20773%20451194>
>>> fazl...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*V. Mohanadarshan*
*Senior Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ML 1.1.0 is not backward compatible with older models

2016-02-18 Thread Rukshani Weerasinha
Hi all,

I will be adding a note in ML-CEP integration docs in both ML and CEP
documentation.

Best Regards,
Rukshani.

On Thu, Feb 18, 2016 at 2:42 PM, Fazlan Nazeem  wrote:

> Hi NIranjan,
>
> Yes, but currently we do not have a migration guide for ML. The changes
> needed were minimal and hence was decided not to include a migration guide.
>
> On Thu, Feb 18, 2016 at 12:27 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Fazlan,
>>
>> IMO we need to also mention this in the ML migration doc from 1.0.0 to
>> 1.1.0.
>>
>> Regards,
>> Nira
>>
>> On Thu, Feb 18, 2016 at 12:22 PM, Fazlan Nazeem  wrote:
>>
>>> Hi Tishan,
>>>
>>> This is an expected behaviour since we have changed the model classes in
>>> ML 1.1.0.
>>>
>>> @Rukshani can you please document this under [1].
>>>
>>> [1]
>>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions
>>>
>>> On Thu, Feb 18, 2016 at 12:12 PM, Tishan Dahanayakage 
>>> wrote:
>>>
 Hi all,

 ML models built with ML 1.0.0 is not compatible with ML 1.1.0. If we
 try to use a model build with 1.0.0 against ML 1.1.0 features following
 exception is generated. Came across this when testing ML extension for CEP.


 org.wso2.carbon.event.processor.core.exception.ExecutionPlanConfigurationException:
 org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error while
 retrieving ML-model :
 registry:/_system/governance/2.Model.2015-12-22_19-47-59
 org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
 class incompatible: stream classdesc serialVersionUID =
 -1410218250358516850, local class serialVersionUID = 8020448562088344988 in
 execution plan "ExecutionPlanML"
 at
 org.wso2.carbon.event.processor.core.internal.util.helper.EventProcessorHelper.validateExecutionPlan(EventProcessorHelper.java:193)
 ...
 Caused by:
 org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error while
 retrieving ML-model :
 registry:/_system/governance/2.Model.2015-12-22_19-47-59
 org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
 class incompatible: stream classdesc serialVersionUID =
 -1410218250358516850, local class serialVersionUID = 8020448562088344988
 at
 org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.logError(PredictStreamProcessor.java:350)
 at
 org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.init(PredictStreamProcessor.java:187)
 ... 82 more

 Is this expected behavior? If so ​I think we need to mention that
 models are not backward compatible in docs.​


 --
 Tishan Dahanayakage
 Software Engineer
 WSO2, Inc.
 Mobile:+94 716481328

 Disclaimer: This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, re-transmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.

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


>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> Fazlan Nazeem
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc*
>>> Mobile : +94772338839
>>> <%2B94%20%280%29%20773%20451194>
>>> fazl...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>



-- 
Rukshani Weerasinha

WSO2 Inc.
Web:http://wso2.com
Mobile: 0777 683 738
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ML 1.1.0 is not backward compatible with older models

2016-02-18 Thread Fazlan Nazeem
Hi NIranjan,

Yes, but currently we do not have a migration guide for ML. The changes
needed were minimal and hence was decided not to include a migration guide.

On Thu, Feb 18, 2016 at 12:27 PM, Niranjan Karunanandham 
wrote:

> Hi Fazlan,
>
> IMO we need to also mention this in the ML migration doc from 1.0.0 to
> 1.1.0.
>
> Regards,
> Nira
>
> On Thu, Feb 18, 2016 at 12:22 PM, Fazlan Nazeem  wrote:
>
>> Hi Tishan,
>>
>> This is an expected behaviour since we have changed the model classes in
>> ML 1.1.0.
>>
>> @Rukshani can you please document this under [1].
>>
>> [1]
>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions
>>
>> On Thu, Feb 18, 2016 at 12:12 PM, Tishan Dahanayakage 
>> wrote:
>>
>>> Hi all,
>>>
>>> ML models built with ML 1.0.0 is not compatible with ML 1.1.0. If we try
>>> to use a model build with 1.0.0 against ML 1.1.0 features following
>>> exception is generated. Came across this when testing ML extension for CEP.
>>>
>>>
>>> org.wso2.carbon.event.processor.core.exception.ExecutionPlanConfigurationException:
>>> org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error while
>>> retrieving ML-model :
>>> registry:/_system/governance/2.Model.2015-12-22_19-47-59
>>> org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
>>> class incompatible: stream classdesc serialVersionUID =
>>> -1410218250358516850, local class serialVersionUID = 8020448562088344988 in
>>> execution plan "ExecutionPlanML"
>>> at
>>> org.wso2.carbon.event.processor.core.internal.util.helper.EventProcessorHelper.validateExecutionPlan(EventProcessorHelper.java:193)
>>> ...
>>> Caused by:
>>> org.wso2.siddhi.core.exception.ExecutionPlanCreationException: Error while
>>> retrieving ML-model :
>>> registry:/_system/governance/2.Model.2015-12-22_19-47-59
>>> org.wso2.carbon.ml.core.spark.models.MLGeneralizedLinearModel; local
>>> class incompatible: stream classdesc serialVersionUID =
>>> -1410218250358516850, local class serialVersionUID = 8020448562088344988
>>> at
>>> org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.logError(PredictStreamProcessor.java:350)
>>> at
>>> org.wso2.carbon.ml.siddhi.extension.PredictStreamProcessor.init(PredictStreamProcessor.java:187)
>>> ... 82 more
>>>
>>> Is this expected behavior? If so ​I think we need to mention that models
>>> are not backward compatible in docs.​
>>>
>>>
>>> --
>>> Tishan Dahanayakage
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 716481328
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, re-transmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> Fazlan Nazeem
>>
>> *Software Engineer*
>>
>> *WSO2 Inc*
>> Mobile : +94772338839
>> <%2B94%20%280%29%20773%20451194>
>> fazl...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS Authenticator] Issue in logout from mailchimp authenticator

2016-02-18 Thread Malithi Edirisinghe
Hi Haripasath,

When analyzing the trace that you have attached I noted that the IdP
hostname has been changed from localhost -> 127.0.0.1 -> localhost. IS
maintains the logged in session via a cookie set to the IdP Url. These
cookies are set against the hostname in the browser.

So in your case, after the successful authentication 'samlssoTokenId' is
set against 127.0.0.1 hostname. But the login request is sent under
'localhost' hostname. So the cookie is not sent back to the server there.
So the server cannot find the session with regard to this logout request.

Please make sure that you use the same hostname along the full flow either
localhost or 127.0.0.1

Thanks,
Malithi.

On Thu, Feb 18, 2016 at 12:45 AM, Hariprasath Thanarajah <
haripras...@wso2.com> wrote:

> Hi All,
>
> I couldn't find the reason behind this why is this happening. Can anyone
> have any idea ?
>
> On Fri, Feb 5, 2016 at 12:56 PM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi Philips,
>>
>> Any update on this?
>>
>> On Tue, Feb 2, 2016 at 2:57 PM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi Philips,
>>>
>>> You can find the SSO tracer in the following attachment.
>>>
>>>
>>>
>>> On Tue, Feb 2, 2016 at 2:22 PM, Chamara Philips 
>>> wrote:
>>>
 Hi Hariprasath,
 It is because the sessionID is null. It will be helpfull, if you can
 attach the SSO tracer.

 Thanks.

 On Tue, Feb 2, 2016 at 11:58 AM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Hi All,
>
> I have implemented mailChimp Authenticator for IS. When I logout from
> sample webapp(travelocity.com) i got the below error,
>
> [2016-02-02 11:41:01,907] ERROR
> {org.wso2.carbon.identity.sso.saml.processors.SPInitLogoutRequestProcessor}
> -  ssoTokenId cookie not found in the logout request
>
>
> Any suggestions?
>
> --
>
>
> *Thank you and Regards**Hariprasath Thanarajah*
> Associate Software Engineer | WSO2
> E: haripras...@wso2.com
> M: +94752806528
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Hareendra Chamara Philips
 *Software  Engineer*
 Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
 chama...@wso2.com 


>>>
>>>
>>> --
>>>
>>>
>>> *Thank you and Regards**Hariprasath Thanarajah*
>>> Associate Software Engineer | WSO2
>>> E: haripras...@wso2.com
>>> M: +94752806528
>>>
>>>
>>
>>
>> --
>>
>>
>> *Thank you and Regards**Hariprasath Thanarajah*
>> Associate Software Engineer | WSO2
>> E: haripras...@wso2.com
>> M: +94752806528
>>
>>
>
>
> --
>
>
> *Thank you and Regards**Hariprasath Thanarajah*
> Associate Software Engineer | WSO2
> E: haripras...@wso2.com
> M: +94752806528
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

Mobile : +94 (0) 718176807
malit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev