Re: [Dev] [DEV] Integration tests run before deploying web app

2015-11-10 Thread Amalka Subasinghe
We can read the carbon log and check whether there's a web app deployed log.

Automation team might know some more options :)



On Tue, Nov 10, 2015 at 7:51 PM, Geesara Prathap  wrote:

> Hi Amalka,
>
> Actually that is what I asked. What sort of logic should be invoked
> through a @Before method? I can periodically send requests to service
> endpoint check whether service is available or not. But what would be the
> proper way to achieve this.
>
> Thanks,
>
> On Tue, Nov 10, 2015 at 6:24 PM, Amalka Subasinghe 
> wrote:
>
>> You can implement some waiting logic to check whether the web app
>> deployed in the server and invoke it in @BeforeClass method
>>
>>
>> On Mon, Nov 9, 2015 at 10:25 PM, Geesara Prathap 
>> wrote:
>>
>>> Hi All,
>>>
>>> I wrote some integration test cases to test a web service. Here is my
>>> the build section of maven configuration looks like.
>>>
>>> * *
>>>
>>> **
>>>
>>> **
>>>
>>> *maven-war-plugin*
>>>
>>> *2.3*
>>>
>>> **
>>>
>>> *src/main/webapp/WEB-INF/web.xml*
>>>
>>> *${name}*
>>>
>>> *
>>> /home/geesara/wso2/products/wso2as-5.3.0/repository/deployment/server/webapps*
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>>
>>> **
>>>
>>> *maven-compiler-plugin*
>>>
>>> *3.1*
>>>
>>> **
>>>
>>> *1.7*
>>>
>>> *1.7*
>>>
>>> **
>>>
>>> **
>>>
>>>
>>> **
>>>
>>> *org.apache.maven.plugins*
>>>
>>> *maven-failsafe-plugin*
>>>
>>> *2.12.4*
>>>
>>> **
>>>
>>> **
>>>
>>> *integration-test*
>>>
>>> **
>>>
>>> *integration-test*
>>>
>>> *verify*
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> **
>>>
>>> As the $subject, How should we wait until web app has been deployed on
>>> the server to execute integration test cases.
>>>
>>> Thanks,
>>>
>>>
>>> --
>>> Geesara Prathap Kulathunga
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> phone: +940772684174
>>>
>>
>>
>>
>> --
>> Amalka Subasinghe
>> Senior Software Engineer
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +940772684174
>



-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Output directory for maven-bundle-plugin

2015-11-10 Thread Geesara Prathap
Hi All,

I started creating an OSGI bundle. So It works fine. But when I add output
directory in configuration section in maven bundle plugin, it won't add any
of compiled classes. Simply say, the classpath is empty.  Is there anything
which I configured in a wrong way.
This is the build section of pom.xml.

   **
*
 /home/wso2/products/wso2esb-
4.9.0/repository/components/dropins*
*   *

**

**

**

*maven-compiler-plugin*

*3.3*

**

*1.7*

*1.7*

**

**

**

*org.apache.felix*

*maven-bundle-plugin*

*1.4.0*

*true*

**

**

*
${project.artifactId}*

*${project.artifactId}*

*
org.wso2.carbon.demo.Activator*

**

*org.wso2.carbon.demo.orderprocess.**

**

**

*
${project.outputDirectory}*

**

**

**

**


According to this[1]
,
it is a bug in the maven bundle plugin. Is this actually a bug or something
wrong with my configuration.

1.
http://stackoverflow.com/questions/9943392/classpath-empty-when-adding-outputdirectory-to-pom

Thanks,
-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] ESB 4.10 - Revamping mediation statistics and message tracing

2015-11-10 Thread Inosh Goonewardena
Hi Viraj,

On Mon, Nov 9, 2015 at 3:45 PM, Viraj Senevirathne  wrote:

> Hi All,
>
> We are planning to removing following features as we are introducing new
> improved features that enhance and extend the existing functionality.
>
> ESB 4.10.0 release will not have following sections in the management
> console UI.
>
> *Monitoring Section*
>
>- Mediation Statistics
>- SOAP Tracer
>- Mediation Tracer
>- Message Flows
>
> *Configure Section *
>
>- Mediation Data Publishing
>- BAM Server Profile
>
>
> ESB 4.10.0 release will contain following additions to management console.
>
> *Configure Section*
>
>- Mediation Statistics Publishing Configuration
>- Tracing Data Publishing Configuration
>
> Will there be two UI configuration sections for above? Both mediation
stats and message tracing require same set of configurations like, DAS
receiver URL and user credentials. Wouldn't it be better if we let the user
to configure this information in single place?

>
>-
>
> ESB will publish tracing and statistic data to the DAS and users can
> monitor mediation statistics and message tracing results from DAS dashboard.
>
> Thank you,
>
> On Mon, Nov 9, 2015 at 3:15 PM, Kasun Indrasiri  wrote:
>
>> Hi,
>>
>> As part of the ongoing efforts for revamping mediation statistics and
>> message tracing in ESB, we have to get rid of most of the existing UIs and
>> configurations in the ESB management console.
>>
>> Jagath/Viraj : Can you please list down the areas that we gonna remove
>> from ESB 4.10 and the new additions to support tracing and stats.
>>
>> Thanks,
>> Kasun.
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> Viraj Senevirathne
> Software Engineer; WSO2, Inc.
>
> Mobile : +94 71 958 0269
> Email : vir...@wso2.com
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Thanks & Regards,

Inosh Goonewardena
Associate Technical Lead- WSO2 Inc.
Mobile: +94779966317
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] http/https ports and hostname in carbon

2015-11-10 Thread Waruna Jayaweera
Hi Kalpa,
Did you able to find a solution for $subject. I am also looking for an approach
to get the host name

Thanks,
Waruna



On Wed, Feb 11, 2015 at 6:59 AM, Kalpa Welivitigoda  wrote:

> Hi,
>
> I want to get the $subject.
>
> An option to get the http port would be to use
> "CarbonUtils.getPortFromServerConfig("Ports.Offset") + 1". For https port,
> we can use the same method passing the default https port. Is there a
> better way?
>
> What would be the preferred approach to get the host name?
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Integration tests run before deploying web app

2015-11-10 Thread Nuwan Wimalasekara
Hi Geesara,

You can use WebAppDeploymentUtil.isWebApplicationDeployed()[1] method to
check whether the web application is deployed or not. It will wait and
return true once the web app got deployed.

[1]
https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/appserver/integration/common/utils/WebAppDeploymentUtil.java

Thanks,
Nuwanw



On Tue, Nov 10, 2015 at 11:52 AM, Amalka Subasinghe  wrote:

> We can read the carbon log and check whether there's a web app deployed
> log.
>
> Automation team might know some more options :)
>
>
>
> On Tue, Nov 10, 2015 at 7:51 PM, Geesara Prathap  wrote:
>
>> Hi Amalka,
>>
>> Actually that is what I asked. What sort of logic should be invoked
>> through a @Before method? I can periodically send requests to service
>> endpoint check whether service is available or not. But what would be the
>> proper way to achieve this.
>>
>> Thanks,
>>
>> On Tue, Nov 10, 2015 at 6:24 PM, Amalka Subasinghe 
>> wrote:
>>
>>> You can implement some waiting logic to check whether the web app
>>> deployed in the server and invoke it in @BeforeClass method
>>>
>>>
>>> On Mon, Nov 9, 2015 at 10:25 PM, Geesara Prathap 
>>> wrote:
>>>
 Hi All,

 I wrote some integration test cases to test a web service. Here is my
 the build section of maven configuration looks like.

 * *

 **

 **

 *maven-war-plugin*

 *2.3*

 **

 *src/main/webapp/WEB-INF/web.xml*

 *${name}*

 *
 /home/geesara/wso2/products/wso2as-5.3.0/repository/deployment/server/webapps*

 **

 **

 **

 **


 **

 *maven-compiler-plugin*

 *3.1*

 **

 *1.7*

 *1.7*

 **

 **


 **

 *org.apache.maven.plugins*

 *maven-failsafe-plugin*

 *2.12.4*

 **

 **

 *integration-test*

 **

 *integration-test*

 *verify*

 **

 **

 **

 **

 **

 **

 As the $subject, How should we wait until web app has been deployed on
 the server to execute integration test cases.

 Thanks,


 --
 Geesara Prathap Kulathunga
 Software Engineer
 WSO2 Inc; http://wso2.com
 phone: +940772684174

>>>
>>>
>>>
>>> --
>>> Amalka Subasinghe
>>> Senior Software Engineer
>>> WSO2 Inc.
>>> Mobile: +94 77 9401267
>>>
>>
>>
>>
>> --
>> Geesara Prathap Kulathunga
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +940772684174
>>
>
>
>
> --
> Amalka Subasinghe
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>



-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Python data publisher in PPAAS

2015-11-10 Thread Chamila De Alwis
On Tue, Nov 10, 2015 at 1:44 PM, Malith Dhanushka  wrote:

> Thanks Chamila. Was there any benchmark for python agent against java
> agent for performance and resource utilization?
>

AFAIR there was no such test to compare the two implementations.


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Python data publisher in PPAAS

2015-11-10 Thread Malith Dhanushka
Thanks Chamila. Was there any benchmark for python agent against java agent
for performance and resource utilization?

On Tue, Nov 10, 2015 at 11:06 AM, Chamila De Alwis 
wrote:

> Hi Malith,
>
> Sorry for the delayed response. You can refer to [1] to see how the Python
> Thrift publisher is used.
>
> Create a ThriftPublisher object using the Thrift receiver url, the
> credentials and the Stream Definition. The ThriftPublisher class will
> connect to the Thrift receiver and define the Stream when the object is
> created.
>
> publisher = ThriftPublisher(
> cep_ip,
> cep_port,
> self.cep_admin_username,
> self.cep_admin_password,
> self.stream_definition)
>
> When publishing an event, create a ThriftEvent object and add metaData,
> correlationData or payloadData accordingly [2]. Then execute the
> `publish()` method on the publisher object created above [3].
>
> event = ThriftEvent()
> event.payloadData.append(Config.cluster_id)
> event.payloadData.append(Config.cluster_instance_id)
> event.payloadData.append(Config.network_partition_id)
> .
> event.payloadData.append(float(memory_usage))
>
> 
>
> try:
> publisher.publish(event)
> except Exception as ex:
> raise ThriftReceiverOfflineException(ex)
>
>
> Please note that multiple publishers have to be managed manually [4].
>
> [1] -
> https://github.com/apache/stratos/blob/stratos-4.1.x/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/healthstats.py#L186
> [2] -
> https://github.com/apache/stratos/blob/stratos-4.1.x/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/healthstats.py#L144
> [3] -
> https://github.com/apache/stratos/blob/stratos-4.1.x/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/healthstats.py#L226
> [4] -
> https://github.com/apache/stratos/blob/stratos-4.1.x/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/healthstats.py#L104
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Tue, Nov 10, 2015 at 10:51 AM, Malith Dhanushka 
> wrote:
>
>> Thanks guys
>>
>> On Mon, Nov 9, 2015 at 7:50 PM, Imesh Gunaratne  wrote:
>>
>>> Yes, source code can be found here:
>>>
>>>
>>> https://github.com/apache/stratos/tree/master/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/databridge
>>>
>>> On Mon, Nov 9, 2015 at 6:27 AM, Reka Thirunavukkarasu 
>>> wrote:
>>>
 Hi Malith,

 Chamila has implemented python data publisher in PPaaS. Hope he can
 help you with it.

 Thanks,
 Reka

 On Mon, Nov 9, 2015 at 4:38 PM, Malith Dhanushka 
 wrote:

> Hi Folks,
>
> We have a requirement for a python data publisher for DAS and got to
> know that this has already implemented in PPAAS. Could you please provide
> some details on what extent that was done in terms of functionality.  (i.e
> - authentication, even bundling, message queuing..)
>
> Thanks
> Malith
> --
> Malith Dhanushka
> Senior Software Engineer - Data Technologies
> *WSO2, Inc. : wso2.com *
> *Mobile*  : +94 716 506 693
>



 --
 Reka Thirunavukkarasu
 Senior Software Engineer,
 WSO2, Inc.:http://wso2.com,
 Mobile: +94776442007



>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> Malith Dhanushka
>> Senior Software Engineer - Data Technologies
>> *WSO2, Inc. : wso2.com *
>> *Mobile*  : +94 716 506 693
>>
>
>


-- 
Malith Dhanushka
Senior Software Engineer - Data Technologies
*WSO2, Inc. : wso2.com *
*Mobile*  : +94 716 506 693
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Connection issue in Salesforce Streaming API

2015-11-10 Thread Malaka Silva
Can we try with a new connection in this case rather than trying to
reconnect with the existing connection?

On Tue, Nov 10, 2015 at 11:22 AM, Hariprasath Thanarajah <
haripras...@wso2.com> wrote:

> Hi all,
>
> I am working on Salesforce Streaming Inbound. There is only problem i
> noticed in my code is that if there is a network failure then the CometD
> session is expired , from that it can't reconnect because the HttpSession
> is remains as same but the cometD Rehandshake happened with different
> clientId(Server Session is different).
>
> But in the documentation they mentioned that we must reconnect the
> connection if there any unexpected network distruption, From my home
> network it is working continuously But if the network failure around 2
> minutes only the problem will occur.
>
> Any suggestion?
>
> --
>
>
> *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
>
>


-- 

Best Regards,

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

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

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

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


Re: [Dev] Tenant domain missing in AUTHZ_USER column of IDN_OAUTH2_ACCESS_TOKEN table

2015-11-10 Thread Maduranga Siriwardena
Hi Nuwan,

We are storing tenant id and user store domain in separate columns in the
IDN_OAUTH2_ACCESS_TOKEN table. So there is no need to add tenant domain
with the username also.

Thanks,
Maduranga

On Tue, Nov 10, 2015 at 2:20 PM, Nuwan Dias  wrote:

> Hi,
>
> We're using carbon-identity version 5.0.2 and I notice $subject when
> generating access tokens using both client_credentials and password grants.
> Is this noticeable on IS too? We need to fix that if so.
>
> Thanks,
> NuwanD.
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Size reduction for MSS

2015-11-10 Thread Manuranga Perera
The whole mss product is 21M and guava jar is 1.8MiB. So around 10% is
wasted on one jar. It might be worth looking into
https://github.com/google/guava/wiki/UsingProGuardWithGuava

Maybe we can use this for general size reduction as well?

-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Tenant domain missing in AUTHZ_USER column of IDN_OAUTH2_ACCESS_TOKEN table

2015-11-10 Thread Nuwan Dias
Hi,

We're using carbon-identity version 5.0.2 and I notice $subject when
generating access tokens using both client_credentials and password grants.
Is this noticeable on IS too? We need to fix that if so.

Thanks,
NuwanD.

