[Dev] API Manager Features not working with DSS

2014-11-19 Thread Madusanka Premaratne
Hi All,
I installed API Manager core, publisher and store in DSS. When starting the
server, it deploys both apipublisher and apistore apps and I can access the
apipublisher login page. But when I try to login it gives me a null pointer
exception in /productapipublisher/modules/user/login.jag#18
The line which gives me an error in the jaggery file is result = provider.
login (username, password);
​It seems like I missed the provider and I am not aware of how to fix this
issue. Can someone suggest me a way to resolve this?

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

[image: Facebook] https://www.facebook.com/rmmpremaratne [image: Twitter]
https://twitter.com/rmmpremaratne [image: Google Plus]
https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub [image:
Linkedin] http://lk.linkedin.com/in/madusanka/ [image: Instagram]
http://instagram.com/madusankapremaratne [image: Skype]
http://@rmmpremaratne
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Create java client for deploying execution plans in CEP

2014-11-19 Thread Buddhi Senarathna
I'm creating a Java client program to deploy some of execution plans within
a given set of execution plans.

(i) what would be the best approach for this?

(ii) how can i give an input to execution plan(e.g. getting the time window
size as a parameter)

-- 

*Buddhi Chathuranga Senarathna*


*InternWSO2, Inc. *
*Mob: +94 755 446 685*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Application Management OSGI Service

2014-11-19 Thread Harsha Kumara
Hi Johann,

The pull request[1], is not still merged to the wso2-dev repo. Can we
merged it to repo soon?

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

Thanks,
Harsha

On Tue, Sep 9, 2014 at 8:40 PM, Prabath Abeysekera praba...@wso2.com
wrote:

 Johann, IS team,

 We're currently working on GIT so this is definitely going to be a blocker
 for us (to release SS 1.5.0 M2) if we cannot this committed sometime soon.
 Therefore, would really appreciate if you guys can assign someone to
 stabilise identity related components on GIT ASAP.

 Cheers,
 Prabath

 On Tue, Sep 9, 2014 at 5:13 PM, Prasad Tissera pras...@wso2.com wrote:

 Committed with r206976

 On Tue, Sep 9, 2014 at 12:15 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi Johann,

 Please find the relevant diff from following Jirra ticket. I have
 attached the diff with it.

 https://wso2.org/jira/browse/IDENTITY-2705

 Cheers,
 Dhanuka

 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915


 On Mon, Sep 8, 2014 at 10:07 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi Dhanuka,

 We are still not committing stuff to Git. Can you please send the diff
 to latest svn?

 Thanks,
 Johann.


 On Mon, Sep 8, 2014 at 9:44 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi Johann,

 Please find the pull request for $Subject, Can you please review the
 code and merge to wso2-dev.

 https://github.com/wso2-dev/carbon-identity/pull/10

 Cheers,
 Dhanuka
 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*



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




 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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




 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

 ___
 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] Application Management OSGI Service

2014-11-19 Thread Johann Nallathamby
Hi Harsha,

We had some further requirements for this and Godwin has implemented this
again. This will be merged to Git within one or two weeks.

On Wed, Nov 19, 2014 at 2:31 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Johann,

 The pull request[1], is not still merged to the wso2-dev repo. Can we
 merged it to repo soon?

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

 Thanks,
 Harsha

 On Tue, Sep 9, 2014 at 8:40 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Johann, IS team,

 We're currently working on GIT so this is definitely going to be a
 blocker for us (to release SS 1.5.0 M2) if we cannot this committed
 sometime soon. Therefore, would really appreciate if you guys can assign
 someone to stabilise identity related components on GIT ASAP.

 Cheers,
 Prabath

 On Tue, Sep 9, 2014 at 5:13 PM, Prasad Tissera pras...@wso2.com wrote:

 Committed with r206976

 On Tue, Sep 9, 2014 at 12:15 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi Johann,

 Please find the relevant diff from following Jirra ticket. I have
 attached the diff with it.

 https://wso2.org/jira/browse/IDENTITY-2705

 Cheers,
 Dhanuka

 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915


 On Mon, Sep 8, 2014 at 10:07 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi Dhanuka,

 We are still not committing stuff to Git. Can you please send the diff
 to latest svn?

 Thanks,
 Johann.


 On Mon, Sep 8, 2014 at 9:44 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi Johann,

 Please find the pull request for $Subject, Can you please review the
 code and merge to wso2-dev.

 https://github.com/wso2-dev/carbon-identity/pull/10

 Cheers,
 Dhanuka
 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*



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




 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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




 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

 ___
 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




-- 
Thanks  Regards,

*Johann Dilantha Nallathamby*
Associate Technical Lead  Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Application Management OSGI Service

2014-11-19 Thread Harsha Kumara
Hi Johann,

Noted and I will take the pull request and continue the implementation and
later switch to new implementation.

Thanks,
Harsha

On Wed, Nov 19, 2014 at 2:37 PM, Johann Nallathamby joh...@wso2.com wrote:

 Hi Harsha,

 We had some further requirements for this and Godwin has implemented this
 again. This will be merged to Git within one or two weeks.

 On Wed, Nov 19, 2014 at 2:31 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Johann,

 The pull request[1], is not still merged to the wso2-dev repo. Can we
 merged it to repo soon?

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

 Thanks,
 Harsha

 On Tue, Sep 9, 2014 at 8:40 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Johann, IS team,

 We're currently working on GIT so this is definitely going to be a
 blocker for us (to release SS 1.5.0 M2) if we cannot this committed
 sometime soon. Therefore, would really appreciate if you guys can assign
 someone to stabilise identity related components on GIT ASAP.

 Cheers,
 Prabath

 On Tue, Sep 9, 2014 at 5:13 PM, Prasad Tissera pras...@wso2.com wrote:

 Committed with r206976

 On Tue, Sep 9, 2014 at 12:15 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi Johann,

 Please find the relevant diff from following Jirra ticket. I have
 attached the diff with it.

 https://wso2.org/jira/browse/IDENTITY-2705

 Cheers,
 Dhanuka

 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915


 On Mon, Sep 8, 2014 at 10:07 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi Dhanuka,

 We are still not committing stuff to Git. Can you please send the
 diff to latest svn?

 Thanks,
 Johann.


 On Mon, Sep 8, 2014 at 9:44 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi Johann,

 Please find the pull request for $Subject, Can you please review the
 code and merge to wso2-dev.

 https://github.com/wso2-dev/carbon-identity/pull/10

 Cheers,
 Dhanuka
 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*



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




 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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




 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

 ___
 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




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*




-- 
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] [ES] Error while adding assets as tenant user

2014-11-19 Thread Ayesha Dissanayaka
Hi,

According to the debug result issue might be at
org.wso2.carbon.governance.api.util.*GovernanceUtils*
Here

 MultitenantUtils.getTenantDomain(((UserRegistry) registry).getUserName())

gives 'carbon.super'. ((UserRegistry) registry).getUserName() does not
contain the user.domain name. I think we need to change the domain
retrieving code here.
May be we can use domain name by teanant-id.

UserRealmService.getTenantManager().getDomain(tenantId)


Can we please get this fixed asap.

Thansk!
-Ayesha


