[Dev] Proposal 16 : Enable selenium testing in Appfactory test stage

2015-03-12 Thread Irunika Lakmal Weeraratne
Hi,
I'm Irunika and I'm studying as a 3rd year computer engineering student in
university of Peradeniya. I'm still in my mid exams and it will be over by
tomorrow. But I downloaded selenium and now I'm trying to get familiar with
it. As well as I read  AppFactory documentation to some extend. I would
like to do this  project for this summer of code. This is for integrating
selenium 2 in AppFactory?
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Proposal 16 : Enable selenium testing in Appfactory test stage

2015-03-12 Thread Anuruddha Premalal
Hi Irunika,

Thank you for reaching and showing interest in the project. I'll schedule a
hangout session to have introductions and discuss about future plans, will
send the invitation by the end of this week.

Idea of this project is to introduce selenium tests for Appfactory
projects; not particularly for appfactory.

Good luck with your exams!

Regards,
Anuruddha.

On Thu, Mar 12, 2015 at 11:00 AM, Irunika Lakmal Weeraratne <
irunik...@gmail.com> wrote:

> Hi,
> I'm Irunika and I'm studying as a 3rd year computer engineering student in
> university of Peradeniya. I'm still in my mid exams and it will be over by
> tomorrow. But I downloaded selenium and now I'm trying to get familiar with
> it. As well as I read  AppFactory documentation to some extend. I would
> like to do this  project for this summer of code. This is for integrating
> selenium 2 in AppFactory?
>



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


[Dev] STS-Service with security policy

2015-03-12 Thread Godwin Amila Shrimal
Hi,

I am working on persisting security policy to registry, earlier it use file
based persistence model. I have completed most of the registry persistence
and doing testing. After applying "UsernameToken" policy to sts-service and
call the IssueToken operation of sts-service using SOAPUI it gives
following error.

he security token could not be authenticated or authorized; nested
exception is:

javax.security.auth.callback.UnsupportedCallbackException: Check failed :
System error {org.apache.axis2.engine.AxisEngine}

org.apache.axis2.AxisFault: The security token could not be authenticated
or authorized; nested exception is:

javax.security.auth.callback.UnsupportedCallbackException: Check failed :
System error

at
org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)

at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)

at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)

at org.apache.axis2.engine.Phase.invoke(Phase.java:313)

at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)

at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)

at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)

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

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

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

at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)

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

at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)

at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)

at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)

at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:722)

Caused by: org.apache.ws.security.WSSecurityException: The security token
could not be authenticated or authorized; nested exception is:

javax.security.auth.callback.UnsupportedCallbackException: Check failed :
System error

at
org.apache.ws.security.processor.UsernameTokenProcessor.handleUsern

Re: [Dev] WSO2 Committers += Ashan Manathunga

2015-03-12 Thread Kasun De Silva
Congratulations Ashan!!!

*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : kas...@wso2.com
mobile : +94 77 794 4260


On Tue, Mar 10, 2015 at 6:17 PM, Vijitha Ekanayake 
wrote:

> Congratulations Ashan !!!
>
> On Tue, Mar 10, 2015 at 6:12 PM, Chamin Dias  wrote:
>
>> Congrats Ashan! :-)
>>
>> On Tue, Mar 10, 2015 at 1:17 PM, Lasantha Fernando 
>> wrote:
>>
>>> Congratz Ashan!...
>>>
>>> On 10 March 2015 at 00:30, Malintha Adikari  wrote:
>>>
 Congratulations Ashan !

 On Tue, Mar 10, 2015 at 6:17 AM, Chamara Silva 
 wrote:

> Congratulations
>
>
> On Mon, Mar 9, 2015 at 11:28 AM, Isuruwan Herath 
> wrote:
>
>> Congratz Ashan!!!
>>
>> On Mon, Mar 9, 2015 at 9:16 AM, Malith Munasinghe 
>> wrote:
>>
>>> Congratulations Ashan!!!
>>>
>>> On Mon, Mar 9, 2015 at 9:08 AM, Niranda Perera 
>>> wrote:
>>>
 Congrats Ashan! :-)

 On Mon, Mar 9, 2015 at 9:06 AM, Vinod Kavinda 
 wrote:

> Congratulations Ashan!!
>
> On Mon, Mar 9, 2015 at 8:33 AM, Thilini Cooray 
> wrote:
>
>> Congrats, Ashan !
>>
>> On Sun, Mar 8, 2015 at 10:26 PM, Jagath Ariyananda <
>> jag...@wso2.com> wrote:
>>
>>> Congratulations Ashan.
>>>
>>> On Fri, Mar 6, 2015 at 4:53 PM, Srisunmugaraja Paraparan <
>>> parapa...@wso2.com> wrote:
>>>
 Congratz Ashan.

 On Fri, Mar 6, 2015 at 4:45 PM, Samisa Abeysinghe <
 sam...@wso2.com> wrote:

> Hi All
> It's my pleasure to welcome Ashan as a WSO2 Committer.
>
> Ashan, welcome aboard and keep up the good work!
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thanks & Regards
 --
 Srisunmugaraja Paraparan
 Software Engineer,
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email : parapa...@wso2.com, mobile : +94 77 0362151

>>>
>>>
>>>
>>> --
>>> Jagath Ariyananda
>>> Director - Support
>>> WSO2, Inc.
>>> Mobile:+94 714887531
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the 
>>> addressee/s.
>>> If you are not the intended recipient/s, or believe that you may 
>>> have
>>> received this communication in error, please reply to the sender 
>>> indicating
>>> that fact and delete the copy you received and in addition, you 
>>> should not
>>> print, copy, retransmit, disseminate, or otherwise use the 
>>> information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender 
>>> does not
>>> accept liability for any errors or omissions.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> *Thilini Cooray*
>> Software Engineer
>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>> E-mail : thili...@wso2.com
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer, *WSO2, Inc .*
> Mobile : +94 (0) 712 415544
> vi...@wso2.com
>
> ___
> 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 

 ___
 Dev mailing list
>>

Re: [Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-12 Thread Anuruddha Premalal
Hi Gayan,

IMO we should cache user data in the session cache and the application data
should go to the application level cache. This way we can get rid of
unwanted back-end calls and do proper cache invalidation.

So IMO the proper way to do this is to have a clear data separation in
caching layers rather than increasing callbacktime.

WDYT?

Regards,
Anuruddha.

On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka  wrote:

> Hi Danushka,
>
> Thanks for the useful information. Yes. The cache is in the session. Me
> too believe that the 1 minute time difference is too soon.
>
> +1 for increasing it.
>
> Regards
> Gayan
>
> On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando 
> wrote:
>
>> I didn't check the code. However I guess cache is in session. Is that
>> right? So say A logs in to AF and do whatever stuff. And B logs in to AF
>> and create an application foo and add A to that foo application. Then there
>> is no way to update the cache unless we read it from data layer time to
>> time. If this is not the case picture in my head is wrong so please correct
>> it.
>> However 1 minute seems too soon.
>>
>>1. Make it configurable
>>2. Increase it to somewhere like 10 - 15 minutes.
>>
>> WDYT?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka  wrote:
>>
>>> Hi all,
>>>
>>> I noticed $subject in the index page. Any particular reason for having
>>> this ? Since we have a cache for user home data, IMO we do not need this
>>> anymore. Data from the back end can only be read initially.
>>>
>>> Regards
>>> Gayan
>>>
>>> --
>>> 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
>>>
>>
>>
>
>
> --
> 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
>
>


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


Re: [Dev] GSOC2015:PROJECT

2015-03-12 Thread Tharinda Ehelepola
Hi,

I think the major part of this project is create a back end of java code
created using wrangler script. Wrangler scripts are mostly done by
javascript. So I need to convert those into java. I was not able to find
some method. Other ways of doing this is used common methods like
split,merge.. etc easily find on java. Rest of the methods are convert by
manually. Is there any method to convert those scripts to java.

Thank you.
Tharinda.

On Wed, Mar 11, 2015 at 3:45 AM, Supun Sethunga  wrote:

> Hi Tharinda,
>
> Ultimately, the java code created using the wrangler script (after
> conversion), should be able to used as an Apache Spark [1] Transformations
> [2]. (at the back-end)
>
> On a side note, please use the WSO2 dev mailing list for any project
> related communication :)
>
> [1] https://spark.apache.org/
> [2]
> http://spark.apache.org/docs/1.2.0/programming-guide.html#transformations
>
> Regards,
> Supun
>
> On Wed, Mar 11, 2015 at 7:52 AM, Nirmal Fernando  wrote:
>
>> Yes, that's exactly what we want !
>>
>> On Wed, Mar 11, 2015 at 3:30 AM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> I checked the libraries on wrangler. I think that you mentioned can be
>>> done using the libraries. What  I think is get the libraries from wrangler
>>> and create a back-end for the interface created using jaggery. Wrangler
>>> script to java converter can be add to the back-end also.
>>>
>>> On Tue, Mar 10, 2015 at 4:10 AM, Nirmal Fernando 
>>> wrote:
>>>
 Remotely connecting to Wrangler (hosted service) is not a good option.
 What we expect is we take their library (it's Open source) and use the API
 to perform the transformations and cleaning. Could you please check the
 feasibility of that?

 On Tue, Mar 10, 2015 at 9:34 AM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>
> I drew what I understood the project to be.
>
> If one wants to do data cleaning and transformation he need to
> connect to the wrangler directly. That is what I mean from the first two
> blocks. If they have a customized UI you can do data cleaning and
> transformation using ML also. They don't need to connect to the wrangler.
> Another thing i realized that is they don't need all the operations in
> wrangler. They need some specific subset of operations only. What I mean
> from the bottom block is the UI created using Jaggery interfacing between
> ML and the wrangler.
>
> On Tue, Mar 10, 2015 at 2:16 AM, Nirmal Fernando 
> wrote:
>
>> Hi Tharindu,
>>
>> Thanks for the diagram. Do you mind explaining the diagram?
>>
>> On Tue, Mar 10, 2015 at 3:27 AM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Here I attached a simple design of project development. Can you give
>>> me some comments about this.
>>>
>>> Thank you.
>>>
>>> On Mon, Mar 9, 2015 at 2:16 AM, Nirmal Fernando 
>>> wrote:
>>>
 Our ultimate goal is to provide data cleaning and transformation.
 Hence, Tharindu, you need to pick the things that is sufficient to 
 perform
 those operations.

 What we prefer is a D3 based UI.

 On Sun, Mar 8, 2015 at 10:34 PM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>
> Wrangler already has a UI. I think that you excepting customized
> UI for Wrangler using Jaggery. Which kind of conditions and options 
> do you
> excepting from that UI.
>
> Thanks.
>
> On Sat, Mar 7, 2015 at 2:13 PM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> Thanks for your response. I have some idea about both Data
>> Wrangler API and Jaggery. I'll try to bulid a UI.
>>
>> Thanks.
>>
>> On Sat, Mar 7, 2015 at 11:04 AM, Nirmal Fernando > > wrote:
>>
>>>
>>>
>>> On Sat, Mar 7, 2015 at 4:34 PM, Nirmal Fernando >> > wrote:
>>>
 Hi Tharinda,

 Thanks for your interest on the proposal #17. Actually, it is
 not for WSO2 CEP but for WSO2 Machine Learner which is a new 
 product that
 we are building these days.

 The main idea of this project is to integrate the Data Wrangler
 to WSO2 ML and get the data cleaning, transformation features into 
 WSO2 ML.
 But as a start, you could play with Data Wrangler API and check 
 how you
 could build a UI (preferably using HTML, Jaggery) that exposes Data
 Wrangler APIs.

 On Sat, Mar 7, 2015 at 2:53 PM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>
>

Re: [Dev] [MB] TombstoneOverwhelmingException When Purge Operation is Triggered When Subscription Disconnection/Deletion

2015-03-12 Thread Asitha Nanayakkara
Hi Pamod

Querying the remaining slots and removing content directly is OK. As an
improvement you can add a separate method in slot coordinator to get that
message range of all the slots, to reduce cluster communication, and then
do the necessary processing in the local node it self.

Thanks,
Asitha

On Thu, Mar 12, 2015 at 11:56 AM, Pamod Sylvester  wrote:

> Hi All,
>
> During the subscription disconnection/deletion purge operation is being
> called on the the relevant non durable topic the subscription/s was bound
> to. During purge operation all existing data (if any) relevant to that
> topic will be removed.
>
> When using hector the removal is done through a range query following LOC,
>
> List currentPage =
> HectorDataAccessHelper.getNumericColumnKeysOfRow
> (keyspace,
> CassandraConstants.META_DATA_COLUMN_FAMILY, storageQueueName, pageSize,
> lastProcessedID);
>
> Initially the relevant message ids are retrieved from MetaData CF and then
> removed from the MessageContent CF. Once more than 200,000 messages are
> sent since the range query queries the entire row of data belonging to a
> relevant topic, it results in the following,
>
>
>
> *Caused by: org.apache.cassandra.db.filter.TombstoneOverwhelmingException:
> nullat
> org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:214)
> ~[apache-cassandra-2.1.2.jar:2.1.2]at
> org.apache.cassandra.db.filter.QueryFilter.collateColumns(QueryFilter.java:107)
> ~[apache-cassandra-2.1.2.jar:2.1.2]*
>
> And causes *me.prettyprint.hector.api.exceptions.HTimedOutException:
> TimedOutException() *in the broker end,
>
> As solution,
>
> Since the idea of purging during disconnection is to clear out remaining
> data which have not being given out to its subscribers, we could query the
> slots which are still remaining and directly delete them from the
> MessageContentCF instead of querying them from meta data CF. Would there be
> any implication to this ? WDYT ?
>
> Thanks,
> Pamod
>
> --
> *Pamod Sylvester *
>  *Senior Software Engineer *
> Integration Technologies Team, WSO2 Inc.; http://wso2.com
> email: pa...@wso2.com cell: +94 77 7779495
>



-- 
*Asitha Nanayakkara*
Software Engineer
WSO2, Inc. http://wso2.com/
Mob: + 94 77 85 30 682
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] TombstoneOverwhelmingException When Purge Operation is Triggered When Subscription Disconnection/Deletion

2015-03-12 Thread Pamod Sylvester
+1 that's a good point. We could define a function to normalize the slot
range through consolidating of all the remaining slots together.

On Thu, Mar 12, 2015 at 1:22 PM, Asitha Nanayakkara  wrote:

> Hi Pamod
>
> Querying the remaining slots and removing content directly is OK. As an
> improvement you can add a separate method in slot coordinator to get that
> message range of all the slots, to reduce cluster communication, and then
> do the necessary processing in the local node it self.
>
> Thanks,
> Asitha
>
> On Thu, Mar 12, 2015 at 11:56 AM, Pamod Sylvester  wrote:
>
>> Hi All,
>>
>> During the subscription disconnection/deletion purge operation is being
>> called on the the relevant non durable topic the subscription/s was bound
>> to. During purge operation all existing data (if any) relevant to that
>> topic will be removed.
>>
>> When using hector the removal is done through a range query following LOC,
>>
>> List currentPage =
>> HectorDataAccessHelper.getNumericColumnKeysOfRow
>> (keyspace,
>> CassandraConstants.META_DATA_COLUMN_FAMILY, storageQueueName, pageSize,
>> lastProcessedID);
>>
>> Initially the relevant message ids are retrieved from MetaData CF and
>> then removed from the MessageContent CF. Once more than 200,000 messages
>> are sent since the range query queries the entire row of data belonging to
>> a relevant topic, it results in the following,
>>
>>
>>
>> *Caused by:
>> org.apache.cassandra.db.filter.TombstoneOverwhelmingException: nullat
>> org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:214)
>> ~[apache-cassandra-2.1.2.jar:2.1.2]at
>> org.apache.cassandra.db.filter.QueryFilter.collateColumns(QueryFilter.java:107)
>> ~[apache-cassandra-2.1.2.jar:2.1.2]*
>>
>> And causes *me.prettyprint.hector.api.exceptions.HTimedOutException:
>> TimedOutException() *in the broker end,
>>
>> As solution,
>>
>> Since the idea of purging during disconnection is to clear out remaining
>> data which have not being given out to its subscribers, we could query the
>> slots which are still remaining and directly delete them from the
>> MessageContentCF instead of querying them from meta data CF. Would there be
>> any implication to this ? WDYT ?
>>
>> Thanks,
>> Pamod
>>
>> --
>> *Pamod Sylvester *
>>  *Senior Software Engineer *
>> Integration Technologies Team, WSO2 Inc.; http://wso2.com
>> email: pa...@wso2.com cell: +94 77 7779495
>>
>
>
>
> --
> *Asitha Nanayakkara*
> Software Engineer
> WSO2, Inc. http://wso2.com/
> Mob: + 94 77 85 30 682
>
>


-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] TombstoneOverwhelmingException When Purge Operation is Triggered When Subscription Disconnection/Deletion

2015-03-12 Thread Hasitha Amal De Silva
Hi Pamod,

+1 for the solution. as discussed, we can use a single service call to
fetch all slots from the coordinator for the given queue, and trigger
single message deletions (referring to OnflightMessageTracker and
SlotDeliveryWorker) . This will ensure that tombstones are not read when
purging in a subscription closed scenario.

However, we also need to think about triggering a queue purge from the UI,
at which point we may not have active subscriptions or slot references.

Thanks

On Thu, Mar 12, 2015 at 11:56 AM, Pamod Sylvester  wrote:

> Hi All,
>
> During the subscription disconnection/deletion purge operation is being
> called on the the relevant non durable topic the subscription/s was bound
> to. During purge operation all existing data (if any) relevant to that
> topic will be removed.
>
> When using hector the removal is done through a range query following LOC,
>
> List currentPage =
> HectorDataAccessHelper.getNumericColumnKeysOfRow
> (keyspace,
> CassandraConstants.META_DATA_COLUMN_FAMILY, storageQueueName, pageSize,
> lastProcessedID);
>
> Initially the relevant message ids are retrieved from MetaData CF and then
> removed from the MessageContent CF. Once more than 200,000 messages are
> sent since the range query queries the entire row of data belonging to a
> relevant topic, it results in the following,
>
>
>
> *Caused by: org.apache.cassandra.db.filter.TombstoneOverwhelmingException:
> nullat
> org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:214)
> ~[apache-cassandra-2.1.2.jar:2.1.2]at
> org.apache.cassandra.db.filter.QueryFilter.collateColumns(QueryFilter.java:107)
> ~[apache-cassandra-2.1.2.jar:2.1.2]*
>
> And causes *me.prettyprint.hector.api.exceptions.HTimedOutException:
> TimedOutException() *in the broker end,
>
> As solution,
>
> Since the idea of purging during disconnection is to clear out remaining
> data which have not being given out to its subscribers, we could query the
> slots which are still remaining and directly delete them from the
> MessageContentCF instead of querying them from meta data CF. Would there be
> any implication to this ? WDYT ?
>
> Thanks,
> Pamod
>
> --
> *Pamod Sylvester *
>  *Senior Software Engineer *
> Integration Technologies Team, WSO2 Inc.; http://wso2.com
> email: pa...@wso2.com cell: +94 77 7779495
>



-- 
Cheers,

Hasitha Amal De Silva
 Software Engineer
Mobile : 0772037426
Blog: http://devnutshell.tumblr.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] TombstoneOverwhelmingException When Purge Operation is Triggered When Subscription Disconnection/Deletion

2015-03-12 Thread Pamod Sylvester
+1 Agreed, also as you and Ramith mentioned deleting the content directly
will not be possible with the current architecture, since matadata is
partitioned based on the queue/topic but the message content is not and
ranges could overlap between multiple topics/queues.

Therefore, we could invoke the content deletion task for the moment.

 Also another question i have is as to why we cannot partition the message
content the same way we partition the meta information ?

Also, from the UI when purging we could still refer the unassigned slots i
believe. That's my observation. Do correct me if i am wrong.

Thanks,
Pamod

On Thu, Mar 12, 2015 at 1:29 PM, Hasitha Amal De Silva 
wrote:

> Hi Pamod,
>
> +1 for the solution. as discussed, we can use a single service call to
> fetch all slots from the coordinator for the given queue, and trigger
> single message deletions (referring to OnflightMessageTracker and
> SlotDeliveryWorker) . This will ensure that tombstones are not read when
> purging in a subscription closed scenario.
>
> However, we also need to think about triggering a queue purge from the UI,
> at which point we may not have active subscriptions or slot references.
>
> Thanks
>
> On Thu, Mar 12, 2015 at 11:56 AM, Pamod Sylvester  wrote:
>
>> Hi All,
>>
>> During the subscription disconnection/deletion purge operation is being
>> called on the the relevant non durable topic the subscription/s was bound
>> to. During purge operation all existing data (if any) relevant to that
>> topic will be removed.
>>
>> When using hector the removal is done through a range query following LOC,
>>
>> List currentPage =
>> HectorDataAccessHelper.getNumericColumnKeysOfRow
>> (keyspace,
>> CassandraConstants.META_DATA_COLUMN_FAMILY, storageQueueName, pageSize,
>> lastProcessedID);
>>
>> Initially the relevant message ids are retrieved from MetaData CF and
>> then removed from the MessageContent CF. Once more than 200,000 messages
>> are sent since the range query queries the entire row of data belonging to
>> a relevant topic, it results in the following,
>>
>>
>>
>> *Caused by:
>> org.apache.cassandra.db.filter.TombstoneOverwhelmingException: nullat
>> org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:214)
>> ~[apache-cassandra-2.1.2.jar:2.1.2]at
>> org.apache.cassandra.db.filter.QueryFilter.collateColumns(QueryFilter.java:107)
>> ~[apache-cassandra-2.1.2.jar:2.1.2]*
>>
>> And causes *me.prettyprint.hector.api.exceptions.HTimedOutException:
>> TimedOutException() *in the broker end,
>>
>> As solution,
>>
>> Since the idea of purging during disconnection is to clear out remaining
>> data which have not being given out to its subscribers, we could query the
>> slots which are still remaining and directly delete them from the
>> MessageContentCF instead of querying them from meta data CF. Would there be
>> any implication to this ? WDYT ?
>>
>> Thanks,
>> Pamod
>>
>> --
>> *Pamod Sylvester *
>>  *Senior Software Engineer *
>> Integration Technologies Team, WSO2 Inc.; http://wso2.com
>> email: pa...@wso2.com cell: +94 77 7779495
>>
>
>
>
> --
> Cheers,
>
> Hasitha Amal De Silva
>  Software Engineer
> Mobile : 0772037426
> Blog: http://devnutshell.tumblr.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>



-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC-2015] Proposal 4: ESB - JMS 2.0 support for transports and inbound endpoint

2015-03-12 Thread Eranda Rajapakshe
hi,

Thank you for the given references!

I went though WSO2 ESB JMS documents and I found most samples are mainly
discussed with ActiveMQ broker and WSO2 MB. But I am not sure whether
AcitveMQ support JMS 2.0 (  cause I found this [1] on one of their mail
threads ). Also, WSO2 MB doesn't support JMS 2.0 right?
Can you suggest me any message brokers that I can use to get some idea
about JMS 2.0 features? And how about "Hornetq" is it the main message
broker that support JMS 2.0?

[1].
http://activemq.2283324.n4.nabble.com/Discussion-JMS-2-0-API-support-td4681089.html

Thank you!

On Tue, Mar 3, 2015 at 9:18 PM, Buddhima Wijeweera 
wrote:

> Hi Eranda,
>
> Thank you for your interest.
> Yes, you can go ahead with the given reference. In addition to that, I
> would like to point you few more resources that you can be familiar with
> the existing JMS transport.
>
> Resources:
> [1] https://docs.wso2.com/display/ESB481/JMS+FAQ
> [2] https://docs.wso2.com/display/ESB481/Configuring+JMS+Transport
> [3] https://docs.wso2.com/display/ESB481/JMS+Usecases
> [4] https://docs.wso2.com/display/ESB481/JMS+Troubleshooting+Guide
> [5] https://docs.wso2.com/display/ESB481/JMS+Samples
>
> Thank you!
>
> On Tue, Mar 3, 2015 at 5:40 PM, Eranda Rajapakshe 
> wrote:
>
>> Hi,
>>
>> I am Eranda Rajapakshe, an undergraduate from Department of Computer
>> Science and Engineering, University of Moratuwa. Currently I'm an intern
>> at WSO2 Inc.
>>
>> I am interested in proposal [1]
>> 
>>  and
>> looking forward to contribute. I will go through the  given references and
>> contact you for further details.
>>
>> [1] 
>> *https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal4:ESB-JMS2.0supportfortransportsandinboundendpoint
>> *
>>
>>
>> Thank you!
>> --
>> *Eranda Rajapakshe*
>> Software Engineering intern
>> WSO2 Inc. www.wso2.com
>> Tel : +94784822608
>> Email : eran...@wso2.com
>>
>
>
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Mobile: +94 71 427 9966
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>