-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Python data publisher in PPAAS

2015-11-10 Thread Anuruddha Premalal
Hi Stratos Team,

We are deciding on whether to go with a python agent or a java agent for
the log analysis solution.  And came across stratos CA as a reference.

What were the reasons behind introducing a python cartridge agent? Are you
seeing any gain/loss by using python at the agent side?.


On Tue, Nov 10, 2015 at 1:59 PM, Chamila De Alwis  wrote:

>
> On Tue, Nov 10, 2015 at 1:44 PM, Malith Dhanushka  wrote:
>
>> Thanks Chamila. Was there any benchmark for python agent against java
>> agent for performance and resource utilization?
>>
>
> AFAIR there was no such test to compare the two implementations.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Anuruddha Premalal*
Software Eng. | WSO2 Inc.
Mobile : +94717213122
Web site : www.anuruddha.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DS] [Feature] Default Dashboard for dashboard server

2015-11-10 Thread Nipuna Chandradasa
Hi All,

In Dashboard Server (DS) as a new feature user will be able to define a
default dashboard which user will be directed to ( Dashboard View page )
when starting the portal. Making a dashboard default is not mandatory. So
there will be a scenario where there are no any default dashboard.

Currently, in DS we direct users to the dashboard list which shows all the
available dashboards. But with this feature the plan is to direct the user
to the default dashboard if there is a default dashboard marked by user.

There are three scenarios we have to consider when we implementing this
feature.

1. As said earlier, if there is a default dashboard marked by user then
direct user to View page of that dashboard

2. When there is no default dashboard but there are other dashboards
available then direct user to dashboard list page.

3. When there are no any dashboard redirect user to Create Dashboard page.

If user want to see the list of dashboards there will be a navigation link
available ( This we have to discuss). Default dashboard will be marked
using different color or with a red dot above the title to differentiate it
from other dashboards in the list.

@Gokul.. Will this feature affect other products?

@Dakshika.. is differentiating default dashboard with colors is a good
idea? or is there any other way? ...

Appreciate any comments and suggestions...

Thank you
-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-10 Thread Pubudu Gunatilaka
Make sure you clean stopped docker containers in Kubernetes minions. There
are known issues in Kubernetes GC. You can use the following command within
a minion to remove stopped containers.

docker rm `docker ps --no-trunc -aq`

On Tue, Nov 10, 2015 at 6:08 PM, Amalka Subasinghe  wrote:

> I'm also getting similar issues these days. I think resources are not
> enough in the openstack instance
>
> On Tue, Nov 10, 2015 at 5:44 PM, Pubudu Gunatilaka 
> wrote:
>
>> Hi,
>>
>> Restarting the cartridge agent will not work and it will halt at the
>> instance initialization. If the application went from Active to  Deploy
>> state, then most probably faulty member has detected and a new docker
>> instance has spawned.
>>
>> Can you attach the agent log in one of the docker containers?
>>
>> Thank you!
>>
>> On Tue, Nov 10, 2015 at 5:24 PM, Anuruddha Premalal 
>> wrote:
>>
>>> Hi Roshan,
>>>
>>> Can you check whether your teant is subscribed to the cartridge? (you
>>> could use stratos rest api).
>>>
>>> Try with a new tenant. This might probably be due to a subscription
>>> issue.
>>>
>>> On Tue, Nov 10, 2015 at 5:15 PM, Roshan Deniyage 
>>> wrote:
>>>
 Hi All,
 I'm working with new appfactory dev setup with kubenetes and
 docker. In appfactory side the setup works fine and when app is created it
 successfully get commit to s2git (git server which cartridge agent get
 artifact from).

 But, I'm facing an issue getting the artifact deployed to the
 cartridge. The trouble shooting steps are as follows,

 * After the dev setup is completed I restarted mq, activemq, stratos, 3
 greg servers, jenkins and appfactory in the given order.
 * Then executed the "executor.sh" script which is inside the ppass to
 subscribe to stratos since the setup is not executing it successfully.
 * Then 3 applications in the stratos for dev, test and prod env, show
 the applications are in "deployed" state but never becomes "active".
 * Hence, I logged into 3 docker instances and restated the wso2app
 servers. (cartridge)
 * Then, 3 applications became active.
 * But, once I create a new application, it goes upto s2git but not
 deploying in the cartridge.
 * Then, I restarted the cartridge agents in 3 docker instance but it
 cause to become 3 stratos applications to "deployed" state from "active"
 stage.
 * The agent logs doesn't show any error messages.

 I have no clue what's going on. If someone has any idea how to find the
 root cause, that  would be great.


 Thanks,
 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406 / +1 408 667 6254
 Twitter:  *https://twitter.com/roshku *
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


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


>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94717213122
>>> Web site : www.anuruddha.org
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774079049 <%2B94772207163>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Amalka Subasinghe
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774079049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-10 Thread Gayan Dhanushka
I also observed an issue where even I undeploy the  applications in stratos
the pods keep on spawning. Seems like the openstack instance is crowded at
the moment. The pods take a long time to start.

On Tue, Nov 10, 2015 at 6:08 PM, Amalka Subasinghe  wrote:

> I'm also getting similar issues these days. I think resources are not
> enough in the openstack instance
>
> On Tue, Nov 10, 2015 at 5:44 PM, Pubudu Gunatilaka 
> wrote:
>
>> Hi,
>>
>> Restarting the cartridge agent will not work and it will halt at the
>> instance initialization. If the application went from Active to  Deploy
>> state, then most probably faulty member has detected and a new docker
>> instance has spawned.
>>
>> Can you attach the agent log in one of the docker containers?
>>
>> Thank you!
>>
>> On Tue, Nov 10, 2015 at 5:24 PM, Anuruddha Premalal 
>> wrote:
>>
>>> Hi Roshan,
>>>
>>> Can you check whether your teant is subscribed to the cartridge? (you
>>> could use stratos rest api).
>>>
>>> Try with a new tenant. This might probably be due to a subscription
>>> issue.
>>>
>>> On Tue, Nov 10, 2015 at 5:15 PM, Roshan Deniyage 
>>> wrote:
>>>
 Hi All,
 I'm working with new appfactory dev setup with kubenetes and
 docker. In appfactory side the setup works fine and when app is created it
 successfully get commit to s2git (git server which cartridge agent get
 artifact from).

 But, I'm facing an issue getting the artifact deployed to the
 cartridge. The trouble shooting steps are as follows,

 * After the dev setup is completed I restarted mq, activemq, stratos, 3
 greg servers, jenkins and appfactory in the given order.
 * Then executed the "executor.sh" script which is inside the ppass to
 subscribe to stratos since the setup is not executing it successfully.
 * Then 3 applications in the stratos for dev, test and prod env, show
 the applications are in "deployed" state but never becomes "active".
 * Hence, I logged into 3 docker instances and restated the wso2app
 servers. (cartridge)
 * Then, 3 applications became active.
 * But, once I create a new application, it goes upto s2git but not
 deploying in the cartridge.
 * Then, I restarted the cartridge agents in 3 docker instance but it
 cause to become 3 stratos applications to "deployed" state from "active"
 stage.
 * The agent logs doesn't show any error messages.

 I have no clue what's going on. If someone has any idea how to find the
 root cause, that  would be great.


 Thanks,
 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406 / +1 408 667 6254
 Twitter:  *https://twitter.com/roshku *
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


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


>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94717213122
>>> Web site : www.anuruddha.org
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774079049 <%2B94772207163>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Amalka Subasinghe
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Integration tests run before deploying web app

2015-11-10 Thread Geesara Prathap
Hi Amalka, Nuwan,

thanks to both of you. I'll look into it.

Thanks,
Geesara

On Wed, Nov 11, 2015 at 5:04 AM, Nuwan Wimalasekara  wrote:

> Hi Geesara,
>
> You can use WebAppDeploymentUtil.isWebApplicationDeployed()[1] method to
> check whether the web application is deployed or not. It will wait and
> return true once the web app got deployed.
>
> [1]
> https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/appserver/integration/common/utils/WebAppDeploymentUtil.java
>
> Thanks,
> Nuwanw
>
>
>
> On Tue, Nov 10, 2015 at 11:52 AM, Amalka Subasinghe 
> wrote:
>
>> We can read the carbon log and check whether there's a web app deployed
>> log.
>>
>> Automation team might know some more options :)
>>
>>
>>
>> On Tue, Nov 10, 2015 at 7:51 PM, Geesara Prathap 
>> wrote:
>>
>>> Hi Amalka,
>>>
>>> Actually that is what I asked. What sort of logic should be invoked
>>> through a @Before method? I can periodically send requests to service
>>> endpoint check whether service is available or not. But what would be the
>>> proper way to achieve this.
>>>
>>> Thanks,
>>>
>>> On Tue, Nov 10, 2015 at 6:24 PM, Amalka Subasinghe 
>>> wrote:
>>>
 You can implement some waiting logic to check whether the web app
 deployed in the server and invoke it in @BeforeClass method


 On Mon, Nov 9, 2015 at 10:25 PM, Geesara Prathap 
 wrote:

> Hi All,
>
> I wrote some integration test cases to test a web service. Here is my
> the build section of maven configuration looks like.
>
> * *
>
> **
>
> **
>
> *maven-war-plugin*
>
> *2.3*
>
> **
>
> *src/main/webapp/WEB-INF/web.xml*
>
> *${name}*
>
> *
> /home/geesara/wso2/products/wso2as-5.3.0/repository/deployment/server/webapps*
>
> **
>
> **
>
> **
>
> **
>
>
> **
>
> *maven-compiler-plugin*
>
> *3.1*
>
> **
>
> *1.7*
>
> *1.7*
>
> **
>
> **
>
>
> **
>
> *org.apache.maven.plugins*
>
> *maven-failsafe-plugin*
>
> *2.12.4*
>
> **
>
> **
>
> *integration-test*
>
> **
>
> *integration-test*
>
> *verify*
>
> **
>
> **
>
> **
>
> **
>
> **
>
> **
>
> As the $subject, How should we wait until web app has been deployed on
> the server to execute integration test cases.
>
> Thanks,
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +940772684174
>



 --
 Amalka Subasinghe
 Senior Software Engineer
 WSO2 Inc.
 Mobile: +94 77 9401267

>>>
>>>
>>>
>>> --
>>> Geesara Prathap Kulathunga
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> phone: +940772684174
>>>
>>
>>
>>
>> --
>> Amalka Subasinghe
>> Senior Software Engineer
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
phone: +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Blocker in IS authenticator

2015-11-10 Thread Shakila Sivagnanarajah
Hi all,

I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to enable
another feature with association I need to modify the authenticator for
5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
(artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
given local path in pom. Now I'm getting two errors. I mentioned them here.
Can anyone help me to resolve this?

[1] This is caused while retrieving previous session data.

in FrameworkUtils:
SessionContextCacheEntry cacheEntryObj =
SessionContextCache.getInstance().getValueFromCache(cacheKey);
returns null

I got this stack-trace:
[2015-11-11 07:38:22,258] ERROR
{org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
-  Error while retrieving session data

java.io.InvalidClassException:
org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
incompatible: stream classdesc serialVersionUID = 1179165995021182755,
local class serialVersionUID = 7666485910146971411

at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)

at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)

at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)

at java.util.HashMap.readObject(HashMap.java:1155)

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

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

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

at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)

at
org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore.getBlobObject(SessionDataStore.java:428)

at
org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore.getSessionContextData(SessionDataStore.java:275)

at
org.wso2.carbon.identity.application.authentication.framework.cache.SessionContextCache.getValueFromCache(SessionContextCache.java:93)

at
org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils.getSessionContextFromCache(FrameworkUtils.java:571)

at
org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator.findPreviousAuthenticatedSession(DefaultRequestCoordinator.java:290)

at
org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator.initializeFlow(DefaultRequestCoordinator.java:228)

at
org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator.handle(DefaultRequestCoordinator.java:109)

at
org.wso2.carbon.identity.application.authentication.framework.servlet.CommonAuthenticationServlet.doPost(CommonAuthenticationServlet.java:53)

at
org.wso2.carbon.identity.application.authentication.framework.servlet.CommonAuthenticationServlet.doGet(CommonAuthenticationServlet.java:43)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)

at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

at

Re: [Dev] [PPaaS] Reading dasStatsPublisherEabled value and meteringDashboardUrl at web application startup time and set those as application variables

2015-11-10 Thread Thanuja Uruththirakodeeswaran
On Mon, Nov 9, 2015 at 2:31 PM, Nipuna Chandradasa  wrote:

> Hi Thanuja,
> If this file is not loading before this initScript runs can't we call
> this property file inside the initScript using java (We can write java
> inside a Jaggery) and then set the properties and then we can use
> Process method in jag to access the properties .. ???
>

Thanks a lot Nipuna and Manuranga for the suggestions.

I have read the url properties using java inside initScript as follow and
its working fine:

var cartridgeConfig = carbon.server.loadConfig("cartridge-config.properties");
var prop = new java.util.Properties();
var stream = new java.io.ByteArrayInputStream(new
java.lang.String(cartridgeConfig).getBytes());
prop.load(stream);
application.put("meteringDashboardUrl",
prop.getProperty("das.metering.dashboard.url"));

application.put("monitoringDashboardUrl",
prop.getProperty("das.monitoring.dashboard.url"));


> Here's how we can read the property file using Java
>
> http://crunchify.com/java-properties-file-how-to-read-config-properties-values-in-java/
>
> here is some other suggestions i came across they are not that
> reliable ... but FYI
>
> 1.
> http://stackoverflow.com/questions/19310951/how-to-read-a-properties-file-in-javascript-from-project-directory
>
> 2.
> http://stackoverflow.com/questions/20416185/read-properties-file-using-jquery-or-java-script
>
> 3.
> http://stackoverflow.com/questions/9665214/want-to-read-key-value-from-properties-file
>
> Regards,
>
> On Mon, Nov 9, 2015 at 1:42 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Hi Manu,
>>
>> Metering dashboard url is in cartridge-config.properties file[1]. Is
>> there a way to read this property file directly using jaggery?
>>
>> I can load the file using carbon module (carbon.server.loadConfig(
>> 'cartridge-config.properties');). But don't know how to read a property
>> within this file.
>>
>> [1].
>> https://github.com/wso2/product-private-paas/blob/master/products/ppaas/modules/distribution/src/main/conf/cartridge-config.properties
>>
>> Thanks.
>>
>> On Mon, Nov 9, 2015 at 7:00 AM, Manuranga Perera  wrote:
>>
>>> as I understand metering Dashboard URL is not read from a file. is that
>>> correct? if you can read it from a file it's the better way to go.
>>>
>>> On Fri, Nov 6, 2015 at 3:28 PM, Nipuna Chandradasa 
>>> wrote:
>>>
 Hi,

 May be we can try loading this property file in the app.js (Init script
 as we discuss earlier).
 But if that is not working the best way is to put a timeout. Because we
 have no any other way to get these properties in the init script.

 Let's ask manu is there any better way to do this using jaggery ?? ...
 (If we can read the property file without too much file processing)

 adding manu 

 Regards,

 On Fri, Nov 6, 2015 at 2:28 PM, Thanuja Uruththirakodeeswaran <
 thanu...@wso2.com> wrote:

> Hi All,
>
> In the current implementation, we are reading dasStatsPublisherEnabled
> and meteringDashboardUrl in login.jag file [1] and adding them to session.
> But since these values are common to all users, we should read these 
> values
> at web application startup and add them to application object. So I tried
> to do that in web application initScripts js file (app.js) [2] as follows:
>
> var carbon = require('carbon'),
> process = require('process'),
> server = new carbon.server.Server(),
> conf = carbon.server.loadConfig('thrift-client-config.xml'),
> dasConfig = conf. *::['config']. *::['das'],
> dasStatsPublisherEnabled = false;
>
>
> for (var i = 0; i < dasConfig.node.length(); i++) {
> dasStatsPublisherEnabled = 
> dasConfig.node[i].statsPublisherEnabled.text();
> if (dasStatsPublisherEnabled == true) {
> break;
> }
> }
> application.put("dasStatsPublisherEnabled",dasStatsPublisherEnabled);
>
> setTimeout(function(){
> application.put("meteringDashboardUrl", 
> process.getProperty("das.metering.dashboard.url"))
> },3);
>
> We can read thirift-client-config.xml file and adding
> dasStataPublisherEnabled variable to application without any problems. But
> we have problem in reading metering dashboard url which is in
> cartridge-config.properties at web app initialization.
>
> Here since* webapp is started before stratos-manager component gets
> activated (which reads cartridge-config.properties file and set values in
> that file as system properties [3])*, we need to have a timeout to
> wait for stratos-manager component to be activated before reading
> meteringDashboardUrl using jaggery process module.
>
> Is there a better way to do this without having a timeout? Please give
> your suggestions.
>
> [1].
> 

Re: [Dev] [BRS] Solution for OOM issue due to misuse of drools engine in BRS 220

2015-11-10 Thread Nandika Jayawardana
As discussed, lets attach a custom life cycle implementation to
axisServiceContext by checking whether transport session scope is
configured. Within the lifecycle implementation, we can destroy the
ruleSession.

By default we can always dispose the rule session and if the transport
session scope is configured, we can set our custom lifecycle implementation
and differ destorying the rule session. when axis2 called the life cycle
implementation's destroy method rule session will be destroyed.

Then we  will not need additional attributes.

Regards
Nandika

On Sun, Nov 8, 2015 at 7:41 PM, Milinda Perera  wrote:

> Hi Nandika and all,
>
> During simple load test we observed WSO2 BRS both 2.2.0-SNAPSHOT does OOM
> [1]. After further investigation, found that our implementation misuses
> drools engine.
>
> When request is received by BRS, It creates knowledgeSession from
> KnowledgeBase and feed facts and execute rules.
>
> In Drools there are two types of Knowledge sessions
> *(1) Stateful *[2]
> Stateless knowledge sessions are long lived and knowledge keeps
> reference until they get disposed. In BRS we have binded Stateful sessions
> with Axis2 sessions.
>
> *(2) Stateless*. [3]
> Stateless knowledge session is similar to a function, feed facts,
> execute rules and receive results. Stateless knowledge session simply wraps
> Stateful knowledge session and dispose it at the end of execution.
>
> Since the knowledge base[4] keeps reference for Stateful knowledge
> sessions, memory consumed by knowledgeBase get increase and goes OOM, *if
> we don't dispose them*. At the moment there is no dispose mechanism
> included in BRS. Therefore it goes OOM when invoke deployed service
> continuously.
>
> To solve this we have to solve two things:
> (a) Deviate operations that require stateful or stateless knowledge
> sessions.
> (b) Dispose stateful knowledge sessions when axis2 session get
> destroyed
>
> I think to solve above mentioned (a), we need mechanism to deviate
> operations require Stateful and Stateless knowledge sessions. One possible
> solution is as follows:
>
> Currently our operation config in .rsl file is as follows:
>
> 
>  wrapperElementName="[WRAP_NAME]">
>type="[FACT_TYPE]"/>
> 
>  wrapperElementName="[WRAP_NAME]">
>type="[FACT_TYPE]"/>
> 
> 
>
> To deviate operation which require stateful knowledge sessions from
> stateless, we can add new attribute, lets say "*operationType*" whith
> possible values "*stateful*" and "*stateless*" so final operation config
> will look like as follows:
>
>  operationType="[OPERATION_TYPE]">
>  wrapperElementName="[WRAP_NAME]">
>type="[FACT_TYPE]"/>
> 
>  wrapperElementName="[WRAP_NAME]">
>type="[FACT_TYPE]"/>
> 
> 
>
> When request received to particular operation's messageReceiver, we can
> create appropriate statful or stateless knowledge session for it.
>
> WDYT, any ideas?
>
> [1] mail: [BRS] BRS 2.2.0 - snapshot goes OOM in clustered setup during
> load test
> [2]
> https://docs.jboss.org/jbpm/v5.1/javadocs/org/drools/runtime/StatefulKnowledgeSession.html
> [3]
> https://docs.jboss.org/jbpm/v5.1/javadocs/org/drools/runtime/StatelessKnowledgeSession.html
> [4]
> https://docs.jboss.org/jbpm/v5.1/javadocs/org/drools/KnowledgeBase.html
>
> Thanks,
> Milinda
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>


-- 
Nandika Jayawardana
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-10 Thread Roshan Deniyage
Hi All,
I'm working with new appfactory dev setup with kubenetes and docker. In
appfactory side the setup works fine and when app is created it
successfully get commit to s2git (git server which cartridge agent get
artifact from).

But, I'm facing an issue getting the artifact deployed to the cartridge.
The trouble shooting steps are as follows,

* After the dev setup is completed I restarted mq, activemq, stratos, 3
greg servers, jenkins and appfactory in the given order.
* Then executed the "executor.sh" script which is inside the ppass to
subscribe to stratos since the setup is not executing it successfully.
* Then 3 applications in the stratos for dev, test and prod env, show the
applications are in "deployed" state but never becomes "active".
* Hence, I logged into 3 docker instances and restated the wso2app servers.
(cartridge)
* Then, 3 applications became active.
* But, once I create a new application, it goes upto s2git but not
deploying in the cartridge.
* Then, I restarted the cartridge agents in 3 docker instance but it cause
to become 3 stratos applications to "deployed" state from "active" stage.
* The agent logs doesn't show any error messages.

I have no clue what's going on. If someone has any idea how to find the
root cause, that  would be great.


Thanks,
Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile:  +94 777636406 / +1 408 667 6254
Twitter:  *https://twitter.com/roshku *
LinkedIn :  https://www.linkedin.com/in/roshandeniyage
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-10 Thread Anuruddha Premalal
Hi Roshan,

Can you check whether your teant is subscribed to the cartridge? (you could
use stratos rest api).

Try with a new tenant. This might probably be due to a subscription issue.

On Tue, Nov 10, 2015 at 5:15 PM, Roshan Deniyage  wrote:

> Hi All,
> I'm working with new appfactory dev setup with kubenetes and docker.
> In appfactory side the setup works fine and when app is created it
> successfully get commit to s2git (git server which cartridge agent get
> artifact from).
>
> But, I'm facing an issue getting the artifact deployed to the cartridge.
> The trouble shooting steps are as follows,
>
> * After the dev setup is completed I restarted mq, activemq, stratos, 3
> greg servers, jenkins and appfactory in the given order.
> * Then executed the "executor.sh" script which is inside the ppass to
> subscribe to stratos since the setup is not executing it successfully.
> * Then 3 applications in the stratos for dev, test and prod env, show the
> applications are in "deployed" state but never becomes "active".
> * Hence, I logged into 3 docker instances and restated the wso2app
> servers. (cartridge)
> * Then, 3 applications became active.
> * But, once I create a new application, it goes upto s2git but not
> deploying in the cartridge.
> * Then, I restarted the cartridge agents in 3 docker instance but it cause
> to become 3 stratos applications to "deployed" state from "active" stage.
> * The agent logs doesn't show any error messages.
>
> I have no clue what's going on. If someone has any idea how to find the
> root cause, that  would be great.
>
>
> Thanks,
> Roshan Deniyage
> Associate Technical Lead
> WSO2, Inc: http://wso2.com
>
> Mobile:  +94 777636406 / +1 408 667 6254
> Twitter:  *https://twitter.com/roshku *
> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Anuruddha Premalal*
Software Eng. | WSO2 Inc.
Mobile : +94717213122
Web site : www.anuruddha.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MSS helloworld sample can't build in clean repo

2015-11-10 Thread Aruna Karunarathna
Without building the product-mss repo, can't build the helloworld sample.
[1]

After adding the wso2-nexus repo was able to build. I think we need to
mention in the docs for alpha release and fix this properly in next release.

Following changes required to build in clean repo.

1. Remove the relative path in the pom.xml.
2. add the wso2-nexus repository.


wso2-nexus
WSO2 internal Repository
http://maven.wso2.org/nexus/content/groups/wso2-public/
   
true
daily
ignore





[1].
https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml



-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-10 Thread Afkham Azeez
Since we are extending from the wso2 pom, don't we automatically inherit
the repo?

On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna  wrote:

> Without building the product-mss repo, can't build the helloworld sample.
> [1]
>
> After adding the wso2-nexus repo was able to build. I think we need to
> mention in the docs for alpha release and fix this properly in next release.
>
> Following changes required to build in clean repo.
>
> 1. Remove the relative path in the pom.xml.
> 2. add the wso2-nexus repository.
> 
> 
> wso2-nexus
> WSO2 internal Repository
> http://maven.wso2.org/nexus/content/groups/wso2-public/
>
>
> true
> daily
> ignore
> 
> 
> 
>
>
> [1].
> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-10 Thread Aruna Karunarathna
On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:

> Since we are extending from the wso2 pom, don't we automatically inherit
> the repo?
>
Yes, for the git repository it does. But the sample inside the distribution
there is no inheritance.


> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
> wrote:
>
>> Without building the product-mss repo, can't build the helloworld sample.
>> [1]
>>
>> After adding the wso2-nexus repo was able to build. I think we need to
>> mention in the docs for alpha release and fix this properly in next release.
>>
>> Following changes required to build in clean repo.
>>
>> 1. Remove the relative path in the pom.xml.
>> 2. add the wso2-nexus repository.
>> 
>> 
>> wso2-nexus
>> WSO2 internal Repository
>> http://maven.wso2.org/nexus/content/groups/wso2-public/> >
>>
>> true
>> daily
>> ignore
>> 
>> 
>> 
>>
>>
>> [1].
>> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-10 Thread Afkham Azeez
sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom

So, sample pom should inherit the WSO2 repo right?

On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna  wrote:

>
>
> On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:
>
>> Since we are extending from the wso2 pom, don't we automatically inherit
>> the repo?
>>
> Yes, for the git repository it does. But the sample inside the
> distribution there is no inheritance.
>
>
>> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Without building the product-mss repo, can't build the helloworld
>>> sample. [1]
>>>
>>> After adding the wso2-nexus repo was able to build. I think we need to
>>> mention in the docs for alpha release and fix this properly in next release.
>>>
>>> Following changes required to build in clean repo.
>>>
>>> 1. Remove the relative path in the pom.xml.
>>> 2. add the wso2-nexus repository.
>>> 
>>> 
>>> wso2-nexus
>>> WSO2 internal Repository
>>> http://maven.wso2.org/nexus/content/groups/wso2-public/>> url>
>>>
>>> true
>>> daily
>>> ignore
>>> 
>>> 
>>> 
>>>
>>>
>>> [1].
>>> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-10 Thread Aruna Karunarathna
On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:

> sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom
>
> So, sample pom should inherit the WSO2 repo right?
>

Yes. the above inheritance is correct.

But when building the sample, AFAIU the following artifact is searched in
the maven central repo. So the sample pom has no idea about the mss-service
parent?


mss-service-parent
org.wso2.carbon.mss
1.0.0-alpha



> On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:
>>
>>> Since we are extending from the wso2 pom, don't we automatically inherit
>>> the repo?
>>>
>> Yes, for the git repository it does. But the sample inside the
>> distribution there is no inheritance.
>>
>>
>>> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
>>> wrote:
>>>
 Without building the product-mss repo, can't build the helloworld
 sample. [1]

 After adding the wso2-nexus repo was able to build. I think we need to
 mention in the docs for alpha release and fix this properly in next 
 release.

 Following changes required to build in clean repo.

 1. Remove the relative path in the pom.xml.
 2. add the wso2-nexus repository.
 
 
 wso2-nexus
 WSO2 internal Repository
 http://maven.wso2.org/nexus/content/groups/wso2-public/>>> url>

 true
 daily
 ignore
 
 
 


 [1].
 https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml



 --

 *Aruna Sujith Karunarathna *| Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-10 Thread Afkham Azeez
Can we push that pom to Maven central?

On Tue, Nov 10, 2015 at 11:31 PM, Aruna Karunarathna  wrote:

>
>
> On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:
>
>> sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom
>>
>> So, sample pom should inherit the WSO2 repo right?
>>
>
> Yes. the above inheritance is correct.
>
> But when building the sample, AFAIU the following artifact is searched in
> the maven central repo. So the sample pom has no idea about the mss-service
> parent?
>
> 
> mss-service-parent
> org.wso2.carbon.mss
> 1.0.0-alpha
> 
>
>
>> On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:
>>>
 Since we are extending from the wso2 pom, don't we automatically
 inherit the repo?

>>> Yes, for the git repository it does. But the sample inside the
>>> distribution there is no inheritance.
>>>
>>>
 On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
 wrote:

> Without building the product-mss repo, can't build the helloworld
> sample. [1]
>
> After adding the wso2-nexus repo was able to build. I think we need to
> mention in the docs for alpha release and fix this properly in next 
> release.
>
> Following changes required to build in clean repo.
>
> 1. Remove the relative path in the pom.xml.
> 2. add the wso2-nexus repository.
> 
> 
> wso2-nexus
> WSO2 internal Repository
> http://maven.wso2.org/nexus/content/groups/wso2-public/ url>
>
> true
> daily
> ignore
> 
> 
> 
>
>
> [1].
> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * *
 *email: **az...@wso2.com* 
 * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
 *http://blog.afkham.org* 
 *twitter: **http://twitter.com/afkham_azeez*
 
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] [APIM] Transferring standalone configurations to cluster based configurations

2015-11-10 Thread Suhan Dharmasuriya
Hi,

Currently we are automating tests to run on a API Manager 1.9.1 clustered
environment.