On Wed, Nov 19, 2014 at 12:21 PM, Pulasthi Supun pulas...@wso2.com wrote:

 Hi Ayesha,

 From what i can understand it seems that when the call is happening to 
 getUUIDCache
 in GovernanceUtils.getArtifactPath() method the tenant id is set as 1 but
 the tenant domain is the domain of the super tenant not the domain of the
 actual tenant. Can you debug the GovernanceUtils.getArtifactPath()  and
 see what tenant information is set in the PrivilegedCarbonContext when 
 getUUIDCache
 is called.

 Regards,
 Pulasthi

 On Mon, Nov 17, 2014 at 1:44 PM, Ayesha Dissanayaka aye...@wso2.com
 wrote:

 Hi all,

 I am getting following error while trying to add assets to ES publisher
 as a tenant user in the newly /built ES pack today - 17/11/2014 morning.
 This was working properly in earlier packs. Any reasons for this?/

 org.mozilla.javascript.WrappedException: Wrapped
 java.lang.SecurityException: Illegal access attempt to cache ] owned by
 tenant {[carbon.super],[-1234]} by tenant {[carbon.super],[1]} (eval
 code#1(eval)#31)
 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.jaggeryjs.rhino.carbon.scripts.registry.c0._c_anonymous_16(carbon/scripts/registry/artifacts.js:236)
 at
 org.jaggeryjs.rhino.carbon.scripts.registry.c0.call(carbon/scripts/registry/artifacts.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.rxt.scripts.asset.c0._c_anonymous_10(rxt/scripts/asset/asset.js:184)
 at
 org.jaggeryjs.rhino.rxt.scripts.asset.c0.call(rxt/scripts/asset/asset.js)
 at
 org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at
 org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at
 org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at
 org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
 at script(eval code#1(eval):31)
 at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
 at
 org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.c10._c_anonymous_8(/publisher/modules/asset_api.js:204)
 at
 org.jaggeryjs.rhino.publisher.modules.c10.call(/publisher/modules/asset_api.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0._c_anonymous_1(/publisher/extensions/assets/default/apis/assets.jag:71)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0.call(/publisher/extensions/assets/default/apis/assets.jag)
 at
 org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at
 org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at
 org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_20(/publisher/modules/publisher.js:493)
 at
 org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.jaggeryjs.rhino.store.scripts.c0._c_anonymous_17(store/scripts/server.js:291)
 at
 org.jaggeryjs.rhino.store.scripts.c0.call(store/scripts/server.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_19(/publisher/modules/publisher.js:488)
 at
 org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0._c_script_0(/publisher/extensions/assets/default/apis/assets.jag:39)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0.call(/publisher/extensions/assets/default/apis/assets.jag)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0.exec(/publisher/extensions/assets/default/apis/assets.jag)
 at
 

Re: [Dev] Some classes seem to be missing in Hazelcast orbit

2014-11-19 Thread Niranjan Karunanandham
Hi all,

I have updated the orbit to 3.2.6.wso2v3 for hazelcast and sent the pull
request for orbit [1].

[1] - https://github.com/wso2/orbit/pull/36

Regards,
Nira

On Wed, Nov 19, 2014 at 12:50 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Azeez,


 On Wed, Nov 19, 2014 at 12:47 PM, Afkham Azeez az...@wso2.com wrote:

 ok, lets go with 3.2.6. Orbit has to be rebundled though. Need to wrap
 hazelcast-all jar.


 Niranjan will provide the re-bundled hazelcast orbit.


 On Wed, Nov 19, 2014 at 12:42 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 h... We've done lots of testing with 3.2.6. I wonder whether we have
 repeat all the testing if we migrate to latest version. I believe its too
 late. :(

 Thanks.,
 Sameera

 On Wed, Nov 19, 2014 at 12:35 PM, Afkham Azeez az...@wso2.com wrote:



 On Wed, Nov 19, 2014 at 12:32 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Azeez,

 No Azeez, we only pack hazelcast jar. The mentioned classes come from
 hazelcast-all jar. We never packaged the hazelcast-all jar in our 
 hazelcast
 orbit bundle, not even in Carbon 4.2.0. This is the first time we are
 testing this functionality, correct?

 We will look into releasing a new orbit bundle with the hazelcast-all
 jar. What would the version be? 3.2.6 or 3.3.3?


 Yes, but since we are creating a new orbit, might as well pack 3.3.3.
 APIs seem to be compatible.


 Thanks,
 KasunG

 On Wed, Nov 19, 2014 at 12:24 PM, Afkham Azeez az...@wso2.com wrote:

 Kasun,
 Aren't you wrapping hazelcast-all jar? If you did that, all classes
 would be there.

 On Wed, Nov 19, 2014 at 12:21 PM, Afkham Azeez az...@wso2.com
 wrote:

 I enabled AWS mode, and the following stacktrace appeared.


 java.lang.ClassNotFoundException:
 com.hazelcast.cluster.TcpIpJoinerOverAWS

 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)

 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Class.java:171)

 at com.hazelcast.instance.Node.createJoiner(Node.java:613)

 at
 com.hazelcast.instance.DefaultNodeContext.createJoiner(DefaultNodeContext.java:33)

 at com.hazelcast.instance.Node.init(Node.java:244)

 at
 com.hazelcast.instance.HazelcastInstanceImpl.init(HazelcastInstanceImpl.java:95)

 at
 com.hazelcast.instance.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:147)

 at
 com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:130)

 at
 com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:107

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

 *Lean . Enterprise . Middleware*




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

 *Lean . Enterprise . Middleware*




 --

 *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






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

 *Lean . Enterprise . Middleware*




 --
 Sameera Jayasoma,
 Software Architect,

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

 Lean . Enterprise . Middleware




 --
 *Afkham Azeez*
 Director of Architecture; 

Re: [Dev] Some classes seem to be missing in Hazelcast orbit

2014-11-19 Thread Niranjan Karunanandham
Please note: I have updated the hazelcast orbit version in kernel and sent
the pull request[1].

[1] - https://github.com/wso2/carbon4-kernel/pull/98

Regards,
Nira

On Wed, Nov 19, 2014 at 3:00 PM, Niranjan Karunanandham niran...@wso2.com
wrote:

 Hi all,

 I have updated the orbit to 3.2.6.wso2v3 for hazelcast and sent the pull
 request for orbit [1].

 [1] - https://github.com/wso2/orbit/pull/36

 Regards,
 Nira

 On Wed, Nov 19, 2014 at 12:50 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Azeez,


 On Wed, Nov 19, 2014 at 12:47 PM, Afkham Azeez az...@wso2.com wrote:

 ok, lets go with 3.2.6. Orbit has to be rebundled though. Need to wrap
 hazelcast-all jar.


 Niranjan will provide the re-bundled hazelcast orbit.


 On Wed, Nov 19, 2014 at 12:42 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 h... We've done lots of testing with 3.2.6. I wonder whether we
 have repeat all the testing if we migrate to latest version. I believe its
 too late. :(

 Thanks.,
 Sameera

 On Wed, Nov 19, 2014 at 12:35 PM, Afkham Azeez az...@wso2.com wrote:



 On Wed, Nov 19, 2014 at 12:32 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Azeez,

 No Azeez, we only pack hazelcast jar. The mentioned classes come from
 hazelcast-all jar. We never packaged the hazelcast-all jar in our 
 hazelcast
 orbit bundle, not even in Carbon 4.2.0. This is the first time we are
 testing this functionality, correct?

 We will look into releasing a new orbit bundle with the hazelcast-all
 jar. What would the version be? 3.2.6 or 3.3.3?


 Yes, but since we are creating a new orbit, might as well pack 3.3.3.
 APIs seem to be compatible.


 Thanks,
 KasunG

 On Wed, Nov 19, 2014 at 12:24 PM, Afkham Azeez az...@wso2.com
 wrote:

 Kasun,
 Aren't you wrapping hazelcast-all jar? If you did that, all classes
 would be there.

 On Wed, Nov 19, 2014 at 12:21 PM, Afkham Azeez az...@wso2.com
 wrote:

 I enabled AWS mode, and the following stacktrace appeared.


 java.lang.ClassNotFoundException:
 com.hazelcast.cluster.TcpIpJoinerOverAWS

 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)

 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Class.java:171)

 at com.hazelcast.instance.Node.createJoiner(Node.java:613)

 at
 com.hazelcast.instance.DefaultNodeContext.createJoiner(DefaultNodeContext.java:33)

 at com.hazelcast.instance.Node.init(Node.java:244)

 at
 com.hazelcast.instance.HazelcastInstanceImpl.init(HazelcastInstanceImpl.java:95)

 at
 com.hazelcast.instance.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:147)

 at
 com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:130)

 at
 com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:107

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

 *Lean . Enterprise . Middleware*




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

 *Lean . Enterprise . Middleware*




 --

 *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






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

 *Lean . Enterprise . Middleware*




 --
 Sameera Jayasoma,
 Software Architect,

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

