Re: [Dev] Unsupported AMQP version error when connecting WSO2 CEP and MB

2015-03-17 Thread Tharik Kanaka
Hi Akalanka,

Thank you for the support. The error is little bit misleading, and it was a
configuration issue which causes the error. In jndi properties topic name
is "example.MyTopic", but specifying topic name in CEP end, it has to be
just "MyTopic".

Thanks

On Wed, Mar 18, 2015 at 10:53 AM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi Tharik,
>
> Please check the AMQP version used in CEP for this connection. Currently
> MB only supports up to AMQP 0.9.1 and it looks like CEP is using a later
> version than that for this connection.
>
> Thanks,
> Akalanka.
>
> On Wed, Mar 18, 2015 at 10:22 AM, Tharik Kanaka  wrote:
>
>>
>> Hi all,
>>
>> I am trying to connect MB (2.2.0) as producer and CEP (4.0.0) as consumer
>> using input adapters. I am getting following error continously once i have
>> connected the CEP with MB.
>>
>> ERROR - {NativeWorkerPool}  Uncaught exception
>> java.lang.UnsupportedOperationException: The new addressing based sytanx
>> is not supported for AMQP 0-8/0-9 versions
>> at
>> org.wso2.andes.client.AMQSession_0_8.handleAddressBasedDestination(AMQSession_0_8.java:577)
>> at org.wso2.andes.client.AMQSession.registerConsumer(AMQSession.java:2868)
>> at org.wso2.andes.client.AMQSession.access$500(AMQSession.java:109)
>> at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2061)
>> at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2027)
>> at
>> org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315)
>> at
>> org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:621)
>> at
>> org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
>> at
>> org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2025)
>> at org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028)
>> at
>> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSUtils.createConsumer(JMSUtils.java:472)
>> at
>> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.createConsumer(JMSTaskManager.java:982)
>> at
>> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.getMessageConsumer(JMSTaskManager.java:850)
>> at
>> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.receiveMessage(JMSTaskManager.java:599)
>> at
>> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.run(JMSTaskManager.java:520)
>> 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:695)
>>
>>
>> Following are CEP jndi properties
>>
>> # register some connection factories
>> # connectionfactory.[jndiname] = [ConnectionURL]
>> connectionfactory.TopicConnectionFactory = amqp://admin:admin@clientID
>> /carbon?brokerlist='tcp://localhost:5674'
>>
>> connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID
>> /carbon?brokerlist='tcp://localhost:5674''
>>
>> # register some queues in JNDI using the form
>> # queue.[jndiName] = [physicalName]
>> queue.MyQueue = example.MyQueue
>>
>> # register some topics in JNDI using the form
>> # topic.[jndiName] = [physicalName]
>> topic.MyTopic = example.MyTopic
>>
>>
>> This the CEP input adapter
>>
>> >   trace="disable" type="jms" xmlns="
>> http://wso2.org/carbon/eventadaptormanager";>
>>   > name="java.naming.provider.url">repository/conf/jndi.properties
>>   > name="java.naming.factory.initial">org.wso2.andes.jndi.PropertiesFileInitialContextFactory
>>   > name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
>>   topic
>> 
>>
>>
>> Is it causing due to mismatching of AMQP version?
>>
>>
>> --
>>
>> *Tharik Kanaka* | Associate Software Engineer
>>
>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>
>> Email: tha...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791*
>



-- 

*Tharik Kanaka* | Associate Software Engineer

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

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] Java Broker Start Up failure

2015-03-17 Thread Pranavan Theivendram
Hi All,

I am getting the following error when I am starting the java broker. Can
anyone help me in this issue.





















*Exception during startup:
org.apache.qpid.server.configuration.IllegalConfigurationException: No
phase upgrader for version
3.0org.apache.qpid.server.configuration.IllegalConfigurationException: No
phase upgrader for version 3.0at
org.apache.qpid.server.store.GenericStoreUpgrader.buildUpgraderChain(GenericStoreUpgrader.java:133)
at
org.apache.qpid.server.store.GenericStoreUpgrader.performUpgrade(GenericStoreUpgrader.java:94)
at
org.apache.qpid.server.store.GenericStoreUpgrader.access$100(GenericStoreUpgrader.java:34)
at
org.apache.qpid.server.store.GenericStoreUpgrader$1.end(GenericStoreUpgrader.java:78)
at
org.apache.qpid.server.store.JsonFileConfigStore.visitConfiguredObjectRecords(JsonFileConfigStore.java:158)
at
org.apache.qpid.server.store.GenericStoreUpgrader.upgrade(GenericStoreUpgrader.java:82)
at
org.apache.qpid.server.store.BrokerStoreUpgraderAndRecoverer.upgrade(BrokerStoreUpgraderAndRecoverer.java:498)
at
org.apache.qpid.server.store.BrokerStoreUpgraderAndRecoverer.perform(BrokerStoreUpgraderAndRecoverer.java:479)
at
org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:80)
at org.apache.qpid.server.Broker.startupImpl(Broker.java:153)at
org.apache.qpid.server.Broker.access$000(Broker.java:51)at
org.apache.qpid.server.Broker$1.run(Broker.java:112)at
java.security.AccessController.doPrivileged(Native Method)at
javax.security.auth.Subject.doAs(Subject.java:415)at
org.apache.qpid.server.Broker.startup(Broker.java:107)at
org.apache.qpid.server.Main.startBroker(Main.java:458)at
org.apache.qpid.server.Main.execute(Main.java:314)at
org.apache.qpid.server.Main.(Main.java:147)at
org.apache.qpid.server.Main.main(Main.java:138)*


-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Dinithi De Silva
Congratz Hemika

On Wed, Mar 18, 2015 at 11:30 AM, Thilini Cooray  wrote:

> Congrats, Hemika !
>
> On Wed, Mar 18, 2015 at 11:22 AM, Harsha Kumara  wrote:
>
>> Congratulations Hemika!
>>
>> On Wed, Mar 18, 2015 at 11:11 AM, Niranda Perera 
>> wrote:
>>
>>> Congrats machan! :-)
>>>
>>> On Wed, Mar 18, 2015 at 11:10 AM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Congratz, Hemika !!!


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

 On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage 
 wrote:

> Congratulations Hemika..!!!
>
> On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka 
> wrote:
>
>> Congratulations Hemika !!
>>
>> On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya <
>> lasit...@wso2.com> wrote:
>>
>>> Congratulations 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


>>>
>>>
>>> --
>>> Lasitha Wattaladeniya
>>> Software Engineer
>>> WSO2, Inc. | http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Mobile : +94719397528
>>> Blog : techreadme.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Tharik Kanaka* | Associate Software Engineer
>>
>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>
>> Email: tha...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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 mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-03-17 Thread Fathima Dilhasha
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 whole function please. So we can see the reason for 
>> NPE.
>>
>> On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha > > wrote:
>>
>>> Hi,
>>>
>>> I'm trying to access an osgi service available in WSO2 Appfactory,
>>> from the 'appmgt' jaggery app. In this process I get the following
>>> exception in the server.
>>>
>>> *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
>>> {module/issuetracker/saveConfig.jag} -
>>>

[Dev] Sending an Arraylist using a SOAP mesage

2015-03-17 Thread Pubudu Dodangoda
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


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Thilini Cooray
Congrats, Hemika !

On Wed, Mar 18, 2015 at 11:22 AM, Harsha Kumara  wrote:

> Congratulations Hemika!
>
> On Wed, Mar 18, 2015 at 11:11 AM, Niranda Perera  wrote:
>
>> Congrats machan! :-)
>>
>> On Wed, Mar 18, 2015 at 11:10 AM, Dilan Udara Ariyaratne > > wrote:
>>
>>> Congratz, Hemika !!!
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage 
>>> wrote:
>>>
 Congratulations Hemika..!!!

 On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka  wrote:

> Congratulations Hemika !!
>
> On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya <
> lasit...@wso2.com> wrote:
>
>> Congratulations 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
>>>
>>>
>>
>>
>> --
>> Lasitha Wattaladeniya
>> Software Engineer
>> WSO2, Inc. | http://wso2.com
>> lean. enterprise. middleware
>>
>> Mobile : +94719397528
>> Blog : techreadme.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 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 mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

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


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Harsha Kumara
Congratulations Hemika!

On Wed, Mar 18, 2015 at 11:11 AM, Niranda Perera  wrote:

> Congrats machan! :-)
>
> On Wed, Mar 18, 2015 at 11:10 AM, Dilan Udara Ariyaratne 
> wrote:
>
>> Congratz, Hemika !!!
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage 
>> wrote:
>>
>>> Congratulations Hemika..!!!
>>>
>>> On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka  wrote:
>>>
 Congratulations Hemika !!

 On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya <
 lasit...@wso2.com> wrote:

> Congratulations 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
>>
>>
>
>
> --
> Lasitha Wattaladeniya
> Software Engineer
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +94719397528
> Blog : techreadme.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 *Tharik Kanaka* | Associate Software Engineer

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

 Email: tha...@wso2.com | Web: www.wso2.com

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


>>>
>>>
>>> --
>>> 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 mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.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-17 Thread Fathima Dilhasha
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 whole function please. So we can see the reason for 
> NPE.
>
> On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
> wrote:
>
>> Hi,
>>
>> I'm trying to access an osgi service available in WSO2 Appfactory,
>> from the 'appmgt' jaggery app. In this process I get the following
>> exception in the server.
>>
>> *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
>> {module/issuetracker/saveConfig.jag} -
>>  org.mozilla.javascript.WrappedException: Wrapped
>> java.lang.NullPointerException (osgi#8)*
>> * at
>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
>> * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
>> * at
>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
>> * at
>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
>> * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
>> * at org.mozilla.javascript.gen.osgi_11.call(osgi)*
>> * at
>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
>> * at
>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)*

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

2015-03-17 Thread Mahesh Chinthaka
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 whole function please. So we can see the reason for 
 NPE.

 On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
 wrote:

> Hi,
>
> I'm trying to access an osgi service available in WSO2 Appfactory,
> from the 'appmgt' jaggery app. In this process I get the following
> exception in the server.
>
> *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
> {module/issuetracker/saveConfig.jag} -
>  org.mozilla.javascript.WrappedException: Wrapped
> java.lang.NullPointerException (osgi#8)*
> * at
> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
> * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
> * at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
> * at
> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
> * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
> * at org.mozilla.javascript.gen.osgi_11.call(osgi)*
> * at
> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
> * at
> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetra

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

2015-03-17 Thread Mahesh Chinthaka
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 whole function please. So we can see the reason for NPE.
>>>
>>> On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
>>> wrote:
>>>
 Hi,

 I'm trying to access an osgi service available in WSO2 Appfactory, from
 the 'appmgt' jaggery app. In this process I get the following exception in
 the server.

 *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
 {module/issuetracker/saveConfig.jag} -
  org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (osgi#8)*
 * at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
 * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
 * at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
 * at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
 * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
 * at org.mozilla.javascript.gen.osgi_11.call(osgi)*
 * at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
 * at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
 * at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)*
 * at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/sa

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Niranda Perera
Congrats machan! :-)

On Wed, Mar 18, 2015 at 11:10 AM, Dilan Udara Ariyaratne 
wrote:

> Congratz, Hemika !!!
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage  wrote:
>
>> Congratulations Hemika..!!!
>>
>> On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka  wrote:
>>
>>> Congratulations Hemika !!
>>>
>>> On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya <
>>> lasit...@wso2.com> wrote:
>>>
 Congratulations 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
>
>


 --
 Lasitha Wattaladeniya
 Software Engineer
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94719397528
 Blog : techreadme.blogspot.com

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


>>>
>>>
>>> --
>>>
>>> *Tharik Kanaka* | Associate Software Engineer
>>>
>>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>>
>>> Email: tha...@wso2.com | Web: www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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 mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Vinuri Perera
Congrats hemika !!!

On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage  wrote:

> Congratulations Hemika..!!!
>
> On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka  wrote:
>
>> Congratulations Hemika !!
>>
>> On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya > > wrote:
>>
>>> Congratulations 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


>>>
>>>
>>> --
>>> Lasitha Wattaladeniya
>>> Software Engineer
>>> WSO2, Inc. | http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Mobile : +94719397528
>>> Blog : techreadme.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Tharik Kanaka* | Associate Software Engineer
>>
>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>
>> Email: tha...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


-- 
Vinuri Perera
Software Engineer | WSO2 Inc

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


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Dilan Udara Ariyaratne
Congratz, Hemika !!!


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

On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage  wrote:

> Congratulations Hemika..!!!
>
> On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka  wrote:
>
>> Congratulations Hemika !!
>>
>> On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya > > wrote:
>>
>>> Congratulations 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


>>>
>>>
>>> --
>>> Lasitha Wattaladeniya
>>> Software Engineer
>>> WSO2, Inc. | http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Mobile : +94719397528
>>> Blog : techreadme.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Tharik Kanaka* | Associate Software Engineer
>>
>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>
>> Email: tha...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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 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-17 Thread Fathima Dilhasha
Thanks for the points Dhanushka. Please correct me if I have not understood
the points correctly.

1. I checked in the OSGI console and it shows the osgi service I'm using.
Is there any other thing I need to check?

2. I will try that out.

3. I will have to refer to the module as follows,right?

*var modManager = jagg.module("manager");*


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 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 whole function please. So we can see the reason for NPE.
>>>
>>> On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
>>> wrote:
>>>
 Hi,

 I'm trying to access an osgi service available in WSO2 Appfactory, from
 the 'appmgt' jaggery app. In this process I get the following exception in
 the server.

 *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
 {module/issuetracker/saveConfig.jag} -
  org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (osgi#8)*
 * at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
 * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
 * at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
 * at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
 * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
 * at org.mozilla.javascript.gen.osgi_11.call(osgi)*
 * at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
 * at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)*
 * at
 org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
 * at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)*
 * at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)*
 * at
 org

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Pumudu Ruhunage
Congratulations Hemika..!!!

On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka  wrote:

> Congratulations Hemika !!
>
> On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya 
> wrote:
>
>> Congratulations 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
>>>
>>>
>>
>>
>> --
>> Lasitha Wattaladeniya
>> Software Engineer
>> WSO2, Inc. | http://wso2.com
>> lean. enterprise. middleware
>>
>> Mobile : +94719397528
>> Blog : techreadme.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Danushka Fernando
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 whole function please. So we can see the reason for NPE.
>>
>> On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to access an osgi service available in WSO2 Appfactory, from
>>> the 'appmgt' jaggery app. In this process I get the following exception in
>>> the server.
>>>
>>> *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
>>> {module/issuetracker/saveConfig.jag} -
>>>  org.mozilla.javascript.WrappedException: Wrapped
>>> java.lang.NullPointerException (osgi#8)*
>>> * at
>>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
>>> * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
>>> * at
>>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
>>> * at
>>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
>>> * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
>>> * at org.mozilla.javascript.gen.osgi_11.call(osgi)*
>>> * at
>>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
>>> * at
>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)*
>>> * at
>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
>>> * at
>>> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)*
>>> * at
>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)*
>>> * at
>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
>>> * at
>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)*
>>> * at
>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)*
>>> * at
>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
>>> * at
>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.exec(/appmgt/modules/issuetracker/get/saveConfig.jag)*
>>> * at
>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)*
>>> * at
>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)*
>>> * at
>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)*
>>> * at
>>> org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)*
>>> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)*
>>> * at javax.servlet.http.HttpSer

Re: [Dev] Unsupported AMQP version error when connecting WSO2 CEP and MB

2015-03-17 Thread Akalanka Pagoda Arachchi
Hi Tharik,

Please check the AMQP version used in CEP for this connection. Currently MB
only supports up to AMQP 0.9.1 and it looks like CEP is using a later
version than that for this connection.

Thanks,
Akalanka.

On Wed, Mar 18, 2015 at 10:22 AM, Tharik Kanaka  wrote:

>
> Hi all,
>
> I am trying to connect MB (2.2.0) as producer and CEP (4.0.0) as consumer
> using input adapters. I am getting following error continously once i have
> connected the CEP with MB.
>
> ERROR - {NativeWorkerPool}  Uncaught exception
> java.lang.UnsupportedOperationException: The new addressing based sytanx
> is not supported for AMQP 0-8/0-9 versions
> at
> org.wso2.andes.client.AMQSession_0_8.handleAddressBasedDestination(AMQSession_0_8.java:577)
> at org.wso2.andes.client.AMQSession.registerConsumer(AMQSession.java:2868)
> at org.wso2.andes.client.AMQSession.access$500(AMQSession.java:109)
> at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2061)
> at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2027)
> at
> org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315)
> at
> org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:621)
> at
> org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
> at
> org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2025)
> at org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028)
> at
> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSUtils.createConsumer(JMSUtils.java:472)
> at
> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.createConsumer(JMSTaskManager.java:982)
> at
> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.getMessageConsumer(JMSTaskManager.java:850)
> at
> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.receiveMessage(JMSTaskManager.java:599)
> at
> org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.run(JMSTaskManager.java:520)
> 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:695)
>
>
> Following are CEP jndi properties
>
> # register some connection factories
> # connectionfactory.[jndiname] = [ConnectionURL]
> connectionfactory.TopicConnectionFactory = amqp://admin:admin@clientID
> /carbon?brokerlist='tcp://localhost:5674'
>
> connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID
> /carbon?brokerlist='tcp://localhost:5674''
>
> # register some queues in JNDI using the form
> # queue.[jndiName] = [physicalName]
> queue.MyQueue = example.MyQueue
>
> # register some topics in JNDI using the form
> # topic.[jndiName] = [physicalName]
> topic.MyTopic = example.MyTopic
>
>
> This the CEP input adapter
>
>trace="disable" type="jms" xmlns="
> http://wso2.org/carbon/eventadaptormanager";>
>name="java.naming.provider.url">repository/conf/jndi.properties
>name="java.naming.factory.initial">org.wso2.andes.jndi.PropertiesFileInitialContextFactory
>name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
>   topic
> 
>
>
> Is it causing due to mismatching of AMQP version?
>
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
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-17 Thread Fathima Dilhasha
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 whole function please. So we can see the reason for NPE.
>
> On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
> wrote:
>
>> Hi,
>>
>> I'm trying to access an osgi service available in WSO2 Appfactory, from
>> the 'appmgt' jaggery app. In this process I get the following exception in
>> the server.
>>
>> *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
>> {module/issuetracker/saveConfig.jag} -
>>  org.mozilla.javascript.WrappedException: Wrapped
>> java.lang.NullPointerException (osgi#8)*
>> * at
>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
>> * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
>> * at
>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
>> * at
>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
>> * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
>> * at org.mozilla.javascript.gen.osgi_11.call(osgi)*
>> * at
>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
>> * at
>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)*
>> * at
>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
>> * at
>> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)*
>> * at
>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)*
>> * at
>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
>> * at
>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)*
>> * at
>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)*
>> * at
>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
>> * at
>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.exec(/appmgt/modules/issuetracker/get/saveConfig.jag)*
>> * at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)*
>> * at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)*
>> * at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)*
>> * at
>> org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)*
>> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)*
>> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)*
>> * at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)*
>> * at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
>> * at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)*
>> * at
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)*
>> * at
>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
>> * at
>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)*
>> * at
>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)*
>> * at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)*
>> 

Re: [Dev] Aspect Intermittently disappearing in tenant mode

2015-03-17 Thread Sumedha Rubasinghe
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.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1873)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at 
>>> org.wso2.carbon.registry.core.session.UserRegistry.associateAspect(UserRegistry.java:1873)
>>> at 
>>> org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.attachLifecycle(GovernanceArtifactImpl.java:276)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.inv

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

2015-03-17 Thread Nirmal Fernando
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  > 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/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] carbon.product.id has not been found

2015-03-17 Thread Prabath Ariyarathna
Hi All.

I'm testing ESB with the carbon 4.4.0-SN release and getting following
error while compiling the product-ESB.

The installable unit carbon.product.id has not been found.

It comes from the WSO2 ESB - P2 Profile Generation module. 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


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

2015-03-17 Thread Mahesh Chinthaka
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 whole function please. So we can see the reason for NPE.