-- 
*Eranda Rajapakshe*
Software Engineering intern
WSO2 Inc. www.wso2.com
Tel : +94784822608
Email : eran...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Try finally blocks with out a catch block

2015-03-12 Thread Chanuka Dissanayake
Hi Mahesh,

Jaggery is JavaScript, hence *try, catch *and* finally* blocks can be used
within your code as you usual. Also,  passed JavaScript *Error* object can
be used to get a brief information about the error [1]. Also you can find a
sample in [2]. Hope this will help you.

[1]
http://ruchirawageesha.blogspot.com/2013/04/error-handling-in-jaggery.html
[2] http://jaggeryjs.org/documentation.jag?api=ws

Regards,
Chanuka.

On Wed, Mar 11, 2015 at 12:44 PM, Mahesh Chinthaka  wrote:

>
> Hi all ,
> I have been working on [1] and I found some codes written with try and
> finally blocks without a catch block in the module layer of a jaggery app.
>
> try {
>
> } finally {
>
> }
>
> Is this ok ?
> If so how the errors are caught and thrown, when it comes to exception
> handling ?
>
> [1] - https://wso2.org/jira/browse/APPFAC-2725
>
> Thoughts are much appreciated.
> Thanks.
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chanuka Dissanayake
*Software Engineer | **WSO2 Inc.*; http://wso2.com

Mobile: +94 71 33 63 596
Email: chan...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Java 8] [AS Integration Tests] AS distribution fails to start after instrumenting using EMMA 2.1.5320

2015-03-12 Thread Krishantha Samaraweera
I have been evaluating Jacoco (EclEmma) as code coverage generation tool
for last couple of days, and was about to get the coverage dump file after
executing integration tests. However coverage report generation is bit
cumbersome using coverage dump files. Jacoco was initially designed for
unit test coverage and when it comes to server side test coverage
generation it has limitations with reporting. With our existing coverage
generation tool (Emma) we had gained more user friendliness by managing
coverage generation though test framework.

1. Jacoco needs source and class files to generate coverage report (in our
case don't have source files of components at test runtime).
2. Pointing jar files for coverage generation not working.
3. Can't use instrumented class files back for report generation (should be
fresh class files without any modifications)
4. No command line tool for coverage report generation.
5. Class filtering from coverage generation is not straightforward.
6. If we are going ahead with their maven/ant plugins, update of all test
module pom files are required.
7. Might need to introduce maven profiles to disable coverage generation.

I'm going though Jacoco API to find a better way for coverage report
generation. Will update the thread with findings. Other alternative is to
fix Emma (existing coverage tool) to run with JDK 1.8.

Thanks,
Krishantha.


On Tue, Mar 10, 2015 at 9:20 AM, Kishanthan Thangarajah  wrote:

> Hi Dharshana,
>
> On Mon, Mar 9, 2015 at 6:48 PM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Kishanthan,
>>
>>
>> Please update the entry true
>> in automation.xml.
>>
>> This will avoid instrumentation and disable coverage. So you don't have
>> to disable whole integration test module.
>>
>
> No, I did not suggest to disable the integration module, but to disable
> instrumentation and coverage.
>
> But given that this will disable coverage reports, I think we should not
> go for that approach. We will continue to use the old integration framework
> on kernel 4.4.0 and push CARBON-15194 for 4.5.0.
>
>
>
>> By updating this entry you can execute all integration tests normally and
>> generate Surefire reports.
>>
>> But coverage will not be generated. You can follow thin until stable
>> solution comes.
>>
>> Thank you,
>> Dharshana.
>>
>>
>>
>> On Mon, Mar 9, 2015 at 8:45 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Hi SameeraJ, Krishantha,
>>>
>>> I think this issue will again arise for kernel 4.4.0 release with
>>> https://wso2.org/jira/browse/CARBON-15194.
>>>
>>> Either we can disable coverage report generation on kernel integration
>>> or we will have to push CARBON-15194 for 4.5.0.
>>>
>>>
>>>
>>> On Thu, Feb 26, 2015 at 6:56 PM, Sameera Jayasoma 
>>> wrote:
>>>
 Hi Folks,

 AS integration tests are failing in Java 8 due to $Subject. Following
 is the error.

 *java.lang.ClassFormatError: Illegal local variable table length 5 in
 method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.()V*

 Looks like Java 8 cannot understand the bytecode produced by
 instrumentations. We are using an older version of EMMA. I guess the
 generated bytecode does not compatible with Java 8.

 Automation Team, can we find a solution to this problem?

 Thanks,
 Sameera.


 [2015-02-26 15:05:04,157] ERROR
 {org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
 Core bundle

 *java.lang.ClassFormatError: Illegal local variable table length 5 in
 method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.()V*at
 java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:340)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1181)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1177)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1177)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:94)
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:456)
 at
 javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)
 at
 javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
 at
 javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:341)
 at javax.naming.InitialContext.lookup(InitialContext.java:417)
 at javax.naming.InitialContext.doLookup(InitialContext.java:290)


 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameer

Re: [Dev] [GSoC2015] Proposal 2: Siddhi Editor for WSO2 CEP

2015-03-12 Thread Mohanadarshan Vivekanandalingam
On Tue, Mar 10, 2015 at 6:03 PM, Pubudu Fernando 
wrote:

> Hi,
>
> Thank you very much for the Google Hangout session today. It was very
> helpful in getting a good idea about what is expected from us. I had some
> issues with the connection towards the end of the session, so I couldn't
> raise my questions there. Anyways, in a nutshell, what we are supposed to
> do is not really to come up with a brand new editor for Siddhi, but to add
> more capabilities to the existing editor which would better assist the user
> in writing queries, right?
>

Yes, It can be adding improvements for existing siddhi editor if it is
possible. If not, you can come up with new design as well.

>
> And the second question, what is the technical background of the typical
> user of the Siddhi query editor? Are they Software Engineers or someone
> else with a similar, strong technical background? Or is it used by others
> with a lesser technical background (i.e: finance division of an
> organization)?
>

Users will have basic knowledge but not going to be a person who know
siddhi language well. If a user knows well about siddhi then current siddhi
editor is enough. But we are looking for an editor which help and give some
idea for a basic user who have less/very less knowledge about Siddhi.

Hope, it is clear now..

Thanks,
Mohan



>
> Thanks,
> Pubudu
>
> On 9 March 2015 at 01:45, Pubudu Fernando  wrote:
>
>> Hi Mohan,
>>
>> Thank you for the reply and yes, I would really appreciate their guidance
>> in this. :) I am following the mailing list, and I will do my best to keep
>> up-to-date with the latest developments related to the project. Currently I
>> am going through the documentation of CEP and the codebase of Siddhi in
>> order to get a better understanding of the project.
>>
>> Thanks,
>> Pubudu
>>
>>
>>
>> On 8 March 2015 at 02:47, Mohanadarshan Vivekanandalingam > > wrote:
>>
>>>
>>>
>>> On Fri, Mar 6, 2015 at 1:57 AM, Pubudu Fernando >> > wrote:
>>>
 Hi,


>>> Hi Pubudu,
>>>
>>>
 I'm Pubudu, a second year undergraduate student at the Department of
 Computer Science and Engineering in University of Moratuwa. I am interested
 in undertaking the above mentioned project for GSoC 2015. Can you please
 let me know what the requirements are in order to get selected for the
 project? Do I have to submit bug fixes or something of the sort?

>>>
>>> Welcome and happy to hear that you like to work on this project.. I
>>> hope, you have some understanding about the project by looking at other dev
>>> mails. Anyway FYI, Siddhi is the event processing engines which comes with
>>> WSO2 CEP. At the moment there is no any proper editor to write Siddhi
>>> queries. From this project, we are expected to develop a graphical editor
>>> to write Siddhi queries.
>>>
>>> I am adding Suho & Srinath to the thread who can give more guidelines
>>> and information about the project, then you can ahead with preparing the
>>> proposal for the project..
>>>
>>> Yes. you are always welcome to contribute by giving bug fixes.. :)
>>>
>>> Thanks,
>>> Mohan
>>>
>>>

 Thank you.

 --
 Best Regards,

 *Pubudu Fernando*
 Batch '12
 Department of Computer Science and Engineering
 University of Moratuwa

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


>>>
>>>
>>> --
>>> *V. Mohanadarshan*
>>> *Software Engineer,*
>>> *Data Technologies Team,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: mo...@wso2.com
>>> phone:(+94) 771117673
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> *Pubudu Fernando*
>> Batch '12
>> Department of Computer Science and Engineering
>> University of Moratuwa
>>
>
>
>
> --
> Best Regards,
>
> *Pubudu Fernando*
> Batch '12
> Department of Computer Science and Engineering
> University of Moratuwa
>



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

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


Re: [Dev] [MB] TombstoneOverwhelmingException When Purge Operation is Triggered When Subscription Disconnection/Deletion

2015-03-12 Thread Hasitha Hiranya
Hi,

Idea was when last subscriber goes purge the messages without getting slots
involved because it need to happen lightweight and fast.

Thanks

On Thu, Mar 12, 2015 at 3:16 AM, Pamod Sylvester  wrote:

> +1 Agreed, also as you and Ramith mentioned deleting the content directly
> will not be possible with the current architecture, since matadata is
> partitioned based on the queue/topic but the message content is not and
> ranges could overlap between multiple topics/queues.
>
> Therefore, we could invoke the content deletion task for the moment.
>
>  Also another question i have is as to why we cannot partition the message
> content the same way we partition the meta information ?
>
> Also, from the UI when purging we could still refer the unassigned slots i
> believe. That's my observation. Do correct me if i am wrong.
>
> Thanks,
> Pamod
>
> On Thu, Mar 12, 2015 at 1:29 PM, Hasitha Amal De Silva 
> wrote:
>
>> Hi Pamod,
>>
>> +1 for the solution. as discussed, we can use a single service call to
>> fetch all slots from the coordinator for the given queue, and trigger
>> single message deletions (referring to OnflightMessageTracker and
>> SlotDeliveryWorker) . This will ensure that tombstones are not read when
>> purging in a subscription closed scenario.
>>
>> However, we also need to think about triggering a queue purge from the
>> UI, at which point we may not have active subscriptions or slot references.
>>
>> Thanks
>>
>> On Thu, Mar 12, 2015 at 11:56 AM, Pamod Sylvester  wrote:
>>
>>> Hi All,
>>>
>>> During the subscription disconnection/deletion purge operation is being
>>> called on the the relevant non durable topic the subscription/s was bound
>>> to. During purge operation all existing data (if any) relevant to that
>>> topic will be removed.
>>>
>>> When using hector the removal is done through a range query following
>>> LOC,
>>>
>>> List currentPage =
>>> HectorDataAccessHelper.getNumericColumnKeysOfRow
>>> (keyspace,
>>> CassandraConstants.META_DATA_COLUMN_FAMILY, storageQueueName, pageSize,
>>> lastProcessedID);
>>>
>>> Initially the relevant message ids are retrieved from MetaData CF and
>>> then removed from the MessageContent CF. Once more than 200,000 messages
>>> are sent since the range query queries the entire row of data belonging to
>>> a relevant topic, it results in the following,
>>>
>>>
>>>
>>> *Caused by:
>>> org.apache.cassandra.db.filter.TombstoneOverwhelmingException: nullat
>>> org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:214)
>>> ~[apache-cassandra-2.1.2.jar:2.1.2]at
>>> org.apache.cassandra.db.filter.QueryFilter.collateColumns(QueryFilter.java:107)
>>> ~[apache-cassandra-2.1.2.jar:2.1.2]*
>>>
>>> And causes *me.prettyprint.hector.api.exceptions.HTimedOutException:
>>> TimedOutException() *in the broker end,
>>>
>>> As solution,
>>>
>>> Since the idea of purging during disconnection is to clear out remaining
>>> data which have not being given out to its subscribers, we could query the
>>> slots which are still remaining and directly delete them from the
>>> MessageContentCF instead of querying them from meta data CF. Would there be
>>> any implication to this ? WDYT ?
>>>
>>> Thanks,
>>> Pamod
>>>
>>> --
>>> *Pamod Sylvester *
>>>  *Senior Software Engineer *
>>> Integration Technologies Team, WSO2 Inc.; http://wso2.com
>>> email: pa...@wso2.com cell: +94 77 7779495
>>>
>>
>>
>>
>> --
>> Cheers,
>>
>> Hasitha Amal De Silva
>>  Software Engineer
>> Mobile : 0772037426
>> Blog: http://devnutshell.tumblr.com/
>> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>>
>
>
>
> --
> *Pamod Sylvester *
>  *Senior Software Engineer *
> Integration Technologies Team, WSO2 Inc.; http://wso2.com
> email: pa...@wso2.com cell: +94 77 7779495
>



-- 
*Hasitha Abeykoon*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Factory] User's invited to an application does not see the application until re login

2015-03-12 Thread Gayan Dhanushka
Hi all,

Let's look at a simple scenario.

User A and User B logs into AF. User A creates an application and invite
user B into that application. Currently until user B logs out and login, he
does not see the application. This is due to keeping user's application
information in the session. The application information in the session is
updated only when the user logs in.

One thing that can be done is we can have a back end cache to track the
users who are invited to an application and during the user home page load,
a back end check can be done to check the cache and update the user home by
reloading the application list.

But this may introduce a overhead to the user home page.

WDYT ?

Regards
Gayan

-- 
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] 403 Status when DELETE using JAX-RS

2015-03-12 Thread Supun Malinga
Hi,

Shall we keep this in a common location such as [4]. This scenario is
common for all application types.

[4]
https://docs.wso2.com/display/AS521/Application+Development+and+Deployment

On Wed, Mar 11, 2015 at 8:47 PM, Nilmini Perera  wrote:

> Hi,
>
> @Supun/@Kasun-
>
> Could you please check the following content and let me know? I have added
> some information for web applications, JAX-RS and JAX-WS application in the
> AS docs.
>
> [1] https://docs.wso2.com/display/AS521/Web+Applications
> [2] https://docs.wso2.com/display/AS521/Developing+JAX-WS+Services
> [3] https://docs.wso2.com/display/AS521/Developing+JAX-RS+Services
>
> Thanks,
>
> Nilmini
>
> On Wed, Mar 11, 2015 at 4:10 PM, Nilmini Perera  wrote:
>
>> Sorry about the delay.
>> This will be completed today.
>>
>> Regards,
>> Nilmini
>>
>> On Wed, Mar 11, 2015 at 3:34 PM, Supun Malinga  wrote:
>>
>>> Hi Nilmini,
>>>
>>> On Tue, Feb 17, 2015 at 10:17 AM, Nilmini Perera 
>>> wrote:
>>>
 I will look into this and update the docs.
 Thanks for the info.

>>>
>>> Any updates on the docs ?.
>>>
>>> thanks,
>>>

 Regards,
 Nilmini

 On Mon, Feb 16, 2015 at 11:06 PM, Supun Malinga 
 wrote:

> Hi,
>
> Enabling CORS requests for all origins by default is not recommended
> and certainly is a bad idea to enable it by default in the server. Users
> should enable it if they want CORS by themselves, per webapp. It can be a
> security concern otherwise AFAIK.
>
> But this gives an opportunity to add to documentation on how users can
> enable CORS. Were you able to test this out and see ?.
>
> thanks,
>
> On Mon, Feb 16, 2015 at 10:53 PM, Gimantha Bandara 
> wrote:
>
>> Hi,
>>
>> We have hosted a jaxrs webapp in BAM 3.0 which is used for analytics.
>> Sometimes when we try to send a DELETE request, we receive the status 
>> code
>> 403, which we didn't really implemented to return. while searching for
>> clue, I found that the cross-origin resource filters(CORS filters) are 
>> not
>> set properly. We can set these filters either in webapp's web.xml or in
>> carbon server's tomcat web.xml to overcome the issue as shown below.
>>
>> 
>> CorsFilter
>>
>> org.apache.catalina.filters.CorsFilter
>> **
>> *cors.allowed.origins*
>> ***
>> **
>> **
>> *cors.allowed.methods*
>> *
>> GET,POST,HEAD,OPTIONS,PUT,DELETE,PATCH*
>> **
>> 
>> 
>> CorsFilter
>> /*
>> 
>>
>> So should these init-params be included by default in the pack? if
>> so, what will be the best place to add them ( in webapps' web.xml or in
>> conf/tomcat/web.xml)?
>>
>> Thanks,
>> --
>> Gimantha Bandara
>> Software Engineer
>> WSO2. Inc : http://wso2.com
>> Mobile : +94714961919
>>
>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>
> --
> You received this message because you are subscribed to the Google
> Groups "WSO2 Documentation" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



 --
 Nilmini Perera

 Senior Technical Writer
 WSO2 Inc.

 Mobile: 0094776722152


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> Nilmini Perera
>>
>> Senior Technical Writer
>> WSO2 Inc.
>>
>> Mobile: 0094776722152
>>
>>
>
>
> --
> Nilmini Perera
>
> Senior Technical Writer
> WSO2 Inc.
>
> Mobile: 0094776722152
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-12 Thread Gayan Dhanushka
Hi Anuruddha/ Danushka,

FYI, I checked the code again and noticed that calling getAllAppsOfUser
from the user home page is not needed anymore. It is used in the eventing
page template. So updating the "application_list" in session from the
notification wall template is enough. Further more "application_list" is
not the attribtue in the session which is used to draw the user home page.
It is "USER_HOME_CACHE" attribute the one which is used.

So I think it is safe to remove the recurring getAllAppsOfUser from the
user home page.

WDYT ?

Regards
Gayan

On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal 
wrote:

> Hi Gayan,
>
> IMO we should cache user data in the session cache and the application
> data should go to the application level cache. This way we can get rid of
> unwanted back-end calls and do proper cache invalidation.
>
> So IMO the proper way to do this is to have a clear data separation in
> caching layers rather than increasing callbacktime.
>
> WDYT?
>
> Regards,
> Anuruddha.
>
> On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka  wrote:
>
>> Hi Danushka,
>>
>> Thanks for the useful information. Yes. The cache is in the session. Me
>> too believe that the 1 minute time difference is too soon.
>>
>> +1 for increasing it.
>>
>> Regards
>> Gayan
>>
>> On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando 
>> wrote:
>>
>>> I didn't check the code. However I guess cache is in session. Is that
>>> right? So say A logs in to AF and do whatever stuff. And B logs in to AF
>>> and create an application foo and add A to that foo application. Then there
>>> is no way to update the cache unless we read it from data layer time to
>>> time. If this is not the case picture in my head is wrong so please correct
>>> it.
>>> However 1 minute seems too soon.
>>>
>>>1. Make it configurable
>>>2. Increase it to somewhere like 10 - 15 minutes.
>>>
>>> WDYT?
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka 
>>> wrote:
>>>
 Hi all,

 I noticed $subject in the index page. Any particular reason for having
 this ? Since we have a cache for user home data, IMO we do not need this
 anymore. Data from the back end can only be read initially.

 Regards
 Gayan

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

>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94710461070
> Web site : www.regilandvalley.com
>
>


-- 
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] [App Factory] User's invited to an application does not see the application until re login

2015-03-12 Thread Manjula Rathnayake
Hi all,

IMO, the current behavior is ok because inviting to an application is
followed by an email and we can mention to login in and check.

But if above is really an issue we need to attend, we should be able to use
guaranteed delivery messages to send the new event about new application
and update the applications in session.

thank you.


On Thu, Mar 12, 2015 at 2:13 PM, Gayan Dhanushka  wrote:

> Hi all,
>
> Let's look at a simple scenario.
>
> User A and User B logs into AF. User A creates an application and invite
> user B into that application. Currently until user B logs out and login, he
> does not see the application. This is due to keeping user's application
> information in the session. The application information in the session is
> updated only when the user logs in.
>
> One thing that can be done is we can have a back end cache to track the
> users who are invited to an application and during the user home page load,
> a back end check can be done to check the cache and update the user home by
> reloading the application list.
>
> But this may introduce a overhead to the user home page.
>
> WDYT ?
>
> Regards
> Gayan
>
> --
> 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
>



-- 
Manjula Rathnayaka
Software Engineer
WSO2, Inc.
Mobile:+94 77 743 1987
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Securing keystorePass in catalina-server.xml with secure vault - CARBON-13743

2015-03-12 Thread Niranjan Karunanandham
Hi Kishanthan,

The value that was in the catalina-server.xml for keystorePass will not be
removed after running the cipher tool. The cipher tool will encrypt the
value in cipher-text.properties and insert  svns:secretAlias="Server.
Service.Connector.keystorePass">password to
catalina-server.xml. When the server starts the value for keystorePass will
be retrieved from the cipher-text.properties (encrypted value) and not
which is there in the catalina-server.xml. If required, the value in the
catalina-server.xml can be removed:

password

Shall we mention this in the carbon 4.3.0 doc?


Regards,
Nira


On Wed, Mar 11, 2015 at 1:53 AM, Kishanthan Thangarajah  wrote:

> Hi Folks,
>
> There is an issue with current support for $subject. Once we configure
> this file using cipher-tool, we can see that the secret alias is being
> added to it. But the value of keystorePass still remains as "wso2carbon".
> This should get changed to "password".
>
>  acceptorThreadCount="2" bindOnInit="false" clientAuth="false"
> compressableMimeType="text/html,text/javascript,application/x-javascript,application/javascript,application/xml,text/css,application/xslt+xml,text/xsl,image/gif,image/jpg,image/jpeg"
> compression="on" compressionMinSize="2048" connectionUploadTimeout="12"
> disableUploadTimeout="false" enableLookups="false"
> keystoreFile="${carbon.home}/repository/resources/security/wso2carbon.jks"
> keystorePass="*wso2carbon*" maxHttpHeaderSize="8192"
> maxKeepAliveRequests="200" maxThreads="250" minSpareThreads="50"
> noCompressionUserAgents="gozilla, traviata" port="9443"
> protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https"
> secure="true" server="WSO2 Carbon Server" sslProtocol="TLS"
> svns:secretAlias="Server.Service.Connector.keystorePass">password
>
> The actual reason is that this is the only file (may be the first one),
> where we need to encrypt a value of an xml attribute. Other config files,
> we had to encrypt the value of the xml node element.
>
> @Niranjan, IIRC, you did some testing on this area right? Did we notice
> the above?
>
> Thanks,
> Kishanthan.
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 

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


Re: [Dev] [MB] TombstoneOverwhelmingException When Purge Operation is Triggered When Subscription Disconnection/Deletion

2015-03-12 Thread Pamod Sylvester
Tombstones became the killer :(

The plan is to consolidate the unassigned slot ranges together and schedule
the content to be removed within that range only so that the query will not
grab tombstones.

Thanks,
Pamod

On Thu, Mar 12, 2015 at 2:11 PM, Hasitha Hiranya  wrote:

> Hi,
>
> Idea was when last subscriber goes purge the messages without getting
> slots involved because it need to happen lightweight and fast.
>
> Thanks
>
> On Thu, Mar 12, 2015 at 3:16 AM, Pamod Sylvester  wrote:
>
>> +1 Agreed, also as you and Ramith mentioned deleting the content directly
>> will not be possible with the current architecture, since matadata is
>> partitioned based on the queue/topic but the message content is not and
>> ranges could overlap between multiple topics/queues.
>>
>> Therefore, we could invoke the content deletion task for the moment.
>>
>>  Also another question i have is as to why we cannot partition the
>> message content the same way we partition the meta information ?
>>
>> Also, from the UI when purging we could still refer the unassigned slots
>> i believe. That's my observation. Do correct me if i am wrong.
>>
>> Thanks,
>> Pamod
>>
>> On Thu, Mar 12, 2015 at 1:29 PM, Hasitha Amal De Silva > > wrote:
>>
>>> Hi Pamod,
>>>
>>> +1 for the solution. as discussed, we can use a single service call to
>>> fetch all slots from the coordinator for the given queue, and trigger
>>> single message deletions (referring to OnflightMessageTracker and
>>> SlotDeliveryWorker) . This will ensure that tombstones are not read when
>>> purging in a subscription closed scenario.
>>>
>>> However, we also need to think about triggering a queue purge from the
>>> UI, at which point we may not have active subscriptions or slot references.
>>>
>>> Thanks
>>>
>>> On Thu, Mar 12, 2015 at 11:56 AM, Pamod Sylvester 
>>> wrote:
>>>
 Hi All,

 During the subscription disconnection/deletion purge operation is being
 called on the the relevant non durable topic the subscription/s was bound
 to. During purge operation all existing data (if any) relevant to that
 topic will be removed.

 When using hector the removal is done through a range query following
 LOC,

 List currentPage =
 HectorDataAccessHelper.getNumericColumnKeysOfRow
 (keyspace,
 CassandraConstants.META_DATA_COLUMN_FAMILY, storageQueueName, pageSize,
 lastProcessedID);

 Initially the relevant message ids are retrieved from MetaData CF and
 then removed from the MessageContent CF. Once more than 200,000 messages
 are sent since the range query queries the entire row of data belonging to
 a relevant topic, it results in the following,



 *Caused by:
 org.apache.cassandra.db.filter.TombstoneOverwhelmingException: nullat
 org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:214)
 ~[apache-cassandra-2.1.2.jar:2.1.2]at
 org.apache.cassandra.db.filter.QueryFilter.collateColumns(QueryFilter.java:107)
 ~[apache-cassandra-2.1.2.jar:2.1.2]*

 And causes *me.prettyprint.hector.api.exceptions.HTimedOutException:
 TimedOutException() *in the broker end,

 As solution,

 Since the idea of purging during disconnection is to clear out
 remaining data which have not being given out to its subscribers, we could
 query the slots which are still remaining and directly delete them from the
 MessageContentCF instead of querying them from meta data CF. Would there be
 any implication to this ? WDYT ?

 Thanks,
 Pamod

 --
 *Pamod Sylvester *
  *Senior Software Engineer *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: pa...@wso2.com cell: +94 77 7779495

>>>
>>>
>>>
>>> --
>>> Cheers,
>>>
>>> Hasitha Amal De Silva
>>>  Software Engineer
>>> Mobile : 0772037426
>>> Blog: http://devnutshell.tumblr.com/
>>> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>>>
>>
>>
>>
>> --
>> *Pamod Sylvester *
>>  *Senior Software Engineer *
>> Integration Technologies Team, WSO2 Inc.; http://wso2.com
>> email: pa...@wso2.com cell: +94 77 7779495
>>
>
>
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] User's invited to an application does not see the application until re login

2015-03-12 Thread Gayan Dhanushka
Hi Manjula,

Since we don't send mails when the users are invited to an application as
of yet we would be needing some other way of doing this if it is essential.
IMO, a messaging mechanism won't work since this is the logged in user's
session that we are talking about. Another thing that we can do is to
notify the user via the user notification wall.

WDYT ?

Regards

On Thu, Mar 12, 2015 at 2:31 PM, Manjula Rathnayake 
wrote:

> Hi all,
>
> IMO, the current behavior is ok because inviting to an application is
> followed by an email and we can mention to login in and check.
>
> But if above is really an issue we need to attend, we should be able to
> use guaranteed delivery messages to send the new event about new
> application and update the applications in session.
>
> thank you.
>
>
> On Thu, Mar 12, 2015 at 2:13 PM, Gayan Dhanushka  wrote:
>
>> Hi all,
>>
>> Let's look at a simple scenario.
>>
>> User A and User B logs into AF. User A creates an application and invite
>> user B into that application. Currently until user B logs out and login, he
>> does not see the application. This is due to keeping user's application
>> information in the session. The application information in the session is
>> updated only when the user logs in.
>>
>> One thing that can be done is we can have a back end cache to track the
>> users who are invited to an application and during the user home page load,
>> a back end check can be done to check the cache and update the user home by
>> reloading the application list.
>>
>> But this may introduce a overhead to the user home page.
>>
>> WDYT ?
>>
>> Regards
>> Gayan
>>
>> --
>> 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
>>
>
>
>
> --
> Manjula Rathnayaka
> Software Engineer
> WSO2, Inc.
> Mobile:+94 77 743 1987
>



-- 
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] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-12 Thread Anuruddha Premalal
On Thu, Mar 12, 2015 at 12:58 PM, Gayan Dhanushka  wrote:

> Hi Anuruddha/ Danushka,
>
> FYI, I checked the code again and noticed that calling getAllAppsOfUser
> from the user home page is not needed anymore. It is used in the eventing
> page template. So updating the "application_list" in session
>

IMO we shouldn't keep the application_list in the *session*. Otherwise this
will cause the issue that Danushka explained earlier. Shall we move it to
*application* cache and do proper invalidation on update/delete?

from the notification wall template is enough. Further more
> "application_list" is not the attribtue in the session which is used to
> draw the user home page.
>

Are we using this application_list somewhere else?. It's not correct to
have the application_list in the *session* cache.


> It is "USER_HOME_CACHE" attribute the one which is used.
>
> So I think it is safe to remove the recurring getAllAppsOfUser from the
> user home page.
>

Check whether the  USER_HOME_CACHE have the application creation status; it
shouldn't be cached since it's a dynamic parameter; in that case you'll
have to getapplication info from  the back-end.


>

>
WDYT ?
>
> Regards
> Gayan
>
> On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal 
> wrote:
>
>> Hi Gayan,
>>
>> IMO we should cache user data in the session cache and the application
>> data should go to the application level cache. This way we can get rid of
>> unwanted back-end calls and do proper cache invalidation.
>>
>> So IMO the proper way to do this is to have a clear data separation in
>> caching layers rather than increasing callbacktime.
>>
>> WDYT?
>>
>> Regards,
>> Anuruddha.
>>
>> On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka 
>> wrote:
>>
>>> Hi Danushka,
>>>
>>> Thanks for the useful information. Yes. The cache is in the session. Me
>>> too believe that the 1 minute time difference is too soon.
>>>
>>> +1 for increasing it.
>>>
>>> Regards
>>> Gayan
>>>
>>> On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando 
>>> wrote:
>>>
 I didn't check the code. However I guess cache is in session. Is that
 right? So say A logs in to AF and do whatever stuff. And B logs in to AF
 and create an application foo and add A to that foo application. Then there
 is no way to update the cache unless we read it from data layer time to
 time. If this is not the case picture in my head is wrong so please correct
 it.
 However 1 minute seems too soon.

1. Make it configurable
2. Increase it to somewhere like 10 - 15 minutes.

 WDYT?

 Thanks & Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka 
 wrote:

> Hi all,
>
> I noticed $subject in the index page. Any particular reason for having
> this ? Since we have a cache for user home data, IMO we do not need this
> anymore. Data from the back end can only be read initially.
>
> Regards
> Gayan
>
> --
> 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
>


>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94710461070
>> Web site : www.regilandvalley.com
>>
>>
>
>
> --
> 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
>



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


Re: [Dev] [App Factory] User's invited to an application does not see the application until re login

2015-03-12 Thread Manjula Rathnayake
Hi Gayan,

It is JMS pub/sub model we have implemented for showing error messages to
the users with guaranteed delivery.

thank you.

On Thu, Mar 12, 2015 at 2:50 PM, Gayan Dhanushka  wrote:

> Hi Manjula,
>
> Since we don't send mails when the users are invited to an application as
> of yet we would be needing some other way of doing this if it is essential.
> IMO, a messaging mechanism won't work since this is the logged in user's
> session that we are talking about. Another thing that we can do is to
> notify the user via the user notification wall.
>
> WDYT ?
>
> Regards
>
> On Thu, Mar 12, 2015 at 2:31 PM, Manjula Rathnayake 
> wrote:
>
>> Hi all,
>>
>> IMO, the current behavior is ok because inviting to an application is
>> followed by an email and we can mention to login in and check.
>>
>> But if above is really an issue we need to attend, we should be able to
>> use guaranteed delivery messages to send the new event about new
>> application and update the applications in session.
>>
>> thank you.
>>
>>
>> On Thu, Mar 12, 2015 at 2:13 PM, Gayan Dhanushka  wrote:
>>
>>> Hi all,
>>>
>>> Let's look at a simple scenario.
>>>
>>> User A and User B logs into AF. User A creates an application and invite
>>> user B into that application. Currently until user B logs out and login, he
>>> does not see the application. This is due to keeping user's application
>>> information in the session. The application information in the session is
>>> updated only when the user logs in.
>>>
>>> One thing that can be done is we can have a back end cache to track the
>>> users who are invited to an application and during the user home page load,
>>> a back end check can be done to check the cache and update the user home by
>>> reloading the application list.
>>>
>>> But this may introduce a overhead to the user home page.
>>>
>>> WDYT ?
>>>
>>> Regards
>>> Gayan
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>> Manjula Rathnayaka
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 77 743 1987
>>
>
>
>
> --
> 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
>



-- 
Manjula Rathnayaka
Software Engineer
WSO2, Inc.
Mobile:+94 77 743 1987
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppFactory] Error while creating an application

2015-03-12 Thread Fathima Dilhasha
Hi,

I am trying to create an application in the private cloud deployed in the
remote machine at 192.168.57.4

It gives the following error.

*TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
{module/lifecycle/lifecycle.jag} -  Error in calling manage generic
artifact service JavaException:
org.jaggeryjs.scriptengine.exceptions.ScriptException: Error occured while
invoking the service {module/lifecycle/lifecycle.jag}*
*TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
{module/application/add/add.jag} -  Error while storing resource *
*undefined {module/application/add/add.jag}*
*TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
{module/application/add/add.jag} -  Error while creating application *
*Error while storing registry resource {module/application/add/add.jag}*
*TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
{JAGGERY.site.blocks.application.add.ajax.add:jag} -  Error while creating
the applicationundefined {JAGGERY.site.blocks.application.add.ajax.add:jag}*
*TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.JavaScriptException: Error while creating the
applicationundefined (/appmgt/site/blocks/application/add/ajax/add.jag#89)
{org.jaggeryjs.jaggery.core.manager.WebAppManager}*
*org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.JavaScriptException: Error while creating the
applicationundefined (/appmgt/site/blocks/application/add/ajax/add.jag#89)*
* at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)*
* at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)*
* at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)*
* at
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)*
* at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)*
* at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
* at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)*
* at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)*
* at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
* at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)*
* at
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)*
* at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)*
* at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
* at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)*
* at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)*
* at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)*
* at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)*
* at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)*
* at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)*
* at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)*
* at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)*
* at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)*
* at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)*
* at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)*
* at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)*
* at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)*
* at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)*
* at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)*
* at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)*
* at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)*
* at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)*
* at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)*
* at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)*
* at java.lang.Thread.run(Thread.java:744)*
*Caused by: org.mozilla.javascript.JavaScriptException: Error while
creating the applicationundefined
(/appmgt/site/blocks/application/add/ajax/add.jag#89)*
* at
org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0._c_anonymous_1(/appmgt/site/blocks/application/add/ajax/add.jag:89)*
* at
org.jaggery

Re: [Dev] [AppFactory] Error while creating an application

2015-03-12 Thread Chathurika De Silva
Hi

There a reported jira [1] which is similar to your exception. Maybe the
related fix will be a help to you

[1] https://wso2.org/jira/browse/APPFAC-2717

Thank You
Erandi

On Thu, Mar 12, 2015 at 3:06 PM, Fathima Dilhasha  wrote:

> Hi,
>
> I am trying to create an application in the private cloud deployed in the
> remote machine at 192.168.57.4
>
> It gives the following error.
>
> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
> {module/lifecycle/lifecycle.jag} -  Error in calling manage generic
> artifact service JavaException:
> org.jaggeryjs.scriptengine.exceptions.ScriptException: Error occured while
> invoking the service {module/lifecycle/lifecycle.jag}*
> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
> {module/application/add/add.jag} -  Error while storing resource *
> *undefined {module/application/add/add.jag}*
> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
> {module/application/add/add.jag} -  Error while creating application *
> *Error while storing registry resource {module/application/add/add.jag}*
> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
> {JAGGERY.site.blocks.application.add.ajax.add:jag} -  Error while creating
> the applicationundefined {JAGGERY.site.blocks.application.add.ajax.add:jag}*
> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>  org.mozilla.javascript.JavaScriptException: Error while creating the
> applicationundefined (/appmgt/site/blocks/application/add/ajax/add.jag#89)
> {org.jaggeryjs.jaggery.core.manager.WebAppManager}*
> *org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.JavaScriptException: Error while creating the
> applicationundefined (/appmgt/site/blocks/application/add/ajax/add.jag#89)*
> * at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)*
> * at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)*
> * at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)*
> * at
> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)*
> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)*
> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)*
> * at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)*
> * at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
> * at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)*
> * at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)*
> * at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
> * at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)*
> * at
> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)*
> * at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)*
> * at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
> * at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)*
> * at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)*
> * at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)*
> * at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)*
> * at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)*
> * at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)*
> * at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)*
> * at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)*
> * at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)*
> * at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)*
> * at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)*
> * at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)*
> * at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)*
> * at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)*
> * at
> java.util.

Re: [Dev] [AppFactory] Error while creating an application

2015-03-12 Thread Fathima Dilhasha
Thank you. I'll have a look.

Regards,
Dilhasha

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

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

On Thu, Mar 12, 2015 at 3:11 PM, Chathurika De Silva 
wrote:

> Hi
>
> There a reported jira [1] which is similar to your exception. Maybe the
> related fix will be a help to you
>
> [1] https://wso2.org/jira/browse/APPFAC-2717
>
> Thank You
> Erandi
>
> On Thu, Mar 12, 2015 at 3:06 PM, Fathima Dilhasha 
> wrote:
>
>> Hi,
>>
>> I am trying to create an application in the private cloud deployed in the
>> remote machine at 192.168.57.4
>>
>> It gives the following error.
>>
>> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
>> {module/lifecycle/lifecycle.jag} -  Error in calling manage generic
>> artifact service JavaException:
>> org.jaggeryjs.scriptengine.exceptions.ScriptException: Error occured while
>> invoking the service {module/lifecycle/lifecycle.jag}*
>> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
>> {module/application/add/add.jag} -  Error while storing resource *
>> *undefined {module/application/add/add.jag}*
>> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
>> {module/application/add/add.jag} -  Error while creating application *
>> *Error while storing registry resource {module/application/add/add.jag}*
>> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
>> {JAGGERY.site.blocks.application.add.ajax.add:jag} -  Error while creating
>> the applicationundefined {JAGGERY.site.blocks.application.add.ajax.add:jag}*
>> *TID: [0] [AF] [2015-03-12 09:24:55,089] ERROR
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>>  org.mozilla.javascript.JavaScriptException: Error while creating the
>> applicationundefined (/appmgt/site/blocks/application/add/ajax/add.jag#89)
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}*
>> *org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.JavaScriptException: Error while creating the
>> applicationundefined (/appmgt/site/blocks/application/add/ajax/add.jag#89)*
>> * at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)*
>> * at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)*
>> * at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)*
>> * at
>> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)*
>> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)*
>> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)*
>> * at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)*
>> * at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
>> * at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)*
>> * at
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)*
>> * at
>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
>> * at
>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)*
>> * at
>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)*
>> * at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)*
>> * at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
>> * at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)*
>> * at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)*
>> * at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)*
>> * at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)*
>> * at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)*
>> * at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)*
>> * at
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)*
>> * at
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)*
>> * at
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)*
>> * at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)*
>> * at
>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)*
>> * at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)*
>> * at
>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)*
>> * at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)*
>> * at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)*
>> * at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(Abstr

Re: [Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-12 Thread Dimuthu Leelarathne
Hi all,

The idea is to check the flag when the block layer is called and clear the
session when it is called. That is until we have web sockets. Lets not over
engineer stuff.

thanks,
dimuthu


On Thu, Mar 12, 2015 at 2:51 PM, Anuruddha Premalal 
wrote:

>
>
> On Thu, Mar 12, 2015 at 12:58 PM, Gayan Dhanushka  wrote:
>
>> Hi Anuruddha/ Danushka,
>>
>> FYI, I checked the code again and noticed that calling getAllAppsOfUser
>> from the user home page is not needed anymore. It is used in the eventing
>> page template. So updating the "application_list" in session
>>
>
> IMO we shouldn't keep the application_list in the *session*. Otherwise
> this will cause the issue that Danushka explained earlier. Shall we move it
> to *application* cache and do proper invalidation on update/delete?
>
> from the notification wall template is enough. Further more
>> "application_list" is not the attribtue in the session which is used to
>> draw the user home page.
>>
>
> Are we using this application_list somewhere else?. It's not correct to
> have the application_list in the *session* cache.
>
>
>> It is "USER_HOME_CACHE" attribute the one which is used.
>>
>> So I think it is safe to remove the recurring getAllAppsOfUser from the
>> user home page.
>>
>
> Check whether the  USER_HOME_CACHE have the application creation status;
> it shouldn't be cached since it's a dynamic parameter; in that case you'll
> have to getapplication info from  the back-end.
>
>
>>
>
>>
> WDYT ?
>>
>> Regards
>> Gayan
>>
>> On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal 
>> wrote:
>>
>>> Hi Gayan,
>>>
>>> IMO we should cache user data in the session cache and the application
>>> data should go to the application level cache. This way we can get rid of
>>> unwanted back-end calls and do proper cache invalidation.
>>>
>>> So IMO the proper way to do this is to have a clear data separation in
>>> caching layers rather than increasing callbacktime.
>>>
>>> WDYT?
>>>
>>> Regards,
>>> Anuruddha.
>>>
>>> On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka 
>>> wrote:
>>>
 Hi Danushka,

 Thanks for the useful information. Yes. The cache is in the session. Me
 too believe that the 1 minute time difference is too soon.

 +1 for increasing it.

 Regards
 Gayan

 On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando 
 wrote:

> I didn't check the code. However I guess cache is in session. Is that
> right? So say A logs in to AF and do whatever stuff. And B logs in to AF
> and create an application foo and add A to that foo application. Then 
> there
> is no way to update the cache unless we read it from data layer time to
> time. If this is not the case picture in my head is wrong so please 
> correct
> it.
> However 1 minute seems too soon.
>
>1. Make it configurable
>2. Increase it to somewhere like 10 - 15 minutes.
>
> WDYT?
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka 
> wrote:
>
>> Hi all,
>>
>> I noticed $subject in the index page. Any particular reason for
>> having this ? Since we have a cache for user home data, IMO we do not 
>> need
>> this anymore. Data from the back end can only be read initially.
>>
>> Regards
>> Gayan
>>
>> --
>> 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
>>
>
>


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


>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94710461070
>>> Web site : www.regilandvalley.com
>>>
>>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94710461070
> Web site : www.regilandvalley.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Dimuthu Leelarathne
Architect & Product Lead of App Factory

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com
Mobile : 0773661935

Lean . Ente

[Dev] [App-Manager] Query On APP-Manager Web App Description

2015-03-12 Thread Yasassri Ratnayake
Hi AM Team,

When creating a webapp I observed a field named description, but after
creating the webapp this field is not visible in the publisher or store.

What is the intended purpose of this field. Shouldn't description be
visible in the store to the end-users? Based on this observation I have
created the following JIRA. [1]


[1] - https://wso2.org/jira/browse/APPM-535

With Regards,
-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168*
*Blog : http://yasassriratnayake.blogspot.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Dinesh J Weerakkody

2015-03-12 Thread Dilan Udara Ariyaratne
Congratulations Dinesh !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. 
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Mar 12, 2015 at 12:21 PM, Harsha Kumara  wrote:

> Congratulations Dinesh!
>
> On Thu, Mar 12, 2015 at 12:15 PM, Prasanna Dangalla 
> wrote:
>
>> Congratulations...
>>
>> On Thu, Mar 12, 2015 at 11:08 AM, Sam Sivayogam  wrote:
>>
>>> Congrats !!!
>>>
>>> On Thu, Mar 12, 2015 at 10:26 AM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Congratulations Dinesh!

 On Thu, Mar 12, 2015 at 10:22 AM, Tharindu Edirisinghe <
 tharin...@wso2.com> wrote:

> Congratulations Dinesh !!
>
> On Thu, Mar 12, 2015 at 10:20 AM, Tharindu Dharmarathna <
> tharin...@wso2.com> wrote:
>
>> Congratz dinesh ! .
>>
>> On Thu, Mar 12, 2015 at 10:18 AM, Asok Perera  wrote:
>>
>>> Congratz Dinesh !
>>>
>>> *Asok Aravinda Perera*
>>> Software Engineer
>>> WSO2, Inc.;http://wso2.com/
>>> 
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94722241032
>>>
>>> On Thu, Mar 12, 2015 at 10:05 AM, Kasun De Silva 
>>> wrote:
>>>
 Congratz !!!

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Thu, Mar 12, 2015 at 10:03 AM, Niranda Perera 
 wrote:

> Congrats machan! :-)
>
> On Thu, Mar 12, 2015 at 10:01 AM, Jerad Rutnam 
> wrote:
>
>> Congratulations Dinesh! :)
>>
>> On Thu, Mar 12, 2015 at 9:51 AM, Madusanka Premaratne <
>> madusan...@wso2.com> wrote:
>>
>>> Congrats Dinesh.!!!
>>>
>>> On Thu, Mar 12, 2015 at 9:45 AM, Thilini Cooray <
>>> thili...@wso2.com> wrote:
>>>
 Congratulations, Dinesh.

 On Thu, Mar 12, 2015 at 9:42 AM, Chanuka Dissanayake <
 chan...@wso2.com> wrote:

> Congratulations Dinesh..!
>
> On Thu, Mar 12, 2015 at 9:40 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Congratulations Dinesh ..!
>>
>> On Thu, Mar 12, 2015 at 8:59 AM, Lasitha Wattaladeniya <
>> lasit...@wso2.com> wrote:
>>
>>> Congratulations Dinesh :) !
>>>
>>> On Thu, Mar 12, 2015 at 8:53 AM, Vijitha Ekanayake <
>>> vijit...@wso2.com> wrote:
>>>
 Congratulations Dinesh !!!

 On Thu, Mar 12, 2015 at 8:41 AM, Tharik Kanaka <
 tha...@wso2.com> wrote:

> Congratulations Dinesh
>
> On Thu, Mar 12, 2015 at 8:33 AM, Ravindra Ranwala <
> ravin...@wso2.com> wrote:
>
>> Congratulations Dinesh !
>>
>> On Thu, Mar 12, 2015 at 8:30 AM, Chamalee De Silva <
>> chama...@wso2.com> wrote:
>>
>>> congrats!
>>>
>>> On Thu, Mar 12, 2015 at 8:24 AM, Abimaran Kugathasan <
>>> abima...@wso2.com> wrote:
>>>
 Congrats!

 On Thu, Mar 12, 2015 at 8:17 AM, Nuwan Dias <
 nuw...@wso2.com> wrote:

> Hi,
>
> It is with great pleasure we welcome DineshW as a WSO2
> Committer. @Dinesh, congratulations and keep up the good 
> work!
>
> Thanks,
> NuwanD.
>
> --
> Nuwan Dias
>
> Associate Tech 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
>
>


 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data & APIs Technologies Team
 Mobile : +94 773922820

 
 

Re: [Dev] WSO2 Committers += Dinesh J Weerakkody

2015-03-12 Thread Supun Sethunga
Congratz Dinesh!

On Thu, Mar 12, 2015 at 10:26 AM, Kalpa Welivitigoda 
wrote:

> Congratulations Dinesh!
>
> On Thu, Mar 12, 2015 at 10:22 AM, Tharindu Edirisinghe  > wrote:
>
>> Congratulations Dinesh !!
>>
>> On Thu, Mar 12, 2015 at 10:20 AM, Tharindu Dharmarathna <
>> tharin...@wso2.com> wrote:
>>
>>> Congratz dinesh ! .
>>>
>>> On Thu, Mar 12, 2015 at 10:18 AM, Asok Perera  wrote:
>>>
 Congratz Dinesh !

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 
 lean.enterprise.middleware

 Mobile: +94722241032

 On Thu, Mar 12, 2015 at 10:05 AM, Kasun De Silva 
 wrote:

> Congratz !!!
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email   : kas...@wso2.com
> mobile : +94 77 794 4260
>
>
> On Thu, Mar 12, 2015 at 10:03 AM, Niranda Perera 
> wrote:
>
>> Congrats machan! :-)
>>
>> On Thu, Mar 12, 2015 at 10:01 AM, Jerad Rutnam 
>> wrote:
>>
>>> Congratulations Dinesh! :)
>>>
>>> On Thu, Mar 12, 2015 at 9:51 AM, Madusanka Premaratne <
>>> madusan...@wso2.com> wrote:
>>>
 Congrats Dinesh.!!!

 On Thu, Mar 12, 2015 at 9:45 AM, Thilini Cooray 
 wrote:

> Congratulations, Dinesh.
>
> On Thu, Mar 12, 2015 at 9:42 AM, Chanuka Dissanayake <
> chan...@wso2.com> wrote:
>
>> Congratulations Dinesh..!
>>
>> On Thu, Mar 12, 2015 at 9:40 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Congratulations Dinesh ..!
>>>
>>> On Thu, Mar 12, 2015 at 8:59 AM, Lasitha Wattaladeniya <
>>> lasit...@wso2.com> wrote:
>>>
 Congratulations Dinesh :) !

 On Thu, Mar 12, 2015 at 8:53 AM, Vijitha Ekanayake <
 vijit...@wso2.com> wrote:

> Congratulations Dinesh !!!
>
> On Thu, Mar 12, 2015 at 8:41 AM, Tharik Kanaka <
> tha...@wso2.com> wrote:
>
>> Congratulations Dinesh
>>
>> On Thu, Mar 12, 2015 at 8:33 AM, Ravindra Ranwala <
>> ravin...@wso2.com> wrote:
>>
>>> Congratulations Dinesh !
>>>
>>> On Thu, Mar 12, 2015 at 8:30 AM, Chamalee De Silva <
>>> chama...@wso2.com> wrote:
>>>
 congrats!

 On Thu, Mar 12, 2015 at 8:24 AM, Abimaran Kugathasan <
 abima...@wso2.com> wrote:

> Congrats!
>
> On Thu, Mar 12, 2015 at 8:17 AM, Nuwan Dias <
> nuw...@wso2.com> wrote:
>
>> Hi,
>>
>> It is with great pleasure we welcome DineshW as a WSO2
>> Committer. @Dinesh, congratulations and keep up the good 
>> work!
>>
>> Thanks,
>> NuwanD.
>>
>> --
>> Nuwan Dias
>>
>> Associate Tech 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
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
> 
> 
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 Chamalee De Silva

 Software Engineer | WSO2

 E:chama...@wso2.com 
 M :0711540738| http://wso2.com 

 ___
 Dev mailing list
>>

Re: [Dev] [GSoC-2015] Proposal 3: ESB - Netty transport enhancements

2015-03-12 Thread Isuru Ranawaka
Hi Achintha,

Ok lets meet I will inform you.

Thanks

On Thu, Mar 12, 2015 at 9:51 AM, Achintha Reemal  wrote:

> Hi Isuru,
>
> Will it be possible to have a little discussion on how Netty Transport for
> Pass-thru has being implemented, as it would help me grasp the intentions
> behind the project deliverables.
>
> Regards
>
> On Tue, Mar 10, 2015 at 1:58 PM, Isuru Ranawaka  wrote:
>
>> Hi Achintha,
>>
>> You can find source code from [1]
>>
>> [1]https://github.com/isururanawaka/wso2-synapse/tree/nettytransport
>>
>> On Tue, Mar 10, 2015 at 1:55 PM, Achintha Reemal 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> I have followed the articles that you have provided and gained a general
>>> level of understanding on how the message flow works.To get an idea on how
>>> the current Netty transport is being implemented, where can I find the
>>> source of this implementation?.
>>>
>>> Regards,
>>>
>>> On Tue, Mar 3, 2015 at 8:39 PM, Achintha Reemal 
>>> wrote:
>>>
 Hi Isuru,

 Thank you for the resources.

 Regards,


 On Tue, Mar 3, 2015 at 5:50 PM, Isuru Ranawaka  wrote:

> Hi Achintha,
>
> Thanks for your interest in this project and as a start you need to
> understand the ESB architecture and mesage flow in pass through transport.
> For that you can read below resource and feel free to ask any question
> regarding this.
>
> [1]
> http://wso2.com/library/articles/2013/12/demystifying-wso2-esb-pass-through-transport-part-i/
> [2] http://isurur.blogspot.com/2014/07/wso2-esb-message-flow.html
>
> Thanks
> IsuruR
>
>
> On Tue, Mar 3, 2015 at 5:38 PM, Achintha Reemal 
> wrote:
>
>> Hi,
>>
>> I am Achintha Reemal, an Undergraduate from Department of Computer
>> Science and Engineering, University of Moratuwa. I'm currently working as
>> an Intern at WSO2.
>>
>> I am interested in the following proposal [1]
>> 
>>  and
>> look forward to contribute for its development.
>>
>> [1]
>> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal3:ESB-Nettytransportenhancements
>>
>> Regards,
>> --
>> *G.H.Achintha Reemal*
>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>> | University of Moratuwa*
>> *Intern Software Engineer**| WSO2 Lanka (Pvt) Ltd.*
>> *Blog|** rimmythepaperclip.blogspot.com
>> *
>> *Twitter|* @rimmynuts(A.Reemal)
>> *LinkedIn|* lk.linkedin.com/in/achinthareemal/
>> *Mobile| *0715471301
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards
> Isuru Ranawaka
> M: +94714629880
> Blog : http://isurur.blogspot.com/
>



 --
 *G.H.Achintha Reemal*
 *BSc Eng Undergraduate| Department of Computer Science & Engineering |
 University of Moratuwa*
 *Intern Software Engineer**| WSO2 Lanka (Pvt) Ltd.*
 *Blog|** rimmythepaperclip.blogspot.com
 *
 *Twitter|* @rimmynuts(A.Reemal)
 *LinkedIn|* lk.linkedin.com/in/achinthareemal/
 *Mobile| *0715471301

>>>
>>>
>>>
>>> --
>>> *G.H.Achintha Reemal*
>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering |
>>> University of Moratuwa*
>>> *Intern Software Engineer**| WSO2 Lanka (Pvt) Ltd.*
>>> *Blog|** rimmythepaperclip.blogspot.com
>>> *
>>> *Twitter|* @rimmynuts(A.Reemal)
>>> *LinkedIn|* lk.linkedin.com/in/achinthareemal/
>>> *Mobile| *0715471301
>>>
>>
>>
>>
>> --
>> Best Regards
>> Isuru Ranawaka
>> M: +94714629880
>> Blog : http://isurur.blogspot.com/
>>
>
>
>
> --
> *G.H.Achintha Reemal*
> *BSc Eng Undergraduate| Department of Computer Science & Engineering |
> University of Moratuwa*
> *Intern Software Engineer**| WSO2 Lanka (Pvt) Ltd.*
> *Blog|** rimmythepaperclip.blogspot.com
> *
> *Twitter|* @rimmynuts(A.Reemal)
> *LinkedIn|* lk.linkedin.com/in/achinthareemal/
> *Mobile| *0715471301
>



-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] [Automation] Error at TestSuite - On Finish - Deployment Synchronizer Error

2015-03-12 Thread Maheeka Jayasuriya
Hi Automation Team,

I am getting the below error at the end of integration test execution. Can
you explain the cause of this, and how to avoid?

INFO  [org.wso2.carbon.automation.engine.testlisteners.TestSuiteListener] -
Inside Test Suite Listener - On Finish
INFO
[org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
Inside Test Execution Listener - On Finish
INFO
[org.wso2.carbon.automation.extensions.servers.axis2server.Axis2ServerManager]
- Stopping sample Axis2 server
INFO  [org.apache.synapse.transport.nhttp.HttpCoreNIOListener] - HTTP
Listener Shutdown
INFO  [org.apache.synapse.transport.nhttp.HttpCoreNIOSender] - HTTP Sender
Shutdown
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader]
- [2015-03-12 16:35:16,630]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,630+0530]
INFO  [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient]
- Login Successful
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator]
- User was deleted successfully - testuser11
INFO  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator]
- User was deleted successfully - testuser21
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader]
- [2015-03-12 16:35:16,808]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,808+0530]
INFO  [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient]
- Login Successful
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator]
- Tenant was deleted successfully - wso2.com
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader]
- [2015-03-12 16:35:16,998]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,998+0530]
INFO  [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient]
- Login Successful
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator]
- Tenant was deleted successfully - abc.com
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader]
- [2015-03-12 16:35:17,175]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:17,175+0530]
INFO  [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient]
- Login Successful
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator]
- Tenant was deleted successfully - malintha.com
INFO
[org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
- Shutting down server..
INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
Successfully connected to the server on port 9443
INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
wso2caching-4.2.0 -
file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
INFO  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader]
- [2015-03-12 16:35:17,287]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:17,287+0530]
INFO  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader]
- [2015-03-12 16:35:18,289]  INFO - Ca

Re: [Dev] GSOC2015:PROJECT

2015-03-12 Thread Supun Sethunga
Hi Tharinda,

Please find the comments inline.

I think the major part of this project is create a back end of java code
> created using wrangler script.

Yes.

Wrangler scripts are mostly done by javascript. So I need to convert those
> into java.

Yes. Further, java code should be Apache Spark Transformation. Please refer
my previous mail for details on Spark.

I was not able to find some method. Other ways of doing this is used common
> methods like split,merge.. etc easily find on java. Rest of the methods are
> convert by manually. Is there any method to convert those scripts to java.

You have to come up with a solution and an implementation for this. It is
the core part of the project :)

Feel free to contact us if you need further clarifications.

Regards,
Supun

On Thu, Mar 12, 2015 at 1:04 PM, Tharinda Ehelepola 
wrote:

> Hi,
>
> I think the major part of this project is create a back end of java code
> created using wrangler script. Wrangler scripts are mostly done by
> javascript. So I need to convert those into java. I was not able to find
> some method. Other ways of doing this is used common methods like
> split,merge.. etc easily find on java. Rest of the methods are convert by
> manually. Is there any method to convert those scripts to java.
>
> Thank you.
> Tharinda.
>
> On Wed, Mar 11, 2015 at 3:45 AM, Supun Sethunga  wrote:
>
>> Hi Tharinda,
>>
>> Ultimately, the java code created using the wrangler script (after
>> conversion), should be able to used as an Apache Spark [1] Transformations
>> [2]. (at the back-end)
>>
>> On a side note, please use the WSO2 dev mailing list for any project
>> related communication :)
>>
>> [1] https://spark.apache.org/
>> [2]
>> http://spark.apache.org/docs/1.2.0/programming-guide.html#transformations
>>
>> Regards,
>> Supun
>>
>> On Wed, Mar 11, 2015 at 7:52 AM, Nirmal Fernando  wrote:
>>
>>> Yes, that's exactly what we want !
>>>
>>> On Wed, Mar 11, 2015 at 3:30 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 I checked the libraries on wrangler. I think that you mentioned can be
 done using the libraries. What  I think is get the libraries from wrangler
 and create a back-end for the interface created using jaggery. Wrangler
 script to java converter can be add to the back-end also.

 On Tue, Mar 10, 2015 at 4:10 AM, Nirmal Fernando 
 wrote:

> Remotely connecting to Wrangler (hosted service) is not a good option.
> What we expect is we take their library (it's Open source) and use the API
> to perform the transformations and cleaning. Could you please check the
> feasibility of that?
>
> On Tue, Mar 10, 2015 at 9:34 AM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> I drew what I understood the project to be.
>>
>> If one wants to do data cleaning and transformation he need to
>> connect to the wrangler directly. That is what I mean from the first two
>> blocks. If they have a customized UI you can do data cleaning and
>> transformation using ML also. They don't need to connect to the wrangler.
>> Another thing i realized that is they don't need all the operations in
>> wrangler. They need some specific subset of operations only. What I mean
>> from the bottom block is the UI created using Jaggery interfacing between
>> ML and the wrangler.
>>
>> On Tue, Mar 10, 2015 at 2:16 AM, Nirmal Fernando 
>> wrote:
>>
>>> Hi Tharindu,
>>>
>>> Thanks for the diagram. Do you mind explaining the diagram?
>>>
>>> On Tue, Mar 10, 2015 at 3:27 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Hi,

 Here I attached a simple design of project development. Can you
 give me some comments about this.

 Thank you.

 On Mon, Mar 9, 2015 at 2:16 AM, Nirmal Fernando 
 wrote:

> Our ultimate goal is to provide data cleaning and transformation.
> Hence, Tharindu, you need to pick the things that is sufficient to 
> perform
> those operations.
>
> What we prefer is a D3 based UI.
>
> On Sun, Mar 8, 2015 at 10:34 PM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> Wrangler already has a UI. I think that you excepting customized
>> UI for Wrangler using Jaggery. Which kind of conditions and options 
>> do you
>> excepting from that UI.
>>
>> Thanks.
>>
>> On Sat, Mar 7, 2015 at 2:13 PM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Thanks for your response. I have some idea about both Data
>>> Wrangler API and Jaggery. I'll try to bulid a UI.
>>>
>>> Thanks.
>>>
>>> On Sat, Mar 7, 2015 at 11:04 AM, Nirmal Fernando <

[Dev] [IS] Error injecting: org.apache.maven.reporting.exec.DefaultMavenReportExecutor java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter

2015-03-12 Thread Chanuka Dissanayake
Hi,

I'm getting following error when building the git product-is, I have
successfully build the carbon identity and  the carbon-commons respectively.
java version "1.6.0_65"

[INFO] --- maven-site-plugin:3.0:site
(create-documentation-module) @ wso2is ---
[WARNING] Error injecting:
org.apache.maven.reporting.exec.DefaultMavenReportExecutor
java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2446)
at java.lang.Class.getDeclaredConstructors(Class.java:1872)
at
com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245)
at
com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99)
at
com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:653)
at
com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:863)
at
com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:790)
at
com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:278)
at
com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:210)
at
com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:986)
at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1019)
at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:982)
at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
at
org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
at
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
at
org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133)
at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
at
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054)
at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:240)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:234)
at
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:234)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflec

Re: [Dev] WSO2 Committers += Dinesh J Weerakkody

2015-03-12 Thread Ashan Dhananjaya
Congratulations Dinesh!

Ashan Dhananjaya Kumara
Trainee Software Engineer, WSO2 Inc.
Inc: *WSO2 Inc. *
Phone : +94715547461
Blog : http://ashandhananjaya.blogspot.com/
Twitter  : https://twitter.com/Dhananjaya92
Say ello :https://ello.co/ashandk





On Thu, Mar 12, 2015 at 4:53 PM, Supun Sethunga  wrote:

> Congratz Dinesh!
>
> On Thu, Mar 12, 2015 at 10:26 AM, Kalpa Welivitigoda 
> wrote:
>
>> Congratulations Dinesh!
>>
>> On Thu, Mar 12, 2015 at 10:22 AM, Tharindu Edirisinghe <
>> tharin...@wso2.com> wrote:
>>
>>> Congratulations Dinesh !!
>>>
>>> On Thu, Mar 12, 2015 at 10:20 AM, Tharindu Dharmarathna <
>>> tharin...@wso2.com> wrote:
>>>
 Congratz dinesh ! .

 On Thu, Mar 12, 2015 at 10:18 AM, Asok Perera  wrote:

> Congratz Dinesh !
>
> *Asok Aravinda Perera*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94722241032
>
> On Thu, Mar 12, 2015 at 10:05 AM, Kasun De Silva 
> wrote:
>
>> Congratz !!!
>>
>> *Kasun de Silva*
>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>> lean.enterprise.middleware
>>
>> email   : kas...@wso2.com
>> mobile : +94 77 794 4260
>>
>>
>> On Thu, Mar 12, 2015 at 10:03 AM, Niranda Perera 
>> wrote:
>>
>>> Congrats machan! :-)
>>>
>>> On Thu, Mar 12, 2015 at 10:01 AM, Jerad Rutnam 
>>> wrote:
>>>
 Congratulations Dinesh! :)

 On Thu, Mar 12, 2015 at 9:51 AM, Madusanka Premaratne <
 madusan...@wso2.com> wrote:

> Congrats Dinesh.!!!
>
> On Thu, Mar 12, 2015 at 9:45 AM, Thilini Cooray  > wrote:
>
>> Congratulations, Dinesh.
>>
>> On Thu, Mar 12, 2015 at 9:42 AM, Chanuka Dissanayake <
>> chan...@wso2.com> wrote:
>>
>>> Congratulations Dinesh..!
>>>
>>> On Thu, Mar 12, 2015 at 9:40 AM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Congratulations Dinesh ..!

 On Thu, Mar 12, 2015 at 8:59 AM, Lasitha Wattaladeniya <
 lasit...@wso2.com> wrote:

> Congratulations Dinesh :) !
>
> On Thu, Mar 12, 2015 at 8:53 AM, Vijitha Ekanayake <
> vijit...@wso2.com> wrote:
>
>> Congratulations Dinesh !!!
>>
>> On Thu, Mar 12, 2015 at 8:41 AM, Tharik Kanaka <
>> tha...@wso2.com> wrote:
>>
>>> Congratulations Dinesh
>>>
>>> On Thu, Mar 12, 2015 at 8:33 AM, Ravindra Ranwala <
>>> ravin...@wso2.com> wrote:
>>>
 Congratulations Dinesh !

 On Thu, Mar 12, 2015 at 8:30 AM, Chamalee De Silva <
 chama...@wso2.com> wrote:

> congrats!
>
> On Thu, Mar 12, 2015 at 8:24 AM, Abimaran Kugathasan <
> abima...@wso2.com> wrote:
>
>> Congrats!
>>
>> On Thu, Mar 12, 2015 at 8:17 AM, Nuwan Dias <
>> nuw...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> It is with great pleasure we welcome DineshW as a WSO2
>>> Committer. @Dinesh, congratulations and keep up the good 
>>> work!
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Associate Tech 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
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 773922820
>>
>> 
>> 
>> 
>> 
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http:

Re: [Dev] WSO2 Committers += Dinesh J Weerakkody

2015-03-12 Thread Dakshika Jayathilaka
Congratulations Dinesh !!!

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Thu, Mar 12, 2015 at 5:29 PM, Ashan Dhananjaya  wrote:

> Congratulations Dinesh!
>
> Ashan Dhananjaya Kumara
> Trainee Software Engineer, WSO2 Inc.
> Inc: *WSO2 Inc. *
> Phone : +94715547461
> Blog : http://ashandhananjaya.blogspot.com/
> Twitter  : https://twitter.com/Dhananjaya92
> Say ello :https://ello.co/ashandk
>
>
>
>
>
> On Thu, Mar 12, 2015 at 4:53 PM, Supun Sethunga  wrote:
>
>> Congratz Dinesh!
>>
>> On Thu, Mar 12, 2015 at 10:26 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Congratulations Dinesh!
>>>
>>> On Thu, Mar 12, 2015 at 10:22 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 Congratulations Dinesh !!

 On Thu, Mar 12, 2015 at 10:20 AM, Tharindu Dharmarathna <
 tharin...@wso2.com> wrote:

> Congratz dinesh ! .
>
> On Thu, Mar 12, 2015 at 10:18 AM, Asok Perera  wrote:
>
>> Congratz Dinesh !
>>
>> *Asok Aravinda Perera*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>>
>> Mobile: +94722241032
>>
>> On Thu, Mar 12, 2015 at 10:05 AM, Kasun De Silva 
>> wrote:
>>
>>> Congratz !!!
>>>
>>> *Kasun de Silva*
>>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email   : kas...@wso2.com
>>> mobile : +94 77 794 4260
>>>
>>>
>>> On Thu, Mar 12, 2015 at 10:03 AM, Niranda Perera 
>>> wrote:
>>>
 Congrats machan! :-)

 On Thu, Mar 12, 2015 at 10:01 AM, Jerad Rutnam 
 wrote:

> Congratulations Dinesh! :)
>
> On Thu, Mar 12, 2015 at 9:51 AM, Madusanka Premaratne <
> madusan...@wso2.com> wrote:
>
>> Congrats Dinesh.!!!
>>
>> On Thu, Mar 12, 2015 at 9:45 AM, Thilini Cooray <
>> thili...@wso2.com> wrote:
>>
>>> Congratulations, Dinesh.
>>>
>>> On Thu, Mar 12, 2015 at 9:42 AM, Chanuka Dissanayake <
>>> chan...@wso2.com> wrote:
>>>
 Congratulations Dinesh..!

 On Thu, Mar 12, 2015 at 9:40 AM, Thusitha Thilina Dayaratne <
 thusit...@wso2.com> wrote:

> Congratulations Dinesh ..!
>
> On Thu, Mar 12, 2015 at 8:59 AM, Lasitha Wattaladeniya <
> lasit...@wso2.com> wrote:
>
>> Congratulations Dinesh :) !
>>
>> On Thu, Mar 12, 2015 at 8:53 AM, Vijitha Ekanayake <
>> vijit...@wso2.com> wrote:
>>
>>> Congratulations Dinesh !!!
>>>
>>> On Thu, Mar 12, 2015 at 8:41 AM, Tharik Kanaka <
>>> tha...@wso2.com> wrote:
>>>
 Congratulations Dinesh

 On Thu, Mar 12, 2015 at 8:33 AM, Ravindra Ranwala <
 ravin...@wso2.com> wrote:

> Congratulations Dinesh !
>
> On Thu, Mar 12, 2015 at 8:30 AM, Chamalee De Silva <
> chama...@wso2.com> wrote:
>
>> congrats!
>>
>> On Thu, Mar 12, 2015 at 8:24 AM, Abimaran Kugathasan <
>> abima...@wso2.com> wrote:
>>
>>> Congrats!
>>>
>>> On Thu, Mar 12, 2015 at 8:17 AM, Nuwan Dias <
>>> nuw...@wso2.com> wrote:
>>>
 Hi,

 It is with great pleasure we welcome DineshW as a WSO2
 Committer. @Dinesh, congratulations and keep up the good 
 work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

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


>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> 
>>> 

[Dev] WSDL generation for SOAP webservice ISSUE

2015-03-12 Thread Pubudu Dodangoda
I am trying to write a carbon component by referring link



I can generate the correct WSDL file for a simple service
But when the service class is kind of complex, I get the following issue,
when trying to test the wsdl using SOAP UI

*Source:* https://10.100.4.135:9443/services/DashboardAdminService?wsdl
*Error:* type 'Enum@http://www.w3.org/2001/XMLSchema' not found.

I googled the issue and found this on stackoverflow


But I am unable to solve the issue
What can I do to solve this?

Note- I think the problem is when trying to convert complex objects(objects
inside objects) into xml
I have attached below the WSDL file here, in it, the "widgets" element is a
complex object in the corresponding service class

Thank You and Kind Regards
-- 
Pubudu Dodangoda
BSc Engineering(Hon's) Undergraduate
Department of Computer Science Engineering
University of Moratuwa
0716053681 / 0775192994
http://schemas.xmlsoap.org/wsdl/"; xmlns:ns1="http://org.apache.axis2/xsd"; xmlns:ns="http://admin.dashboard.analytics.carbon.wso2.org"; xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; targetNamespace="http://admin.dashboard.analytics.carbon.wso2.org";>

DashboardAdminService

http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>











http://context.carbon.wso2.org/xsd";>








http://context.carbon.wso2.org/xsd"; xmlns:ax24="http://data.admin.dashboard.analytics.carbon.wso2.org/xsd"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://admin.dashboard.analytics.carbon.wso2.org";>
http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>
http://context.carbon.wso2.org/xsd";>





























































































http://schemas.xmlsoap.org/soap/http"; style="document">






































http://schemas.xmlsoap.org/soap/http"; style="document">























































  

Re: [Dev] [ESB] [Automation] Error at TestSuite - On Finish - Deployment Synchronizer Error

2015-03-12 Thread Dimuthu De Lanerolle
Hi Maheeka,

Did you try whats suggest in the following mail thread?

[1]  [Dev]
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException is
throwing GIT built apim

Regards

On Thu, Mar 12, 2015 at 5:02 PM, Maheeka Jayasuriya 
wrote:

> Hi Automation Team,
>
> I am getting the below error at the end of integration test execution. Can
> you explain the cause of this, and how to avoid?
>
> INFO  [org.wso2.carbon.automation.engine.testlisteners.TestSuiteListener]
> - Inside Test Suite Listener - On Finish
> INFO
> [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
> Inside Test Execution Listener - On Finish
> INFO
> [org.wso2.carbon.automation.extensions.servers.axis2server.Axis2ServerManager]
> - Stopping sample Axis2 server
> INFO  [org.apache.synapse.transport.nhttp.HttpCoreNIOListener] - HTTP
> Listener Shutdown
> INFO  [org.apache.synapse.transport.nhttp.HttpCoreNIOSender] - HTTP Sender
> Shutdown
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
> INFO
> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> [2015-03-12 16:35:16,630]  INFO - CarbonAuthenticationUtil
> 'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,630+0530]
> INFO
> [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
> Login Successful
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
> INFO
> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
> User was deleted successfully - testuser11
> INFO
> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
> User was deleted successfully - testuser21
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
> INFO
> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> [2015-03-12 16:35:16,808]  INFO - CarbonAuthenticationUtil
> 'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,808+0530]
> INFO
> [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
> Login Successful
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
> INFO
> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
> Tenant was deleted successfully - wso2.com
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
> INFO
> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> [2015-03-12 16:35:16,998]  INFO - CarbonAuthenticationUtil
> 'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,998+0530]
> INFO
> [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
> Login Successful
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
> INFO
> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
> Tenant was deleted successfully - abc.com
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
> INFO
> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> [2015-03-12 16:35:17,175]  INFO - CarbonAuthenticationUtil
> 'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:17,175+0530]
> INFO
> [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
> Login Successful
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
> INFO
> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
> Tenant was deleted successfully - malintha.com
> INFO
> [org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
> - Shutting down server..
> INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
> Successfully connected to the server on port 9443
> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
> wso2caching-4.2.0 -
> file:/Users/maheeka/.m2/repos

Re: [Dev] [App Factory] User's invited to an application does not see the application until re login

2015-03-12 Thread Dimuthu Leelarathne
Hi Guys,

Don't over engineer. Please look at famous websites. Look how GitHub handle
stuff.

thanks,
dimuthu


On Thu, Mar 12, 2015 at 2:54 PM, Manjula Rathnayake 
wrote:

> Hi Gayan,
>
> It is JMS pub/sub model we have implemented for showing error messages to
> the users with guaranteed delivery.
>
> thank you.
>
> On Thu, Mar 12, 2015 at 2:50 PM, Gayan Dhanushka  wrote:
>
>> Hi Manjula,
>>
>> Since we don't send mails when the users are invited to an application as
>> of yet we would be needing some other way of doing this if it is essential.
>> IMO, a messaging mechanism won't work since this is the logged in user's
>> session that we are talking about. Another thing that we can do is to
>> notify the user via the user notification wall.
>>
>> WDYT ?
>>
>> Regards
>>
>> On Thu, Mar 12, 2015 at 2:31 PM, Manjula Rathnayake 
>> wrote:
>>
>>> Hi all,
>>>
>>> IMO, the current behavior is ok because inviting to an application is
>>> followed by an email and we can mention to login in and check.
>>>
>>> But if above is really an issue we need to attend, we should be able to
>>> use guaranteed delivery messages to send the new event about new
>>> application and update the applications in session.
>>>
>>> thank you.
>>>
>>>
>>> On Thu, Mar 12, 2015 at 2:13 PM, Gayan Dhanushka 
>>> wrote:
>>>
 Hi all,

 Let's look at a simple scenario.

 User A and User B logs into AF. User A creates an application and
 invite user B into that application. Currently until user B logs out and
 login, he does not see the application. This is due to keeping user's
 application information in the session. The application information in the
 session is updated only when the user logs in.

 One thing that can be done is we can have a back end cache to track the
 users who are invited to an application and during the user home page load,
 a back end check can be done to check the cache and update the user home by
 reloading the application list.

 But this may introduce a overhead to the user home page.

 WDYT ?

 Regards
 Gayan

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

>>>
>>>
>>>
>>> --
>>> Manjula Rathnayaka
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 77 743 1987
>>>
>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> Manjula Rathnayaka
> Software Engineer
> WSO2, Inc.
> Mobile:+94 77 743 1987
>



-- 
Dimuthu Leelarathne
Architect & Product Lead of App Factory

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com
Mobile : 0773661935

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


Re: [Dev] WSDL generation for SOAP webservice ISSUE

2015-03-12 Thread Anjana Fernando
Hi Pubudu,

Maybe Enums are not supported in Axis2, maybe Sagara may know more about
this. As a quick workaround, avoid using Enums in the service and use
something else to represent that, either a string value or something
suitable.

Cheers,
Anjana.

On Thu, Mar 12, 2015 at 5:36 PM, Pubudu Dodangoda  wrote:

> I am trying to write a carbon component by referring link
> 
>
>
> I can generate the correct WSDL file for a simple service
> But when the service class is kind of complex, I get the following issue,
> when trying to test the wsdl using SOAP UI
>
> *Source:* https://10.100.4.135:9443/services/DashboardAdminService?wsdl
> *Error:* type 'Enum@http://www.w3.org/2001/XMLSchema' not found.
>
> I googled the issue and found this on stackoverflow
> 
>
> But I am unable to solve the issue
> What can I do to solve this?
>
> Note- I think the problem is when trying to convert complex
> objects(objects inside objects) into xml
> I have attached below the WSDL file here, in it, the "widgets" element is
> a complex object in the corresponding service class
>
> Thank You and Kind Regards
> --
> Pubudu Dodangoda
> BSc Engineering(Hon's) Undergraduate
> Department of Computer Science Engineering
> University of Moratuwa
> 0716053681 / 0775192994
>



-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] [Automation] Error at TestSuite - On Finish - Deployment Synchronizer Error

2015-03-12 Thread Krishantha Samaraweera
Hi Maheeka,

Test framework shutdown the server forcefully at the end all test suite
execution. This error is thrown when forcefully shutting down the server.

You better manually shutdown the ESB server and check this.

Thanks,
Krishantha.



On Thu, Mar 12, 2015 at 5:39 PM, Dimuthu De Lanerolle 
wrote:

> Hi Maheeka,
>
> Did you try whats suggest in the following mail thread?
>
> [1]  [Dev]
> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException is
> throwing GIT built apim
>
> Regards
>
> On Thu, Mar 12, 2015 at 5:02 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi Automation Team,
>>
>> I am getting the below error at the end of integration test execution.
>> Can you explain the cause of this, and how to avoid?
>>
>> INFO  [org.wso2.carbon.automation.engine.testlisteners.TestSuiteListener]
>> - Inside Test Suite Listener - On Finish
>> INFO
>> [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
>> Inside Test Execution Listener - On Finish
>> INFO
>> [org.wso2.carbon.automation.extensions.servers.axis2server.Axis2ServerManager]
>> - Stopping sample Axis2 server
>> INFO  [org.apache.synapse.transport.nhttp.HttpCoreNIOListener] - HTTP
>> Listener Shutdown
>> INFO  [org.apache.synapse.transport.nhttp.HttpCoreNIOSender] - HTTP
>> Sender Shutdown
>> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
>> wso2caching-4.2.0 -
>> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
>> INFO
>> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>> [2015-03-12 16:35:16,630]  INFO - CarbonAuthenticationUtil
>> 'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,630+0530]
>> INFO
>> [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
>> Login Successful
>> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
>> wso2caching-4.2.0 -
>> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
>> INFO
>> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
>> User was deleted successfully - testuser11
>> INFO
>> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
>> User was deleted successfully - testuser21
>> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
>> wso2caching-4.2.0 -
>> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
>> INFO
>> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>> [2015-03-12 16:35:16,808]  INFO - CarbonAuthenticationUtil
>> 'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,808+0530]
>> INFO
>> [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
>> Login Successful
>> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
>> wso2caching-4.2.0 -
>> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
>> INFO
>> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
>> Tenant was deleted successfully - wso2.com
>> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
>> wso2caching-4.2.0 -
>> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
>> INFO
>> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>> [2015-03-12 16:35:16,998]  INFO - CarbonAuthenticationUtil
>> 'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:16,998+0530]
>> INFO
>> [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
>> Login Successful
>> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
>> wso2caching-4.2.0 -
>> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
>> INFO
>> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
>> Tenant was deleted successfully - abc.com
>> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
>> wso2caching-4.2.0 -
>> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
>> INFO
>> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>> [2015-03-12 16:35:17,175]  INFO - CarbonAuthenticationUtil
>> 'admin@carbon.super [-1234]' logged in at [2015-03-12 16:35:17,175+0530]
>> INFO
>> [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
>> Login Successful
>> INFO  [org.apache.axis2.deployment.ModuleDeployer] - Deploying module:
>> wso2caching-4.2.0 -
>> file:/Users/maheeka/.m2/repository/org/wso2/carbon/org.wso2.carbon.caching.core/4.2.0/org.wso2.carbon.caching.core-4.2.0.jar
>> INFO
>> [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
>> Tena

[Dev] [Jaggery] From where does getOutputs in block files are called?

2015-03-12 Thread Bhathiya Jayasekara
Hi all,

In a Jaggery block file, there is below function.

getOutputs:function (inputs) {

//some logic

}

Can someone please tell me who calls this function (when a template is
loading) because I want to know at where this "input" value is populated.

Thanks,

-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSDL generation for SOAP webservice ISSUE

2015-03-12 Thread Sagara Gunathunga
On Thu, Mar 12, 2015 at 5:44 PM, Anjana Fernando  wrote:

> Hi Pubudu,
>
> Maybe Enums are not supported in Axis2, maybe Sagara may know more about
> this. As a quick workaround, avoid using Enums in the service and use
> something else to represent that, either a string value or something
> suitable.
>

Enum support is available from Apache Axis2 1.7, BTW web services meant to
be interoperable hence best practise is to avoid any language specific
constructs.

Thanks !

>
> Cheers,
> Anjana.
>
> On Thu, Mar 12, 2015 at 5:36 PM, Pubudu Dodangoda 
> wrote:
>
>> I am trying to write a carbon component by referring link
>> 
>>
>>
>> I can generate the correct WSDL file for a simple service
>> But when the service class is kind of complex, I get the following issue,
>> when trying to test the wsdl using SOAP UI
>>
>> *Source:* https://10.100.4.135:9443/services/DashboardAdminService?wsdl
>> *Error:* type 'Enum@http://www.w3.org/2001/XMLSchema' not found.
>>
>> I googled the issue and found this on stackoverflow
>> 
>>
>> But I am unable to solve the issue
>> What can I do to solve this?
>>
>> Note- I think the problem is when trying to convert complex
>> objects(objects inside objects) into xml
>> I have attached below the WSDL file here, in it, the "widgets" element is
>> a complex object in the corresponding service class
>>
>> Thank You and Kind Regards
>> --
>> Pubudu Dodangoda
>> BSc Engineering(Hon's) Undergraduate
>> Department of Computer Science Engineering
>> University of Moratuwa
>> 0716053681 / 0775192994
>>
>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
Sagara Gunathunga

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


Re: [Dev] Please merge PR for IDENTITY-3052 and APPM-333

2015-03-12 Thread Supun Malinga
Hi Sameera.

Can someone pls apply this into patch0010 ?. Seems I don't have permission
to commit.

thanks,

On Thu, Feb 26, 2015 at 11:20 AM, Chanuka Dissanayake 
wrote:

> Hi Supun,
>
> I have attached the svn diff for patch0010 [1] in the JIRA [2], please
> commit that as well.
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0010/core/org.wso2.carbon.user.core/4.2.0
> [2] https://wso2.org/jira/browse/IDENTITY-3052
>
> Thanks,
> Chanuka.
>
> On Wed, Feb 25, 2015 at 8:13 PM, Supun Malinga  wrote:
>
>> Merged. thanks.
>>
>> On Wed, Feb 25, 2015 at 5:33 PM, Chanuka Dissanayake 
>> wrote:
>>
>>> Hi Supun,
>>>
>>> Corrected them. Fix is in [1].
>>>
>>> [1] https://github.com/wso2/carbon4-kernel/pull/140
>>>
>>> Thanks & Regards,
>>> Chanuka.
>>>
>>> On Wed, Feb 25, 2015 at 12:28 PM, Supun Malinga  wrote:
>>>
 Hi Chanuka,

 Added a comment. Please fix.. Let me know if you need more context.

 thanks,

 On Tue, Feb 24, 2015 at 10:23 PM, Supun Malinga 
 wrote:

> Just noticed this mail. Sorry I have missed it somehow. I'll follow up.
>
> thanks,
>
> On Mon, Feb 23, 2015 at 6:41 PM, Sameera Jayasoma 
> wrote:
>
>> SupunM, Can you look into the if this not already done?
>>
>>
>> Thanks,
>> Sameera.
>>
>> On Thu, Feb 19, 2015 at 12:17 PM, Chanuka Dissanayake <
>> chan...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> $subject. Contains fixes for [1] and [2]. PR is in [3].
>>>
>>> [1] https://wso2.org/jira/browse/APPM-333
>>> [2] https://wso2.org/jira/browse/IDENTITY-3052
>>> [3] https://github.com/wso2/carbon4-kernel/pull/140
>>>
>>> Thanks,
>>> Chanuka.
>>> --
>>> Chanuka Dissanayake
>>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>>
>>> Mobile: +94 71 33 63 596
>>> Email: chan...@wso2.com
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com 
 mobile: +94 (0)71 56 91 321

>>>
>>>
>>>
>>> --
>>> Chanuka Dissanayake
>>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>>
>>> Mobile: +94 71 33 63 596
>>> Email: chan...@wso2.com
>>>
>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Chanuka Dissanayake
> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>
> Mobile: +94 71 33 63 596
> Email: chan...@wso2.com
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon Kernal 4.2.0 fixes required for patch0010

2015-03-12 Thread Supun Malinga
Hi,

There is another thread for this. Let's continue that.

thanks,

On Tue, Mar 10, 2015 at 10:09 AM, Thilini Shanika  wrote:

> Hi,
>
> Can you please apply the fix provided with the JIRA [1] to Carbon Kernal
> patch0010?
>
> [1] - https://wso2.org/jira/browse/APPM-333
>
> Thanks
> --
> Thilini Shanika
> Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-12 Thread Samith Dassanayake
Hi Anuruddha,
Please find my comments inline.

On Thu, Mar 12, 2015 at 2:21 AM, Anuruddha Premalal 
wrote:

>
>
> On Thu, Mar 12, 2015 at 12:58 PM, Gayan Dhanushka  wrote:
>
>> Hi Anuruddha/ Danushka,
>>
>> FYI, I checked the code again and noticed that calling getAllAppsOfUser
>> from the user home page is not needed anymore. It is used in the eventing
>> page template. So updating the "application_list" in session
>>
>
> IMO we shouldn't keep the application_list in the *session*. Otherwise
> this will cause the issue that Danushka explained earlier. Shall we move it
> to *application* cache and do proper invalidation on update/delete?
>
The problem with the application level caching is, in real production
environment there will be hundreds of applications and It is not
recommended to keep heavyweight objects in the jaggery application cache as
they might introduce issues under concurrent environments[1].

>
> from the notification wall template is enough. Further more
>> "application_list" is not the attribtue in the session which is used to
>> draw the user home page.
>>
>
> Are we using this application_list somewhere else?. It's not correct to
> have the application_list in the *session* cache.
>
>
>> It is "USER_HOME_CACHE" attribute the one which is used.
>>
>> So I think it is safe to remove the recurring getAllAppsOfUser from the
>> user home page.
>>
>
> Check whether the  USER_HOME_CACHE have the application creation status;
> it shouldn't be cached since it's a dynamic parameter; in that case you'll
> have to getapplication info from  the back-end.
>
Yes.  USER_HOME_CACHE does has the application status and it will updated
the dynamically by poling for status changes of the applications, which are
in the pending status.

[1] "Do we have a cache implementation in Jaggery"

Thanks,
Samith

>
>
>>
>
>>
> WDYT ?
>>
>> Regards
>> Gayan
>>
>> On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal 
>> wrote:
>>
>>> Hi Gayan,
>>>
>>> IMO we should cache user data in the session cache and the application
>>> data should go to the application level cache. This way we can get rid of
>>> unwanted back-end calls and do proper cache invalidation.
>>>
>>> So IMO the proper way to do this is to have a clear data separation in
>>> caching layers rather than increasing callbacktime.
>>>
>>> WDYT?
>>>
>>> Regards,
>>> Anuruddha.
>>>
>>> On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka 
>>> wrote:
>>>
 Hi Danushka,

 Thanks for the useful information. Yes. The cache is in the session. Me
 too believe that the 1 minute time difference is too soon.

 +1 for increasing it.

 Regards
 Gayan

 On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando 
 wrote:

> I didn't check the code. However I guess cache is in session. Is that
> right? So say A logs in to AF and do whatever stuff. And B logs in to AF
> and create an application foo and add A to that foo application. Then 
> there
> is no way to update the cache unless we read it from data layer time to
> time. If this is not the case picture in my head is wrong so please 
> correct
> it.
> However 1 minute seems too soon.
>
>1. Make it configurable
>2. Increase it to somewhere like 10 - 15 minutes.
>
> WDYT?
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka 
> wrote:
>
>> Hi all,
>>
>> I noticed $subject in the index page. Any particular reason for
>> having this ? Since we have a cache for user home data, IMO we do not 
>> need
>> this anymore. Data from the back end can only be read initially.
>>
>> Regards
>> Gayan
>>
>> --
>> 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
>>
>
>


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


>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94710461070
>>> Web site : www.regilandvalley.com
>>>
>>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> *Anuruddha Premalal*
> Softwa

Re: [Dev] App Factory API

2015-03-12 Thread Samith Dassanayake
Hi Dulitha,
I assume your production URL is [1] and it seems it has successfully
deployed in the production stage. Could you please elaborate on this more.
When did you get this error? I mean what are the operations(api cals) that
you've tried and resulted in above error.

[1] * dmbk1991.dmbk1991.wso2apps.com
*

Thanks,
Samith

On Tue, Mar 10, 2015 at 9:44 PM, Dulitha Kularathne <
dulithameth...@gmail.com> wrote:

> Hi !!
>
>  I created two apps in the first one I changed the production URL manually
> and the second one I kept the default URL as it is. I got the scrren shots
> and I will send u them in the evening if necessary. i followed the guide
> and did exactly the same. But  I did not have many users for each role. I
> had the same person for every role assigned. So after promoting the app to
> the next stage I logged out and logged when I was doing the second app. No
> deploy button was appeared as shown in the guide and instead the
> notifications on the right of the screen showed that it is deployed in the
> next stage(eg:- in production). So I thought that was because I did not
> assign separate users for roles. I also disabled auto build and auto deploy
> in the beginning.
>
> I used curl to call the APIs from the command line.
>
>
>
> Thanks.
>
> On Wed, Mar 11, 2015 at 10:09 AM, Dulitha Kularathne <
> dulithameth...@gmail.com> wrote:
>
>> Hi Harsha!!
>>
>>  I created two apps in the first one I changed the production URL
>> manually and the second one I kept the default URL as it is. I got the
>> scrren shots and I will send u them in the evening if necessary. i followed
>> the guide and did exactly the same. But  I did not have many users for each
>> role. I had the same person for every role assigned. So after promoting the
>> app to the next stage I logged out and logged when I was doing the second
>> app. No deploy button was appeared as shown in the guide and instead the
>> notifications on the right of the screen showed that it is deployed in the
>> next stage(eg:- in production). So I thought that was because I did not
>> assign separate users for roles. I also disabled auto build and auto deploy
>> in the beginning.
>>
>> I used curl to call the APIs from the command line.
>>
>>
>>
>> Thanks.
>>
>> On Tue, Mar 10, 2015 at 10:20 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Dulitha,
>>>
>>> Is this the production URL that you are getting from AF or did you
>>> change production URL manually ?
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770  ,
>>> +94 *
>>> *774617784twitter: **http://twitter.com/
>>> *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Tue, Mar 10, 2015 at 7:10 AM, Danushka Fernando 
>>> wrote:
>>>
 Hi Dulitha
 Can you tell us the steps that exactly you followed. Screenshots or
 screen cast would be helpful.

 Thanks & Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Tue, Mar 10, 2015 at 5:24 PM, Mahesh Chinthaka 
 wrote:

> Hi Dulitha,
>
> I really appreciate your interest and effort on wso2appfactory gsoc
> project.
> No offense but please try always to use dev@ mail group to ask
> questions you have.  :)
> Then your question will be exposed to a wider communitiy and the
> probability of getting what you expected is high.
>
> Regarding your error,
> where do you see this error ? in your browser ? i hope your are doing
> this in wso2 app cloud.
>
>
> On Mon, Mar 9, 2015 at 11:03 PM, Dulitha Kularathne <
> dulithameth...@gmail.com> wrote:
>
>> Hi Mahesh!!
>>
>> I promoted my test app to production after creating a branch to try
>> some API calls after deploying . Then I get the 404 error. Can you please
>> help me on that.
>> Thanks.
>> Below given is the whole error message,
>>
>> I created a branch called 1.0.0 and promoted it to testing and
>> deployed.
>> After I promoted that to production and deployed again.
>> HTTP Status 404 -
>> /t/dmbk1991/webapps/dmbk1991-1.0.0/appmgt/site/blocks/user/login/ajax/login.jag
>> --
>>
>> *type* Status report
>>
>> *message*
>> */t/dmbk1991/webapps/dmbk1991-1.0.0/appmgt/site/blocks/user/login/ajax/login.jag*
>>
>> *description* *The requested resource is not available* Connection
>> #0 to host dmbk1991.dmbk1991.wso2apps.com
>>  left intact .*
>> --
>>
>>
>
>
>>>