Re: [Dev] WSO2 Committers += Sajini De Silva

2014-11-19 Thread Abimaran Kugathasan
Congrats!

On Wed, Nov 19, 2014 at 9:29 AM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Congrats Sajini !!

 On Wed, Nov 19, 2014 at 9:08 AM, Sewwandi Perera sewwa...@wso2.com
 wrote:

 Congratulations Sajini...!!! :)

 On Wed, Nov 19, 2014 at 8:50 AM, Inosh Perera ino...@wso2.com wrote:

 Congratulations Sajini!!!

 On Wed, Nov 19, 2014 at 7:58 AM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Sajini !

 On Wed, Nov 19, 2014 at 6:12 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congratz Sajini ... :)

 On Mon, Nov 17, 2014 at 11:56 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sajini,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!

 thanks and best 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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




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




 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686

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




 --
 Sewwandi Perera
 Software Engineer

 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 mobile: +94-713765098

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




 --
 Prasanna Dangalla
 Software Engineer, WSO2, Inc.; http://wso2.com/
 lean.enterprise.middleware

 cell: +94 777 55 80 30 | +94 718 11 27 51
 twitter: @prasa77

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




-- 
Thanks
Abimaran Kugathasan

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

http://stackoverflow.com/users/515034
http://lk.linkedin.com/in/abimaran  http://www.lkabimaran.blogspot.com/
https://github.com/abimaran  https://twitter.com/abimaran
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [API-M] Why do we give the option of selecting transports in the gateway?

2014-11-19 Thread Samisa Abeysinghe
We have the option of using NHTTP or PTT

When should I use which one? What are the pros and cons?

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

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


Re: [Dev] Does it make sense to have transport senders in axis2.xml?

2014-11-19 Thread Nirmal Fernando
Hi Azeez,

Do you mean to remove it only when the Servlet transport being used?

On Wed, Nov 19, 2014 at 6:56 AM, Afkham Azeez az...@wso2.com wrote:

 We send out using the client ConfigurationContext. So does it make sense
 to keep the senders in the main axis2.xml?

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

 *Lean . Enterprise . Middleware*

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




-- 

Thanks  regards,
Nirmal

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


Re: [Dev] [API-M] Why do we give the option of selecting transports in the gateway?

2014-11-19 Thread Nuwan Dias
I guess you are referring to the commented out nhttp transports in the
axis2.xml.

Actually there is no usecase as such for these transports. Nhttp was left
behind in commented out mode since PT was quite new in terms of maturity.
And in the early days of PT, when people came across issues related to the
transport they could easily switch back to Nhttp since the configurations
were already in place.

But now nobody switches back to nhttp since PT has matured enough at least
in the context of API Manager. So maybe we should take nhttp off completely.

Thanks,
NuwanD.

On Wed, Nov 19, 2014 at 5:02 PM, Samisa Abeysinghe sam...@wso2.com wrote:

 We have the option of using NHTTP or PTT

 When should I use which one? What are the pros and cons?

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com




-- 
Nuwan Dias

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


Re: [Dev] Obtain the tenant ID of the currently logged in user from Jaggery

2014-11-19 Thread Ayesha Dissanayaka
Hi Supun,

Not sure whether this is helpful now. Another way you can get  tanantID by
domain name is, if you have enabled 'carbon' jaggery module in your
environment, you can use below code as well. This is how we does it in ES.

var carbon = require('carbon');
 var domain = 'domain.name';
 var tenantId =  carbon.server.tenantId({domain: domain});


Thanks!
-Ayesha

On Tue, Nov 18, 2014 at 2:44 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Godwin,

 Thanks!
 Had to alter the above code as follows, though.

 *var tenantManagerService = new
 Packages.org.wso2.carbon.um.ws.service.TenantManagerService();*
 *var tenantId = tenantManagerService.getTenantId(tenantDomain);*


 Thanks again for pointing out where to look for. :)

 Regards,

 On Tue, Nov 18, 2014 at 1:59 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Hi Supun,

 Use can use following code to get the tenantId.

 UserRealmService.getTenantManager().getTenantId(tenantDomain);

 On Tue, Nov 18, 2014 at 1:52 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 How can do $subject?

 I was able to get the Tenant Domain as follows though.

 var user=jagg.getUser();
 var MultitenantUtils =
 Packages.org.wso2.carbon.utils.multitenancy.MultitenantUtils;
 var tenantDomain = MultitenantUtils.getTenantDomain(user);

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




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

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




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com ayshsa...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Obtain the tenant ID of the currently logged in user from Jaggery

2014-11-19 Thread Supun Sethunga
Hi Ayesha,

Thanks, will try that out too.

Thanks,
Supun

On Wed, Nov 19, 2014 at 5:35 PM, Ayesha Dissanayaka aye...@wso2.com wrote:

 Hi Supun,

 Not sure whether this is helpful now. Another way you can get  tanantID by
 domain name is, if you have enabled 'carbon' jaggery module in your
 environment, you can use below code as well. This is how we does it in ES.

 var carbon = require('carbon');
 var domain = 'domain.name';
 var tenantId =  carbon.server.tenantId({domain: domain});


 Thanks!
 -Ayesha

 On Tue, Nov 18, 2014 at 2:44 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Godwin,

 Thanks!
 Had to alter the above code as follows, though.

 *var tenantManagerService = new
 Packages.org.wso2.carbon.um.ws.service.TenantManagerService();*
 *var tenantId = tenantManagerService.getTenantId(tenantDomain);*


 Thanks again for pointing out where to look for. :)

 Regards,

 On Tue, Nov 18, 2014 at 1:59 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Hi Supun,

 Use can use following code to get the tenantId.

 UserRealmService.getTenantManager().getTenantId(tenantDomain);

 On Tue, Nov 18, 2014 at 1:52 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 How can do $subject?

 I was able to get the Tenant Domain as follows though.

 var user=jagg.getUser();
 var MultitenantUtils =
 Packages.org.wso2.carbon.utils.multitenancy.MultitenantUtils;
 var tenantDomain = MultitenantUtils.getTenantDomain(user);

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




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

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




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 *Ayesha Dissanayaka*
 Software Engineer,
 WSO2, Inc : http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 20, Palmgrove Avenue, Colombo 3
 E-Mail: aye...@wso2.com ayshsa...@gmail.com




-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Synchronous Message Delivery Mechanism from Store to the Subscribers for MQTT

2014-11-19 Thread Pamod Sylvester
Hi All,

Currently for AMQP, message were delivered to subscribers through creating
a job and submitting it to the sequential thread pool executor.

MQTT protocol engine we use [1] is architectured to deliver messages to the
subscribers through a Distruptor ring, which is a single threaded operation
and defining a thread pool executor would not make and impact in this case
IMO. Hence a method was added for synchronous delivery. The flow would look
like the following,

(1) Message taken from the store (slot delivery worker) -  (2)
MessageFlusher (the former QueueDeliveryWorker which was renamed) -  (3)
identify the type of subscription

(4) if the subscription is AMQP related -  we use the Async delivery
method

(5) if the subscription is MQTT related -  we add the message directly to
distruptor ring through the MQTTBridge synchronously.