There are some tests (~110) running on default product configurations.
For these tests, we have created a deployment pattern with default product
configurations and
the relevant tests are passing.

Whereas others need some configuration changes.
For these tests, we have introduced new deployment patterns based on these
configuration changes.

When transferring these test configurations to clustered deployment
environment,
we are copying all specific test configurations to all instances in the
cluster.

WDYT about this approach?

When in standalone mode all the components in API Manager refer the test
configurations
from a single file, i.e. api-manager.xml, axis2.xml

Therefore we have puppetized the scripts in such a way that these
configurations are copied
to all instances in the cluster without considering the profiles of each
instance.

Thanks,
Suhan


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Python data publisher in PPAAS

2015-11-10 Thread Srinath Perera
Can you clarify light weight? Does it use less memory or faster or both?

--Srinath



On Tue, Nov 10, 2015 at 7:17 PM, Lakmal Warusawithana 
wrote:

>
>
> On Tue, Nov 10, 2015 at 5:39 PM, Anuruddha Premalal 
> wrote:
>
>> Hi Stratos Team,
>>
>>
> Stratos questions should goto Stratos dev
>
>
>> We are deciding on whether to go with a python agent or a java agent for
>> the log analysis solution.  And came across stratos CA as a reference.
>>
>> What were the reasons behind introducing a python cartridge agent? Are
>> you seeing any gain/loss by using python at the agent side?.
>>
>>
> Stratos wanted to have generic cartridge agent for all type of cartridges,
> like PHP, Ruby, JAVA etc.  For non-java cartridges running java cartridge
> agent is adding lot of overhead. Compared to java cartridge agent, python
> agent is very light waited.
>
>
>>
>> On Tue, Nov 10, 2015 at 1:59 PM, Chamila De Alwis 
>> wrote:
>>
>>>
>>> On Tue, Nov 10, 2015 at 1:44 PM, Malith Dhanushka 
>>> wrote:
>>>
 Thanks Chamila. Was there any benchmark for python agent against java
 agent for performance and resource utilization?

>>>
>>> AFAIR there was no such test to compare the two implementations.
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94717213122
>> Web site : www.anuruddha.org
>>
>>
>
>
> --
> Lakmal Warusawithana
> Director - Cloud Architecture; WSO2 Inc.
> Vise President - Apache Stratos
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>


-- 

Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
Site: http://people.apache.org/~hemapani/
Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] policies updating logs when deleting user

2015-11-10 Thread Pavithra Madurangi
On Fri, Nov 6, 2015 at 6:23 PM, Aparna Karunarathna  wrote:

> Hi Johann and IS team,
>
> We have seen following logs when deleting users in IS 5.1.0, Are there any
> specific reasons to enable those logs?
>
> [*2015-11-06 18:17:44,394]  INFO
> {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -
>  Initializing of policy store is started at :  Fri Nov 06 18:17:44 IST 2015*
> *[2015-11-06 18:17:44,399]  INFO
> {org.wso2.carbon.identity.entitlement.policy.store.DefaultPolicyDataStore}
> -  Using Global policy combining algorithm that is defined in configuration
> file.*
> *[2015-11-06 18:17:44,399]  INFO
> {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -
>  Start retrieving policies from
> org.wso2.carbon.identity.entitlement.policy.store.RegistryPolicyStoreManageModule@1545a815
> at : Fri Nov 06 18:17:44 IST 2015*
> *[2015-11-06 18:17:44,401]  INFO
> {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -
>  Finish retrieving policies from
> org.wso2.carbon.identity.entitlement.policy.store.RegistryPolicyStoreManageModule@1545a815
> at : Fri Nov 06 18:17:44 IST 2015*
> *[2015-11-06 18:17:44,402]  INFO
> {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -
>  Initializing of policy store is finished at :  Fri Nov 06 18:17:44 IST
> 2015*
> *[2015-11-06 18:17:44,414]  INFO
> {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -
>  Initializing of policy store is started at :  Fri Nov 06 18:17:44 IST 2015*
> *[2015-11-06 18:17:44,415]  INFO
> {org.wso2.carbon.identity.entitlement.policy.store.DefaultPolicyDataStore}
> -  Using Global policy combining algorithm that is defined in configuration
> file.*
> *[2015-11-06 18:17:44,415]  INFO
> {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -
>  Start retrieving policies from
> org.wso2.carbon.identity.entitlement.policy.store.RegistryPolicyStoreManageModule@1545a815
> at : Fri Nov 06 18:17:44 IST 2015*
> *[2015-11-06 18:17:44,416]  INFO
> {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -
>  Finish retrieving policies from
> org.wso2.carbon.identity.entitlement.policy.store.RegistryPolicyStoreManageModule@1545a815
> at : Fri Nov 06 18:17:44 IST 2015*
> *[2015-11-06 18:17:44,416]  INFO
> {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -
>  Initializing of policy store is finished at :  Fri Nov 06 18:17:44 IST
> 2015*
>


​Hi team,

We observe these logs when updating users too (with SCIM). Can someone
please explain why XACML/PDP related logs are printed at each and every UM
related operation ?

Regards,
Pavithra​


>
> Please clarify.
>
> --
> *Regards,*
>
> *Aparna Karunarathna.*
>
>
> *Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533*
>



-- 
*Pavithra Madurangi*
Associate Technical Lead - QA.
WSO2 Inc.: http://wso2.com/
Mobile: 0777207357 / 0112747089
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Shakila Sivagnanarajah
Chamila,

You can find the code in [1].

[1]
https://github.com/Shakila/Tiqr-IS-5.1.0/blob/master/tiqr-authenticator/org.wso2.carbon.identity.authenticator/src/main/java/org/wso2/carbon/identity/authenticator/TiqrAuthenticator.java


Thank you

On Wed, Nov 11, 2015 at 11:21 AM, Chamila Wijayarathna 
wrote:

> Hi Shakila,
>
> The proper way to do is migrating the database, but if you don't have any
> useful data in the database deleting the database would be easier.
>
> You can just drop the database, create a new database with same name and
> the start server with './wso2server.sh -Dsetup'.
>
> Thanks
>
> On Wed, Nov 11, 2015 at 11:10 AM, Shakila Sivagnanarajah  > wrote:
>
>> Thanks Rasika & Chamila Wijayarathna,
>>
>> Earlier I didn't specify the serialVersionUID. Now I set that as the
>> expected one (1179165995021182755L). It's working fine.
>>
>>  @ Chamila Wijayarathna: Do I need to delete the database? If so, can
>> you give reference to do that?
>>
>> Thanks
>>
>> On Wed, Nov 11, 2015 at 10:50 AM, Chamila Wijayarathna 
>> wrote:
>>
>>> Hi Shakila,
>>>
>>> It seems like you are using the same database you used with IS 5.0.0,
>>> after moving to 5.1.0 beta.
>>>
>>> If you are using the same database as your previous setup, those
>>> scripts/tables may not compatible with what are expected in 5.1.0. You may
>>> have to migrate or otherwise you can delete the previous database and start
>>> IS again with -Dsetup. If 2nd option is possible, it would be the easiest.
>>>
>>> The reason for the error is as I understand, we have fixed [1] in IS
>>> 5.1.0 and there we have changed serielVersionUID s of some objects which
>>> are saved to databases as blobs by serializing. So when you try to retrieve
>>> old entry which written to database in prior IS version would be serialized
>>> with a 1 serialversionUID and when retrieving it from database after
>>> migration, it try to deserialize, but version ID's does not match. So due
>>> to that it fails to deserialize and this error occurs.
>>>
>>> Thanks
>>>
>>> [1]. https://wso2.org/jira/browse/IDENTITY-3621
>>>
>>> On Wed, Nov 11, 2015 at 10:27 AM, Chamila Wijayarathna >> > wrote:
>>>
 Hi Shakila,

 Can you please share a link of the source code of Tiqr authenticator
 you are working with.

 Thanks.

 On Wed, Nov 11, 2015 at 10:08 AM, Rasika Perera 
 wrote:

> Hi Shakila,
>
> First error is more like deserialization issue. The
> "InvalidClassException" usually occurs when the receiver has loaded a 
> class
> for the object that has a different serialVersionUID than that of the
> corresponding sender's class.
>
> Have you defined explicitly "serialVersionUID" in your serializable
> class "TiqrAuthenticator"? If you do not explicitly declare this,
> serialization runtime will calculate this based on the various aspect of
> the class. According to the java doc[1], recommended way is to explicitly
> declare serialVersionUID values, since the default serialVersionUID
> computation is highly sensitive to class details that may vary depending 
> on
> compiler implementations, and can thus result in unexpected
> InvalidClassExceptions during deserialization.
>
> [1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
>
> Thanks,
> Rasika
>
> On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi all,
>>
>> I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
>> enable another feature with association I need to modify the 
>> authenticator
>> for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
>> (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
>> given local path in pom. Now I'm getting two errors. I mentioned them 
>> here.
>> Can anyone help me to resolve this?
>>
>> [1] This is caused while retrieving previous session data.
>>
>> in FrameworkUtils:
>> SessionContextCacheEntry cacheEntryObj =
>> SessionContextCache.getInstance().getValueFromCache(cacheKey);
>> returns null
>>
>> I got this stack-trace:
>> [2015-11-11 07:38:22,258] ERROR
>> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
>> -  Error while retrieving session data
>>
>> java.io.InvalidClassException:
>> org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
>> incompatible: stream classdesc serialVersionUID = 1179165995021182755,
>> local class serialVersionUID = 7666485910146971411
>>
>> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)
>>
>> at
>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
>>
>> at
>> 

Re: [Dev] [DS] [Feature] Default Dashboard for dashboard server

2015-11-10 Thread Nipuna Chandradasa
HI Udara and Daskshika,

@Udara - Please find the answers inline

1. Let's assume I'm sign-in/browse portal to view dashboard x(assume I
don't have direct URL to dashboard x). But say the default dashboard is
enabled to y.Where am I landing in this scenario?
  You will land on default dashboard y and if you need to look at other
available dashboard you have to use the navigation to go back to the
dashboard list (Navigation will available based on the user permission) and
select the dashboard x for view.

2. I'm signing in to create a new dashboard(with all required permissions),
Where am I landing in this scenario?
   If you are using direct URL to load create dashboard page you will
land on create dashboard page if not you will land on the default dashboard.

@Dakshika - So having a default dashboard is not needed as i understand.
Having a feature to redirect user to last edited dashboard is good. Because
this will also can apply in the scenario where user only have one dashboard
and that always be the last edited one.

But what if user wants to see a dashboard when loading the portal (without
entering the specific dashboard URL) as a default dashboard whether he
maintain a multiple dashboards or not We cannot force him to view the
list of dashboard instead of the predefined default dashboard. If user
wants to see the list of dashboards as landing he can remove the default
dashboard using settings..

Is there a validity in this scenario to have a default dashboard ??

Thank you
-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Python data publisher in PPAAS

2015-11-10 Thread Lakmal Warusawithana
On Tuesday, November 10, 2015, Srinath Perera  wrote:

> Can you clarify light weight? Does it use less memory or faster or both?
>
>
Definitely fast boot up. I have checked both Java and Python based
docker cartridges, Python one activated very fast. I have not checked the
memory footprint but it should be less.

Otherthan those we wanted to have very flexible plugin architecture, Python
based one worked us perfectly.


> --Srinath
>
>
>
> On Tue, Nov 10, 2015 at 7:17 PM, Lakmal Warusawithana  > wrote:
>
>>
>>
>> On Tue, Nov 10, 2015 at 5:39 PM, Anuruddha Premalal > > wrote:
>>
>>> Hi Stratos Team,
>>>
>>>
>> Stratos questions should goto Stratos dev
>>
>>
>>> We are deciding on whether to go with a python agent or a java agent for
>>> the log analysis solution.  And came across stratos CA as a reference.
>>>
>>> What were the reasons behind introducing a python cartridge agent? Are
>>> you seeing any gain/loss by using python at the agent side?.
>>>
>>>
>> Stratos wanted to have generic cartridge agent for all type of
>> cartridges, like PHP, Ruby, JAVA etc.  For non-java cartridges running java
>> cartridge agent is adding lot of overhead. Compared to java cartridge
>> agent, python agent is very light waited.
>>
>>
>>>
>>> On Tue, Nov 10, 2015 at 1:59 PM, Chamila De Alwis >> > wrote:
>>>

 On Tue, Nov 10, 2015 at 1:44 PM, Malith Dhanushka > wrote:

> Thanks Chamila. Was there any benchmark for python agent against java
> agent for performance and resource utilization?
>

 AFAIR there was no such test to compare the two implementations.


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



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


>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94717213122
>>> Web site : www.anuruddha.org
>>>
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Director - Cloud Architecture; WSO2 Inc.
>> Vise President - Apache Stratos
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>
>
> --
> 
> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
> Site: http://people.apache.org/~hemapani/
> Photos: http://www.flickr.com/photos/hemapani/
> Phone: 0772360902
>


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


Re: [Dev] Escaping "/" in a search query in DAS

2015-11-10 Thread Gimantha Bandara
Hi all,

The both approaches Rukshan has mentioned, should work.

Thanks,

On Wed, Nov 11, 2015 at 12:02 AM, Niranda Perera  wrote:

> copying @gimantha
>
> On Wed, Nov 11, 2015 at 10:29 AM, Rukshan Premathunga 
> wrote:
>
>> Hi Kalpa,
>>
>> try this, worked for me,
>>
>> you need to escape 'escape character' as well.
>> {
>>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>>  "query":"request_uri:\\/student\\/883343913V",
>>  "start":0,
>>  "count":100
>> }
>>
>> or try with exact searching,
>>
>> {
>>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>>  "query":"request_uri:\"/student/883343913V\"",
>>  "start":0,
>>  "count":100
>> }
>>
>> Thanks and Regards.
>>
>>
>> On Wed, Nov 11, 2015 at 9:55 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi DAS team,
>>>
>>> I am trying a search query via the REST API [1] in DAS 3.0.0 and [2] is
>>> my payload of the POST request. When I try to invoke with [3]
>>> (request-count.json has the payload) I get the following as the response,
>>>
>>> {"status":"failed","message":"Error in index search: Invalid query, a
>>> term must have a field"}
>>>
>>> It works fine if I change the query element as in [4].
>>>
>>> I found that "/" is a special character in lucene [5] and tried with
>>> [6], still I get the same error response.
>>>
>>> Any idea of what is missing here?
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API
>>>
>>> [2]
>>> {
>>>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>>>  "query":"request_uri:/student/883343913V",
>>>  "start":0,
>>>  "count":100
>>> }
>>>
>>> [3] curl -k -H "Content-Type: application/json" -H "Authorization: Basic
>>> YWRtaW46YWRtaW4=" -d...@request-count.json
>>> https://localhost:9443/analytics/search
>>>
>>> [4] "query":"service_method:getStudent",
>>>
>>> [5]
>>> https://lucene.apache.org/core/5_2_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters
>>>
>>> [6] "query":"request_uri:\/student\/883343913V",
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>



-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MSS Getting Started sample link not working

2015-11-10 Thread Aruna Karunarathna
Does the sample hello-service changed to helloworld?

Getting Started Sample link is not working in [1].

[1]. https://github.com/wso2/product-mss/blob/master/README.md

-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Escaping "/" in a search query in DAS

2015-11-10 Thread Kalpa Welivitigoda
It worked!, Thanks Rukshan and Gimantha.

On Wed, Nov 11, 2015 at 12:11 PM, Gimantha Bandara 
wrote:

> Hi all,
>
> The both approaches Rukshan has mentioned, should work.
>
> Thanks,
>
> On Wed, Nov 11, 2015 at 12:02 AM, Niranda Perera  wrote:
>
>> copying @gimantha
>>
>> On Wed, Nov 11, 2015 at 10:29 AM, Rukshan Premathunga 
>> wrote:
>>
>>> Hi Kalpa,
>>>
>>> try this, worked for me,
>>>
>>> you need to escape 'escape character' as well.
>>> {
>>>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>>>  "query":"request_uri:\\/student\\/883343913V",
>>>  "start":0,
>>>  "count":100
>>> }
>>>
>>> or try with exact searching,
>>>
>>> {
>>>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>>>  "query":"request_uri:\"/student/883343913V\"",
>>>  "start":0,
>>>  "count":100
>>> }
>>>
>>> Thanks and Regards.
>>>
>>>
>>> On Wed, Nov 11, 2015 at 9:55 AM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Hi DAS team,

 I am trying a search query via the REST API [1] in DAS 3.0.0 and [2] is
 my payload of the POST request. When I try to invoke with [3]
 (request-count.json has the payload) I get the following as the response,

 {"status":"failed","message":"Error in index search: Invalid query, a
 term must have a field"}

 It works fine if I change the query element as in [4].

 I found that "/" is a special character in lucene [5] and tried with
 [6], still I get the same error response.

 Any idea of what is missing here?


 [1]
 https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API

 [2]
 {
  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
  "query":"request_uri:/student/883343913V",
  "start":0,
  "count":100
 }

 [3] curl -k -H "Content-Type: application/json" -H "Authorization:
 Basic YWRtaW46YWRtaW4=" -d...@request-count.json
 https://localhost:9443/analytics/search

 [4] "query":"service_method:getStudent",

 [5]
 https://lucene.apache.org/core/5_2_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters

 [6] "query":"request_uri:\/student\/883343913V",

 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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


>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>



-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSS Getting Started sample link not working

2015-11-10 Thread Afkham Azeez
Thanks. Fixed the broken links.

On Tue, Nov 10, 2015 at 10:41 PM, Aruna Karunarathna  wrote:

> Does the sample hello-service changed to helloworld?
>
> Getting Started Sample link is not working in [1].
>
> [1]. https://github.com/wso2/product-mss/blob/master/README.md
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] Warning/error while starting up APIM 1.10.x

2015-11-10 Thread Malintha Adikari
Hi,

I am getting following warning while server starting. What is the reason
for this ?

TID: [-1234] [] [2015-11-11 06:49:10,065]  WARN
{org.apache.synapse.commons.util.MiscellaneousUtil} -  Error loading
properties from a file at from the System defined location: /mnt/
192.168.57.131/gateway/wso2am-1.10.0-SNAPSHOT/repository/conf/synapse-handlers.xml
{org.apache.synapse.commons.util.MiscellaneousUtil}

Regards,
Malintha


-- 
*Malintha Adikari*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
Page:   http://about.me/malintha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-10 Thread Pubudu Gunatilaka
Hi,

Restarting the cartridge agent will not work and it will halt at the
instance initialization. If the application went from Active to  Deploy
state, then most probably faulty member has detected and a new docker
instance has spawned.

Can you attach the agent log in one of the docker containers?

Thank you!

On Tue, Nov 10, 2015 at 5:24 PM, Anuruddha Premalal 
wrote:

> Hi Roshan,
>
> Can you check whether your teant is subscribed to the cartridge? (you
> could use stratos rest api).
>
> Try with a new tenant. This might probably be due to a subscription issue.
>
> On Tue, Nov 10, 2015 at 5:15 PM, Roshan Deniyage  wrote:
>
>> Hi All,
>> I'm working with new appfactory dev setup with kubenetes and docker.
>> In appfactory side the setup works fine and when app is created it
>> successfully get commit to s2git (git server which cartridge agent get
>> artifact from).
>>
>> But, I'm facing an issue getting the artifact deployed to the cartridge.
>> The trouble shooting steps are as follows,
>>
>> * After the dev setup is completed I restarted mq, activemq, stratos, 3
>> greg servers, jenkins and appfactory in the given order.
>> * Then executed the "executor.sh" script which is inside the ppass to
>> subscribe to stratos since the setup is not executing it successfully.
>> * Then 3 applications in the stratos for dev, test and prod env, show the
>> applications are in "deployed" state but never becomes "active".
>> * Hence, I logged into 3 docker instances and restated the wso2app
>> servers. (cartridge)
>> * Then, 3 applications became active.
>> * But, once I create a new application, it goes upto s2git but not
>> deploying in the cartridge.
>> * Then, I restarted the cartridge agents in 3 docker instance but it
>> cause to become 3 stratos applications to "deployed" state from "active"
>> stage.
>> * The agent logs doesn't show any error messages.
>>
>> I have no clue what's going on. If someone has any idea how to find the
>> root cause, that  would be great.
>>
>>
>> Thanks,
>> Roshan Deniyage
>> Associate Technical Lead
>> WSO2, Inc: http://wso2.com
>>
>> Mobile:  +94 777636406 / +1 408 667 6254
>> Twitter:  *https://twitter.com/roshku *
>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94717213122
> Web site : www.anuruddha.org
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774079049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-10 Thread Amalka Subasinghe
I'm also getting similar issues these days. I think resources are not
enough in the openstack instance

On Tue, Nov 10, 2015 at 5:44 PM, Pubudu Gunatilaka  wrote:

> Hi,
>
> Restarting the cartridge agent will not work and it will halt at the
> instance initialization. If the application went from Active to  Deploy
> state, then most probably faulty member has detected and a new docker
> instance has spawned.
>
> Can you attach the agent log in one of the docker containers?
>
> Thank you!
>
> On Tue, Nov 10, 2015 at 5:24 PM, Anuruddha Premalal 
> wrote:
>
>> Hi Roshan,
>>
>> Can you check whether your teant is subscribed to the cartridge? (you
>> could use stratos rest api).
>>
>> Try with a new tenant. This might probably be due to a subscription issue.
>>
>> On Tue, Nov 10, 2015 at 5:15 PM, Roshan Deniyage 
>> wrote:
>>
>>> Hi All,
>>> I'm working with new appfactory dev setup with kubenetes and docker.
>>> In appfactory side the setup works fine and when app is created it
>>> successfully get commit to s2git (git server which cartridge agent get
>>> artifact from).
>>>
>>> But, I'm facing an issue getting the artifact deployed to the cartridge.
>>> The trouble shooting steps are as follows,
>>>
>>> * After the dev setup is completed I restarted mq, activemq, stratos, 3
>>> greg servers, jenkins and appfactory in the given order.
>>> * Then executed the "executor.sh" script which is inside the ppass to
>>> subscribe to stratos since the setup is not executing it successfully.
>>> * Then 3 applications in the stratos for dev, test and prod env, show
>>> the applications are in "deployed" state but never becomes "active".
>>> * Hence, I logged into 3 docker instances and restated the wso2app
>>> servers. (cartridge)
>>> * Then, 3 applications became active.
>>> * But, once I create a new application, it goes upto s2git but not
>>> deploying in the cartridge.
>>> * Then, I restarted the cartridge agents in 3 docker instance but it
>>> cause to become 3 stratos applications to "deployed" state from "active"
>>> stage.
>>> * The agent logs doesn't show any error messages.
>>>
>>> I have no clue what's going on. If someone has any idea how to find the
>>> root cause, that  would be great.
>>>
>>>
>>> Thanks,
>>> Roshan Deniyage
>>> Associate Technical Lead
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile:  +94 777636406 / +1 408 667 6254
>>> Twitter:  *https://twitter.com/roshku *
>>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94717213122
>> Web site : www.anuruddha.org
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774079049 <%2B94772207163>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Size reduction for MSS

2015-11-10 Thread Afkham Azeez
We need to look into this, Manu can you send a PR?

Thanks
Azeez

On Tue, Nov 10, 2015 at 1:13 AM, Manuranga Perera  wrote:

> The whole mss product is 21M and guava jar is 1.8MiB. So around 10% is
> wasted on one jar. It might be worth looking into
> https://github.com/google/guava/wiki/UsingProGuardWithGuava
>
> Maybe we can use this for general size reduction as well?
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] [DEV] Integration tests run before deploying web app

2015-11-10 Thread Geesara Prathap
Hi Amalka,

Actually that is what I asked. What sort of logic should be invoked through
a @Before method? I can periodically send requests to service endpoint
check whether service is available or not. But what would be the proper way
to achieve this.

Thanks,

On Tue, Nov 10, 2015 at 6:24 PM, Amalka Subasinghe  wrote:

> You can implement some waiting logic to check whether the web app deployed
> in the server and invoke it in @BeforeClass method
>
>
> On Mon, Nov 9, 2015 at 10:25 PM, Geesara Prathap  wrote:
>
>> Hi All,
>>
>> I wrote some integration test cases to test a web service. Here is my the
>> build section of maven configuration looks like.
>>
>> * *
>>
>> **
>>
>> **
>>
>> *maven-war-plugin*
>>
>> *2.3*
>>
>> **
>>
>> *src/main/webapp/WEB-INF/web.xml*
>>
>> *${name}*
>>
>> *
>> /home/geesara/wso2/products/wso2as-5.3.0/repository/deployment/server/webapps*
>>
>> **
>>
>> **
>>
>> **
>>
>> **
>>
>>
>> **
>>
>> *maven-compiler-plugin*
>>
>> *3.1*
>>
>> **
>>
>> *1.7*
>>
>> *1.7*
>>
>> **
>>
>> **
>>
>>
>> **
>>
>> *org.apache.maven.plugins*
>>
>> *maven-failsafe-plugin*
>>
>> *2.12.4*
>>
>> **
>>
>> **
>>
>> *integration-test*
>>
>> **
>>
>> *integration-test*
>>
>> *verify*
>>
>> **
>>
>> **
>>
>> **
>>
>> **
>>
>> **
>>
>> **
>>
>> As the $subject, How should we wait until web app has been deployed on
>> the server to execute integration test cases.
>>
>> Thanks,
>>
>>
>> --
>> Geesara Prathap Kulathunga
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +940772684174
>>
>
>
>
> --
> Amalka Subasinghe
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>



-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
phone: +940772684174
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] ESB 4.10 - Revamping mediation statistics and message tracing

2015-11-10 Thread Jagath Sisirakumara Ariyarathne
Hi,

I think it is better to have both aggregated and per node views. We can
send raw data with the node ID and aggregation can be done at DAS level.

To identity ESB node uniquely, can we use "SynapseConfig.ServerName" in
axis2.xml?

Thanks.

On Wed, Nov 11, 2015 at 9:59 AM, Kasun Indrasiri  wrote:

> Isn't Stats and tracing are two independent tasks?
>
>
> On Wed, Nov 11, 2015 at 9:55 AM, Viraj Senevirathne 
> wrote:
>
>> Hi All,
>>
>> In a clustered environment should we collect statistics of worker nodes
>> separately or should we represent them together as a one cluster?
>>
>> We probably need both. Once aggregated view and per node view for each
> worker node. WDYT?
>
>>
>>
>> On Wed, Nov 11, 2015 at 9:53 AM, Jagath Sisirakumara Ariyarathne <
>> jaga...@wso2.com> wrote:
>>
>>> Hi Inosh,
>>>
>>> Will there be two UI configuration sections for above? Both mediation
>>> stats and message tracing require same set of configurations like, DAS
>>> receiver URL and user credentials. Wouldn't it be better if we let the user
>>> to configure this information in single place?
>>>
>>> Yes, we can use same window for those. However, I think we will require
>>> two separate configurations for stat and tracing.
>>>
>>> WDYT?
>>>
>>> On Wed, Nov 11, 2015 at 12:06 AM, Inosh Goonewardena 
>>> wrote:
>>>
 Hi Viraj,

 On Mon, Nov 9, 2015 at 3:45 PM, Viraj Senevirathne 
 wrote:

> Hi All,
>
> We are planning to removing following features as we are introducing
> new improved features that enhance and extend the existing functionality.
>
> ESB 4.10.0 release will not have following sections in the management
> console UI.
>
> *Monitoring Section*
>
>- Mediation Statistics
>- SOAP Tracer
>- Mediation Tracer
>- Message Flows
>
> *Configure Section *
>
>- Mediation Data Publishing
>- BAM Server Profile
>
>
> ESB 4.10.0 release will contain following additions to management
> console.
>
> *Configure Section*
>
>- Mediation Statistics Publishing Configuration
>- Tracing Data Publishing Configuration
>
> Will there be two UI configuration sections for above? Both mediation
 stats and message tracing require same set of configurations like, DAS
 receiver URL and user credentials. Wouldn't it be better if we let the user
 to configure this information in single place?

>
>-
>
> ESB will publish tracing and statistic data to the DAS and users can
> monitor mediation statistics and message tracing results from DAS 
> dashboard.
>
> Thank you,
>
> On Mon, Nov 9, 2015 at 3:15 PM, Kasun Indrasiri 
> wrote:
>
>> Hi,
>>
>> As part of the ongoing efforts for revamping mediation statistics and
>> message tracing in ESB, we have to get rid of most of the existing UIs 
>> and
>> configurations in the ESB management console.
>>
>> Jagath/Viraj : Can you please list down the areas that we gonna
>> remove from ESB 4.10 and the new additions to support tracing and stats.
>>
>> Thanks,
>> Kasun.
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> Viraj Senevirathne
> Software Engineer; WSO2, Inc.
>
> Mobile : +94 71 958 0269
> Email : vir...@wso2.com
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


 --
 Thanks & Regards,

 Inosh Goonewardena
 Associate Technical Lead- WSO2 Inc.
 Mobile: +94779966317

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>> Jagath Ariyarathne
>>> Technical Lead
>>> WSO2 Inc.  http://wso2.com/
>>> Email: jaga...@wso2.com
>>> Mob  : +94 77 386 7048
>>>
>>>
>>
>>
>> --
>> Viraj Senevirathne
>> Software Engineer; WSO2, Inc.
>>
>> Mobile : +94 71 958 0269
>> Email : vir...@wso2.com
>>
>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Chamila Wijayarathna
Hi Shakila,

Can you please share a link of the source code of Tiqr authenticator you
are working with.

Thanks.

On Wed, Nov 11, 2015 at 10:08 AM, Rasika Perera  wrote:

> Hi Shakila,
>
> First error is more like deserialization issue. The
> "InvalidClassException" usually occurs when the receiver has loaded a class
> for the object that has a different serialVersionUID than that of the
> corresponding sender's class.
>
> Have you defined explicitly "serialVersionUID" in your serializable class
> "TiqrAuthenticator"? If you do not explicitly declare this, serialization
> runtime will calculate this based on the various aspect of the class.
> According to the java doc[1], recommended way is to explicitly
> declare serialVersionUID values, since the default serialVersionUID
> computation is highly sensitive to class details that may vary depending on
> compiler implementations, and can thus result in unexpected
> InvalidClassExceptions during deserialization.
>
> [1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
>
> Thanks,
> Rasika
>
> On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi all,
>>
>> I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
>> enable another feature with association I need to modify the authenticator
>> for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
>> (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
>> given local path in pom. Now I'm getting two errors. I mentioned them here.
>> Can anyone help me to resolve this?
>>
>> [1] This is caused while retrieving previous session data.
>>
>> in FrameworkUtils:
>> SessionContextCacheEntry cacheEntryObj =
>> SessionContextCache.getInstance().getValueFromCache(cacheKey);
>> returns null
>>
>> I got this stack-trace:
>> [2015-11-11 07:38:22,258] ERROR
>> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
>> -  Error while retrieving session data
>>
>> java.io.InvalidClassException:
>> org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
>> incompatible: stream classdesc serialVersionUID = 1179165995021182755,
>> local class serialVersionUID = 7666485910146971411
>>
>> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)
>>
>> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
>>
>> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
>>
>> at java.util.HashMap.readObject(HashMap.java:1155)
>>
>> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:601)
>>
>> at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
>>
>> at
>> org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore.getBlobObject(SessionDataStore.java:428)
>>
>> at
>> 

[Dev] [PPaaS] Unable to build Released Docker base image Pack

2015-11-10 Thread Reka Thirunavukkarasu
Hi

Due to the docker base image pack[1] is referred to relative path from the
product distribution for such as configurator and etc, we can't build and
get the docker base image.

Can we fix this for 4.1.2 cartridges release? Also, it would be better, if
the docker image could be built even without phython agent as in
standalone, python agent is not needed. So, it is an additional step to
download python agent and locate it in the docker image for a standalone
docker image user. WDYT?

[1]
http://product-dist.wso2.com/downloads/private-paas/4.1.0/cartridges/common/wso2ppaas-cartridges-docker-base-image-4.1.1.zip

Thanks,
Reka

-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Escaping "/" in a search query in DAS

2015-11-10 Thread Rukshan Premathunga
Hi Kalpa,

try this, worked for me,

you need to escape 'escape character' as well.
{
 "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
 "query":"request_uri:\\/student\\/883343913V",
 "start":0,
 "count":100
}

or try with exact searching,

{
 "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
 "query":"request_uri:\"/student/883343913V\"",
 "start":0,
 "count":100
}

Thanks and Regards.


On Wed, Nov 11, 2015 at 9:55 AM, Kalpa Welivitigoda  wrote:

> Hi DAS team,
>
> I am trying a search query via the REST API [1] in DAS 3.0.0 and [2] is my
> payload of the POST request. When I try to invoke with [3]
> (request-count.json has the payload) I get the following as the response,
>
> {"status":"failed","message":"Error in index search: Invalid query, a term
> must have a field"}
>
> It works fine if I change the query element as in [4].
>
> I found that "/" is a special character in lucene [5] and tried with [6],
> still I get the same error response.
>
> Any idea of what is missing here?
>
>
> [1]
> https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API
>
> [2]
> {
>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>  "query":"request_uri:/student/883343913V",
>  "start":0,
>  "count":100
> }
>
> [3] curl -k -H "Content-Type: application/json" -H "Authorization: Basic
> YWRtaW46YWRtaW4=" -d...@request-count.json
> https://localhost:9443/analytics/search
>
> [4] "query":"service_method:getStudent",
>
> [5]
> https://lucene.apache.org/core/5_2_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters
>
> [6] "query":"request_uri:\/student\/883343913V",
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Escaping "/" in a search query in DAS

2015-11-10 Thread Niranda Perera
copying @gimantha

On Wed, Nov 11, 2015 at 10:29 AM, Rukshan Premathunga 
wrote:

> Hi Kalpa,
>
> try this, worked for me,
>
> you need to escape 'escape character' as well.
> {
>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>  "query":"request_uri:\\/student\\/883343913V",
>  "start":0,
>  "count":100
> }
>
> or try with exact searching,
>
> {
>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>  "query":"request_uri:\"/student/883343913V\"",
>  "start":0,
>  "count":100
> }
>
> Thanks and Regards.
>
>
> On Wed, Nov 11, 2015 at 9:55 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi DAS team,
>>
>> I am trying a search query via the REST API [1] in DAS 3.0.0 and [2] is
>> my payload of the POST request. When I try to invoke with [3]
>> (request-count.json has the payload) I get the following as the response,
>>
>> {"status":"failed","message":"Error in index search: Invalid query, a
>> term must have a field"}
>>
>> It works fine if I change the query element as in [4].
>>
>> I found that "/" is a special character in lucene [5] and tried with [6],
>> still I get the same error response.
>>
>> Any idea of what is missing here?
>>
>>
>> [1]
>> https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API
>>
>> [2]
>> {
>>  "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
>>  "query":"request_uri:/student/883343913V",
>>  "start":0,
>>  "count":100
>> }
>>
>> [3] curl -k -H "Content-Type: application/json" -H "Authorization: Basic
>> YWRtaW46YWRtaW4=" -d...@request-count.json
>> https://localhost:9443/analytics/search
>>
>> [4] "query":"service_method:getStudent",
>>
>> [5]
>> https://lucene.apache.org/core/5_2_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters
>>
>> [6] "query":"request_uri:\/student\/883343913V",
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] setting up cluster without using -Dprofile - with puppet scripts

2015-11-10 Thread Suhan Dharmasuriya
Hi,

Currently we are running the APIM cluster without specifying any profiles
[1].
i.e. when templating wso2server.sh file, -Dprofile parameter values
(gateway-worker, gateway-manager, api-key-manager, api-publisher, api-store)
are not given.

However the required store and publisher jaggeryapps are added/removed by
puppet scripts when starting each profile instance.
As for an example during the initialization of gateway instance, store and
publisher apps are removed as follows.

exec { "removing_publisher_app_for_gateway":
path=>
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
command => "rm -rf
$carbon_home/repository/deployment/server/jaggeryapps/publisher",
require => Apimanager::Deploy["${deployment_code}_${amtype}"],
}

exec { "removing_store_app_for_gateway":
path=>
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
command => "rm -rf
$carbon_home/repository/deployment/server/jaggeryapps/store",
require => Apimanager::Deploy["${deployment_code}_${amtype}"],
}

This is performed accordingly in each profile instance of the cluster.
i.e. in store instance publisher app is removed, in publisher instance
store app is removed,
in keymanager instance both apps are removed.

WDYT about this approach?

We had to go to this approach since we started to get some
NoClassDefFoundError errors [2]
when automating cluster based tests.

[1] https://docs.wso2.com/display/AM191/Product+Profiles
[2] [Dev] OpenIDConnect - Error while accessing UserInfo Endpoint

Thanks,
Suhan



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Private PaaS Cartridges v4.1.2 released

2015-11-10 Thread Gayan Gunarathne
Hi All,

The WSO2 Private PaaS community is pleased to announce the release of the
WSO2 Private PaaS Cartridges 4.1.2. This release includes cartridges for
the following WSO2 products.

 - WSO2 API Manager 1.9.1 cartridge
 - WSO2 Enterprise Service Bus 4.8.1 cartridge
 - WSO2 Enterprise Service Bus 4.9.0 cartridge
 - WSO2 Identity Server 5.0.0 cartridge
 - WSO2 Application Server 5.2.1 cartridge
 - WSO2 Application Server 5.3.0 cartridge
 - WSO2 Govenence Registry 5.0.0 cartridge
 - WSO2 Business Process Server 3.5.0 cartridge
 - WSO2 Business Rules Server 2.1.0 cartridge
 - WSO2 Governance Registry 5.0.0 cartridge
 - WSO2 Governance Registry 5.1.0 cartridge
 - WSO2 Data Services Server 3.2.2 cartridge
 - WSO2 Message Broker 3.0.0 cartridge


Following are the newly added cartridges for this release
 - WSO2 Enterprise Service Bus 4.9.0 cartridge
 - WSO2 Application Server 5.3.0 cartridge
 - WSO2 Governance Registry  5.1.0 cartridge


Please note that above cartridges and Docker files are compatible with WSO2
Private PaaS 4.1.0 or higher releases.

Your feedback is most welcome. The distributions are available at [1]. Any
issues can be reported in [2].


[1]
https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-cartridges-4.1.2/
[2] https://wso2.org/jira/browse/PPC

Thanks,
WSO2 Private PaaS Team


-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Unable to build Released Docker base image Pack

2015-11-10 Thread Gayan Gunarathne
Hi Reka,

On Wed, Nov 11, 2015 at 10:28 AM, Reka Thirunavukkarasu 
wrote:

> Hi
>
> Due to the docker base image pack[1] is referred to relative path from the
> product distribution for such as configurator and etc, we can't build and
> get the docker base image.
>


> Can we fix this for 4.1.2 cartridges release? Also, it would be better, if
> the docker image could be built even without phython agent as in
> standalone, python agent is not needed. So, it is an additional step to
> download python agent and locate it in the docker image for a standalone
> docker image user. WDYT?
>
> [1]
> http://product-dist.wso2.com/downloads/private-paas/4.1.0/cartridges/common/wso2ppaas-cartridges-docker-base-image-4.1.1.zip
>

In 4.1.2 , user need to put the configurator in the packages folder. If
user needs to build it from the already build one from the same repo, he
needs to pass additional input parameter -b.[1]

[1]
https://github.com/wso2/private-paas-cartridges/tree/master/common/docker/base-image

Thanks,
Gayan


>
>
> Thanks,
> Reka
>
> --
> Reka Thirunavukkarasu
> Senior Software Engineer,
> WSO2, Inc.:http://wso2.com,
> Mobile: +94776442007
>
>
>


-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Chamila Wijayarathna
Hi Shakila,

It seems like you are using the same database you used with IS 5.0.0, after
moving to 5.1.0 beta.

If you are using the same database as your previous setup, those
scripts/tables may not compatible with what are expected in 5.1.0. You may
have to migrate or otherwise you can delete the previous database and start
IS again with -Dsetup. If 2nd option is possible, it would be the easiest.

The reason for the error is as I understand, we have fixed [1] in IS 5.1.0
and there we have changed serielVersionUID s of some objects which are
saved to databases as blobs by serializing. So when you try to retrieve old
entry which written to database in prior IS version would be serialized
with a 1 serialversionUID and when retrieving it from database after
migration, it try to deserialize, but version ID's does not match. So due
to that it fails to deserialize and this error occurs.

Thanks

[1]. https://wso2.org/jira/browse/IDENTITY-3621

On Wed, Nov 11, 2015 at 10:27 AM, Chamila Wijayarathna 
wrote:

> Hi Shakila,
>
> Can you please share a link of the source code of Tiqr authenticator you
> are working with.
>
> Thanks.
>
> On Wed, Nov 11, 2015 at 10:08 AM, Rasika Perera  wrote:
>
>> Hi Shakila,
>>
>> First error is more like deserialization issue. The
>> "InvalidClassException" usually occurs when the receiver has loaded a class
>> for the object that has a different serialVersionUID than that of the
>> corresponding sender's class.
>>
>> Have you defined explicitly "serialVersionUID" in your serializable
>> class "TiqrAuthenticator"? If you do not explicitly declare this,
>> serialization runtime will calculate this based on the various aspect of
>> the class. According to the java doc[1], recommended way is to explicitly
>> declare serialVersionUID values, since the default serialVersionUID
>> computation is highly sensitive to class details that may vary depending on
>> compiler implementations, and can thus result in unexpected
>> InvalidClassExceptions during deserialization.
>>
>> [1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
>>
>> Thanks,
>> Rasika
>>
>> On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah > > wrote:
>>
>>> Hi all,
>>>
>>> I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
>>> enable another feature with association I need to modify the authenticator
>>> for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
>>> (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
>>> given local path in pom. Now I'm getting two errors. I mentioned them here.
>>> Can anyone help me to resolve this?
>>>
>>> [1] This is caused while retrieving previous session data.
>>>
>>> in FrameworkUtils:
>>> SessionContextCacheEntry cacheEntryObj =
>>> SessionContextCache.getInstance().getValueFromCache(cacheKey);
>>> returns null
>>>
>>> I got this stack-trace:
>>> [2015-11-11 07:38:22,258] ERROR
>>> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
>>> -  Error while retrieving session data
>>>
>>> java.io.InvalidClassException:
>>> org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
>>> incompatible: stream classdesc serialVersionUID = 1179165995021182755,
>>> local class serialVersionUID = 7666485910146971411
>>>
>>> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)
>>>
>>> at
>>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
>>>
>>> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
>>>
>>> at
>>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
>>>
>>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>>
>>> at
>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>>
>>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>>
>>> at
>>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>>
>>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>>
>>> at
>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>>
>>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>>
>>> at
>>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>>
>>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>>
>>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
>>>
>>> at java.util.HashMap.readObject(HashMap.java:1155)
>>>
>>> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>>
>>> at
>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
>>>
>>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
>>>
>>> at
>>> 

Re: [Dev] [APIM] setting up cluster without using -Dprofile - with puppet scripts

2015-11-10 Thread Nuwan Dias
IMO its better to start with profiles. Removing the unnecessary webapps
from the relevant profiles would still have to be done since profiles do
not take care of their removal.

When I went through the mail thread at [2] I got the impression that you
got it resolved. And I didn't see anything related to profiles in there.

Thanks,
NuwanD.

On Wed, Nov 11, 2015 at 10:33 AM, Suhan Dharmasuriya 
wrote:

> Hi,
>
> Currently we are running the APIM cluster without specifying any profiles
> [1].
> i.e. when templating wso2server.sh file, -Dprofile parameter values
> (gateway-worker, gateway-manager, api-key-manager, api-publisher,
> api-store) are not given.
>
> However the required store and publisher jaggeryapps are added/removed by
> puppet scripts when starting each profile instance.
> As for an example during the initialization of gateway instance, store and
> publisher apps are removed as follows.
>
> exec { "removing_publisher_app_for_gateway":
> path=>
> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
> command => "rm -rf
> $carbon_home/repository/deployment/server/jaggeryapps/publisher",
> require => Apimanager::Deploy["${deployment_code}_${amtype}"],
> }
>
> exec { "removing_store_app_for_gateway":
> path=>
> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
> command => "rm -rf
> $carbon_home/repository/deployment/server/jaggeryapps/store",
> require => Apimanager::Deploy["${deployment_code}_${amtype}"],
> }
>
> This is performed accordingly in each profile instance of the cluster.
> i.e. in store instance publisher app is removed, in publisher instance
> store app is removed,
> in keymanager instance both apps are removed.
>
> WDYT about this approach?
>
> We had to go to this approach since we started to get some
> NoClassDefFoundError errors [2]
> when automating cluster based tests.
>
> [1] https://docs.wso2.com/display/AM191/Product+Profiles
> [2] [Dev] OpenIDConnect - Error while accessing UserInfo Endpoint
>
> Thanks,
> Suhan
>
>
>
> --
> Suhan Dharmasuriya
> Software Engineer - Test Automation
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Tel: +94 112 145345
> Mob: +94 779 869138
> Blog: http://suhan-opensource.blogspot.com/
>



-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] setting up cluster without using -Dprofile - with puppet scripts

2015-11-10 Thread Suhan Dharmasuriya
Hi Nuwan,

We will go ahead with profiles and puppet scripts will remove the
unnecessary webapps from relevant profiles.

For the moment it occurred the issue [2] was resolved but it didn't. We
were able to completely eliminate the issue
by removing profiles (which is not a recommended approach).

We will retest with profiles and get back to you.

Thank you for the quick reply.

Thanks,
Suhan


On Wed, Nov 11, 2015 at 10:50 AM, Nuwan Dias  wrote:

> IMO its better to start with profiles. Removing the unnecessary webapps
> from the relevant profiles would still have to be done since profiles do
> not take care of their removal.
>
> When I went through the mail thread at [2] I got the impression that you
> got it resolved. And I didn't see anything related to profiles in there.
>
> Thanks,
> NuwanD.
>
> On Wed, Nov 11, 2015 at 10:33 AM, Suhan Dharmasuriya 
> wrote:
>
>> Hi,
>>
>> Currently we are running the APIM cluster without specifying any profiles
>> [1].
>> i.e. when templating wso2server.sh file, -Dprofile parameter values
>> (gateway-worker, gateway-manager, api-key-manager, api-publisher,
>> api-store) are not given.
>>
>> However the required store and publisher jaggeryapps are added/removed by
>> puppet scripts when starting each profile instance.
>> As for an example during the initialization of gateway instance, store
>> and publisher apps are removed as follows.
>>
>> exec { "removing_publisher_app_for_gateway":
>> path=>
>> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
>> command => "rm -rf
>> $carbon_home/repository/deployment/server/jaggeryapps/publisher",
>> require => Apimanager::Deploy["${deployment_code}_${amtype}"],
>> }
>>
>> exec { "removing_store_app_for_gateway":
>> path=>
>> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
>> command => "rm -rf
>> $carbon_home/repository/deployment/server/jaggeryapps/store",
>> require => Apimanager::Deploy["${deployment_code}_${amtype}"],
>> }
>>
>> This is performed accordingly in each profile instance of the cluster.
>> i.e. in store instance publisher app is removed, in publisher instance
>> store app is removed,
>> in keymanager instance both apps are removed.
>>
>> WDYT about this approach?
>>
>> We had to go to this approach since we started to get some
>> NoClassDefFoundError errors [2]
>> when automating cluster based tests.
>>
>> [1] https://docs.wso2.com/display/AM191/Product+Profiles
>> [2] [Dev] OpenIDConnect - Error while accessing UserInfo Endpoint
>>
>> Thanks,
>> Suhan
>>
>>
>>
>> --
>> Suhan Dharmasuriya
>> Software Engineer - Test Automation
>>
>> *WSO2, Inc. *
>>
>> lean . enterprise . middleware
>> Tel: +94 112 145345
>> Mob: +94 779 869138
>> Blog: http://suhan-opensource.blogspot.com/
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Shakila Sivagnanarajah
Thanks Rasika & Chamila Wijayarathna,

Earlier I didn't specify the serialVersionUID. Now I set that as the
expected one (1179165995021182755L). It's working fine.

 @ Chamila Wijayarathna: Do I need to delete the database? If so, can you
give reference to do that?

Thanks

On Wed, Nov 11, 2015 at 10:50 AM, Chamila Wijayarathna 
wrote:

> Hi Shakila,
>
> It seems like you are using the same database you used with IS 5.0.0,
> after moving to 5.1.0 beta.
>
> If you are using the same database as your previous setup, those
> scripts/tables may not compatible with what are expected in 5.1.0. You may
> have to migrate or otherwise you can delete the previous database and start
> IS again with -Dsetup. If 2nd option is possible, it would be the easiest.
>
> The reason for the error is as I understand, we have fixed [1] in IS 5.1.0
> and there we have changed serielVersionUID s of some objects which are
> saved to databases as blobs by serializing. So when you try to retrieve old
> entry which written to database in prior IS version would be serialized
> with a 1 serialversionUID and when retrieving it from database after
> migration, it try to deserialize, but version ID's does not match. So due
> to that it fails to deserialize and this error occurs.
>
> Thanks
>
> [1]. https://wso2.org/jira/browse/IDENTITY-3621
>
> On Wed, Nov 11, 2015 at 10:27 AM, Chamila Wijayarathna 
> wrote:
>
>> Hi Shakila,
>>
>> Can you please share a link of the source code of Tiqr authenticator you
>> are working with.
>>
>> Thanks.
>>
>> On Wed, Nov 11, 2015 at 10:08 AM, Rasika Perera  wrote:
>>
>>> Hi Shakila,
>>>
>>> First error is more like deserialization issue. The
>>> "InvalidClassException" usually occurs when the receiver has loaded a class
>>> for the object that has a different serialVersionUID than that of the
>>> corresponding sender's class.
>>>
>>> Have you defined explicitly "serialVersionUID" in your serializable
>>> class "TiqrAuthenticator"? If you do not explicitly declare this,
>>> serialization runtime will calculate this based on the various aspect of
>>> the class. According to the java doc[1], recommended way is to explicitly
>>> declare serialVersionUID values, since the default serialVersionUID
>>> computation is highly sensitive to class details that may vary depending on
>>> compiler implementations, and can thus result in unexpected
>>> InvalidClassExceptions during deserialization.
>>>
>>> [1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
>>>
>>> Thanks,
>>> Rasika
>>>
>>> On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi all,

 I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
 enable another feature with association I need to modify the authenticator
 for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
 (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
 given local path in pom. Now I'm getting two errors. I mentioned them here.
 Can anyone help me to resolve this?

 [1] This is caused while retrieving previous session data.

 in FrameworkUtils:
 SessionContextCacheEntry cacheEntryObj =
 SessionContextCache.getInstance().getValueFromCache(cacheKey);
 returns null

 I got this stack-trace:
 [2015-11-11 07:38:22,258] ERROR
 {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
 -  Error while retrieving session data

 java.io.InvalidClassException:
 org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
 incompatible: stream classdesc serialVersionUID = 1179165995021182755,
 local class serialVersionUID = 7666485910146971411

 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)

 at
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)

 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)

 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)

 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

 at
 java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)

 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)

 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)

 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

 at
 java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)

 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)

 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)

 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)

 at 

Re: [Dev] [DS] [Feature] Default Dashboard for dashboard server

2015-11-10 Thread Dakshika Jayathilaka
Hi All,

I'm not sure about the above user story. IMO if user create one dashboard
we can forward user to that dashboard. But if user maintaining multiple
dashboards we can't redirect user to default dashboard.

AFAIK there is a pattern of redirect user to last edited one, but not to
the default dashboard.

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Tue, Nov 10, 2015 at 6:59 PM, Udara Rathnayake  wrote:

> Hi Nipuna,
>
> Please consider following scenarios,
>
> 1. Let's assume I'm sign-in/browse portal to view dashboard x(assume I
> don't have direct URL to dashboard x). But say the default dashboard is
> enabled to y.Where am I landing in this scenario?
>
> 2. I'm signing in to create a new dashboard(with all required
> permissions), Where am I landing in this scenario?
>
> Regards,
> UdaraR
>
>
> On Tue, Nov 10, 2015 at 7:16 AM, Nipuna Chandradasa 
> wrote:
>
>> Hi All,
>>
>> In Dashboard Server (DS) as a new feature user will be able to define a
>> default dashboard which user will be directed to ( Dashboard View page )
>> when starting the portal. Making a dashboard default is not mandatory. So
>> there will be a scenario where there are no any default dashboard.
>>
>> Currently, in DS we direct users to the dashboard list which shows all
>> the available dashboards. But with this feature the plan is to direct the
>> user to the default dashboard if there is a default dashboard marked by
>> user.
>>
>> There are three scenarios we have to consider when we implementing this
>> feature.
>>
>> 1. As said earlier, if there is a default dashboard marked by user then
>> direct user to View page of that dashboard
>>
>> 2. When there is no default dashboard but there are other dashboards
>> available then direct user to dashboard list page.
>>
>> 3. When there are no any dashboard redirect user to Create Dashboard page.
>>
>> If user want to see the list of dashboards there will be a navigation
>> link available ( This we have to discuss). Default dashboard will be marked
>> using different color or with a red dot above the title to differentiate it
>> from other dashboards in the list.
>>
>> @Gokul.. Will this feature affect other products?
>>
>> @Dakshika.. is differentiating default dashboard with colors is a good
>> idea? or is there any other way? ...
>>
>> Appreciate any comments and suggestions...
>>
>> Thank you
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>
>
>
> --
> Regards,
> UdaraR
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Chamila Wijayarathna
Hi Shakila,

The proper way to do is migrating the database, but if you don't have any
useful data in the database deleting the database would be easier.

You can just drop the database, create a new database with same name and
the start server with './wso2server.sh -Dsetup'.

Thanks

On Wed, Nov 11, 2015 at 11:10 AM, Shakila Sivagnanarajah 
wrote:

> Thanks Rasika & Chamila Wijayarathna,
>
> Earlier I didn't specify the serialVersionUID. Now I set that as the
> expected one (1179165995021182755L). It's working fine.
>
>  @ Chamila Wijayarathna: Do I need to delete the database? If so, can you
> give reference to do that?
>
> Thanks
>
> On Wed, Nov 11, 2015 at 10:50 AM, Chamila Wijayarathna 
> wrote:
>
>> Hi Shakila,
>>
>> It seems like you are using the same database you used with IS 5.0.0,
>> after moving to 5.1.0 beta.
>>
>> If you are using the same database as your previous setup, those
>> scripts/tables may not compatible with what are expected in 5.1.0. You may
>> have to migrate or otherwise you can delete the previous database and start
>> IS again with -Dsetup. If 2nd option is possible, it would be the easiest.
>>
>> The reason for the error is as I understand, we have fixed [1] in IS
>> 5.1.0 and there we have changed serielVersionUID s of some objects which
>> are saved to databases as blobs by serializing. So when you try to retrieve
>> old entry which written to database in prior IS version would be serialized
>> with a 1 serialversionUID and when retrieving it from database after
>> migration, it try to deserialize, but version ID's does not match. So due
>> to that it fails to deserialize and this error occurs.
>>
>> Thanks
>>
>> [1]. https://wso2.org/jira/browse/IDENTITY-3621
>>
>> On Wed, Nov 11, 2015 at 10:27 AM, Chamila Wijayarathna 
>> wrote:
>>
>>> Hi Shakila,
>>>
>>> Can you please share a link of the source code of Tiqr authenticator
>>> you are working with.
>>>
>>> Thanks.
>>>
>>> On Wed, Nov 11, 2015 at 10:08 AM, Rasika Perera 
>>> wrote:
>>>
 Hi Shakila,

 First error is more like deserialization issue. The
 "InvalidClassException" usually occurs when the receiver has loaded a class
 for the object that has a different serialVersionUID than that of the
 corresponding sender's class.

 Have you defined explicitly "serialVersionUID" in your serializable
 class "TiqrAuthenticator"? If you do not explicitly declare this,
 serialization runtime will calculate this based on the various aspect of
 the class. According to the java doc[1], recommended way is to explicitly
 declare serialVersionUID values, since the default serialVersionUID
 computation is highly sensitive to class details that may vary depending on
 compiler implementations, and can thus result in unexpected
 InvalidClassExceptions during deserialization.

 [1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html

 Thanks,
 Rasika

 On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi all,
>
> I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
> enable another feature with association I need to modify the authenticator
> for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
> (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
> given local path in pom. Now I'm getting two errors. I mentioned them 
> here.
> Can anyone help me to resolve this?
>
> [1] This is caused while retrieving previous session data.
>
> in FrameworkUtils:
> SessionContextCacheEntry cacheEntryObj =
> SessionContextCache.getInstance().getValueFromCache(cacheKey);
> returns null
>
> I got this stack-trace:
> [2015-11-11 07:38:22,258] ERROR
> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
> -  Error while retrieving session data
>
> java.io.InvalidClassException:
> org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
> incompatible: stream classdesc serialVersionUID = 1179165995021182755,
> local class serialVersionUID = 7666485910146971411
>
> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)
>
> at
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
>
> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
>
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
>
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>
> at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>
> at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>
> at
> 

Re: [Dev] Python data publisher in PPAAS

2015-11-10 Thread Lakmal Warusawithana
On Tue, Nov 10, 2015 at 5:39 PM, Anuruddha Premalal 
wrote:

> Hi Stratos Team,
>
>
Stratos questions should goto Stratos dev


> We are deciding on whether to go with a python agent or a java agent for
> the log analysis solution.  And came across stratos CA as a reference.
>
> What were the reasons behind introducing a python cartridge agent? Are you
> seeing any gain/loss by using python at the agent side?.
>
>
Stratos wanted to have generic cartridge agent for all type of cartridges,
like PHP, Ruby, JAVA etc.  For non-java cartridges running java cartridge
agent is adding lot of overhead. Compared to java cartridge agent, python
agent is very light waited.


>
> On Tue, Nov 10, 2015 at 1:59 PM, Chamila De Alwis 
> wrote:
>
>>
>> On Tue, Nov 10, 2015 at 1:44 PM, Malith Dhanushka 
>> wrote:
>>
>>> Thanks Chamila. Was there any benchmark for python agent against java
>>> agent for performance and resource utilization?
>>>
>>
>> AFAIR there was no such test to compare the two implementations.
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94717213122
> Web site : www.anuruddha.org
>
>


-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Vise President - Apache Stratos
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] [Feature] Default Dashboard for dashboard server

2015-11-10 Thread Udara Rathnayake
Hi Nipuna,

Please consider following scenarios,

1. Let's assume I'm sign-in/browse portal to view dashboard x(assume I
don't have direct URL to dashboard x). But say the default dashboard is
enabled to y.Where am I landing in this scenario?

2. I'm signing in to create a new dashboard(with all required permissions),
Where am I landing in this scenario?

Regards,
UdaraR


On Tue, Nov 10, 2015 at 7:16 AM, Nipuna Chandradasa 
wrote:

> Hi All,
>
> In Dashboard Server (DS) as a new feature user will be able to define a
> default dashboard which user will be directed to ( Dashboard View page )
> when starting the portal. Making a dashboard default is not mandatory. So
> there will be a scenario where there are no any default dashboard.
>
> Currently, in DS we direct users to the dashboard list which shows all the
> available dashboards. But with this feature the plan is to direct the user
> to the default dashboard if there is a default dashboard marked by user.
>
> There are three scenarios we have to consider when we implementing this
> feature.
>
> 1. As said earlier, if there is a default dashboard marked by user then
> direct user to View page of that dashboard
>
> 2. When there is no default dashboard but there are other dashboards
> available then direct user to dashboard list page.
>
> 3. When there are no any dashboard redirect user to Create Dashboard page.
>
> If user want to see the list of dashboards there will be a navigation link
> available ( This we have to discuss). Default dashboard will be marked
> using different color or with a red dot above the title to differentiate it
> from other dashboards in the list.
>
> @Gokul.. Will this feature affect other products?
>
> @Dakshika.. is differentiating default dashboard with colors is a good
> idea? or is there any other way? ...
>
> Appreciate any comments and suggestions...
>
> Thank you
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>



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


Re: [Dev] [Architecture] ESB 4.10 - Revamping mediation statistics and message tracing

2015-11-10 Thread Jagath Sisirakumara Ariyarathne
Hi Inosh,

Will there be two UI configuration sections for above? Both mediation stats
and message tracing require same set of configurations like, DAS receiver
URL and user credentials. Wouldn't it be better if we let the user to
configure this information in single place?

Yes, we can use same window for those. However, I think we will require two
separate configurations for stat and tracing.

WDYT?

On Wed, Nov 11, 2015 at 12:06 AM, Inosh Goonewardena  wrote:

> Hi Viraj,
>
> On Mon, Nov 9, 2015 at 3:45 PM, Viraj Senevirathne 
> wrote:
>
>> Hi All,
>>
>> We are planning to removing following features as we are introducing new
>> improved features that enhance and extend the existing functionality.
>>
>> ESB 4.10.0 release will not have following sections in the management
>> console UI.
>>
>> *Monitoring Section*
>>
>>- Mediation Statistics
>>- SOAP Tracer
>>- Mediation Tracer
>>- Message Flows
>>
>> *Configure Section *
>>
>>- Mediation Data Publishing
>>- BAM Server Profile
>>
>>
>> ESB 4.10.0 release will contain following additions to management console.
>>
>> *Configure Section*
>>
>>- Mediation Statistics Publishing Configuration
>>- Tracing Data Publishing Configuration
>>
>> Will there be two UI configuration sections for above? Both mediation
> stats and message tracing require same set of configurations like, DAS
> receiver URL and user credentials. Wouldn't it be better if we let the user
> to configure this information in single place?
>
>>
>>-
>>
>> ESB will publish tracing and statistic data to the DAS and users can
>> monitor mediation statistics and message tracing results from DAS dashboard.
>>
>> Thank you,
>>
>> On Mon, Nov 9, 2015 at 3:15 PM, Kasun Indrasiri  wrote:
>>
>>> Hi,
>>>
>>> As part of the ongoing efforts for revamping mediation statistics and
>>> message tracing in ESB, we have to get rid of most of the existing UIs and
>>> configurations in the ESB management console.
>>>
>>> Jagath/Viraj : Can you please list down the areas that we gonna remove
>>> from ESB 4.10 and the new additions to support tracing and stats.
>>>
>>> Thanks,
>>> Kasun.
>>> --
>>> Kasun Indrasiri
>>> Software Architect
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> cell: +94 77 556 5206
>>> Blog : http://kasunpanorama.blogspot.com/
>>>
>>
>>
>>
>> --
>> Viraj Senevirathne
>> Software Engineer; WSO2, Inc.
>>
>> Mobile : +94 71 958 0269
>> Email : vir...@wso2.com
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Thanks & Regards,
>
> Inosh Goonewardena
> Associate Technical Lead- WSO2 Inc.
> Mobile: +94779966317
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] ESB 4.10 - Revamping mediation statistics and message tracing

2015-11-10 Thread Viraj Senevirathne
Hi All,

In a clustered environment should we collect statistics of worker nodes
separately or should we represent them together as a one cluster?



On Wed, Nov 11, 2015 at 9:53 AM, Jagath Sisirakumara Ariyarathne <
jaga...@wso2.com> wrote:

> Hi Inosh,
>
> Will there be two UI configuration sections for above? Both mediation
> stats and message tracing require same set of configurations like, DAS
> receiver URL and user credentials. Wouldn't it be better if we let the user
> to configure this information in single place?
>
> Yes, we can use same window for those. However, I think we will require
> two separate configurations for stat and tracing.
>
> WDYT?
>
> On Wed, Nov 11, 2015 at 12:06 AM, Inosh Goonewardena 
> wrote:
>
>> Hi Viraj,
>>
>> On Mon, Nov 9, 2015 at 3:45 PM, Viraj Senevirathne 
>> wrote:
>>
>>> Hi All,
>>>
>>> We are planning to removing following features as we are introducing new
>>> improved features that enhance and extend the existing functionality.
>>>
>>> ESB 4.10.0 release will not have following sections in the management
>>> console UI.
>>>
>>> *Monitoring Section*
>>>
>>>- Mediation Statistics
>>>- SOAP Tracer
>>>- Mediation Tracer
>>>- Message Flows
>>>
>>> *Configure Section *
>>>
>>>- Mediation Data Publishing
>>>- BAM Server Profile
>>>
>>>
>>> ESB 4.10.0 release will contain following additions to management
>>> console.
>>>
>>> *Configure Section*
>>>
>>>- Mediation Statistics Publishing Configuration
>>>- Tracing Data Publishing Configuration
>>>
>>> Will there be two UI configuration sections for above? Both mediation
>> stats and message tracing require same set of configurations like, DAS
>> receiver URL and user credentials. Wouldn't it be better if we let the user
>> to configure this information in single place?
>>
>>>
>>>-
>>>
>>> ESB will publish tracing and statistic data to the DAS and users can
>>> monitor mediation statistics and message tracing results from DAS dashboard.
>>>
>>> Thank you,
>>>
>>> On Mon, Nov 9, 2015 at 3:15 PM, Kasun Indrasiri  wrote:
>>>
 Hi,

 As part of the ongoing efforts for revamping mediation statistics and
 message tracing in ESB, we have to get rid of most of the existing UIs and
 configurations in the ESB management console.

 Jagath/Viraj : Can you please list down the areas that we gonna remove
 from ESB 4.10 and the new additions to support tracing and stats.

 Thanks,
 Kasun.
 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

>>>
>>>
>>>
>>> --
>>> Viraj Senevirathne
>>> Software Engineer; WSO2, Inc.
>>>
>>> Mobile : +94 71 958 0269
>>> Email : vir...@wso2.com
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> Inosh Goonewardena
>> Associate Technical Lead- WSO2 Inc.
>> Mobile: +94779966317
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Jagath Ariyarathne
> Technical Lead
> WSO2 Inc.  http://wso2.com/
> Email: jaga...@wso2.com
> Mob  : +94 77 386 7048
>
>


-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 958 0269
Email : vir...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Escaping "/" in a search query in DAS

2015-11-10 Thread Kalpa Welivitigoda
Hi DAS team,

I am trying a search query via the REST API [1] in DAS 3.0.0 and [2] is my
payload of the POST request. When I try to invoke with [3]
(request-count.json has the payload) I get the following as the response,

{"status":"failed","message":"Error in index search: Invalid query, a term
must have a field"}

It works fine if I change the query element as in [4].

I found that "/" is a special character in lucene [5] and tried with [6],
still I get the same error response.

Any idea of what is missing here?


[1]
https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API

[2]
{
 "tableName":"ORG_WSO2_CARBON_MSS_HTTPMONITORING",
 "query":"request_uri:/student/883343913V",
 "start":0,
 "count":100
}

[3] curl -k -H "Content-Type: application/json" -H "Authorization: Basic
YWRtaW46YWRtaW4=" -d...@request-count.json
https://localhost:9443/analytics/search

[4] "query":"service_method:getStudent",

[5]
https://lucene.apache.org/core/5_2_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters

[6] "query":"request_uri:\/student\/883343913V",

-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] ESB 4.10 - Revamping mediation statistics and message tracing

2015-11-10 Thread Kasun Indrasiri
Isn't Stats and tracing are two independent tasks?


On Wed, Nov 11, 2015 at 9:55 AM, Viraj Senevirathne  wrote:

> Hi All,
>
> In a clustered environment should we collect statistics of worker nodes
> separately or should we represent them together as a one cluster?
>
> We probably need both. Once aggregated view and per node view for each
worker node. WDYT?

>
>
> On Wed, Nov 11, 2015 at 9:53 AM, Jagath Sisirakumara Ariyarathne <
> jaga...@wso2.com> wrote:
>
>> Hi Inosh,
>>
>> Will there be two UI configuration sections for above? Both mediation
>> stats and message tracing require same set of configurations like, DAS
>> receiver URL and user credentials. Wouldn't it be better if we let the user
>> to configure this information in single place?
>>
>> Yes, we can use same window for those. However, I think we will require
>> two separate configurations for stat and tracing.
>>
>> WDYT?
>>
>> On Wed, Nov 11, 2015 at 12:06 AM, Inosh Goonewardena 
>> wrote:
>>
>>> Hi Viraj,
>>>
>>> On Mon, Nov 9, 2015 at 3:45 PM, Viraj Senevirathne 
>>> wrote:
>>>
 Hi All,

 We are planning to removing following features as we are introducing
 new improved features that enhance and extend the existing functionality.

 ESB 4.10.0 release will not have following sections in the management
 console UI.

 *Monitoring Section*

- Mediation Statistics
- SOAP Tracer
- Mediation Tracer
- Message Flows

 *Configure Section *

- Mediation Data Publishing
- BAM Server Profile


 ESB 4.10.0 release will contain following additions to management
 console.

 *Configure Section*

- Mediation Statistics Publishing Configuration
- Tracing Data Publishing Configuration

 Will there be two UI configuration sections for above? Both mediation
>>> stats and message tracing require same set of configurations like, DAS
>>> receiver URL and user credentials. Wouldn't it be better if we let the user
>>> to configure this information in single place?
>>>

-

 ESB will publish tracing and statistic data to the DAS and users can
 monitor mediation statistics and message tracing results from DAS 
 dashboard.

 Thank you,

 On Mon, Nov 9, 2015 at 3:15 PM, Kasun Indrasiri  wrote:

> Hi,
>
> As part of the ongoing efforts for revamping mediation statistics and
> message tracing in ESB, we have to get rid of most of the existing UIs and
> configurations in the ESB management console.
>
> Jagath/Viraj : Can you please list down the areas that we gonna remove
> from ESB 4.10 and the new additions to support tracing and stats.
>
> Thanks,
> Kasun.
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 958 0269
 Email : vir...@wso2.com

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> Inosh Goonewardena
>>> Associate Technical Lead- WSO2 Inc.
>>> Mobile: +94779966317
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Jagath Ariyarathne
>> Technical Lead
>> WSO2 Inc.  http://wso2.com/
>> Email: jaga...@wso2.com
>> Mob  : +94 77 386 7048
>>
>>
>
>
> --
> Viraj Senevirathne
> Software Engineer; WSO2, Inc.
>
> Mobile : +94 71 958 0269
> Email : vir...@wso2.com
>



-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Rasika Perera
Hi Shakila,

First error is more like deserialization issue. The "InvalidClassException"
usually occurs when the receiver has loaded a class for the object that has
a different serialVersionUID than that of the corresponding sender's class.

Have you defined explicitly "serialVersionUID" in your serializable class
"TiqrAuthenticator"? If you do not explicitly declare this, serialization
runtime will calculate this based on the various aspect of the class.
According to the java doc[1], recommended way is to explicitly
declare serialVersionUID values, since the default serialVersionUID
computation is highly sensitive to class details that may vary depending on
compiler implementations, and can thus result in unexpected
InvalidClassExceptions during deserialization.

[1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html

Thanks,
Rasika

On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah 
wrote:

> Hi all,
>
> I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
> enable another feature with association I need to modify the authenticator
> for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
> (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
> given local path in pom. Now I'm getting two errors. I mentioned them here.
> Can anyone help me to resolve this?
>
> [1] This is caused while retrieving previous session data.
>
> in FrameworkUtils:
> SessionContextCacheEntry cacheEntryObj =
> SessionContextCache.getInstance().getValueFromCache(cacheKey);
> returns null
>
> I got this stack-trace:
> [2015-11-11 07:38:22,258] ERROR
> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
> -  Error while retrieving session data
>
> java.io.InvalidClassException:
> org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
> incompatible: stream classdesc serialVersionUID = 1179165995021182755,
> local class serialVersionUID = 7666485910146971411
>
> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)
>
> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
>
> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
>
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
>
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
>
> at java.util.HashMap.readObject(HashMap.java:1155)
>
> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:601)
>
> at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
>
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
>
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
>
> at
> org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore.getBlobObject(SessionDataStore.java:428)
>
> at
> org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore.getSessionContextData(SessionDataStore.java:275)
>
> at
> org.wso2.carbon.identity.application.authentication.framework.cache.SessionContextCache.getValueFromCache(SessionContextCache.java:93)
>
> at
> org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils.getSessionContextFromCache(FrameworkUtils.java:571)
>
> at
> 

Re: [Dev] http/https ports and hostname in carbon

2015-11-10 Thread Kalpa Welivitigoda
Hi Waruna,

You can try getLocalHostname() and getMgtHostName() in
org.wso2.carbon.utils.NetworkUtils.

On Tue, Nov 10, 2015 at 11:07 PM, Waruna Jayaweera  wrote:

> Hi Kalpa,
> Did you able to find a solution for $subject. I am also looking for an 
> approach
> to get the host name
>
> Thanks,
> Waruna
>
>
>
> On Wed, Feb 11, 2015 at 6:59 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi,
>>
>> I want to get the $subject.
>>
>> An option to get the http port would be to use
>> "CarbonUtils.getPortFromServerConfig("Ports.Offset") + 1". For https port,
>> we can use the same method passing the default https port. Is there a
>> better way?
>>
>> What would be the preferred approach to get the host name?
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>



-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev