Re: [Dev] Dynamic Queue Error When Using Destination Type as topic

2015-03-18 Thread Isuru Haththotuwa
The problem here was HTTP DELETE from ESB Rest API being sent directly to
soap backend. Set the HTTP operation as POST [1] from the sequence, and it
worked. Many thanks IndikaS for all the help.

[1]. 


On Tue, Mar 17, 2015 at 11:52 PM, Isuru Haththotuwa  wrote:

> Hi Hasitha,
>
> On Tue, Mar 17, 2015 at 11:39 PM, Hasitha Hiranya 
> wrote:
>
>> Hi,
>>
>> Check the destination type parameter. It should be "topic", not "queue".
>> Also we need to have the prefix "topic." in jndi.properties file.
>>
> yes, the destination type is topic. And the prefix topic is there in the
> jndi.properties file.
>
>>
>> Thanks
>>
>> On Tue, Mar 17, 2015 at 1:06 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi Malaka and Hasitha,
>>>
>>> Thanks for the input.
>>>
>>> I changed the topic to dc1Topic (removed the prepending 'topic.') and
>>> listed the topics in the jndi.properties file. Now getting a different
>>> error [1].
>>>
>>> [1].
>>> java.lang.ClassCastException: org.wso2.andes.client.AMQTopic cannot be
>>> cast to javax.jms.Queue
>>> at
>>> org.apache.axis2.transport.jms.JMSOutTransportInfo.createJMSSender(JMSOutTransportInfo.java:380)
>>>
>>> at
>>> org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:127)
>>> at
>>> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at
>>> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>> at
>>> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
>>> at
>>> org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)
>>> at
>>> org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333)
>>> at
>>> org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
>>> at
>>> org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.java:54)
>>> at
>>> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:114)
>>> 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.mediators.base.SequenceMediator.mediate(SequenceMediator.java:196)
>>> 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.rest.Resource.process(Resource.java:297)
>>> at org.apache.synapse.rest.API.process(API.java:341)
>>> at
>>> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
>>> at
>>> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
>>> at
>>> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
>>> at
>>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:168)
>>> at
>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>> at java.lang.Thread.run(Thread.java:662)
>>>
>>>
>>> On Tue, Mar 17, 2015 at 9:51 PM, Hasitha Hiranya 
>>> wrote:
>>>
 javax.naming.NameNotFoundException: dynamicQueues/topic.datacenter1

 This means this topic is not added to the initialcontext and cannot
 lookup.

 Is this a dynamic topic? What about specifying the topic in
 JNDI.properties file?




 On Tue, Mar 17, 2015 at 10:59 AM, Malaka Silva  wrote:

> Hi Isuru,
>
> Can you try giving simple name like datacenter1 instead of
> topic.datacenter1?
>
> @Hasitha did you experience a similar issue recently?
>
> On Tue, Mar 17, 2015 at 6:45 PM, Isuru Haththotuwa 
> wrote:
>
>> Hi,
>>
>> When I'm using an ESB sequence to send a message to a JMS topic,
>> noticed the error [1

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Chamalee De Silva
Congratz Hemika !!

On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe  wrote:

> Hi Hemika,
> Congratulations!
> It is with great pleasure that we welcome you as a WSO2 committer. Keep
> up the good work!
> regards,
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
>
>
> ___
> 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Maheeka Jayasuriya
Congrats Hemika !

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Wed, Mar 18, 2015 at 12:57 PM, Chamalee De Silva 
wrote:

> Congratz Hemika !!
>
> On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe 
> wrote:
>
>> Hi Hemika,
>> Congratulations!
>> It is with great pleasure that we welcome you as a WSO2 committer. Keep
>> up the good work!
>> regards,
>>
>> --
>> Ramith Jayasinghe
>> Technical Lead
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> E: ram...@wso2.com
>>
>>
>> ___
>> 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
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Sajith Ariyarathna
Congrats Hemika!!!

On Wed, Mar 18, 2015 at 12:59 PM, Maheeka Jayasuriya 
wrote:

> Congrats Hemika !
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> On Wed, Mar 18, 2015 at 12:57 PM, Chamalee De Silva 
> wrote:
>
>> Congratz Hemika !!
>>
>> On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe 
>> wrote:
>>
>>> Hi Hemika,
>>> Congratulations!
>>> It is with great pleasure that we welcome you as a WSO2 committer. Keep
>>> up the good work!
>>> regards,
>>>
>>> --
>>> Ramith Jayasinghe
>>> Technical Lead
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> E: ram...@wso2.com
>>>
>>>
>>> ___
>>> 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
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Mahesh Chinthaka
Hi,

Is this 'createProject' method implemented by you  inside
IssueTrackerService ?? Because in my code I cannot see such a method in
IssueTrackerService.
You can debug the backend code to find out the place where NP occurs.


On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha 
wrote:

> Hi,
>
> I tried logging in between the steps.
>
> * tenantId and tenantDomain are not null
> * The null pointer exception takes place in the following line.
>
> server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName",
>  issueTrackerConfig);
>
> Is it because the server cannot track the OSGI service I'm referring to?
>  (The service is listed in the OSGI cosole)
>
> How can I figure it out?
>
> Thanks.
> Regards,
> Dilhasha
>
> *M.N.F. Dilhasha*
> Software Engineering Intern | *WSO2 Lanka*
>
> email   :
> *dilha...@wso2.com *mobile : +94 77 8449321
>
> On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha 
> wrote:
>
>> Hi Mahesh,
>>
>> Thanks for the points. I'll work on those and see.
>>
>> Regards,
>> Dilhasha
>>
>> *M.N.F. Dilhasha*
>> Software Engineering Intern | *WSO2 Lanka*
>>
>> email   :
>> *dilha...@wso2.com *mobile : +94 77 8449321
>>
>> On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka 
>> wrote:
>>
>>> Sorry I missed this,
>>> getting modManager varialbe , put this befor getting the tenant domain.
>>> var modManager = jagg.module("manager");
>>>
>>> On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka 
>>> wrote:
>>>
 Hi Dilhasha,
 I think you havent got the tenant domain properly.

 you may use following to get tenant domain.
 var tenantDomain = modManager.getTenantDomain();

 you may use following to set tenant domain n id

 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);


  in between the steps you can put  info logs to see values, in that way
 you may be able to see whats null here.

 On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando >>> > wrote:

> Few points
>
>1. Did you check whether your osgi bundle is activated or not? May
>be that's the issue. Seems it cannot find the osgi service.
>2. When start tenant flow in setTenantDomain method there is a
>another signature which will take in tenantDomain (String) and
>resolveTenantID (boolean) parameters. You can use that instead of 
> setting
>tenantID manually.
>3. The way you have included the module, AFAIR that's not the way
>to refer to a module. Refer to other places that we have done such a 
> thing.
>
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha 
> wrote:
>
>> Hi Mahesh,
>>
>> Thanks for the response.
>>
>> Following is the code in saveConfig.jag
>>
>> include("/jagg/jagg.jag");
>> include("/jagg/constants.jag");
>> include("/jagg/config_reader.jag");
>> include("/modules/manager/manager.jag");
>>
>> (function () {
>>
>> var carbon = require('carbon');
>> var log = new Log("module/issuetracker/saveConfig.jag");
>> var multitenancy = carbon.multitenancy;
>> var server = carbon.server;
>>
>>
>>
>> var context=multitenancy.getPrivilegedCarbonContext();
>> var tenantDomain = getTenantDomain();
>> var tenantId=getTenantId();
>>
>> var issueTrackerConfig = 
>> Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations;
>> var issueConfig=new issueTrackerConfig();
>> issueConfig.setIssueTrackerinstanceUrl("some url");
>>
>> try{
>>
>> context.startTenantFlow();
>> context.getThreadLocalCarbonContext().setTenantId(tenantId);
>> 
>> context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain);
>> 
>> server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject("applicationName",
>>  issueTrackerConfig);
>> }catch(e){
>> log.error(e);
>> }finally{
>> context.endTenantFlow();
>> }
>>
>>
>>
>>
>> }());
>>
>>
>>
>> The getTenantDomain,getTenantId functions are in a different jag
>> file, which I have included (manager.jag).
>>
>>
>>
>> *M.N.F. Dilhasha*
>> Software Engineering Intern | *WSO2 Lanka*
>>
>> email   :
>> *dilha...@wso2.com *mobile : +94 77 8449321
>>
>> On Wed, Mar 18, 2015 at 10:35 AM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi Dilhasha,
>>>
>>> This could be either not setting tenant domain/ id properly or,
>>> issueTrackerConfig parameter might be null at that moment. can you share
>>> the code segment of 

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Sajini De Silva
Congratz Hemika!!!

On Wed, Mar 18, 2015 at 1:01 PM, Sajith Ariyarathna 
wrote:

> Congrats Hemika!!!
>
> On Wed, Mar 18, 2015 at 12:59 PM, Maheeka Jayasuriya 
> wrote:
>
>> Congrats Hemika !
>>
>> Maheeka Jayasuriya
>> Software Engineer
>> Mobile : +9450661
>>
>> On Wed, Mar 18, 2015 at 12:57 PM, Chamalee De Silva 
>> wrote:
>>
>>> Congratz Hemika !!
>>>
>>> On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe 
>>> wrote:
>>>
 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 regards,

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com


 ___
 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
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sajith Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> mobile: +94 77 6602284, +94 71 3951048
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

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


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Fathima Dilhasha
Hi,

Yeah 'createProject' is a method I introduced. I've patched it to my
AppFactory instance.
Okay, I will debug backend code and see.

Thanks.

Regards,
Dilhasha

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

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

On Wed, Mar 18, 2015 at 1:04 PM, Mahesh Chinthaka  wrote:

> Hi,
>
> Is this 'createProject' method implemented by you  inside
> IssueTrackerService ?? Because in my code I cannot see such a method in
> IssueTrackerService.
> You can debug the backend code to find out the place where NP occurs.
>
>
> On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha 
> wrote:
>
>> Hi,
>>
>> I tried logging in between the steps.
>>
>> * tenantId and tenantDomain are not null
>> * The null pointer exception takes place in the following line.
>>
>> server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName",
>>  issueTrackerConfig);
>>
>> Is it because the server cannot track the OSGI service I'm referring to?
>>  (The service is listed in the OSGI cosole)
>>
>> How can I figure it out?
>>
>> Thanks.
>> Regards,
>> Dilhasha
>>
>> *M.N.F. Dilhasha*
>> Software Engineering Intern | *WSO2 Lanka*
>>
>> email   :
>> *dilha...@wso2.com *mobile : +94 77 8449321
>>
>> On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha 
>> wrote:
>>
>>> Hi Mahesh,
>>>
>>> Thanks for the points. I'll work on those and see.
>>>
>>> Regards,
>>> Dilhasha
>>>
>>> *M.N.F. Dilhasha*
>>> Software Engineering Intern | *WSO2 Lanka*
>>>
>>> email   :
>>> *dilha...@wso2.com *mobile : +94 77 8449321
>>>
>>> On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka 
>>> wrote:
>>>
 Sorry I missed this,
 getting modManager varialbe , put this befor getting the tenant domain.
 var modManager = jagg.module("manager");

 On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka 
 wrote:

> Hi Dilhasha,
> I think you havent got the tenant domain properly.
>
> you may use following to get tenant domain.
> var tenantDomain = modManager.getTenantDomain();
>
> you may use following to set tenant domain n id
>
> context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);
>
>
>  in between the steps you can put  info logs to see values, in that
> way you may be able to see whats null here.
>
> On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando <
> danush...@wso2.com> wrote:
>
>> Few points
>>
>>1. Did you check whether your osgi bundle is activated or not?
>>May be that's the issue. Seems it cannot find the osgi service.
>>2. When start tenant flow in setTenantDomain method there is a
>>another signature which will take in tenantDomain (String) and
>>resolveTenantID (boolean) parameters. You can use that instead of 
>> setting
>>tenantID manually.
>>3. The way you have included the module, AFAIR that's not the way
>>to refer to a module. Refer to other places that we have done such a 
>> thing.
>>
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha > > wrote:
>>
>>> Hi Mahesh,
>>>
>>> Thanks for the response.
>>>
>>> Following is the code in saveConfig.jag
>>>
>>> include("/jagg/jagg.jag");
>>> include("/jagg/constants.jag");
>>> include("/jagg/config_reader.jag");
>>> include("/modules/manager/manager.jag");
>>>
>>> (function () {
>>>
>>> var carbon = require('carbon');
>>> var log = new Log("module/issuetracker/saveConfig.jag");
>>> var multitenancy = carbon.multitenancy;
>>> var server = carbon.server;
>>>
>>>
>>>
>>> var context=multitenancy.getPrivilegedCarbonContext();
>>> var tenantDomain = getTenantDomain();
>>> var tenantId=getTenantId();
>>>
>>> var issueTrackerConfig = 
>>> Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations;
>>> var issueConfig=new issueTrackerConfig();
>>> issueConfig.setIssueTrackerinstanceUrl("some url");
>>>
>>> try{
>>>
>>> context.startTenantFlow();
>>> context.getThreadLocalCarbonContext().setTenantId(tenantId);
>>> 
>>> context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain);
>>> 
>>> server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject("applicationName",
>>>  issueTrackerConfig);
>>> }catch(e){
>>> log.error(e);
>>> }finally{
>>> context.endTenantFlow();
>>> }
>>>
>>>
>>>
>>>
>>> }());
>>>
>>>
>>>
>>> The getTenantDomain,getTenantId functions are in a different

Re: [Dev] [Carbon] Carbon P2 Plugin issue - jars with different package name BUT same artifact IDs

2015-03-18 Thread Niranda Perera
Hi Sameera,

It seems like Carbon P2 plugin does not allow having same artifact ids in
different jars.

I created a separate orbit bundle with the following config,
org.wso2.orbit.org.spark-project.protobuf
protobuf-java-wso2
2.5.0-spark.wso2v1

when I put that as a bundle-def, carbon p2 plugin picks both the jars.

so I see a few solutions here.
1. having a separate orbit bundle as above
2. make this jar (org.spark-project.protobuf:protobuf-java) a private
package in the spark core orbit bundle, since it is only used for spark
3. make the other jar (com.google.protobuf:protobuf-java) a provaet package
in the mesos bundle, since it is only used for mesos

please advise me on this.

thanks

On Mon, Mar 16, 2015 at 3:50 PM, Niranda Perera  wrote:

> Hi Sameera,
>
> the versions are 2.5.0-spark for org.spark-project.protobuf:protobuf-java and
> 2.5.0 for com.google.protobuf:protobuf-java
>
> is there a workaround to include both these jars in the feature.xml?
>
> rgds
>
> On Mon, Mar 16, 2015 at 3:33 PM, Sameera Jayasoma 
> wrote:
>
>> Carbon-p2-plugin simply invoke Equinox P2 APIs to generate features? You
>> can simply scan through the P2 plugin code and see.
>>
>> As per our offline chat, versions of these two jars are also very
>> similar. That may be a problem
>>
>> https://github.com/wso2/maven-tools
>>
>> On Mon, Mar 16, 2015 at 9:58 AM, Niranda Perera  wrote:
>>
>>> Hi all,
>>>
>>> I have come across an issue in carbon P2 plugin while creating a
>>> feature. Please consider the following scenario. [1]
>>>
>>> I need 2 jars to be bundled with the feature, from 2 different packages
>>> BUT with the same artifact ID. Please see the highlighted text.
>>>
>>> 
>>> org.wso2.maven
>>> carbon-p2-plugin
>>> 
>>> 
>>> 4-p2-feature-generation
>>> package
>>> 
>>> p2-feature-gen
>>> 
>>> 
>>>
>>> org.wso2.carbon.analytics.spark.server
>>>
>>> ../../../../etc/feature.properties
>>> 
>>> 
>>>
>>> org.wso2.carbon.p2.category.type:server
>>> 
>>>
>>> org.eclipse.equinox.p2.type.group:false
>>> 
>>> 
>>> 
>>> 
>>>
>>> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.core
>>>
>>> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.admin
>>>
>>> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.utils
>>>
>>> org.wso2.apache.spark:spark-core_2.10
>>>
>>> org.wso2.apache.spark:spark-sql_2.10
>>>
>>> org.apache.commons:commons-lang3
>>>
>>> org.apache.commons:commons-math3
>>>
>>> org.scala-lang:scala-library
>>>
>>> org.scala-lang:scala-reflect
>>>
>>> com.codahale.metrics:metrics-json
>>>
>>> com.codahale.metrics:metrics-jvm
>>>
>>> com.codahale.metrics:metrics-core
>>>
>>> com.codahale.metrics:metrics-graphite
>>>
>>> com.fasterxml.jackson.core:jackson-databind
>>>
>>> com.fasterxml.jackson.core:jackson-core
>>>
>>> com.fasterxml.jackson.core:jackson-annotations
>>>
>>> com.esotericsoftware.kryo:kryo
>>>
>>> org.xerial.snappy:snappy-java
>>>
>>> io.netty.wso2:netty-all
>>>
>>> javax.servlet.jsp:javax.servlet.jsp-api
>>>
>>> org.apache.tomcat.wso2:tomcat-servlet-api
>>>
>>> org.wso2.apache.hadoop:hadoop-client
>>>
>>> org.wso2.json4s:json4s-jackson_2.10
>>>
>>> org.eclipse.jetty:jetty-continuation
>>>
>>> org.eclipse.jetty:jetty-http
>>>
>>> org.eclipse.jetty:jetty-io
>>>
>>> org.eclipse.jetty:jetty-jndi
>>>
>>> org.eclipse.jetty:jetty-security
>>>
>>> org.eclipse.jetty:jetty-server
>>>
>>> org.eclipse.jetty:jetty-servlet
>>>
>>> org.eclipse.jetty:jetty-util
>>>
>>> org.eclipse.jetty:jetty-webapp
>>>
>>> org.eclipse.jetty:jetty-xml
>>> io.netty:netty
>>>
>>> org.spark-project.protobuf:protobuf-java
>>>
>>>  com.google.protobuf:protobuf-java
>>>
>>>
>>> org.wso2.uncommons.maths:uncommons-maths
>>>
>>> com.ning:compress-lzf
>>>
>>> com.google.guava:guava
>>>
>>> org.slf4j:slf4j-api
>>>
>>> org.slf4j:slf4j-log4j12
>>>
>>> org.wso2.twitter:chill_2.10
>>>
>>> org.wso2.clearspring.analytics:stream
>>>
>>> org.wso2.orbit.org.apache.mesos:mesos
>>>
>>> 
>>> 
>>>
>>> org.wso2.carbon.core:${carbon.kernel.version}
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> After building the feature, I found the relevant jars in the feature's
>>> plugins folder.  BUT when I put the feature inside the product, only the
>>> 2nd jar (com.google.protobuf:protobuf-java) is copied to the product's
>>> plugins folder.
>>> further looking into the problem, I found out that feature's feat

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Kala Weerawardana
Congrats Hemika :)

On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe  wrote:

> Hi Hemika,
> Congratulations!
> It is with great pleasure that we welcome you as a WSO2 committer. Keep
> up the good work!
> regards,
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Milan Perera
Congratz Hemika...!!!

On Wed, Mar 18, 2015 at 2:03 PM, Kala Weerawardana  wrote:

> Congrats Hemika :)
>
> On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe 
> wrote:
>
>> Hi Hemika,
>> Congratulations!
>> It is with great pleasure that we welcome you as a WSO2 committer. Keep
>> up the good work!
>> regards,
>>
>> --
>> Ramith Jayasinghe
>> Technical Lead
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> E: ram...@wso2.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


-- 
Milan Harindu Perera
Software Engineer
*WSO2, Inc*
(+94) 77 309 7088
lean . enterprise . middleware

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


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Danushka Fernando
Null pointer is coming from Carbon Context. So seems somehow osgi service
is not found.

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

On Wed, Mar 18, 2015 at 1:18 PM, Fathima Dilhasha  wrote:

> Hi,
>
> Yeah 'createProject' is a method I introduced. I've patched it to my
> AppFactory instance.
> Okay, I will debug backend code and see.
>
> Thanks.
>
> Regards,
> Dilhasha
>
> *M.N.F. Dilhasha*
> Software Engineering Intern | *WSO2 Lanka*
>
> email   :
> *dilha...@wso2.com *mobile : +94 77 8449321
>
> On Wed, Mar 18, 2015 at 1:04 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi,
>>
>> Is this 'createProject' method implemented by you  inside
>> IssueTrackerService ?? Because in my code I cannot see such a method in
>> IssueTrackerService.
>> You can debug the backend code to find out the place where NP occurs.
>>
>>
>> On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha 
>> wrote:
>>
>>> Hi,
>>>
>>> I tried logging in between the steps.
>>>
>>> * tenantId and tenantDomain are not null
>>> * The null pointer exception takes place in the following line.
>>>
>>> server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName",
>>>  issueTrackerConfig);
>>>
>>> Is it because the server cannot track the OSGI service I'm referring to?
>>>  (The service is listed in the OSGI cosole)
>>>
>>> How can I figure it out?
>>>
>>> Thanks.
>>> Regards,
>>> Dilhasha
>>>
>>> *M.N.F. Dilhasha*
>>> Software Engineering Intern | *WSO2 Lanka*
>>>
>>> email   :
>>> *dilha...@wso2.com *mobile : +94 77 8449321
>>>
>>> On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha 
>>> wrote:
>>>
 Hi Mahesh,

 Thanks for the points. I'll work on those and see.

 Regards,
 Dilhasha

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

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

 On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka 
 wrote:

> Sorry I missed this,
> getting modManager varialbe , put this befor getting the tenant domain.
> var modManager = jagg.module("manager");
>
> On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka 
> wrote:
>
>> Hi Dilhasha,
>> I think you havent got the tenant domain properly.
>>
>> you may use following to get tenant domain.
>> var tenantDomain = modManager.getTenantDomain();
>>
>> you may use following to set tenant domain n id
>>
>> context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);
>>
>>
>>  in between the steps you can put  info logs to see values, in that
>> way you may be able to see whats null here.
>>
>> On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando <
>> danush...@wso2.com> wrote:
>>
>>> Few points
>>>
>>>1. Did you check whether your osgi bundle is activated or not?
>>>May be that's the issue. Seems it cannot find the osgi service.
>>>2. When start tenant flow in setTenantDomain method there is a
>>>another signature which will take in tenantDomain (String) and
>>>resolveTenantID (boolean) parameters. You can use that instead of 
>>> setting
>>>tenantID manually.
>>>3. The way you have included the module, AFAIR that's not the
>>>way to refer to a module. Refer to other places that we have done 
>>> such a
>>>thing.
>>>
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha <
>>> dilha...@wso2.com> wrote:
>>>
 Hi Mahesh,

 Thanks for the response.

 Following is the code in saveConfig.jag

 include("/jagg/jagg.jag");
 include("/jagg/constants.jag");
 include("/jagg/config_reader.jag");
 include("/modules/manager/manager.jag");

 (function () {

 var carbon = require('carbon');
 var log = new Log("module/issuetracker/saveConfig.jag");
 var multitenancy = carbon.multitenancy;
 var server = carbon.server;



 var context=multitenancy.getPrivilegedCarbonContext();
 var tenantDomain = getTenantDomain();
 var tenantId=getTenantId();

 var issueTrackerConfig = 
 Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations;
 var issueConfig=new issueTrackerConfig();
 issueConfig.setIssueTrackerinstanceUrl("some url");

 try{

 context.startTenantFlow();
 context.getThreadLocalCarbonContext().setTenantId(tenantId);
 
 context.getThreadLocalCarbonContext().setTenantDomain(tenantDoma

Re: [Dev] About Recommendation Solution for WSO2 Machine Learner for GSOC 2015

2015-03-18 Thread Nivethika Mahasivam
Hi , 
Thank you for the response. 
I have a small clarification about APIs. 
b) reportView(user, item) - what does this stand for? What functional
scenario it will work on? 
Does this mean the user checked an item, (may be add to cart) but didn't
purchase? 


Thank you. 
Nivethika M



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/Re-About-Recommendation-Solution-for-WSO2-Machine-Learner-for-GSOC-2015-tp114625p114813.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Fathima Dilhasha
The service is listed in OSGI console. Where else can I check to see why
the service is not found?

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

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

On Wed, Mar 18, 2015 at 2:37 PM, Danushka Fernando 
wrote:

> Null pointer is coming from Carbon Context. So seems somehow osgi service
> is not found.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Wed, Mar 18, 2015 at 1:18 PM, Fathima Dilhasha 
> wrote:
>
>> Hi,
>>
>> Yeah 'createProject' is a method I introduced. I've patched it to my
>> AppFactory instance.
>> Okay, I will debug backend code and see.
>>
>> Thanks.
>>
>> Regards,
>> Dilhasha
>>
>> *M.N.F. Dilhasha*
>> Software Engineering Intern | *WSO2 Lanka*
>>
>> email   :
>> *dilha...@wso2.com *mobile : +94 77 8449321
>>
>> On Wed, Mar 18, 2015 at 1:04 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi,
>>>
>>> Is this 'createProject' method implemented by you  inside
>>> IssueTrackerService ?? Because in my code I cannot see such a method in
>>> IssueTrackerService.
>>> You can debug the backend code to find out the place where NP occurs.
>>>
>>>
>>> On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha 
>>> wrote:
>>>
 Hi,

 I tried logging in between the steps.

 * tenantId and tenantDomain are not null
 * The null pointer exception takes place in the following line.

 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName",
  issueTrackerConfig);

 Is it because the server cannot track the OSGI service I'm referring
 to?  (The service is listed in the OSGI cosole)

 How can I figure it out?

 Thanks.
 Regards,
 Dilhasha

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

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

 On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha 
 wrote:

> Hi Mahesh,
>
> Thanks for the points. I'll work on those and see.
>
> Regards,
> Dilhasha
>
> *M.N.F. Dilhasha*
> Software Engineering Intern | *WSO2 Lanka*
>
> email   :
> *dilha...@wso2.com *mobile : +94 77 8449321
>
> On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka 
> wrote:
>
>> Sorry I missed this,
>> getting modManager varialbe , put this befor getting the tenant
>> domain.
>> var modManager = jagg.module("manager");
>>
>> On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi Dilhasha,
>>> I think you havent got the tenant domain properly.
>>>
>>> you may use following to get tenant domain.
>>> var tenantDomain = modManager.getTenantDomain();
>>>
>>> you may use following to set tenant domain n id
>>>
>>> context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);
>>>
>>>
>>>  in between the steps you can put  info logs to see values, in that
>>> way you may be able to see whats null here.
>>>
>>> On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando <
>>> danush...@wso2.com> wrote:
>>>
 Few points

1. Did you check whether your osgi bundle is activated or not?
May be that's the issue. Seems it cannot find the osgi service.
2. When start tenant flow in setTenantDomain method there is a
another signature which will take in tenantDomain (String) and
resolveTenantID (boolean) parameters. You can use that instead of 
 setting
tenantID manually.
3. The way you have included the module, AFAIR that's not the
way to refer to a module. Refer to other places that we have done 
 such a
thing.


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

 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha <
 dilha...@wso2.com> wrote:

> Hi Mahesh,
>
> Thanks for the response.
>
> Following is the code in saveConfig.jag
>
> include("/jagg/jagg.jag");
> include("/jagg/constants.jag");
> include("/jagg/config_reader.jag");
> include("/modules/manager/manager.jag");
>
> (function () {
>
> var carbon = require('carbon');
> var log = new Log("module/issuetracker/saveConfig.jag");
> var multitenancy = carbon.multitenancy;
> var server = carbon.server;
>
>
>
> var context=multitenancy.getPrivilegedCarbonContext();
> var tenantDomain = getTenantDomain();
> var tenantId=getTenantId();
>
> var issueTrackerConfig = 
>

[Dev] Fwd: App Factory API

2015-03-18 Thread Samith Dassanayake
Hi Dulitha,
When you are doing the login operation, you should not replace  "
apps.cloud.wso2.com" with your production url. The API's defined in [1] are
to used to access the *App Cloud*. For example as in [2] you can login to
the app cloud, by using [3] you can get the your application information by
setting *applicationKey*(In your case it seems like your application key is
dmbk1991) parameter, [4] represents api to create a new application etc...
Production URL represents the deployment of your application.
Hope this resolved your issue.
[1] https://docs.wso2.com/display/AppCloud/Published+APIs
[2]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-Login
[3]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-getAppInfo
[4]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-createNewApplication

Thanks,
Samith
-- Forwarded message --
From: Dulitha Kularathne 
Date: Mon, Mar 16, 2015 at 8:04 AM
Subject: Re: [Dev] App Factory API
To: Samith Dassanayake 


Hi Samith!!
I tried doing the login operation. I used the URL part replaced with the
production URL as shown in the guide. And gave the username and password as
shown.Thanks.

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

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

[Dev] Product-ESB dependency not satisfy with the kernel 4.4.0

2015-03-18 Thread Prabath Ariyarathna
Hi Carbon Team.

I got following error while compiling product-esb with kernel 4.4.0

Installation failed.

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

 Software being installed: WSO2 Carbon - GIT Based Deployment Synchronizer
Feature 4.3.6 (org.wso2.carbon.deployment.synchronizer.git.feature.group
4.3.6)

 Missing requirement: WSO2 Carbon - Event Server Feature 4.3.6
(org.wso2.carbon.event.server.feature.group 4.3.6) requires
'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but it could not
be found

 Cannot satisfy dependency:

  From: WSO2 Carbon - GIT Based Deployment Synchronizer Feature 4.3.6
(org.wso2.carbon.deployment.synchronizer.git.feature.group 4.3.6)

  To: org.wso2.carbon.deployment.synchronizer.server.feature.group
[4.3.6,4.4.0)

 Cannot satisfy dependency:

  From: WSO2 Carbon - Deployment Synchronizer Server Feature 4.3.6
(org.wso2.carbon.deployment.synchronizer.server.feature.group 4.3.6)

  To: org.wso2.carbon.event.server.feature.group [4.3.6,4.4.0)

Application failed, log file location:
/Users/prabath/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1426663535408.log

any idea?

-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Email: prabat...@wso2.com *

*Blog: http://prabu-lk.blogspot.com *

*Flicker : https://www.flickr.com/photos/47759189@N08
*

*Mobile: +94 77 699 4730 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon] org.apache.jasper.JasperException when trying to access the Carbon Server URL

2015-03-18 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 access the Carbon server url I'm
getting the following error.

org.apache.jasper.JasperException: The absolute uri:
> http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml
> or the jar files deployed with this application
> at
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55)
> at
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:277)
> at
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:75)
> at
> org.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath(TagLibraryInfoImpl.java:240)
> at
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:124)
> at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:411)
> at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:469)
> at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1430)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:139)
> at
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
> at
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
> at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
> at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:175)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> 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:725)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:64)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
> at
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
> at
> org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
> at
> org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
> at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
> at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
> at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> 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:725)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:64)
> at
> org.apache.cat

Re: [Dev] [GSoC-2015] Proposal 13: ESB - End-to-end Message Tracing Support

2015-03-18 Thread Isuru Udana
Hi Chanaka,

Thanks for the interest in the project.
Please keep us updated on your progress. And raise any questions you have
in understanding the project scope.

Thanks.

On Wed, Mar 4, 2015 at 11:20 AM, Chanaka Cooray  wrote:

> Hi,
>
> I am Chanaka Sampath 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 am
> already familiar with the wso2 ESB. 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-Proposal13:ESB-End-to-endMessageTracingSupport
>
> Thanks,
> --
> *Chanaka Sampath Cooray*
> Software Engineering Intern,
> WSO2 Lanka (pvt) Ltd.
> Mobile:+94713614884
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Isuru Udana*
Senior
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
twitter: http://twitter.com/isudana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ES HTML Markup

2015-03-18 Thread Chanaka Jayasena
This looks good. Thank you for these HTML templates.

thanks,
Chanaka

On Wed, Mar 18, 2015 at 3:54 PM, Sharon David  wrote:

> HI chanaka,
>
> Attached here with is the main HTML framework for Enterprise Store.
> I have made the code responsive using bootstrap 3.
>
>
> --
> Sharon David
> Software Engineer - UI/UX  |   WSO2 Inc
>
> +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com
>



-- 
Chanaka Jayasena
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: chan...@wso2.com; cell: +94 77 785 5565
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Project proposal for Data Wrangler extension for WSO2 Machine Learner

2015-03-18 Thread Tharinda Ehelepola
I need some knowledge about WSO2 machine learner. Earlier you told me that WSO2
Machine Learner which is a new product that you are building these days. I
think I should have some basic idea about it for the project proposal. Can
you please tell me about it.

On Wed, Mar 18, 2015 at 7:40 AM, Tharinda Ehelepola 
wrote:

> Thanks Nirmal I'll go through.
>
> On Wed, Mar 18, 2015 at 5:08 AM, Nirmal Fernando  wrote:
>
>> Sample proposal of mine:
>> http://nirmalfdo.blogspot.com/search/label/GSoC-2011
>>
>> On Wed, Mar 18, 2015 at 10:37 AM, Nirmal Fernando 
>> wrote:
>>
>>> Seems like we don't have any template as such, but you could come up
>>> with a structure that makes sense.
>>>
>>>
>>>
>>> On Wed, Mar 18, 2015 at 8:49 AM, Nirmal Fernando 
>>> wrote:
>>>
 Hi Tharindu,

 Let me check and get back to you.

 On Wed, Mar 18, 2015 at 2:10 AM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
> I studied about proposal 17 last few days. Now I have proper idea
> about that project. In order to prepare the proposal It's better if I have
> some template or last year proposals. Can you provide me some links.
>
> Thank you,
> Tharinda.
>
>


 --

 Thanks & regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/



>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.

2015-03-18 Thread Saneth Dharmakeerthi
Hi,

I  am getting "Empty File Attachment" error when try to add Doc to API.
Following are the doc type I am using. Find the screen capture[1]

Doc Type: "How to"  and  source: "In-line"

Is there any reason for this?

[1]​
 Screen Shot 2015-03-18 at 4.37.29 PM.png

​
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] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.

2015-03-18 Thread Tharindu Dharmarathna
Hi Saneth,

This issue is already fixed by lakmali on monday.

Thanks
Tharindu

On Wed, Mar 18, 2015 at 4:48 PM, Saneth Dharmakeerthi 
wrote:

> Hi,
>
> I  am getting "Empty File Attachment" error when try to add Doc to API.
> Following are the doc type I am using. Find the screen capture[1]
>
> Doc Type: "How to"  and  source: "In-line"
>
> Is there any reason for this?
>
> [1]​
>  Screen Shot 2015-03-18 at 4.37.29 PM.png
> 
> ​
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511​​
>



-- 

*Tharindu Dharmarathna*Associate Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


[Dev] [MB] Out of memory error in long running mb cluster

2015-03-18 Thread Pumudu Ruhunage
Hi,

I came across out of memory exception while doing long running test on mb
cluster with oracle database as message store. Following was the scenario i
tested.

1. Start two clustered mb nodes with serializers (nodeA(coordinator),
nodeB).
2. Add queue subscriber "MyQueue1", to nodeB and publish "MyQueue1"
messages to nodeA with average 1500 TPS.
3. Add queue subscriber "MyQueue2" to nodeA and publish "MyQueue2" messages
to nodeB with average 1000 TPS.
4. After around 14 hours, om exception has thrown from nodeA and all
operations has halted.

After analysing heap dump i found which thread has thrown the error, and
it's as follows.

"pool-25-thread-1" prio=5 tid=174 RUNNABLE
at java.lang.OutOfMemoryError.(OutOfMemoryError.java:48)
at java.lang.Long.toString(Long.java:267)
at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
   Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1
   Local Variable: com.google.gson.JsonArray#1
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
at com.google.gson.internal.Streams.parse(Streams.java:44)
at com.google.gson.JsonParser.parse(JsonParser.java:84)
at com.google.gson.JsonParser.parse(JsonParser.java:59)
   Local Variable: com.google.gson.stream.JsonReader#1
at com.google.gson.JsonParser.parse(JsonParser.java:45)
at
org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53)
at
org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33)
at
com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
   Local Variable:
com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1
at
com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221)
at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156)
at com.hazelcast.map.MapService.toObject(MapService.java:872)
at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53)
at
org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347)
   Local Variable: java.util.TreeSet#1
at
org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56)
   Local Variable: java.lang.String#2380
   Local Variable: java.lang.String#2379
at
org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440)
   Local Variable:
org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2
at
org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429)
   Local Variable:
org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1
   Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
   Local Variable:
org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
   Local Variable: org.apache.thrift.transport.TSocket#2
   Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2
   Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3
   Local Variable:
org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   Local Variable:
org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1
   Local Variable: java.util.concurrent.ThreadPoolExecutor#26
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   Local Variable: java.util.concurrent.ThreadPoolExecutor$Worker#41
at java.lang.Thread.run(Thread.java:745)

Have anyone faced similar issue ? What is the best method to handle this
out of memory issue?


Thanks,
-- 
Pumudu Ruhunage
Associate Software Engineer | WSO2 Inc
M: +94 779 664493  | http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Out of memory error in long running mb cluster

2015-03-18 Thread Ramith Jayasinghe
Lets analyse the heap dump and see what caused the issue...
also check the metrics recorded (via matric library) when server went OOM.

On Wed, Mar 18, 2015 at 4:55 PM, Pumudu Ruhunage  wrote:

> Hi,
>
> I came across out of memory exception while doing long running test on mb
> cluster with oracle database as message store. Following was the scenario i
> tested.
>
> 1. Start two clustered mb nodes with serializers (nodeA(coordinator),
> nodeB).
> 2. Add queue subscriber "MyQueue1", to nodeB and publish "MyQueue1"
> messages to nodeA with average 1500 TPS.
> 3. Add queue subscriber "MyQueue2" to nodeA and publish "MyQueue2"
> messages to nodeB with average 1000 TPS.
> 4. After around 14 hours, om exception has thrown from nodeA and all
> operations has halted.
>
> After analysing heap dump i found which thread has thrown the error, and
> it's as follows.
>
> "pool-25-thread-1" prio=5 tid=174 RUNNABLE
> at java.lang.OutOfMemoryError.(OutOfMemoryError.java:48)
> at java.lang.Long.toString(Long.java:267)
> at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816)
> at
> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648)
> at
> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
>Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1
>Local Variable: com.google.gson.JsonArray#1
> at
> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
> at com.google.gson.internal.Streams.parse(Streams.java:44)
> at com.google.gson.JsonParser.parse(JsonParser.java:84)
> at com.google.gson.JsonParser.parse(JsonParser.java:59)
>Local Variable: com.google.gson.stream.JsonReader#1
> at com.google.gson.JsonParser.parse(JsonParser.java:45)
> at
> org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53)
> at
> org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>Local Variable:
> com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1
> at
> com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221)
> at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156)
> at com.hazelcast.map.MapService.toObject(MapService.java:872)
> at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53)
> at
> org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347)
>Local Variable: java.util.TreeSet#1
> at
> org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56)
>Local Variable: java.lang.String#2380
>Local Variable: java.lang.String#2379
> at
> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440)
>Local Variable:
> org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2
> at
> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429)
>Local Variable:
> org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1
>Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1
> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
>Local Variable:
> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1
> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
> at
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
>Local Variable: org.apache.thrift.transport.TSocket#2
>Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2
>Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3
>Local Variable:
> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>Local Variable:
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1
>Local Variable: java.util.concurrent.ThreadPoolExecutor#26
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>Local Variable: java.util.concurrent.ThreadPoolExecutor$Worker#41
> at java.lang.Thread.run(Thread.java:745)
>
> Have anyone faced similar issue ? What is the best method to handle this
> out of memory issue?
>
>
> Thanks,
> --
> Pumudu Ruhunage
> Associate Software Engineer | WSO2 Inc
> M: +94 779 664493  | http://wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev m

Re: [Dev] Project proposal for Data Wrangler extension for WSO2 Machine Learner

2015-03-18 Thread Nirmal Fernando
I shared a presentation with you.

On Wed, Mar 18, 2015 at 4:32 PM, Tharinda Ehelepola 
wrote:

> I need some knowledge about WSO2 machine learner. Earlier you told me that 
> WSO2
> Machine Learner which is a new product that you are building these days. I
> think I should have some basic idea about it for the project proposal. Can
> you please tell me about it.
>
> On Wed, Mar 18, 2015 at 7:40 AM, Tharinda Ehelepola  > wrote:
>
>> Thanks Nirmal I'll go through.
>>
>> On Wed, Mar 18, 2015 at 5:08 AM, Nirmal Fernando  wrote:
>>
>>> Sample proposal of mine:
>>> http://nirmalfdo.blogspot.com/search/label/GSoC-2011
>>>
>>> On Wed, Mar 18, 2015 at 10:37 AM, Nirmal Fernando 
>>> wrote:
>>>
 Seems like we don't have any template as such, but you could come up
 with a structure that makes sense.



 On Wed, Mar 18, 2015 at 8:49 AM, Nirmal Fernando 
 wrote:

> Hi Tharindu,
>
> Let me check and get back to you.
>
> On Wed, Mar 18, 2015 at 2:10 AM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>> I studied about proposal 17 last few days. Now I have proper idea
>> about that project. In order to prepare the proposal It's better if I 
>> have
>> some template or last year proposals. Can you provide me some links.
>>
>> Thank you,
>> Tharinda.
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


 --

 Thanks & regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/



>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>


-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.

2015-03-18 Thread Kala Weerawardana
Hi Saneth,

This issue is fixed in [1].

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

Regards,
Kala

On Wed, Mar 18, 2015 at 4:48 PM, Saneth Dharmakeerthi 
wrote:

> Hi,
>
> I  am getting "Empty File Attachment" error when try to add Doc to API.
> Following are the doc type I am using. Find the screen capture[1]
>
> Doc Type: "How to"  and  source: "In-line"
>
> Is there any reason for this?
>
> [1]​
>  Screen Shot 2015-03-18 at 4.37.29 PM.png
> 
> ​
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511​​
>



-- 
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] [MB] Out of memory error in long running mb cluster

2015-03-18 Thread Akalanka Pagoda Arachchi
Hi,

Maybe the error is not really in this tread, but has been occurred after
accumulating data from a memory leak. Better analyse the memory allocations.

Thanks,
Akalanka.

On Wed, Mar 18, 2015 at 4:58 PM, Ramith Jayasinghe  wrote:

> Lets analyse the heap dump and see what caused the issue...
> also check the metrics recorded (via matric library) when server went OOM.
>
> On Wed, Mar 18, 2015 at 4:55 PM, Pumudu Ruhunage  wrote:
>
>> Hi,
>>
>> I came across out of memory exception while doing long running test on mb
>> cluster with oracle database as message store. Following was the scenario i
>> tested.
>>
>> 1. Start two clustered mb nodes with serializers (nodeA(coordinator),
>> nodeB).
>> 2. Add queue subscriber "MyQueue1", to nodeB and publish "MyQueue1"
>> messages to nodeA with average 1500 TPS.
>> 3. Add queue subscriber "MyQueue2" to nodeA and publish "MyQueue2"
>> messages to nodeB with average 1000 TPS.
>> 4. After around 14 hours, om exception has thrown from nodeA and all
>> operations has halted.
>>
>> After analysing heap dump i found which thread has thrown the error, and
>> it's as follows.
>>
>> "pool-25-thread-1" prio=5 tid=174 RUNNABLE
>> at java.lang.OutOfMemoryError.(OutOfMemoryError.java:48)
>> at java.lang.Long.toString(Long.java:267)
>> at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816)
>> at
>> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648)
>> at
>> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
>>Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1
>>Local Variable: com.google.gson.JsonArray#1
>> at
>> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
>> at com.google.gson.internal.Streams.parse(Streams.java:44)
>> at com.google.gson.JsonParser.parse(JsonParser.java:84)
>> at com.google.gson.JsonParser.parse(JsonParser.java:59)
>>Local Variable: com.google.gson.stream.JsonReader#1
>> at com.google.gson.JsonParser.parse(JsonParser.java:45)
>> at
>> org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53)
>> at
>> org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33)
>> at
>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>Local Variable:
>> com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1
>> at
>> com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221)
>> at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156)
>> at com.hazelcast.map.MapService.toObject(MapService.java:872)
>> at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53)
>> at
>> org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347)
>>Local Variable: java.util.TreeSet#1
>> at
>> org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56)
>>Local Variable: java.lang.String#2380
>>Local Variable: java.lang.String#2379
>> at
>> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440)
>>Local Variable:
>> org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2
>> at
>> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429)
>>Local Variable:
>> org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1
>>Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1
>> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
>>Local Variable:
>> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1
>> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
>> at
>> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
>>Local Variable: org.apache.thrift.transport.TSocket#2
>>Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2
>>Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3
>>Local Variable:
>> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>Local Variable:
>> org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1
>>Local Variable: java.util.concurrent.ThreadPoolExecutor#26
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>Local Variable: java.util.concurrent.ThreadPoolExecutor$Worker#41
>> at java.lang.Thread.run(Thread.java:745)
>>
>> Have anyone faced similar issue ? What is the best method to handle this
>> out of memory issue?
>>
>>
>> Thanks,
>> --
>> Pumudu Ruhunage
>> Associate Software Engineer | WSO2 Inc
>> M: +94 779 664493  |

Re: [Dev] [MB] Out of memory error in long running mb cluster

2015-03-18 Thread Sajini De Silva
Hi,

We found the cause for this error. Will fix this and run the tests again.

Thank you,
Sajini

On Wed, Mar 18, 2015 at 5:36 PM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi,
>
> Maybe the error is not really in this tread, but has been occurred after
> accumulating data from a memory leak. Better analyse the memory allocations.
>
> Thanks,
> Akalanka.
>
> On Wed, Mar 18, 2015 at 4:58 PM, Ramith Jayasinghe 
> wrote:
>
>> Lets analyse the heap dump and see what caused the issue...
>> also check the metrics recorded (via matric library) when server went OOM.
>>
>> On Wed, Mar 18, 2015 at 4:55 PM, Pumudu Ruhunage  wrote:
>>
>>> Hi,
>>>
>>> I came across out of memory exception while doing long running test on
>>> mb cluster with oracle database as message store. Following was the
>>> scenario i tested.
>>>
>>> 1. Start two clustered mb nodes with serializers (nodeA(coordinator),
>>> nodeB).
>>> 2. Add queue subscriber "MyQueue1", to nodeB and publish "MyQueue1"
>>> messages to nodeA with average 1500 TPS.
>>> 3. Add queue subscriber "MyQueue2" to nodeA and publish "MyQueue2"
>>> messages to nodeB with average 1000 TPS.
>>> 4. After around 14 hours, om exception has thrown from nodeA and all
>>> operations has halted.
>>>
>>> After analysing heap dump i found which thread has thrown the error, and
>>> it's as follows.
>>>
>>> "pool-25-thread-1" prio=5 tid=174 RUNNABLE
>>> at java.lang.OutOfMemoryError.(OutOfMemoryError.java:48)
>>> at java.lang.Long.toString(Long.java:267)
>>> at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816)
>>> at
>>> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648)
>>> at
>>> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
>>>Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1
>>>Local Variable: com.google.gson.JsonArray#1
>>> at
>>> com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
>>> at com.google.gson.internal.Streams.parse(Streams.java:44)
>>> at com.google.gson.JsonParser.parse(JsonParser.java:84)
>>> at com.google.gson.JsonParser.parse(JsonParser.java:59)
>>>Local Variable: com.google.gson.stream.JsonReader#1
>>> at com.google.gson.JsonParser.parse(JsonParser.java:45)
>>> at
>>> org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53)
>>> at
>>> org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33)
>>> at
>>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>>Local Variable:
>>> com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1
>>> at
>>> com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221)
>>> at
>>> com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156)
>>> at com.hazelcast.map.MapService.toObject(MapService.java:872)
>>> at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53)
>>> at
>>> org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347)
>>>Local Variable: java.util.TreeSet#1
>>> at
>>> org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56)
>>>Local Variable: java.lang.String#2380
>>>Local Variable: java.lang.String#2379
>>> at
>>> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440)
>>>Local Variable:
>>> org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2
>>> at
>>> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429)
>>>Local Variable:
>>> org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1
>>>Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1
>>> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
>>>Local Variable:
>>> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1
>>> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
>>> at
>>> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
>>>Local Variable: org.apache.thrift.transport.TSocket#2
>>>Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2
>>>Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3
>>>Local Variable:
>>> org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>Local Variable:
>>> org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1
>>>Local Variable: java.util.concurrent.ThreadPoolExecutor#26
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>Local Variable: java.ut

Re: [Dev] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.

2015-03-18 Thread Saneth Dharmakeerthi
Hi Tharindu / Kala,

Thanks for the information.

Thanks and Best Regards,

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

On Wed, Mar 18, 2015 at 5:11 PM, Kala Weerawardana  wrote:

> Hi Saneth,
>
> This issue is fixed in [1].
>
> [1] - https://wso2.org/jira/browse/APIMANAGER-3229
>
> Regards,
> Kala
>
> On Wed, Mar 18, 2015 at 4:48 PM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi,
>>
>> I  am getting "Empty File Attachment" error when try to add Doc to API.
>> Following are the doc type I am using. Find the screen capture[1]
>>
>> Doc Type: "How to"  and  source: "In-line"
>>
>> Is there any reason for this?
>>
>> [1]​
>>  Screen Shot 2015-03-18 at 4.37.29 PM.png
>> 
>> ​
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511​​
>>
>
>
>
> --
> 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] [APIM] Clarification about APIM Tier : throttle:MaximumCount

2015-03-18 Thread Saneth Dharmakeerthi
Hi APIM Team,

I need to clarify some information about "*throttle:MaximumCount*"

If Tier  "throttle:MaximumCount" is set to 20 and UnitTime is  set to 6
(assume we apply bellow throttle value to all API-level, Application-level
and Resource-level )
ex:
   50
   6

   1. whether the api invocation cut off exactly from 51th request
   within 6 milliseconds ?
   2. If not, is there any percentage or amount that it can accept
additional requests?

Also if there is a document that has detail information about this, please
share with me.

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] Please merge the PR

2015-03-18 Thread Nirmal Fernando
Awesome! thanks Manorama.

On Wed, Mar 18, 2015 at 6:36 PM, Manorama Perera  wrote:

>
> Hi,
>
> I've sent another PR [1].  It contains the data layer modifications
> relevant to persisting analysis, configuration and model.
>
> Tested it with logistic-regression test scripts.
>
> [1] https://github.com/wso2/product-ml/pull/39
>
> Thanks.
>
> --
> Manorama Perera
> Software Engineer
> WSO2, Inc.;  http://wso2.com/
> Mobile : +94716436216
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Clarification about APIM Tier : throttle:MaximumCount

2015-03-18 Thread Amila De Silva
Hi Saneth,

In a clustered environment, the cutoff might not exactly happen on 51st
request. Certain amount of requests may slip through. The amount of
additional requests passing through depends on several parameters like the
number of GW nodes running on the setup, replication frequency set and the
amount of requests hitting the GWs.

On a standalone environment, the cutoff should happen on 51st request.

On Wed, Mar 18, 2015 at 6:50 PM, Saneth Dharmakeerthi 
wrote:

> Hi APIM Team,
>
> I need to clarify some information about "*throttle:MaximumCount*"
>
> If Tier  "throttle:MaximumCount" is set to 20 and UnitTime is  set to 6
> (assume we apply bellow throttle value to all API-level, Application-level
> and Resource-level )
> ex:
>50
>6
>
>1. whether the api invocation cut off exactly from 51th request
>within 6 milliseconds ?
>2. If not, is there any percentage or amount that it can accept
> additional requests?
>
> Also if there is a document that has detail information about this, please
> share with me.
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>



-- 
*Amila De Silva*

WSO2 Inc.
mobile :(+94) 775119302
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Aspect Intermittently disappearing in tenant mode

2015-03-18 Thread Dinusha Senanayaka
We could able to fix this with the help of SameeraM and Chandana.

To resolve , we called to the
org.wso2.carbon.governance.lcm.util.CommonUtil ->
addDefaultLifecyclesIfNotAvailable() method in the publisher login.
 
CommonUtil.addDefaultLifecyclesIfNotAvailable(regService.getConfigSystemRegistry(tenantId),

CommonUtil.getRootSystemRegistry(tenantId), false);

Thanks SameeraM and Chandana for helping to resolve this.

Regards,
Dinusha.

On Wed, Mar 18, 2015 at 10:36 AM, Sumedha Rubasinghe 
wrote:

> Chandana/Sagara,
> Thanks for help extended so far. Appreciate if you guys can help further
> to isolate the issue as this has been a blocker and killing significant
> time @ the last hour.
>
> On Wed, Mar 18, 2015 at 9:05 AM, Ruwan Yatawara  wrote:
>
>> Hi Dinusha / All,
>>
>> Something to point out here is that in the scenario where everything
>> functions as expected, the aspect map has all the tenant id related
>> lifeycles as well. And everything gets resolved the moment you login to the
>> carbon console as the tenant admin of the tenant for which this issue is
>> coming.
>>
>> What i have been able to observe so far is that, when logging in to the
>> carbon console as tenant admin, the only deviation to the flow.. and
>> eventually what fixes the issue is calling of the following method.
>>
>> addDefaultLifecyclesIfNotAvailable() method in the
>> governance.lcm.CommonUtil class.
>>
>> After calling this method the aspect map gets properly populated. We
>> tried calling the method directly from jaggery, but the repeated calling of
>> it relays errors, and didn't exactly fix the issue.
>>
>>
>> Another very weird behavior we observed is that, the same class has a
>> method called lifeCycleExists() this method checks if a particular
>> lifecycle exists in a particular users registry. When calling this method,
>> at the time of the error. It always returns true. Meaning the LC is
>> available for that tenant.
>>
>> All things considered, i think we might have to do something related to
>> the RegistryContext to get this issue resolved.
>>
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://thoughts.ruwan-ace.com/
>> www: :http://wso2.com
>>
>>
>> On Tue, Mar 17, 2015 at 9:01 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Hi ES team/ Registry team,
>>>
>>> This is a blocking issue for App Manager release. Appreciate some help
>>> on resolving this.
>>>
>>> Could able to notice following after debugging governance.api and
>>> registry.core code..
>>>
>>> ES publisher calls to the
>>> GovernanceArtifactImpl.getAllLifecycleActions() where it get calls to the
>>> getAspectActions() method. This get calls to the
>>> EmbeddedRegistry.getAspect(String name) which returns the aspects by taking
>>> the CurrentSession.getCallerTenantId(). Refer following return statement.
>>>
>>> return registryContext.getAspect(name,
>>> *CurrentSession.getCallerTenantId()*);
>>>
>>> But, once we expand the above 'registryContext' object, it contains the
>>> lifecycle aspects in super tenant space (see the attached screenshot taken
>>> while debugging). Hence with the callerTenantId  lifecycle aspects get
>>> return as null .
>>>
>>> If passing current tenantId to the getAspect is correct, then is there a
>>> way to register WebAppLifecycle aspects in tenant space as well ? Or could
>>> this be due to  'registryContext' object get initialed in wrong way ?
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Thu, Mar 12, 2015 at 8:36 AM, Ruwan Yatawara  wrote:
>>>
 Hi All,

 We are facing an issue [1],[2] in which the sometimes the Aspect (Life
 cycle for asset types) gets lost in the tenant mode. We have observed this
 happening intermittently, only in tenant mode though and a restart of the
 pack usually solves the problem. I heard from SameeraM that a similar issue
 was fixed in carbon 4.3, for the record we are still on carbon 4.2.
 Appreciate if somebody could point out a fix/approach to fix this.

 Error :

 ERROR - GovernanceArtifactImpl Error in associating lifecycle for the 
 artifact. id: a1954c0e-a67e-46b4-ae28-1b063d816a1f, path: 
 /appmgt/applicationdata/provider/admin-AT-test.com/AppT01/1.0/webapp.
 org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find 
 aspectName 'WebAppLifeCycle'
at 
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2428)
at 
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.associateAspect(CacheBackedRegistry.java:416)
at 
 org.wso2.carbon.registry.core.session.UserRegistry.associateAspectInternal(UserRegistry.java:1904)
at 
 org.wso2.carbon.registry.core.session.UserRegistry.access$3800(UserRegistry.java:60)
at 
 org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1876)
at 
 org.w

Re: [Dev] Aspect Intermittently disappearing in tenant mode

2015-03-18 Thread Ruwan Yatawara
Thank you guys! Appreciate the help.

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://thoughts.ruwan-ace.com/
www: :http://wso2.com


On Wed, Mar 18, 2015 at 7:20 PM, Dinusha Senanayaka 
wrote:

> We could able to fix this with the help of SameeraM and Chandana.
>
> To resolve , we called to the
> org.wso2.carbon.governance.lcm.util.CommonUtil ->
> addDefaultLifecyclesIfNotAvailable() method in the publisher login.
>
>  
> CommonUtil.addDefaultLifecyclesIfNotAvailable(regService.getConfigSystemRegistry(tenantId),
>
> CommonUtil.getRootSystemRegistry(tenantId), false);
>
> Thanks SameeraM and Chandana for helping to resolve this.
>
> Regards,
> Dinusha.
>
> On Wed, Mar 18, 2015 at 10:36 AM, Sumedha Rubasinghe 
> wrote:
>
>> Chandana/Sagara,
>> Thanks for help extended so far. Appreciate if you guys can help further
>> to isolate the issue as this has been a blocker and killing significant
>> time @ the last hour.
>>
>> On Wed, Mar 18, 2015 at 9:05 AM, Ruwan Yatawara  wrote:
>>
>>> Hi Dinusha / All,
>>>
>>> Something to point out here is that in the scenario where everything
>>> functions as expected, the aspect map has all the tenant id related
>>> lifeycles as well. And everything gets resolved the moment you login to the
>>> carbon console as the tenant admin of the tenant for which this issue is
>>> coming.
>>>
>>> What i have been able to observe so far is that, when logging in to the
>>> carbon console as tenant admin, the only deviation to the flow.. and
>>> eventually what fixes the issue is calling of the following method.
>>>
>>> addDefaultLifecyclesIfNotAvailable() method in the
>>> governance.lcm.CommonUtil class.
>>>
>>> After calling this method the aspect map gets properly populated. We
>>> tried calling the method directly from jaggery, but the repeated calling of
>>> it relays errors, and didn't exactly fix the issue.
>>>
>>>
>>> Another very weird behavior we observed is that, the same class has a
>>> method called lifeCycleExists() this method checks if a particular
>>> lifecycle exists in a particular users registry. When calling this method,
>>> at the time of the error. It always returns true. Meaning the LC is
>>> available for that tenant.
>>>
>>> All things considered, i think we might have to do something related to
>>> the RegistryContext to get this issue resolved.
>>>
>>>
>>> Thanks and Regards,
>>>
>>> Ruwan Yatawara
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>>
>>> email : ruw...@wso2.com
>>> mobile : +94 77 9110413
>>> blog : http://thoughts.ruwan-ace.com/
>>> www: :http://wso2.com
>>>
>>>
>>> On Tue, Mar 17, 2015 at 9:01 PM, Dinusha Senanayaka 
>>> wrote:
>>>
 Hi ES team/ Registry team,

 This is a blocking issue for App Manager release. Appreciate some help
 on resolving this.

 Could able to notice following after debugging governance.api and
 registry.core code..

 ES publisher calls to the
 GovernanceArtifactImpl.getAllLifecycleActions() where it get calls to the
 getAspectActions() method. This get calls to the
 EmbeddedRegistry.getAspect(String name) which returns the aspects by taking
 the CurrentSession.getCallerTenantId(). Refer following return statement.

 return registryContext.getAspect(name,
 *CurrentSession.getCallerTenantId()*);

 But, once we expand the above 'registryContext' object, it contains the
 lifecycle aspects in super tenant space (see the attached screenshot taken
 while debugging). Hence with the callerTenantId  lifecycle aspects get
 return as null .

 If passing current tenantId to the getAspect is correct, then is there
 a way to register WebAppLifecycle aspects in tenant space as well ? Or
 could this be due to  'registryContext' object get initialed in wrong way ?

 Regards,
 Dinusha.

 On Thu, Mar 12, 2015 at 8:36 AM, Ruwan Yatawara 
 wrote:

> Hi All,
>
> We are facing an issue [1],[2] in which the sometimes the Aspect (Life
> cycle for asset types) gets lost in the tenant mode. We have observed this
> happening intermittently, only in tenant mode though and a restart of the
> pack usually solves the problem. I heard from SameeraM that a similar 
> issue
> was fixed in carbon 4.3, for the record we are still on carbon 4.2.
> Appreciate if somebody could point out a fix/approach to fix this.
>
> Error :
>
> ERROR - GovernanceArtifactImpl Error in associating lifecycle for the 
> artifact. id: a1954c0e-a67e-46b4-ae28-1b063d816a1f, path: 
> /appmgt/applicationdata/provider/admin-AT-test.com/AppT01/1.0/webapp.
> org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find 
> aspectName 'WebAppLifeCycle'
>   at 
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2428)
>   at 
> org.wso2.carbo

Re: [Dev] About Recommendation Solution for WSO2 Machine Learner for GSOC 2015

2015-03-18 Thread Nivethika mahasivam
Hi Alexandra,
thanks a lot for your message.
That makes sense.

Looking forward to do more on this.

Regards,
Nivethika

On Wed, Mar 18, 2015 at 4:15 PM, Alexandra Binca 
wrote:

> Hi Nivethika,
>
> I am also interested in this project so any clarification from any source
> would be great :).
> I suppose reportView is the tracking endpoint used to track products that
> a user viewed so I think it should be called from the product view page.
> But, in fact, it doesn't matter what "view" means for the client (e.g. only
> opening the view page or adding to cart or save in wish list). As I
> understand it, on the tracking part we should provide only a tracking API
> and some js snippets to be added in the site pages. It's the client choice
> where he will add the snippets.
>
> Best regards,
> Alexandra Binca
>
> On Wed, Mar 18, 2015 at 10:59 AM, Nivethika Mahasivam  > wrote:
>
>> Hi ,
>> Thank you for the response.
>> I have a small clarification about APIs.
>> b) reportView(user, item) - what does this stand for? What functional
>> scenario it will work on?
>> Does this mean the user checked an item, (may be add to cart) but didn't
>> purchase?
>>
>>
>> Thank you.
>> Nivethika M
>>
>>
>>
>> --
>> View this message in context:
>> http://wso2-oxygen-tank.10903.n7.nabble.com/Re-About-Recommendation-Solution-for-WSO2-Machine-Learner-for-GSOC-2015-tp114625p114813.html
>> Sent from the WSO2 Development mailing list archive at Nabble.com.
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>


-- 
Miss.Nivethika Mahasivam
Dept of Computer Engineering
Univesity of Peradeniya
Peradeniya,Srilanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About Recommendation Solution for WSO2 Machine Learner for GSOC 2015

2015-03-18 Thread Nirmal Fernando
On Wed, Mar 18, 2015 at 2:29 PM, Nivethika Mahasivam 
wrote:

> Hi ,
> Thank you for the response.
> I have a small clarification about APIs.
> b) reportView(user, item) - what does this stand for? What functional
> scenario it will work on?
> Does this mean the user checked an item, (may be add to cart) but didn't
> purchase?
>

I think this means any viewed item; so that we can see the items an user is
mostly interested in.

Does that make sense?

>
>
> Thank you.
> Nivethika M
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Re-About-Recommendation-Solution-for-WSO2-Machine-Learner-for-GSOC-2015-tp114625p114813.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Remove the OSGIness of ApplicationManagementService

2015-03-18 Thread Mahesh Chinthaka
Hi all,
Im working on [a]

At the moment we have
1. ApplicationManagementService
2. ApplicationInfoService
3. ApplicationUserMgtService

All the tasks/methods that UI needs to do related with users will be in
ApplicationUserMgtService (IMO ideally this service should be renamed as
UserManagementService).
All the tasks/methods that UI needs to related with applications will be in
ApplicationInfoService.

At the moment ApplicationManagementService has both user related tasks as
well as application related tasks.
What I'm going to do is identify those methods and move accordingly to
either ApplicationUserMgtService or ApplicationInfoService. In that way
ApplicationManagementService will no longer be a osgi service and it will
only be a soap service.

Here are the methods that I have identified,

[1] - getApplication(applicationKey)

[2] - deleteApplication(applicationKey)

[3] - getApplicationUrl(applicationKey, version, stage, tenantDomain);

[4] - getApplicationStatus(applicationKey, version, stage, tenantDomain);

[5] -
getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey,
userName);

[6] - getAllVersionsOfApplication(tenantDomain, applicationKey);

[7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version);

[8] - updateRxtWithPromoteState(appKey,nextStage,version,"Promote",state);

[9] - publishSetApplicationAutoBuild(applicationKey, stageName, version,
isBuild);

[10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version,
isDeploy);


IMO all above methods should be moved to ApplicationInfoService. WDYT ?


[a] - https://wso2.org/jira/browse/APPFAC-3011

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


[Dev] [MB] Oracle ORA-01653 issue with mb cluster

2015-03-18 Thread Pumudu Ruhunage
Hi,

I got this error log[1] when testing a long running mb cluster.

1. Start two clustered mb nodes with serializers (nodeA(coordinator),
nodeB).
2. Add queue subscriber "MyQueue1", to nodeB and publish "MyQueue1"
messages to nodeA with average 1500TPS.
3. Add queue subscriber "MyQueue2" to nodeA and publish "MyQueue2" messages
to nodeB with average 1000TPS.
4. After around 12 hours, om exception has thrown from nodeB and all
operations has halted.

before the om exception throws following oracle exception has repeatedly
thrown by nodeB.

TID: [] [] [2015-03-18 02:18:08,684] ERROR
{org.wso2.andes.kernel.distruptor.inbound.InboundLogExceptionHandler} -  [
Sequence: 400477036 ] Exception occurred while processing inbound
events.Event type: MESSAGE_EVENT
{org.wso2.andes.kernel.distruptor.inbound.InboundLogExceptionHandler}
org.wso2.andes.kernel.AndesException: Error occurred while adding message
content to DB
at
org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl.storeMessagePart(RDBMSMessageStoreImpl.java:125)
at
org.wso2.andes.kernel.MessagingEngine.messagesReceived(MessagingEngine.java:223)
at
org.wso2.andes.kernel.distruptor.inbound.MessageWriter.onEvent(MessageWriter.java:58)
at
org.wso2.andes.kernel.distruptor.inbound.ConcurrentBatchEventHandler.onEvent(ConcurrentBatchEventHandler.java:126)
at
org.wso2.andes.kernel.distruptor.inbound.ConcurrentBatchEventHandler.onEvent(ConcurrentBatchEventHandler.java:36)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
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)
*Caused by: java.sql.BatchUpdateException: ORA-01653: *unable to extend
table MB.MB_CONTENT by 8192 in tablespace USERS

at
oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:11190)
at
oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:244)
at
org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl.storeMessagePart(RDBMSMessageStoreImpl.java:121)
... 8 more

What is the best way to handle this issue ? is there a oracle database
configuration to avoid this issue ?


[1]
https://drive.google.com/a/wso2.com/file/d/0B3o_bweLeo43a2tCRmt0TjRSVzQ/view?usp=sharing


Regards,
-- 
Pumudu Ruhunage
Associate Software Engineer | WSO2 Inc
M: +94 779 664493  | http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Urgent] Permissions of Units in Unified UI

2015-03-18 Thread Dulitha Wijewantha
Hi Manu,
In our current Units mechanism, we don't specify the permissions the unit
is consuming. The suggestion is to hold the permissions that a unit is
consuming within the unit. Unified UI framework will push these permissions
to the registry in application startup.

We can also provide a helper form the unified UI to check if the current
user is permitted or not. WDYT?

This is urgent for us as we are nearing, our product release.

Cheers~

-- 
Dulitha Wijewantha (Chan)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Middleware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*
*  ~Website   dulitha.me *
*  ~Twitter @dulitharw *
  *~Github @dulichan *
  *~SO @chan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Product-ESB dependency not satisfy with the kernel 4.4.0

2015-03-18 Thread Jayanga Dissanayake
Hi Prabath,

As per the offline chat we had, you have to build all your dependencies,
before building the product.
Please find the dependency diagram [1].

wso2-axiom, wso2-axis2, carbon4-kernel - build from master branch
other repos build from java8support branch.

[1]
https://drive.google.com/a/wso2.com/file/d/0B5PrGUGJmqvSVDNSOVdvYnJPaUFKYzYwSF9qV1RQY2tMSC1z/view?usp=sharing

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Wed, Mar 18, 2015 at 3:15 PM, Prabath Ariyarathna 
wrote:

> Hi Carbon Team.
>
> I got following error while compiling product-esb with kernel 4.4.0
>
> Installation failed.
>
> Cannot complete the install because one or more required items could not
> be found.
>
>  Software being installed: WSO2 Carbon - GIT Based Deployment Synchronizer
> Feature 4.3.6 (org.wso2.carbon.deployment.synchronizer.git.feature.group
> 4.3.6)
>
>  Missing requirement: WSO2 Carbon - Event Server Feature 4.3.6
> (org.wso2.carbon.event.server.feature.group 4.3.6) requires
> 'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but it could not
> be found
>
>  Cannot satisfy dependency:
>
>   From: WSO2 Carbon - GIT Based Deployment Synchronizer Feature 4.3.6
> (org.wso2.carbon.deployment.synchronizer.git.feature.group 4.3.6)
>
>   To: org.wso2.carbon.deployment.synchronizer.server.feature.group
> [4.3.6,4.4.0)
>
>  Cannot satisfy dependency:
>
>   From: WSO2 Carbon - Deployment Synchronizer Server Feature 4.3.6
> (org.wso2.carbon.deployment.synchronizer.server.feature.group 4.3.6)
>
>   To: org.wso2.carbon.event.server.feature.group [4.3.6,4.4.0)
>
> Application failed, log file location:
> /Users/prabath/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1426663535408.log
>
> any idea?
>
> --
>
> *Prabath Ariyarathna*
>
> *Associate Technical Lead*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
>
> *Email: prabat...@wso2.com *
>
> *Blog: http://prabu-lk.blogspot.com *
>
> *Flicker : https://www.flickr.com/photos/47759189@N08
> *
>
> *Mobile: +94 77 699 4730 *
>
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How can a back end service validate the JWT token received from WSO2 AM?

2015-03-18 Thread Rajkumar Rajaratnam
Hi,

I have hosted my service in WSO2 AS and I am exposing them as APIs in WSO2
AM. I have configured AM to send JWT tokens to the back end service. My
back end service is able to receive and decode the JWT tokens.

My question is, how can a service validate that JWT token was sent from
valid party (Api Manager), but not from some advisory that crafted token?

Please advice.

Thanks.

-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Clarification about APIM Tier : throttle:MaximumCount

2015-03-18 Thread Saneth Dharmakeerthi
Hi Amila,

Thanks for the Information.

Thanks and Best Regards,

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

On Wed, Mar 18, 2015 at 7:07 PM, Amila De Silva  wrote:

> Hi Saneth,
>
> In a clustered environment, the cutoff might not exactly happen on 51st
> request. Certain amount of requests may slip through. The amount of
> additional requests passing through depends on several parameters like the
> number of GW nodes running on the setup, replication frequency set and the
> amount of requests hitting the GWs.
>
> On a standalone environment, the cutoff should happen on 51st request.
>
> On Wed, Mar 18, 2015 at 6:50 PM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi APIM Team,
>>
>> I need to clarify some information about "*throttle:MaximumCount*"
>>
>> If Tier  "throttle:MaximumCount" is set to 20 and UnitTime is  set to
>> 6
>> (assume we apply bellow throttle value to all API-level,
>> Application-level and Resource-level )
>> ex:
>>50
>>6
>>
>>1. whether the api invocation cut off exactly from 51th request
>>within 6 milliseconds ?
>>2. If not, is there any percentage or amount that it can accept
>> additional requests?
>>
>> Also if there is a document that has detail information about this,
>> please share with me.
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>
>
>
> --
> *Amila De Silva*
>
> WSO2 Inc.
> mobile :(+94) 775119302
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How can a back end service validate the JWT token received from WSO2 AM?

2015-03-18 Thread Lakshman Udayakantha
Hi Rajkumar,

you can sign the JWT token using a signature algorithm. configuring

tag you can achieve this. see the doc here [1]

[1]
https://docs.wso2.com/display/AM170/Passing+Enduser+Attributes+to+the+Backend+Using+JWT

On Wed, Mar 18, 2015 at 10:00 PM, Rajkumar Rajaratnam 
wrote:

> Hi,
>
> I have hosted my service in WSO2 AS and I am exposing them as APIs in WSO2
> AM. I have configured AM to send JWT tokens to the back end service. My
> back end service is able to receive and decode the JWT tokens.
>
> My question is, how can a service validate that JWT token was sent from
> valid party (Api Manager), but not from some advisory that crafted token?
>
> Please advice.
>
> Thanks.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Join the hangout

2015-03-18 Thread Dulitha Kularathne
Hi Anuruddha!!

I missed yesterdays discussion due to an urgent matter. So im really
greatful if you can give a small summary of the content od the
discussion.(eg:- any guidelines mentioned )

So in a previous mail you mentioned a reference app made using GO. So the
reason for not using java is the jvm resource allocation issue. So then
python also should be a suitable language . Any comments are highly
appreciated.

Is the expectation is to make a separate customized shell like git bash for
windows or just to use the default cmd in windows.In linux its just the
bash shell I hope. So as I understand since this is a cross platform app
there should be a layer to interact with the OS specifics.
 Thank you.


On Tue, Mar 17, 2015 at 5:35 PM, Anuruddha Premalal 
wrote:

> I have reschedule the hangout to 9pm SL time today. Try to join if you are
> interested.
>
> On Mon, Mar 16, 2015 at 6:57 PM, Anuruddha Premalal 
> wrote:
>
>>
>> https://plus.google.com/hangouts/_/wso2.com/gsoc-2015-app
>>
>> Regards,
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94710461070
>> Web site : www.regilandvalley.com
>>
>>
>
>
> --
> *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] Google Summer Of Code 2015

2015-03-18 Thread Imesh Gunaratne
Hi Akqeel,

It's nice to see your interest on this project. Please prepare a project
proposal based on the information provided in the project description and
share it on a Google document:

   - Do a literature review on billing patterns of cloud services
   - Do a literature review on existing open source billing systems
   - Find information on Google Wallet API
   - Find information on WSO2 Private PaaS usage data model
   - Prepare a project proposal with the above information and share it
   with the mentor
   - Use WSO2 Dev mailing list for the communication


Thanks

On Wed, Mar 18, 2015 at 12:53 AM, Akqeel Nawaz 
wrote:

> Hi,
> I am a final year Software Engineering undergraduate from the Java
> Institute, Colombo.
> I am interested in the "Google Wallet based Billing System for WSO2
> Private PaaS" project proposal for this year's GSoC.
> This will be my first GSoC and I would like to know how I can get started.
> Any help would be greatly appreciated.
>
> Thanks,
> Akqeel
>



-- 
*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] Sending an Arraylist using a SOAP mesage

2015-03-18 Thread Ravindra Ranwala
Hi Pubudu,

Could you please try to send it as an array of Objects instead of an Array
list.


Thanks & Regards,

On Wed, Mar 18, 2015 at 11:36 AM, Pubudu Dodangoda  wrote:

> How can I perform $subject ?
>
> I can send other data(string, int, objects etc)
> But when I try to send an Arraylist, I get the following value at the
> debugger
>
> {OMElementmpl@10789}"http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>my
> role"
>
> this is the soap message I sent
>
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:adm="http://admin.dashboard.analytics.carbon.wso2.org"; xmlns:xsd="
> http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>
>
>
>   
>  
> myId
> my role
> my role2
>  
>   
>
> 
>
> Thank You and kind Regards
> --
> Pubudu Dodangoda
> BSc Engineering(Hon's) Undergraduate
> Department of Computer Science Engineering
> University of Moratuwa
> 0716053681 / 0775192994
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

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


[Dev] HTTP Status 405 - HTTP method GET is not supported by this URL [Machin Learner]

2015-03-18 Thread Thushan Ganegedara
Dear Devs,

I have forked WSO2 Machine Learner with the intention of getting more
insight into the product. I've followed the instructions in the Read Me and
I was able to successfully start the WSO2Server.

However, afterwards when I entered the credentials on the managing console,
it returns the following error
HTTP Status 405 - HTTP method GET is not supported by this URL
I was able to find other instances where the same error has occurred,
​
https://wso2.org/jira/browse/CARBON-8032?jql=text%20~%20%22HTTP%20Status%20405%20GET%22
http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=search_page&node=2&query=HTTP+Status+405+-+HTTP+method+GET+is+not+supported+by+this+URL&n=2

But these issue trackers/forums​ doesn't offer a clear fix. I tried
suffixing '/' as mentioned in one post, but that didn't help me.

I'm using Carbon 4.3.0 version

I would highly appreciate if you could provide some insight to this.

Thank you

-- 
Regards,

Thushan Ganegedara
School of IT
University of Sydney, Australia
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WS-RM Inbound endpoint based on Apache CXF

2015-03-18 Thread Sandamal Weerasinghe
*First build the cxf bundle and add it to the dropins folder, you'll have
to build Spring bundle and add that as well.*
*This is the cxf inbound endpoint definition which needs to go to
/repository/deployment/server/synapse-configs/default/inbound-endpoints
folder. It can have any name e.g. rminbound.xml*
*Note that it reads a config file (attached), that config file contains the
RM protocol config. e.g. How often should the server send acknowledgements.*


   http://ws.apache.org/ns/synapse";>
  8081
  localhost
  repository/conf/cxf/server.xml
   


*This is the Synapse config. I'm removing RM headers in the in sequence
because the back end doesn't support RM.*


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

   
  
  
   
   
  
 
 
 http://schemas.xmlsoap.org/ws/2005/02/rm";
name="wsrm:Sequence" action="remove" />
 http://www.w3.org/2005/08/addressing";
name="wsa:To" action="remove" />
 http://www.w3.org/2005/08/addressing";
name="wsa:FaultTo" action="remove" />
 

   http://localhost:9000/services/SimpleStockQuoteService"; />

 
  
  
 
 
  
   
   
  
 
 
 
  
  
   
   
  
  
  
   


*Using the stockquote client to invoke the service*

ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8081
-Dwsrm=true

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, Mar 16, 2015 at 10:41 PM, Sandamal Weerasinghe 
wrote:

> Hi all,
>
> Please find the pull requests for the above feature. In the orbit bundle I
> embedded the dependencies because many of them don't have osgi bundles and
> this would ensure that the RM Inbound feature would have all the
> dependencies it would need. For the RM Connector we can use the work done
> by Pasadi as a starting point (
> https://svn.wso2.com/wso2/interns/2013/pasadi/CXFWsdlToJava/)
>
> Thanks.
>
> https://github.com/wso2/orbit/pull/71
> https://github.com/wso2/carbon-mediation/pull/82
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>


http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  xmlns:wsa="http://cxf.apache.org/ws/addressing"; xmlns:http="http://cxf.apache.org/transports/http/configuration"; xmlns:wsrm-policy="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"; xmlns:wsrm-mgr="http://cxf.apache.org/ws/rm/manager"; xsi:schemaLocation="http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsdhttp://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsdhttp://schemas.xmlsoap.org/ws/2005/02/rm/policy http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsdhttp://cxf.apache.org/ws/rm/manager http://cxf.apache.org/schemas/configuration/wsrm-manager.xsdhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"; xmlns:cxf="http://cxf.apache.org/core";>















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


Re: [Dev] [Application Server] Exception when generating client for a deployed JAX-RS service

2015-03-18 Thread Ushani Balasooriya
Hi Thilini,

Similar carbon issue is reported in [1] which is in open state yet.

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

Thanks!

On Mon, Mar 16, 2015 at 11:44 AM, Thilini Cooray  wrote:

> Hi,
>
> I am getting following IOException [1] when trying to generate a client
> from the available "Generate Client" option in the Application Server
> Management Console.
> I have deployed a JAX-RS web service in the Application Server already.
>
> The generated maven project also gives an error "No marketplace entries
> found to handle cxf-wadl2java-plugin:2.7.0:wadl2java in Eclipse."
>
> Help is appreciated on this issue.
>
> Thank you.
>
> [1]
>
> [2015-03-16 11:41:03,911] ERROR
> {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
> servlet [bridgeservlet] in context with path [/] threw exception
>
> java.io.IOException: Stream closed
>
> at
> org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:626)
>
> at
> org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:114)
>
> at
> org.apache.jsp.wsdl2code.codegen_005fajaxprocessor_jsp._jspService(org.apache.jsp.wsdl2code.codegen_005fajaxprocessor_jsp:110)
>
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>
> 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:848)
>
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>
> 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.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>
> at
> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>
> 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:1110)
>
> at
> ja

Re: [Dev] Project proposal for Data Wrangler extension for WSO2 Machine Learner

2015-03-18 Thread Tharinda Ehelepola
Hi,

I have almost done the project proposal. Could you please check it and give
some feed back.

https://docs.google.com/document/d/1mppMTbpSP_vWvhbK3RPrIR1HU9D8IFgLT5Mdsdhp8Vs/pub

On Thu, Mar 19, 2015 at 2:44 AM, Nirmal Fernando  wrote:

> Please share in dev@.
>
> On Thu, Mar 19, 2015 at 5:27 AM, Tharinda Ehelepola  > wrote:
>
>> I have almost done the project proposal. Could you please check it and
>> give some feed back.
>>
>>
>> https://docs.google.com/document/d/1mppMTbpSP_vWvhbK3RPrIR1HU9D8IFgLT5Mdsdhp8Vs/pub
>>
>> On Wed, Mar 18, 2015 at 1:52 PM, Nirmal Fernando  wrote:
>>
>>> Great!
>>>
>>> On Wed, Mar 18, 2015 at 7:21 PM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Sorry about the previous mail. I found the presentation from the
 mailing list.

 On Wed, Mar 18, 2015 at 1:48 PM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>
> Did you mean that you sent me a presentation? I am confused;I can't
> find it. Can you please send me it again.
>
> On Wed, Mar 18, 2015 at 11:28 AM, Nirmal Fernando 
> wrote:
>
>> I shared a presentation with you.
>>
>> On Wed, Mar 18, 2015 at 4:32 PM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> I need some knowledge about WSO2 machine learner. Earlier you told
>>> me that WSO2 Machine Learner which is a new product that you are
>>> building these days. I think I should have some basic idea about it for 
>>> the
>>> project proposal. Can you please tell me about it.
>>>
>>> On Wed, Mar 18, 2015 at 7:40 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Thanks Nirmal I'll go through.

 On Wed, Mar 18, 2015 at 5:08 AM, Nirmal Fernando 
 wrote:

> Sample proposal of mine:
> http://nirmalfdo.blogspot.com/search/label/GSoC-2011
>
> On Wed, Mar 18, 2015 at 10:37 AM, Nirmal Fernando  > wrote:
>
>> Seems like we don't have any template as such, but you could come
>> up with a structure that makes sense.
>>
>>
>>
>> On Wed, Mar 18, 2015 at 8:49 AM, Nirmal Fernando > > wrote:
>>
>>> Hi Tharindu,
>>>
>>> Let me check and get back to you.
>>>
>>> On Wed, Mar 18, 2015 at 2:10 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Hi,
 I studied about proposal 17 last few days. Now I have proper
 idea about that project. In order to prepare the proposal It's 
 better if I
 have some template or last year proposals. Can you provide me some 
 links.

 Thank you,
 Tharinda.


>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>

>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>

>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sending an Arraylist using a SOAP mesage

2015-03-18 Thread Vanjikumaran Sivajothy
Isn't that should be be like this [1]?

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:adm="http://admin.dashboard.analytics.carbon.wso2.org"; xmlns:xsd="
http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>
   
   
  
 
myId
  *  *
* my role*
* my role2*
**
 
  
   


On Wed, Mar 18, 2015 at 11:36 AM, Pubudu Dodangoda  wrote:

> How can I perform $subject ?
>
> I can send other data(string, int, objects etc)
> But when I try to send an Arraylist, I get the following value at the
> debugger
>
> {OMElementmpl@10789}"http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>my
> role"
>
> this is the soap message I sent
>
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:adm="http://admin.dashboard.analytics.carbon.wso2.org"; xmlns:xsd="
> http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>
>
>
>   
>  
> myId
> my role
> my role2
>  
>   
>
> 
>
> Thank You and kind Regards
> --
> Pubudu Dodangoda
> BSc Engineering(Hon's) Undergraduate
> Department of Computer Science Engineering
> University of Moratuwa
> 0716053681 / 0775192994
>
> ___
> 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] We are getting some class not found issues intermittently

2015-03-18 Thread Kishanthan Thangarajah
So the solution for this issue is to separate the web socket related
packages/resources from tomcat orbit and create a new orbit for
tomcat-websocket. This new orbit will use the SPI Fly based approach to
register its SPI for ServletContainerInitializer.

There has already been some work carried out related to this with :
https://github.com/wso2/carbon4-kernel/pull/190 by Denuwanthi.

We will review and merge they PR to kernel along with above new changes.
Kernel will not have any web socket related resources, but it will have
tomcat level support for reading SPI's using OSGi approach. This will be an
extension for tomcat.

On Tue, Mar 17, 2015 at 5:27 PM, KasunG Gajasinghe  wrote:

> Hi,
>
> On Tue, Mar 17, 2015 at 5:10 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Tue, Mar 17, 2015 at 5:04 PM, Sagara Gunathunga 
>> wrote:
>>
>>>
>>>
>>> On Tue, Mar 17, 2015 at 4:45 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Yea, with the use of SPI-Fly we can provide support for this. We
 actually tested it out, and it works. We haven't introduced SPI-Fly to our
 platform yet, hence the thought.

 The websocket sample there uses the older Tomcat websocket API. I think
 we are yet to update this sample to use the Websocket JSR. You can try this
 out by installing the latest examples.war in tomcat.

>>>
>>> Wasn't that we had same conversation in past about SPI-Fly, when
>>> Denuwanthi/Rajkumar doing their fast track project ?
>>>
>>
>> Please refer following thread[1], during a review with Azeez we decided
>> to ship  SPI-Fly with Carbon/AS.
>>
>>
> Oh yes, for a mail I sent. :-)
>
> We can do this then!
>
>
>> [1] - Shipping Aries SPI Fly in AS (was: ServletContainerInitializer for
>> AS)
>>
>> Thanks !
>>
>>>
 @SupunM, did you find time to merge the new websocket samples to AS?

>>>
>>> It's Ok to have samples but I think adding automation test cases for
>>> WebSockets and custom ServletContainerInitializers should get high
>>> priority.
>>>
>>
>
> Yep.. +1.
>
>
>
>>
>>> Thanks !
>>>

>>>

 Thanks.


 On Tue, Mar 17, 2015 at 4:24 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Not exactly. SPI's in OSGi environment are loaded using Thread Context
> Classloader. See :
> http://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html. We
> can properly fix SPI's related issues with OSGi only with "OSGi
> ServiceLoader Mediator Specification" (such as SPI Fly).
>
> But to workaround this, I created a separate orbit for
> tomcat-websocket and tested on AS. No issues popped up and the web socket
> sample seems to work fine. This is by completely separating the web socket
> related packages/resources from main tomcat orbit to a separate one. What
> more should be tested with this?
>
>
>
> On Tue, Mar 17, 2015 at 2:17 PM, KasunG Gajasinghe 
> wrote:
>
>>
>> The requirement is to have it in the same classloader as tomcat. The
>> SPIs do not work otherwise.
>>
>> On Tue, Mar 17, 2015 at 2:10 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Can't we create a separate orbit for tomcat-websocket, that includes
>>> this ServletContainerInitializer? Or do we need to have it within
>>> tomcat orbit itself?
>>>
>>> On Tue, Mar 17, 2015 at 1:52 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Kishanthan,


 On Tue, Mar 17, 2015 at 1:33 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Can we try with the attached tomcat orbit bundle :
> https://wso2.org/jira/secure/attachment/36443/tomcat_7.0.52.wso2v5.jar
>  ?
> I think the root cause for this is same as what we found with spring
> bundle. Tomcat orbit also includes a SPI for "
> javax.servlet.ServletContainerInitializer". I have removed that
> from the above attached jar. Let me know the results of this with IS.
>
> Also currently IS-5.1.0 uses kernel 4.3.0 (tomcat_7.0.52-wso2v5).
> Can you test and confirm that the above issue is still there with 
> kernel
> 4.4.0-SNAPSHOT (Beta1) too? You may need to update the kernel 
> dependency
> version of your distribution. If yes, we may need to do a tomcat orbit
> release.
>

 We do need this ServletContainerInitializer inside the tomcat
 bundle to get the websocket to work. If you think the cause of the 
 above
 issue is this SPI, then we have to find and fix the root cause.


>
> On Tue, Mar 17, 2015 at 8:40 AM, Prasad Tissera 
> wrote:
>
>> Yes, We tried after downgrading spring version but it didn't
>> solve the issue.
>>
>> Sent from my mobile
>> On Mar 16, 2015 7:50 PM, "Kishanthan Thangarajah" <
>> kishant

[Dev] Fwd: Delivery Status Notification (Failure)

2015-03-18 Thread Yasima Dewmini
 Hi!
I am Yasima Dewmini, an undergraduate of Department of Computer Science and
Engineering, University of Moratuwa. Currently I am an intern at WSO2.

I am interested in proposal [5] in the Gsoc project proposal list and
looking forward to contribute to the project.

Thanks.
Yasima.

--
K.Yasima Dewmini
Software Engineer Intern
mobile: 0713117081



-- 
K.Y.Dewmini
Software Engineer Intern
mobile: 0713117081
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon-identity java8support branch not work with the JDK 1.7

2015-03-18 Thread Prabath Ariyarathna
Hi IS Team.

I'm testing ESB with kernel 4.4.0 on the JDK 1.7 and carbon-identity is on
of the dependency. So I tried to compile carbon-identity java8support
branch on the JDK 1.7.
and getting following compilation issues from the *WSO2 Carbon - Identity
User Store Configuration UI*

ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
(default-compile) on project
org.wso2.carbon.identity.user.store.configuration.ui: Compilation failure:
Compilation failure:

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[28,41]
error: package org.wso2.carbon.ndatasource.common does not exist

[ERROR]

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[90,63]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[165,66]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[96,26]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[98,22]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[100,22]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[148,30]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[150,26]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[152,26]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[171,26]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[173,22]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[175,22]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigA

Re: [Dev] [API] OSGIServerBundleStatusTestCase Failure - Unsatisfied components detected at 1.9.0-SNAPSHOT server starup

2015-03-18 Thread Dimuthu De Lanerolle
Jira : *https://wso2.org/jira/browse/APIMANAGER-3390
*

Regards

On Mon, Mar 16, 2015 at 12:01 PM, Dimuthu De Lanerolle 
wrote:

> Hi APIM Team,
>
> Due to the following unsatisfied osgi component in the latest APIM
> 1.9.0-SNAPSHOT pack we will 'disable' OSGIServerBundleStatusTestCase (test
> written for detecting Unsatisfied OSGI components at server startup) from
> tests-integration module.
>
> Can you pls look into this? We can enable the said test case once this is
> fixed.
>
>
> 24 Unsatisfied org.wso2.carbon.apimgt.startup.publisher.internal
> org.wso2.carbon.apimgt.startup.publisher(bid=174)
>
>
> For diag 24 we get this.
>
> reference:file:../plugins/commons-configuration_1.6.0.wso2v1.jar [24]
>   Direct constraints which are unresolved:
> Missing optionally imported package org.apache.commons.jxpath_0.0.0.
> Missing optionally imported package org.apache.commons.jxpath.ri_0.0.0.
> Missing optionally imported package
> org.apache.commons.jxpath.ri.compiler_0.0.0.
> Missing optionally imported package
> org.apache.commons.jxpath.ri.model_0.0.0.
>
>
> Regards
>
>
>
> --
> Dimuthu De Lanerolle
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://wso2.com/
> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>
>


-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API] APIScopeTestCase Failure

2015-03-18 Thread Dimuthu De Lanerolle
Jira : https://wso2.org/jira/browse/APIMANAGER-3391

Regards

On Fri, Mar 13, 2015 at 5:46 PM, Dimuthu De Lanerolle 
wrote:

> Hi Nuwan,
>
> Pls disregard my previous response. It should be corrected as
> DefaultVersionWithScopesTestCase fails on both packs
>
> Regards
>



-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-identity java8support branch not work with the JDK 1.7

2015-03-18 Thread Shashika Karunatilaka
Hi Prabath,

This is due to missing dependency for org.wso2.carbon.ndatasource.common
,
but this org.wso2.carbon.identity.user.store.configuration.ui is now in
carbon-commons[1] not in carbon-identity.

[1]
https://github.com/wso2/carbon-commons/tree/master/components/userstore-config/org.wso2.carbon.identity.user.store.configuration.ui

Thank you.

On Thu, Mar 19, 2015 at 11:22 AM, Prabath Ariyarathna 
wrote:

> Hi IS Team.
>
> I'm testing ESB with kernel 4.4.0 on the JDK 1.7 and carbon-identity is on
> of the dependency. So I tried to compile carbon-identity java8support
> branch on the JDK 1.7.
> and getting following compilation issues from the *WSO2 Carbon - Identity
> User Store Configuration UI*
>
> ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
> (default-compile) on project
> org.wso2.carbon.identity.user.store.configuration.ui: Compilation failure:
> Compilation failure:
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[28,41]
> error: package org.wso2.carbon.ndatasource.common does not exist
>
> [ERROR]
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[90,63]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[165,66]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[96,26]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[98,22]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[100,22]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[148,30]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[150,26]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[152,26]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[171,26]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[173,22]
> error: cannot

Re: [Dev] Release new tomcat orbits based on tomcat 7.0.59

2015-03-18 Thread Kishanthan Thangarajah
Hi Maheshika,

We have a the new orbit for tomcat at :
https://github.com/wso2/orbit/tree/master/tomcat/7.0.59.wso2v2

Can we release this?

Thanks,
Kishanthan.

On Wed, Mar 4, 2015 at 12:00 PM, Kishanthan Thangarajah  wrote:

> The newly released tomcat orbits have the group ids as "*org.wso2.tomcat*".
> This is because of the requirement for central nexus repository hosting
> policy [1]. Any dependencies to these orbits have to be updated with the
> new group ids. We are working on this for kernel + AS related git
> repositories.
>
> Thanks,
> Kishanthan.
> [1] http://central.sonatype.org/pages/choosing-your-coordinates.html
>
>
> On Mon, Mar 2, 2015 at 10:28 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Thanks Maheshika.
>>
>> @SameeraJ, I have upgraded carbon4-kernel (jdk8support branch) with these
>> latest tomcat orbits. Fixed API changes involved.
>>
>> On Thu, Feb 26, 2015 at 9:47 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Kishanthan
>>>
>>> Deployed all bundles successfully.
>>>
>>>
>>> On Wed, Feb 25, 2015 at 7:34 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Hi Maheshika,

 Please release the following orbits.

 tomcat/7.0.59.wso2v1
 tomcat-catalina-ha/7.0.59.wso2v1
 tomcat-el-api/7.0.59.wso2v1
 tomcat-jsp-api/7.0.59.wso2v1
 tomcat-servlet-api/7.0.59.wso2v1

 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
 *

>>>
>>>
>>>
>>> --
>>>
>>> Thanks & Best Regards,
>>>
>>> Maheshika Goonetilleke
>>> Engineering Process Coordinator
>>>
>>> *WSO2 Inc*
>>> *email   : mahesh...@wso2.com *
>>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>>> *www: :http://wso2.com *lean . enterprise . middleware
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *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 *
>>
>
>
>
> --
> *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 *
>



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


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

2015-03-18 Thread Yasima Dewmini
Hi!

I am Yasima Dewmini, an undergraduate of Department of  Computer Science
and Engineering, University of Moratuwa. Currently I am working as an
intern at WSO2.

I am interested  in proposal [5] in the Gsoc project proposal list and
looking forward to contribute to the project.

Thanks.
Yasima.


K.Y.Dewmini
Software Engineer Intern
mobile: 0713117081
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-identity java8support branch not work with the JDK 1.7

2015-03-18 Thread Prabath Ariyarathna
Hi Shashika.

Thanks for the reply.
This compilation issue is coming from the carbon-identity java8support
branch. so can we do something for fix this dependency issue from the IS
side ?


On Thu, Mar 19, 2015 at 11:29 AM, Shashika Karunatilaka 
wrote:

> Hi Prabath,
>
> This is due to missing dependency for org.wso2.carbon.ndatasource.common
> ,
> but this org.wso2.carbon.identity.user.store.configuration.ui is now in
> carbon-commons[1] not in carbon-identity.
>
> [1]
> https://github.com/wso2/carbon-commons/tree/master/components/userstore-config/org.wso2.carbon.identity.user.store.configuration.ui
>
> Thank you.
>
> On Thu, Mar 19, 2015 at 11:22 AM, Prabath Ariyarathna 
> wrote:
>
>> Hi IS Team.
>>
>> I'm testing ESB with kernel 4.4.0 on the JDK 1.7 and carbon-identity is
>> on of the dependency. So I tried to compile carbon-identity java8support
>> branch on the JDK 1.7.
>> and getting following compilation issues from the *WSO2 Carbon -
>> Identity User Store Configuration UI*
>>
>> ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
>> (default-compile) on project
>> org.wso2.carbon.identity.user.store.configuration.ui: Compilation failure:
>> Compilation failure:
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[28,41]
>> error: package org.wso2.carbon.ndatasource.common does not exist
>>
>> [ERROR]
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[90,63]
>> error: cannot find symbol
>>
>> [ERROR]
>>
>> [ERROR] class UserStoreConfigAdminServiceClient
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[165,66]
>> error: cannot find symbol
>>
>> [ERROR]
>>
>> [ERROR] class UserStoreConfigAdminServiceClient
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[96,26]
>> error: cannot find symbol
>>
>> [ERROR]
>>
>> [ERROR] class UserStoreConfigAdminServiceClient
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[98,22]
>> error: cannot find symbol
>>
>> [ERROR]
>>
>> [ERROR] class UserStoreConfigAdminServiceClient
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[100,22]
>> error: cannot find symbol
>>
>> [ERROR]
>>
>> [ERROR] class UserStoreConfigAdminServiceClient
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[148,30]
>> error: cannot find symbol
>>
>> [ERROR]
>>
>> [ERROR] class UserStoreConfigAdminServiceClient
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[150,26]
>> error: cannot find symbol
>>
>> [ERROR]
>>
>> [ERROR] class UserStoreConfigAdminServiceClient
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[152,26]
>> error: cannot find symbol
>>
>> [ERROR]
>>
>> [ERROR] class UserStoreConfigAdminServiceClient
>>
>> [ERROR]
>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[171,26]
>> error: cannot fi

Re: [Dev] Carbon-identity java8support branch not work with the JDK 1.7

2015-03-18 Thread Shashika Karunatilaka
Hi Prabath,

Check the following PR [1], this component is moved to carbon-commons in
master branch not in the java8support branch.

[1] https://github.com/wso2/carbon-identity/pull/139

On Thu, Mar 19, 2015 at 11:36 AM, Prabath Ariyarathna 
wrote:

> Hi Shashika.
>
> Thanks for the reply.
> This compilation issue is coming from the carbon-identity java8support
> branch. so can we do something for fix this dependency issue from the IS
> side ?
>
>
> On Thu, Mar 19, 2015 at 11:29 AM, Shashika Karunatilaka <
> shashi...@wso2.com> wrote:
>
>> Hi Prabath,
>>
>> This is due to missing dependency for org.wso2.carbon.ndatasource.common
>> ,
>> but this org.wso2.carbon.identity.user.store.configuration.ui is now in
>> carbon-commons[1] not in carbon-identity.
>>
>> [1]
>> https://github.com/wso2/carbon-commons/tree/master/components/userstore-config/org.wso2.carbon.identity.user.store.configuration.ui
>>
>> Thank you.
>>
>> On Thu, Mar 19, 2015 at 11:22 AM, Prabath Ariyarathna > > wrote:
>>
>>> Hi IS Team.
>>>
>>> I'm testing ESB with kernel 4.4.0 on the JDK 1.7 and carbon-identity is
>>> on of the dependency. So I tried to compile carbon-identity java8support
>>> branch on the JDK 1.7.
>>> and getting following compilation issues from the *WSO2 Carbon -
>>> Identity User Store Configuration UI*
>>>
>>> ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
>>> (default-compile) on project
>>> org.wso2.carbon.identity.user.store.configuration.ui: Compilation failure:
>>> Compilation failure:
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[28,41]
>>> error: package org.wso2.carbon.ndatasource.common does not exist
>>>
>>> [ERROR]
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[90,63]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[165,66]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[96,26]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[98,22]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[100,22]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[148,30]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[150,26]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[152,26]
>>> error: can

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Hemika Kodikara
Thanks for the wishes. :D

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

Mobile : +9477762

On Wed, Mar 18, 2015 at 2:29 PM, Milan Perera  wrote:

> Congratz Hemika...!!!
>
> On Wed, Mar 18, 2015 at 2:03 PM, Kala Weerawardana  wrote:
>
>> Congrats Hemika :)
>>
>> On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe 
>> wrote:
>>
>>> Hi Hemika,
>>> Congratulations!
>>> It is with great pleasure that we welcome you as a WSO2 committer. Keep
>>> up the good work!
>>> regards,
>>>
>>> --
>>> Ramith Jayasinghe
>>> Technical Lead
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> E: ram...@wso2.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-identity java8support branch not work with the JDK 1.7

2015-03-18 Thread Prabath Ariyarathna
Thanks Shashika.

Seems, master branch changes are not merge to the jav8support branch.


On Thu, Mar 19, 2015 at 11:43 AM, Shashika Karunatilaka 
wrote:

> Hi Prabath,
>
> Check the following PR [1], this component is moved to carbon-commons in
> master branch not in the java8support branch.
>
> [1] https://github.com/wso2/carbon-identity/pull/139
>
> On Thu, Mar 19, 2015 at 11:36 AM, Prabath Ariyarathna 
> wrote:
>
>> Hi Shashika.
>>
>> Thanks for the reply.
>> This compilation issue is coming from the carbon-identity java8support
>> branch. so can we do something for fix this dependency issue from the IS
>> side ?
>>
>>
>> On Thu, Mar 19, 2015 at 11:29 AM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi Prabath,
>>>
>>> This is due to missing dependency for org.wso2.carbon.ndatasource.common
>>> ,
>>> but this org.wso2.carbon.identity.user.store.configuration.ui is now in
>>> carbon-commons[1] not in carbon-identity.
>>>
>>> [1]
>>> https://github.com/wso2/carbon-commons/tree/master/components/userstore-config/org.wso2.carbon.identity.user.store.configuration.ui
>>>
>>> Thank you.
>>>
>>> On Thu, Mar 19, 2015 at 11:22 AM, Prabath Ariyarathna <
>>> prabat...@wso2.com> wrote:
>>>
 Hi IS Team.

 I'm testing ESB with kernel 4.4.0 on the JDK 1.7 and carbon-identity is
 on of the dependency. So I tried to compile carbon-identity java8support
 branch on the JDK 1.7.
 and getting following compilation issues from the *WSO2 Carbon -
 Identity User Store Configuration UI*

 ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
 (default-compile) on project
 org.wso2.carbon.identity.user.store.configuration.ui: Compilation failure:
 Compilation failure:

 [ERROR]
 /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[28,41]
 error: package org.wso2.carbon.ndatasource.common does not exist

 [ERROR]

 [ERROR]
 /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[90,63]
 error: cannot find symbol

 [ERROR]

 [ERROR] class UserStoreConfigAdminServiceClient

 [ERROR]
 /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[165,66]
 error: cannot find symbol

 [ERROR]

 [ERROR] class UserStoreConfigAdminServiceClient

 [ERROR]
 /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[96,26]
 error: cannot find symbol

 [ERROR]

 [ERROR] class UserStoreConfigAdminServiceClient

 [ERROR]
 /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[98,22]
 error: cannot find symbol

 [ERROR]

 [ERROR] class UserStoreConfigAdminServiceClient

 [ERROR]
 /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[100,22]
 error: cannot find symbol

 [ERROR]

 [ERROR] class UserStoreConfigAdminServiceClient

 [ERROR]
 /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[148,30]
 error: cannot find symbol

 [ERROR]

 [ERROR] class UserStoreConfigAdminServiceClient

 [ERROR]
 /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[150,26]
 error: cannot find symbol

 [ERROR]

 [ERROR] class UserStoreConfigAdminServiceClient

Re: [Dev] ClassNotFoundException when running SAML SSO Test in IS 5.1.0 on TAF 4.3.1

2015-03-18 Thread Malithi Edirisinghe
Removing support-dev@ and adding dev@

On Thu, Mar 19, 2015 at 11:54 AM, Malithi Edirisinghe 
wrote:

> Hi All,
>
> We are in the process of moving integration tests of IS to TAF 4.3.1.
>
> We have a SAML Test case [1] which uses the Travelocity sample webapp.
> When running the test on top of Carbon 4.3.0 and TAF 4.3.1 I get the
> following ClassNotFoundException.
>
> INFO
> [org.wso2.carbon.automation.engine.testlisteners.TestManagerListener] -
> Running the test method ---
> org.wso2.identity.integration.test.saml.SAMLSSOTestCase.testSAMLSSOLogin
> 
>
> Mar 19, 2015 11:29:25 AM org.apache.catalina.core.StandardWrapperValve
> invoke
>
> SEVERE: Servlet.service() for servlet [ForwardingServlet] in context with
> path [/travelocity.com] threw exception [Filter execution threw an
> exception] with root cause
>
> java.lang.ClassNotFoundException: org.apache.velocity.app.Velocity
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> at
> org.opensaml.DefaultBootstrap.initializeVelocity(DefaultBootstrap.java:159)
>
> at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:85)
>
> at
> org.wso2.carbon.identity.sso.agent.saml.SAML2SSOManager.(SAML2SSOManager.java:100)
>
> at
> org.wso2.carbon.identity.sso.agent.SSOAgentFilter.doFilter(SSOAgentFilter.java:120)
>
> at
> org.wso2.sample.is.sso.agent.SSOAgentSampleFilter.doFilter(SSOAgentSampleFilter.java:68)
>
> 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.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.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>
> at java.lang.Thread.run(Thread.java:695)
>
> INFO
> [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> [2015-03-19 11:29:25,727] ERROR
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
> -  Context does not exist. Probably due to invalidated cache
>
> Mar 19, 2015 11:29:26 AM org.wso2.sample.is.sso.agent.SSOAgentSampleFilter
> doFilter
>
> INFO: SAML2 HTTP Binding not found in request. Defaulting to HTTP-POST
>
> Mar 19, 2015 11:29:26 AM org.apache.catalina.core.StandardWrapperValve
> invoke
>
> SEVERE: Servlet.service() for servlet [jsp] in context with path [/
> travelocity.com] threw exception [Filter execution threw an exception]
> with root cause
>
> java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity
>
> at
> org.opensaml.DefaultBootstrap.initializeVelocity(DefaultBootstrap.java:159)
>
> at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:85)
>
> at
> org.wso2.carbon.identity.sso.agent.saml.SAML2SSOManager.(SAML2SSOManager.java:100)
>
> at
> org.wso2.carbon.identity.sso.agent.SSOAgentFilter.doFilter(SSOAgentFilter.java:86)
>
> at
> org.wso2.sample.is.sso.agent.SSOAgentSampleFilter.doFilter(SSOAgentSampleFilter.java:68)
>
> 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.apache.catalina.core.StandardEn

[Dev] Please merge PR for IDENTITY-2650

2015-03-18 Thread Chanuka Dissanayake
Hi,

$subject contains the fixes for [1]. PR is in [2].

The problem is SAML issuer data which is initialy stored in table
SP_INBOUND_AUTH are not deleted after the issuer was delete but only the
information in the registry was deleted.

Steps and the provided solution,

   1. Click delete. (configure-service-provider.jsp) -> [M]
   updateBeanAndRedirect(redirectURL)
  1. update-application-bean.jsp
  2. ApplicationBean->update()
  3. OnSuccess() redirect to -> remove_service_providers.jsp ->
  client.removeServiceProvider(issuer)
   2. Redirect to configure-service-provider.jsp ? action=delete &
   samlIssuer=()
  1. ApplicationBean -> deleteSAMLIssuer()
  2. ApplicationMgtClient.updateApplicationData() (to remove the values
  from database)

[1] https://wso2.org/jira/browse/IDENTITY-2650
[2] https://github.com/wso2/carbon-identity/pull/143

Thanks & Regards,
Chanuka.

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


[Dev] Please review and merge PR for APIMANAGER-3291

2015-03-18 Thread Madusanka Premaratne
Hi Abimaran,
Find the PR[1] for the issue[2]
[1] - https://github.com/wso2/carbon-apimgt/pull/88
[2] - https://wso2.org/jira/browse/APIMANAGER-3291

​Thanks,​

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook]  [image: Twitter]
 [image: Google Plus]
 [image:
Linkedin]  [image: Instagram]
 [image: Skype]

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