WDYT ? do point out if there're any implications to the above model.


[1] https://projects.eclipse.org/proposals/moquette-mqtt

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


Re: [Dev] [ES] Error while adding assets as tenant user

2014-11-19 Thread Ayesha Dissanayaka
Created Jira : https://wso2.org/jira/browse/STORE-553

On Wed, Nov 19, 2014 at 2:58 PM, Ayesha Dissanayaka aye...@wso2.com wrote:

 Hi,

 According to the debug result issue might be at
 org.wso2.carbon.governance.api.util.*GovernanceUtils*
 Here

 MultitenantUtils.getTenantDomain(((UserRegistry) registry).getUserName())


 gives 'carbon.super'. ((UserRegistry) registry).getUserName() does not
 contain the user.domain name. I think we need to change the domain
 retrieving code here.
 May be we can use domain name by teanant-id.

 UserRealmService.getTenantManager().getDomain(tenantId)


 Can we please get this fixed asap.

 Thansk!
 -Ayesha


 On Wed, Nov 19, 2014 at 12:21 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Hi Ayesha,

 From what i can understand it seems that when the call is happening to 
 getUUIDCache
 in GovernanceUtils.getArtifactPath() method the tenant id is set as 1
 but the tenant domain is the domain of the super tenant not the domain of
 the actual tenant. Can you debug the GovernanceUtils.getArtifactPath()
  and see what tenant information is set in the PrivilegedCarbonContext
 when getUUIDCache is called.

 Regards,
 Pulasthi

 On Mon, Nov 17, 2014 at 1:44 PM, Ayesha Dissanayaka aye...@wso2.com
 wrote:

 Hi all,

 I am getting following error while trying to add assets to ES publisher
 as a tenant user in the newly /built ES pack today - 17/11/2014 morning.
 This was working properly in earlier packs. Any reasons for this?/

 org.mozilla.javascript.WrappedException: Wrapped
 java.lang.SecurityException: Illegal access attempt to cache ] owned by
 tenant {[carbon.super],[-1234]} by tenant {[carbon.super],[1]} (eval
 code#1(eval)#31)
 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.jaggeryjs.rhino.carbon.scripts.registry.c0._c_anonymous_16(carbon/scripts/registry/artifacts.js:236)
 at
 org.jaggeryjs.rhino.carbon.scripts.registry.c0.call(carbon/scripts/registry/artifacts.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.rxt.scripts.asset.c0._c_anonymous_10(rxt/scripts/asset/asset.js:184)
 at
 org.jaggeryjs.rhino.rxt.scripts.asset.c0.call(rxt/scripts/asset/asset.js)
 at
 org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at
 org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at
 org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at
 org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
 at script(eval code#1(eval):31)
 at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
 at
 org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.c10._c_anonymous_8(/publisher/modules/asset_api.js:204)
 at
 org.jaggeryjs.rhino.publisher.modules.c10.call(/publisher/modules/asset_api.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0._c_anonymous_1(/publisher/extensions/assets/default/apis/assets.jag:71)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0.call(/publisher/extensions/assets/default/apis/assets.jag)
 at
 org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at
 org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at
 org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_20(/publisher/modules/publisher.js:493)
 at
 org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.jaggeryjs.rhino.store.scripts.c0._c_anonymous_17(store/scripts/server.js:291)
 at
 org.jaggeryjs.rhino.store.scripts.c0.call(store/scripts/server.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_19(/publisher/modules/publisher.js:488)
 at
 org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0._c_script_0(/publisher/extensions/assets/default/apis/assets.jag:39)
 at
 org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0.call(/publisher/extensions/assets/default/apis/assets.jag)
 

Re: [Dev] Single Signout intermittent issue in AM cluster with IS Cluster as KM with SSO enabled

2014-11-19 Thread Lakshman Udayakantha
Hi,

I linked this issue[1], because seems it is related.

@Darshana
WDYT about the root cause of this issue?

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

On Wed, Nov 19, 2014 at 11:54 AM, Chamila Adhikarinayake chami...@wso2.com
wrote:

 Hi,

 I'm working on the issue[1]. The environment is an AM cluster with one
 publisher node, one store node and two gateway notes, all fronted by an ELB
 2.1.1 and an IS cluster pointed as the KM. Also SSO is configured for store
 and publisher. According to the issue, following error is thrown
 intermittently in the IS console when login out from publisher/Store. I
 could not reproduce this. Can someone guess what kind of situation could
 produce this error in the IS

 (Error in the IS console)

 TID: [0] [IS] [2014-11-17 00:43:45,476] ERROR
 {org.wso2.carbon.identity.sso.saml.processors.LogoutRequestProcessor} -
 Error Processing the Logout Request
 {org.wso2.carbon.identity.sso.saml.processors.LogoutRequestProcessor}

 java.lang.NullPointerException
 at
 org.wso2.carbon.identity.sso.saml.processors.LogoutRequestProcessor.process(LogoutRequestProcessor.java:116)
 at
 org.wso2.carbon.identity.sso.saml.SAMLSSOService.validateSPInitSSORequest(SAMLSSOService.java:83)
 at
 org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.handleSPInitSSO(SAMLSSOProviderServlet.java:268)
 at
 org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.handleRequest(SAMLSSOProviderServlet.java:186)
 at
 org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.doPost(SAMLSSOProviderServlet.java:103)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.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:745)
 TID: [0] [IS] [2014-11-17 00:43:45,477] ERROR
 {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} - Error
 when processing the authentication request!
 {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet}

 org.wso2.carbon.identity.base.IdentityException: Error Processing the
 Logout Request
 at
 

[Dev] [IS] Changing AuthenticationContext API

2014-11-19 Thread Malithi Edirisinghe
Hi All,

As per the discussion I had with the IS team I will be changing the
reference type of the instance variable subject, of
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext
from String to org.wso2.carbon.identity.application.common.model.User.
Further, the getter and setter of this variable will be changed accordingly.
The intention of this change is to separately identify the user attributes,
such as username, user store domain and tenant domain.

I found below classes with the usages of the methods that would change.
These will be fixed accordingly.

*Usages of the setter*

org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler
org.wso2.carbon.identity.application.authenticator.basicauth.BasicAuthenticator
org.wso2.carbon.identity.application.authenticator.facebook.FacebookAuthenticator
org.wso2.carbon.identity.application.authenticator.facebook.v2.FacebookAuthenticator
org.wso2.carbon.identity.application.authenticator.iwa.IWAAuthenticator
org.wso2.carbon.identity.application.authenticator.oidc.OpenIDConnectAuthenticator
org.wso2.carbon.identity.application.authenticator.openid.manager.DefaultOpenIDManager
org.wso2.carbon.identity.application.authenticator.passive.sts.manager.PassiveSTSManager
org.wso2.carbon.identity.application.authenticator.requestpath.basicauth.BasicAuthRequestPathAuthenticator
org.wso2.carbon.identity.application.authenticator.requestpath.oauth.OAuthRequestPathAuthenticator
org.wso2.carbon.identity.application.authenticator.samlsso.SAMLSSOAuthenticator

*Usages of the getter*

org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultRequestPathBasedSequenceHandler
org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler

This change will be merged to the public svn.

Welcome any thoughts on this.

Thanks,
Malithi.

-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

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


Re: [Dev] Error when executing config.sh file while creating Cartridge in OpenStack

2014-11-19 Thread Udara Liyanage
Hi,

As I remember it fails first time. Please refer to caetirdge creation
guide, there also you see the same error message. Ignore it.

Btw move this to Stratos dev.



Touched, not typed. Erroneous words are a feature, not a typo.
On Nov 19, 2014 12:33 PM, Isuru Perera isu...@wso2.com wrote:

 Hi Hasitha,

 Please post Stratos related questions to Stratos dev mailing list [1].

 That URL is for metadata service provided by IaaS. I know that URL works
 for EC2, but I think it fails on OpenStack. Anyway, you can ignore that
 error as the script will prompt for missing values.

 Thanks!

 Best Regards,

 [1] https://stratos.apache.org/community/mailing-lists.html

 On Wed, Nov 19, 2014 at 12:19 PM, Hasitha Weerasinghe hasit...@wso2.com
 wrote:

 HI,

 I get following error when executing config.sh file while create
 Cartridge in OpenStack.


 root@hasitha:~/bin#  ./config.sh
 This script will install and configure puppet agent, do you want to
 continue [y/n]y
 --2014-11-19 06:14:12--  http://169.254.169.254/latest/user-data
 Connecting to 169.254.169.254:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 2014-11-19 06:14:12 ERROR 404: Not Found.
 Please provide stratos service-name:


 I checked on config.sh file. when executing this line :- ${WGET}
 http://169.254.169.254/latest/user-data -O /tmp/payload/launch-params it
 gives the error.

 I manually tried to wget this link it gives the same error.

 root@hasitha:/tmp/payload# wget http://169.254.169.254/latest/user-data -O
 /tmp/payload/launch-params
 --2014-11-19 06:21:38--  http://169.254.169.254/latest/user-data
 Connecting to 169.254.169.254:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 2014-11-19 06:21:38 ERROR 404: Not Found.

 Any help would be appreciated.

 Thanks  Regards,

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





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




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha

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


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


[Dev] [AF] Datasource and Database creation issues in AF

2014-11-19 Thread Pirinthapan Mahendran
Hi,

Today I setup AF with the latest build pack. In this setup I found the
following issues.

1. The datasources and databases, created for one application, are
available for all the applications within the tenant.
2. When we trying to create databases in all three environment by ticking
the checkbox Create Database and Datasources in all environments, it
doesn't getting created properly. The database is created only for
development environment.


Thanks.


Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB][XSLT] Capturing #xA; (new line) and Replace it with in \n using XSLT.

2014-11-19 Thread Hasitha Aravinda
Hi team,

I have requirement to replace #xA; character and replace it with \n using
XSLT. So I came up with following XSLT and Proxy service. ( Capp is
attached )

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 xmlns:xsl=
http://www.w3.org/1999/XSL/Transform; xmlns:tns=
http://www.example.org/Echo/;
xsl:output method=text encoding=UTF-8 indent=yes/
xsl:template name=escapeNewLine
xsl:param name=text select=string(.)/
xsl:choose
xsl:when test=contains($text, '#xA;')
xsl:value-of select=substring-before($text,
'#xA;')/\nxsl:call-template name=escapeNewLine
xsl:with-param name=text
select=substring-after($text, '#xA;')/
/xsl:call-template
/xsl:when
xsl:otherwise
xsl:value-of select=$text/
/xsl:otherwise
/xsl:choose
/xsl:template
xsl:template match=/tns:echoOut xmlns:tns=
http://www.example.org/Echo/;outxsl:call-template name=escapeNewLine
xsl:with-param name=text select=./
/xsl:call-template/out/tns:echoOut
/xsl:template
/xsl:stylesheet

*And Proxy : *

?xml version=1.0 encoding=UTF-8?
proxy xmlns=http://ws.apache.org/ns/synapse; name=TestXSLT
transports=http https startOnLoad=true trace=disable
target
inSequence
xslt key=conf:xslt/Test.xslt source=//in/
respond/
/inSequence
outSequence/
faultSequence/
/target
publishWSDL key=conf:xslt/Echo.wsdl/
/proxy


In above transformation, it replace all the space with \n. For following
request.

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:echo=http://www.example.org/Echo/;
   soapenv:Header/
   soapenv:Body
  echo:echo
 ina b
 c d
 /in
  /echo:echo
   /soapenv:Body
/soapenv:Envelope

Response will be like this.

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:echo=http://www.example.org/Echo/;
   soapenv:Body
  echo:echo
 text xmlns=http://ws.apache.org/commons/ns/payload;a\nb
\n\n\n\n\n\n\n\n\nc\nd
\n\n\n\n\n\n\n\n\n/text
  /echo:echo
   /soapenv:Body
/soapenv:Envelope

What could be the issue. ? I tried with both amp;#xA; and #xA still no
luck.

Thanks,
Hasitha.

-- 
Hasitha Aravinda,
Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile: +94 71 8 210 200


TestXSLTCapp_1.0.0.car
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API-M] Why do we give the option of selecting transports in the gateway?

2014-11-19 Thread Samisa Abeysinghe
Then we need to remove from tuning docs too...

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

WSO2 Inc.
http://wso2.com


On Wed, Nov 19, 2014 at 5:33 PM, Nuwan Dias nuw...@wso2.com wrote:

 I guess you are referring to the commented out nhttp transports in the
 axis2.xml.

 Actually there is no usecase as such for these transports. Nhttp was left
 behind in commented out mode since PT was quite new in terms of maturity.
 And in the early days of PT, when people came across issues related to the
 transport they could easily switch back to Nhttp since the configurations
 were already in place.

 But now nobody switches back to nhttp since PT has matured enough at least
 in the context of API Manager. So maybe we should take nhttp off completely.

 Thanks,
 NuwanD.

 On Wed, Nov 19, 2014 at 5:02 PM, Samisa Abeysinghe sam...@wso2.com
 wrote:

 We have the option of using NHTTP or PTT

 When should I use which one? What are the pros and cons?

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com




 --
 Nuwan Dias

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

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


Re: [Dev] Whats bam-data-publishers git repo for ?

2014-11-19 Thread Sriskandarajah Suhothayan
Hi Ayash

Shall we rename this repo as data-publishers instead of
bam-data-publishers and
Shall we rename WCF to dotnet ?

BTW what is Jenkins folder ?

Suho

On Mon, Nov 17, 2014 at 12:48 AM, Ayash ayashkan...@wso2.com wrote:

 Hi Suho,

 We created that repo to host the non-java data-publisher client libraries.
 Currently, we have only hosted .net(WCF) data publisher client library. If
 we'll need some c, c++ data publishers support, we planned to host them all
 there.

 Do you think that we have much more relevant place for these to be hosted?

 Thanks,
 -Ayash

 On Sat, Nov 15, 2014 at 9:48 PM, Sriskandarajah Suhothayan s...@wso2.com
 wrote:

 HI

 I found there is a new repo created for bam-data-publishers[1]. And I
 also see the content in that is also not relevant.  What is that purpose of
 this repo ?

 Regards
 Suho

 [1]https://github.com/wso2-dev/bam-data-publishers

 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*




 --
 Ayashkantha Ramasinghe
 Software Engineer WSO2, Inc.
 email: ayashkan...@wso2.com sanj...@wso2.com;
 TP: +94 77 7 487 669




-- 

*S. Suhothayan*
Technical Lead  Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* http://wso2.com/*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan
http://twitter.com/suhothayan | linked-in:
http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API-M] Why do we give the option of selecting transports in the gateway?

2014-11-19 Thread Sanjeewa Malalgoda
When we introduced multi tenancy for API Manager 1.4.0 it was working fine
with NHTTP only. For users who didn't have multi tenant use case we
recommend pass through. That is how both axis2.xml files came to product.
Since now pass through is mature enough we may retire Nhttp.

Thanks,
sanjeewa.

On Thu, Nov 20, 2014 at 5:26 AM, Samisa Abeysinghe sam...@wso2.com wrote:

 Then we need to remove from tuning docs too...

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com


 On Wed, Nov 19, 2014 at 5:33 PM, Nuwan Dias nuw...@wso2.com wrote:

 I guess you are referring to the commented out nhttp transports in the
 axis2.xml.

 Actually there is no usecase as such for these transports. Nhttp was left
 behind in commented out mode since PT was quite new in terms of maturity.
 And in the early days of PT, when people came across issues related to the
 transport they could easily switch back to Nhttp since the configurations
 were already in place.

 But now nobody switches back to nhttp since PT has matured enough at
 least in the context of API Manager. So maybe we should take nhttp off
 completely.

 Thanks,
 NuwanD.

 On Wed, Nov 19, 2014 at 5:02 PM, Samisa Abeysinghe sam...@wso2.com
 wrote:

 We have the option of using NHTTP or PTT

 When should I use which one? What are the pros and cons?

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com




 --
 Nuwan Dias

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



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




-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


Re: [Dev] [IS] Changing AuthenticationContext API

2014-11-19 Thread Malithi Edirisinghe
Hi All,

Please note that we will be moving this change to the git repo only.

Thanks,
Malithi.

On Wed, Nov 19, 2014 at 9:37 PM, Malithi Edirisinghe malit...@wso2.com
wrote:

 Hi All,

 As per the discussion I had with the IS team I will be changing the
 reference type of the instance variable subject, of
 org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext
 from String to org.wso2.carbon.identity.application.common.model.User.
 Further, the getter and setter of this variable will be changed accordingly.
 The intention of this change is to separately identify the user
 attributes, such as username, user store domain and tenant domain.

 I found below classes with the usages of the methods that would change.
 These will be fixed accordingly.

 *Usages of the setter*


 org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler

 org.wso2.carbon.identity.application.authenticator.basicauth.BasicAuthenticator

 org.wso2.carbon.identity.application.authenticator.facebook.FacebookAuthenticator

 org.wso2.carbon.identity.application.authenticator.facebook.v2.FacebookAuthenticator
 org.wso2.carbon.identity.application.authenticator.iwa.IWAAuthenticator

 org.wso2.carbon.identity.application.authenticator.oidc.OpenIDConnectAuthenticator

 org.wso2.carbon.identity.application.authenticator.openid.manager.DefaultOpenIDManager

 org.wso2.carbon.identity.application.authenticator.passive.sts.manager.PassiveSTSManager

 org.wso2.carbon.identity.application.authenticator.requestpath.basicauth.BasicAuthRequestPathAuthenticator

 org.wso2.carbon.identity.application.authenticator.requestpath.oauth.OAuthRequestPathAuthenticator

 org.wso2.carbon.identity.application.authenticator.samlsso.SAMLSSOAuthenticator

 *Usages of the getter*


 org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultRequestPathBasedSequenceHandler

 org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler

 This change will be merged to the public svn.

 Welcome any thoughts on this.

 Thanks,
 Malithi.

 --

 *Malithi Edirisinghe*
 Senior Software Engineer
 WSO2 Inc.

 Mobile : +94 (0) 718176807
 malit...@wso2.com




-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

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


[Dev] Sample code and articles related to RTP and RTSP.

2014-11-19 Thread Hemika Kodikara
Hi all,

Is there any sample code and articles related to RTP and RTSP for
development purposes and references ?.
Please feel free to share.

Regards,
Hemika

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

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


Re: [Dev] Does it make sense to have transport senders in axis2.xml?

2014-11-19 Thread Afkham Azeez
When we make calls out of our servers, we create a Client
ConfigurationContext using axis2_client.xml and use that for sending out
messages. So, why do we need senders in the main axis2.xml which is used
for creating the Server ConfigurationContext?

On Wed, Nov 19, 2014 at 5:21 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Azeez,

 Do you mean to remove it only when the Servlet transport being used?

 On Wed, Nov 19, 2014 at 6:56 AM, Afkham Azeez az...@wso2.com wrote:

 We send out using the client ConfigurationContext. So does it make sense
 to keep the senders in the main axis2.xml?

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

 *Lean . Enterprise . Middleware*

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




 --

 Thanks  regards,
 Nirmal

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





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

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


Re: [Dev] Dev Studio: no Team / Commit menu item for App Cloud

2014-11-19 Thread Awanthika Senarath
Hi Dmitry,

Finally eclipse community replied!, this is not an eclipse issue or a
dev-studio issue, this occurs due to user having a .git folder at the home
directory level, which confuses the e-git plugin as to which .git
configuration to take.

I had the same issue in my machine and I checked with my home and it had a
.git folder there. After deleting this I got my eclipse working as expected.

could you please check in your home directory (for a .git folder) and
delete this folder? this will enable e-git to automatically recognize the
git repository on import.


please let me know if it got solved after doing this :)

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