On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
wrote:

> Hi,
>
> I'm trying to access an osgi service available in WSO2 Appfactory, from
> the 'appmgt' jaggery app. In this process I get the following exception in
> the server.
>
> *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
> {module/issuetracker/saveConfig.jag} -
>  org.mozilla.javascript.WrappedException: Wrapped
> java.lang.NullPointerException (osgi#8)*
> * at
> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
> * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
> * at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
> * at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
> * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
> * at org.mozilla.javascript.gen.osgi_11.call(osgi)*
> * at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
> * at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
> * at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)*
> * at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
> * at
> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.exec(/appmgt/modules/issuetracker/get/saveConfig.jag)*
> * at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)*
> * at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)*
> * at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)*
> * at
> org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)*
> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)*
> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)*
> * at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)*
> * at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
> * at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)*
> * at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)*
> * at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
> * at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)*
> * at
> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)*
> * at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)*
> * at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
> * at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)*
> * at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)*
> * at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)*
> * at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)*
> * at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)*
> * at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)*
> * at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)*
> * at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)*
> * at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)*
> * at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)*
> * at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)*
> * at
> org.apache.coyote.

[Dev] [App Fac] Registry resources Indexing issue fixed

2015-03-17 Thread Punnadi Gunarathna
Hi,

All the artifacts created by RXTs (such as appversion) were not indexed in
App Factory as we have missed the relevant indexer configurations from
registry.xml file.
I have fixed the issue by adding the below config there.



Note:In order to work indexing properly with your artifacts, artifactType
defined in RXTs should match with 'mediaTypeRegEx' in regisrty.xml.

Moreover it required below configuration too.

/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime

Note: Do not left any white spaces/ tabs between 'lastAccessTimeLocation'
tags and its value as it creates the registry file inactive (i.e cannot
view, edit, delete etc) via Carbon console.

Moreover if files are indexing properly, you will see lot of temp files
being created under following directory.

/solr/data/index
-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com 
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



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


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

2015-03-17 Thread Fathima Dilhasha
Hi,

I'm trying to access an osgi service available in WSO2 Appfactory, from the
'appmgt' jaggery app. In this process I get the following exception in the
server.

*TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
{module/issuetracker/saveConfig.jag} -
 org.mozilla.javascript.WrappedException: Wrapped
java.lang.NullPointerException (osgi#8)*
* at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
* at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
* at
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
* at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
* at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
* at org.mozilla.javascript.gen.osgi_11.call(osgi)*
* at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
* at
org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)*
* at
org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
* at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)*
* at
org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)*
* at
org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
* at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)*
* at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)*
* at
org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)*
* at
org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.exec(/appmgt/modules/issuetracker/get/saveConfig.jag)*
* at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)*
* at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)*
* at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)*
* at
org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)*
* at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)*
* at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
* at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)*
* at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)*
* at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
* at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)*
* at
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)*
* at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)*
* at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)*
* at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)*
* at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)*
* at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)*
* at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)*
* at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)*
* at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)*
* at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)*
* at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)*
* at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)*
* at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)*
* at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)*
* at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)*
* at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)*
* at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)*
* at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)*
* at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)*
* at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)*
* at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)*
* at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)*
* at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)*
* at java.lang.Thread.run(Thread.java:744)

[Dev] Unsupported AMQP version error when connecting WSO2 CEP and MB

2015-03-17 Thread Tharik Kanaka
Hi all,

I am trying to connect MB (2.2.0) as producer and CEP (4.0.0) as consumer
using input adapters. I am getting following error continously once i have
connected the CEP with MB.

ERROR - {NativeWorkerPool}  Uncaught exception
java.lang.UnsupportedOperationException: The new addressing based sytanx is
not supported for AMQP 0-8/0-9 versions
at
org.wso2.andes.client.AMQSession_0_8.handleAddressBasedDestination(AMQSession_0_8.java:577)
at org.wso2.andes.client.AMQSession.registerConsumer(AMQSession.java:2868)
at org.wso2.andes.client.AMQSession.access$500(AMQSession.java:109)
at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2061)
at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2027)
at
org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315)
at
org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:621)
at
org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
at org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2025)
at org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028)
at
org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSUtils.createConsumer(JMSUtils.java:472)
at
org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.createConsumer(JMSTaskManager.java:982)
at
org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.getMessageConsumer(JMSTaskManager.java:850)
at
org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.receiveMessage(JMSTaskManager.java:599)
at
org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.run(JMSTaskManager.java:520)
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:695)


Following are CEP jndi properties

# register some connection factories
# connectionfactory.[jndiname] = [ConnectionURL]
connectionfactory.TopicConnectionFactory = amqp://admin:admin@clientID
/carbon?brokerlist='tcp://localhost:5674'

connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID
/carbon?brokerlist='tcp://localhost:5674''

# register some queues in JNDI using the form
# queue.[jndiName] = [physicalName]
queue.MyQueue = example.MyQueue

# register some topics in JNDI using the form
# topic.[jndiName] = [physicalName]
topic.MyTopic = example.MyTopic


This the CEP input adapter

http://wso2.org/carbon/eventadaptormanager";>
  repository/conf/jndi.properties
  org.wso2.andes.jndi.PropertiesFileInitialContextFactory
  TopicConnectionFactory
  topic



Is it causing due to mismatching of AMQP version?


-- 

*Tharik Kanaka* | Associate Software Engineer

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

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CDM] Feature Manager interface method names

2015-03-17 Thread Harshan Liyanage
Hi dulitha,

I'm ok with above methods. But I have a minor concern that having
overloaded methods like these might affect the readability of code.

For example when you use these methods you'll have to call it like,

featureManager.getFeatures(deviceId);

But if you have used a method like getFeaturesOfDevice, you could have use
it like

featureManager.getFeaturesOfDevice(deviceId);

So as you can see when we read the code we know that "getFeaturesOfDevice"
method will return features of a device. But when we use getFeatures()
there is no way to know what exactly that method does until we check the
type of object sent as the parameter.

Anyway this is a minor concern :).

Thanks,

Lakshitha Harshan
Software Engineer
Mobile: *+94724423048*
Email: hars...@wso2.com
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.

On Wed, Mar 18, 2015 at 10:03 AM, Dulitha Wijewantha 
wrote:

> Hi guys,
> I have an Interface called FeatureManager. I want to have methods to
> retrieve features for device type, device identifier and all features. Is
> it consistent with our practice to name these methods as below -
>
>- getFeatures (String deviceType)
>- getFeatures (DeviceIdentifier deviceIdentifier)
>- getFeatures() - get all features
>
> Or do you prefer it if the methods are not overloaded?
>
> ​Cheers~​
>
> --
> Dulitha Wijewantha (Chan)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Middleware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~Github @dulichan *
>   *~SO @chan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDM] Feature Manager interface method names

2015-03-17 Thread Dulitha Wijewantha
Hi guys,
I have an Interface called FeatureManager. I want to have methods to
retrieve features for device type, device identifier and all features. Is
it consistent with our practice to name these methods as below -

   - getFeatures (String deviceType)
   - getFeatures (DeviceIdentifier deviceIdentifier)
   - getFeatures() - get all features

Or do you prefer it if the methods are not overloaded?

​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] [GSoC-2015] Proposal 6- AppFactory Command Line Tool

2015-03-17 Thread Fathima Dilhasha
Hi Anuruddha,

Thank you. I'll contact you, if I need any further clarifications and
prepare a draft.

Thanks.
Regards,
Dilhasha

Fathima Dilhasha Nazeer 
(M.N.F.Dilhasha)
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka

On Wed, Mar 18, 2015 at 8:45 AM, Anuruddha Premalal 
wrote:

> Hi Fathima,
>
> Approach seems good. Please do a draft and share, will provide the needed
> feedback.
>
> Regards,
> Anuruddha.
>
> On Tue, Mar 17, 2015 at 10:17 PM, Fathima Dilhasha  > wrote:
>
>> Hi,
>>
>> I'm a Computer Science and Engineering undergraduate from University of
>> Moratuwa and I'm interested in contributing for proposal [6]
>> 
>>  .
>>
>> I am planning to address the following in my project proposal.
>>
>> 1. Deciding on a language or framework to implement the CLI Tool and
>> backing up the choice with a research on pros and cons of that method
>>
>> 2. A milestone break down on how I will achieve the tasks for the project
>> using the above mentioned method.
>>
>> Can you point out anything I am missing and assist me on what else I can
>> add ?
>>
>> [6]
>> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal6:AppFactory-CommandLineTool
>>
>>
>> Fathima Dilhasha Nazeer 
>> (M.N.F.Dilhasha)
>> Undergraduate | Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>
>
>
> --
> *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] Aspect Intermittently disappearing in tenant mode

2015-03-17 Thread Ruwan Yatawara
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.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1873)
>>  at java.security.AccessController.doPrivileged(Native Method)
>>  at 
>> org.wso2.carbon.registry.core.session.UserRegistry.associateAspect(UserRegistry.java:1873)
>>  at 
>> org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.attachLifecycle(GovernanceArtifactImpl.java:276)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  at java.lang.reflect.Method.invoke(Method.java:597)
>>  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>  at 
>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>>  at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>>  at 
>> org.mozilla.javascr

Re: [Dev] [GSoC-2015] Proposal 11: Recommendation Solution for WSO2 Machine Learner

2015-03-17 Thread Madawa Soysa
Hi,

I have done my research about Spark and available technologies to implement
the e-commerce tracking client. I'm currently preparing the project
proposal and is there any documentation I could read about WSO2 ML?

Also when the tracking client POST the details to the REST API, are those
information goes to ML through CEP as events?

Regards,
Madawa.

On 3 March 2015 at 09:37, Nirmal Fernando  wrote:

> +1
>
> On Tue, Mar 3, 2015 at 9:34 AM, Srinath Perera  wrote:
>
>> Can we meet 2.30 @ TRACE?
>>
>> On Tue, Mar 3, 2015 at 9:31 AM, Madawa Soysa  wrote:
>>
>>> Hi,
>>>
>>> I'm Madawa Soysa, an undergraduate at Department of Computer Science and
>>> Engineering, University of Moratuwa. Currently I'm an intern at WSO2 Inc. I
>>> went through the proposal[1]
>>> 
>>>  and
>>> interested in contributing to the project.
>>>
>>> I't would be great if i could further discuss about the above project.
>>>
>>> [1]
>>> - 
>>> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal11:RecommendationSolutionforWSO2MachineLearner
>>> 
>>>
>>> --
>>> Madawa Soysa
>>> Software Engineering Intern | WS*O₂* Inc. 
>>>
>>> Mobile: +94 75 812 0726 | Email: mada...@wso2.com
>>> LinkedIn  | Twitter
>>>  | Tumblr 
>>>
>>
>>
>>
>> --
>> 
>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>> Site: http://people.apache.org/~hemapani/
>> Photos: http://www.flickr.com/photos/hemapani/
>> Phone: 0772360902
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Madawa Soysa
Software Engineering Intern | WS*O₂* Inc. 

Mobile: +94 75 812 0726 | Email: mada...@wso2.com
LinkedIn  | Twitter
 | Tumblr 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][Jaggery] how to handle exception come from XMLHttpRequestHostObject

2015-03-17 Thread Tharindu Dharmarathna
Hi Ruchira,

We want to carch the exception according to connection refused exception
from the jaggery side . Due to logging of this  exception from Hostobject
We couldn't remove this exception come from the console.

Is there any way of check a server is up and running from jaggery side . If
there's a way we can avoid exception come from the console.

Thanks
Tharindu

On Wed, Mar 18, 2015 at 2:06 AM, Ruchira Wageesha  wrote:

> What is the issue with going try/catch blocks?
>
> /Ruchira
>
> On Tue, Mar 17, 2015 at 5:56 PM, Tharindu Dharmarathna  > wrote:
>
>> Hi all,
>>
>> According to public jira [1]  how can we handle connection refused
>> exception come from this issue . This come from the send method.
>>
>> code snippest for this issue
>>
>>>
>>> try{
>>> var xhr = new XMLHttpRequest();
>>> var site = require("/site/conf/site.json");
>>> var endpoint =
>>> site.workflows.applicationWorkFlowServerURL+"AuthenticationAdmin";
>>> xhr.open("POST", endpoint);
>>> var payload = 'http://www.w3.org/2003/05/soap-envelope"; xmlns:aut="
>>> http://authentication.services.core.carbon.wso2.org";>'
>>> + username + '' + password +
>>> 'localhost';
>>> xhr.send(payload);
>>> var cookie = (xhr.getAllResponseHeaders());
>>> log.info(xhr.readyState);
>>> //session.put("workflowCookie",cookie.split(";")[0].split(":")[1]);
>>> var sessionCookie = xhr.getResponseHeader("Set-Cookie");
>>> session.put("workflowCookie",sessionCookie);
>>> }catch (e) {
>>> // log.error(e.message);
>>> }
>>
>>
>> Exception come from the following jaggery hostobject code
>>
>> private static void executeRequest(Context cx, XMLHttpRequestHostObject
>>> xhr) throws ScriptException {
>>> try {
>>> xhr.httpClient.executeMethod(xhr.method);
>>> xhr.statusLine = xhr.method.getStatusLine();
>>> xhr.responseHeaders = xhr.method.getResponseHeaders();
>>> updateReadyState(cx, xhr, HEADERS_RECEIVED);
>>> byte[] response = xhr.method.getResponseBody();
>>> if (response.length > 0) {
>>> xhr.responseText = new String(response);
>>> }
>>> Header contentType = xhr.method.getResponseHeader("Content-Type");
>>> if (contentType != null) {
>>> xhr.responseType = contentType.getValue();
>>> }
>>> updateReadyState(cx, xhr, DONE);
>>> } catch (IOException e) {
>>> log.error(e.getMessage(), e);
>>> throw new ScriptException(e);
>>> } finally {
>>> xhr.method.releaseConnection();
>>> }
>>> }
>>
>> XMLHttpRequestHostObject.java
>>
>> [1] - https://wso2.org/jira/browse/APIMANAGER-3139
>>
>> Thanks and regards
>>
>>
>> *Tharindu Dharmarathna*Associate Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94779109091 <%2B94779109091>*
>>
>
>
>
> --
>
> *Ruchira Wageesha**Associate Technical Lead*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com *
>
> *email: ruch...@wso2.com ,   blog:
> ruchirawageesha.blogspot.com ,
> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>



-- 

*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


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

2015-03-17 Thread Nirmal Fernando
Hi Tharindu,

Let me check and get back to you.

On Wed, Mar 18, 2015 at 2:10 AM, Tharinda Ehelepola 
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/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC-2015] Proposal 6- AppFactory Command Line Tool

2015-03-17 Thread Anuruddha Premalal
Hi Fathima,

Approach seems good. Please do a draft and share, will provide the needed
feedback.

Regards,
Anuruddha.

On Tue, Mar 17, 2015 at 10:17 PM, Fathima Dilhasha 
wrote:

> Hi,
>
> I'm a Computer Science and Engineering undergraduate from University of
> Moratuwa and I'm interested in contributing for proposal [6]
> 
>  .
>
> I am planning to address the following in my project proposal.
>
> 1. Deciding on a language or framework to implement the CLI Tool and
> backing up the choice with a research on pros and cons of that method
>
> 2. A milestone break down on how I will achieve the tasks for the project
> using the above mentioned method.
>
> Can you point out anything I am missing and assist me on what else I can
> add ?
>
> [6]
> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal6:AppFactory-CommandLineTool
>
>
> Fathima Dilhasha Nazeer 
> (M.N.F.Dilhasha)
> Undergraduate | Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>



-- 
*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] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager

2015-03-17 Thread Tania Mahanama
>
> +1 for adding the samples and descriptions to Docs.
>
> IMO it is necessary to update the Docs with these two scenarios as it
> helps understand the difference and usage between these two use-cases.
>

I'll have a look. Thanks!


> On Tue, Mar 17, 2015 at 4:38 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Tue, Mar 17, 2015 at 2:57 PM, Nirdesha Munasinghe 
>> wrote:
>>
>>> Copying Tania
>>>
>>> On Tue, Mar 17, 2015 at 2:17 PM, Isuruwan Herath 
>>> wrote:
>>>


 On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna 
 wrote:

> Hi Isuruwan and Sagara,
>
> Thank you for the explanation. I can share the sample and descriptions.
>
> On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath 
>> wrote:
>>
>>> Hi Punnadi,
>>>
>>> Option 1 will only retrieve the artifacts according to the criteria
>>> of the given attribute key-value pair. Option 2 can do custom filtering 
>>> as
>>> well and its implementation underneath will query all artifacts of the
>>> given type first (calling getAllGovernanceArtifacts() ) and then do
>>> the filtering. This could be the reason why you are getting the 
>>> exception
>>> in second method.
>>>
>>
>> Shall we incorporate your description with 2 examples into API Java
>> doc, in case if it's not already there ?
>>
>
 +1 Sagara. It should go here [1].

 [1]
 https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API


>>>
>> It's ok to update user docs but my original point is we need to annotate
>> these details in to Java interface as Java doc comment, that's will help
>> developers a lot.
>>
>> Thanks !
>>
>>>
>> Thanks !
>>
>>>
>>> Thanks!
>>> Isuruwan
>>>
>>> On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna <
>>> punn...@wso2.com> wrote:
>>>

 Hi All,

 I am working with GenericArtifactManager and just wanted to know
 the difference between these two implementations:


 1. Passing an attribute map to findGenericArtifacts method
 2. Passing GenericArtifactFilter instance to findGenericArtifacts
 method

 Because in my case, when one of the saved artifact is corrupted, 1
 would return correct artifact objects of rest of the artifacts saved in
 Greg where as 2 would throw an exception.

 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com 
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  

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


>>>
>>>
>>> --
>>> Isuruwan Herath
>>> Technical Lead
>>>
>>> Contact: +94 776 273 296
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com 
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
>
>  
>



 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

 --
 You received this message because you are subscribed to the Google
 Groups "WSO2 Documentation" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.

>>>
>>>
>>>
>>> --
>>>
>>> Thanks,
>>>
>>> Nirdesha Munasinghe,
>>> WSO2 Inc.
>>> Web:http://wso2.com
>>>
>>> Mobile: +94 776321920
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com 
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax 

Re: [Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager

2015-03-17 Thread Punnadi Gunarathna
Hi,

Based on my findings,



On Wed, Mar 18, 2015 at 4:32 AM, Punnadi Gunarathna 
wrote:

> Hi Nirdesha,
>
> +1 for adding the samples and descriptions to Docs.
>
> IMO it is necessary to update the Docs with these two scenarios as it
> helps understand the difference and usage between these two use-cases.
>
> On Tue, Mar 17, 2015 at 4:38 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Tue, Mar 17, 2015 at 2:57 PM, Nirdesha Munasinghe 
>> wrote:
>>
>>> Copying Tania
>>>
>>> On Tue, Mar 17, 2015 at 2:17 PM, Isuruwan Herath 
>>> wrote:
>>>


 On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna 
 wrote:

> Hi Isuruwan and Sagara,
>
> Thank you for the explanation. I can share the sample and descriptions.
>
> On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath 
>> wrote:
>>
>>> Hi Punnadi,
>>>
>>> Option 1 will only retrieve the artifacts according to the criteria
>>> of the given attribute key-value pair. Option 2 can do custom filtering 
>>> as
>>> well and its implementation underneath will query all artifacts of the
>>> given type first (calling getAllGovernanceArtifacts() ) and then do
>>> the filtering. This could be the reason why you are getting the 
>>> exception
>>> in second method.
>>>
>>
>> Shall we incorporate your description with 2 examples into API Java
>> doc, in case if it's not already there ?
>>
>
 +1 Sagara. It should go here [1].

 [1]
 https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API


>>>
>> It's ok to update user docs but my original point is we need to annotate
>> these details in to Java interface as Java doc comment, that's will help
>> developers a lot.
>>
>> Thanks !
>>
>>>
>> Thanks !
>>
>>>
>>> Thanks!
>>> Isuruwan
>>>
>>> On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna <
>>> punn...@wso2.com> wrote:
>>>

 Hi All,

 I am working with GenericArtifactManager and just wanted to know
 the difference between these two implementations:


 1. Passing an attribute map to findGenericArtifacts method

>>> - This requires resources to be indexed to provide the results,
otherwise no results will be returned

> 2. Passing GenericArtifactFilter instance to findGenericArtifacts method

 Because in my case, when one of the saved artifact is corrupted, 1
 would return correct artifact objects of rest of the artifacts saved in
 Greg where as 2 would throw an exception.

 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com 
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  

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


>>>
>>>
>>> --
>>> Isuruwan Herath
>>> Technical Lead
>>>
>>> Contact: +94 776 273 296
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com 
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
>
>  
>



 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

 --
 You received this message because you are subscribed to the Google
 Groups "WSO2 Documentation" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.

>>>
>>>
>>>
>>> --
>>>
>>> Thanks,
>>>
>>> Nirdesha Munasinghe,
>>> WSO2 Inc.
>>> Web:http://wso2.com
>>>
>>> Mobile: +94 776321920
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Than

Re: [Dev] [AF] Launch pattern URL for single tenant Cartridge applications

2015-03-17 Thread Punnadi Gunarathna
Hi Hasitha,

Please check "[Dev] Retrieving the IP/IPs for single tenant cartridge
intances" mail thread.

On Tue, Mar 17, 2015 at 2:00 PM, Hasitha Weerasinghe 
wrote:

>
> Hi All,
>
> How we going to create application launch URL for the single tenant
> cartridges?
>
> I'm working on Nodejs application launch pattern URL. The single tenant
> cartridges has per application per version instances. how are we going to
> get the IP of the instance after its get spawned.
>
> Thank you.
> Hasitha
>
> --
> *Hasitha Weerasinghe*
> *Software Engineer Intern - WSO2  *
> Mobile : +94 776 33 6626
> Email  :  hasit...@wso2.com
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com 
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



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


Re: [Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager

2015-03-17 Thread Punnadi Gunarathna
Hi Nirdesha,

+1 for adding the samples and descriptions to Docs.

IMO it is necessary to update the Docs with these two scenarios as it helps
understand the difference and usage between these two use-cases.

On Tue, Mar 17, 2015 at 4:38 PM, Sagara Gunathunga  wrote:

>
>
> On Tue, Mar 17, 2015 at 2:57 PM, Nirdesha Munasinghe 
> wrote:
>
>> Copying Tania
>>
>> On Tue, Mar 17, 2015 at 2:17 PM, Isuruwan Herath 
>> wrote:
>>
>>>
>>>
>>> On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna 
>>> wrote:
>>>
 Hi Isuruwan and Sagara,

 Thank you for the explanation. I can share the sample and descriptions.

 On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga 
 wrote:

>
>
> On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath 
> wrote:
>
>> Hi Punnadi,
>>
>> Option 1 will only retrieve the artifacts according to the criteria
>> of the given attribute key-value pair. Option 2 can do custom filtering 
>> as
>> well and its implementation underneath will query all artifacts of the
>> given type first (calling getAllGovernanceArtifacts() ) and then do
>> the filtering. This could be the reason why you are getting the exception
>> in second method.
>>
>
> Shall we incorporate your description with 2 examples into API Java
> doc, in case if it's not already there ?
>

>>> +1 Sagara. It should go here [1].
>>>
>>> [1]
>>> https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API
>>>
>>>
>>
> It's ok to update user docs but my original point is we need to annotate
> these details in to Java interface as Java doc comment, that's will help
> developers a lot.
>
> Thanks !
>
>>
> Thanks !
>
>>
>> Thanks!
>> Isuruwan
>>
>> On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna <
>> punn...@wso2.com> wrote:
>>
>>>
>>> Hi All,
>>>
>>> I am working with GenericArtifactManager and just wanted to know the
>>> difference between these two implementations:
>>>
>>>
>>> 1. Passing an attribute map to findGenericArtifacts method
>>> 2. Passing GenericArtifactFilter instance to findGenericArtifacts
>>> method
>>>
>>> Because in my case, when one of the saved artifact is corrupted, 1
>>> would return correct artifact objects of rest of the artifacts saved in
>>> Greg where as 2 would throw an exception.
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Punnadi Gunarathna
>>> Senior Software Engineer,
>>> WSO2, Inc.; http://wso2.com 
>>> Blog: http://hi-my-world.blogspot.com/
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>>
>>>
>>>  
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Isuruwan Herath
>> Technical Lead
>>
>> Contact: +94 776 273 296
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com 
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  

>>>
>>>
>>>
>>> --
>>> Isuruwan Herath
>>> Technical Lead
>>>
>>> Contact: +94 776 273 296
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "WSO2 Documentation" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to documentation+unsubscr...@wso2.com.
>>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Thanks,
>>
>> Nirdesha Munasinghe,
>> WSO2 Inc.
>> Web:http://wso2.com
>>
>> Mobile: +94 776321920
>>
>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com 
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



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


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

2015-03-17 Thread Tharinda Ehelepola
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.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][Jaggery] how to handle exception come from XMLHttpRequestHostObject

2015-03-17 Thread Ruchira Wageesha
What is the issue with going try/catch blocks?

/Ruchira

On Tue, Mar 17, 2015 at 5:56 PM, Tharindu Dharmarathna 
wrote:

> Hi all,
>
> According to public jira [1]  how can we handle connection refused
> exception come from this issue . This come from the send method.
>
> code snippest for this issue
>
>>
>> try{
>> var xhr = new XMLHttpRequest();
>> var site = require("/site/conf/site.json");
>> var endpoint =
>> site.workflows.applicationWorkFlowServerURL+"AuthenticationAdmin";
>> xhr.open("POST", endpoint);
>> var payload = 'http://www.w3.org/2003/05/soap-envelope"; xmlns:aut="
>> http://authentication.services.core.carbon.wso2.org";>'
>> + username + '' + password +
>> 'localhost';
>> xhr.send(payload);
>> var cookie = (xhr.getAllResponseHeaders());
>> log.info(xhr.readyState);
>> //session.put("workflowCookie",cookie.split(";")[0].split(":")[1]);
>> var sessionCookie = xhr.getResponseHeader("Set-Cookie");
>> session.put("workflowCookie",sessionCookie);
>> }catch (e) {
>> // log.error(e.message);
>> }
>
>
> Exception come from the following jaggery hostobject code
>
> private static void executeRequest(Context cx, XMLHttpRequestHostObject
>> xhr) throws ScriptException {
>> try {
>> xhr.httpClient.executeMethod(xhr.method);
>> xhr.statusLine = xhr.method.getStatusLine();
>> xhr.responseHeaders = xhr.method.getResponseHeaders();
>> updateReadyState(cx, xhr, HEADERS_RECEIVED);
>> byte[] response = xhr.method.getResponseBody();
>> if (response.length > 0) {
>> xhr.responseText = new String(response);
>> }
>> Header contentType = xhr.method.getResponseHeader("Content-Type");
>> if (contentType != null) {
>> xhr.responseType = contentType.getValue();
>> }
>> updateReadyState(cx, xhr, DONE);
>> } catch (IOException e) {
>> log.error(e.getMessage(), e);
>> throw new ScriptException(e);
>> } finally {
>> xhr.method.releaseConnection();
>> }
>> }
>
> XMLHttpRequestHostObject.java
>
> [1] - https://wso2.org/jira/browse/APIMANAGER-3139
>
> Thanks and regards
>
>
> *Tharindu Dharmarathna*Associate Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>



-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com *

*email: ruch...@wso2.com ,   blog:
ruchirawageesha.blogspot.com ,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDM] Device management core needs a method to update the status of the operation

2015-03-17 Thread Dilshan Edirisuriya
Hi,

As mentioned in the mail [1] there could be success or failure statuses for
a specific operation. Once it is reached there needs to be a method to
update the current status of the operation in the operation DB. Hence this
needs to be exposed by the operation interface.

[1] - [CDM] Device management core needs a getPendingOperation method

Regards,

Dilshan

-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
https://www.linkedin.com/profile/view?id=50486426
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CDM] Device management core needs a getPendingOperation method

2015-03-17 Thread Dilshan Edirisuriya
In device management core only NEW, INPROGRESS and COMPLETED are found.
Other than that we do require an error status code here to track errors as
well.

On Wed, Mar 18, 2015 at 12:48 AM, Dilshan Edirisuriya 
wrote:

> Hi,
>
> Right now device management core has a get pending operation list method
> as below,
>
> List getPendingOperations(DeviceIdentifier var1) throws
> OperationManagementException;
>
> From the mobile functionality we do require only one operation at a time
> since the protocol handles one request at a time and for subsequent
> requests it keep on maintaining the same cycle of message passing. In
> current approach one you get the pending operation list it change the
> operation status to in-progress hence from the next message execution it
> wont pick this properly from the queue.
>
> Regards,
>
> Dilshan
>
> --
> Dilshan Edirisuriya
> Senior Software Engineer - WSO2
> Mob: + 94 777878905
> http://wso2.com/
> https://www.linkedin.com/profile/view?id=50486426
>



-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
https://www.linkedin.com/profile/view?id=50486426
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDM] Device management core needs a getPendingOperation method

2015-03-17 Thread Dilshan Edirisuriya
Hi,

Right now device management core has a get pending operation list method as
below,

List getPendingOperations(DeviceIdentifier var1) throws
OperationManagementException;

>From the mobile functionality we do require only one operation at a time
since the protocol handles one request at a time and for subsequent
requests it keep on maintaining the same cycle of message passing. In
current approach one you get the pending operation list it change the
operation status to in-progress hence from the next message execution it
wont pick this properly from the queue.

Regards,

Dilshan

-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
https://www.linkedin.com/profile/view?id=50486426
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-03-17 Thread Isuru Haththotuwa
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] in ESB side. The error is coming persistently. This
> sequence is called from a ESB rest API.
>
> However, I'm not using queues, but only a topic. The type of the topic
> (in bold letters) is actually my rest endpoint with path parameters. Any
> idea what is going on here?
>
> [1].
> [2015-03-17 18:25:33,337] ERROR - JMSOutTransportInfo Couldn't locate
>

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

2015-03-17 Thread Hasitha Hiranya
Hi,

Check the destination type parameter. It should be "topic", not "queue".
Also we need to have the prefix "topic." in 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] in ESB side. The error is coming persistently. This
 sequence is called from a ESB rest API.

 However, I'm not using queues, but only a topic. The type of the topic
 (in bold letters) is actually my rest endpoint with path parameters. Any
 idea what is going on here?

 [1].
 [2015-03-17 18:25:33,337] ERROR - JMSOutTransportInfo Couldn't locate
 the JMS destination topic.datacenter1 of type *topic/remove/5*
 extracted from the URL
 jms:/topic.datacenter1?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory1&java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=reposit

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

2015-03-17 Thread Isuru Haththotuwa
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] in ESB side. The error is coming persistently. This sequence
>>> is called from a ESB rest API.
>>>
>>> However, I'm not using queues, but only a topic. The type of the topic
>>> (in bold letters) is actually my rest endpoint with path parameters. Any
>>> idea what is going on here?
>>>
>>> [1].
>>> [2015-03-17 18:25:33,337] ERROR - JMSOutTransportInfo Couldn't locate
>>> the JMS destination topic.datacenter1 of type *topic/remove/5*
>>> extracted from the URL
>>> jms:/topic.datacenter1?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory1&java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=repository/conf/jndi.properties&transport.jms.DestinationType=topic/remove/5
>>> javax.naming.NameNotFoundException: dynamicQueues/topic.datacenter1
>>> at
>>> org.wso2.andes.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:271)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>> at org.apache.axis2.transport.jms.JMSUtils.lookup(JMSUtils.java:583)
>>> at
>>> org.apache.a

Re: [Dev] [ESB] Where the final message ID set for a request

2015-03-17 Thread Chathura Priyankara
Hi Isuru,

I think this is the best option. I did testing with attaching cloned MC as
original message property and this is working fine.

Thanks.

On Tue, Mar 17, 2015 at 2:48 PM, Isuru Ranawaka  wrote:

> Hi chathura,
>
> Yes you need to clone the MC because we need to save content it is ok. but
> instead of keep external store which can be caused OOM exceptions can't we
> attached clone MC as original MC property and when response received we can
> get that property and get the cloned MC for next send if response http code
> belongs to retry code. So then we dont need to externally map request to
> response because response has all the synapse properties which were in
> request.
>
>
> thanks
>
> On Tue, Mar 17, 2015 at 2:37 PM, Chathura Priyankara 
> wrote:
>
>> Hi Isuru,
>>
>> We need to clone and store the message to resend it based on the response
>> status code. If the response http status code is success then the stored
>> message context will removed.
>> This cloning and storing process should be happened in the Failover
>> endpoint only if failover http status codes are set for a particular
>> endpoint in the configuration. If we store the cloned
>> message at the Failover endpoint level we cannot map the request and
>> response based on the MID since MID is changed after sending.
>> Is there anyway that I could do the same thing without cloning message
>> context ?
>>
>> Thanks!
>>
>> On Tue, Mar 17, 2015 at 2:22 PM, Isuru Ranawaka  wrote:
>>
>>> Hi Chathura,
>>>
>>> When message is gone through Axis2FlexibleMEPClient it partially cloned
>>> underlying axis2MessageContext and set all the endpoint specific data to
>>> that cloned MC and register a callback for send it to BE .It may be a
>>> reason for change the MID. Why we need a to store message context
>>> externally?
>>>
>>> I think this may add up huge memory overhead if message store keeps
>>> growing (for high concurrent scenarios and responses are too late to arrive)
>>>
>>> thanks
>>>
>>> On Tue, Mar 17, 2015 at 1:21 PM, Chathura Priyankara >> > wrote:
>>>
 Hi,

 I'm working on my fast track training project [1]. I have to implement
 http status code support for FailoverEndpoint. For the re-sending purposes
 the original request message context needs to be  cloned and store using
 the message ID as the reference. The message cloning should be done in the
 FailoverEndpoint based on the synapse configuration.

 IMO the original request id changes to a new one after it sent from the
 FailoverEndpoint at the Axis2FlexibleMEPClient level.

 Is this correct or I'm missing something here ?

 [1] https://redmine.wso2.com/issues/3725

 Thanks.
 Best Regards.

 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

>>>
>>>
>>>
>>> --
>>> Best Regards
>>> Isuru Ranawaka
>>> M: +94714629880
>>> Blog : http://isurur.blogspot.com/
>>>
>>
>>
>>
>> --
>> Chathura Priyankara
>> Software Engineer | WSO2 Inc.
>> Mobile : +94718795340
>> Blog : www.codeoncloud.blogspot.com
>>
>
>
>
> --
> Best Regards
> Isuru Ranawaka
> M: +94714629880
> Blog : http://isurur.blogspot.com/
>



-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GSoC-2015] Proposal 6- AppFactory Command Line Tool

2015-03-17 Thread Fathima Dilhasha
Hi,

I'm a Computer Science and Engineering undergraduate from University of
Moratuwa and I'm interested in contributing for proposal [6]

 .

I am planning to address the following in my project proposal.

1. Deciding on a language or framework to implement the CLI Tool and
backing up the choice with a research on pros and cons of that method

2. A milestone break down on how I will achieve the tasks for the project
using the above mentioned method.

Can you point out anything I am missing and assist me on what else I can
add ?

[6]
https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal6:AppFactory-CommandLineTool


Fathima Dilhasha Nazeer 
(M.N.F.Dilhasha)
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Security manager enabled packs wont start when signed using JDK8

2015-03-17 Thread Aruna Karunarathna
AFAIU, signing using SHA1 will not cause any harm.

@Sameera, Any thoughts on this?..

On Mon, Mar 9, 2015 at 12:56 PM, Rasika Perera  wrote:

> Hi Aruna & All,
>
> Eventhough "-digestalg SHA1" solves(or work as a workaround), I am not
> clear about the jarsigner's verification behaviour.
>
>1. Suppose we are signing a JAR with SHA1 then signing SHA256 with the
>*same* *key* / alias verification *never fails*.
>2. Signing a JAR with SHA1 then signing SHA256 with *different* *keys*
>/ alias *broke* the verification.
>3. Signing a JAR with SHA1 then again SHA1 with *same/different* *keys*
>/alias *never fails*(This is what we did to solve the issue).
>
> This is also reported in stackoverflow[1].
>
> And according to the java doc[2], it says It is also possible for a JAR
> file to have mixed signatures.
>
> Any thoughts on it?
>
> [1]
> http://stackoverflow.com/questions/12614139/what-prevents-java-from-verifying-signed-jars-with-multiple-signature-algorithms
>
> [2]
> http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html#sthref18
>
>
>
> On Sat, Mar 7, 2015 at 11:02 PM, Aruna Karunarathna 
> wrote:
>
>> Hi all,
>>
>> This was resolved by adding the following argument to the jarsigner
>> command.
>>
>> *-digestalg SHA1*
>>
>> This was suggested by Rasika, thanks for the suggestion.
>>
>> Further found that two default jarsigner algorithms for JDK6 and JDK8
>> differs.
>>
>> Regards,
>> Aruna
>>
>> On Sat, Mar 7, 2015 at 3:34 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Hi all,
>>>
>>> When security manager enabled for products,(which is build using java 8
>>> and signed using java8) following exception throws at the server start-up.
>>>
>>> JAVA_HOME environment variable is set to
>>> /home/aruna/software/java/jdk1.8.0_20
>>> CARBON_HOME environment variable is set to
>>> /home/aruna/Downloads/signed_wso2as-6.0.0-SNAPSHOT
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
>>> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
>>> Caused by: java.lang.RuntimeException: invalid SHA1 signature file
>>> digest for org/eclipse/osgi/internal/module/MappedList.class
>>> at org.wso2.carbon.server.CarbonLauncher.launch(CarbonLauncher.java:117)
>>> at org.wso2.carbon.server.Main.launchCarbon(Main.java:162)
>>> at org.wso2.carbon.server.Main.main(Main.java:96)
>>> ... 6 more
>>>
>>>
>>> Further I've noticed that, org.eclipse.osgi_3.9.1.v20130814-1242.jar is
>>> already signed.
>>> *aruna@aruna:~$ jarsigner -verify
>>> unsigned_wso2as-6.0.0-SNAPSHOT/repository/components/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
>>>  *
>>> *jar verified.*
>>>
>>>
>>> After signing the pack, sign verification throws the following exception.
>>>
>>> *aruna@aruna:~$ jarsigner -verify
>>> signed_wso2as-6.0.0-SNAPSHOT/repository/components/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
>>>  *
>>> *jarsigner: java.lang.SecurityException: invalid SHA1 signature file
>>> digest for org/eclipse/osgi/internal/module/MappedList.class*
>>>
>>> However the packs are starting when signed from JDK6 and run in JDK8.
>>>
>>> So how to proceed with this issue, Highly appreciate your thoughts.
>>>
>>> [1]. https://wso2.org/jira/browse/CARBON-14877
>>>
>>> Regards,
>>> Aruna
>>> --
>>>
>>> *Aruna Sujith Karunarathna* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: rasi...@wso2.com
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



-- 

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


Re: [Dev] Carbon Context API Documentation

2015-03-17 Thread Aruna Karunarathna
Hi Pubudu,

Here is some sample code snippet, You'll get an idea on how to iterate
through.

if (governanceRegistry.resourceExists(Constants.GREG_RESOURCE_PATH)) {
Collection govCollection = (Collection)
governanceRegistry.get(Constants.GREG_RESOURCE_PATH);
String[] child = govCollection.getChildren();
for (int i = 0; i < child.length; i++) {
Collection collection = (Collection)
governanceRegistry.get(child[i]);
String[] ch = collection.getChildren();
for (int j = 0; j < ch.length; j++) {
Resource r = governanceRegistry.get(ch[j]);
try {
byte[] contentBytes = (byte[]) r.getContent();
} catch (ClassCastException e) {
log.error("Class cast Exception", e);
}
}
}
}

Regards,
Aruna


On Mon, Mar 16, 2015 at 1:02 AM, Danushka Fernando 
wrote:

> AFAIU what you want is to get all resources in a collection. You can
> retrieve collection from registry and iterate though all resources in that
> collection.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Mar 16, 2015 at 1:28 PM, Pubudu Dodangoda 
> wrote:
>
>> If I say it specifically,I want to know how to get all the resources in a
>> directory in registry
>> I know how to do this when the resource names are known, by using this
>> registry.getResource("resourceName")
>>
>> I want to get all the resources
>>
>> Thank You and kind regards
>>
>> On Mon, Mar 16, 2015 at 1:19 PM, Pubudu Dodangoda 
>> wrote:
>>
>>> Where can I find the complete documentations for carbon context API?
>>> link 
>>>
>>> I mean something similar to this collections
>>> 
>>>
>>> My truest intention is to get an idea about the methods provided in this
>>> API for Registry access
>>>
>>> If someone can point me in the correct direction, I'd be very much
>>> grateful
>>>
>>> Thank You
>>> --
>>> Pubudu Dodangoda
>>> BSc Engineering(Hon's) Undergraduate
>>> Department of Computer Science Engineering
>>> University of Moratuwa
>>> 0716053681 / 0775192994
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

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


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

2015-03-17 Thread Hasitha Hiranya
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] in ESB side. The error is coming persistently. This sequence
>> is called from a ESB rest API.
>>
>> However, I'm not using queues, but only a topic. The type of the topic
>> (in bold letters) is actually my rest endpoint with path parameters. Any
>> idea what is going on here?
>>
>> [1].
>> [2015-03-17 18:25:33,337] ERROR - JMSOutTransportInfo Couldn't locate the
>> JMS destination topic.datacenter1 of type *topic/remove/5* extracted
>> from the URL
>> jms:/topic.datacenter1?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory1&java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=repository/conf/jndi.properties&transport.jms.DestinationType=topic/remove/5
>> javax.naming.NameNotFoundException: dynamicQueues/topic.datacenter1
>> at
>> org.wso2.andes.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:271)
>> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>> at org.apache.axis2.transport.jms.JMSUtils.lookup(JMSUtils.java:583)
>> at
>> org.apache.axis2.transport.jms.JMSUtils.lookupDestination(JMSUtils.java:814)
>> at
>> org.apache.axis2.transport.jms.JMSOutTransportInfo.getDestination(JMSOutTransportInfo.java:184)
>> at
>> org.apache.axis2.transport.jms.JMSOutTransportInfo.loadConnectionFactoryFromProperties(JMSOutTransportInfo.java:132)
>> at
>> org.apache.axis2.transport.jms.JMSOutTransportInfo.createJMSSender(JMSOutTransportInfo.java:330)
>> 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(T

[Dev] GSoC 2015 - Recommendation Solution for WSO2 Machine Learner

2015-03-17 Thread Alexandra Binca
Hi,

My name is Alexandra Binca and I am studying for a Master's Degree in
Internet Systems Engineering at Politehnica University of Bucharest. I am
an experimented Java programmer and I am interested in algorithms, data
structures and machine learning.

I am interested in working on one of WSO2 projects in GSoC this summer,
more precisely on “Recommendation Solution for WSO2 Machine Learner”
project.

During my studies / internships I gained a lot of experience in JavaEE
technologies, Javascript and HTML. I worked over one year as a JavaEE
developer and I contributed on our company’s web services, one of them
being a tracking service similar to Google Analytics and Omniture but more
specific for our company needs. I am also writing a recommender system for
my final MSc project. I am confident that I will have very good results
with this project, given my experience with tracking tools and machine
learning.

Please, could you give me a few pointers on how to prepare my application?

Best regards,
Alexandra BINCA
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-03-17 Thread Malaka Silva
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] in ESB side. The error is coming persistently. This sequence
> is called from a ESB rest API.
>
> However, I'm not using queues, but only a topic. The type of the topic (in
> bold letters) is actually my rest endpoint with path parameters. Any idea
> what is going on here?
>
> [1].
> [2015-03-17 18:25:33,337] ERROR - JMSOutTransportInfo Couldn't locate the
> JMS destination topic.datacenter1 of type *topic/remove/5* extracted from
> the URL
> jms:/topic.datacenter1?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory1&java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=repository/conf/jndi.properties&transport.jms.DestinationType=topic/remove/5
> javax.naming.NameNotFoundException: dynamicQueues/topic.datacenter1
> at org.wso2.andes.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:271)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at org.apache.axis2.transport.jms.JMSUtils.lookup(JMSUtils.java:583)
> at
> org.apache.axis2.transport.jms.JMSUtils.lookupDestination(JMSUtils.java:814)
> at
> org.apache.axis2.transport.jms.JMSOutTransportInfo.getDestination(JMSOutTransportInfo.java:184)
> at
> org.apache.axis2.transport.jms.JMSOutTransportInfo.loadConnectionFactoryFromProperties(JMSOutTransportInfo.java:132)
> at
> org.apache.axis2.transport.jms.JMSOutTransportInfo.createJMSSender(JMSOutTransportInfo.java:330)
> 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)
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 

Best Regards,

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

Re: [Dev] Adding missed dependency on carbon-identitiy-java8support branch

2015-03-17 Thread Sameera Jayasoma
please ignore this email

On Tue, Mar 17, 2015 at 7:41 PM, Sameera Jayasoma  wrote:

> Why is this component moved to Carbon-commons? Who has committed this?
>
>
> On Tue, Mar 17, 2015 at 3:49 PM, Pulasthi Mahawithana 
> wrote:
>
>> Hi Shashika,
>>
>> 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
>>
>> On Tue, Mar 17, 2015 at 3:35 PM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi Johann,
>>>
>>> Please review and merge the following PR [1]
>>> Missed dependency : org.wso2.carbon.ndatasource.common
>>> 
>>>
>>> [1] https://github.com/wso2/carbon-identity/pull/139
>>>
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pulasthi Mahawithana*
>> Software Engineer
>> WSO2 Inc., http://wso2.com/
>> Mobile: +94-71-5179022
>> Blog: http://blog.pulasthi.org
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Adding missed dependency on carbon-identitiy-java8support branch

2015-03-17 Thread Sameera Jayasoma
Why is this component moved to Carbon-commons? Who has committed this?


On Tue, Mar 17, 2015 at 3:49 PM, Pulasthi Mahawithana 
wrote:

> Hi Shashika,
>
> 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
>
> On Tue, Mar 17, 2015 at 3:35 PM, Shashika Karunatilaka  > wrote:
>
>> Hi Johann,
>>
>> Please review and merge the following PR [1]
>> Missed dependency : org.wso2.carbon.ndatasource.common
>> 
>>
>> [1] https://github.com/wso2/carbon-identity/pull/139
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pulasthi Mahawithana*
> Software Engineer
> WSO2 Inc., http://wso2.com/
> Mobile: +94-71-5179022
> Blog: http://blog.pulasthi.org
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


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

2015-03-17 Thread Isuru Haththotuwa
Hi,

When I'm using an ESB sequence to send a message to a JMS topic, noticed
the error [1] in ESB side. The error is coming persistently. This sequence
is called from a ESB rest API.

However, I'm not using queues, but only a topic. The type of the topic (in
bold letters) is actually my rest endpoint with path parameters. Any idea
what is going on here?

[1].
[2015-03-17 18:25:33,337] ERROR - JMSOutTransportInfo Couldn't locate the
JMS destination topic.datacenter1 of type *topic/remove/5* extracted from
the URL
jms:/topic.datacenter1?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory1&java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=repository/conf/jndi.properties&transport.jms.DestinationType=topic/remove/5
javax.naming.NameNotFoundException: dynamicQueues/topic.datacenter1
at org.wso2.andes.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:271)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.apache.axis2.transport.jms.JMSUtils.lookup(JMSUtils.java:583)
at
org.apache.axis2.transport.jms.JMSUtils.lookupDestination(JMSUtils.java:814)
at
org.apache.axis2.transport.jms.JMSOutTransportInfo.getDestination(JMSOutTransportInfo.java:184)
at
org.apache.axis2.transport.jms.JMSOutTransportInfo.loadConnectionFactoryFromProperties(JMSOutTransportInfo.java:132)
at
org.apache.axis2.transport.jms.JMSOutTransportInfo.createJMSSender(JMSOutTransportInfo.java:330)
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)

-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] App-Manager 1.0 Release Testing Update

2015-03-17 Thread Yasassri Ratnayake
Hi All,

Meeting Notes

   - AM team will try to fix all the issues related to instability and
   share a new pack tomorrow.
   - Testing on oracle will be done based on the time available before the
   expected release date.
   - Long running test has to be run by the QA team. (on a standalone setup)
   - All features and UI's are currently finalized and no major changes
   will happen.

With Regards,

On Tue, Mar 17, 2015 at 6:14 PM, Yasassri Ratnayake 
wrote:

> Hi Dinusha,
>
> Sorry for the ambiguity in the mail. Please see my comments in-line
>
>
>>> Hi All,
>>>
>>> This is to update the current status of the App Manger release cycle.
>>>
>>> We had issues initially when testing due to following reasons
>>>
>>>- There was no decided permission model embedded to AM.
>>>
>>> This is finalized and we are not going to change the model ! There is a
>> mail thread for this even !
>>
>
> This is an issue we had before March 6th pack, As mentioned the permission
> model is finalized ATM.
>
>
>>>- UI got changed along the way
>>>
>>> There were some usability improvements done after reviewing with  UX
>> team.
>>
>>>
>>>- Features were not finalized.
>>>
>>> What you mean by features are not finalized ?
>>
>
> Along the way there were some new features added, these were issues we
> faced initially when we started testing.
>
> 1. Allow annonymous access
> 2. Skip Creating Proxying WebApp
> 3. New Dashboard was added to add Policies etc.
> 4. Policy groups
> 5. New statistical graphs/options, completely reverted statistics page
> 6. Notification on App Rejection etc.
>
> Now, I believe all the features are finalized.
>
>
>
>>> *Current Status*
>>>
>>> ATM the latest pack is unstable so we are not testing the pack in the
>>> clustered setup, hence we are doing our tests in a standalone setup. And
>>> still the workflow process is not finalized.
>>>
>> AFAIK, there is a tenant specific issue relate to life-cycle loading.
>> But, even with that we can continue super tenant scenarios in a cluster
>> environment. Workflow process is not finalized ???
>>
>
> I'm claiming the instability based on these observation, irregular
> behavior in some functions, Exceptions thrown intermittently, I have
> reported most of them. [1] - [7]. These are all intermittent exceptions
> that I observe when going through the general flow. The stability has
> improved lot in the later packs, but there are some glitches which needs to
> be investigated further.
>
> I have raised concerns regarding the workflow issue in the thread "[APP-M]
> Workflows in App Manager".
>
> [1] - https://wso2.org/jira/browse/APPM-545
> [2] - https://wso2.org/jira/browse/APPM-554
> [3] - https://wso2.org/jira/browse/APPM-563
> [4] - https://wso2.org/jira/browse/APPM-491
> [5] - https://wso2.org/jira/browse/APPM-490
> [6] - https://wso2.org/jira/browse/APPM-439
> [7] - https://wso2.org/jira/browse/APPM-324
>
> With Regards
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blog : http://yasassriratnayake.blogspot.com/
> *
>



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


Re: [Dev] App-Manager 1.0 Release Testing Update

2015-03-17 Thread Yasassri Ratnayake
Hi Dinusha,

Sorry for the ambiguity in the mail. Please see my comments in-line


>> Hi All,
>>
>> This is to update the current status of the App Manger release cycle.
>>
>> We had issues initially when testing due to following reasons
>>
>>- There was no decided permission model embedded to AM.
>>
>> This is finalized and we are not going to change the model ! There is a
> mail thread for this even !
>

This is an issue we had before March 6th pack, As mentioned the permission
model is finalized ATM.


>>- UI got changed along the way
>>
>> There were some usability improvements done after reviewing with  UX
> team.
>
>>
>>- Features were not finalized.
>>
>> What you mean by features are not finalized ?
>

Along the way there were some new features added, these were issues we
faced initially when we started testing.

1. Allow annonymous access
2. Skip Creating Proxying WebApp
3. New Dashboard was added to add Policies etc.
4. Policy groups
5. New statistical graphs/options, completely reverted statistics page
6. Notification on App Rejection etc.

Now, I believe all the features are finalized.



>> *Current Status*
>>
>> ATM the latest pack is unstable so we are not testing the pack in the
>> clustered setup, hence we are doing our tests in a standalone setup. And
>> still the workflow process is not finalized.
>>
> AFAIK, there is a tenant specific issue relate to life-cycle loading. But,
> even with that we can continue super tenant scenarios in a cluster
> environment. Workflow process is not finalized ???
>

I'm claiming the instability based on these observation, irregular behavior
in some functions, Exceptions thrown intermittently, I have reported most
of them. [1] - [7]. These are all intermittent exceptions that I observe
when going through the general flow. The stability has improved lot in the
later packs, but there are some glitches which needs to be investigated
further.

I have raised concerns regarding the workflow issue in the thread "[APP-M]
Workflows in App Manager".

[1] - https://wso2.org/jira/browse/APPM-545
[2] - https://wso2.org/jira/browse/APPM-554
[3] - https://wso2.org/jira/browse/APPM-563
[4] - https://wso2.org/jira/browse/APPM-491
[5] - https://wso2.org/jira/browse/APPM-490
[6] - https://wso2.org/jira/browse/APPM-439
[7] - https://wso2.org/jira/browse/APPM-324

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


[Dev] [DEV][Jaggery] how to handle exception come from XMLHttpRequestHostObject

2015-03-17 Thread Tharindu Dharmarathna
Hi all,

According to public jira [1]  how can we handle connection refused
exception come from this issue . This come from the send method.

code snippest for this issue

>
> try{
> var xhr = new XMLHttpRequest();
> var site = require("/site/conf/site.json");
> var endpoint =
> site.workflows.applicationWorkFlowServerURL+"AuthenticationAdmin";
> xhr.open("POST", endpoint);
> var payload = 'http://www.w3.org/2003/05/soap-envelope"; xmlns:aut="
> http://authentication.services.core.carbon.wso2.org";>'
> + username + '' + password +
> 'localhost';
> xhr.send(payload);
> var cookie = (xhr.getAllResponseHeaders());
> log.info(xhr.readyState);
> //session.put("workflowCookie",cookie.split(";")[0].split(":")[1]);
> var sessionCookie = xhr.getResponseHeader("Set-Cookie");
> session.put("workflowCookie",sessionCookie);
> }catch (e) {
> // log.error(e.message);
> }


Exception come from the following jaggery hostobject code

private static void executeRequest(Context cx, XMLHttpRequestHostObject
> xhr) throws ScriptException {
> try {
> xhr.httpClient.executeMethod(xhr.method);
> xhr.statusLine = xhr.method.getStatusLine();
> xhr.responseHeaders = xhr.method.getResponseHeaders();
> updateReadyState(cx, xhr, HEADERS_RECEIVED);
> byte[] response = xhr.method.getResponseBody();
> if (response.length > 0) {
> xhr.responseText = new String(response);
> }
> Header contentType = xhr.method.getResponseHeader("Content-Type");
> if (contentType != null) {
> xhr.responseType = contentType.getValue();
> }
> updateReadyState(cx, xhr, DONE);
> } catch (IOException e) {
> log.error(e.getMessage(), e);
> throw new ScriptException(e);
> } finally {
> xhr.method.releaseConnection();
> }
> }

XMLHttpRequestHostObject.java

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

Thanks and regards


*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


Re: [Dev] We are getting some class not found issues intermittently

2015-03-17 Thread KasunG Gajasinghe
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...@wso2.com> wrote:
>
>> So I think this is not related to spring upgrade. The issue
>> mentioned in : https://wso2.org/jira/browse/CARBON-14864 is
>> actually fixed with the given fix. This issue seems not related to 
>> spring
>> upgrade. You can confirm this by downgrading the version or removing 
>> the
>> spring bundle from carbon runtime and check. We could still see the 
>> same
>> startup/webapp deployment error. This seems to a typical OSGi class 
>> loading
>> issue.
>>
>> Need to have a another deep look and see.
>>
>> On Mon, Mar 16, 2015 at 3:06 PM, Prasad Tissera > > wrote:
>>
>>> Issue cannot be observed in IS 5.0.0 with patch0009.
>>>
>>> Rega

Re: [Dev] We are getting some class not found issues intermittently

2015-03-17 Thread Sagara Gunathunga
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.

[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.
>
> 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...@wso2.com> wrote:

> So I think this is not related to spring upgrade. The issue
> mentioned in : https://wso2.org/jira/browse/CARBON-14864 is
> actually fixed with the given fix. This issue seems not related to 
> spring
> upgrade. You can confirm this by downgrading the version or removing 
> the
> spring bundle from carbon runtime and check. We could still see the 
> same
> startup/webapp deployment error. This seems to a typical OSGi class 
> loading
> issue.
>
> Need to have a another deep look and see.
>
> On Mon, Mar 16, 2015 at 3:06 PM, Prasad Tissera 
> wrote:
>
>> Issue cannot be observed in IS 5.0.0 with patch0009.
>>
>> Regards,
>> Prasad.
>>
>> On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Can you guys check this with IS 5.0.0 also (apply patch0009)? If
>>> spring upgrade is causing the issue, then it should occur when 
>>

Re: [Dev] We are getting some class not found issues intermittently

2015-03-17 Thread Sagara Gunathunga
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 ?

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

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...@wso2.com> wrote:
>>>
 So I think this is not related to spring upgrade. The issue
 mentioned in : https://wso2.org/jira/browse/CARBON-14864 is
 actually fixed with the given fix. This issue seems not related to 
 spring
 upgrade. You can confirm this by downgrading the version or removing 
 the
 spring bundle from carbon runtime and check. We could still see the 
 same
 startup/webapp deployment error. This seems to a typical OSGi class 
 loading
 issue.

 Need to have a another deep look and see.

 On Mon, Mar 16, 2015 at 3:06 PM, Prasad Tissera 
 wrote:

> Issue cannot be observed in IS 5.0.0 with patch0009.
>
> Regards,
> Prasad.
>
> On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Can you guys check this with IS 5.0.0 also (apply patch0009)? If
>> spring upgrade is causing the issue, then it should occur when 
>> patch0009 is
>> applied on IS 5.0.0.
>>
>> On Mon, Mar 16, 2015 at 9:36 AM, Prasad Tissera > > wrote:
>>
>>> It can be observed in a fresh pack which can be downloaded from
>>> jenkins [1].  Following curl can be used to reproduce the issue.
>>>
>>> curl -v -X POST -H "Authorization: Basic
>>> NElzcWg1UkcwbEdmalFuY2k3Tk

Re: [Dev] Please review and merge the PR for carbon-commons

2015-03-17 Thread Kalpa Welivitigoda
Thanks Kasun.

On Tue, Mar 17, 2015 at 4:53 PM, KasunG Gajasinghe  wrote:

> Merged.
>
> On Tue, Mar 17, 2015 at 3:46 PM, Kalpa Welivitigoda 
> wrote:
>
>> The PR has been updated as https://github.com/wso2/carbon-commons/pull/69
>>
>> JIRA: https://wso2.org/jira/browse/WSAS-1911
>>
>> On Fri, Mar 6, 2015 at 11:26 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi,
>>>
>>> $subject, https://github.com/wso2/carbon-commons/pull/64
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
Best Regards,

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


Re: [Dev] Please review and merge the PR for carbon-commons

2015-03-17 Thread KasunG Gajasinghe
Merged.

On Tue, Mar 17, 2015 at 3:46 PM, Kalpa Welivitigoda  wrote:

> The PR has been updated as https://github.com/wso2/carbon-commons/pull/69
>
> JIRA: https://wso2.org/jira/browse/WSAS-1911
>
> On Fri, Mar 6, 2015 at 11:26 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi,
>>
>> $subject, https://github.com/wso2/carbon-commons/pull/64
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
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-17 Thread KasunG Gajasinghe
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.

@SupunM, did you find time to merge the new websocket samples to AS?

Thanks.

On Tue, Mar 17, 2015 at 4:24 PM, Kishanthan Thangarajah  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...@wso2.com> wrote:
>>
>>> So I think this is not related to spring upgrade. The issue
>>> mentioned in : https://wso2.org/jira/browse/CARBON-14864 is
>>> actually fixed with the given fix. This issue seems not related to 
>>> spring
>>> upgrade. You can confirm this by downgrading the version or removing the
>>> spring bundle from carbon runtime and check. We could still see the same
>>> startup/webapp deployment error. This seems to a typical OSGi class 
>>> loading
>>> issue.
>>>
>>> Need to have a another deep look and see.
>>>
>>> On Mon, Mar 16, 2015 at 3:06 PM, Prasad Tissera 
>>> wrote:
>>>
 Issue cannot be observed in IS 5.0.0 with patch0009.

 Regards,
 Prasad.

 On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Can you guys check this with IS 5.0.0 also (apply patch0009)? If
> spring upgrade is causing the issue, then it should occur when 
> patch0009 is
> applied on IS 5.0.0.
>
> On Mon, Mar 16, 2015 at 9:36 AM, Prasad Tissera 
> wrote:
>
>> It can be observed in a fresh pack which can be downloaded from
>> jenkins [1].  Following curl can be used to reproduce the issue.
>>
>> curl -v -X POST -H "Authorization: Basic
>> NElzcWg1UkcwbEdmalFuY2k3TkNRNnBYTFJrYTo2dmdHTE1FNHdRczhraWttT1FmWWg0Z0hublVh"
>> -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" 
>> -k -d
>> "grant_type=password&username=admin&password=admin"
>> https://localhost:9443/oauth2/token
>>
>> [1].
>> https://wso2.org/jenkins/view/product-builds/job/product-is/org.wso2.is$wso2is/lastSuccessfulBuild/artifact/org.wso2.is/wso2is/5.1.0-SNAPSHOT/wso2is-5.1.0-SNAPSHOT.zip
>>
>> Regards,
>> Prasad.
>>>

Re: [Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager

2015-03-17 Thread Sagara Gunathunga
On Tue, Mar 17, 2015 at 2:57 PM, Nirdesha Munasinghe 
wrote:

> Copying Tania
>
> On Tue, Mar 17, 2015 at 2:17 PM, Isuruwan Herath 
> wrote:
>
>>
>>
>> On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna 
>> wrote:
>>
>>> Hi Isuruwan and Sagara,
>>>
>>> Thank you for the explanation. I can share the sample and descriptions.
>>>
>>> On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga 
>>> wrote:
>>>


 On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath 
 wrote:

> Hi Punnadi,
>
> Option 1 will only retrieve the artifacts according to the criteria of
> the given attribute key-value pair. Option 2 can do custom filtering as
> well and its implementation underneath will query all artifacts of the
> given type first (calling getAllGovernanceArtifacts() ) and then do
> the filtering. This could be the reason why you are getting the exception
> in second method.
>

 Shall we incorporate your description with 2 examples into API Java
 doc, in case if it's not already there ?

>>>
>> +1 Sagara. It should go here [1].
>>
>> [1]
>> https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API
>>
>>
>
It's ok to update user docs but my original point is we need to annotate
these details in to Java interface as Java doc comment, that's will help
developers a lot.

Thanks !

>
 Thanks !

>
> Thanks!
> Isuruwan
>
> On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna  > wrote:
>
>>
>> Hi All,
>>
>> I am working with GenericArtifactManager and just wanted to know the
>> difference between these two implementations:
>>
>>
>> 1. Passing an attribute map to findGenericArtifacts method
>> 2. Passing GenericArtifactFilter instance to findGenericArtifacts
>> method
>>
>> Because in my case, when one of the saved artifact is corrupted, 1
>> would return correct artifact objects of rest of the artifacts saved in
>> Greg where as 2 would throw an exception.
>>
>> --
>> Thanks and Regards,
>>
>> Punnadi Gunarathna
>> Senior Software Engineer,
>> WSO2, Inc.; http://wso2.com 
>> Blog: http://hi-my-world.blogspot.com/
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>>
>>
>>  
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuruwan Herath
> Technical Lead
>
> Contact: +94 776 273 296
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Punnadi Gunarathna
>>> Senior Software Engineer,
>>> WSO2, Inc.; http://wso2.com 
>>> Blog: http://hi-my-world.blogspot.com/
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>>
>>>
>>>  
>>>
>>
>>
>>
>> --
>> Isuruwan Herath
>> Technical Lead
>>
>> Contact: +94 776 273 296
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Documentation" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to documentation+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
>
> Thanks,
>
> Nirdesha Munasinghe,
> WSO2 Inc.
> Web:http://wso2.com
>
> Mobile: +94 776321920
>



-- 
Sagara Gunathunga

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


Re: [Dev] [DEV] Need clarification regarding "Allow Anonymous Access" option

2015-03-17 Thread Yvonne Wickramasinghe
Hi,

Think we should include these details into the corresponding Redmine
Feature https://redmine.wso2.com/issues/3539 (Ref:
https://redmine.wso2.com/projects/wso2-platform/wiki/WSO2_Platform__Product_Management_Process_Overview
).

Regards,

On Tue, Feb 17, 2015 at 4:30 PM, Lahiru Cooray  wrote:

> Hi,
>
> There are two main scenarios:
>
> *Allow anonymous access to whole app:*
> When an user check the "allow anonymous" option, he can access that
> particular app even without log in to the AppManager.. Any un-authenticated
> user can access the gateway endpoint URL of the app even without
> subscribing to the app.
>
> *Allow anonymous access to selected url patterns:*
> Under policy groups there's another section to select "allow anonymous"
>  option. This is basically to allow anonymous access only to the
> corresponding url pattern/ http verb
>
>
>
>
>
>
> On Tue, Feb 17, 2015 at 2:39 PM, Yasassri Ratnayake 
> wrote:
>
>> Hi AppM Team,
>>
>> I would like to get some clarification regarding the "Allow Anonymous
>> Access:" option which can be selected when creating a webapp. What is
>> the intended behavior of an Anonymous App?
>>
>> With Regards,
>> --
>> Yasassri Ratnayake
>> Software Engineer - QA
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>> *Mobile : +94715933168 <%2B94715933168>*
>> *Blog : http://yasassriratnayake.blogspot.com/
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lahiru Cooray*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> lean.enterprise.middleware
>
> Mobile: +94 715 654154
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Yvonne Wickramasinghe*
Senior Product Manager; WSO2, Inc.; http://wso2.com
email: yvo...@wso2.com; mobile (Sri Lanka): +94 71 516 3732
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when accessing a secure web service using a client service stub

2015-03-17 Thread Sabra Ossen
Hi KasunG,

I changed the dependency as follows, but it still gives me the same error.


org.apache.neethi
neethi
2.0.4


Thanks.


On Tue, Mar 17, 2015 at 12:26 PM, KasunG Gajasinghe  wrote:

>
> Carbon do not support neethi 3.x yet. You need to go with Neethi 2.x
>
> On Tue, Mar 17, 2015 at 12:24 PM, Sabra Ossen  wrote:
>
>> Hi,
>>
>> I am trying to access a secure web service using the method mentioned in
>> [1]. But I am getting the following error.
>>
>> Exception in thread "main" java.lang.NoSuchMethodError:
>> org.apache.neethi.PolicyEngine.getPolicy(Ljava/lang/Object;)Lorg/apache/neethi/Policy;
>> at
>> org.wso2.dashboard.client.DataServiceStub.getPolicy(DataServiceStub.java:771)
>> at
>> org.wso2.dashboard.client.DataServiceStub.populateAxisService(DataServiceStub.java:57)
>> at
>> org.wso2.dashboard.client.DataServiceStub.(DataServiceStub.java:202)
>> at
>> org.wso2.dashboard.client.DataServiceStub.(DataServiceStub.java:191)
>> at
>> org.wso2.dashboard.publish.data.DataPublisher.main(DataPublisher.java:31)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
>>
>> I have included the dependencies in the pom below.
>>
>> 
>> UTF-8
>> 1.6.1
>> 1.6.1
>> 
>>
>> 
>> 
>> wso2-nexus
>> WSO2 internal Repository
>> 
>> http://maven.wso2.org/nexus/content/groups/wso2-public/
>> 
>> true
>> daily
>> ignore
>> 
>> 
>>
>> 
>>
>> 
>>
>> 
>> org.apache.axis2
>> axis2
>> ${axis2.version}
>> 
>> 
>> org.apache.axis2
>> axis2-transport-local
>> ${axis2.version}
>> 
>> 
>> org.apache.axis2
>> axis2-transport-http
>> ${axis2.version}
>> 
>>
>> 
>> 
>> org.apache.rampart
>> rampart-core
>> ${rampart.version}
>> 
>>
>> 
>> 
>> org.apache.neethi
>> neethi
>> 3.0.1
>> 
>> 
>>
>> I have also included the code segment as well. I have extracted the
>> Policy from the wsdl exposed after the service is deployed and saved it in
>> "wso2MDPolicy.xml.'
>>
>> public class DataPublisher {
>>
>>public static void main(String[] args) throws Exception {
>>
>>   String epr = "https://10.100.4.10:9443/services/XXX";;
>>   System.setProperty("javax.net.ssl.trustStore", (new 
>> File("../src/main/resources/wso2carbon.jks")).getAbsolutePath());
>>   System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
>>
>>   ConfigurationContext ctx = ConfigurationContextFactory
>> .createConfigurationContextFromFileSystem(null, null);
>>   ServiceStub stub = new ServiceStub(ctx,epr);
>>   ServiceClient client = stub._getServiceClient();
>>   Options options = client.getOptions();
>>   client.engageModule("rampart");
>>   options.setUserName("admin");
>>   options.setPassword("admin");
>>
>>   options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, 
>> loadPolicy("../src/main/resources/wso2MDPolicy.xml"));
>>
>>   InsertRawLeadsPerWeek request = new InsertRawLeadsPerWeek();
>>
>>   request.setStart_date("2012-04-08");
>>   request.setEnd_date("2012-04-5");
>>   request.setTotal_users(1000);
>>   request.setEu_users(1000);
>>   request.setNa_users(1000);
>>   request.setRow_users(1000);
>>   request.setUnclassified_users(10001);
>>
>>   stub.insertRawLeadsPerWeek(request);
>>}
>>
>>private static Policy loadPolicy(String path) throws Exception {
>>   InputStream resource = new FileInputStream(path);
>>   StAXOMBuilder builder = new StAXOMBuilder(resource);
>>   return PolicyEngine.getPolicy(builder.getDocumentElement());
>>}
>>
>> }
>>
>>
>> [1]
>> https://docs.wso2.com/display/DSS322/Secure+Data+Service+Sample#SecureDataServiceSample-Aboutthesample
>>
>>
>> Any help on this issue is appreciated.
>>
>> Thanks.
>> --
>> Sabra Ossen
>> *Software Engineering Intern*
>> Mobile : +94 (0) 775 837 356
>> sa...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
Sabra Ossen
*Software Engineering Intern*
Mobile : +94 (0) 775 837 356
sa...@wso2.com
___

Re: [Dev] We are getting some class not found issues intermittently

2015-03-17 Thread Kishanthan Thangarajah
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" 
> wrote:
>
>> So I think this is not related to spring upgrade. The issue mentioned
>> in : https://wso2.org/jira/browse/CARBON-14864 is actually fixed
>> with the given fix. This issue seems not related to spring upgrade. You 
>> can
>> confirm this by downgrading the version or removing the spring bundle 
>> from
>> carbon runtime and check. We could still see the same startup/webapp
>> deployment error. This seems to a typical OSGi class loading issue.
>>
>> Need to have a another deep look and see.
>>
>> On Mon, Mar 16, 2015 at 3:06 PM, Prasad Tissera 
>> wrote:
>>
>>> Issue cannot be observed in IS 5.0.0 with patch0009.
>>>
>>> Regards,
>>> Prasad.
>>>
>>> On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Can you guys check this with IS 5.0.0 also (apply patch0009)? If
 spring upgrade is causing the issue, then it should occur when 
 patch0009 is
 applied on IS 5.0.0.

 On Mon, Mar 16, 2015 at 9:36 AM, Prasad Tissera 
 wrote:

> It can be observed in a fresh pack which can be downloaded from
> jenkins [1].  Following curl can be used to reproduce the issue.
>
> curl -v -X POST -H "Authorization: Basic
> NElzcWg1UkcwbEdmalFuY2k3TkNRNnBYTFJrYTo2dmdHTE1FNHdRczhraWttT1FmWWg0Z0hublVh"
> -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -k 
> -d
> "grant_type=password&username=admin&password=admin"
> https://localhost:9443/oauth2/token
>
> [1].
> https://wso2.org/jenkins/view/product-builds/job/product-is/org.wso2.is$wso2is/lastSuccessfulBuild/artifact/org.wso2.is/wso2is/5.1.0-SNAPSHOT/wso2is-5.1.0-SNAPSHOT.zip
>
> Regards,
> Prasad.
>
> On Mon, Mar 16, 2015 at 9:15 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Can we have IS pack with the above issue hosted somewhere, so
>> that we could take a look?
>>
>> On Sun, Mar 15, 2015 at 1:21 PM, Johann Nallathamby <
>> joh...@wso2.com> wrote:
>>
>>> Hi AS Team,
>>>
>>> Appreciate if we can get this resolved ASAP. This is turning out
>>> to be a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.
>>>
>>> Thanks.
>>>
>>> On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera <
>>> pras...

Re: [Dev] Adding missed dependency on carbon-identitiy-java8support branch

2015-03-17 Thread Pulasthi Mahawithana
Hi Shashika,

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

On Tue, Mar 17, 2015 at 3:35 PM, Shashika Karunatilaka 
wrote:

> Hi Johann,
>
> Please review and merge the following PR [1]
> Missed dependency : org.wso2.carbon.ndatasource.common
> 
>
> [1] https://github.com/wso2/carbon-identity/pull/139
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pulasthi Mahawithana*
Software Engineer
WSO2 Inc., http://wso2.com/
Mobile: +94-71-5179022
Blog: http://blog.pulasthi.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR for carbon-commons

2015-03-17 Thread Kalpa Welivitigoda
The PR has been updated as https://github.com/wso2/carbon-commons/pull/69

JIRA: https://wso2.org/jira/browse/WSAS-1911

On Fri, Mar 6, 2015 at 11:26 AM, Kalpa Welivitigoda  wrote:

> Hi,
>
> $subject, https://github.com/wso2/carbon-commons/pull/64
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
Best Regards,

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


[Dev] Adding missed dependency on carbon-identitiy-java8support branch

2015-03-17 Thread Shashika Karunatilaka
Hi Johann,

Please review and merge the following PR [1]
Missed dependency : org.wso2.carbon.ndatasource.common


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

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


Re: [Dev] [IS] OAuth Token endpoint throws an exception

2015-03-17 Thread Kasun Dananjaya Delgolla
Hi Waruna,

Thanks a lot. But it does not solve the issue. I haven't done any plugin
changes or patch additions. It happened just after building the CDM pack
and run it. We have a use case where a mobile client needs token generation
and when we call token url from the client (or even we run a curl from our
server itself) it gives the above exception.

Thanks

On Tue, Mar 17, 2015 at 3:19 PM, Waruna Perera  wrote:

> Hi Kasun,
>
> Pls see if following thread helps [1].
>
> [1][Dev] [IS]Can not access oauth2 authorize endpoint url
>
>
>
> On Tue, Mar 17, 2015 at 2:56 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi All,
>>
>> $subject happens when we try to generate access token using /token
>> endpoint. We are using version 4.3.3 and full error log is attached. In
>> brief, it's
>>
>>  java.lang.NoClassDefFoundError:
>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>
>> Thanks
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2015:PROJECT

2015-03-17 Thread Tharinda Ehelepola
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

On Tue, Mar 17, 2015 at 3:47 AM, Tharinda Ehelepola 
wrote:

> Hi,
>
> Yeah I meant the process of running a Spark job. There are transformation
> methods in jar files. What I tried is how to use those methods in java. I
> think it is help me to conversion of wrangler scripts.
>
> On Tue, Mar 17, 2015 at 3:47 AM, Tharinda Ehelepola  > wrote:
>
>> Hi,
>>
>> Yeah I meant the process of running a Spark job. There are transformation
>> methods in jar files. What I tried is how to use those methods in java. I
>> think it is help me to conversion of wrangler scripts.
>>
>> On Tue, Mar 17, 2015 at 3:45 AM, Nirmal Fernando  wrote:
>>
>>> Your reply is sent only to me Tharinda. Can you please replyAll?
>>>
>>> On Tue, Mar 17, 2015 at 9:04 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Hi,

 Yeah I meant the process of running a Spark job. There are
 transformation methods in jar files. What I tried is how to use those
 methods in java. I think it is help me to conversion of wrangler scripts.

 On Tue, Mar 17, 2015 at 2:15 AM, Nirmal Fernando 
 wrote:

> Hi Srinath, I think Tharinda meant to say that he is in the process of
> running a Spark job. Tharinda, isn't it the case?
>
> On Tue, Mar 17, 2015 at 7:39 AM, Srinath Perera 
> wrote:
>
>> Why do you need to build it? ( it can be built), but you can use the
>> jars.
>>
>> --Srinth
>>
>> On Mon, Mar 16, 2015 at 3:30 PM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I studied about apache spark these days. I 'm still stuck in
>>> building part. I went through different links and finally decided to 
>>> build
>>> it using intellij. I have found most of the libraries but still errors
>>> occur when running examples.
>>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/apache/commons/lang3/SystemUtils
>>> at org.apache.spark.util.Utils$.(Utils.scala:1476)
>>> at org.apache.spark.util.Utils$.(Utils.scala)
>>> at org.apache.spark.SparkContext.(SparkContext.scala:70)
>>> at
>>> org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
>>> at
>>> org.apache.spark.examples.JavaLogQuery.main(JavaLogQuery.java:105)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>> at
>>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.commons.lang3.SystemUtils
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> ... 10 more
>>> Exception in thread "delete Spark temp dirs"
>>> java.lang.NoClassDefFoundError: Could not initialize class
>>> org.apache.spark.util.Utils$
>>> at org.apache.spark.util.Utils$$anon$4.run(Utils.scala:175)
>>>
>>>
>>> Here I added some errors. *Apache Spark* is a fast and general
>>> engine for big data processing. Wrangler is to data cleaning and
>>> transformation. So what I got is some spark methods related to wrangler
>>> scripts. If I can get proper knowledge about spark java API I can use 
>>> that
>>> for conversion of wrangler scripts to java. And also it will help me to 
>>> get
>>> proper idea about the whole project. So can you please give me some tips
>>> for building apache spark.
>>>
>>> Thank you,
>>> Tharinda.
>>>
>>> On Fri, Mar 13, 2015 at 12:24 PM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Hi,

 I got the libraries. But still have a problem with below ones.

 import org.apache.spark.streaming.api.java.JavaDStream;
 import
 org.apache.spark.streaming.api.java.JavaReceiverInputDStream;

 import org.apache.spark.streaming.api.java.JavaStreamingContext;


 On Fri, Mar 13, 2015 at 5:05 AM, Supun Sethunga 
 wr

Re: [Dev] App-Manager 1.0 Release Testing Update

2015-03-17 Thread Yasassri Ratnayake
Hi Sumedha,

Sure, Its better to have a quick meeting on this.

With Regards,

On Tue, Mar 17, 2015 at 3:18 PM, Sumedha Rubasinghe 
wrote:

> Guys,
> Can we have a quick meeting to sort out these?
> It seems there is bit of ambiguity here.
>
> On Tue, Mar 17, 2015 at 3:16 PM, Dinusha Senanayaka 
> wrote:
>
>> HI Yasassri,
>>
>> Please see my comments in-line .
>>
>> On Tue, Mar 17, 2015 at 2:50 PM, Yasassri Ratnayake 
>> wrote:
>>
>>> Hi All,
>>>
>>> This is to update the current status of the App Manger release cycle.
>>>
>>> We had issues initially when testing due to following reasons
>>>
>>>- There was no decided permission model embedded to AM.
>>>
>>> This is finalized and we are not going to change the model ! There is a
>> mail thread for this even !
>>
>>>
>>>- UI got changed along the way
>>>
>>> There were some usability improvements done after reviewing with  UX
>> team.
>>
>>>
>>>- Features were not finalized.
>>>
>>> What you mean by features are not finalized ?
>>
>>
>>> We got the following critical fixes with the 06-03-2015 pack.
>>>
>>> => Finalized permission model
>>> => Fix for blockers under tenant scenarios.
>>>
>>> Got the following fixes with the 16-03-2015 pack.
>>>
>>> => Oracle Script fix
>>> => Fixed Mobile App scenarios for tenant
>>>
>>> *What has being done*
>>>
>>> 1. Setting-up cluster setup. (Deployment is Automated)
>>> 2. Jmeter scripts to mimic basic functionality of AM (Currently not
>>> working due to recent changes in AM)
>>> 3. Covered webapp creation/ Mobile app creation flow.
>>> 4. Smoke test with EMM integration.
>>> 5. Tested clustered caching scenarios.
>>> 6. Tested throttling.
>>> 7. Smoke tests on windows.
>>>
>>> *Current Status*
>>>
>>> ATM the latest pack is unstable so we are not testing the pack in the
>>> clustered setup, hence we are doing our tests in a standalone setup. And
>>> still the workflow process is not finalized.
>>>
>> AFAIK, there is a tenant specific issue relate to life-cycle loading.
>> But, even with that we can continue super tenant scenarios in a cluster
>> environment. Workflow process is not finalized ???
>>
>> Regards,
>> Dinusha.
>>
>>>
>>> *Issue Status*
>>>
>>> From 6th March, 68 issues reported and a total of 220 issues reported
>>> by the QA team up-to now and from that there are 102 open issues.
>>>
>>> *What needs to be covered*
>>>
>>> With  the new Changes we have to cover the following areas.
>>>
>>> 1. Test with Oracle
>>> 2. Run a long running test.
>>> 3. Run Integration scenarios with BAM / EMM / IS (The cluster setup
>>> already has a IS cluster).
>>> 4. Smoke tests on already tested features/areas after bug fixes and
>>> improvements.
>>>
>>> With Regards,
>>> --
>>> Yasassri Ratnayake
>>> Software Engineer - QA
>>> WSO2 Inc ; http://wso2.com
>>> lean.enterprise.middleware
>>> *Mobile : +94715933168 <%2B94715933168>*
>>> *Blog : http://yasassriratnayake.blogspot.com/
>>> *
>>>
>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Senior Software Engineer
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



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


Re: [Dev] [IS] OAuth Token endpoint throws an exception

2015-03-17 Thread Waruna Perera
Hi Kasun,

Pls see if following thread helps [1].

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



On Tue, Mar 17, 2015 at 2:56 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi All,
>
> $subject happens when we try to generate access token using /token
> endpoint. We are using version 4.3.3 and full error log is attached. In
> brief, it's
>
>  java.lang.NoClassDefFoundError:
> org/wso2/carbon/identity/oauth/cache/CacheKey
>
> Thanks
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] App-Manager 1.0 Release Testing Update

2015-03-17 Thread Sumedha Rubasinghe
Guys,
Can we have a quick meeting to sort out these?
It seems there is bit of ambiguity here.

On Tue, Mar 17, 2015 at 3:16 PM, Dinusha Senanayaka 
wrote:

> HI Yasassri,
>
> Please see my comments in-line .
>
> On Tue, Mar 17, 2015 at 2:50 PM, Yasassri Ratnayake 
> wrote:
>
>> Hi All,
>>
>> This is to update the current status of the App Manger release cycle.
>>
>> We had issues initially when testing due to following reasons
>>
>>- There was no decided permission model embedded to AM.
>>
>> This is finalized and we are not going to change the model ! There is a
> mail thread for this even !
>
>>
>>- UI got changed along the way
>>
>> There were some usability improvements done after reviewing with  UX
> team.
>
>>
>>- Features were not finalized.
>>
>> What you mean by features are not finalized ?
>
>
>> We got the following critical fixes with the 06-03-2015 pack.
>>
>> => Finalized permission model
>> => Fix for blockers under tenant scenarios.
>>
>> Got the following fixes with the 16-03-2015 pack.
>>
>> => Oracle Script fix
>> => Fixed Mobile App scenarios for tenant
>>
>> *What has being done*
>>
>> 1. Setting-up cluster setup. (Deployment is Automated)
>> 2. Jmeter scripts to mimic basic functionality of AM (Currently not
>> working due to recent changes in AM)
>> 3. Covered webapp creation/ Mobile app creation flow.
>> 4. Smoke test with EMM integration.
>> 5. Tested clustered caching scenarios.
>> 6. Tested throttling.
>> 7. Smoke tests on windows.
>>
>> *Current Status*
>>
>> ATM the latest pack is unstable so we are not testing the pack in the
>> clustered setup, hence we are doing our tests in a standalone setup. And
>> still the workflow process is not finalized.
>>
> AFAIK, there is a tenant specific issue relate to life-cycle loading. But,
> even with that we can continue super tenant scenarios in a cluster
> environment. Workflow process is not finalized ???
>
> Regards,
> Dinusha.
>
>>
>> *Issue Status*
>>
>> From 6th March, 68 issues reported and a total of 220 issues reported by
>> the QA team up-to now and from that there are 102 open issues.
>>
>> *What needs to be covered*
>>
>> With  the new Changes we have to cover the following areas.
>>
>> 1. Test with Oracle
>> 2. Run a long running test.
>> 3. Run Integration scenarios with BAM / EMM / IS (The cluster setup
>> already has a IS cluster).
>> 4. Smoke tests on already tested features/areas after bug fixes and
>> improvements.
>>
>> With Regards,
>> --
>> Yasassri Ratnayake
>> Software Engineer - QA
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>> *Mobile : +94715933168 <%2B94715933168>*
>> *Blog : http://yasassriratnayake.blogspot.com/
>> *
>>
>
>
>
> --
> Dinusha Dilrukshi
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] App-Manager 1.0 Release Testing Update

2015-03-17 Thread Dinusha Senanayaka
HI Yasassri,

Please see my comments in-line .

On Tue, Mar 17, 2015 at 2:50 PM, Yasassri Ratnayake 
wrote:

> Hi All,
>
> This is to update the current status of the App Manger release cycle.
>
> We had issues initially when testing due to following reasons
>
>- There was no decided permission model embedded to AM.
>
> This is finalized and we are not going to change the model ! There is a
mail thread for this even !

>
>- UI got changed along the way
>
> There were some usability improvements done after reviewing with  UX team.

>
>- Features were not finalized.
>
> What you mean by features are not finalized ?


> We got the following critical fixes with the 06-03-2015 pack.
>
> => Finalized permission model
> => Fix for blockers under tenant scenarios.
>
> Got the following fixes with the 16-03-2015 pack.
>
> => Oracle Script fix
> => Fixed Mobile App scenarios for tenant
>
> *What has being done*
>
> 1. Setting-up cluster setup. (Deployment is Automated)
> 2. Jmeter scripts to mimic basic functionality of AM (Currently not
> working due to recent changes in AM)
> 3. Covered webapp creation/ Mobile app creation flow.
> 4. Smoke test with EMM integration.
> 5. Tested clustered caching scenarios.
> 6. Tested throttling.
> 7. Smoke tests on windows.
>
> *Current Status*
>
> ATM the latest pack is unstable so we are not testing the pack in the
> clustered setup, hence we are doing our tests in a standalone setup. And
> still the workflow process is not finalized.
>
AFAIK, there is a tenant specific issue relate to life-cycle loading. But,
even with that we can continue super tenant scenarios in a cluster
environment. Workflow process is not finalized ???

Regards,
Dinusha.

>
> *Issue Status*
>
> From 6th March, 68 issues reported and a total of 220 issues reported by
> the QA team up-to now and from that there are 102 open issues.
>
> *What needs to be covered*
>
> With  the new Changes we have to cover the following areas.
>
> 1. Test with Oracle
> 2. Run a long running test.
> 3. Run Integration scenarios with BAM / EMM / IS (The cluster setup
> already has a IS cluster).
> 4. Smoke tests on already tested features/areas after bug fixes and
> improvements.
>
> With Regards,
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blog : http://yasassriratnayake.blogspot.com/
> *
>



-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: [Gsoc2015] Siddhi Process Monitor for WSO2 CEP

2015-03-17 Thread Sabra Ossen
Hi,

I am Sabra Ossen, an undergraduate of Department of Computer Science and
Engineering, University of Moratuwa. Currently I am an intern in WSO2.

I am interested in proposal [1] in the GSoC project proposals list. I did
my fast track training project with WSO2 CEP regarding UI support for
Siddhi Queries. Therefore I am already familiar with WSO2 CEP and Siddhi
Queries.

I participated in the hangout and checked the mails in dev regarding the Siddhi
Process monitor gsoc project.

I have a question regarding the implementation of the api.

   - Based on my understanding the api exposes the back end features, so
   would a back end admin service be needed to expose the api. If so would I
   have to use the CEP as the server to deploy the web service.

Any clarification on the api is appreciated.

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


Re: [Dev] App-Manager 1.0 Release Testing Update

2015-03-17 Thread Nirodha Pramod
Hi Yasassri,

The tentative scheduled released date is 25th March, can we cover the rest
of the scenarios (not tested) mentioned above by that time?

-Nirodha

On Tue, Mar 17, 2015 at 2:50 PM, Yasassri Ratnayake 
wrote:

> Hi All,
>
> This is to update the current status of the App Manger release cycle.
>
> We had issues initially when testing due to following reasons
>
>- There was no decided permission model embedded to AM.
>- UI got changed along the way
>- Features were not finalized.
>
> We got the following critical fixes with the 06-03-2015 pack.
>
> => Finalized permission model
> => Fix for blockers under tenant scenarios.
>
> Got the following fixes with the 16-03-2015 pack.
>
> => Oracle Script fix
> => Fixed Mobile App scenarios for tenant
>
> *What has being done*
>
> 1. Setting-up cluster setup. (Deployment is Automated)
> 2. Jmeter scripts to mimic basic functionality of AM (Currently not
> working due to recent changes in AM)
> 3. Covered webapp creation/ Mobile app creation flow.
> 4. Smoke test with EMM integration.
> 5. Tested clustered caching scenarios.
> 6. Tested throttling.
> 7. Smoke tests on windows.
>
> *Current Status*
>
> ATM the latest pack is unstable so we are not testing the pack in the
> clustered setup, hence we are doing our tests in a standalone setup. And
> still the workflow process is not finalized.
>
> *Issue Status*
>
> From 6th March, 68 issues reported and a total of 220 issues reported by
> the QA team up-to now and from that there are 102 open issues.
>
> *What needs to be covered*
>
> With  the new Changes we have to cover the following areas.
>
> 1. Test with Oracle
> 2. Run a long running test.
> 3. Run Integration scenarios with BAM / EMM / IS (The cluster setup
> already has a IS cluster).
> 4. Smoke tests on already tested features/areas after bug fixes and
> improvements.
>
> With Regards,
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blog : http://yasassriratnayake.blogspot.com/
> *
>



-- 

*Nirodha Gallage*
Senior Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Status Update - Nodejs Apptype

2015-03-17 Thread Dimuthu Leelarathne
Hi Hasitha,

On Tue, Mar 17, 2015 at 1:59 PM, Hasitha Weerasinghe 
wrote:

> Hi
>
> creating branches of a nodejs applications is completed now. this will
> create a new repository in S2gitblit for each application each version. Now
> it will spawn a new cartridge for per application per version as well . The
> git URL will construct as follows
>
> trunk :-
> https://ad...@git.appfactory.private.wso2.com:8444/r/Development/nodejs/20/nb5app-trunkhasithadotcom.git
>
> version :-
> https://ad...@git.appfactory.private.wso2.com:8444/r/Development/nodejs/20/nb5app-1-0-0hasithadotcom.git
>
> *This scenario will apply to all the single tenant cartridges
>

Great news! Send us a pull request!

thanks,
dimuthu


>
> On Thu, Feb 19, 2015 at 1:14 AM, Hasitha Weerasinghe 
> wrote:
>
>> Hi,
>>
>> As of now, I have completed upto Deploying Artifact in the cartridge and
>> also I added a puppet agent script to unzip the artifact and made the
>> Nodejs server run. while completing Deploying Artifact in the cartridge I
>> had an issue with puppet agent certificates creation due to mismatched
>> timezones. by changing the puppet master and puppet agent time zone to UTC
>> the certificate creation issue got solved.
>>
>> So the remaining tasks as of now is,
>>
>>- creation of the Launch Pattern URL
>>
>>
>> Thank you,
>> Hasitha Weerasinghe
>>
>> On Thu, Feb 5, 2015 at 10:10 AM, Hasitha Weerasinghe 
>> wrote:
>>
>>>
>>> Hi All,
>>>
>>> I have completed the following tasks in Nodejs apptype.
>>>
>>> * Create runtime.xml
>>> * Deployment to S2gitblit
>>> * Cartridge subscription.
>>>
>>> I have tested the above task by creating , building and deploying a
>>> Nodejs application. The cartridge was successfully subscribed and Nodejs
>>> cartridge instance was successfully launched in openstack. Now I'm facing
>>> some issues in deploying to cartridge and application launch pattern URL.
>>>
>>> So the remaining tasks as of now are,
>>>
>>> * Deploying artifact to cartridge.
>>> * Creating launch pattern URL.
>>>
>>> Thank you,
>>> Hasitha Weerasinghe
>>>
>>> On Mon, Dec 29, 2014 at 12:16 AM, Dimuthu Leelarathne >> > wrote:
>>>


 On Tue, Dec 23, 2014 at 11:56 AM, Hasitha Weerasinghe <
 hasit...@wso2.com> wrote:

> Hi All,
>
> I'm working on adding Node.js apptype to Appfactory. I have completed
> the following tasks
>
> * Creating Node.js cartridge in openstack
> * Adding Node.js modules to puppet master
> * Maven archetype for Node.js
> * Creating apptype xml
>
> Also I've tested the above tasks by deploying the apptype and creating
> it. Application creation and build was successful and the generated 
> project
> structure was correctly added to gitblit. Now mainly I have to work on the
> application subscription and deployment.
>
>
 Good work!


> So the remaining task as of now are,
>
> * Cartridge subscription
>

 This should automatically work.


> * Writing application processor type class
>

 We also need to test promotion.

 thanks,
 dimuthu



>
>
> *Hasitha Weerasinghe*
> *Software Engineer Intern - WSO2  *
> Mobile : +94 776 33 6626
> Email  :  hasit...@wso2.com
>
>
>
>
>


 --
 Dimuthu Leelarathne
 Architect & Product Lead of App Factory

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

 Lean . Enterprise . Middleware

>>>
>>>
>>>
>>> --
>>> *Hasitha Weerasinghe*
>>> *Software Engineer Intern - WSO2  *
>>> Mobile : +94 776 33 6626
>>> Email  :  hasit...@wso2.com
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *Hasitha Weerasinghe*
>> *Software Engineer Intern - WSO2  *
>> Mobile : +94 776 33 6626
>> Email  :  hasit...@wso2.com
>>
>>
>>
>>
>>
>
>
> --
> *Hasitha Weerasinghe*
> *Software Engineer Intern - WSO2  *
> Mobile : +94 776 33 6626
> Email  :  hasit...@wso2.com
>
>
>
>
>


-- 
Dimuthu Leelarathne
Architect & Product Lead of App Factory

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

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


Re: [Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager

2015-03-17 Thread Nirdesha Munasinghe
Copying Tania

On Tue, Mar 17, 2015 at 2:17 PM, Isuruwan Herath  wrote:

>
>
> On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna 
> wrote:
>
>> Hi Isuruwan and Sagara,
>>
>> Thank you for the explanation. I can share the sample and descriptions.
>>
>> On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga 
>> wrote:
>>
>>>
>>>
>>> On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath 
>>> wrote:
>>>
 Hi Punnadi,

 Option 1 will only retrieve the artifacts according to the criteria of
 the given attribute key-value pair. Option 2 can do custom filtering as
 well and its implementation underneath will query all artifacts of the
 given type first (calling getAllGovernanceArtifacts() ) and then do
 the filtering. This could be the reason why you are getting the exception
 in second method.

>>>
>>> Shall we incorporate your description with 2 examples into API Java doc,
>>> in case if it's not already there ?
>>>
>>
> +1 Sagara. It should go here [1].
>
> [1]
> https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API
>
>
>>
>>> Thanks !
>>>

 Thanks!
 Isuruwan

 On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna 
 wrote:

>
> Hi All,
>
> I am working with GenericArtifactManager and just wanted to know the
> difference between these two implementations:
>
>
> 1. Passing an attribute map to findGenericArtifacts method
> 2. Passing GenericArtifactFilter instance to findGenericArtifacts
> method
>
> Because in my case, when one of the saved artifact is corrupted, 1
> would return correct artifact objects of rest of the artifacts saved in
> Greg where as 2 would throw an exception.
>
> --
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com 
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
>
>  
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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


>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Punnadi Gunarathna
>> Senior Software Engineer,
>> WSO2, Inc.; http://wso2.com 
>> Blog: http://hi-my-world.blogspot.com/
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>>
>>
>>  
>>
>
>
>
> --
> Isuruwan Herath
> Technical Lead
>
> Contact: +94 776 273 296
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 

Thanks,

Nirdesha Munasinghe,
WSO2 Inc.
Web:http://wso2.com

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


[Dev] [IS] OAuth Token endpoint throws an exception

2015-03-17 Thread Kasun Dananjaya Delgolla
Hi All,

$subject happens when we try to generate access token using /token
endpoint. We are using version 4.3.3 and full error log is attached. In
brief, it's

 java.lang.NoClassDefFoundError:
org/wso2/carbon/identity/oauth/cache/CacheKey

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
*
Apache Tomcat/7.0.52 - Error report 
HTTP Status 500 - Servlet.init() for servlet OAuth2Endpoints 
threw exceptiontype Exception 
reportmessage Servlet.init() for servlet OAuth2Endpoints threw 
exceptiondescription The server encountered an internal 
error that prevented it from fulfilling this 
request.exception javax.servlet.ServletException: 
Servlet.init() for servlet OAuth2Endpoints threw exception

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

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

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

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

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

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

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

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

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

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

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

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

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

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

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
root cause 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'tokEP': Cannot resolve reference to bean 'authzEndpointBean' 
while setting bean property 'serviceBeans' with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'authzEndpointBean' defined in URL 
[jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean failed; 
nested exception is java.lang.NoClassDefFoundError: 
org/wso2/carbon/identity/oauth/cache/CacheKey

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

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

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

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

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

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

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

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

org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanF

[Dev] App-Manager 1.0 Release Testing Update

2015-03-17 Thread Yasassri Ratnayake
Hi All,

This is to update the current status of the App Manger release cycle.

We had issues initially when testing due to following reasons

   - There was no decided permission model embedded to AM.
   - UI got changed along the way
   - Features were not finalized.

We got the following critical fixes with the 06-03-2015 pack.

=> Finalized permission model
=> Fix for blockers under tenant scenarios.

Got the following fixes with the 16-03-2015 pack.

=> Oracle Script fix
=> Fixed Mobile App scenarios for tenant

*What has being done*

1. Setting-up cluster setup. (Deployment is Automated)
2. Jmeter scripts to mimic basic functionality of AM (Currently not working
due to recent changes in AM)
3. Covered webapp creation/ Mobile app creation flow.
4. Smoke test with EMM integration.
5. Tested clustered caching scenarios.
6. Tested throttling.
7. Smoke tests on windows.

*Current Status*

ATM the latest pack is unstable so we are not testing the pack in the
clustered setup, hence we are doing our tests in a standalone setup. And
still the workflow process is not finalized.

*Issue Status*

>From 6th March, 68 issues reported and a total of 220 issues reported by
the QA team up-to now and from that there are 102 open issues.

*What needs to be covered*

With  the new Changes we have to cover the following areas.

1. Test with Oracle
2. Run a long running test.
3. Run Integration scenarios with BAM / EMM / IS (The cluster setup already
has a IS cluster).
4. Smoke tests on already tested features/areas after bug fixes and
improvements.

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


Re: [Dev] [ESB] Where the final message ID set for a request

2015-03-17 Thread Isuru Ranawaka
Hi chathura,

Yes you need to clone the MC because we need to save content it is ok. but
instead of keep external store which can be caused OOM exceptions can't we
attached clone MC as original MC property and when response received we can
get that property and get the cloned MC for next send if response http code
belongs to retry code. So then we dont need to externally map request to
response because response has all the synapse properties which were in
request.


thanks

On Tue, Mar 17, 2015 at 2:37 PM, Chathura Priyankara 
wrote:

> Hi Isuru,
>
> We need to clone and store the message to resend it based on the response
> status code. If the response http status code is success then the stored
> message context will removed.
> This cloning and storing process should be happened in the Failover
> endpoint only if failover http status codes are set for a particular
> endpoint in the configuration. If we store the cloned
> message at the Failover endpoint level we cannot map the request and
> response based on the MID since MID is changed after sending.
> Is there anyway that I could do the same thing without cloning message
> context ?
>
> Thanks!
>
> On Tue, Mar 17, 2015 at 2:22 PM, Isuru Ranawaka  wrote:
>
>> Hi Chathura,
>>
>> When message is gone through Axis2FlexibleMEPClient it partially cloned
>> underlying axis2MessageContext and set all the endpoint specific data to
>> that cloned MC and register a callback for send it to BE .It may be a
>> reason for change the MID. Why we need a to store message context
>> externally?
>>
>> I think this may add up huge memory overhead if message store keeps
>> growing (for high concurrent scenarios and responses are too late to arrive)
>>
>> thanks
>>
>> On Tue, Mar 17, 2015 at 1:21 PM, Chathura Priyankara 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm working on my fast track training project [1]. I have to implement
>>> http status code support for FailoverEndpoint. For the re-sending purposes
>>> the original request message context needs to be  cloned and store using
>>> the message ID as the reference. The message cloning should be done in the
>>> FailoverEndpoint based on the synapse configuration.
>>>
>>> IMO the original request id changes to a new one after it sent from the
>>> FailoverEndpoint at the Axis2FlexibleMEPClient level.
>>>
>>> Is this correct or I'm missing something here ?
>>>
>>> [1] https://redmine.wso2.com/issues/3725
>>>
>>> Thanks.
>>> Best Regards.
>>>
>>> --
>>> Chathura Priyankara
>>> Software Engineer | WSO2 Inc.
>>> Mobile : +94718795340
>>> Blog : www.codeoncloud.blogspot.com
>>>
>>
>>
>>
>> --
>> Best Regards
>> Isuru Ranawaka
>> M: +94714629880
>> Blog : http://isurur.blogspot.com/
>>
>
>
>
> --
> Chathura Priyankara
> Software Engineer | WSO2 Inc.
> Mobile : +94718795340
> Blog : www.codeoncloud.blogspot.com
>



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


Re: [Dev] Observed "ERROR {com.hazelcast.spi.impl.PartitionIteratingOperation}" on Manager Node while restating AS worker Nodes

2015-03-17 Thread Asanka Vithanage
Hi,

It seams we are observing the same issue
https://github.com/hazelcast/hazelcast/issues/1019

On Tue, Mar 17, 2015 at 10:59 AM, Asanka Vithanage  wrote:

> Hi All,
>
> Observed following error on AS 520 manager Node when restarting the AS
> worker Nodes. Issue seams Intermittent.
> Have we observed this issue before ? Any solutions/explanations?
>
> *Cluster Details:*
> niginx fronted 1 Manager/ 2 worker node AS 520 (with Service
> Pack1-hazelcast_3.0.1.wso2v1.jar)  cluster, each node runs on separate
> machines.
> Local registry mounted to H2
> Config and Governance registry mounted on a Mysql Database
>
> Manager Node: 192.168.48.90  Wrk Node 1: 192.168.48.91   Wrk Node 2:
> 192.168.48.92
>
>
> *Steps followed:*
> 1. Cluster was running nearly 2 weeks continuously
> 2. AS cluster used to host back-end services required for ESB
> 3. AS Services invoked thorough ESB continously as a long running/load test
> 4. Due to a OOM issue on worker Node2 , restarted the cluster
>
> *Issue:*
>
> TID: [0] [AS] [2015-03-17 02:06:34,207]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme} -
> Member left [a3ee426a-153e-4ebc-95d5-95292370ec23]: /192.168.48.92:4000
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme}
> TID: [0] [AS] [2015-03-17 04:49:47,567]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme} -
> Member joined [a5d7cd86-fc94-409b-9720-e68210e6906c]: /192.168.48.92:4000
> {org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme}
> TID: [0] [AS] [2015-03-17 04:50:18,641] ERROR
> {com.hazelcast.spi.impl.PartitionIteratingOperation} -
> [192.168.48.90]:4000 [wso2.as.domain] [unknown]
> java.lang.NullPointerException
> {com.hazelcast.spi.impl.PartitionIteratingOperation}
> com.hazelcast.nio.serialization.HazelcastSerializationException:
> java.lang.NullPointerException
> at
> com.hazelcast.nio.serialization.SerializationServiceImpl.handleException(SerializationServiceImpl.java:298)
> at
> com.hazelcast.nio.serialization.SerializationServiceImpl.writeObject(SerializationServiceImpl.java:254)
> at
> com.hazelcast.nio.serialization.ByteArrayObjectDataOutput.writeObject(ByteArrayObjectDataOutput.java:262)
> at
> com.hazelcast.spi.impl.PartitionIteratingOperation$PartitionResponse.writeData(PartitionIteratingOperation.java:130)
> at
> com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:129)
> at
> com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:36)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.write(StreamSerializerAdapter.java:36)
> at
> com.hazelcast.nio.serialization.SerializationServiceImpl.writeObject(SerializationServiceImpl.java:252)
> at
> com.hazelcast.nio.serialization.ByteArrayObjectDataOutput.writeObject(ByteArrayObjectDataOutput.java:262)
> at
> com.hazelcast.spi.impl.NormalResponse.writeData(NormalResponse.java:79)
> at
> com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:129)
> at
> com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:36)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.write(StreamSerializerAdapter.java:48)
> at
> com.hazelcast.nio.serialization.SerializationServiceImpl.toData(SerializationServiceImpl.java:176)
> at
> com.hazelcast.nio.serialization.SerializationServiceImpl.toData(SerializationServiceImpl.java:157)
> at
> com.hazelcast.spi.impl.NodeEngineImpl.toData(NodeEngineImpl.java:151)
> at
> com.hazelcast.spi.impl.BasicOperationService.send(BasicOperationService.java:639)
> at
> com.hazelcast.spi.impl.ResponseHandlerFactory$RemoteInvocationResponseHandler.sendResponse(ResponseHandlerFactory.java:120)
> at
> com.hazelcast.spi.impl.BasicOperationService.processOperation(BasicOperationService.java:385)
> at
> com.hazelcast.spi.impl.BasicOperationService.processPacket(BasicOperationService.java:309)
> at
> com.hazelcast.spi.impl.BasicOperationService.access$400(BasicOperationService.java:102)
> at
> com.hazelcast.spi.impl.BasicOperationService$BasicOperationProcessorImpl.process(BasicOperationService.java:756)
> at
> com.hazelcast.spi.impl.BasicOperationScheduler$ProcessTask.run(BasicOperationScheduler.java:186)
> 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)
> at
> com.hazelcast.util.executor.PoolExecutorThreadFactory$ManagedThread.run(PoolExecutorThreadFactory.java:59)
> Caused by: java.lang.NullPointerException
> at com.hazelcast.map.MapEntrySet.writeData(MapEntrySet.java:60)
> at
> com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:129)
> at
> com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:36)
> at
> com.hazelcast.nio.serializat

Re: [Dev] [ESB] Where the final message ID set for a request

2015-03-17 Thread Chathura Priyankara
Hi Isuru,

We need to clone and store the message to resend it based on the response
status code. If the response http status code is success then the stored
message context will removed.
This cloning and storing process should be happened in the Failover
endpoint only if failover http status codes are set for a particular
endpoint in the configuration. If we store the cloned
message at the Failover endpoint level we cannot map the request and
response based on the MID since MID is changed after sending.
Is there anyway that I could do the same thing without cloning message
context ?

Thanks!

On Tue, Mar 17, 2015 at 2:22 PM, Isuru Ranawaka  wrote:

> Hi Chathura,
>
> When message is gone through Axis2FlexibleMEPClient it partially cloned
> underlying axis2MessageContext and set all the endpoint specific data to
> that cloned MC and register a callback for send it to BE .It may be a
> reason for change the MID. Why we need a to store message context
> externally?
>
> I think this may add up huge memory overhead if message store keeps
> growing (for high concurrent scenarios and responses are too late to arrive)
>
> thanks
>
> On Tue, Mar 17, 2015 at 1:21 PM, Chathura Priyankara 
> wrote:
>
>> Hi,
>>
>> I'm working on my fast track training project [1]. I have to implement
>> http status code support for FailoverEndpoint. For the re-sending purposes
>> the original request message context needs to be  cloned and store using
>> the message ID as the reference. The message cloning should be done in the
>> FailoverEndpoint based on the synapse configuration.
>>
>> IMO the original request id changes to a new one after it sent from the
>> FailoverEndpoint at the Axis2FlexibleMEPClient level.
>>
>> Is this correct or I'm missing something here ?
>>
>> [1] https://redmine.wso2.com/issues/3725
>>
>> Thanks.
>> Best Regards.
>>
>> --
>> Chathura Priyankara
>> Software Engineer | WSO2 Inc.
>> Mobile : +94718795340
>> Blog : www.codeoncloud.blogspot.com
>>
>
>
>
> --
> Best Regards
> Isuru Ranawaka
> M: +94714629880
> Blog : http://isurur.blogspot.com/
>



-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Tharik Kanaka
Congratulations Hemika !!

On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya 
wrote:

> Congratulations 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
>>
>>
>
>
> --
> Lasitha Wattaladeniya
> Software Engineer
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +94719397528
> Blog : techreadme.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Tharik Kanaka* | Associate Software Engineer

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

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Governance registry starting error

2015-03-17 Thread Dimithri Abeygunawardane
Hi,

I re-edited the registry.xml file which was causing the problem, and when I
tried to start G-reg, it worked. Must have done something wrong when I'm
editing it before.

Thanks for the help.

On Tue, Mar 17, 2015 at 11:49 AM, Sajith Kariyawasam 
wrote:

> Hi Dimithri,
>
> This could be due to a configuration issue. Could you please share the
> registry.xml files of both the nodes?
>
> Thanks,
> Sajith
>
> On Tue, Mar 17, 2015 at 11:37 AM, Dimithri Abeygunawardane <
> dimith...@wso2.com> wrote:
>
>> Hi Udara,
>>
>> Yes, I have put the MYSQL jar in lib, but haven't changed the Driver.
>> Thanks for the quick response.
>>
>> However, now I'm getting the following error (in a different node of the
>> same cluster).
>> Any ideas why this is coming?
>>
>>  ERROR
>> {org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor} -
>>  Could not read remote instance configuration. Caused by: null
>> java.lang.NullPointerException
>> at
>> org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor.readRemoteInstances(RegistryConfigurationProcessor.java:649)
>> at
>> org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor.populateRegistryConfig(RegistryConfigurationProcessor.java:366)
>> at
>> org.wso2.carbon.registry.core.config.RegistryContext.(RegistryContext.java:461)
>> at
>> org.wso2.carbon.registry.core.config.RegistryContext.(RegistryContext.java:442)
>> at
>> org.wso2.carbon.registry.core.config.RegistryContext.getBaseInstance(RegistryContext.java:321)
>> at
>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:627)
>> at
>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
>> at
>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>> at
>> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:71)
>> at
>> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
>> at
>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>> at
>> org.eclipse.osgi

Re: [Dev] [ESB] Where the final message ID set for a request

2015-03-17 Thread Isuru Ranawaka
Hi Chathura,

When message is gone through Axis2FlexibleMEPClient it partially cloned
underlying axis2MessageContext and set all the endpoint specific data to
that cloned MC and register a callback for send it to BE .It may be a
reason for change the MID. Why we need a to store message context
externally?

I think this may add up huge memory overhead if message store keeps growing
(for high concurrent scenarios and responses are too late to arrive)

thanks

On Tue, Mar 17, 2015 at 1:21 PM, Chathura Priyankara 
wrote:

> Hi,
>
> I'm working on my fast track training project [1]. I have to implement
> http status code support for FailoverEndpoint. For the re-sending purposes
> the original request message context needs to be  cloned and store using
> the message ID as the reference. The message cloning should be done in the
> FailoverEndpoint based on the synapse configuration.
>
> IMO the original request id changes to a new one after it sent from the
> FailoverEndpoint at the Axis2FlexibleMEPClient level.
>
> Is this correct or I'm missing something here ?
>
> [1] https://redmine.wso2.com/issues/3725
>
> Thanks.
> Best Regards.
>
> --
> Chathura Priyankara
> Software Engineer | WSO2 Inc.
> Mobile : +94718795340
> Blog : www.codeoncloud.blogspot.com
>



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


Re: [Dev] IS sever start up issue in TAF 4.3.1

2015-03-17 Thread Thanuja Jayasinghe
Hi Krishantha,

It should be 9444. I was trying a workaround, please ignore that.

Thanks,
Thanuja.

On Tue, Mar 17, 2015 at 2:12 PM, Krishantha Samaraweera  wrote:

> Hi Thanuja,
>
> In your second instance https port is set to 9443 and http port 9764. Is
> this correct ?
>
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> 9764
> 9443
> 
> 
> 
>  
>
> Thanks,
> Krishantha.
>
> On Tue, Mar 17, 2015 at 2:05 PM, Thanuja Jayasinghe 
> wrote:
>
>> Hi Krishantha,
>>
>> Please find the attached 'automation.xml'. I'm getting issue from the
>> second node.
>>
>> Thanks,
>> Thanuja.
>>
>> On Tue, Mar 17, 2015 at 1:14 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Thanuja,
>>>
>>> Do you have default instance listed in automation.xml ? Can you share
>>> automation.xml with all product configurations.
>>>
>>> Are you getting this error when start the first node or third node ?
>>>
>>> Thank,
>>> Krishantha.
>>>
>>> On Tue, Mar 17, 2015 at 1:03 PM, Thanuja Jayasinghe 
>>> wrote:
>>>
 Hi All,

 Thanks for the replies.  Will try to find a workaround.

 Thanks,
 Thanuja.

 On Tue, Mar 17, 2015 at 10:51 AM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Hi Thanuja,
>
> The similar issue is fixed in 4.3.2 SNAPSHOT -
> https://wso2.org/jira/browse/TA-924
>
> We might need to figure out a workaround for this.
>
> Thanks,
> Krishantha.
>
>
>
> On Tue, Mar 17, 2015 at 9:18 AM, Saneth Dharmakeerthi <
> sane...@wso2.com> wrote:
>
>> Hi Thanuja,
>>
>> As Akalanka mentioned, you get error for  *9765 *because you are
>> using  "startupParameterMap.put("-DportOffset", "1")", might be you
>> have a another server started manually  or from a previous test case is
>> using this port. Put a debug point  at  
>> "startupParameterMap.put("-DportOffset",
>> "1");"(before start the second server) and try to find the consumer of 
>> port
>> 9765.
>>
>> Also note that it is not recommend to use SNAPSHOT test framework
>> version.
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Tue, Mar 17, 2015 at 8:45 AM, Akalanka Pagoda Arachchi <
>> darsha...@wso2.com> wrote:
>>
>>> Hi Thanuja,
>>>
>>> While getting a new AutomationContext you are passing a parameter
>>> for portOffset of 1. I believe this is why it is looking for 9764 + 1.
>>>
>>> Thanks,
>>> Akalanka.
>>>
>>> On Mon, Mar 16, 2015 at 11:57 PM, Thanuja Jayasinghe <
>>> than...@wso2.com> wrote:
>>>
 Hi,

 We are in the process of moving existing test cases to TAF 4.3.1
 and experienced following issue when we try to start another IS server.

 automation.xml configuration -

 >>> nonBlockingTransportEnabled="false">
 
 localhost
 
 
 *9764*
 9444
 
 
 
 

 Code -

 Map startupParameterMap = new
 HashMap();
 startupParameterMap.put("-DportOffset", "1");
 CarbonTestServerManager server1 = new
 CarbonTestServerManager(new AutomationContext("IDENTITY",  
 "identity002",
 TestUserMode.SUPER_TENANT_ADMIN), System.getProperty("carbon.zip"),
 startupParameterMap);

 Error -

 testInit(org.wso2.identity.integration.test.provisioning.ProvisioningTestCase)
  Time elapsed: 330.967 sec  <<< FAILURE!
 java.lang.RuntimeException: Port *9765* is not open
 at
 org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:151)
 at
 org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136)
 at
 org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:100)
 at
 org.wso2.identity.integration.common.utils.CarbonTestServerManager.startServer(CarbonTestServerManager.java:29)
 at
 org.wso2.carbon.automation.extensions.servers.carbonserver.MultipleServersManager.startServers(MultipleServersManager.java:46)
 at
 org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.startOtherCarbonServers(ProvisioningTestCase.java:438)
 at

Re: [Dev] We are getting some class not found issues intermittently

2015-03-17 Thread KasunG Gajasinghe
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  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" 
 wrote:

> So I think this is not related to spring upgrade. The issue mentioned
> in : https://wso2.org/jira/browse/CARBON-14864 is actually fixed with
> the given fix. This issue seems not related to spring upgrade. You can
> confirm this by downgrading the version or removing the spring bundle from
> carbon runtime and check. We could still see the same startup/webapp
> deployment error. This seems to a typical OSGi class loading issue.
>
> Need to have a another deep look and see.
>
> On Mon, Mar 16, 2015 at 3:06 PM, Prasad Tissera 
> wrote:
>
>> Issue cannot be observed in IS 5.0.0 with patch0009.
>>
>> Regards,
>> Prasad.
>>
>> On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Can you guys check this with IS 5.0.0 also (apply patch0009)? If
>>> spring upgrade is causing the issue, then it should occur when 
>>> patch0009 is
>>> applied on IS 5.0.0.
>>>
>>> On Mon, Mar 16, 2015 at 9:36 AM, Prasad Tissera 
>>> wrote:
>>>
 It can be observed in a fresh pack which can be downloaded from
 jenkins [1].  Following curl can be used to reproduce the issue.

 curl -v -X POST -H "Authorization: Basic
 NElzcWg1UkcwbEdmalFuY2k3TkNRNnBYTFJrYTo2dmdHTE1FNHdRczhraWttT1FmWWg0Z0hublVh"
 -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -k 
 -d
 "grant_type=password&username=admin&password=admin"
 https://localhost:9443/oauth2/token

 [1].
 https://wso2.org/jenkins/view/product-builds/job/product-is/org.wso2.is$wso2is/lastSuccessfulBuild/artifact/org.wso2.is/wso2is/5.1.0-SNAPSHOT/wso2is-5.1.0-SNAPSHOT.zip

 Regards,
 Prasad.

 On Mon, Mar 16, 2015 at 9:15 AM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Can we have IS pack with the above issue hosted somewhere, so that
> we could take a look?
>
> On Sun, Mar 15, 2015 at 1:21 PM, Johann Nallathamby <
> joh...@wso2.com> wrote:
>
>> Hi AS Team,
>>
>> Appreciate if we can get this resolved ASAP. This is turning out
>> to be a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.
>>
>> Thanks.
>>
>> On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera > > wrote:
>>
>>> Hi Kasun,
>>>
>>> This issues still seems to be there
>>> in spring.framework_3.2.9.wso2v1 even though the suggested fix has 
>>> been
>>> applied in [1]. Class not found exception occurred intermittently 
>>> in IS
>>> 5.1.0 pack when calling OAuth endpoints. The issue has been 
>>> reported in [2]
>>> and has marked as resolved. How should we proceed in this? Thanks.
>>>
>>> root cause
>>> java.lang.ClassNotFoundException:
>>> org.wso2.carbon.identity.oauth.cache.CacheKey
>>>
>>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>>
>>> org.apache.catalina.loader.WebappClassLoader.loadClass

Re: [Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager

2015-03-17 Thread Isuruwan Herath
On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna 
wrote:

> Hi Isuruwan and Sagara,
>
> Thank you for the explanation. I can share the sample and descriptions.
>
> On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath 
>> wrote:
>>
>>> Hi Punnadi,
>>>
>>> Option 1 will only retrieve the artifacts according to the criteria of
>>> the given attribute key-value pair. Option 2 can do custom filtering as
>>> well and its implementation underneath will query all artifacts of the
>>> given type first (calling getAllGovernanceArtifacts() ) and then do the
>>> filtering. This could be the reason why you are getting the exception in
>>> second method.
>>>
>>
>> Shall we incorporate your description with 2 examples into API Java doc,
>> in case if it's not already there ?
>>
>
+1 Sagara. It should go here [1].

[1]
https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API


>
>> Thanks !
>>
>>>
>>> Thanks!
>>> Isuruwan
>>>
>>> On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna 
>>> wrote:
>>>

 Hi All,

 I am working with GenericArtifactManager and just wanted to know the
 difference between these two implementations:


 1. Passing an attribute map to findGenericArtifacts method
 2. Passing GenericArtifactFilter instance to findGenericArtifacts method

 Because in my case, when one of the saved artifact is corrupted, 1
 would return correct artifact objects of rest of the artifacts saved in
 Greg where as 2 would throw an exception.

 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com 
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  

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


>>>
>>>
>>> --
>>> Isuruwan Herath
>>> Technical Lead
>>>
>>> Contact: +94 776 273 296
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com 
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
>
>  
>



-- 
Isuruwan Herath
Technical Lead

Contact: +94 776 273 296
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IS sever start up issue in TAF 4.3.1

2015-03-17 Thread Krishantha Samaraweera
Hi Thanuja,

In your second instance https port is set to 9443 and http port 9764. Is
this correct ?



localhost


9764
9443



 

Thanks,
Krishantha.

On Tue, Mar 17, 2015 at 2:05 PM, Thanuja Jayasinghe 
wrote:

> Hi Krishantha,
>
> Please find the attached 'automation.xml'. I'm getting issue from the
> second node.
>
> Thanks,
> Thanuja.
>
> On Tue, Mar 17, 2015 at 1:14 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Thanuja,
>>
>> Do you have default instance listed in automation.xml ? Can you share
>> automation.xml with all product configurations.
>>
>> Are you getting this error when start the first node or third node ?
>>
>> Thank,
>> Krishantha.
>>
>> On Tue, Mar 17, 2015 at 1:03 PM, Thanuja Jayasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> Thanks for the replies.  Will try to find a workaround.
>>>
>>> Thanks,
>>> Thanuja.
>>>
>>> On Tue, Mar 17, 2015 at 10:51 AM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi Thanuja,

 The similar issue is fixed in 4.3.2 SNAPSHOT -
 https://wso2.org/jira/browse/TA-924

 We might need to figure out a workaround for this.

 Thanks,
 Krishantha.



 On Tue, Mar 17, 2015 at 9:18 AM, Saneth Dharmakeerthi >>> > wrote:

> Hi Thanuja,
>
> As Akalanka mentioned, you get error for  *9765 *because you are
> using  "startupParameterMap.put("-DportOffset", "1")", might be you
> have a another server started manually  or from a previous test case is
> using this port. Put a debug point  at  
> "startupParameterMap.put("-DportOffset",
> "1");"(before start the second server) and try to find the consumer of 
> port
> 9765.
>
> Also note that it is not recommend to use SNAPSHOT test framework
> version.
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Tue, Mar 17, 2015 at 8:45 AM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> Hi Thanuja,
>>
>> While getting a new AutomationContext you are passing a parameter for
>> portOffset of 1. I believe this is why it is looking for 9764 + 1.
>>
>> Thanks,
>> Akalanka.
>>
>> On Mon, Mar 16, 2015 at 11:57 PM, Thanuja Jayasinghe <
>> than...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> We are in the process of moving existing test cases to TAF 4.3.1 and
>>> experienced following issue when we try to start another IS server.
>>>
>>> automation.xml configuration -
>>>
>>> >> nonBlockingTransportEnabled="false">
>>> 
>>> localhost
>>> 
>>> 
>>> *9764*
>>> 9444
>>> 
>>> 
>>> 
>>> 
>>>
>>> Code -
>>>
>>> Map startupParameterMap = new
>>> HashMap();
>>> startupParameterMap.put("-DportOffset", "1");
>>> CarbonTestServerManager server1 = new
>>> CarbonTestServerManager(new AutomationContext("IDENTITY",  
>>> "identity002",
>>> TestUserMode.SUPER_TENANT_ADMIN), System.getProperty("carbon.zip"),
>>> startupParameterMap);
>>>
>>> Error -
>>>
>>> testInit(org.wso2.identity.integration.test.provisioning.ProvisioningTestCase)
>>>  Time elapsed: 330.967 sec  <<< FAILURE!
>>> java.lang.RuntimeException: Port *9765* is not open
>>> at
>>> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:151)
>>> at
>>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136)
>>> at
>>> org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:100)
>>> at
>>> org.wso2.identity.integration.common.utils.CarbonTestServerManager.startServer(CarbonTestServerManager.java:29)
>>> at
>>> org.wso2.carbon.automation.extensions.servers.carbonserver.MultipleServersManager.startServers(MultipleServersManager.java:46)
>>> at
>>> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.startOtherCarbonServers(ProvisioningTestCase.java:438)
>>> at
>>> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.testInit(ProvisioningTestCase.java:91)
>>>
>>>
>>> Issue is it refers to port 9765 even it should be referring to port
>>> 9764.
>>>
>>> So I changed TAF version to 4.3.2-SNAPSHOT and this issue get
>>> resolved. But I can see following error log with TAF 4.3.2-SNAPSHOT. 
>>> This
>>> h

Re: [Dev] We are getting some class not found issues intermittently

2015-03-17 Thread Kishanthan Thangarajah
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" 
>>> wrote:
>>>
 So I think this is not related to spring upgrade. The issue mentioned
 in : https://wso2.org/jira/browse/CARBON-14864 is actually fixed with
 the given fix. This issue seems not related to spring upgrade. You can
 confirm this by downgrading the version or removing the spring bundle from
 carbon runtime and check. We could still see the same startup/webapp
 deployment error. This seems to a typical OSGi class loading issue.

 Need to have a another deep look and see.

 On Mon, Mar 16, 2015 at 3:06 PM, Prasad Tissera 
 wrote:

> Issue cannot be observed in IS 5.0.0 with patch0009.
>
> Regards,
> Prasad.
>
> On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Can you guys check this with IS 5.0.0 also (apply patch0009)? If
>> spring upgrade is causing the issue, then it should occur when patch0009 
>> is
>> applied on IS 5.0.0.
>>
>> On Mon, Mar 16, 2015 at 9:36 AM, Prasad Tissera 
>> wrote:
>>
>>> It can be observed in a fresh pack which can be downloaded from
>>> jenkins [1].  Following curl can be used to reproduce the issue.
>>>
>>> curl -v -X POST -H "Authorization: Basic
>>> NElzcWg1UkcwbEdmalFuY2k3TkNRNnBYTFJrYTo2dmdHTE1FNHdRczhraWttT1FmWWg0Z0hublVh"
>>> -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -k -d
>>> "grant_type=password&username=admin&password=admin"
>>> https://localhost:9443/oauth2/token
>>>
>>> [1].
>>> https://wso2.org/jenkins/view/product-builds/job/product-is/org.wso2.is$wso2is/lastSuccessfulBuild/artifact/org.wso2.is/wso2is/5.1.0-SNAPSHOT/wso2is-5.1.0-SNAPSHOT.zip
>>>
>>> Regards,
>>> Prasad.
>>>
>>> On Mon, Mar 16, 2015 at 9:15 AM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Can we have IS pack with the above issue hosted somewhere, so that
 we could take a look?

 On Sun, Mar 15, 2015 at 1:21 PM, Johann Nallathamby <
 joh...@wso2.com> wrote:

> Hi AS Team,
>
> Appreciate if we can get this resolved ASAP. This is turning out
> to be a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.
>
> Thanks.
>
> On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera 
> wrote:
>
>> Hi Kasun,
>>
>> This issues still seems to be there
>> in spring.framework_3.2.9.wso2v1 even though the suggested fix has 
>> been
>> applied in [1]. Class not found exception occurred intermittently in 
>> IS
>> 5.1.0 pack when calling OAuth endpoints. The issue has been reported 
>> in [2]
>> and has marked as resolved. How should we proceed in this? Thanks.
>>
>> root cause
>> java.lang.ClassNotFoundException:
>> org.wso2.carbon.identity.oauth.cache.CacheKey
>>
>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
>> java.lang.Class.getDeclaredConstructors0(Native Method)
>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
>> java.lang.Class.getConstructor0(Class.java:2708)
>> java.lang.Class.getDeclaredConstructor(Class.java:1987)
>

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Lasitha Wattaladeniya
Congratulations 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
>
>


-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

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


Re: [Dev] IS sever start up issue in TAF 4.3.1

2015-03-17 Thread Thanuja Jayasinghe
Hi Krishantha,

Please find the attached 'automation.xml'. I'm getting issue from the
second node.

Thanks,
Thanuja.

On Tue, Mar 17, 2015 at 1:14 PM, Krishantha Samaraweera  wrote:

> Hi Thanuja,
>
> Do you have default instance listed in automation.xml ? Can you share
> automation.xml with all product configurations.
>
> Are you getting this error when start the first node or third node ?
>
> Thank,
> Krishantha.
>
> On Tue, Mar 17, 2015 at 1:03 PM, Thanuja Jayasinghe 
> wrote:
>
>> Hi All,
>>
>> Thanks for the replies.  Will try to find a workaround.
>>
>> Thanks,
>> Thanuja.
>>
>> On Tue, Mar 17, 2015 at 10:51 AM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Thanuja,
>>>
>>> The similar issue is fixed in 4.3.2 SNAPSHOT -
>>> https://wso2.org/jira/browse/TA-924
>>>
>>> We might need to figure out a workaround for this.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>>
>>> On Tue, Mar 17, 2015 at 9:18 AM, Saneth Dharmakeerthi 
>>> wrote:
>>>
 Hi Thanuja,

 As Akalanka mentioned, you get error for  *9765 *because you are using
  "startupParameterMap.put("-DportOffset", "1")", might be you have a
 another server started manually  or from a previous test case is using this
 port. Put a debug point  at  "startupParameterMap.put("-DportOffset",
 "1");"(before start the second server) and try to find the consumer of port
 9765.

 Also note that it is not recommend to use SNAPSHOT test framework
 version.

 Thanks and Best Regards,

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

 On Tue, Mar 17, 2015 at 8:45 AM, Akalanka Pagoda Arachchi <
 darsha...@wso2.com> wrote:

> Hi Thanuja,
>
> While getting a new AutomationContext you are passing a parameter for
> portOffset of 1. I believe this is why it is looking for 9764 + 1.
>
> Thanks,
> Akalanka.
>
> On Mon, Mar 16, 2015 at 11:57 PM, Thanuja Jayasinghe  > wrote:
>
>> Hi,
>>
>> We are in the process of moving existing test cases to TAF 4.3.1 and
>> experienced following issue when we try to start another IS server.
>>
>> automation.xml configuration -
>>
>> > nonBlockingTransportEnabled="false">
>> 
>> localhost
>> 
>> 
>> *9764*
>> 9444
>> 
>> 
>> 
>> 
>>
>> Code -
>>
>> Map startupParameterMap = new HashMap> String>();
>> startupParameterMap.put("-DportOffset", "1");
>> CarbonTestServerManager server1 = new
>> CarbonTestServerManager(new AutomationContext("IDENTITY",  "identity002",
>> TestUserMode.SUPER_TENANT_ADMIN), System.getProperty("carbon.zip"),
>> startupParameterMap);
>>
>> Error -
>>
>> testInit(org.wso2.identity.integration.test.provisioning.ProvisioningTestCase)
>>  Time elapsed: 330.967 sec  <<< FAILURE!
>> java.lang.RuntimeException: Port *9765* is not open
>> at
>> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:151)
>> at
>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136)
>> at
>> org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:100)
>> at
>> org.wso2.identity.integration.common.utils.CarbonTestServerManager.startServer(CarbonTestServerManager.java:29)
>> at
>> org.wso2.carbon.automation.extensions.servers.carbonserver.MultipleServersManager.startServers(MultipleServersManager.java:46)
>> at
>> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.startOtherCarbonServers(ProvisioningTestCase.java:438)
>> at
>> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.testInit(ProvisioningTestCase.java:91)
>>
>>
>> Issue is it refers to port 9765 even it should be referring to port
>> 9764.
>>
>> So I changed TAF version to 4.3.2-SNAPSHOT and this issue get
>> resolved. But I can see following error log with TAF 4.3.2-SNAPSHOT. This
>> happens because we are trying to access the server before it get started
>> properly.
>>
>> INFO
>>  
>> [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
>> - Waiting for user login...
>> INFO
>>  
>> [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
>> - https://localhost:9444/services
>> INFO  [org.apache.axis2.transport.http.HTTPSender] - Unable to
>> sendViaPost to url[
>> https://localhost:9444/services/AuthenticationAdmin]
>> org.apache.axis2.AxisFault: Transport err

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Megala Uthayakumar
Congrats [?]

On Tue, Mar 17, 2015 at 1:56 PM, Damith Wickramasinghe 
wrote:

> Congratz Hemika !!
>
>
> On Tue, Mar 17, 2015 at 1:52 PM, Asitha Nanayakkara 
> wrote:
>
>> Congratulations Hemika!!
>>
>> On Tue, Mar 17, 2015 at 1:49 PM, Vijitha Ekanayake 
>> wrote:
>>
>>> Congrats Hemika ...!!!
>>>
>>> On Tue, Mar 17, 2015 at 1:43 PM, Rasika Perera  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
>
>


 --
 With Regards,

 *Rasika Perera*
 Software Engineer
 M: +94 71 680 9060 E: rasi...@wso2.com
 LinkedIn: http://lk.linkedin.com/in/rasika90

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware

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


>>>
>>>
>>> --
>>> Vijitha Ekanayake
>>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>>> lean.enterprise.middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Asitha Nanayakkara*
>> Software Engineer
>> WSO2, Inc. http://wso2.com/
>> Mob: + 94 77 85 30 682
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Megala Uthayakumar
*Software Engineering Intern *| *WSO2 Lanka*
Mobile : +94 779 967 122
Tel  : +94 112 733 667
E-mail :  meg...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Launch pattern URL for single tenant Cartridge applications

2015-03-17 Thread Hasitha Weerasinghe
Hi All,

How we going to create application launch URL for the single tenant
cartridges?

I'm working on Nodejs application launch pattern URL. The single tenant
cartridges has per application per version instances. how are we going to
get the IP of the instance after its get spawned.

Thank you.
Hasitha

-- 
*Hasitha Weerasinghe*
*Software Engineer Intern - WSO2  *
Mobile : +94 776 33 6626
Email  :  hasit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Status Update - Nodejs Apptype

2015-03-17 Thread Hasitha Weerasinghe
Hi

creating branches of a nodejs applications is completed now. this will
create a new repository in S2gitblit for each application each version. Now
it will spawn a new cartridge for per application per version as well . The
git URL will construct as follows

trunk :-
https://ad...@git.appfactory.private.wso2.com:8444/r/Development/nodejs/20/nb5app-trunkhasithadotcom.git

version :-
https://ad...@git.appfactory.private.wso2.com:8444/r/Development/nodejs/20/nb5app-1-0-0hasithadotcom.git

*This scenario will apply to all the single tenant cartridges

On Thu, Feb 19, 2015 at 1:14 AM, Hasitha Weerasinghe 
wrote:

> Hi,
>
> As of now, I have completed upto Deploying Artifact in the cartridge and
> also I added a puppet agent script to unzip the artifact and made the
> Nodejs server run. while completing Deploying Artifact in the cartridge I
> had an issue with puppet agent certificates creation due to mismatched
> timezones. by changing the puppet master and puppet agent time zone to UTC
> the certificate creation issue got solved.
>
> So the remaining tasks as of now is,
>
>- creation of the Launch Pattern URL
>
>
> Thank you,
> Hasitha Weerasinghe
>
> On Thu, Feb 5, 2015 at 10:10 AM, Hasitha Weerasinghe 
> wrote:
>
>>
>> Hi All,
>>
>> I have completed the following tasks in Nodejs apptype.
>>
>> * Create runtime.xml
>> * Deployment to S2gitblit
>> * Cartridge subscription.
>>
>> I have tested the above task by creating , building and deploying a
>> Nodejs application. The cartridge was successfully subscribed and Nodejs
>> cartridge instance was successfully launched in openstack. Now I'm facing
>> some issues in deploying to cartridge and application launch pattern URL.
>>
>> So the remaining tasks as of now are,
>>
>> * Deploying artifact to cartridge.
>> * Creating launch pattern URL.
>>
>> Thank you,
>> Hasitha Weerasinghe
>>
>> On Mon, Dec 29, 2014 at 12:16 AM, Dimuthu Leelarathne 
>> wrote:
>>
>>>
>>>
>>> On Tue, Dec 23, 2014 at 11:56 AM, Hasitha Weerasinghe >> > wrote:
>>>
 Hi All,

 I'm working on adding Node.js apptype to Appfactory. I have completed
 the following tasks

 * Creating Node.js cartridge in openstack
 * Adding Node.js modules to puppet master
 * Maven archetype for Node.js
 * Creating apptype xml

 Also I've tested the above tasks by deploying the apptype and creating
 it. Application creation and build was successful and the generated project
 structure was correctly added to gitblit. Now mainly I have to work on the
 application subscription and deployment.


>>> Good work!
>>>
>>>
 So the remaining task as of now are,

 * Cartridge subscription

>>>
>>> This should automatically work.
>>>
>>>
 * Writing application processor type class

>>>
>>> We also need to test promotion.
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>>


 *Hasitha Weerasinghe*
 *Software Engineer Intern - WSO2  *
 Mobile : +94 776 33 6626
 Email  :  hasit...@wso2.com





>>>
>>>
>>> --
>>> Dimuthu Leelarathne
>>> Architect & Product Lead of App Factory
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: dimut...@wso2.com
>>> Mobile : 0773661935
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> *Hasitha Weerasinghe*
>> *Software Engineer Intern - WSO2  *
>> Mobile : +94 776 33 6626
>> Email  :  hasit...@wso2.com
>>
>>
>>
>>
>>
>
>
> --
> *Hasitha Weerasinghe*
> *Software Engineer Intern - WSO2  *
> Mobile : +94 776 33 6626
> Email  :  hasit...@wso2.com
>
>
>
>
>


-- 
*Hasitha Weerasinghe*
*Software Engineer Intern - WSO2  *
Mobile : +94 776 33 6626
Email  :  hasit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Damith Wickramasinghe
Congratz Hemika !!


On Tue, Mar 17, 2015 at 1:52 PM, Asitha Nanayakkara  wrote:

> Congratulations Hemika!!
>
> On Tue, Mar 17, 2015 at 1:49 PM, Vijitha Ekanayake 
> wrote:
>
>> Congrats Hemika ...!!!
>>
>> On Tue, Mar 17, 2015 at 1:43 PM, Rasika Perera  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


>>>
>>>
>>> --
>>> With Regards,
>>>
>>> *Rasika Perera*
>>> Software Engineer
>>> M: +94 71 680 9060 E: rasi...@wso2.com
>>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>>
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Asitha Nanayakkara*
> Software Engineer
> WSO2, Inc. http://wso2.com/
> Mob: + 94 77 85 30 682
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

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


  1   2   >