Re: [Dev] Implementation of API Manager-API Life Cycle Integration Test Cases

2015-03-12 Thread Krishantha Samaraweera
Hi Saneth,

Can you update the QA test case document with correct mapping for test
classes.

Thanks,
Krishantha.

On Thu, Mar 12, 2015 at 7:51 PM, Saneth Dharmakeerthi 
wrote:

> Please find the progress update of phase2,
>
>   Pull request : https://github.com/wso2/product-apim/pull/49
>
> This pull request contains,
>
>- Migration of test method to test classes that were developed in
>phase1.
>- New scenarios covered in Phase 2.
>- New base class was introduced to lifecycle test cases.
>- @BeforeTest and @AftterTest methods was  introduced to do
>the configurations and restore those changes at the end of the lifecycle
>tests.
>- Add  cleanup methods to  remove the created/publish and subscribed
>APIs at the end of each test.
>- Completed test classes as follow (11 Classes and 44 test methods ).
>   - AccessibilityOfBlockAPITestCase
>   - AccessibilityOfDeprecatedOldAPIAndPublishedCopyAPITestCase
>   - AccessibilityOfOldAPIAndCopyAPIWithOutReSubscriptionTestCase
>   - AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase
>   - AccessibilityOfRetireAPITestCase
>   - APIAccessibilityOfPublishedOldAPIAndPublishedCopyAPITestCase
>   - APIPublishingAndVisibilityInStoreTestCase
>   - ChangeAPIBackendURLTestCase
>   - ChangeAPITagsTestCase
>   - EditAPIAndCheckUpdatedInformationTestCase
>   - EditAPIContextAndCheckAccessibilityTestCase
>
>
>
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Fri, Mar 6, 2015 at 8:00 AM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi,
>>
>> Please find the progress update,
>>
>> I have finished following test cases.
>>
>>- testAPIPublishingAndVisibilityInStore
>>- testAccessibilityOfPublishedOldAPIAndPublishedCopyAPI
>>- testAccessibilityOfDeprecatedOldAPIAndPublishedCopyAPI
>>- testAccessibilityOfOldAPIAndCopyAPIWithReSubscription
>>- testAccessibilityOfOldAPIAndCopyAPIWithOutReSubscription
>>- testAccessibilityOfBlockAPI
>>- testAccessibilityOfRetireAPI
>>
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Mon, Mar 2, 2015 at 5:53 PM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi,
>>>
>>> I am working on $subject, test scenarios will be based on [1] API-M
>>> 1.9.0 Test Plan document (under  API Life Cycle Tab).
>>>
>>> [1]API-M 1.9.0 Test Plan
>>> 
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>
>>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS]Can not access oauth2 authorize endpoint url

2015-03-12 Thread Hasanthi Purnima Dissanayake
Hi team,
I am developing openid session management as my fast track training
project. when I'm using [1] as the authorize endpoint url I got below
error. As per the instructions I got, I replaced
spring.framework_3.2.9.wso2v1.jar with spring.framework_3.1.0.wso2v1.jar
which is inside patch in the IS 5.0.0 release. But still I get the same
error.

org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tokEP': Cannot resolve reference to bean
'authzEndpointBean' while setting bean property 'serviceBeans' with
key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'authzEndpointBean' defined in URL
[jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of
bean failed; nested exception is java.lang.NoClassDefFoundError:
org/wso2/carbon/identity/oauth/cache/CacheKey

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)

org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)

org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)

org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
java.lang.Thread.run(Thread.java:662)
[1]https://localhost:9443/oauth2/authorize

Any help is highly appreciated.

Thanks and Regards,

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...

[Dev] [ESB] [Cluster] Error when trying to log in with the created tenants

2015-03-12 Thread Kala Weerawardana
Hi,

I created an ESB cluster fronted by ELB. Created a LDAP server through
ApacheDS.

When creating a tenant the bellow error occurred.

"ERROR - TenantPersistor Error in changing the tenant admin password for
tenant domain:"

To fix this, I applied the patch related to [1]. The problem solved and I
was able to create tenants without a problem.


   - Now when I try to log in with the created tenants I get an error
   saying,

"Login failed! Please recheck the username and password and try again."


   - Then I tried to edit the tenant giving a new password and update. Got
   an error saying,

   "ERROR - TenantMgtAdminService Error in changing the tenant
admin password, tenant domain:"


Is there a solution for this?


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


Thank you,
Kala
-- 
Kala C. Weerawardana
*Software Engineer - QA Team*
*WSO2 Inc. *
Mobile :  +94 (0) 716189886 +94 (0) 772877683
Blog : http://castakai.blogspot.com
k...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] [Cluster] Error when trying to log in with the created tenants

2015-03-12 Thread Godwin Amila Shrimal
Hi Kala,

What is the ESB version you are using here ? mean time can you attach the
wso2carbon.log file.


Thanks
Godwin


On Thu, Mar 12, 2015 at 8:16 PM, Kala Weerawardana  wrote:

> Hi,
>
> I created an ESB cluster fronted by ELB. Created a LDAP server through
> ApacheDS.
>
> When creating a tenant the bellow error occurred.
>
> "ERROR - TenantPersistor Error in changing the tenant admin password for
> tenant domain:"
>
> To fix this, I applied the patch related to [1]. The problem solved and I
> was able to create tenants without a problem.
>
>
>- Now when I try to log in with the created tenants I get an error
>saying,
>
> "Login failed! Please recheck the username and password and try again."
>
>
>- Then I tried to edit the tenant giving a new password and update.
>Got an error saying,
>
>"ERROR - TenantMgtAdminService Error in changing the tenant
> admin password, tenant domain:"
>
>
> Is there a solution for this?
>
>
> [1] - https://wso2.org/jira/browse/CARBON-15187
>
>
> Thank you,
> Kala
> --
> Kala C. Weerawardana
> *Software Engineer - QA Team*
> *WSO2 Inc. *
> Mobile :  +94 (0) 716189886 +94 (0) 772877683
> Blog : http://castakai.blogspot.com
> k...@wso2.com
>



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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS]Can not access oauth2 authorize endpoint url

2015-03-12 Thread Tharindu Edirisinghe
Hi Hasanthi,

"As per the instructions I got, I replaced spring.framework_3.2.9.wso2v1.
jar with spring.framework_3.1.0.wso2v1.jar which is inside patch in the
IS 5.0.0"

How did you replace the jar ? Did you create a new patch folder with a
large number than the existing patches and put the jar inside it ?

Regards,
Tharindu

On Thu, Mar 12, 2015 at 8:12 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi team,
> I am developing openid session management as my fast track training
> project. when I'm using [1] as the authorize endpoint url I got below
> error. As per the instructions I got, I replaced
> spring.framework_3.2.9.wso2v1.jar with spring.framework_3.1.0.wso2v1.jar
> which is inside patch in the IS 5.0.0 release. But still I get the same
> error.
>
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'tokEP': Cannot resolve reference to bean 'authzEndpointBean' while 
> setting bean property 'serviceBeans' with key [0]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'authzEndpointBean' defined in URL 
> [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean 
> failed; nested exception is java.lang.NoClassDefFoundError: 
> org/wso2/carbon/identity/oauth/cache/CacheKey
>   
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>   
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>   
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>   
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>   
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>   
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>   
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>   
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>   
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>   
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>   
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>   
> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
>   org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>   
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
>   
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>   
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>   
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
>   
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>   
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>   
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>   
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
>   
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>   
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>   
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>   
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>   
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
>   
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
>   
> org.apache.tomcat.util.net.NioEndpoi

Re: [Dev] [IS]Can not access oauth2 authorize endpoint url

2015-03-12 Thread Hasanthi Purnima Dissanayake
Hi Tharindu,
No I did not create a patch folder. I just replaced the
spring.framework_3.2.9.wso2v1.jar inside
product-is/modules/distribution/target/wso2is-5.1.0-SNAPSHOT/repository/components/plugins
with spring.framework_3.1.0.wso2v1.jar which is inside patch in the IS
5.0.0 release. Please guide me what should I do to recover from the above
error.

Thanks.

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 

On Thu, Mar 12, 2015 at 8:44 PM, Tharindu Edirisinghe 
wrote:

> Hi Hasanthi,
>
> "As per the instructions I got, I replaced spring.framework_3.2.9.wso2v1.
> jar with spring.framework_3.1.0.wso2v1.jar which is inside patch in
> the IS 5.0.0"
>
> How did you replace the jar ? Did you create a new patch folder with a
> large number than the existing patches and put the jar inside it ?
>
> Regards,
> Tharindu
>
> On Thu, Mar 12, 2015 at 8:12 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi team,
>> I am developing openid session management as my fast track training
>> project. when I'm using [1] as the authorize endpoint url I got below
>> error. As per the instructions I got, I replaced
>> spring.framework_3.2.9.wso2v1.jar with spring.framework_3.1.0.wso2v1.jar
>> which is inside patch in the IS 5.0.0 release. But still I get the same
>> error.
>>
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'tokEP': Cannot resolve reference to bean 'authzEndpointBean' 
>> while setting bean property 'serviceBeans' with key [0]; nested exception is 
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'authzEndpointBean' defined in URL 
>> [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean 
>> failed; nested exception is java.lang.NoClassDefFoundError: 
>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>  
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>>  
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>>  
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>>  
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>>  
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>>  
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>>  
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>>  
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>>  
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>  
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>  
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>>  
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>>  
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>>  
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>>  
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>>  
>> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
>>  org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>>  
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
>>  
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>>  
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>>  
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
>>  
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>  
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>  
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>  
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
>>  
>> org.wso2.carbon.tomcat.ext.valves.Carbon

Re: [Dev] [IS]Can not access oauth2 authorize endpoint url

2015-03-12 Thread Tharindu Edirisinghe
Hi Hasanthi,

Replacing the jar files directly in the plugins folder is not recommended
because when you start IS, the jars in the plugins folder can get replaced
by the jars in patch folders. Can you create a folder with a higher patch
number than existing (eg : patch0999) inside
/repository/components/patches folder and copy the particular jar
file into that. Then restart IS.

Regards,
Tharindu

On Thu, Mar 12, 2015 at 9:04 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi Tharindu,
> No I did not create a patch folder. I just replaced the
> spring.framework_3.2.9.wso2v1.jar inside
> product-is/modules/distribution/target/wso2is-5.1.0-SNAPSHOT/repository/components/plugins
> with spring.framework_3.1.0.wso2v1.jar which is inside patch in the IS
> 5.0.0 release. Please guide me what should I do to recover from the above
> error.
>
> Thanks.
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com 
> M :0718407133| http://wso2.com 
>
> On Thu, Mar 12, 2015 at 8:44 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Hasanthi,
>>
>> "As per the instructions I got, I replaced spring.framework_3.2.9.wso2v1.
>> jar with spring.framework_3.1.0.wso2v1.jar which is inside patch in
>> the IS 5.0.0"
>>
>> How did you replace the jar ? Did you create a new patch folder with a
>> large number than the existing patches and put the jar inside it ?
>>
>> Regards,
>> Tharindu
>>
>> On Thu, Mar 12, 2015 at 8:12 PM, Hasanthi Purnima Dissanayake <
>> hasan...@wso2.com> wrote:
>>
>>> Hi team,
>>> I am developing openid session management as my fast track training
>>> project. when I'm using [1] as the authorize endpoint url I got below
>>> error. As per the instructions I got, I replaced
>>> spring.framework_3.2.9.wso2v1.jar with spring.framework_3.1.0.wso2v1.jar
>>> which is inside patch in the IS 5.0.0 release. But still I get the same
>>> error.
>>>
>>> org.springframework.beans.factory.BeanCreationException: Error creating 
>>> bean with name 'tokEP': Cannot resolve reference to bean 
>>> 'authzEndpointBean' while setting bean property 'serviceBeans' with key 
>>> [0]; nested exception is 
>>> org.springframework.beans.factory.BeanCreationException: Error creating 
>>> bean with name 'authzEndpointBean' defined in URL 
>>> [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean 
>>> failed; nested exception is java.lang.NoClassDefFoundError: 
>>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>> 
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>>> 
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>>> 
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>>> 
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>>> 
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>>> 
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>>> 
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>>> 
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>>> 
>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>> 
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>> 
>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>>> 
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>>> 
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>>> 
>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>>> 
>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>>> 
>>> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
>>> org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>>> 
>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
>>> 
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>>> 
>>> org.apache.catalina.valves.ErrorReportValve.invoke(Erro

Re: [Dev] [ESB] [Cluster] Error when trying to log in with the created tenants

2015-03-12 Thread Shashika Karunatilaka
Hi Kala,

Can you provide the error trace here.

Thank you.

On Thu, Mar 12, 2015 at 8:19 PM, Godwin Amila Shrimal 
wrote:

> Hi Kala,
>
> What is the ESB version you are using here ? mean time can you attach the
> wso2carbon.log file.
>
>
> Thanks
> Godwin
>
>
> On Thu, Mar 12, 2015 at 8:16 PM, Kala Weerawardana  wrote:
>
>> Hi,
>>
>> I created an ESB cluster fronted by ELB. Created a LDAP server through
>> ApacheDS.
>>
>> When creating a tenant the bellow error occurred.
>>
>> "ERROR - TenantPersistor Error in changing the tenant admin password for
>> tenant domain:"
>>
>> To fix this, I applied the patch related to [1]. The problem solved and I
>> was able to create tenants without a problem.
>>
>>
>>- Now when I try to log in with the created tenants I get an error
>>saying,
>>
>> "Login failed! Please recheck the username and password and try again."
>>
>>
>>- Then I tried to edit the tenant giving a new password and update.
>>Got an error saying,
>>
>>"ERROR - TenantMgtAdminService Error in changing the
>> tenant admin password, tenant domain:"
>>
>>
>> Is there a solution for this?
>>
>>
>> [1] - https://wso2.org/jira/browse/CARBON-15187
>>
>>
>> Thank you,
>> Kala
>> --
>> Kala C. Weerawardana
>> *Software Engineer - QA Team*
>> *WSO2 Inc. *
>> Mobile :  +94 (0) 716189886 +94 (0) 772877683
>> Blog : http://castakai.blogspot.com
>> k...@wso2.com
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS]Can not access oauth2 authorize endpoint url

2015-03-12 Thread Hasanthi Purnima Dissanayake
Hi Tharindu,
I solved the problem by creating a higher patch number inside the patches
folder as you suggested. Thanks for your guidance.

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 

On Thu, Mar 12, 2015 at 9:24 PM, Tharindu Edirisinghe 
wrote:

> Hi Hasanthi,
>
> Replacing the jar files directly in the plugins folder is not recommended
> because when you start IS, the jars in the plugins folder can get replaced
> by the jars in patch folders. Can you create a folder with a higher patch
> number than existing (eg : patch0999) inside
> /repository/components/patches folder and copy the particular jar
> file into that. Then restart IS.
>
> Regards,
> Tharindu
>
> On Thu, Mar 12, 2015 at 9:04 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi Tharindu,
>> No I did not create a patch folder. I just replaced the
>> spring.framework_3.2.9.wso2v1.jar inside
>> product-is/modules/distribution/target/wso2is-5.1.0-SNAPSHOT/repository/components/plugins
>> with spring.framework_3.1.0.wso2v1.jar which is inside patch in the IS
>> 5.0.0 release. Please guide me what should I do to recover from the above
>> error.
>>
>> Thanks.
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com 
>> M :0718407133| http://wso2.com 
>>
>> On Thu, Mar 12, 2015 at 8:44 PM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Hasanthi,
>>>
>>> "As per the instructions I got, I replaced spring.framework_3.2.9.wso2v1.
>>> jar with spring.framework_3.1.0.wso2v1.jar which is inside patch in
>>> the IS 5.0.0"
>>>
>>> How did you replace the jar ? Did you create a new patch folder with a
>>> large number than the existing patches and put the jar inside it ?
>>>
>>> Regards,
>>> Tharindu
>>>
>>> On Thu, Mar 12, 2015 at 8:12 PM, Hasanthi Purnima Dissanayake <
>>> hasan...@wso2.com> wrote:
>>>
 Hi team,
 I am developing openid session management as my fast track training
 project. when I'm using [1] as the authorize endpoint url I got below
 error. As per the instructions I got, I replaced
 spring.framework_3.2.9.wso2v1.jar with spring.framework_3.1.0.wso2v1.jar
 which is inside patch in the IS 5.0.0 release. But still I get the same
 error.

 org.springframework.beans.factory.BeanCreationException: Error creating 
 bean with name 'tokEP': Cannot resolve reference to bean 
 'authzEndpointBean' while setting bean property 'serviceBeans' with key 
 [0]; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating 
 bean with name 'authzEndpointBean' defined in URL 
 [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean 
 failed; nested exception is java.lang.NoClassDefFoundError: 
 org/wso2/carbon/identity/oauth/cache/CacheKey

 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)

 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)

 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

 org.apache.cxf.t

[Dev] [Announce] WSO2 App Factory 2.1.0 RC Released!

2015-03-12 Thread Amalka Subasinghe
WSO2 App Factory 2.1.0 RC Released!


WSO2 App Factory team is pleased to announce the release of version 2.1.0
RC of the WSO2 App Factory.


WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.

The distribution is available to download at [1] .

Bug fixes in this release can be found at [2].

Source repository for App Factory can be found at [3].

Puppet manifests for App Factory can be found at [4].

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 App Factory through the public WSO2 App Factory
JIRA [5].


[1]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.1.0-RC/packs/wso2appfactory-2.1.0.zip

[2]
https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20%3D%20%222.1.0%20RC1%22%20AND%20status%20%3D%20Resolved%20ORDER%20BY%20priority%20DESC

[3] https://github.com/wso2/product-af/tree/release-2.1.0

[4]
https://github.com/wso2/product-af/tree/release-2.1.0/modules/puppet-manifests

[5] https://wso2.org/jira/browse/APPFAC


-- The WSO2 App Factory Team --


-- 

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] [Jaggery] From where does getOutputs in block files are called?

2015-03-12 Thread Bhathiya Jayasekara
I just found that it is called like this via includeBlock.

<% jagg.includeBlock("subscription/subscription-list-element",
{app:selectedApp,i:900}); %>

Thanks,
Bhathiya

On Thu, Mar 12, 2015 at 6:17 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> In a Jaggery block file, there is below function.
>
> getOutputs:function (inputs) {
>
> //some logic
>
> }
>
> Can someone please tell me who calls this function (when a template is
> loading) because I want to know at where this "input" value is populated.
>
> Thanks,
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2015:PROJECT

2015-03-12 Thread Tharinda Ehelepola
Hi,

I checked the methods of apache spark. Some of them are related to wrangler
script. I run spark as a maven project. But I am not able to run example
code in java. Because it asking about the libraries. I found some simple
example from stackoverflow . But I am not able to find the library of
spark.apache.
So can you please give me some idea about those libraries.

On Thu, Mar 12, 2015 at 11:35 AM, Supun Sethunga  wrote:

> Hi Tharinda,
>
> Please find the comments inline.
>
> I think the major part of this project is create a back end of java code
>> created using wrangler script.
>
> Yes.
>
> Wrangler scripts are mostly done by javascript. So I need to convert those
>> into java.
>
> Yes. Further, java code should be Apache Spark Transformation. Please
> refer my previous mail for details on Spark.
>
> I was not able to find some method. Other ways of doing this is used
>> common methods like split,merge.. etc easily find on java. Rest of the
>> methods are convert by manually. Is there any method to convert those
>> scripts to java.
>
> You have to come up with a solution and an implementation for this. It is
> the core part of the project :)
>
> Feel free to contact us if you need further clarifications.
>
> Regards,
> Supun
>
> On Thu, Mar 12, 2015 at 1:04 PM, Tharinda Ehelepola  > wrote:
>
>> Hi,
>>
>> I think the major part of this project is create a back end of java code
>> created using wrangler script. Wrangler scripts are mostly done by
>> javascript. So I need to convert those into java. I was not able to find
>> some method. Other ways of doing this is used common methods like
>> split,merge.. etc easily find on java. Rest of the methods are convert by
>> manually. Is there any method to convert those scripts to java.
>>
>> Thank you.
>> Tharinda.
>>
>> On Wed, Mar 11, 2015 at 3:45 AM, Supun Sethunga  wrote:
>>
>>> Hi Tharinda,
>>>
>>> Ultimately, the java code created using the wrangler script (after
>>> conversion), should be able to used as an Apache Spark [1] Transformations
>>> [2]. (at the back-end)
>>>
>>> On a side note, please use the WSO2 dev mailing list for any project
>>> related communication :)
>>>
>>> [1] https://spark.apache.org/
>>> [2]
>>> http://spark.apache.org/docs/1.2.0/programming-guide.html#transformations
>>>
>>> Regards,
>>> Supun
>>>
>>> On Wed, Mar 11, 2015 at 7:52 AM, Nirmal Fernando 
>>> wrote:
>>>
 Yes, that's exactly what we want !

 On Wed, Mar 11, 2015 at 3:30 AM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> I checked the libraries on wrangler. I think that you mentioned can be
> done using the libraries. What  I think is get the libraries from wrangler
> and create a back-end for the interface created using jaggery. Wrangler
> script to java converter can be add to the back-end also.
>
> On Tue, Mar 10, 2015 at 4:10 AM, Nirmal Fernando 
> wrote:
>
>> Remotely connecting to Wrangler (hosted service) is not a good
>> option. What we expect is we take their library (it's Open source) and 
>> use
>> the API to perform the transformations and cleaning. Could you please 
>> check
>> the feasibility of that?
>>
>> On Tue, Mar 10, 2015 at 9:34 AM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I drew what I understood the project to be.
>>>
>>> If one wants to do data cleaning and transformation he need to
>>> connect to the wrangler directly. That is what I mean from the first two
>>> blocks. If they have a customized UI you can do data cleaning and
>>> transformation using ML also. They don't need to connect to the 
>>> wrangler.
>>> Another thing i realized that is they don't need all the operations in
>>> wrangler. They need some specific subset of operations only. What I mean
>>> from the bottom block is the UI created using Jaggery interfacing 
>>> between
>>> ML and the wrangler.
>>>
>>> On Tue, Mar 10, 2015 at 2:16 AM, Nirmal Fernando 
>>> wrote:
>>>
 Hi Tharindu,

 Thanks for the diagram. Do you mind explaining the diagram?

 On Tue, Mar 10, 2015 at 3:27 AM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>
> Here I attached a simple design of project development. Can you
> give me some comments about this.
>
> Thank you.
>
> On Mon, Mar 9, 2015 at 2:16 AM, Nirmal Fernando 
> wrote:
>
>> Our ultimate goal is to provide data cleaning and transformation.
>> Hence, Tharindu, you need to pick the things that is sufficient to 
>> perform
>> those operations.
>>
>> What we prefer is a D3 based UI.
>>
>> On Sun, Mar 8, 2015 at 10:34 PM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Wrangler 

Re: [Dev] [ESB][Clustering] Error Invoking Proxy Service - Invalid protocol version:209 : Error Code: 101509

2015-03-12 Thread Kala Weerawardana
Hi,

I tried to invoke a proxy service in an ESB cluster and gets the same error.

[2015-03-13 03:05:09,858] ERROR - NativeWorkerPool Uncaught exception
java.lang.NullPointerException
at
org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:210)
at
org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
at
org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:268)
at
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:117)
at
org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
at org.apache.coyote.Response.doWrite(Response.java:505)
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:383)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:462)
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:334)
at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:306)
at
org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:101)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:141)
at
com.sun.xml.internal.stream.writers.UTF8OutputStreamWriter.flush(UTF8OutputStreamWriter.java:138)
at
com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:376)
at
org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)
at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188)
at
org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197)
at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.sendUsingOutputStream(PassThroughHttpSender.java:297)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:261)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:321)
at
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:94)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:268)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)


Any thoughts about this please?

Thanks,
Kala



On Thu, Feb 5, 2015 at 2:25 PM, Maheeka Jayasuriya  wrote:

> Hi all,
>
> I have a ESB cluster setup with ESB M5 release (1 manager, 2 workers).
> Verified that DepSync is working correctly. I have activated JMS transports
> and have ActiveMQ running.
>
> However, when I try to invoke the proxy service, using Sample Stock Quote
> Client, I am getting the below errors. Verified that the request is
> successfully sent to the server on the first request. For second request
> the server doesn't receive the request and load balancer shows Error Code:
> 101509.
>
> *Request : *
>
> ant stockquote -Daddurl=http://esb.wso2.com:8280/services/StockP/
> -Dmode=placeorder
>
> *For the first request: *
>
> *On management node : *
>
> [2015-02-05 14:17:35,925] ERROR - NativeWorkerPool Uncaught exception
> java.lang.NullPointerException
> at
> org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:210)
> at
> org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
> at
> org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:268)
> at
> org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:117)
> at
> org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
> at org.apache.coyote.Response.doWrite(Response.java:520)
> at
> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:408)
> at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)
> at
> org.apache.cata

Re: [Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription

2015-03-12 Thread Saneth Dharmakeerthi
[Adding: Kala and Krishantha ]

Hi,

I tested this issue with both 1.9.0 SNAPSHOT version and 1.8.0. Both
versions I was able to recreate the isssue.
I created Jira :APIMANAGER-3374 [1] for tracking purpose.

Automation test case
"AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase [2]" will be
disable until this issue is fixed.
I have updated the API-M 1.9.0 Test Plan [3] with JIRA information.


[1] https://wso2.org/jira/browse/APIMANAGER-3374
[2] 
org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase.java
[3] API-M 1.9.0 Test Plan

Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Fri, Mar 6, 2015 at 10:14 AM, Saneth Dharmakeerthi 
wrote:

> Hi,
>
>1. After copy and publish a new API version with the require
>re-subscription option and invoke the new API version without doing
>re-subscription it give an error, which is correct.
>2. But after that if I do a re-subscription and invoke the new API
>version again, the first new API version invocation after re-subscription
>is getting failed and getting success from 2nd invocation after
>re-subscription.
>3. This behaviour is not happening if I do not invoke the new API
>version before doing the re-subscription. In that case, first
>invocation of new API version after re-subscription is getting succeed.
>
> Is there any reason for the above 2nd  observation?.
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Fix for issue https://wso2.org/jira/browse/CARBON-15009

2015-03-12 Thread Kishanthan Thangarajah
Hi Firzhan,

Can you confirm whether this fix is added to kernel 4.3.0/4.4.0?


On Fri, Oct 17, 2014 at 4:30 PM, Firzhan Naqash  wrote:

>
>
> Hi,
>
> Since this else causes some issues on JDBC secondary user stores, I have
> attached the diff file which removes it.
>
> Please review and merge it for kernel patch0009.
>
> Regards,
> Firzhan
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Senior Software Engineer,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][MB] Error when configuring mb in cluster mode with mysql

2015-03-12 Thread Awanthika Senarath
Hi Megala,

Please ensure that your mysql database is accessible via the URL you have
provided with the username and passowrd.

I believe the url paramter should be something like this.

jdbc:mysql://localhost:3306/WSO2_MB 

regards
Awanthika

On Thu, Mar 12, 2015 at 12:27 PM, Harsha Kumara  wrote:

> Hi Megala,
>
> Seems the issue with getting database connection. Your master data sources
> file *jdbc/MySQLMessageStore *has jdbc:mysql://10.100.4.40/WSO2_MB. Did
> you expose the mysql server through that IP or if not try with localhost
> with correct root username and password.
>
> Thanks,
> Harsha
>
>
> On Thu, Mar 12, 2015 at 12:19 PM, Megala Uthayakumar 
> wrote:
>
>>
>> Hi,
>>  I am getting following error when running the mb 3.0 in cluster mode
>> with mysql.
>>
>> Cluster setup - 4 nodes mb and mysql server
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Exception during startup: java.lang.Exception:
>> org.wso2.andes.kernel.AndesException: Connecting to database failed with
>> jndi lookup : jdbc/MySQLMessageStore. data source username : root. SQL
>> Error message : com.mysql.jdbc.Driverjava.lang.Exception:
>> org.wso2.andes.kernel.AndesException: Connecting to database failed with
>> jndi lookup : jdbc/MySQLMessageStore. data source username : root. SQL
>> Error message : com.mysql.jdbc.Driverat
>> org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:266)
>> at
>> org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:147)
>> at org.wso2.andes.server.Broker.startupImpl(Broker.java:153)at
>> org.wso2.andes.server.Broker.startup(Broker.java:114)at
>> org.wso2.andes.server.Main.startBroker(Main.java:218)at
>> org.wso2.andes.server.Main.execute(Main.java:207)at
>> org.wso2.andes.server.Main.(Main.java:48)at
>> org.wso2.andes.server.Main.main(Main.java:41)at
>> org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:330)
>> at
>> org.wso2.carbon.andes.internal.QpidServiceComponent.setHazelcastInstance(QpidServiceComponent.java:232)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)at
>> org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
>> at
>> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.init(HazelcastClusteringAgent.java:223)
>> at
>> org.wso2.carbon.core.util.ClusteringUtil.enableClustering(ClusteringUtil.java:38)
>> at
>> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:174)
>> at
>> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:285)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredS

Re: [Dev] [ESB][Clustering] Error Invoking Proxy Service - Invalid protocol version:209 : Error Code: 101509

2015-03-12 Thread Maheeka Jayasuriya
Hi Kala,

I was also unable to resolve the issue. The problem seems to be in the ELB.

Thanks,
Maheeka

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Fri, Mar 13, 2015 at 8:38 AM, Kala Weerawardana  wrote:

> Hi,
>
> I tried to invoke a proxy service in an ESB cluster and gets the same
> error.
>
> [2015-03-13 03:05:09,858] ERROR - NativeWorkerPool Uncaught exception
> java.lang.NullPointerException
> at
> org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:210)
> at
> org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
> at
> org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:268)
> at
> org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:117)
> at
> org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
> at org.apache.coyote.Response.doWrite(Response.java:505)
> at
> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:383)
> at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:462)
> at
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:334)
> at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:306)
> at
> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:101)
> at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:141)
> at
> com.sun.xml.internal.stream.writers.UTF8OutputStreamWriter.flush(UTF8OutputStreamWriter.java:138)
> at
> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:376)
> at
> org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)
> at
> org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188)
> at
> org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197)
> at
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.sendUsingOutputStream(PassThroughHttpSender.java:297)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:261)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:321)
> at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:94)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:268)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
>
> Any thoughts about this please?
>
> Thanks,
> Kala
>
>
>
> On Thu, Feb 5, 2015 at 2:25 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi all,
>>
>> I have a ESB cluster setup with ESB M5 release (1 manager, 2 workers).
>> Verified that DepSync is working correctly. I have activated JMS transports
>> and have ActiveMQ running.
>>
>> However, when I try to invoke the proxy service, using Sample Stock Quote
>> Client, I am getting the below errors. Verified that the request is
>> successfully sent to the server on the first request. For second request
>> the server doesn't receive the request and load balancer shows Error Code:
>> 101509.
>>
>> *Request : *
>>
>> ant stockquote -Daddurl=http://esb.wso2.com:8280/services/StockP/
>> -Dmode=placeorder
>>
>> *For the first request: *
>>
>> *On management node : *
>>
>> [2015-02-05 14:17:35,925] ERROR - NativeWorkerPool Uncaught exception
>> java.lang.NullPointerException
>> at
>> org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:210)
>> at
>> org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
>> at
>> org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:268)
>> at
>> org.apache.coyote.http11.filters.C

Re: [Dev] [ESB][Clustering] Error Invoking Proxy Service - Invalid protocol version:209 : Error Code: 101509

2015-03-12 Thread Kala Weerawardana
Hi Maheeka,

Is it a problem in ELB configurations?
If so will you be able to explain?

Thanks,
Kala

On Fri, Mar 13, 2015 at 9:05 AM, Maheeka Jayasuriya 
wrote:

> Hi Kala,
>
> I was also unable to resolve the issue. The problem seems to be in the
> ELB.
>
> Thanks,
> Maheeka
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> On Fri, Mar 13, 2015 at 8:38 AM, Kala Weerawardana  wrote:
>
>> Hi,
>>
>> I tried to invoke a proxy service in an ESB cluster and gets the same
>> error.
>>
>> [2015-03-13 03:05:09,858] ERROR - NativeWorkerPool Uncaught exception
>> java.lang.NullPointerException
>> at
>> org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:210)
>> at
>> org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
>> at
>> org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:268)
>> at
>> org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:117)
>> at
>> org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
>> at org.apache.coyote.Response.doWrite(Response.java:505)
>> at
>> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:383)
>> at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:462)
>> at
>> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:334)
>> at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:306)
>> at
>> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:101)
>> at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:141)
>> at
>> com.sun.xml.internal.stream.writers.UTF8OutputStreamWriter.flush(UTF8OutputStreamWriter.java:138)
>> at
>> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:376)
>> at
>> org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)
>> at
>> org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188)
>> at
>> org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197)
>> at
>> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.sendUsingOutputStream(PassThroughHttpSender.java:297)
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:261)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:321)
>> at
>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:94)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:268)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
>> at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>> Any thoughts about this please?
>>
>> Thanks,
>> Kala
>>
>>
>>
>> On Thu, Feb 5, 2015 at 2:25 PM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have a ESB cluster setup with ESB M5 release (1 manager, 2 workers).
>>> Verified that DepSync is working correctly. I have activated JMS transports
>>> and have ActiveMQ running.
>>>
>>> However, when I try to invoke the proxy service, using Sample Stock
>>> Quote Client, I am getting the below errors. Verified that the request is
>>> successfully sent to the server on the first request. For second request
>>> the server doesn't receive the request and load balancer shows Error Code:
>>> 101509.
>>>
>>> *Request : *
>>>
>>> ant stockquote -Daddurl=http://esb.wso2.com:8280/services/StockP/
>>> -Dmode=placeorder
>>>
>>> *For the first request: *
>>>
>>> *On management node : *
>>>
>>> [2015-02-05 14:17:35,925] ERROR - NativeWorkerPool Uncaught exception
>>> java.lang.NullPointerException
>>> at
>>> org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOu

Re: [Dev] [DEV][MB] Error when configuring mb in cluster mode with mysql

2015-03-12 Thread Megala Uthayakumar
Hi all,

I was able to solve the problem by using the MB 2.2 documentation. Thanks
for your responses.

On Fri, Mar 13, 2015 at 9:01 AM, Awanthika Senarath 
wrote:

> Hi Megala,
>
> Please ensure that your mysql database is accessible via the URL you have
> provided with the username and passowrd.
>
> I believe the url paramter should be something like this.
>
> jdbc:mysql://localhost:3306/WSO2_MB 
> 
>
> regards
> Awanthika
>
> On Thu, Mar 12, 2015 at 12:27 PM, Harsha Kumara  wrote:
>
>> Hi Megala,
>>
>> Seems the issue with getting database connection. Your master data
>> sources file *jdbc/MySQLMessageStore *has jdbc:mysql://
>> 10.100.4.40/WSO2_MB. Did you expose the mysql server through that IP or
>> if not try with localhost with correct root username and password.
>>
>> Thanks,
>> Harsha
>>
>>
>> On Thu, Mar 12, 2015 at 12:19 PM, Megala Uthayakumar 
>> wrote:
>>
>>>
>>> Hi,
>>>  I am getting following error when running the mb 3.0 in cluster mode
>>> with mysql.
>>>
>>> Cluster setup - 4 nodes mb and mysql server
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Exception during startup: java.lang.Exception:
>>> org.wso2.andes.kernel.AndesException: Connecting to database failed with
>>> jndi lookup : jdbc/MySQLMessageStore. data source username : root. SQL
>>> Error message : com.mysql.jdbc.Driverjava.lang.Exception:
>>> org.wso2.andes.kernel.AndesException: Connecting to database failed with
>>> jndi lookup : jdbc/MySQLMessageStore. data source username : root. SQL
>>> Error message : com.mysql.jdbc.Driverat
>>> org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:266)
>>> at
>>> org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:147)
>>> at org.wso2.andes.server.Broker.startupImpl(Broker.java:153)at
>>> org.wso2.andes.server.Broker.startup(Broker.java:114)at
>>> org.wso2.andes.server.Main.startBroker(Main.java:218)at
>>> org.wso2.andes.server.Main.execute(Main.java:207)at
>>> org.wso2.andes.server.Main.(Main.java:48)at
>>> org.wso2.andes.server.Main.main(Main.java:41)at
>>> org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:330)
>>> at
>>> org.wso2.carbon.andes.internal.QpidServiceComponent.setHazelcastInstance(QpidServiceComponent.java:232)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)at
>>> org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
>>> at
>>> org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)
>>> at
>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)
>>> at
>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>> at
>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
>>> at
>>> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.init(HazelcastClusteringAgent.java:223)
>>> at
>>> org.wso2.carbon.core.util.ClusteringUtil.enableClustering(ClusteringUti

Re: [Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription

2015-03-12 Thread Nuwan Dias
Hi Saneth,

I think this is due to the caching of the older token. Can you please try
again by setting  to 'false' in the api-manager.xml?

Thanks,
NuwanD.

On Fri, Mar 13, 2015 at 8:51 AM, Saneth Dharmakeerthi 
wrote:

> [Adding: Kala and Krishantha ]
>
> Hi,
>
> I tested this issue with both 1.9.0 SNAPSHOT version and 1.8.0. Both
> versions I was able to recreate the isssue.
> I created Jira :APIMANAGER-3374 [1] for tracking purpose.
>
> Automation test case
> "AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase [2]" will be
> disable until this issue is fixed.
> I have updated the API-M 1.9.0 Test Plan [3] with JIRA information.
>
>
> [1] https://wso2.org/jira/browse/APIMANAGER-3374
>
> [2] 
> org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase.java
> [3] API-M 1.9.0 Test Plan
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Fri, Mar 6, 2015 at 10:14 AM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi,
>>
>>1. After copy and publish a new API version with the require
>>re-subscription option and invoke the new API version without doing
>>re-subscription it give an error, which is correct.
>>2. But after that if I do a re-subscription and invoke the new API
>>version again, the first new API version invocation after re-subscription
>>is getting failed and getting success from 2nd invocation after
>>re-subscription.
>>3. This behaviour is not happening if I do not invoke the new API
>>version before doing the re-subscription. In that case, first
>>invocation of new API version after re-subscription is getting
>>succeed.
>>
>> Is there any reason for the above 2nd  observation?.
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>
>


-- 
Nuwan Dias

Associate Tech 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] Orbit update for Paho-MQTT Library

2015-03-12 Thread Kishanthan Thangarajah
Did you go through the checklist of items for orbit creation process? There
is a doc on this.

On Mon, Mar 9, 2015 at 6:03 PM, Eranda Rajapakshe  wrote:

> Hi,
>
> Please review the pull request [1].
>
> [1]. *https://github.com/wso2/orbit/pull/67
> *
>
> Thank you!
> --
> *Eranda Rajapakshe*
> Software Engineering intern
> WSO2 Inc. www.wso2.com
> Tel : +94784822608
> Email : eran...@wso2.com
>



-- 
*Kishanthan Thangarajah*
Senior Software Engineer,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Implementation of API Manager-API Life Cycle Integration Test Cases

2015-03-12 Thread Saneth Dharmakeerthi
Hi Krishantha,

I Updated the document with test classes mapping .

Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Thu, Mar 12, 2015 at 8:01 PM, Krishantha Samaraweera  wrote:

> Hi Saneth,
>
> Can you update the QA test case document with correct mapping for test
> classes.
>
> Thanks,
> Krishantha.
>
> On Thu, Mar 12, 2015 at 7:51 PM, Saneth Dharmakeerthi 
> wrote:
>
>> Please find the progress update of phase2,
>>
>>   Pull request : https://github.com/wso2/product-apim/pull/49
>>
>> This pull request contains,
>>
>>- Migration of test method to test classes that were developed in
>>phase1.
>>- New scenarios covered in Phase 2.
>>- New base class was introduced to lifecycle test cases.
>>- @BeforeTest and @AftterTest methods was  introduced to do
>>the configurations and restore those changes at the end of the lifecycle
>>tests.
>>- Add  cleanup methods to  remove the created/publish and subscribed
>>APIs at the end of each test.
>>- Completed test classes as follow (11 Classes and 44 test methods ).
>>   - AccessibilityOfBlockAPITestCase
>>   - AccessibilityOfDeprecatedOldAPIAndPublishedCopyAPITestCase
>>   - AccessibilityOfOldAPIAndCopyAPIWithOutReSubscriptionTestCase
>>   - AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase
>>   - AccessibilityOfRetireAPITestCase
>>   - APIAccessibilityOfPublishedOldAPIAndPublishedCopyAPITestCase
>>   - APIPublishingAndVisibilityInStoreTestCase
>>   - ChangeAPIBackendURLTestCase
>>   - ChangeAPITagsTestCase
>>   - EditAPIAndCheckUpdatedInformationTestCase
>>   - EditAPIContextAndCheckAccessibilityTestCase
>>
>>
>>
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Fri, Mar 6, 2015 at 8:00 AM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi,
>>>
>>> Please find the progress update,
>>>
>>> I have finished following test cases.
>>>
>>>- testAPIPublishingAndVisibilityInStore
>>>- testAccessibilityOfPublishedOldAPIAndPublishedCopyAPI
>>>- testAccessibilityOfDeprecatedOldAPIAndPublishedCopyAPI
>>>- testAccessibilityOfOldAPIAndCopyAPIWithReSubscription
>>>- testAccessibilityOfOldAPIAndCopyAPIWithOutReSubscription
>>>- testAccessibilityOfBlockAPI
>>>- testAccessibilityOfRetireAPI
>>>
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Mon, Mar 2, 2015 at 5:53 PM, Saneth Dharmakeerthi 
>>> wrote:
>>>
 Hi,

 I am working on $subject, test scenarios will be based on [1] API-M
 1.9.0 Test Plan document (under  API Life Cycle Tab).

 [1]API-M 1.9.0 Test Plan
 

 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

>>>
>>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS]Can not access oauth2 authorize endpoint url

2015-03-12 Thread Udara Liyanage
Hi Hasanthi,

Jars inside plugins directory are written in the bundles.info file. Though
you replace a jar with a new version, it won't get affected since original
version is written in bundles.info file. You can apply the new jar as a
patch or place the new jar inside droppings folder (given the jar is an
OSGI bundle. Else place it in lib folder). Since the new jar is a newer
version, IMO placing it in droppings folder is bit better. Normally we
patch the jar with the same version.

On Thu, Mar 12, 2015 at 9:51 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi Tharindu,
> I solved the problem by creating a higher patch number inside the patches
> folder as you suggested. Thanks for your guidance.
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com 
> M :0718407133| http://wso2.com 
>
> On Thu, Mar 12, 2015 at 9:24 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Hasanthi,
>>
>> Replacing the jar files directly in the plugins folder is not recommended
>> because when you start IS, the jars in the plugins folder can get replaced
>> by the jars in patch folders. Can you create a folder with a higher patch
>> number than existing (eg : patch0999) inside
>> /repository/components/patches folder and copy the particular jar
>> file into that. Then restart IS.
>>
>> Regards,
>> Tharindu
>>
>> On Thu, Mar 12, 2015 at 9:04 PM, Hasanthi Purnima Dissanayake <
>> hasan...@wso2.com> wrote:
>>
>>> Hi Tharindu,
>>> No I did not create a patch folder. I just replaced the
>>> spring.framework_3.2.9.wso2v1.jar inside
>>> product-is/modules/distribution/target/wso2is-5.1.0-SNAPSHOT/repository/components/plugins
>>> with spring.framework_3.1.0.wso2v1.jar which is inside patch in the IS
>>> 5.0.0 release. Please guide me what should I do to recover from the above
>>> error.
>>>
>>> Thanks.
>>>
>>> Hasanthi Dissanayake
>>>
>>> Software Engineer | WSO2
>>>
>>> E: hasan...@wso2.com 
>>> M :0718407133| http://wso2.com 
>>>
>>> On Thu, Mar 12, 2015 at 8:44 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 Hi Hasanthi,

 "As per the instructions I got, I replaced
 spring.framework_3.2.9.wso2v1.
 jar with spring.framework_3.1.0.wso2v1.jar which is inside patch in
 the IS 5.0.0"

 How did you replace the jar ? Did you create a new patch folder with a
 large number than the existing patches and put the jar inside it ?

 Regards,
 Tharindu

 On Thu, Mar 12, 2015 at 8:12 PM, Hasanthi Purnima Dissanayake <
 hasan...@wso2.com> wrote:

> Hi team,
> I am developing openid session management as my fast track training
> project. when I'm using [1] as the authorize endpoint url I got below
> error. As per the instructions I got, I replaced
> spring.framework_3.2.9.wso2v1.jar with spring.framework_3.1.0.wso2v1.jar
> which is inside patch in the IS 5.0.0 release. But still I get the 
> same
> error.
>
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'tokEP': Cannot resolve reference to bean 
> 'authzEndpointBean' while setting bean property 'serviceBeans' with key 
> [0]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'authzEndpointBean' defined in URL 
> [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean 
> failed; nested exception is java.lang.NoClassDefFoundError: 
> org/wso2/carbon/identity/oauth/cache/CacheKey
>   
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>   
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>   
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>   
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>   
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>   
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton

Re: [Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription

2015-03-12 Thread Saneth Dharmakeerthi
Hi Nuwan,

With *false*  it is working
correctly. First new API invocation after re-subscription is not getting
failed even a false invocation happens before doing the re-subscription.

But it is strange the behaviour with
*true*,
because  first new API invocation after re-subscription is getting failed
when false invocation happens before doing the re-subscription and  first
API invocation after re-subscription is not getting failed when false
invocation
is not attempt before doing the re-subscription.

Can't this be a issue with caching mechanism? because with or without cash,
the first invocation after re-subscription should pass regardless of what
has happened before the re-subscription.


Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Fri, Mar 13, 2015 at 9:24 AM, Nuwan Dias  wrote:

> Hi Saneth,
>
> I think this is due to the caching of the older token. Can you please try
> again by setting  to 'false' in the
> api-manager.xml?
>
> Thanks,
> NuwanD.
>
> On Fri, Mar 13, 2015 at 8:51 AM, Saneth Dharmakeerthi 
> wrote:
>
>> [Adding: Kala and Krishantha ]
>>
>> Hi,
>>
>> I tested this issue with both 1.9.0 SNAPSHOT version and 1.8.0. Both
>> versions I was able to recreate the isssue.
>> I created Jira :APIMANAGER-3374 [1] for tracking purpose.
>>
>> Automation test case
>> "AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase [2]" will be
>> disable until this issue is fixed.
>> I have updated the API-M 1.9.0 Test Plan [3] with JIRA information.
>>
>>
>> [1] https://wso2.org/jira/browse/APIMANAGER-3374
>>
>> [2] 
>> org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase.java
>> [3] API-M 1.9.0 Test Plan
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Fri, Mar 6, 2015 at 10:14 AM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi,
>>>
>>>1. After copy and publish a new API version with the require
>>>re-subscription option and invoke the new API version without doing
>>>re-subscription it give an error, which is correct.
>>>2. But after that if I do a re-subscription and invoke the new API
>>>version again, the first new API version invocation after re-subscription
>>>is getting failed and getting success from 2nd invocation after
>>>re-subscription.
>>>3. This behaviour is not happening if I do not invoke the new API
>>>version before doing the re-subscription. In that case, first
>>>invocation of new API version after re-subscription is getting
>>>succeed.
>>>
>>> Is there any reason for the above 2nd  observation?.
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>
>>
>
>
> --
> Nuwan Dias
>
> Associate Tech 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] GSOC2015:PROJECT

2015-03-12 Thread Supun Sethunga
Hi,

You can find all the necessary libraries in the Maven Repository [1].
Please use the latest version of spark (v1.2.1).

[1] http://mvnrepository.com/artifact/org.apache.spark

Regards,
Supun

On Fri, Mar 13, 2015 at 6:27 AM, Tharinda Ehelepola 
wrote:

> Hi,
>
> I checked the methods of apache spark. Some of them are related to
> wrangler script. I run spark as a maven project. But I am not able to run
> example code in java. Because it asking about the libraries. I found some
> simple example from stackoverflow . But I am not able to find the library
> of spark.apache. So can you please give me some idea about those
> libraries.
>
> On Thu, Mar 12, 2015 at 11:35 AM, Supun Sethunga  wrote:
>
>> Hi Tharinda,
>>
>> Please find the comments inline.
>>
>> I think the major part of this project is create a back end of java code
>>> created using wrangler script.
>>
>> Yes.
>>
>> Wrangler scripts are mostly done by javascript. So I need to convert
>>> those into java.
>>
>> Yes. Further, java code should be Apache Spark Transformation. Please
>> refer my previous mail for details on Spark.
>>
>> I was not able to find some method. Other ways of doing this is used
>>> common methods like split,merge.. etc easily find on java. Rest of the
>>> methods are convert by manually. Is there any method to convert those
>>> scripts to java.
>>
>> You have to come up with a solution and an implementation for this. It is
>> the core part of the project :)
>>
>> Feel free to contact us if you need further clarifications.
>>
>> Regards,
>> Supun
>>
>> On Thu, Mar 12, 2015 at 1:04 PM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I think the major part of this project is create a back end of java code
>>> created using wrangler script. Wrangler scripts are mostly done by
>>> javascript. So I need to convert those into java. I was not able to find
>>> some method. Other ways of doing this is used common methods like
>>> split,merge.. etc easily find on java. Rest of the methods are convert by
>>> manually. Is there any method to convert those scripts to java.
>>>
>>> Thank you.
>>> Tharinda.
>>>
>>> On Wed, Mar 11, 2015 at 3:45 AM, Supun Sethunga  wrote:
>>>
 Hi Tharinda,

 Ultimately, the java code created using the wrangler script (after
 conversion), should be able to used as an Apache Spark [1] Transformations
 [2]. (at the back-end)

 On a side note, please use the WSO2 dev mailing list for any project
 related communication :)

 [1] https://spark.apache.org/
 [2]
 http://spark.apache.org/docs/1.2.0/programming-guide.html#transformations

 Regards,
 Supun

 On Wed, Mar 11, 2015 at 7:52 AM, Nirmal Fernando 
 wrote:

> Yes, that's exactly what we want !
>
> On Wed, Mar 11, 2015 at 3:30 AM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> I checked the libraries on wrangler. I think that you mentioned can
>> be done using the libraries. What  I think is get the libraries from
>> wrangler and create a back-end for the interface created using jaggery.
>> Wrangler script to java converter can be add to the back-end also.
>>
>> On Tue, Mar 10, 2015 at 4:10 AM, Nirmal Fernando 
>> wrote:
>>
>>> Remotely connecting to Wrangler (hosted service) is not a good
>>> option. What we expect is we take their library (it's Open source) and 
>>> use
>>> the API to perform the transformations and cleaning. Could you please 
>>> check
>>> the feasibility of that?
>>>
>>> On Tue, Mar 10, 2015 at 9:34 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Hi,

 I drew what I understood the project to be.

 If one wants to do data cleaning and transformation he need to
 connect to the wrangler directly. That is what I mean from the first 
 two
 blocks. If they have a customized UI you can do data cleaning and
 transformation using ML also. They don't need to connect to the 
 wrangler.
 Another thing i realized that is they don't need all the operations in
 wrangler. They need some specific subset of operations only. What I 
 mean
 from the bottom block is the UI created using Jaggery interfacing 
 between
 ML and the wrangler.

 On Tue, Mar 10, 2015 at 2:16 AM, Nirmal Fernando 
 wrote:

> Hi Tharindu,
>
> Thanks for the diagram. Do you mind explaining the diagram?
>
> On Tue, Mar 10, 2015 at 3:27 AM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> Here I attached a simple design of project development. Can you
>> give me some comments about this.
>>
>> Thank you.
>>
>> On Mon, Mar 9, 2015 at 2:16 AM, Nirmal Fernando 
>> wrote:

Re: [Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription

2015-03-12 Thread Nuwan Dias
We cache the invalid access requests as well. So that someone with an
invalid token can't overload the system (much).

Thanks,
NuwanD.

On Fri, Mar 13, 2015 at 10:33 AM, Saneth Dharmakeerthi 
wrote:

> Hi Nuwan,
>
> With *false*  it is
> working correctly. First new API invocation after re-subscription is not
> getting failed even a false invocation happens before doing the
> re-subscription.
>
> But it is strange the behaviour with 
> *true*,
> because  first new API invocation after re-subscription is getting failed
> when false invocation happens before doing the re-subscription and  first
> API invocation after re-subscription is not getting failed when false 
> invocation
> is not attempt before doing the re-subscription.
>
> Can't this be a issue with caching mechanism? because with or without
> cash, the first invocation after re-subscription should pass regardless of
> what has happened before the re-subscription.
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Fri, Mar 13, 2015 at 9:24 AM, Nuwan Dias  wrote:
>
>> Hi Saneth,
>>
>> I think this is due to the caching of the older token. Can you please try
>> again by setting  to 'false' in the
>> api-manager.xml?
>>
>> Thanks,
>> NuwanD.
>>
>> On Fri, Mar 13, 2015 at 8:51 AM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> [Adding: Kala and Krishantha ]
>>>
>>> Hi,
>>>
>>> I tested this issue with both 1.9.0 SNAPSHOT version and 1.8.0. Both
>>> versions I was able to recreate the isssue.
>>> I created Jira :APIMANAGER-3374 [1] for tracking purpose.
>>>
>>> Automation test case
>>> "AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase [2]" will be
>>> disable until this issue is fixed.
>>> I have updated the API-M 1.9.0 Test Plan [3] with JIRA information.
>>>
>>>
>>> [1] https://wso2.org/jira/browse/APIMANAGER-3374
>>>
>>> [2] 
>>> org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase.java
>>> [3] API-M 1.9.0 Test Plan
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Fri, Mar 6, 2015 at 10:14 AM, Saneth Dharmakeerthi 
>>> wrote:
>>>
 Hi,

1. After copy and publish a new API version with the require
re-subscription option and invoke the new API version without doing
re-subscription it give an error, which is correct.
2. But after that if I do a re-subscription and invoke the new API
version again, the first new API version invocation after 
 re-subscription
is getting failed and getting success from 2nd invocation after
re-subscription.
3. This behaviour is not happening if I do not invoke the new API
version before doing the re-subscription. In that case, first
invocation of new API version after re-subscription is getting
succeed.

 Is there any reason for the above 2nd  observation?.

 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

>>>
>>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Associate Tech Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>


-- 
Nuwan Dias

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


[Dev] How to work with remote debug

2015-03-12 Thread Naasheer Ali
Hi,

I'm trying to fix a jira issue (ESBJAVA-3311). Any suggestion or reference
to &subject.
Regards,
-- 

*Naasheer Ali* | Associate Software Engineer

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

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


Re: [Dev] How to work with remote debug

2015-03-12 Thread Anuruddha Liyanarachchi
Hi Naasheer,

Please have a look in the following blog post.

[1]http://dweebslair.blogspot.com/2014/02/wso2-esb-4.html


On Fri, Mar 13, 2015 at 10:58 AM, Naasheer Ali  wrote:

> Hi,
>
> I'm trying to fix a jira issue (ESBJAVA-3311). Any suggestion or reference
> to &subject.
> Regards,
> --
>
> *Naasheer Ali* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: naashe...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a nurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to work with remote debug

2015-03-12 Thread Vanjikumaran Sivajothy
you can do remote debugging from your IDE with ESB code. First start the
ESB server script with debug option as follows. wso2server.sh -debug 5005
where the number is any port number used for remote debugging from your
IDE. Then run debug in your IDE with whatever the port number you assigned.

this [1] blog may help you.

[1]
http://blog.kasunbg.org/2010/05/remote-debugging-java-packages-in-wso2.html

On Fri, Mar 13, 2015 at 10:58 AM, Naasheer Ali  wrote:

> Hi,
>
> I'm trying to fix a jira issue (ESBJAVA-3311). Any suggestion or reference
> to &subject.
> Regards,
> --
>
> *Naasheer Ali* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: naashe...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


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


Re: [Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription

2015-03-12 Thread Saneth Dharmakeerthi
Cashed invalid request should  get overwrite after the  subscription or
 the first invocation after the subscription? first invocation fails and
second invocation pass. So the should't the overwrite happened in first
call?

Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Fri, Mar 13, 2015 at 10:47 AM, Nuwan Dias  wrote:

> We cache the invalid access requests as well. So that someone with an
> invalid token can't overload the system (much).
>
> Thanks,
> NuwanD.
>
> On Fri, Mar 13, 2015 at 10:33 AM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi Nuwan,
>>
>> With *false*  it is
>> working correctly. First new API invocation after re-subscription is not
>> getting failed even a false invocation happens before doing the
>> re-subscription.
>>
>> But it is strange the behaviour with 
>> *true*,
>> because  first new API invocation after re-subscription is getting
>> failed when false invocation happens before doing the re-subscription and
>>   first API invocation after re-subscription is not getting failed when
>> false invocation is not attempt before doing the re-subscription.
>>
>> Can't this be a issue with caching mechanism? because with or without
>> cash, the first invocation after re-subscription should pass regardless of
>> what has happened before the re-subscription.
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Fri, Mar 13, 2015 at 9:24 AM, Nuwan Dias  wrote:
>>
>>> Hi Saneth,
>>>
>>> I think this is due to the caching of the older token. Can you please
>>> try again by setting  to 'false' in the
>>> api-manager.xml?
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Fri, Mar 13, 2015 at 8:51 AM, Saneth Dharmakeerthi 
>>> wrote:
>>>
 [Adding: Kala and Krishantha ]

 Hi,

 I tested this issue with both 1.9.0 SNAPSHOT version and 1.8.0. Both
 versions I was able to recreate the isssue.
 I created Jira :APIMANAGER-3374 [1] for tracking purpose.

 Automation test case
 "AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase [2]" will be
 disable until this issue is fixed.
 I have updated the API-M 1.9.0 Test Plan [3] with JIRA information.


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

 [2] 
 org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase.java
 [3] API-M 1.9.0 Test Plan

 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

 On Fri, Mar 6, 2015 at 10:14 AM, Saneth Dharmakeerthi >>> > wrote:

> Hi,
>
>1. After copy and publish a new API version with the require
>re-subscription option and invoke the new API version without
>doing re-subscription it give an error, which is correct.
>2. But after that if I do a re-subscription and invoke the new API
>version again, the first new API version invocation after 
> re-subscription
>is getting failed and getting success from 2nd invocation after
>re-subscription.
>3. This behaviour is not happening if I do not invoke the new API
>version before doing the re-subscription. In that case, first
>invocation of new API version after re-subscription is getting
>succeed.
>
> Is there any reason for the above 2nd  observation?.
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>


>>>
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Associate Tech Lead - WSO2, Inc. http://wso2.com
>>> email : nuw...@wso2.com
>>> Phone : +94 777 775 729
>>>
>>
>>
>
>
> --
> Nuwan Dias
>
> Associate Tech 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


[Dev] [Carbon] ERROR {org.wso2.carbon.context.internal.OSGiDataHolder} - Before activating Carbon Core bundle, an instance of RegistryService should be in existence When starting the Carbon server

2015-03-12 Thread Thusitha Thilina Dayaratne
Hi,

I'm working on adding tomcat 8.0.20 support in Carbon platform. After
building the kernel When I'm trying to start the Carbon sever I'm getting
the following error.

ERROR {org.wso2.carbon.context.internal.OSGiDataHolder} -  Before
> activating Carbon Core bundle, an instance of RegistryService should be in
> existence
> [2015-03-13 11:12:13,521] ERROR
> {org.wso2.carbon.context.internal.OSGiDataHolder} -  Before activating
> Carbon Core bundle, an instance of RegistryService should be in existence
> [2015-03-13 11:12:13,523]  WARN
> {org.wso2.carbon.core.CarbonAxisConfigurator} -  Unable to load transports
> from the registry. Some transports may not get initialized.
> org.apache.axis2.AxisFault: Configuration Registry is not available
> at
> org.wso2.carbon.core.persistence.AbstractPersistenceManager.(AbstractPersistenceManager.java:133)
> at
> org.wso2.carbon.core.transports.TransportPersistenceManager.(TransportPersistenceManager.java:62)
> at
> org.wso2.carbon.core.CarbonAxisConfigurator.loadTransports(CarbonAxisConfigurator.java:388)
> at
> org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:372)
> at
> org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:184)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
> at
> org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
> at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:400)
> at
> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
> at
> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:88)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:138)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.

Re: [Dev] Proposal 5: ESB - AS2 Support

2015-03-12 Thread Amil Shanaka
Hi Sandamal,

Thank you very much. I'll look into the details and let you know..

On Thu, Mar 12, 2015 at 10:06 AM, Sandamal Weerasinghe 
wrote:

> Hi Amil,
>
> Please checkout the master branch from
> https://github.com/wso2/product-esb/branches we now use Git. Also take a
> look at the inbound endpoints in carbon-mediation
>  (e.g. JMS Inbound
> endpoint, HTTP inbound endpoint). The AS2 transport could be implemented
> similar to those, but we have not decided that yet. Please do continue your
> research on the AS2 protocol, look for free java libraries that could be
> used for implementing a AS2 transport.
>
> Thanks.
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>
> On Tue, Mar 10, 2015 at 11:01 PM, Amil Shanaka 
> wrote:
>
>> Hi Sandamal, Chanaka & all.
>>
>> I'm interested in this particular project. I have downloaded and build
>> the chunk 7 from the svn server with patches and successfully built ESB. I
>> would like to have some guild lines for stating this project. since it's a
>> R&D project I have started doing research on AS2. Playing  with remote
>> debugging with ESB samples I got some understanding about the message flow.
>> But I need some help to figuring out the architectural design of this
>> project.
>>
>> Thank you.
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Project proposal 10

2015-03-12 Thread Imesh Gunaratne
Hi Dinanjana,

It's nice to hear your interest on this. The idea of this project is to
implement a billing system for WSO2 Private PaaS which could integrate with
Google Wallet for invoice generation and payments. The steps to follow
would be as follows:

- Do a literature review on billing cloud services and identify billing
patterns.
- Do an analysis on open source billing systems and reuse an existing or
implement one from scratch
- Integrate above billing system with WSO2 PPaaS.
- Integrate above billing system with Google Wallet.

Please use WSO2 Dev mailing list for making this discussion.

Thanks

On Tue, Mar 10, 2015 at 9:47 AM, Dinanjana Gunaratne <
dinanjanagunara...@gmail.com> wrote:

> Dear sir,
>
> Would you mind elaborating more about this project ?? As i understood all
> i need to do is build a web application which can generate invoices for
> cloud usage ?? So what is the method i should use for billing ?? Should the
> billing happen as in below article
> http://www.ibm.com/developerworks/cloud/library/cl-cloudmetering/ ?
>
>
>Thank you in advance
>



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


Re: [Dev] STS-Service with security policy

2015-03-12 Thread Godwin Amila Shrimal
Hi,

Issue was in the ServicePasswordCallbackHandler, when applying security
authorization for resource and do authorization, it has use two resource
values. Here we use registry path as the resource value, when applying the
security and use same when authorization.

Thanks Darshana for the help given.


Thanks
Godwin



On Thu, Mar 12, 2015 at 12:51 PM, Godwin Amila Shrimal 
wrote:

> Hi,
>
> I am working on persisting security policy to registry, earlier it use
> file based persistence model. I have completed most of the registry
> persistence and doing testing. After applying "UsernameToken" policy to
> sts-service and call the IssueToken operation of sts-service using SOAPUI
> it gives following error.
>
> he security token could not be authenticated or authorized; nested
> exception is:
>
> javax.security.auth.callback.UnsupportedCallbackException: Check failed :
> System error {org.apache.axis2.engine.AxisEngine}
>
> org.apache.axis2.AxisFault: The security token could not be authenticated
> or authorized; nested exception is:
>
> javax.security.auth.callback.UnsupportedCallbackException: Check failed :
> System error
>
> at
> org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
>
> at
> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
>
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>
> at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
>
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
>
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioE

Re: [Dev] GSOC 2015

2015-03-12 Thread Imesh Gunaratne
Hi Randika,

It's nice to hear your interest on this. The idea of this project is to
implement a billing system for WSO2 Private PaaS which could integrate with
Google Wallet for invoice generation and payments. The steps to follow
would be as follows:

- Do a literature review on billing cloud services and identify billing
patterns.
- Do an analysis on open source billing systems and reuse an existing or
implement one from scratch
- Integrate above billing system with WSO2 PPaaS.
- Integrate above billing system with Google Wallet.

Once you are done with your analysis you could prepare a project proposal
on a Google document and share it.
Please use WSO2 Dev mailing list for making this discussion.

Thanks

On Wed, Mar 11, 2015 at 2:32 PM, Lakmal Warusawithana 
wrote:

> looping Imesh
>
> On Wed, Mar 11, 2015 at 12:32 AM, Randika Hapugoda 
> wrote:
>
>> Hi Mr.Lakmal,
>> I just saw the gsoc 2015 mentoring organization list and found Proposal
>> 10: Google Wallet based Billing System for WSO2 Private PaaS
>>
>> as a area of interest. As mention in the description I have stated to
>> review on billing systems on PaaS.
>> Is there anythings that I should look into? I have worked with Stratos
>> before and have some experience on it.
>> So guild me to this event and hope to hear from you soon.
>>
>> Thanks.
>> Randika Hapugoda.
>> (hrandika.blogspot.com)
>> +94 71 199 7224
>> hrandika @ Facebook | Twitter | Youtube | Google+
>>
>>
>
>
> --
> Lakmal Warusawithana
> Vice President, Apache Stratos
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>


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


Re: [Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-12 Thread Chanaka Jayasena
It's also possible to try with Local Storage. We don't use Local Storage
much because of the lack of browser support. But it's possible to use other
data storage methods specific to each browser when local storage is not
supported ( session storage, globalStorage etc.. ) . [1] is a popular
library that we can use to do just that. This lib is mostly use in web to
keep user preferences in the client side. AFAIK it's not been use in any of
our products yet. So it needs to be taken through the 3rd party approval
process.

[1] - http://amplifyjs.com/api/store/

thanks,
Chanaka



On Thu, Mar 12, 2015 at 7:03 PM, Samith Dassanayake  wrote:

> Hi Anuruddha,
> Please find my comments inline.
>
> On Thu, Mar 12, 2015 at 2:21 AM, Anuruddha Premalal 
> wrote:
>
>>
>>
>> On Thu, Mar 12, 2015 at 12:58 PM, Gayan Dhanushka 
>> wrote:
>>
>>> Hi Anuruddha/ Danushka,
>>>
>>> FYI, I checked the code again and noticed that calling getAllAppsOfUser
>>> from the user home page is not needed anymore. It is used in the eventing
>>> page template. So updating the "application_list" in session
>>>
>>
>> IMO we shouldn't keep the application_list in the *session*. Otherwise
>> this will cause the issue that Danushka explained earlier. Shall we move it
>> to *application* cache and do proper invalidation on update/delete?
>>
> The problem with the application level caching is, in real production
> environment there will be hundreds of applications and It is not
> recommended to keep heavyweight objects in the jaggery application cache as
> they might introduce issues under concurrent environments[1].
>
>>
>> from the notification wall template is enough. Further more
>>> "application_list" is not the attribtue in the session which is used to
>>> draw the user home page.
>>>
>>
>> Are we using this application_list somewhere else?. It's not correct to
>> have the application_list in the *session* cache.
>>
>>
>>> It is "USER_HOME_CACHE" attribute the one which is used.
>>>
>>> So I think it is safe to remove the recurring getAllAppsOfUser from the
>>> user home page.
>>>
>>
>> Check whether the  USER_HOME_CACHE have the application creation status;
>> it shouldn't be cached since it's a dynamic parameter; in that case you'll
>> have to getapplication info from  the back-end.
>>
> Yes.  USER_HOME_CACHE does has the application status and it will updated
> the dynamically by poling for status changes of the applications, which are
> in the pending status.
>
> [1] "Do we have a cache implementation in Jaggery"
>
> Thanks,
> Samith
>
>>
>>
>>>
>>
>>>
>> WDYT ?
>>>
>>> Regards
>>> Gayan
>>>
>>> On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal >> > wrote:
>>>
 Hi Gayan,

 IMO we should cache user data in the session cache and the application
 data should go to the application level cache. This way we can get rid of
 unwanted back-end calls and do proper cache invalidation.

 So IMO the proper way to do this is to have a clear data separation in
 caching layers rather than increasing callbacktime.

 WDYT?

 Regards,
 Anuruddha.

 On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka 
 wrote:

> Hi Danushka,
>
> Thanks for the useful information. Yes. The cache is in the session.
> Me too believe that the 1 minute time difference is too soon.
>
> +1 for increasing it.
>
> Regards
> Gayan
>
> On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando  > wrote:
>
>> I didn't check the code. However I guess cache is in session. Is that
>> right? So say A logs in to AF and do whatever stuff. And B logs in to AF
>> and create an application foo and add A to that foo application. Then 
>> there
>> is no way to update the cache unless we read it from data layer time to
>> time. If this is not the case picture in my head is wrong so please 
>> correct
>> it.
>> However 1 minute seems too soon.
>>
>>1. Make it configurable
>>2. Increase it to somewhere like 10 - 15 minutes.
>>
>> WDYT?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka 
>> wrote:
>>
>>> Hi all,
>>>
>>> I noticed $subject in the index page. Any particular reason for
>>> having this ? Since we have a cache for user home data, IMO we do not 
>>> need
>>> this anymore. Data from the back end can only be read initially.
>>>
>>> Regards
>>> Gayan
>>>
>>> --
>>> 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
>>>
>>
>>
>
>
> --
> Gayan Dhanuska
> 

[Dev] [App Factory] Getting "java.lang.SecurityException: Illegal access attempt to cache" when trying to access a cache a

2015-03-12 Thread Gayan Dhanushka
Hi all,

I am getting $subject while trying to invoke
*ApplicationsOfUserCache.getApplicationsOfUserCache().isUserInvitedToApplication(userName);*
Following is the stack trace. Any idea on this issue ?

[2015-03-13 06:22:18,794] ERROR {module/application/get/list.jag} -  Error
while getting application of userjava.lang.SecurityException: Illegal
access attempt to cache ] owned by tenant {[carbon.super],[-1234]} by
tenant {[man.com],[9]}
[2015-03-13 06:22:18,795] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.mozilla.javascript.JavaScriptException: Error while getting application
of userJavaException: java.lang.SecurityException: Illegal access attempt
to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[man.com],[9]}
(/appmgt/modules/application/get/list.jag#564)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.JavaScriptException: Error while getting application
of userJavaException: java.lang.SecurityException: Illegal access attempt
to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[man.com],[9]}
(/appmgt/modules/application/get/list.jag#564)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)
at
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.mozilla.javascript.JavaScriptException: Error while getting
application of userJavaException: java.lang.SecurityException: Illegal
access attempt to cache ] owned by tenant {[carbon.super],[-1234]} by
tenant {[man.com],[9]} (/appmgt/modules/application/get/list.jag#564)
at
org.jaggeryjs.rhino.appmgt.modules.application.get.c0._c_anonymous_25(/appmgt/modules/application/get/list.jag:564)
at
org.jaggeryjs.rhino.appmgt.modules.application.get.c0.call(/appmgt/modules/application/get/list.jag)
at
org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
at
org.

Re: [Dev] [App Factory] Getting "java.lang.SecurityException: Illegal access attempt to cache" when trying to access a cache a

2015-03-12 Thread Danushka Fernando
Error says Illegal access attempt to cache ] owned by tenant
{[carbon.super],[-1234]} by tenant {[man.com*],[9]}*. I guess that's the
cause.

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Fri, Mar 13, 2015 at 12:08 PM, Gayan Dhanushka  wrote:

> Hi all,
>
> I am getting $subject while trying to invoke
> *ApplicationsOfUserCache.getApplicationsOfUserCache().isUserInvitedToApplication(userName);*
> Following is the stack trace. Any idea on this issue ?
>
> [2015-03-13 06:22:18,794] ERROR {module/application/get/list.jag} -  Error
> while getting application of userjava.lang.SecurityException: Illegal
> access attempt to cache ] owned by tenant {[carbon.super],[-1234]} by
> tenant {[man.com],[9]}
> [2015-03-13 06:22:18,795] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
> org.mozilla.javascript.JavaScriptException: Error while getting application
> of userJavaException: java.lang.SecurityException: Illegal access attempt
> to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[man.com],[9]}
> (/appmgt/modules/application/get/list.jag#564)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.JavaScriptException: Error while getting application
> of userJavaException: java.lang.SecurityException: Illegal access attempt
> to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[man.com],[9]}
> (/appmgt/modules/application/get/list.jag#564)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)
> at
> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
> at
> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: org.mozilla.javascript.JavaScriptException: Error while getting
> application of userJavaException: java.lang.Secu

Re: [Dev] [ESB] [Cluster] Error when trying to log in with the created tenants

2015-03-12 Thread Kala Weerawardana
Hi Shashika,

I have attached the error trace in the previous message. (errorLog.txt)

Regards,
Kala

On Thu, Mar 12, 2015 at 9:30 PM, Shashika Karunatilaka 
wrote:

> Hi Kala,
>
> Can you provide the error trace here.
>
> Thank you.
>
> On Thu, Mar 12, 2015 at 8:19 PM, Godwin Amila Shrimal 
> wrote:
>
>> Hi Kala,
>>
>> What is the ESB version you are using here ? mean time can you attach the
>> wso2carbon.log file.
>>
>>
>> Thanks
>> Godwin
>>
>>
>> On Thu, Mar 12, 2015 at 8:16 PM, Kala Weerawardana  wrote:
>>
>>> Hi,
>>>
>>> I created an ESB cluster fronted by ELB. Created a LDAP server through
>>> ApacheDS.
>>>
>>> When creating a tenant the bellow error occurred.
>>>
>>> "ERROR - TenantPersistor Error in changing the tenant admin password for
>>> tenant domain:"
>>>
>>> To fix this, I applied the patch related to [1]. The problem solved and
>>> I was able to create tenants without a problem.
>>>
>>>
>>>- Now when I try to log in with the created tenants I get an error
>>>saying,
>>>
>>> "Login failed! Please recheck the username and password and try again."
>>>
>>>
>>>- Then I tried to edit the tenant giving a new password and update.
>>>Got an error saying,
>>>
>>>"ERROR - TenantMgtAdminService Error in changing the
>>> tenant admin password, tenant domain:"
>>>
>>>
>>> Is there a solution for this?
>>>
>>>
>>> [1] - https://wso2.org/jira/browse/CARBON-15187
>>>
>>>
>>> Thank you,
>>> Kala
>>> --
>>> Kala C. Weerawardana
>>> *Software Engineer - QA Team*
>>> *WSO2 Inc. *
>>> Mobile :  +94 (0) 716189886 +94 (0) 772877683
>>> Blog : http://castakai.blogspot.com
>>> k...@wso2.com
>>>
>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Kala C. Weerawardana
*Software Engineer - QA Team*
*WSO2 Inc. *
Mobile :  +94 (0) 716189886 +94 (0) 772877683
Blog : http://castakai.blogspot.com
k...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] wso2esb-4.9.0-M8-SNAPSHOT

2015-03-12 Thread Kathees Rajendram
Hi,

I implemented and tested in wso2 esb-4.9.0-M7-SNAPSHOT. I tried to add the
synapse and carbon mediation jar to the wso2 esb-4.9.0-M8-SNAPSHOT pack.
The changes are not picking in ESB M8.
I built the ESB M8 pack from develop branch.

Any suggestion please?

Thanks
Kathees

-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Don't commit to APIM old test modules

2015-03-12 Thread Krishantha Samaraweera
Hi APIM Team,

Automation team is migrating test suites from old test framework to new
one. I've already removed old test modules from integration module POM and
applied the pull request four days ago, updated mail thread can be found at
 "[APIM] Please merge pull request"

Note that only following modules are enabled now.


tests-commontests-integration <
!--tests-ui-integration-->
 

Can you please refine from committing to old test modules. We kept those
old modules until test migration is over. Now I think its not a good idea
to keep those modules and will remove them soon.

Let me know if you have any concern with removing old test modules.

Following test modules will be removed shortly. And we will take care of
migrating tests in those modules to our new modules properly.

1. tests-new
2. tests-ui
3. tests.

Thanks,
Krishatnha.


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] wso2esb-4.9.0-M8-SNAPSHOT

2015-03-12 Thread Vanjikumaran Sivajothy
Is the synapse version same in the M7 and M8??


On Fri, Mar 13, 2015 at 12:16 PM, Kathees Rajendram 
wrote:

> Hi,
>
> I implemented and tested in wso2 esb-4.9.0-M7-SNAPSHOT. I tried to add the
> synapse and carbon mediation jar to the wso2 esb-4.9.0-M8-SNAPSHOT pack.
> The changes are not picking in ESB M8.
> I built the ESB M8 pack from develop branch.
>
> Any suggestion please?
>
> Thanks
> Kathees
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


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