Re: [Dev] [ESB][XSLT] Capturing #xA; (new line) and Replace it with in \n using XSLT.

2014-11-19 Thread Milinda Perera
Hi,

As I understand your requirement is replacing line feed with '\n'

I found following method, and works for me. Try following :

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 xmlns:xsl=
http://www.w3.org/1999/XSL/Transform; xmlns:tns=
http://www.example.org/Echo/;
xsl:output method=text encoding=UTF-8 indent=yes/
xsl:variable name=_crlfxsl:text
/xsl:text/xsl:variable
xsl:template name=escapeNewLine
xsl:param name=text select=string(.)/
xsl:choose
xsl:when test=contains($text, $_crlf)
xsl:value-of select=substring-before($text,
$_crlf)/\nxsl:call-template name=escapeNewLine
xsl:with-param name=text
select=substring-after($text, $_crlf)/
/xsl:call-template
/xsl:when
xsl:otherwise
xsl:value-of select=$text/
/xsl:otherwise
/xsl:choose
/xsl:template
xsl:template match=/tns:echoOut xmlns:tns=
http://www.example.org/Echo/;outxsl:call-template name=escapeNewLine
xsl:with-param name=text select=./
/xsl:call-template/out/tns:echoOut
/xsl:template
/xsl:stylesheet

[1]
http://stackoverflow.com/questions/3541278/replace-r-n-newlines-using-xslt-and-net-c-sharp-vs-2008

Thanks,
Milinda

On Thu, Nov 20, 2014 at 3:35 AM, Hasitha Aravinda hasi...@wso2.com wrote:

 Hi team,

 I have requirement to replace #xA; character and replace it with \n using
 XSLT. So I came up with following XSLT and Proxy service. ( Capp is
 attached )

 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform; xmlns:tns=
 http://www.example.org/Echo/;
 xsl:output method=text encoding=UTF-8 indent=yes/
 xsl:template name=escapeNewLine
 xsl:param name=text select=string(.)/
 xsl:choose
 xsl:when test=contains($text, '#xA;')
 xsl:value-of select=substring-before($text,
 '#xA;')/\nxsl:call-template name=escapeNewLine
 xsl:with-param name=text
 select=substring-after($text, '#xA;')/
 /xsl:call-template
 /xsl:when
 xsl:otherwise
 xsl:value-of select=$text/
 /xsl:otherwise
 /xsl:choose
 /xsl:template
 xsl:template match=/tns:echoOut xmlns:tns=
 http://www.example.org/Echo/;outxsl:call-template
 name=escapeNewLine
 xsl:with-param name=text select=./
 /xsl:call-template/out/tns:echoOut
 /xsl:template
 /xsl:stylesheet

 *And Proxy : *

 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse; name=TestXSLT
 transports=http https startOnLoad=true trace=disable
 target
 inSequence
 xslt key=conf:xslt/Test.xslt source=//in/
 respond/
 /inSequence
 outSequence/
 faultSequence/
 /target
 publishWSDL key=conf:xslt/Echo.wsdl/
 /proxy


 In above transformation, it replace all the space with \n. For following
 request.

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:echo=http://www.example.org/Echo/;
soapenv:Header/
soapenv:Body
   echo:echo
  ina b
  c d
  /in
   /echo:echo
/soapenv:Body
 /soapenv:Envelope

 Response will be like this.

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:echo=http://www.example.org/Echo/;
soapenv:Body
   echo:echo
  text xmlns=http://ws.apache.org/commons/ns/payload;a\nb
 \n\n\n\n\n\n\n\n\nc\nd
 \n\n\n\n\n\n\n\n\n/text
   /echo:echo
/soapenv:Body
 /soapenv:Envelope

 What could be the issue. ? I tried with both amp;#xA; and #xA still no
 luck.

 Thanks,
 Hasitha.

 --
 Hasitha Aravinda,
 Software Engineer,
 WSO2 Inc.
 Email: hasi...@wso2.com
 Mobile: +94 71 8 210 200


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




-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][XSLT] Capturing #xA; (new line) and Replace it with in \n using XSLT.

2014-11-19 Thread Hasitha Aravinda
Yupe, That workaround worked.

Thanks Milinda.

On Thu, Nov 20, 2014 at 4:55 PM, Milinda Perera milin...@wso2.com wrote:

 Hi,

 As I understand your requirement is replacing line feed with '\n'

 I found following method, and works for me. Try following :

 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform; xmlns:tns=
 http://www.example.org/Echo/;
 xsl:output method=text encoding=UTF-8 indent=yes/
 xsl:variable name=_crlfxsl:text
 /xsl:text/xsl:variable
 xsl:template name=escapeNewLine
 xsl:param name=text select=string(.)/
 xsl:choose
 xsl:when test=contains($text, $_crlf)
 xsl:value-of select=substring-before($text,
 $_crlf)/\nxsl:call-template name=escapeNewLine
 xsl:with-param name=text
 select=substring-after($text, $_crlf)/
 /xsl:call-template
 /xsl:when
 xsl:otherwise
 xsl:value-of select=$text/
 /xsl:otherwise
 /xsl:choose
 /xsl:template
 xsl:template match=/tns:echoOut xmlns:tns=
 http://www.example.org/Echo/;outxsl:call-template
 name=escapeNewLine
 xsl:with-param name=text select=./
 /xsl:call-template/out/tns:echoOut
 /xsl:template
 /xsl:stylesheet

 [1]
 http://stackoverflow.com/questions/3541278/replace-r-n-newlines-using-xslt-and-net-c-sharp-vs-2008

 Thanks,
 Milinda

 On Thu, Nov 20, 2014 at 3:35 AM, Hasitha Aravinda hasi...@wso2.com
 wrote:

 Hi team,

 I have requirement to replace #xA; character and replace it with \n
 using XSLT. So I came up with following XSLT and Proxy service. ( Capp is
 attached )

 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform; xmlns:tns=
 http://www.example.org/Echo/;
 xsl:output method=text encoding=UTF-8 indent=yes/
 xsl:template name=escapeNewLine
 xsl:param name=text select=string(.)/
 xsl:choose
 xsl:when test=contains($text, '#xA;')
 xsl:value-of select=substring-before($text,
 '#xA;')/\nxsl:call-template name=escapeNewLine
 xsl:with-param name=text
 select=substring-after($text, '#xA;')/
 /xsl:call-template
 /xsl:when
 xsl:otherwise
 xsl:value-of select=$text/
 /xsl:otherwise
 /xsl:choose
 /xsl:template
 xsl:template match=/tns:echoOut xmlns:tns=
 http://www.example.org/Echo/;outxsl:call-template
 name=escapeNewLine
 xsl:with-param name=text select=./
 /xsl:call-template/out/tns:echoOut
 /xsl:template
 /xsl:stylesheet

 *And Proxy : *

 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse; name=TestXSLT
 transports=http https startOnLoad=true trace=disable
 target
 inSequence
 xslt key=conf:xslt/Test.xslt source=//in/
 respond/
 /inSequence
 outSequence/
 faultSequence/
 /target
 publishWSDL key=conf:xslt/Echo.wsdl/
 /proxy


 In above transformation, it replace all the space with \n. For following
 request.

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:echo=
 http://www.example.org/Echo/;
soapenv:Header/
soapenv:Body
   echo:echo
  ina b
  c d
  /in
   /echo:echo
/soapenv:Body
 /soapenv:Envelope

 Response will be like this.

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:echo=
 http://www.example.org/Echo/;
soapenv:Body
   echo:echo
  text xmlns=http://ws.apache.org/commons/ns/payload;a\nb
 \n\n\n\n\n\n\n\n\nc\nd
 \n\n\n\n\n\n\n\n\n/text
   /echo:echo
/soapenv:Body
 /soapenv:Envelope

 What could be the issue. ? I tried with both amp;#xA; and #xA still no
 luck.

 Thanks,
 Hasitha.

 --
 Hasitha Aravinda,
 Software Engineer,
 WSO2 Inc.
 Email: hasi...@wso2.com
 Mobile: +94 71 8 210 200


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




 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032




-- 
Hasitha Aravinda,
Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile: +94 71 8 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Whats bam-data-publishers git repo for ?

2014-11-19 Thread Ayash
Hi Suho,


 Shall we rename this repo as data-publishers instead of
 bam-data-publishers and
 Shall we rename WCF to dotnet ?


Sure, If it doesn't make sense.


 BTW what is Jenkins folder ?


That is an unnecessary folder. will remove that.

Thanks,
-Ayash


 Suho

 On Mon, Nov 17, 2014 at 12:48 AM, Ayash ayashkan...@wso2.com wrote:

 Hi Suho,

 We created that repo to host the non-java data-publisher client
 libraries. Currently, we have only hosted .net(WCF) data publisher client
 library. If we'll need some c, c++ data publishers support, we planned to
 host them all there.

 Do you think that we have much more relevant place for these to be hosted?

 Thanks,
 -Ayash

 On Sat, Nov 15, 2014 at 9:48 PM, Sriskandarajah Suhothayan s...@wso2.com
  wrote:

 HI

 I found there is a new repo created for bam-data-publishers[1]. And I
 also see the content in that is also not relevant.  What is that purpose of
 this repo ?

 Regards
 Suho

 [1]https://github.com/wso2-dev/bam-data-publishers

 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*




 --
 Ayashkantha Ramasinghe
 Software Engineer WSO2, Inc.
 email: ayashkan...@wso2.com sanj...@wso2.com;
 TP: +94 77 7 487 669




 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*




-- 
Ayashkantha Ramasinghe
Software Engineer WSO2, Inc.
email: ayashkan...@wso2.com sanj...@wso2.com;
TP: +94 77 7 487 669
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Does it make sense to have transport senders in axis2.xml?

2014-11-19 Thread Nirmal Fernando
Hi Azeez,

Thanks for the reply. But I wonder whether this is the same behavior in
ESB. I think in ESB, we utilizes the transportSenders in axis2.xml. I am
not sure whether it has been changed.

On Thu, Nov 20, 2014 at 5:29 AM, Afkham Azeez az...@wso2.com wrote:

 When we make calls out of our servers, we create a Client
 ConfigurationContext using axis2_client.xml and use that for sending out
 messages. So, why do we need senders in the main axis2.xml which is used
 for creating the Server ConfigurationContext?

 On Wed, Nov 19, 2014 at 5:21 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Azeez,

 Do you mean to remove it only when the Servlet transport being used?

 On Wed, Nov 19, 2014 at 6:56 AM, Afkham Azeez az...@wso2.com wrote:

 We send out using the client ConfigurationContext. So does it make sense
 to keep the senders in the main axis2.xml?

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

 *Lean . Enterprise . Middleware*

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




 --

 Thanks  regards,
 Nirmal

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





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

 *Lean . Enterprise . Middleware*




-- 

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] Does it make sense to have transport senders in axis2.xml?

2014-11-19 Thread Kasun Indrasiri
Yeah, ESB uses both listeners and senders in the axis2.xml.  BTW, do we
intend to do this across all products or just the kernel?

On Thu, Nov 20, 2014 at 11:50 AM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Azeez,

 Thanks for the reply. But I wonder whether this is the same behavior in
 ESB. I think in ESB, we utilizes the transportSenders in axis2.xml. I am
 not sure whether it has been changed.

 On Thu, Nov 20, 2014 at 5:29 AM, Afkham Azeez az...@wso2.com wrote:

 When we make calls out of our servers, we create a Client
 ConfigurationContext using axis2_client.xml and use that for sending out
 messages. So, why do we need senders in the main axis2.xml which is used
 for creating the Server ConfigurationContext?

 On Wed, Nov 19, 2014 at 5:21 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Azeez,

 Do you mean to remove it only when the Servlet transport being used?

 On Wed, Nov 19, 2014 at 6:56 AM, Afkham Azeez az...@wso2.com wrote:

 We send out using the client ConfigurationContext. So does it make
 sense to keep the senders in the main axis2.xml?

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

 *Lean . Enterprise . Middleware*

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




 --

 Thanks  regards,
 Nirmal

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





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

 *Lean . Enterprise . Middleware*




 --

 Thanks  regards,
 Nirmal

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





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

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


[Dev] MQTT Cluster Tests

2014-11-19 Thread Akalanka Pagoda Arachchi
Hi All,

I have identified following scenarios to integrate into MQTT cluster tests.

   1. Basic Send/Receive on each QOS level in the same node
   2. 100 publishers - 2 subscribers - publish 10 messages - publishers
   on one node, subscribers on the other - QOS 1 - Expected message = 110%
   sent messages
   3. 2 publishers - 100 subscribers - publish 1000 messages - publishers
   on one node, subscribers on the other - QOS 1 - Expected message = 110%
   sent messages
   4. 50 publishers - 50 subscribers - publish 1000 messages - publishers
   subscribers equally  divided between nodes - QOS 1 - Expected message =
   110% sent messages

Since MQTT follows the same flow internally as of AMQP Topics in message
delivery I believe we do not need to test for other scenarios like 'message
are in order', 'message duplicates' .etc since they will be covered in
Topic test cases.

WDYT?

Thanks,
Akalanka
-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][IS] LDAP vs JDBC user store

2014-11-19 Thread Uvindra Dias Jayasinha
What is the advantage/disadvantage(if any) of using the embeded LDAP user
store Vs a JDBC user store in IS? Thanks

-- 
Regards,
Uvindra

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


Re: [Dev] APIM Api subscription workflow

2014-11-19 Thread Abimaran Kugathasan
Hi Susinda,

I'm having some concern on your suggestion.

If you don't want to list the REJECTED/BLOCKED APIs under My Subscription
Page, In Current APIM, there are no way a subscriber get to know
the REJECTED/BLOCKED subscriptions. So the REJECTED/BLOCKED subscription
will be listed in the My Subscription Page with the state of Subscription
Notified on the top corner.


My Subscription Page is common place to show the status of API Subscription
where an API was REJECTED/BLOCKED by a workflow OR by the publisher of the
API.

As a alternate solution, when an API subscription was blocked by a workflow
at the moment of subscription, API Manager should not persist this
subscription entry and just notify user about the subscription was
REJECTED/BLOCKED.

And the subscriptions blocked by the publisher will be shown in My
Subscription Page as earlier with a notification on top corner.

Please provide feedback on this.





On Wed, Nov 19, 2014 at 10:15 AM, Abimaran Kugathasan abima...@wso2.com
wrote:

 Hi Susinda,

 We will check and add relavent code to products itself tomorrow. Please
 create a JIRA for this issue.

 On Tue, Nov 18, 2014 at 10:10 AM, Susinda Perera susi...@wso2.com wrote:

 Hi Amila/Sanjewa

 I have attached my customized code, in api-info.js its starts with if
 (result.status == 'REJECTED')* *and in template.jag its %
 if(api.subStatus != REJECTED) { %.

 Thanks


 On Tue, Nov 18, 2014 at 9:13 AM, Susinda Perera susi...@wso2.com wrote:

 Hi Amila

 Is is good thing do that in UI level, For me it seems like its better to
 handle in programme code, i.e not adding that api to app.subscriptions list.

 However i was able to do that in UI as you suggested. I filtered it as
 % if(api.subStatus != REJECTED) { %
 and place this logic just above the
 div class=thumbnail % if(api.status == DEPRECATED || api.status ==
 RETIRED || api.status == BLOCKED ) { %deprecated% } % line

 And it worked fine, but i have some alignment issue, when page refreshes
 sometimes it aligns in the middle. Please see the attached image. Can i get
 some help to make this alignment problem. And i also would like to get to
 know about non ui approach to remove the subscription rejected apis.

 Thanks




 On Tue, Nov 18, 2014 at 6:55 AM, Amila De Silva ami...@wso2.com wrote:

 Then you have to edit template.jag [1]. You have to check the
 Subscription state and show approved APIs only.




 [1] 
 APIM/repository/deployment/server/jaggeryapps/store/site/themes/fancy/templates/subscription/subscription-list-element/template.jag

 On Tue, Nov 18, 2014 at 6:28 AM, Susinda Perera susi...@wso2.com
 wrote:

 Hi Amila

 Sorry, what i meant was not that we are subscription page, Its about
 subscription failed api is listed in MySubscriptions, what i wanted is to
 not to have that api listed in MySubscription since it failed.

 On Tue, Nov 18, 2014 at 6:23 AM, Amila De Silva ami...@wso2.com
 wrote:

 Hi Susinda,
 For this you have to edit triggerSubscribe() in api-info.js. That
 function redirects the user to Subscription list after creating the
 subscription. You can disable that redirection if the Subscription is
 rejected.

 On Tue, Nov 18, 2014 at 4:07 AM, Susinda Perera susi...@wso2.com
 wrote:

 I tried with following code

 if (result.error == false) {
 if (result.status == 'REJECTED') {

 $('#messageModal').html($('#confirmation-data').html());
 $('#messageModal
 h3.modal-title').html(i18n.t('info.subscriptionRejectTitle'));
 $('#messageModal div.modal-body').html('\n\n' +
 i18n.t('info.subscriptionRejected'));
 $('#messageModal a.btn-primary').html(i18n.t('info.OK'));
 $('#messageModal a.btn-primary').click(function() {
 window.location.reload();
 });
 } else {

 However when i goes to my subscription page i can see it in inactive
 state. Can we make it not to goto subscription-list if rejected.



 On Tue, Nov 18, 2014 at 3:54 AM, Susinda Perera susi...@wso2.com
 wrote:

 Could have been found a solution with adding *if (result.status
 == 'REJECTED')*
 at 
 repository/deployment/server/jaggeryapps/store/site/themes/fancy/templates/api/api-info/js/api-info.js
 but i dont know weather thats the best place to handle.




 On Mon, Nov 17, 2014 at 9:04 PM, Susinda Perera susi...@wso2.com
 wrote:

 Hi Amila

 I tried to reject the subscription but it still gives me following
 success message
 *Congratulations! You have successfully subscribed to the API.
 Please go to 'My Subscriptions' page to review your subscription and
 generate keys*
 This is the code i used, could you please have a look and see why
 it is giving above, Do i need to call the super.execute() and
 super.complete() methods after setiing the status, i tried that but 
 that
 does not worked either. Do i need to remove the super methods?




 @Override
 public void execute(WorkflowDTO workflowDTO) throws
 WorkflowException{
 SubscriptionWorkflowDTO subsCreationWFDTO =
 (SubscriptionWorkflowDTO)workflowDTO;