Re: [Dev] [ES] Enable worker profile for clustering

2015-02-11 Thread Ayesha Dissanayaka
Hi all,

I was able to get rid of above issue by adding below code to the
p2-profile-jen/pom.xml


publishing product
package

publish-product



${basedir}/carbon.product



${basedir}/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart


file:${basedir}/target/p2-repo

file:${basedir}/target/p2-repo




But still I am getting below error.

Installing carbon.product.id 4.3.0.
Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: Carbon Product 4.3.0 (carbon.product.id 4.3.0)
 Missing requirement: ECF HttpClient Filetransfer Provider
4.0.200.v20120319-0616 (org.eclipse.ecf.provider.filetransfer.httpclient
4.0.200.v20120319-0616) requires 'package org.apache.commons.httpclient
[3.0.1,3.1.0]' but it could not be found
 Cannot satisfy dependency:
  From: Carbon Product 4.3.0 (carbon.product.id 4.3.0)
  To: org.wso2.carbon.core.runtime.feature.group [4.3.0]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Carbon Runtime Feature 4.3.0
(org.wso2.carbon.core.runtime.feature.group 4.3.0)
  To: org.eclipse.ecf.provider.filetransfer.httpclient
[4.0.200.v20120319-0616]
Application failed, log file location:
/home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1423719273294.log

Any Idea about this?



On Mon, Jan 5, 2015 at 9:50 PM, Ayesha Dissanayaka  wrote:

> Hi,
>
> In order to enable worker profile for WSO2 ES clustering, I have looked
> into WSO2-AS implementation and added below executors in
> */modules/p2-profile-gen/pom.xml*
>
> 
>creating-worker-profile
>...
> 
>
> and
>
> 
>p2-profile-generation-for-worker-profile
>...
> 
>
> as mentioned in [1].
>
> I also placed carbon.product file [2] into
> */modules/p2-profile-gen* directory.
>
> When I build the source, it fails at p2-profile-gen giving below error.
>
> [INFO] Command line:
> /bin/sh -c cd
> /home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen
> && /usr/lib/jvm/jdk1.6.0_31/jre/bin/java -jar
> /home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
> -artifactRepository
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
> -installIU carbon.product.id -profileProperties
> org.eclipse.update.install.features=true -profile worker -bundlepool
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
> -shared
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
> -destination
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/worker
> -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
> [INFO] Command line:
> /bin/sh -c cd
> /home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen
> && /usr/lib/jvm/jdk1.6.0_31/jre/bin/java -jar
> /home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
> -artifactRepository
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
> -installIU carbon.product.id -profileProperties
> org.eclipse.update.install.features=true -profile worker -bundlepool
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
> -shared
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
> -destination
> file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/worker
> -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
>
> Installation failed.
> The installable unit carbon.product.id has not been found.
> Application failed, log file location:
> /home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1420474389637.log
>
> I couldn't figure out what is "carbon.product.id" mentioned in [2], which
>

[Dev] [G-Reg] NullPointerException thrown when updating tenant cache

2015-02-11 Thread Inshaf Mahath
Hi all,

I have configured WSO2 GREG to work with MySQL. After running the server
I'm getting following error.
Please note that configured MySQL database contains all the needed tables
before the server is started.

Does anyone know what's the reason for the below issue?


Error when updating the permission cache for tenant : -1234
java.lang.NullPointerException
at
org.wso2.carbon.core.internal.permission.update.PermissionUpdater.update(PermissionUpdater.java:71)
at
org.wso2.carbon.core.internal.permission.update.PermissionUpdateServiceComponent.activate(PermissionUpdateServiceComponent.java:67)
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.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.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
at
org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
at
org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
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.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.eclipse.equinox.http.servlet.internal.Activator.r

Re: [Dev] [APIM][BAM] Who is the owner and users of BAM Presentation Service Stub?

2015-02-11 Thread Sinthuja Ragendran
Hi,

Nuwan and I had a offline discussion on this, and looks like even though
apim usage code is referring to this stub, it seems it's not executed in
the server run time. Therefore APIM team will work on removing the
dependency from APIM code base and finally remove it from their github repo
also. Created the public jira to track this [1].

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

Thanks,
Sinthuja

On Thu, Feb 12, 2015 at 12:04 PM, Nuwan Dias  wrote:

>
>
> On Thu, Feb 12, 2015 at 11:28 AM, Sinthuja Ragendran 
> wrote:
>
>> Hi,
>>
>> Sorry for the delayed response. AFAIR the above stub is obsolete now, and
>> it was used by old  BAM2-Alpha initial implementation (where there was our
>> own analytics engine, and all). I don't think it make sense to even have
>> this component in the carbon-apimgt.
>>
>
> I know it doesn't, but we had no option since no one claimed it.
>
>>
>> @Nuwan, Are you really using this stub in API-mgt component? :)
>>
>
> Yes, its being referenced from within some apim code related to
> statistics.
>
>>
>> Thanks,
>> Sinthuja.
>>
>> On Wed, Feb 11, 2015 at 1:58 PM, Nuwan Dias  wrote:
>>
>>> Yes, since its ownership wasn't claimed by anybody we moved the source
>>> inside carbon-apimgt.
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Wed, Feb 11, 2015 at 1:50 PM, Srinath Perera 
>>> wrote:
>>>
 is this resolved?

 On Thu, Feb 5, 2015 at 4:16 PM, Abimaran Kugathasan 
 wrote:

> Hi Sinthuja/Inosh
>
> Do you have any idea, who is the owner of the following module[1]?
>
> And which are the products using this module? As I grep for the
> artifactId, API-M and AppM using this.
>
> I want to know the functionality of this stub in APIM and AppM. This
> is not moved to git or nobody claim for the ownership of this module.
>
>
>
>
> [1] :
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/service-stubs/org.wso2.carbon.bam.presentation.stub
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


 --
 
 Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
 Site: http://people.apache.org/~hemapani/
 Photos: http://www.flickr.com/photos/hemapani/
 Phone: 0772360902

>>>
>>>
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Associate Tech Lead - WSO2, Inc. http://wso2.com
>>> email : nuw...@wso2.com
>>> Phone : +94 777 775 729
>>>
>>
>>
>>
>> --
>> *Sinthuja Rajendran*
>> Senior Software Engineer 
>> WSO2, Inc.:http://wso2.com
>>
>> Blog: http://sinthu-rajan.blogspot.com/
>> Mobile: +94774273955
>>
>>
>>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
*Sinthuja Rajendran*
Senior Software Engineer 
WSO2, Inc.:http://wso2.com

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


[Dev] Can we use ELB 2.1.1 to cluster Carbon 4.3.0 products?

2015-02-11 Thread Nirodha Pramod
Hi,

Is it possible to use ELB 2.1.1 for cluster Carbon 4.3.0 products.
Hazelcast versions in those two differ.

Carbon 4.3.0 - hazelcast_3.2.6.wso2v3.jar
ESB 2.1.1 - hazelcast_3.0.1.wso2v1.jar


Thanks,
Nirodha

-- 

*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] link to sample sources gives 404 error

2015-02-11 Thread Ruchira Wageesha
Thanks Kalpa for the pull request. I have merged it. Will update the
jaggeryjs.org as well.

/Ruchira

On Thu, Feb 12, 2015 at 10:43 AM, Kalpa Welivitigoda 
wrote:

> Sry, I thought it was the samples page you are referring, my mistake.
>
> @Ruchira, please find the PR [1] for fixing the source links for samples.
>
> [1] https://github.com/wso2/product-jaggery/pull/1
>
> On Thu, Feb 12, 2015 at 2:05 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Lakshman,
>>
>> I just tried and works fine for me.
>>
>> On Wed, Feb 11, 2015 at 5:51 PM, Lakshman Udayakantha > > wrote:
>>
>>> Hi All,
>>>
>>> It seams $subject appeared in [1].
>>>
>>> [1]http://jaggeryjs.org/samples.jag
>>>
>>> Thanks
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>



-- 

*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


Re: [Dev] CSS overriding issue while using two JS libraries.

2015-02-11 Thread Jerad Rutnam
Hi Fawsan,

You can prevent this issue by giving a top/parent class and inherit the
child style conflicts. If you can show the styles to me, I will be able to
help you.

Regards,
Jerad

On Thu, Feb 12, 2015 at 11:59 AM, Mohammed Fawsan  wrote:

>
> I have been trying to create a Grid with Gridster .js,
>  The Grid also uses Bootstrap. I have used a tabbed nav bar for navigation.
> They both use li items to add the items. And when I include both gridster
> & bootstrap CSS files, gridster somehow overrides the bootstrap CSS and it
> ruins the tabbed menu of bootstrap. What can I do to keep the styles for
> both li items?
>
> PS : I have tried re arranging the order of both CSS files, It did not
> work as well.
>
> HTML structure of gridster div
>
> 
> 
> 
> 
> 
> 
>
> HTML Structure of bootstrap div
>
> 
>   ...
>   
>  aria-expanded="false">
>   Dropdown 
> 
> 
>   ...
> 
>   
>   ...
>
>
>
> -Regards
> --
> Mohammed Fawsan
> Software Engineering Intern,
> Faculty of Engineering, University of Peradeniya.
> +94771121195
>



-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB]Multi tenant topic and queue creation and subscription

2015-02-11 Thread Megala Uthayakumar
yes. will do

On Thu, Feb 12, 2015 at 12:04 PM, Ramith Jayasinghe  wrote:

> sounds good. Could you send a patch ?
>
> On Thu, Feb 12, 2015 at 12:02 PM, Megala Uthayakumar 
> wrote:
>
>> Hi Mahesh and Ramith,
>>
>> Thanks for the references. I will go through those.
>>
>> @Ramith - If we can have a sample specific to multi tenancy support, it
>> will be helpful to new users. Just an idea.
>>
>>
>> On Thu, Feb 12, 2015 at 11:42 AM, Ramith Jayasinghe 
>> wrote:
>>
>>> how about this :
>>> https://docs.wso2.com/display/MB220/Multi-Tenancy+Support
>>>
>>> On Thu, Feb 12, 2015 at 11:11 AM, Mahesh Chinthaka 
>>> wrote:
>>>
 And this too... :)
 https://docs.wso2.com/display/MB220/JMS+Client+Samples

 On Thu, Feb 12, 2015 at 11:09 AM, Mahesh Chinthaka 
 wrote:

> Hi Megala,
>
> You may find these samples useful.
>
>
> https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription
>
> https://docs.wso2.com/display/MB220/Receiving+Messages+with+JMS+Message+Listener
>
> https://docs.wso2.com/display/MB220/Sending+and+Receiving+Messages+Using+Topics
>
> On Thu, Feb 12, 2015 at 10:55 AM, Megala Uthayakumar 
> wrote:
>
>> Hi All,
>>
>> Is there are any sample codes in the existing documentation regarding
>> the multi tenant topic and queue creation and subscription? I can not 
>> find
>> the codes in the existing documentation[1].
>> Can someone help me on this please?
>>
>> [1]
>> https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation
>>
>> Thanks.
>>
>> Regards
>> 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
>>
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

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


>>>
>>>
>>> --
>>> Ramith Jayasinghe
>>> Technical Lead
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> E: ram...@wso2.com
>>> P: +94 777542851
>>>
>>>
>>
>>
>> --
>> Megala Uthayakumar
>> *Software Engineering Intern *| *WSO2 Lanka*
>> Mobile : +94 779 967 122
>> Tel  : +94 112 733 667
>> E-mail :  meg...@wso2.com
>>
>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>
>


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


Re: [Dev] [APIM][BAM] Who is the owner and users of BAM Presentation Service Stub?

2015-02-11 Thread Nuwan Dias
On Thu, Feb 12, 2015 at 11:28 AM, Sinthuja Ragendran 
wrote:

> Hi,
>
> Sorry for the delayed response. AFAIR the above stub is obsolete now, and
> it was used by old  BAM2-Alpha initial implementation (where there was our
> own analytics engine, and all). I don't think it make sense to even have
> this component in the carbon-apimgt.
>

I know it doesn't, but we had no option since no one claimed it.

>
> @Nuwan, Are you really using this stub in API-mgt component? :)
>

Yes, its being referenced from within some apim code related to statistics.

>
> Thanks,
> Sinthuja.
>
> On Wed, Feb 11, 2015 at 1:58 PM, Nuwan Dias  wrote:
>
>> Yes, since its ownership wasn't claimed by anybody we moved the source
>> inside carbon-apimgt.
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Feb 11, 2015 at 1:50 PM, Srinath Perera  wrote:
>>
>>> is this resolved?
>>>
>>> On Thu, Feb 5, 2015 at 4:16 PM, Abimaran Kugathasan 
>>> wrote:
>>>
 Hi Sinthuja/Inosh

 Do you have any idea, who is the owner of the following module[1]?

 And which are the products using this module? As I grep for the
 artifactId, API-M and AppM using this.

 I want to know the functionality of this stub in APIM and AppM. This is
 not moved to git or nobody claim for the ownership of this module.




 [1] :
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/service-stubs/org.wso2.carbon.bam.presentation.stub

 --
 Thanks
 Abimaran Kugathasan

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

 
 
   
 


>>>
>>>
>>> --
>>> 
>>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>>> Site: http://people.apache.org/~hemapani/
>>> Photos: http://www.flickr.com/photos/hemapani/
>>> Phone: 0772360902
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Associate Tech Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Senior Software Engineer 
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
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] [MB]Multi tenant topic and queue creation and subscription

2015-02-11 Thread Ramith Jayasinghe
sounds good. Could you send a patch ?

On Thu, Feb 12, 2015 at 12:02 PM, Megala Uthayakumar 
wrote:

> Hi Mahesh and Ramith,
>
> Thanks for the references. I will go through those.
>
> @Ramith - If we can have a sample specific to multi tenancy support, it
> will be helpful to new users. Just an idea.
>
>
> On Thu, Feb 12, 2015 at 11:42 AM, Ramith Jayasinghe 
> wrote:
>
>> how about this :
>> https://docs.wso2.com/display/MB220/Multi-Tenancy+Support
>>
>> On Thu, Feb 12, 2015 at 11:11 AM, Mahesh Chinthaka 
>> wrote:
>>
>>> And this too... :)
>>> https://docs.wso2.com/display/MB220/JMS+Client+Samples
>>>
>>> On Thu, Feb 12, 2015 at 11:09 AM, Mahesh Chinthaka 
>>> wrote:
>>>
 Hi Megala,

 You may find these samples useful.


 https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription

 https://docs.wso2.com/display/MB220/Receiving+Messages+with+JMS+Message+Listener

 https://docs.wso2.com/display/MB220/Sending+and+Receiving+Messages+Using+Topics

 On Thu, Feb 12, 2015 at 10:55 AM, Megala Uthayakumar 
 wrote:

> Hi All,
>
> Is there are any sample codes in the existing documentation regarding
> the multi tenant topic and queue creation and subscription? I can not find
> the codes in the existing documentation[1].
> Can someone help me on this please?
>
> [1]
> https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation
>
> Thanks.
>
> Regards
> 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
>
>


 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ramith Jayasinghe
>> Technical Lead
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> E: ram...@wso2.com
>> P: +94 777542851
>>
>>
>
>
> --
> Megala Uthayakumar
> *Software Engineering Intern *| *WSO2 Lanka*
> Mobile : +94 779 967 122
> Tel  : +94 112 733 667
> E-mail :  meg...@wso2.com
>



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

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB]Multi tenant topic and queue creation and subscription

2015-02-11 Thread Megala Uthayakumar
Hi Mahesh and Ramith,

Thanks for the references. I will go through those.

@Ramith - If we can have a sample specific to multi tenancy support, it
will be helpful to new users. Just an idea.


On Thu, Feb 12, 2015 at 11:42 AM, Ramith Jayasinghe  wrote:

> how about this : https://docs.wso2.com/display/MB220/Multi-Tenancy+Support
>
> On Thu, Feb 12, 2015 at 11:11 AM, Mahesh Chinthaka 
> wrote:
>
>> And this too... :)
>> https://docs.wso2.com/display/MB220/JMS+Client+Samples
>>
>> On Thu, Feb 12, 2015 at 11:09 AM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi Megala,
>>>
>>> You may find these samples useful.
>>>
>>> https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription
>>>
>>> https://docs.wso2.com/display/MB220/Receiving+Messages+with+JMS+Message+Listener
>>>
>>> https://docs.wso2.com/display/MB220/Sending+and+Receiving+Messages+Using+Topics
>>>
>>> On Thu, Feb 12, 2015 at 10:55 AM, Megala Uthayakumar 
>>> wrote:
>>>
 Hi All,

 Is there are any sample codes in the existing documentation regarding
 the multi tenant topic and queue creation and subscription? I can not find
 the codes in the existing documentation[1].
 Can someone help me on this please?

 [1]
 https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation

 Thanks.

 Regards
 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


>>>
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>
>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>
>


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


Re: [Dev] [BAM] java.io.UTFDataFormatException after deploying KPI_Registry_Activity.tbox in BAM

2015-02-11 Thread Gokul Balakrishnan
Hi Shavantha,

Since we inherit H2 from the kernel, it'll have to be done in the carbon
core level.

Thanks,

On 12 February 2015 at 05:45, Shavantha Weerasinghe 
wrote:

> Hi Gokul
>
> As mentiond since BAM uses an older version oh H2  will this DB be updated
>
> Regards,shavantha
> On 11 Feb 2015 18:03, "Gokul Balakrishnan"  wrote:
>
>> Hi Thusitha,
>>
>> This is a harmless warning that can be ignored. The root cause is the H2
>> database erroneously writing this warning to stdout [1] which was fixed in
>> a later version (1.3.164). But since we (BAM) use an older version of H2
>> from the platform, this warning will be thrown intermittently.
>>
>> Thanks,
>>
>> [1] http://code.google.com/p/h2database/issues/detail?id=374
>>
>> On 11 February 2015 at 17:52, Thayalan  wrote:
>>
>>> The issue that you have observed is an intermittent issue and we did see
>>> at times during the release testing. This is already reported.
>>>
>>> If you could consistently reproduce the issue please update the public
>>> JIRA [1]
>>>
>>> 1. https://wso2.org/jira/browse/BAM-580
>>> 
>>>
>>> On Wed, Feb 11, 2015 at 2:30 PM, Hasanthi Purnima Dissanayake <
>>> hasan...@wso2.com> wrote:
>>>
 Hi Thusitha,
 I also tried the same sample. I got below errors in the started BAM
 console. But I got the output as mentioned in the documentation.

 FAILED: Execution Error, return code 1 from
 org.apache.hadoop.hive.ql.exec.DDLTask
 [2015-02-11 14:26:45,034] ERROR {org.apache.hadoop.hive.ql.Driver} -
 FAILED: Execution Error, return code 1 from
 org.apache.hadoop.hive.ql.exec.DDLTask
 [2015-02-11 14:26:45,035] ERROR
 {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
 executing query: Query returned non-zero code: 9, cause: FAILED: Execution
 Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 at
 org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 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)
 [2015-02-11 14:26:45,035] ERROR
 {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
 while executing Hive script.
 Query returned non-zero code: 9, cause: FAILED: Execution Error, return
 code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 at
 org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 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)
 [2015-02-11 14:26:45,036] ERROR
 {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} -  Error while
 executing script : registry_activity_script
 org.wso2.carbon.analytics.hive.exception.HiveExecutionException: Error
 while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl.execute(HiveExecutorServiceImpl.java:117)
 at
 org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask.execute(HiveScriptExecutorTask.java:70)
 at
 org.wso2.carbon.ntask.core.impl.Tas

[Dev] CSS overriding issue while using two JS libraries.

2015-02-11 Thread Mohammed Fawsan
I have been trying to create a Grid with Gridster .js,
 The Grid also uses Bootstrap. I have used a tabbed nav bar for navigation.
They both use li items to add the items. And when I include both gridster &
bootstrap CSS files, gridster somehow overrides the bootstrap CSS and it
ruins the tabbed menu of bootstrap. What can I do to keep the styles for
both li items?

PS : I have tried re arranging the order of both CSS files, It did not work
as well.

HTML structure of gridster div








HTML Structure of bootstrap div


  ...
  

  Dropdown 


  ...

  
  ...



-Regards
-- 
Mohammed Fawsan
Software Engineering Intern,
Faculty of Engineering, University of Peradeniya.
+94771121195
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB Proxy service invocation error | Error while building Passthrough stream - DOCTYPE Return not allowed

2015-02-11 Thread Akila Nimantha [IT/EKO/LOITS]
Hi all,

I am using wso2 ESB 4.8.1 server. I am trying to access proxy service created 
using ESB and it gives me some error " Error while building Passthrough stream 
- DOCTYPE is not allowed ". full error log is below. Also I tried adding 
http://api.soundcloud.com/>" scope="axis2"/> inside the 
 tag and I tried adding true after the  tag 
but still give me the same error. Please check attached xml file for my proxy 
service. Highlighted part is my service request which I got using log mediator.
Is there anything to resolve this problem

TID: [0] [ESB] [2015-02-12 11:26:42,785]  INFO 
{org.apache.synapse.mediators.builtin.LogMediator} -  To: 
/services/paymentService.paymentServiceLolcSoap11Endpoint, WSAction: 
http://webservice.ceb/PaymentsWebService/validateAccountNo, SOAPAction: 
http://webservice.ceb/PaymentsWebService/validateAccountNo, MessageID: 
urn:uuid:883fa9a8-daac-42ce-97cc-49ec96b9220f, Direction: request, Envelope: 
http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:pay="http://webservice.ceb/PaymentsWebService/";>
  
 
 1234567895
  

{org.apache.synapse.mediators.builtin.LogMediator}
TID: [0] [ESB] [2015-02-12 11:26:42,831] ERROR 
{org.apache.synapse.transport.passthru.util.RelayUtils} -  Error while building 
Passthrough stream {org.apache.synapse.transport.passthru.util.RelayUtils}
org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: 
ParseError at [row,col]:[1,110]
Message: DOCTYPE is not allowed
   at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:154)
   at 
org.apache.axiom.om.impl.AbstractOMMetaFactory.createStAXSOAPModelBuilder(AbstractOMMetaFactory.java:73)
   at 
org.apache.axiom.om.impl.AbstractOMMetaFactory.createSOAPModelBuilder(AbstractOMMetaFactory.java:79)
   at 
org.apache.axiom.om.OMXMLBuilderFactory.createSOAPModelBuilder(OMXMLBuilderFactory.java:196)
   at 
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:55)
   at 
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
   at 
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107)
   at 
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
   at 
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
   at 
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
   at 
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
   at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:268)
   at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
   at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
   at 
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
   at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,110]
Message: DOCTYPE is not allowed
   at 
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:598)
   at 
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
   at 
org.apache.axiom.util.stax.dialect.DisallowDoctypeDeclStreamReaderWrapper.next(DisallowDoctypeDeclStreamReaderWrapper.java:34)
   at 
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
   at 
org.apache.axiom.util.stax.dialect.SJSXPStreamReaderWrapper.next(SJSXPStreamReaderWrapper.java:138)
   at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
   at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
   ... 21 more
TID: [0] [ESB] [2015-02-12 11:26:42,832] ERROR 
{org.apache.synapse.mediators.base.SequenceMediator} -  Error while building 
message {org.apache.synapse.mediators.base.SequenceMediator}
org.apache.axis2.AxisFault: Error while building Passthrough stream
   at 
org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:236)
   at 
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:111)
   at 
or

Re: [Dev] G-Reg internal API store and publisher are not working

2015-02-11 Thread Supun Malinga
Hi,

I got the same issue in AS and couldn't find any reason for the issue.
Publisher app gives a blank page and there aren't any error anywhere (log
or js console). Also some tabs in store is not working (un-clickable).
Today I looked into this with Lalaji but we still couldn't isolate the
issue.
We tried to copy a working publisher app from AM to AS and still got the
same issue. Since same issue is there is in Greg it seems there is some
issue in a common place.

thanks,

On Mon, Feb 9, 2015 at 4:58 PM, Chandana Napagoda  wrote:

> HI Joe,
>
> I manually copied encode module as well as encode lib to the product, and
> now I am getting the attached exception.
>
> However shall we add these modules to carbon-apimgt repo as well?
>
> Regards,
> Chandana
>
> On Mon, Feb 9, 2015 at 4:12 PM, Joseph Fonseka  wrote:
>
>> Hi Chandana
>>
>> Please try including jaggery encode module which you can find in [1]
>>
>>
>>
>> [1]
>> https://github.com/wso2/product-apim/tree/master/modules/jaggery/encode
>>
>> On Mon, Feb 9, 2015 at 3:29 PM, Chandana Napagoda 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> In G-Reg, internal API Store and Publisher applications are not
>>> functioning at all at the moment. If we access the "productapipublisher"
>>> app, attached exception is logged. According to the logs, some jaggery
>>> modules are missing. These modules are currently not available in the
>>> carbon-apimgt repo. However they are in the product-apim repo. So shall we
>>> make these modules available in carbon-apimgt repo as well?
>>>
>>> Also, even after copying relevant modules still "productapipublisher"
>>> and "productapistore" applications are not working and no exceptions are
>>> logged. Can you guys please have a look?
>>>
>>> Regards,
>>> Chandana
>>>
>>> --
>>> *Chandana Napagoda*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.org
>>>
>>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>>> <%2B94718169299>*
>>>
>>> *Blog  :http://cnapagoda.blogspot.com
>>> *
>>>
>>>
>>
>>
>> --
>>
>> --
>> *Joseph Fonseka*
>>  WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 772 512 430
>> skype: jpfonseka
>>
>> * *
>>
>>
>
>
> --
> *Chandana Napagoda*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com **Mobile : +94718169299
> <%2B94718169299>*
>
> *Blog  :http://cnapagoda.blogspot.com *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

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


Re: [Dev] [MB]Multi tenant topic and queue creation and subscription

2015-02-11 Thread Ramith Jayasinghe
how about this : https://docs.wso2.com/display/MB220/Multi-Tenancy+Support

On Thu, Feb 12, 2015 at 11:11 AM, Mahesh Chinthaka  wrote:

> And this too... :)
> https://docs.wso2.com/display/MB220/JMS+Client+Samples
>
> On Thu, Feb 12, 2015 at 11:09 AM, Mahesh Chinthaka 
> wrote:
>
>> Hi Megala,
>>
>> You may find these samples useful.
>>
>> https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription
>>
>> https://docs.wso2.com/display/MB220/Receiving+Messages+with+JMS+Message+Listener
>>
>> https://docs.wso2.com/display/MB220/Sending+and+Receiving+Messages+Using+Topics
>>
>> On Thu, Feb 12, 2015 at 10:55 AM, Megala Uthayakumar 
>> wrote:
>>
>>> Hi All,
>>>
>>> Is there are any sample codes in the existing documentation regarding
>>> the multi tenant topic and queue creation and subscription? I can not find
>>> the codes in the existing documentation[1].
>>> Can someone help me on this please?
>>>
>>> [1]https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation
>>>
>>> Thanks.
>>>
>>> Regards
>>> 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
>>>
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][BAM] Who is the owner and users of BAM Presentation Service Stub?

2015-02-11 Thread Sinthuja Ragendran
Hi,

Sorry for the delayed response. AFAIR the above stub is obsolete now, and
it was used by old  BAM2-Alpha initial implementation (where there was our
own analytics engine, and all). I don't think it make sense to even have
this component in the carbon-apimgt.

@Nuwan, Are you really using this stub in API-mgt component? :)

Thanks,
Sinthuja.

On Wed, Feb 11, 2015 at 1:58 PM, Nuwan Dias  wrote:

> Yes, since its ownership wasn't claimed by anybody we moved the source
> inside carbon-apimgt.
>
> Thanks,
> NuwanD.
>
> On Wed, Feb 11, 2015 at 1:50 PM, Srinath Perera  wrote:
>
>> is this resolved?
>>
>> On Thu, Feb 5, 2015 at 4:16 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi Sinthuja/Inosh
>>>
>>> Do you have any idea, who is the owner of the following module[1]?
>>>
>>> And which are the products using this module? As I grep for the
>>> artifactId, API-M and AppM using this.
>>>
>>> I want to know the functionality of this stub in APIM and AppM. This is
>>> not moved to git or nobody claim for the ownership of this module.
>>>
>>>
>>>
>>>
>>> [1] :
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/service-stubs/org.wso2.carbon.bam.presentation.stub
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>
>>
>> --
>> 
>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>> Site: http://people.apache.org/~hemapani/
>> Photos: http://www.flickr.com/photos/hemapani/
>> Phone: 0772360902
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
*Sinthuja Rajendran*
Senior Software Engineer 
WSO2, Inc.:http://wso2.com

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


Re: [Dev] How to add resources to carbon kernel

2015-02-11 Thread Shiva Balachandran
Hi Irham,

What is the resource you have to add? If it is a config file for some third
party jars( refer to [1]) or if can you elaborate on the resource.

[1] -
https://docs.wso2.com/display/Carbon430/Config+Files+for+Third+Party+JARs

Thank you,

Regards

On Thu, Feb 12, 2015 at 11:08 AM, Irham Iqbal  wrote:

> Hi,
>
> I am writing test case for --cleanRegistry server start up argument on
> kernel level. In order to that i have to add a resource to wso2carbon-core
> pack what is the best way to do that. your suggestions would be highly
> appreciated
>
> Thanks,
> Iqbal
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
Blog - https://shivabalachandran.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB]Multi tenant topic and queue creation and subscription

2015-02-11 Thread Mahesh Chinthaka
And this too... :)
https://docs.wso2.com/display/MB220/JMS+Client+Samples

On Thu, Feb 12, 2015 at 11:09 AM, Mahesh Chinthaka  wrote:

> Hi Megala,
>
> You may find these samples useful.
>
> https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription
>
> https://docs.wso2.com/display/MB220/Receiving+Messages+with+JMS+Message+Listener
>
> https://docs.wso2.com/display/MB220/Sending+and+Receiving+Messages+Using+Topics
>
> On Thu, Feb 12, 2015 at 10:55 AM, Megala Uthayakumar 
> wrote:
>
>> Hi All,
>>
>> Is there are any sample codes in the existing documentation regarding the
>> multi tenant topic and queue creation and subscription? I can not find the
>> codes in the existing documentation[1].
>> Can someone help me on this please?
>>
>> [1]https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation
>>
>> Thanks.
>>
>> Regards
>> 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
>>
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB]Multi tenant topic and queue creation and subscription

2015-02-11 Thread Mahesh Chinthaka
Hi Megala,

You may find these samples useful.

https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription
https://docs.wso2.com/display/MB220/Receiving+Messages+with+JMS+Message+Listener
https://docs.wso2.com/display/MB220/Sending+and+Receiving+Messages+Using+Topics

On Thu, Feb 12, 2015 at 10:55 AM, Megala Uthayakumar 
wrote:

> Hi All,
>
> Is there are any sample codes in the existing documentation regarding the
> multi tenant topic and queue creation and subscription? I can not find the
> codes in the existing documentation[1].
> Can someone help me on this please?
>
> [1]https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation
>
> Thanks.
>
> Regards
> 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
>
>


-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to add resources to carbon kernel

2015-02-11 Thread Irham Iqbal
Hi,

I am writing test case for --cleanRegistry server start up argument on
kernel level. In order to that i have to add a resource to wso2carbon-core
pack what is the best way to do that. your suggestions would be highly
appreciated

Thanks,
Iqbal

-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DevStudio] Errors when creating JAX_RS service from Developer Studio

2015-02-11 Thread Awanthika Senarath
Hi Kala,

Just to clarify.. this happens when try to deploy an Jax-Rs project with no
resource methods in the class.
This appears to be a bug with developer studio template on Jax-Rs project
creation.

I have created a public Jira [1]  on this..

thanks Kala for finding this out

[1] https://wso2.org/jira/browse/TOOLS-2697

regards
Awanthika

On Thu, Feb 12, 2015 at 9:29 AM, Awanthika Senarath 
wrote:

> thanks Kala..
>
> regards
> Awanthika
>
> On Thu, Feb 12, 2015 at 9:24 AM, Kala Weerawardana  wrote:
>
>> Hi Awanthika,
>>
>> Yes I work in Mac OS. OS X - version 10.9.5
>>
>> .war files are attached here with to relevant for [1] and [2].
>>
>> Thanks,
>> Kala
>>
>> On Thu, Feb 12, 2015 at 9:13 AM, Awanthika Senarath 
>> wrote:
>>
>>> Hi Kala,
>>>
>>> It works fine in ubuntu, could you please verify whether you are working
>>> in mac OS. specify your OS version and attach your war file here, for
>>> further investigation?
>>>
>>> regards
>>> Awanthika
>>>
>>>
>>>
>>> On Thu, Feb 12, 2015 at 8:45 AM, Kala Weerawardana 
>>> wrote:
>>>
 Hi,

 I created a JAX_RS service project using Developer Studio and when I
 try to deploy it in WSO2 Application Server [1] occurred.

 Then I removed  and >>> id="sudentDataBean" class="org.wso2.data.SudentData"/> from cfx-servlet.xml
 and deployed again.

 Then the [2] occurred. I tried fixing this but I couldn't.


 Also I have tried building JAX_RS service through Eclipse and IDEA and 
 deploying
 it in AS, it worked and when it comes to Developer Studio it didn't.

 Can any one please help me with this?


 Thanks,
 Kala
 --
 Kala C. Weerawardana
 *Software Engineer - QA Team*
 *WSO2 Inc. *
 Mobile :  +94 (0) 716189886 +94 (0) 772877683
 Blog : http://castakai.blogspot.com
 k...@wso2.com

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


>>>
>>>
>>> --
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>
>>
>> --
>> Kala C. Weerawardana
>> *Software Engineer - QA Team*
>> *WSO2 Inc. *
>> Mobile :  +94 (0) 716189886 +94 (0) 772877683
>> Blog : http://castakai.blogspot.com
>> k...@wso2.com
>>
>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DevStudio] Errors when creating JAX_RS service from Developer Studio

2015-02-11 Thread Kala Weerawardana
Hi Awanthika,

I will look in to this further more. As I told you in the offline
discussion there were problems with building the projects too.

Thanks :)

On Thu, Feb 12, 2015 at 10:52 AM, Awanthika Senarath 
wrote:

> Hi Kala,
>
> Just to clarify.. this happens when try to deploy an Jax-Rs project with
> no resource methods in the class.
> This appears to be a bug with developer studio template on Jax-Rs project
> creation.
>
> I have created a public Jira [1]  on this..
>
> thanks Kala for finding this out
>
> [1] https://wso2.org/jira/browse/TOOLS-2697
>
> regards
> Awanthika
>
> On Thu, Feb 12, 2015 at 9:29 AM, Awanthika Senarath 
> wrote:
>
>> thanks Kala..
>>
>> regards
>> Awanthika
>>
>> On Thu, Feb 12, 2015 at 9:24 AM, Kala Weerawardana  wrote:
>>
>>> Hi Awanthika,
>>>
>>> Yes I work in Mac OS. OS X - version 10.9.5
>>>
>>> .war files are attached here with to relevant for [1] and [2].
>>>
>>> Thanks,
>>> Kala
>>>
>>> On Thu, Feb 12, 2015 at 9:13 AM, Awanthika Senarath 
>>> wrote:
>>>
 Hi Kala,

 It works fine in ubuntu, could you please verify whether you are
 working in mac OS. specify your OS version and attach your war file here,
 for further investigation?

 regards
 Awanthika



 On Thu, Feb 12, 2015 at 8:45 AM, Kala Weerawardana 
 wrote:

> Hi,
>
> I created a JAX_RS service project using Developer Studio and when I
> try to deploy it in WSO2 Application Server [1] occurred.
>
> Then I removed  and  id="sudentDataBean" class="org.wso2.data.SudentData"/> from 
> cfx-servlet.xml
> and deployed again.
>
> Then the [2] occurred. I tried fixing this but I couldn't.
>
>
> Also I have tried building JAX_RS service through Eclipse and IDEA
> and deploying it in AS, it worked and when it comes to Developer
> Studio it didn't.
>
> Can any one please help me with this?
>
>
> Thanks,
> Kala
> --
> Kala C. Weerawardana
> *Software Engineer - QA Team*
> *WSO2 Inc. *
> Mobile :  +94 (0) 716189886 +94 (0) 772877683
> Blog : http://castakai.blogspot.com
> k...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



>>>
>>>
>>> --
>>> Kala C. Weerawardana
>>> *Software Engineer - QA Team*
>>> *WSO2 Inc. *
>>> Mobile :  +94 (0) 716189886 +94 (0) 772877683
>>> Blog : http://castakai.blogspot.com
>>> k...@wso2.com
>>>
>>
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


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


[Dev] [MB]Multi tenant topic and queue creation and subscription

2015-02-11 Thread Megala Uthayakumar
Hi All,

Is there are any sample codes in the existing documentation regarding the
multi tenant topic and queue creation and subscription? I can not find the
codes in the existing documentation[1].
Can someone help me on this please?

[1]https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation

Thanks.

Regards
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


Re: [Dev] [ESB] Eror Setting up Deployment Synchronizer for Manager Node

2015-02-11 Thread Maheeka Jayasuriya
Hi Aruna,

DepSync is now working successfully in M7 pack. Thanks.


Thanks,

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

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

> In the attached worker's carbon.xml, the value
>
> true
>
> This should be false since this is the worker node.
>
>
> On Tue, Feb 10, 2015 at 9:45 AM, Maheeka Jayasuriya 
> wrote:
>
>> Hi Aruna,
>>
>> Please find the carbon.xml of the worker node herewith attached. M7 pack
>> can be downloaded from [1]
>>
>> [1] https://svn.wso2.org/repos/wso2/people/chanakaf/M7
>> -packs/wso2esb-4.9.0-M7-SNAPSHOT.zip
>>
>>
>> Thanks,
>>
>> Maheeka Jayasuriya
>> Software Engineer
>> Mobile : +9450661
>>
>> On Mon, Feb 9, 2015 at 10:11 PM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Mon, Feb 9, 2015 at 3:13 PM, Maheeka Jayasuriya 
>>> wrote:
>>>
 Hi,

 I redid the setup using ESB M7 pack and the updated
 svn-client-adapter-1.10.5.wso2v1 and svnClientBundle-1.0.0 as suggested by
 Aruna.

 The manager node is working fine and syncs the artifacts to svn
 successfully. However, I am getting error [2] and at times [3] on worker
 node. In [3], the worker node is trying to commit to svn which shouldn't be
 the case for a worker node? [2] is after i replaced deployment/server with
 a fresh copy from the release.

>>>
>>> Can you share the carbon.xml file of the worker node. Remove the
>>> credentials before sharing.
>>> At the meantime share the ESB M7 location to download.
>>>
>>>

 I followed clustering guide in [1] , without ELB.

 [1] https://docs.wso2.com/display/CLUSTER420/Clustering+ESB

 [2]

 [2015-02-09 15:08:14,111] ERROR - SequenceDeploymentInterceptor
 Sequence Undeployement of sequence named : fault : Failed
 org.apache.synapse.deployers.SynapseArtifactDeploymentException: Cannot
 Undeploy the fault sequence
 at
 org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:468)
 at
 org.apache.synapse.deployers.SequenceDeployer.undeploySynapseArtifact(SequenceDeployer.java:155)
 at
 org.wso2.carbon.sequences.SequenceDeploymentInterceptor.undeploySynapseArtifact(SequenceDeploymentInterceptor.java:56)
 at
 org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.undeploy(AbstractSynapseArtifactDeployer.java:309)
 at
 org.apache.axis2.deployment.DeploymentEngine.unDeploy(DeploymentEngine.java:942)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:143)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
 at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
 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)
 [2015-02-09 15:08:14,113] ERROR - AbstractSynapseArtifactDeployer
 Unable to undeploy the artifact from file :
 /Users/maheeka/ESB_WORK/M7_Cluster/worker1/repository/deployment/server/synapse-configs/default/sequences/fault.xml
 org.apache.synapse.deployers.SynapseArtifactDeploymentException:
 Sequence Undeployement of sequence named : fault : Failed
 at
 org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.handleSynapseArtifactDeploymentError(AbstractSynapseArtifactDeployer.java:473)
 at
 org.apache.synapse.deployers.SequenceDeployer.undeploySynapseArtifact(SequenceDeployer.java:172)
 at
>

Re: [Dev] link to sample sources gives 404 error

2015-02-11 Thread Kalpa Welivitigoda
Sry, I thought it was the samples page you are referring, my mistake.

@Ruchira, please find the PR [1] for fixing the source links for samples.

[1] https://github.com/wso2/product-jaggery/pull/1

On Thu, Feb 12, 2015 at 2:05 AM, Kalpa Welivitigoda  wrote:

> Hi Lakshman,
>
> I just tried and works fine for me.
>
> On Wed, Feb 11, 2015 at 5:51 PM, Lakshman Udayakantha 
> wrote:
>
>> Hi All,
>>
>> It seams $subject appeared in [1].
>>
>> [1]http://jaggeryjs.org/samples.jag
>>
>> Thanks
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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


Re: [Dev] [GReg] Pull Request: Impact Analysis Feature UI Revamp & Improvement

2015-02-11 Thread Jerad Rutnam
Sorry for typing error "*Remmoved" :)*

On Thu, Feb 12, 2015 at 10:21 AM, Jerad Rutnam  wrote:

> Hi G-Reg Team,
>
> Please check and merge the PR [1].
>
>
> *Revamp:**- Changed appearance of the base UI to a darker theme to blend
> with new ES UI*
>
>
> *Improved:*
> *- zoomFit to screen feature with auto center**- Some styles and
> functions tweaks*
>
>
> *Added:*
> *- Export graph to a png image feature*
> *- External svg icons reading function to the graph**- Feature to fit the
> graph to screen on initial load (Disabled at the moment)*
>
>
> *Removed:*
> *- Removed some old images which are not using**- Remmoved functions
> which are not using in impactAnalysis.js*
>
>
> *Added Files:*
> *- svgenie.js [2] (Library to convert svg to canvas in client side and
> export to a.png file)**- canvg.js **[3] *
> *(svgenie library dependency)**- rgbcolor.js **(**canvg.js* *dependency*
> *)**- StackBlur.js **(**canvg.js* *dependency*
> *)- flashcanvas.js + flashcanvas.swf (**canvg.js* *dependency*
> *)**- jquery.inlineStyler.min.js **[4]*
> * (To make external computed styles to inline on svg to canvas conversion)**-
> Sample SVG icons to the graph file types*
> [1] https://github.com/wso2/product-greg/pull/34
> [2] https://github.com/Causata/svgenie - LICENSE FREE
> [3] https://github.com/gabelerner/canvg - MIT-LICENSE
> [4] https://github.com/Karl33to/jquery.inlineStyler  - MIT-LICENSE
>
> Thanks,
> Jerad
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GReg] Pull Request: Impact Analysis Feature UI Revamp & Improvement

2015-02-11 Thread Jerad Rutnam
Hi G-Reg Team,

Please check and merge the PR [1].


*Revamp:**- Changed appearance of the base UI to a darker theme to blend
with new ES UI*


*Improved:*
*- zoomFit to screen feature with auto center**- Some styles and functions
tweaks*


*Added:*
*- Export graph to a png image feature*
*- External svg icons reading function to the graph**- Feature to fit the
graph to screen on initial load (Disabled at the moment)*


*Removed:*
*- Removed some old images which are not using**- Remmoved functions which
are not using in impactAnalysis.js*


*Added Files:*
*- svgenie.js [2] (Library to convert svg to canvas in client side and
export to a.png file)**- canvg.js **[3] *
*(svgenie library dependency)**- rgbcolor.js **(**canvg.js* *dependency*
*)**- StackBlur.js **(**canvg.js* *dependency*
*)- flashcanvas.js + flashcanvas.swf (**canvg.js* *dependency*
*)**- jquery.inlineStyler.min.js **[4]*
* (To make external computed styles to inline on svg to canvas conversion)**-
Sample SVG icons to the graph file types*
[1] https://github.com/wso2/product-greg/pull/34
[2] https://github.com/Causata/svgenie - LICENSE FREE
[3] https://github.com/gabelerner/canvg - MIT-LICENSE
[4] https://github.com/Karl33to/jquery.inlineStyler  - MIT-LICENSE

Thanks,
Jerad
-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Improve reading datasources in AF

2015-02-11 Thread Danushka Fernando
Say for instance datasources saved to the gov registry. But then we need to
have customized version of datasource components to save and read from gov
registry.
IMO we can have an entry in AF database as same as Databases story and use
that to read. So remote call will only occur when some one creates a
datasource. WDYT?

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

On Thu, Feb 12, 2015 at 9:02 AM, Amalka Subasinghe  wrote:

>
> Hi,
>
> The error specified in the Jira [1] has occurred while reading datasources
> from App Servers.
>
> I got AF logs from AF M6 installed production environment and when
> analyzing, following error message was found. It seems like the error has
> occurred due to app servers was being busy while reading datasources.
>
> TID: [0] [AF] [2015-02-10 00:00:18,572]  INFO
> {org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
> url[
> https://appserver.dev.cloud.wso2.com/services/AppFactoryNDataSourceAdmin]
> {org.apache.axis2.transport.http.HTTPSender}
> java.net.SocketTimeoutException: Read timed out
>
>  How to fix this?
>
> - Reduce the number of times we do remote calls to load datasources.
> Already done in M7.
> - Eliminate the remote calls to the datasources. Can be down with two
> ways.
>  1 - By storing datasoruces in governance registry - [2]
>  2 - By storing in AF database
>
> [1] https://wso2.org/jira/browse/APPFAC-2681
> [2] https://wso2.org/jira/browse/WSAS-1895
>
> Thanks
> Amalka
>
>
> ___
> 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] [DEV] Getting Super Tenant Admin Name

2015-02-11 Thread Danushka Fernando
You can use TenantManager.getTenant(tenantID).getAdminName() as well.

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

On Thu, Feb 12, 2015 at 10:05 AM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi Ajith,
>
> Yes, was able to retrieve it from CarbonContext. Thanks.
>
> CarbonContext carbonContext =
> CarbonContext.getThreadLocalCarbonContext();
> try {
> String adminUserName =
> carbonContext.getUserRealm().getRealmConfiguration().getAdminUserName();
>
> Akalanka.
>
> On Thu, Feb 12, 2015 at 8:46 AM, Ajith Vitharana  wrote:
>
>> [1]https://docs.wso2.com/display/Carbon420/CarbonContext+API
>>
>> -Ajith
>>
>> On Wed, Feb 11, 2015 at 10:13 PM, Akalanka Pagoda Arachchi <
>> darsha...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> Super tenant admin name is 'admin'. Is there a way to programatically
>>> retrieve this without hardcoding it?
>>>
>>> Thanks,
>>> Akalanka.
>>>
>>> --
>>> *Darshana Akalanka Pagoda Arachchi,*
>>> *Software Engineer*
>>> *078-4721791 <078-4721791>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +1-812-360-5335
>>
>>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791*
>
> ___
> 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] [DEV] Getting Super Tenant Admin Name

2015-02-11 Thread Akalanka Pagoda Arachchi
Hi Ajith,

Yes, was able to retrieve it from CarbonContext. Thanks.

CarbonContext carbonContext =
CarbonContext.getThreadLocalCarbonContext();
try {
String adminUserName =
carbonContext.getUserRealm().getRealmConfiguration().getAdminUserName();

Akalanka.

On Thu, Feb 12, 2015 at 8:46 AM, Ajith Vitharana  wrote:

> [1]https://docs.wso2.com/display/Carbon420/CarbonContext+API
>
> -Ajith
>
> On Wed, Feb 11, 2015 at 10:13 PM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> Hi all,
>>
>> Super tenant admin name is 'admin'. Is there a way to programatically
>> retrieve this without hardcoding it?
>>
>> Thanks,
>> Akalanka.
>>
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Software Engineer*
>> *078-4721791 <078-4721791>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +1-812-360-5335
>
>


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


Re: [Dev] Continuing the feature - Discover JAX-WS services by G-reg

2015-02-11 Thread Kalpa Welivitigoda
[moving the discussion back to dev@, at some point it has dropped from dev@]

On Thu, Feb 12, 2015 at 9:59 AM, Kasun Gajasinghe  wrote:

> Why is this private? Please move to dev.
>
>
> On Feb 12, 2015, at 2:03 AM, Kalpa Welivitigoda  wrote:
>
> Hi Kasun,
>
> Based on the offline chat we had yesterday, I went through the jxws xsd
> [1] and found that none of the attributes defined for either endpoint or
> servers are mandatory (we set the "use" attribute to "required" [2] to make
> the attribute mandatory).
>
> This means that there's a chance that the serviceClass (in the case of
> server) and the implementor (in the case of endpoints) may not be defined
> in the cxf-servlet.xml. In such a scenario, our suggestion to find the
> serviceClass/implementor from the cxf-servlet.xml (without parsing all the
> classes) fails. So I think to cater all possible scenarios, we better stick
> with the current implementation of scanning all the classes (inside
> WEB-INF/classes) for the @WebService annotation. WDYT?
>
> With regard to the name of the services/endpoints, I tried deploying
> without a serviceName defined either in the cxf-servlet.xml or in the
> service class, in this case the service name is set as "implementation
> class name + 'Service'" - ex: HelloWorldImplService. I think we are good to
> follow a similar approach, i.e. if the serviceName is defined either in
> cxf-servlet.xml or in the service class itself, use "context path -
> serviceName" as the name of the service or else use "context path - service
> implementation class name"
>
> [1] http://cxf.apache.org/schemas/jaxws.xsd
> [2] http://www.w3schools.com/schema/schema_simple_attributes.asp
>
> On Wed, Feb 11, 2015 at 8:08 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Pubudu,
>>
>> I'll continue with the improvements and will ping you if anything to be
>> clarified.
>>
>> On Tuesday, February 10, 2015, Pubudu Dissanayake 
>> wrote:
>>
>>> Sorry for the delay, I'm on study leave till this friday. Therefore I
>>> won't be able to do any improvements on that task.  If it is urgent please
>>> hand over it to somebody else
>>>
>>> Thanks
>>> Pubudu
>>>
>>> On Tue, Feb 10, 2015 at 11:46 AM, KasunG Gajasinghe 
>>> wrote:
>>>
 Adding Kalpa.

 On Mon, Jan 19, 2015 at 12:25 PM, KasunG Gajasinghe 
 wrote:

> Hi Pubudu,
>
> This feature is in a working state, so you can test it out how it
> works. Following are the improvements needed for this feature.
>
> 1. Instead of traversing the whole WEB-INF/classes for jax-ws services
> with @WebService annotation, we should read the cxf-servlet.xml to find 
> out
> the resource classes.
>
> I have used a library called scannotation to traverse, but with the
> above change, we don't need to depend on that.
>
> 2. Support ws-discovery for webapps with multiple jax-ws services.
>
> 3. Test the ws-discovery bye message when a webapp is deleted. This
> doesn't seem to work since we currently try to read the webapp folder to
> gather some details.
>
> The code can be found here [1]
>
> [1]
> https://github.com/wso2/carbon-deployment/tree/master/components/webapp-mgt/org.wso2.carbon.discovery.cxf
>
> Regards,
> KasunG
>
>
> --
>
> *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
>
>
>



 --

 *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



>>>
>>>
>>>
>>> --
>>> *Pubudu Dissanayake*
>>>  Software Engineer
>>>
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Mob: + 94 775 503 304
>>>
>>> Blog: http://geekdetected.wordpress.com/
>>> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
>>> 
>>> Flickr : https://www.flickr.com/photos/pubudufx/
>>> Twitter: https://twitter.com/GeekInAction
>>>
>>>
>>
>> --
>> 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
>
>


-- 
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] [DevStudio] Errors when creating JAX_RS service from Developer Studio

2015-02-11 Thread Awanthika Senarath
thanks Kala..

regards
Awanthika

On Thu, Feb 12, 2015 at 9:24 AM, Kala Weerawardana  wrote:

> Hi Awanthika,
>
> Yes I work in Mac OS. OS X - version 10.9.5
>
> .war files are attached here with to relevant for [1] and [2].
>
> Thanks,
> Kala
>
> On Thu, Feb 12, 2015 at 9:13 AM, Awanthika Senarath 
> wrote:
>
>> Hi Kala,
>>
>> It works fine in ubuntu, could you please verify whether you are working
>> in mac OS. specify your OS version and attach your war file here, for
>> further investigation?
>>
>> regards
>> Awanthika
>>
>>
>>
>> On Thu, Feb 12, 2015 at 8:45 AM, Kala Weerawardana  wrote:
>>
>>> Hi,
>>>
>>> I created a JAX_RS service project using Developer Studio and when I try
>>> to deploy it in WSO2 Application Server [1] occurred.
>>>
>>> Then I removed  and >> id="sudentDataBean" class="org.wso2.data.SudentData"/> from cfx-servlet.xml
>>> and deployed again.
>>>
>>> Then the [2] occurred. I tried fixing this but I couldn't.
>>>
>>>
>>> Also I have tried building JAX_RS service through Eclipse and IDEA and 
>>> deploying
>>> it in AS, it worked and when it comes to Developer Studio it didn't.
>>>
>>> Can any one please help me with this?
>>>
>>>
>>> Thanks,
>>> Kala
>>> --
>>> Kala C. Weerawardana
>>> *Software Engineer - QA Team*
>>> *WSO2 Inc. *
>>> Mobile :  +94 (0) 716189886 +94 (0) 772877683
>>> Blog : http://castakai.blogspot.com
>>> k...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> Kala C. Weerawardana
> *Software Engineer - QA Team*
> *WSO2 Inc. *
> Mobile :  +94 (0) 716189886 +94 (0) 772877683
> Blog : http://castakai.blogspot.com
> k...@wso2.com
>



-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DevStudio] Errors when creating JAX_RS service from Developer Studio

2015-02-11 Thread Kala Weerawardana
Hi Awanthika,

Yes I work in Mac OS. OS X - version 10.9.5

.war files are attached here with to relevant for [1] and [2].

Thanks,
Kala

On Thu, Feb 12, 2015 at 9:13 AM, Awanthika Senarath 
wrote:

> Hi Kala,
>
> It works fine in ubuntu, could you please verify whether you are working
> in mac OS. specify your OS version and attach your war file here, for
> further investigation?
>
> regards
> Awanthika
>
>
>
> On Thu, Feb 12, 2015 at 8:45 AM, Kala Weerawardana  wrote:
>
>> Hi,
>>
>> I created a JAX_RS service project using Developer Studio and when I try
>> to deploy it in WSO2 Application Server [1] occurred.
>>
>> Then I removed  and > id="sudentDataBean" class="org.wso2.data.SudentData"/> from cfx-servlet.xml
>> and deployed again.
>>
>> Then the [2] occurred. I tried fixing this but I couldn't.
>>
>>
>> Also I have tried building JAX_RS service through Eclipse and IDEA and 
>> deploying
>> it in AS, it worked and when it comes to Developer Studio it didn't.
>>
>> Can any one please help me with this?
>>
>>
>> Thanks,
>> Kala
>> --
>> Kala C. Weerawardana
>> *Software Engineer - QA Team*
>> *WSO2 Inc. *
>> Mobile :  +94 (0) 716189886 +94 (0) 772877683
>> Blog : http://castakai.blogspot.com
>> k...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
Kala C. Weerawardana
*Software Engineer - QA Team*
*WSO2 Inc. *
Mobile :  +94 (0) 716189886 +94 (0) 772877683
Blog : http://castakai.blogspot.com
k...@wso2.com


LibInfoManagementSystem_1.0.0.war
Description: Binary data


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


Re: [Dev] [DevStudio] Errors when creating JAX_RS service from Developer Studio

2015-02-11 Thread Awanthika Senarath
Hi Kala,

It works fine in ubuntu, could you please verify whether you are working in
mac OS. specify your OS version and attach your war file here, for further
investigation?

regards
Awanthika



On Thu, Feb 12, 2015 at 8:45 AM, Kala Weerawardana  wrote:

> Hi,
>
> I created a JAX_RS service project using Developer Studio and when I try
> to deploy it in WSO2 Application Server [1] occurred.
>
> Then I removed  and  id="sudentDataBean" class="org.wso2.data.SudentData"/> from cfx-servlet.xml
> and deployed again.
>
> Then the [2] occurred. I tried fixing this but I couldn't.
>
>
> Also I have tried building JAX_RS service through Eclipse and IDEA and 
> deploying
> it in AS, it worked and when it comes to Developer Studio it didn't.
>
> Can any one please help me with this?
>
>
> Thanks,
> Kala
> --
> Kala C. Weerawardana
> *Software Engineer - QA Team*
> *WSO2 Inc. *
> Mobile :  +94 (0) 716189886 +94 (0) 772877683
> Blog : http://castakai.blogspot.com
> k...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Improve reading datasources in AF

2015-02-11 Thread Amalka Subasinghe
Hi,

The error specified in the Jira [1] has occurred while reading datasources
from App Servers.

I got AF logs from AF M6 installed production environment and when
analyzing, following error message was found. It seems like the error has
occurred due to app servers was being busy while reading datasources.

TID: [0] [AF] [2015-02-10 00:00:18,572]  INFO
{org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
url[https://appserver.dev.cloud.wso2.com/services/AppFactoryNDataSourceAdmin]
{org.apache.axis2.transport.http.HTTPSender}
java.net.SocketTimeoutException: Read timed out

 How to fix this?

- Reduce the number of times we do remote calls to load datasources.
Already done in M7.
- Eliminate the remote calls to the datasources. Can be down with two ways.
 1 - By storing datasoruces in governance registry - [2]
 2 - By storing in AF database

[1] https://wso2.org/jira/browse/APPFAC-2681
[2] https://wso2.org/jira/browse/WSAS-1895

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


Re: [Dev] [BAM] java.io.UTFDataFormatException after deploying KPI_Registry_Activity.tbox in BAM

2015-02-11 Thread Thusitha Thilina Dayaratne
Hi All,

Thanks for the quick response. I was able to run the sample, though that
Exception get throws time to time.
Thanks and Regards

On Thu, Feb 12, 2015 at 5:45 AM, Shavantha Weerasinghe 
wrote:

> Hi Gokul
>
> As mentiond since BAM uses an older version oh H2  will this DB be updated
>
> Regards,shavantha
> On 11 Feb 2015 18:03, "Gokul Balakrishnan"  wrote:
>
>> Hi Thusitha,
>>
>> This is a harmless warning that can be ignored. The root cause is the H2
>> database erroneously writing this warning to stdout [1] which was fixed in
>> a later version (1.3.164). But since we (BAM) use an older version of H2
>> from the platform, this warning will be thrown intermittently.
>>
>> Thanks,
>>
>> [1] http://code.google.com/p/h2database/issues/detail?id=374
>>
>> On 11 February 2015 at 17:52, Thayalan  wrote:
>>
>>> The issue that you have observed is an intermittent issue and we did see
>>> at times during the release testing. This is already reported.
>>>
>>> If you could consistently reproduce the issue please update the public
>>> JIRA [1]
>>>
>>> 1. https://wso2.org/jira/browse/BAM-580
>>> 
>>>
>>> On Wed, Feb 11, 2015 at 2:30 PM, Hasanthi Purnima Dissanayake <
>>> hasan...@wso2.com> wrote:
>>>
 Hi Thusitha,
 I also tried the same sample. I got below errors in the started BAM
 console. But I got the output as mentioned in the documentation.

 FAILED: Execution Error, return code 1 from
 org.apache.hadoop.hive.ql.exec.DDLTask
 [2015-02-11 14:26:45,034] ERROR {org.apache.hadoop.hive.ql.Driver} -
 FAILED: Execution Error, return code 1 from
 org.apache.hadoop.hive.ql.exec.DDLTask
 [2015-02-11 14:26:45,035] ERROR
 {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
 executing query: Query returned non-zero code: 9, cause: FAILED: Execution
 Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 at
 org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 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)
 [2015-02-11 14:26:45,035] ERROR
 {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
 while executing Hive script.
 Query returned non-zero code: 9, cause: FAILED: Execution Error, return
 code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 at
 org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 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)
 [2015-02-11 14:26:45,036] ERROR
 {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} -  Error while
 executing script : registry_activity_script
 org.wso2.carbon.analytics.hive.exception.HiveExecutionException: Error
 while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
 Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
 at
 org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl.execute(HiveExecutorServiceImpl.java:117)
 at
 org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask.execute(HiveScriptExecutorTask.java:70)
 at
 org.w

Re: [Dev] No Established Sessions corresponding to Session Indexes provided.

2015-02-11 Thread Chanuka Dissanayake
Thanks Shavantha, I'll look into this.

On Thu, Feb 12, 2015 at 8:27 AM, Shavantha Weerasinghe 
wrote:

> Hi Chanuka
>
> I saw a similar issue reported having the public jira
> https://wso2.org/jira/browse/IDENTITY-2588.
>
> regards,
>
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> On Mon, Feb 9, 2015 at 6:01 PM, Chanuka Dissanayake 
> wrote:
>
>> Hi,
>>
>> I have connected ES 2.0.0 and Another Jaggery app with IS 5.0.0 inorder
>> to enable SSO. When signing out following error appers [1]. I did check the
>> session and it contain the required information and also SSO is working
>> correctly between the applications.
>>
>> I did refer the documentation [2].
>>
>> [1]
>>
>> [2015-02-09 17:48:44,168]  INFO {JAGGERY.controllers.logout:jag} -
>> Logout URL: https://10.100.5.158:9443/samlsso
>>
>> [2015-02-09 17:48:44,500] ERROR
>> {org.wso2.carbon.identity.sso.saml.processors.LogoutRequestProcessor} -  No
>> Established Sessions corresponding to Session Indexes provided.
>> [2] https://docs.wso2.com/display/IS500/Enabling+SSO+for+WSO2+Servers
>>
>> Thanks,
>> Chanuka.
>> --
>> Chanuka Dissanayake
>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>
>> Mobile: +94 71 33 63 596
>> Email: chan...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


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

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


Re: [Dev] [DEV] Getting Super Tenant Admin Name

2015-02-11 Thread Ajith Vitharana
[1]https://docs.wso2.com/display/Carbon420/CarbonContext+API

-Ajith

On Wed, Feb 11, 2015 at 10:13 PM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi all,
>
> Super tenant admin name is 'admin'. Is there a way to programatically
> retrieve this without hardcoding it?
>
> Thanks,
> Akalanka.
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791 <078-4721791>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +1-812-360-5335
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Getting Super Tenant Admin Name

2015-02-11 Thread Akalanka Pagoda Arachchi
Hi all,

Super tenant admin name is 'admin'. Is there a way to programatically
retrieve this without hardcoding it?

Thanks,
Akalanka.

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


Re: [Dev] No Established Sessions corresponding to Session Indexes provided.

2015-02-11 Thread Shavantha Weerasinghe
Hi Chanuka

I saw a similar issue reported having the public jira
https://wso2.org/jira/browse/IDENTITY-2588.

regards,

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300


On Mon, Feb 9, 2015 at 6:01 PM, Chanuka Dissanayake 
wrote:

> Hi,
>
> I have connected ES 2.0.0 and Another Jaggery app with IS 5.0.0 inorder to
> enable SSO. When signing out following error appers [1]. I did check the
> session and it contain the required information and also SSO is working
> correctly between the applications.
>
> I did refer the documentation [2].
>
> [1]
>
> [2015-02-09 17:48:44,168]  INFO {JAGGERY.controllers.logout:jag} -  Logout
> URL: https://10.100.5.158:9443/samlsso
>
> [2015-02-09 17:48:44,500] ERROR
> {org.wso2.carbon.identity.sso.saml.processors.LogoutRequestProcessor} -  No
> Established Sessions corresponding to Session Indexes provided.
> [2] https://docs.wso2.com/display/IS500/Enabling+SSO+for+WSO2+Servers
>
> Thanks,
> Chanuka.
> --
> Chanuka Dissanayake
> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>
> Mobile: +94 71 33 63 596
> Email: chan...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][BAM] Who is the owner and users of BAM Presentation Service Stub?

2015-02-11 Thread Srinath Perera
+1

On Wed, Feb 11, 2015 at 1:58 PM, Nuwan Dias  wrote:

> Yes, since its ownership wasn't claimed by anybody we moved the source
> inside carbon-apimgt.
>
> Thanks,
> NuwanD.
>
> On Wed, Feb 11, 2015 at 1:50 PM, Srinath Perera  wrote:
>
>> is this resolved?
>>
>> On Thu, Feb 5, 2015 at 4:16 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi Sinthuja/Inosh
>>>
>>> Do you have any idea, who is the owner of the following module[1]?
>>>
>>> And which are the products using this module? As I grep for the
>>> artifactId, API-M and AppM using this.
>>>
>>> I want to know the functionality of this stub in APIM and AppM. This is
>>> not moved to git or nobody claim for the ownership of this module.
>>>
>>>
>>>
>>>
>>> [1] :
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/service-stubs/org.wso2.carbon.bam.presentation.stub
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>
>>
>> --
>> 
>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>> Site: http://people.apache.org/~hemapani/
>> Photos: http://www.flickr.com/photos/hemapani/
>> Phone: 0772360902
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 

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


Re: [Dev] [BAM] java.io.UTFDataFormatException after deploying KPI_Registry_Activity.tbox in BAM

2015-02-11 Thread Shavantha Weerasinghe
Hi Gokul

As mentiond since BAM uses an older version oh H2  will this DB be updated

Regards,shavantha
On 11 Feb 2015 18:03, "Gokul Balakrishnan"  wrote:

> Hi Thusitha,
>
> This is a harmless warning that can be ignored. The root cause is the H2
> database erroneously writing this warning to stdout [1] which was fixed in
> a later version (1.3.164). But since we (BAM) use an older version of H2
> from the platform, this warning will be thrown intermittently.
>
> Thanks,
>
> [1] http://code.google.com/p/h2database/issues/detail?id=374
>
> On 11 February 2015 at 17:52, Thayalan  wrote:
>
>> The issue that you have observed is an intermittent issue and we did see
>> at times during the release testing. This is already reported.
>>
>> If you could consistently reproduce the issue please update the public
>> JIRA [1]
>>
>> 1. https://wso2.org/jira/browse/BAM-580
>> 
>>
>> On Wed, Feb 11, 2015 at 2:30 PM, Hasanthi Purnima Dissanayake <
>> hasan...@wso2.com> wrote:
>>
>>> Hi Thusitha,
>>> I also tried the same sample. I got below errors in the started BAM
>>> console. But I got the output as mentioned in the documentation.
>>>
>>> FAILED: Execution Error, return code 1 from
>>> org.apache.hadoop.hive.ql.exec.DDLTask
>>> [2015-02-11 14:26:45,034] ERROR {org.apache.hadoop.hive.ql.Driver} -
>>> FAILED: Execution Error, return code 1 from
>>> org.apache.hadoop.hive.ql.exec.DDLTask
>>> [2015-02-11 14:26:45,035] ERROR
>>> {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
>>> executing query: Query returned non-zero code: 9, cause: FAILED: Execution
>>> Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>>> java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
>>> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>>> at
>>> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
>>> at
>>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
>>> at
>>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
>>> at
>>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
>>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>> 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)
>>> [2015-02-11 14:26:45,035] ERROR
>>> {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
>>> while executing Hive script.
>>> Query returned non-zero code: 9, cause: FAILED: Execution Error, return
>>> code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>>> java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
>>> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>>> at
>>> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
>>> at
>>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
>>> at
>>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
>>> at
>>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
>>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>> 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)
>>> [2015-02-11 14:26:45,036] ERROR
>>> {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} -  Error while
>>> executing script : registry_activity_script
>>> org.wso2.carbon.analytics.hive.exception.HiveExecutionException: Error
>>> while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
>>> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>>> at
>>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl.execute(HiveExecutorServiceImpl.java:117)
>>> at
>>> org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask.execute(HiveScriptExecutorTask.java:70)
>>> at
>>> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
>>> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:

Re: [Dev] Build failed in Jenkins: carbon-storage-management #317

2015-02-11 Thread Prabath Abeysekera
Hi Harsha,

Please follow up on this and make sure the issue is fixed once the next
iteration of the build is done.

Cheers,
Prabath

On Wed, Feb 11, 2015 at 10:25 PM, Harsha Kumara  wrote:

> Hi All,
>
> This is failing due not enabling the daily snapshot build of wso2
> Cassandra. Since Maheshika has enabled it now, build should be normal after
> the next build.
>
> Thanks,
> Harsha
>
> On Wed, Feb 11, 2015 at 10:00 PM,  wrote:
>
>> See 
>>
>> Changes:
>>
>> [bhathiya] [maven-release-plugin] prepare release
>> carbon-storage-management-4.3.1
>>
>> [bhathiya] [maven-release-plugin] prepare for next development iteration
>>
>> [bhathiya] cassandra version changed
>>
>> [bhathiya] cassandra version issues fixed
>>
>> [bhathiya] removed dependency versions in inner poms
>>
>> [harsz89] added cassandra thrift separate dependency as a result of the
>> separation of cassandra thrift form cassandra
>>
>> [harsz89] renamed cassandra-thrift to apache-cassandra-thrift
>>
>> [harsz89] added removed apache cassnadra to explorer
>>
>> [bhathiya] cassandra versions updated
>>
>> [bhathiya] brought javax.cache.wso2 to root pom
>>
>> [harsz89] added mnor changes related to decoupling dao
>>
>> --
>> [...truncated 518 lines...]
>>  [java] log4j:WARN No appenders could be found for logger
>> (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
>>  [java] log4j:WARN Please initialize the log4j system properly.
>> [INFO] Executed tasks
>> [INFO]
>> [INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @
>> org.wso2.carbon.identity.authenticator.krb5.stub ---
>> [INFO] Compiling 104 source files to <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/service-stubs/org.wso2.carbon.identity.authenticator.krb5.stub/target/classes
>> >
>> [INFO]
>> [INFO] --- maven-resources-plugin:2.7:testResources
>> (default-testResources) @ org.wso2.carbon.identity.authenticator.krb5.stub
>> ---
>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] skip non existing resourceDirectory <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/service-stubs/org.wso2.carbon.identity.authenticator.krb5.stub/src/test/resources
>> >
>> [INFO] Copying 3 resources
>> [INFO]
>> [INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile)
>> @ org.wso2.carbon.identity.authenticator.krb5.stub ---
>> [INFO] No sources to compile
>> [INFO]
>> [INFO] --- maven-surefire-plugin:2.18:test (default-test) @
>> org.wso2.carbon.identity.authenticator.krb5.stub ---
>> [JENKINS] Recording test results
>> [INFO]
>> [INFO] --- maven-bundle-plugin:1.4.0:bundle (default-bundle) @
>> org.wso2.carbon.identity.authenticator.krb5.stub ---
>> [INFO]
>> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @
>> org.wso2.carbon.identity.authenticator.krb5.stub ---
>> [INFO] Installing <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/service-stubs/org.wso2.carbon.identity.authenticator.krb5.stub/target/org.wso2.carbon.identity.authenticator.krb5.stub-4.3.2-SNAPSHOT.jar>
>> to <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/.repository/org/wso2/carbon/storagemgt/org.wso2.carbon.identity.authenticator.krb5.stub/4.3.2-SNAPSHOT/org.wso2.carbon.identity.authenticator.krb5.stub-4.3.2-SNAPSHOT.jar
>> >
>> [INFO] Installing <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/service-stubs/org.wso2.carbon.identity.authenticator.krb5.stub/pom.xml>
>> to <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/.repository/org/wso2/carbon/storagemgt/org.wso2.carbon.identity.authenticator.krb5.stub/4.3.2-SNAPSHOT/org.wso2.carbon.identity.authenticator.krb5.stub-4.3.2-SNAPSHOT.pom
>> >
>> [INFO]
>> [INFO] --- maven-bundle-plugin:1.4.0:install (default-install) @
>> org.wso2.carbon.identity.authenticator.krb5.stub ---
>> [INFO] Local OBR update disabled (enable with -DobrRepository)
>> [INFO]
>> [INFO]
>> 
>> [INFO] Building WSO2 Carbon - Cassandra Aggregator Module 4.3.2-SNAPSHOT
>> [INFO]
>> 
>> [INFO]
>> [INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ cassandra ---
>> [INFO] Deleting <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/components/cassandra/target
>> >
>> [INFO]
>> [INFO] --- incremental-build-plugin:1.3:incremental-build (default) @
>> cassandra ---
>> [INFO] Verifying module descriptor ...
>> [INFO] Pom descriptor modification detected.
>> [INFO] Deleting <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/components/cassandra/target
>> >
>> [INFO]
>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
>> cassandra ---
>> [INFO]
>> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @

Re: [Dev] [AF] User permission update for Runtime Configs

2015-02-11 Thread Dimuthu Leelarathne
Hi,

The permission model is mostly related to properties section of AF. If I
list down the functionality in their order of significance,

   - write code
   - build and deploy
   - view error logs
   - create/delete applications
   - ALM
   - properties
   - team

And the changed permission model is subsection of properties section.

thanks,
dimuthu


On Wed, Feb 11, 2015 at 6:34 PM, Chathurika De Silva 
wrote:

> Hi
>
> Yes let's go ahead as planned.
>
> Thank You
> Erandi
>
> On Wed, Feb 11, 2015 at 6:25 PM, Dimuthu Leelarathne 
> wrote:
>
>> Hi,
>>
>> Could we still go ahead release beta on the 18th while you do the
>> documentation?
>>
>> thanks,
>> dimuthu
>>
>>
>> On Wed, Feb 11, 2015 at 6:09 PM, Chathurika De Silva <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi All
>>>
>>> Since the permission model has changed we have to update our test cases
>>> while testing. Since we are giving priority to testing we need additional
>>> two days of testing time to get our test cases updated.
>>>
>>> Thank You
>>> Erandi
>>>
>>>
>>>
>>> On Tue, Feb 10, 2015 at 4:43 PM, Amalka Subasinghe 
>>> wrote:
>>>
 the users who have create permissions, can delete resources

 On Tue, Feb 10, 2015 at 4:38 PM, Sewmini Jayaweera 
 wrote:

> Hi Amalka,
>
>  How about delete permission?
> As I understand it should be only admin, application owner, developer
> can delete from development environment is it ?
>
>
> Thank You,
> Sewmini
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Tue, Feb 10, 2015 at 12:05 PM, Chathurika De Silva <
> chathuri...@wso2.com> wrote:
>
>> Hi
>>
>> One QA resource will be unavailable on 12th and 13th. So there will
>> be a deviation around one day to the original estimate of one week 
>> because
>> only one resource will be working on the above mentioned two days.
>>
>> Thank You
>> Erandi
>>
>> On Tue, Feb 10, 2015 at 11:39 AM, Dimuthu Leelarathne <
>> dimut...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> We'll give a new setup tomorrow morning. Meanwhile please cover the
>>> breath in other areas that have not changed.
>>>
>>> thanks,
>>> dimuthu
>>>
>>> On Tue, Feb 10, 2015 at 11:20 AM, Chathurika De Silva <
>>> chathuri...@wso2.com> wrote:
>>>
 Hi All

 Considering the above changes and the bug fixes that will be
 incorporated in the latest pack, there should be a new qa cycle on the
 latest pack. While considering the amount of test cases we have as 
 well as
 the available qa resources (#2) it will take around one week to 
 complete
 the test cycle after the pack release date.

 Thank You
 Erandi

 On Tue, Feb 10, 2015 at 11:18 AM, Manjula Rathnayake <
 manju...@wso2.com> wrote:

> Hi all,
>
> Please note that only change with respect to existing permission
> model is that, appOwner is not allowed to create runtime configs in 
> Testing
> and Production stages. Configs will be copied at the time of
> promotion/deployment of application in Testing and Production stages.
>
> However, the permissions related to databases will not be changed
> from existing model where each stake holders of runtime environments 
> are
> allowed to create databases in their environments. eg. QA can create
> databases on Testing but not in Production.
>
> thank you.
>
>
> On Tue, Feb 10, 2015 at 11:04 AM, Amalka Subasinghe <
> ama...@wso2.com> wrote:
>
>> Hi All,
>>
>> I'm going to do the following changes to the runtime configs
>> (datasources, properties, external apis)
>>
>> - Create/update/read permissions will be as shown in the table
>> after this fix.
>>
>> - The tenant admin also have similar permissions as appowner; he
>> can only create in development stage and then resources will be 
>> propagated
>> to the testing and production environments via promoting.
>> So, "create resources in all environments" checkbox, is not valid
>> anymore, I'm removing it.
>>
>>
>>
>>
>> development testing production
>>  appowner create x
>>
>>
>>
>> update x x x
>>
>> read x x x
>>
>>
>>
>>
>>
>>
>>  dev create x
>>
>>
>>
>> update x
>>
>>
>>
>> read x x
>>
>>
>>
>>
>>
>>
>>
>>  qa create
>>
>>
>>
>>>

Re: [Dev] link to sample sources gives 404 error

2015-02-11 Thread Kalpa Welivitigoda
Hi Lakshman,

I just tried and works fine for me.

On Wed, Feb 11, 2015 at 5:51 PM, Lakshman Udayakantha 
wrote:

> Hi All,
>
> It seams $subject appeared in [1].
>
> [1]http://jaggeryjs.org/samples.jag
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] APIM test stabilisation {was :Re: APIM git stabilization}

2015-02-11 Thread Janaka Ranabahu
Hi Krishantha,



On Wed, Feb 11, 2015 at 9:03 PM, Krishantha Samaraweera  wrote:

> Hi APIM Team,
>
> I'm getting following build failure when building GIT mater repo in clean
> repo.
>
> [ERROR] Failed to execute goal on project org.wso2.stratos.apimgt.styles:
> Could not resolve dependencies for project 
> org.wso2.am:org.wso2.stratos.apimgt.styles:bundle:2.2.0:
> Failure to find org.wso2.carbon:org.wso2.carbon.ui:jar:4.3.0-SNAPSHOT in
> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
> local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
>
Is this the carbon-apimgt
​ repo? If so, please build the release-1.9.0 branch instead of the master.

Thanks,
Janaka​
​


> Can you please looking to it.
>
> Thanks,
> Krishantha.
>
>
>
> On Wed, Feb 11, 2015 at 12:47 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> [adding dev]
>>
>> On Wed, Feb 11, 2015 at 11:47 AM, Dimuthu De Lanerolle > > wrote:
>>
>>>
>>> Hi Krishantha,
>>>
>>> Following are the issues related to APIM git stabilization.
>>>
>>> 1. There are some changes needs to be done. Ex:
>>>
>>> These tests [1] are using old structure.
>>>
>>> [1]
>>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/header/ContentLengthHeaderTestCase.java
>>>
>>> (If going ahead with this structure needs to change -)
>>>
>>> integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/APIManagerIntegrationTest.java
>>>
>>> import
>>> org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient;
>>> import org.wso2.carbon.integration.common.utils.LoginLogoutClient;
>>>
>>> import
>>> org.wso2.am.integration.test.utils.publisher.utils.APIPublisherRestClient;
>>> import org.wso2.am.integration.test.utils.user.mgt.LoginLogoutClient;
>>>
>>> 2. At the root level project version is defined as ${apimserver.version}
>>> . However since after building wso2/carbon-apimgt still there were some
>>> build failures when building the  wso2/product-apim which  prohibits
>>> ${apimserver.version} to derive correctly for sub modules causing problems
>>> for building sub modules separately. ( we can overcome this issue by hard
>>> coding project version 1.9.0 as the version for integration and sub modules
>>> below integration.
>>>
>>> 3. Some of the tests needs to be migrated to public branch (svn) and
>>> git.
>>>
>>> 4. Introducing new structure to avoid code duplication and unnecessary
>>> codes.
>>>
>>>
>>> Dimuthu De Lanerolle
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middlewear.
>>> http://wso2.com/
>>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>>>
>>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Janaka Ranabahu*
Senior Software Engineer; WSO2 Inc.; http://wso2.com


*E-mail: jan...@wso2.com **M: **+94 718370861*

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


[Dev] [MB] resolving dependency related issues preparation for mb m3 release

2015-02-11 Thread Pamod Sylvester
Hi All,

Made some changes to andes, carbon-business-mesaging and product-mb in
preperation for the MB m3 release.

Changes done were,

~Packaging thrift version 0.7.0 within andes, since there were features
which refers to 0.8.0 version of thrift as well which resulted in a package
confliction causing the bundle to not load properly.

would like to thank Kishanthan and PrabathA for the assistance given to
figure out the issue and to derive a solution. Also ideal solution IMO
would be to have a common version across. I have attached the file which
lists out the dependencies.

~ Imported hector packages with the proper version, since it was not
versioned properly, resulted with a ClassDefinitionNotFound issue.

Thanks,
Pamod


-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
org.wso2.carbon.databridge.datapublisher_4.3.4/META-INF/DEPENDENCIES:  - 
libthrift.wso2 (http://wso2.org) libthrift.wso2:libthrift:bundle:0.8.0.wso2v1
org.wso2.carbon.databridge.datapublisher_4.3.4/META-INF/DEPENDENCIES:  - Apache 
Thrift (http://thrift.apache.org) org.apache.thrift:libthrift:pom:0.8.0
org.wso2.carbon.logging.mgt.server_4.3.4/feature.xml:  
org.wso2.carbon.logging.mgt.server_4.3.4/META-INF/DEPENDENCIES:  - 
libthrift.wso2 (http://wso2.org) libthrift.wso2:libthrift:bundle:0.8.0.wso2v1
org.wso2.carbon.logging.mgt.server_4.3.4/META-INF/DEPENDENCIES:  - Apache 
Thrift (http://thrift.apache.org) org.apache.thrift:libthrift:pom:0.8.0
org.wso2.carbon.logging.mgt.ui_4.3.4/META-INF/DEPENDENCIES:  - Apache Thrift 
(http://thrift.apache.org) org.apache.thrift:libthrift:pom:0.7.0
org.wso2.carbon.logging.mgt_4.3.4/META-INF/DEPENDENCIES:  - libthrift.wso2 
(http://wso2.org) libthrift.wso2:libthrift:bundle:0.8.0.wso2v1
org.wso2.carbon.logging.mgt_4.3.4/META-INF/DEPENDENCIES:  - Apache Thrift 
(http://thrift.apache.org) org.apache.thrift:libthrift:pom:0.8.0
org.wso2.carbon.messaging.andes_3.0.0.SNAPSHOT/META-INF/DEPENDENCIES:  - 
libthrift.wso2 (http://wso2.org) libthrift.wso2:libthrift:bundle:0.7.0.wso2v2
org.wso2.carbon.tenant.common.server_4.3.4/META-INF/DEPENDENCIES:  - 
libthrift.wso2 (http://wso2.org) libthrift.wso2:libthrift:bundle:0.7.wso2v1
org.wso2.carbon.tenant.common.ui_4.3.4/META-INF/DEPENDENCIES:  - libthrift.wso2 
(http://wso2.org) libthrift.wso2:libthrift:bundle:0.7.wso2v1
org.wso2.carbon.tenant.common_4.3.4/META-INF/DEPENDENCIES:  - libthrift.wso2 
(http://wso2.org) libthrift.wso2:libthrift:bundle:0.7.wso2v1
org.wso2.carbon.tenant.deployment_4.3.4/META-INF/DEPENDENCIES:  - 
libthrift.wso2 (http://wso2.org) libthrift.wso2:libthrift:bundle:0.7.wso2v1
org.wso2.carbon.tenant.throttling.agent_4.3.4/META-INF/DEPENDENCIES:  - 
libthrift.wso2 (http://wso2.org) libthrift.wso2:libthrift:bundle:0.7.wso2v1___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Error when running test cases

2015-02-11 Thread Jeewantha Dharmaparakrama
Hi All,

Im getting the following runtime exception caused by an NPE when running
the ESB tests. This happens for all the test modules. There are no
compilation errors in any test module. Any idea why ?

Running TestSuite
ERROR
[org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
Execution error occurred in
TestExecutionListener:-[Ljava.lang.StackTraceElement;@19be4777
org.apache.maven.surefire.util.SurefireReflectionException:
java.lang.reflect.InvocationTargetException; nested exception is
java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.lang.RuntimeException: Error on initializing test
environment
at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71)
at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52)
at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
at org.testng.TestNG.run(TestNG.java:983)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
... 9 more
*Caused by: java.lang.NullPointerException*
at
org.wso2.carbon.automation.engine.context.DefaultInstance.getDefaultManager(DefaultInstance.java:110)
at
org.wso2.carbon.automation.engine.context.AutomationContext.(AutomationContext.java:149)
at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:41)
... 14 more

Thanks,
Jeewantha

On Tue, Feb 10, 2015 at 1:54 PM, Malintha Adikari  wrote:

> Hi Pasadi,
>
>
> According to the error log , Test Framework is trying to load a class
> (Axis2ServerExtension) but it can't find it. We register classes in
> automation.xml file which we expect to execute in various phases of test
> execution. If you look at your automation.xml "Listener Extensions"
> sections you may found you have registered this class.
>
> Please make sure *Axis2ServerExtension* class is inside the expected
> location.
>
> Regards,
> Malintha Adikari
>
> On Tue, Feb 10, 2015 at 8:03 AM, Saneth Dharmakeerthi 
> wrote:
>
>>
>> Hi Pasadi,
>>
>> Apologies and I misunderstood  *Axis2ServerExtension* as  a class in
>> *org.wso2.carbon.**automationutils.*
>> But
>> *org.wso2.esb.integration.common.extensions.axis2server.Axis2ServerExtension*
>> is  in *modules/integration/test-common/extensions*
>>
>> so please add *test-common/extensions* as a dependency in all your
>> required test module pom files.
>>
>> 
>> org.wso2.esb
>> extensions
>> 
>>
>>
>> also the version should be the *$project.version* and the need to be
>> added to the root pom.
>>
>>
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Tue, Feb 10, 2015 at 9:55 AM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> HI Pasadi,
>>>
>>> Sorry, correct dependency for *Axis2ServerExtension *is as bellow
>>>
>>> 
>>> org.wso2.carbon.automationutils
>>> org.wso2.carbon.integration.common.extensions
>>> ${carbon.automationutils.version}
>>> 
>>>
>>> 4.3.0
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Tue, Feb 10, 2015 at 9:51 AM, Saneth Dharmakeerthi 
>>> wrote:
>>>
 HI Pasadi,

 Please verify the pom is updated correctly with integration
 dependencies. *Axis2ServerExtension *is packed inside 
 org.wso2.carbon.*automation.extensions.
 *Also refer the dev mail[1]

 

 org.wso2.carbon.automation
 org.wso2.carbon.automation.extensions
 ${carbon.automation.version}
 

 4.3.1


 [1] [Dev] Automation dependencies to be updated in all products moving
 with git



 Thanks and Best Regards,

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

 On Tue, Feb 10, 2015 at 9

Re: [Dev] APIM test stabilisation {was :Re: APIM git stabilization}

2015-02-11 Thread Krishantha Samaraweera
Hi APIM Team,

I'm getting following build failure when building GIT mater repo in clean
repo.

[ERROR] Failed to execute goal on project org.wso2.stratos.apimgt.styles:
Could not resolve dependencies for project
org.wso2.am:org.wso2.stratos.apimgt.styles:bundle:2.2.0:
Failure to find org.wso2.carbon:org.wso2.carbon.ui:jar:4.3.0-SNAPSHOT in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced -> [Help 1]

Can you please looking to it.

Thanks,
Krishantha.



On Wed, Feb 11, 2015 at 12:47 PM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> [adding dev]
>
> On Wed, Feb 11, 2015 at 11:47 AM, Dimuthu De Lanerolle 
> wrote:
>
>>
>> Hi Krishantha,
>>
>> Following are the issues related to APIM git stabilization.
>>
>> 1. There are some changes needs to be done. Ex:
>>
>> These tests [1] are using old structure.
>>
>> [1]
>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/header/ContentLengthHeaderTestCase.java
>>
>> (If going ahead with this structure needs to change -)
>>
>> integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/APIManagerIntegrationTest.java
>>
>> import
>> org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient;
>> import org.wso2.carbon.integration.common.utils.LoginLogoutClient;
>>
>> import
>> org.wso2.am.integration.test.utils.publisher.utils.APIPublisherRestClient;
>> import org.wso2.am.integration.test.utils.user.mgt.LoginLogoutClient;
>>
>> 2. At the root level project version is defined as ${apimserver.version}
>> . However since after building wso2/carbon-apimgt still there were some
>> build failures when building the  wso2/product-apim which  prohibits
>> ${apimserver.version} to derive correctly for sub modules causing problems
>> for building sub modules separately. ( we can overcome this issue by hard
>> coding project version 1.9.0 as the version for integration and sub modules
>> below integration.
>>
>> 3. Some of the tests needs to be migrated to public branch (svn) and git.
>>
>> 4. Introducing new structure to avoid code duplication and unnecessary
>> codes.
>>
>>
>> Dimuthu De Lanerolle
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://wso2.com/
>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



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


Re: [Dev] How to handle exceptions at Admin services?

2015-02-11 Thread Johann Nallathamby
On Wed, Feb 11, 2015 at 6:48 PM, Pulasthi Mahawithana 
wrote:

> Hi,
>
> What would be the correct approach for handling exceptions at admin
> services? Is it to throw the wrapped exception("throw new
> FooException(message, e)"), or to throw the exception without wrapping the
> original exception ("throw new FooException(message)")? (in both cases
> exception is logged before throwing)
>
> If it is the first way, the exception's stacktrace will be duplicated if
> both client and server are in single machine. And the exception stacktrace
> at client would have information that should not be sent to the client
> (e.g. SQL queries)
>

I believe this is a problem in axis2 client, logging the stack trace,
correct me if I am wrong. So it is a special case in our platform, because
you are logging it in the service level and axis2 client logs it once again
you have two logs. We can't eliminate the service level log if we think
about a real remote client that is invoking admin service.

>
> If it the second way, the client will not be able to have the exact cause
> for the exception, which the client may find useful. So what could be the
> best option for this? Are there any better ways handling this?
>

This way client looses valuable information.

So first approach may be better here IMO. Another thing to keep in mind is
to make sure no sensitive information is exposed in the messages. If this
can be handled then option 2 is good I believe.

Others might have different opinions.

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


-- 
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 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to handle exceptions at Admin services?

2015-02-11 Thread Pulasthi Mahawithana
Hi,

What would be the correct approach for handling exceptions at admin
services? Is it to throw the wrapped exception("throw new
FooException(message, e)"), or to throw the exception without wrapping the
original exception ("throw new FooException(message)")? (in both cases
exception is logged before throwing)

If it is the first way, the exception's stacktrace will be duplicated if
both client and server are in single machine. And the exception stacktrace
at client would have information that should not be sent to the client
(e.g. SQL queries)

If it the second way, the client will not be able to have the exact cause
for the exception, which the client may find useful. So what could be the
best option for this? Are there any better ways handling this?
-- 
*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] [AF] User permission update for Runtime Configs

2015-02-11 Thread Chathurika De Silva
Hi

Yes let's go ahead as planned.

Thank You
Erandi

On Wed, Feb 11, 2015 at 6:25 PM, Dimuthu Leelarathne 
wrote:

> Hi,
>
> Could we still go ahead release beta on the 18th while you do the
> documentation?
>
> thanks,
> dimuthu
>
>
> On Wed, Feb 11, 2015 at 6:09 PM, Chathurika De Silva  > wrote:
>
>> Hi All
>>
>> Since the permission model has changed we have to update our test cases
>> while testing. Since we are giving priority to testing we need additional
>> two days of testing time to get our test cases updated.
>>
>> Thank You
>> Erandi
>>
>>
>>
>> On Tue, Feb 10, 2015 at 4:43 PM, Amalka Subasinghe 
>> wrote:
>>
>>> the users who have create permissions, can delete resources
>>>
>>> On Tue, Feb 10, 2015 at 4:38 PM, Sewmini Jayaweera 
>>> wrote:
>>>
 Hi Amalka,

  How about delete permission?
 As I understand it should be only admin, application owner, developer
 can delete from development environment is it ?


 Thank You,
 Sewmini

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

 On Tue, Feb 10, 2015 at 12:05 PM, Chathurika De Silva <
 chathuri...@wso2.com> wrote:

> Hi
>
> One QA resource will be unavailable on 12th and 13th. So there will be
> a deviation around one day to the original estimate of one week because
> only one resource will be working on the above mentioned two days.
>
> Thank You
> Erandi
>
> On Tue, Feb 10, 2015 at 11:39 AM, Dimuthu Leelarathne <
> dimut...@wso2.com> wrote:
>
>> Hi,
>>
>> We'll give a new setup tomorrow morning. Meanwhile please cover the
>> breath in other areas that have not changed.
>>
>> thanks,
>> dimuthu
>>
>> On Tue, Feb 10, 2015 at 11:20 AM, Chathurika De Silva <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi All
>>>
>>> Considering the above changes and the bug fixes that will be
>>> incorporated in the latest pack, there should be a new qa cycle on the
>>> latest pack. While considering the amount of test cases we have as well 
>>> as
>>> the available qa resources (#2) it will take around one week to complete
>>> the test cycle after the pack release date.
>>>
>>> Thank You
>>> Erandi
>>>
>>> On Tue, Feb 10, 2015 at 11:18 AM, Manjula Rathnayake <
>>> manju...@wso2.com> wrote:
>>>
 Hi all,

 Please note that only change with respect to existing permission
 model is that, appOwner is not allowed to create runtime configs in 
 Testing
 and Production stages. Configs will be copied at the time of
 promotion/deployment of application in Testing and Production stages.

 However, the permissions related to databases will not be changed
 from existing model where each stake holders of runtime environments 
 are
 allowed to create databases in their environments. eg. QA can create
 databases on Testing but not in Production.

 thank you.


 On Tue, Feb 10, 2015 at 11:04 AM, Amalka Subasinghe <
 ama...@wso2.com> wrote:

> Hi All,
>
> I'm going to do the following changes to the runtime configs
> (datasources, properties, external apis)
>
> - Create/update/read permissions will be as shown in the table
> after this fix.
>
> - The tenant admin also have similar permissions as appowner; he
> can only create in development stage and then resources will be 
> propagated
> to the testing and production environments via promoting.
> So, "create resources in all environments" checkbox, is not valid
> anymore, I'm removing it.
>
>
>
>
> development testing production
>  appowner create x
>
>
>
> update x x x
>
> read x x x
>
>
>
>
>
>
>  dev create x
>
>
>
> update x
>
>
>
> read x x
>
>
>
>
>
>
>
>  qa create
>
>
>
>
> update
> x
>
>
> read x x
>
>
>
>
>
>
>
>  devops create
>
>
>
>
> update
>
> x
>
> read
> x x
>
>
>
>
>
>
>  admin create x
>
>
>
> update x x x
>
> read x x x
>
> Thanks
> Amalka
>
>
> ___
> Dev mailing list
> Dev@wso2.org
>>>

Re: [Dev] [AF] User permission update for Runtime Configs

2015-02-11 Thread Dimuthu Leelarathne
Hi,

Could we still go ahead release beta on the 18th while you do the
documentation?

thanks,
dimuthu


On Wed, Feb 11, 2015 at 6:09 PM, Chathurika De Silva 
wrote:

> Hi All
>
> Since the permission model has changed we have to update our test cases
> while testing. Since we are giving priority to testing we need additional
> two days of testing time to get our test cases updated.
>
> Thank You
> Erandi
>
>
>
> On Tue, Feb 10, 2015 at 4:43 PM, Amalka Subasinghe 
> wrote:
>
>> the users who have create permissions, can delete resources
>>
>> On Tue, Feb 10, 2015 at 4:38 PM, Sewmini Jayaweera 
>> wrote:
>>
>>> Hi Amalka,
>>>
>>>  How about delete permission?
>>> As I understand it should be only admin, application owner, developer
>>> can delete from development environment is it ?
>>>
>>>
>>> Thank You,
>>> Sewmini
>>>
>>> Sewmini Jayaweera
>>> *Software Engineer - QA Team*
>>> Mobile: +94 (0) 773 381 250
>>> sewm...@wso2.com
>>>
>>> On Tue, Feb 10, 2015 at 12:05 PM, Chathurika De Silva <
>>> chathuri...@wso2.com> wrote:
>>>
 Hi

 One QA resource will be unavailable on 12th and 13th. So there will be
 a deviation around one day to the original estimate of one week because
 only one resource will be working on the above mentioned two days.

 Thank You
 Erandi

 On Tue, Feb 10, 2015 at 11:39 AM, Dimuthu Leelarathne <
 dimut...@wso2.com> wrote:

> Hi,
>
> We'll give a new setup tomorrow morning. Meanwhile please cover the
> breath in other areas that have not changed.
>
> thanks,
> dimuthu
>
> On Tue, Feb 10, 2015 at 11:20 AM, Chathurika De Silva <
> chathuri...@wso2.com> wrote:
>
>> Hi All
>>
>> Considering the above changes and the bug fixes that will be
>> incorporated in the latest pack, there should be a new qa cycle on the
>> latest pack. While considering the amount of test cases we have as well 
>> as
>> the available qa resources (#2) it will take around one week to complete
>> the test cycle after the pack release date.
>>
>> Thank You
>> Erandi
>>
>> On Tue, Feb 10, 2015 at 11:18 AM, Manjula Rathnayake <
>> manju...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> Please note that only change with respect to existing permission
>>> model is that, appOwner is not allowed to create runtime configs in 
>>> Testing
>>> and Production stages. Configs will be copied at the time of
>>> promotion/deployment of application in Testing and Production stages.
>>>
>>> However, the permissions related to databases will not be changed
>>> from existing model where each stake holders of runtime environments are
>>> allowed to create databases in their environments. eg. QA can create
>>> databases on Testing but not in Production.
>>>
>>> thank you.
>>>
>>>
>>> On Tue, Feb 10, 2015 at 11:04 AM, Amalka Subasinghe >> > wrote:
>>>
 Hi All,

 I'm going to do the following changes to the runtime configs
 (datasources, properties, external apis)

 - Create/update/read permissions will be as shown in the table
 after this fix.

 - The tenant admin also have similar permissions as appowner; he
 can only create in development stage and then resources will be 
 propagated
 to the testing and production environments via promoting.
 So, "create resources in all environments" checkbox, is not valid
 anymore, I'm removing it.




 development testing production
  appowner create x



 update x x x

 read x x x






  dev create x



 update x



 read x x







  qa create




 update
 x


 read x x







  devops create




 update

 x

 read
 x x






  admin create x



 update x x x

 read x x x

 Thanks
 Amalka


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


>>>
>>>
>>> --
>>> Manjula Rathnayaka
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 77 743 1987
>>>
>>
>>
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>

Re: [Dev] [AF] User permission update for Runtime Configs

2015-02-11 Thread Chathurika De Silva
Hi All

Since the permission model has changed we have to update our test cases
while testing. Since we are giving priority to testing we need additional
two days of testing time to get our test cases updated.

Thank You
Erandi



On Tue, Feb 10, 2015 at 4:43 PM, Amalka Subasinghe  wrote:

> the users who have create permissions, can delete resources
>
> On Tue, Feb 10, 2015 at 4:38 PM, Sewmini Jayaweera 
> wrote:
>
>> Hi Amalka,
>>
>>  How about delete permission?
>> As I understand it should be only admin, application owner, developer can
>> delete from development environment is it ?
>>
>>
>> Thank You,
>> Sewmini
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com
>>
>> On Tue, Feb 10, 2015 at 12:05 PM, Chathurika De Silva <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi
>>>
>>> One QA resource will be unavailable on 12th and 13th. So there will be a
>>> deviation around one day to the original estimate of one week because only
>>> one resource will be working on the above mentioned two days.
>>>
>>> Thank You
>>> Erandi
>>>
>>> On Tue, Feb 10, 2015 at 11:39 AM, Dimuthu Leelarathne >> > wrote:
>>>
 Hi,

 We'll give a new setup tomorrow morning. Meanwhile please cover the
 breath in other areas that have not changed.

 thanks,
 dimuthu

 On Tue, Feb 10, 2015 at 11:20 AM, Chathurika De Silva <
 chathuri...@wso2.com> wrote:

> Hi All
>
> Considering the above changes and the bug fixes that will be
> incorporated in the latest pack, there should be a new qa cycle on the
> latest pack. While considering the amount of test cases we have as well as
> the available qa resources (#2) it will take around one week to complete
> the test cycle after the pack release date.
>
> Thank You
> Erandi
>
> On Tue, Feb 10, 2015 at 11:18 AM, Manjula Rathnayake <
> manju...@wso2.com> wrote:
>
>> Hi all,
>>
>> Please note that only change with respect to existing permission
>> model is that, appOwner is not allowed to create runtime configs in 
>> Testing
>> and Production stages. Configs will be copied at the time of
>> promotion/deployment of application in Testing and Production stages.
>>
>> However, the permissions related to databases will not be changed
>> from existing model where each stake holders of runtime environments are
>> allowed to create databases in their environments. eg. QA can create
>> databases on Testing but not in Production.
>>
>> thank you.
>>
>>
>> On Tue, Feb 10, 2015 at 11:04 AM, Amalka Subasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm going to do the following changes to the runtime configs
>>> (datasources, properties, external apis)
>>>
>>> - Create/update/read permissions will be as shown in the table after
>>> this fix.
>>>
>>> - The tenant admin also have similar permissions as appowner; he can
>>> only create in development stage and then resources will be propagated 
>>> to
>>> the testing and production environments via promoting.
>>> So, "create resources in all environments" checkbox, is not valid
>>> anymore, I'm removing it.
>>>
>>>
>>>
>>>
>>> development testing production
>>>  appowner create x
>>>
>>>
>>>
>>> update x x x
>>>
>>> read x x x
>>>
>>>
>>>
>>>
>>>
>>>
>>>  dev create x
>>>
>>>
>>>
>>> update x
>>>
>>>
>>>
>>> read x x
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  qa create
>>>
>>>
>>>
>>>
>>> update
>>> x
>>>
>>>
>>> read x x
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  devops create
>>>
>>>
>>>
>>>
>>> update
>>>
>>> x
>>>
>>> read
>>> x x
>>>
>>>
>>>
>>>
>>>
>>>
>>>  admin create x
>>>
>>>
>>>
>>> update x x x
>>>
>>> read x x x
>>>
>>> Thanks
>>> Amalka
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Manjula Rathnayaka
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 77 743 1987
>>
>
>
>
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.blogspot.com
>



 --
 Dimuthu Leelarathne
 Architect & Product Lead of App Factory

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

 Lean . Enterprise . Middleware

>>>
>>>
>>>
>>> --
>>> *Chathurika Erandi*
>>> Software Engineer,
>>> WSO2 Inc.
>>>
>>> *E-mail:* ch

Re: [Dev] [BAM] java.io.UTFDataFormatException after deploying KPI_Registry_Activity.tbox in BAM

2015-02-11 Thread Gokul Balakrishnan
Hi Thusitha,

This is a harmless warning that can be ignored. The root cause is the H2
database erroneously writing this warning to stdout [1] which was fixed in
a later version (1.3.164). But since we (BAM) use an older version of H2
from the platform, this warning will be thrown intermittently.

Thanks,

[1] http://code.google.com/p/h2database/issues/detail?id=374

On 11 February 2015 at 17:52, Thayalan  wrote:

> The issue that you have observed is an intermittent issue and we did see
> at times during the release testing. This is already reported.
>
> If you could consistently reproduce the issue please update the public
> JIRA [1]
>
> 1. https://wso2.org/jira/browse/BAM-580
> 
>
> On Wed, Feb 11, 2015 at 2:30 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi Thusitha,
>> I also tried the same sample. I got below errors in the started BAM
>> console. But I got the output as mentioned in the documentation.
>>
>> FAILED: Execution Error, return code 1 from
>> org.apache.hadoop.hive.ql.exec.DDLTask
>> [2015-02-11 14:26:45,034] ERROR {org.apache.hadoop.hive.ql.Driver} -
>> FAILED: Execution Error, return code 1 from
>> org.apache.hadoop.hive.ql.exec.DDLTask
>> [2015-02-11 14:26:45,035] ERROR
>> {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
>> executing query: Query returned non-zero code: 9, cause: FAILED: Execution
>> Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>> java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
>> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>> at
>> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
>> at
>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
>> at
>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
>> at
>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>> 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)
>> [2015-02-11 14:26:45,035] ERROR
>> {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
>> while executing Hive script.
>> Query returned non-zero code: 9, cause: FAILED: Execution Error, return
>> code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>> java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
>> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>> at
>> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
>> at
>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
>> at
>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
>> at
>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>> 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)
>> [2015-02-11 14:26:45,036] ERROR
>> {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} -  Error while
>> executing script : registry_activity_script
>> org.wso2.carbon.analytics.hive.exception.HiveExecutionException: Error
>> while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
>> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
>> at
>> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl.execute(HiveExecutorServiceImpl.java:117)
>> at
>> org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask.execute(HiveScriptExecutorTask.java:70)
>> at
>> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
>> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:

Re: [Dev] [BAM] java.io.UTFDataFormatException after deploying KPI_Registry_Activity.tbox in BAM

2015-02-11 Thread Thayalan
The issue that you have observed is an intermittent issue and we did see at
times during the release testing. This is already reported.

If you could consistently reproduce the issue please update the public JIRA
[1]

1. https://wso2.org/jira/browse/BAM-580


On Wed, Feb 11, 2015 at 2:30 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi Thusitha,
> I also tried the same sample. I got below errors in the started BAM
> console. But I got the output as mentioned in the documentation.
>
> FAILED: Execution Error, return code 1 from
> org.apache.hadoop.hive.ql.exec.DDLTask
> [2015-02-11 14:26:45,034] ERROR {org.apache.hadoop.hive.ql.Driver} -
> FAILED: Execution Error, return code 1 from
> org.apache.hadoop.hive.ql.exec.DDLTask
> [2015-02-11 14:26:45,035] ERROR
> {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
> executing query: Query returned non-zero code: 9, cause: FAILED: Execution
> Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> at
> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
> at
> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
> at
> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
> at
> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 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)
> [2015-02-11 14:26:45,035] ERROR
> {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
> while executing Hive script.
> Query returned non-zero code: 9, cause: FAILED: Execution Error, return
> code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> at
> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
> at
> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
> at
> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
> at
> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 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)
> [2015-02-11 14:26:45,036] ERROR
> {org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} -  Error while
> executing script : registry_activity_script
> org.wso2.carbon.analytics.hive.exception.HiveExecutionException: Error
> while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
> Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> at
> org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl.execute(HiveExecutorServiceImpl.java:117)
> at
> org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask.execute(HiveScriptExecutorTask.java:70)
> at
> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 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)
>
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com 
> M :0718407133| http://wso2.com 
>
> On Wed, Feb 11, 2015 at 9:39 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi All,
>>
>> I'm trying to run the Statistics collector sample in the GReg[1]. I
>> started the BAM and Deployed the KPI_Registry_Activity.tbox
>> 

[Dev] link to sample sources gives 404 error

2015-02-11 Thread Lakshman Udayakantha
Hi All,

It seams $subject appeared in [1].

[1]http://jaggeryjs.org/samples.jag

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


Re: [Dev] [IS] Error when processing the authentication request! in Configuring Single Sign-On with SAML 2.0 Sample

2015-02-11 Thread Thusitha Thilina Dayaratne
Hi Tharindu

I was having wso2carbon.cert as Alias. When I changed that to wso2carbon it
is working fine.
Thanks a lot for pointing it out.

Best Regards

On Wed, Feb 11, 2015 at 5:25 PM, Tharindu Edirisinghe 
wrote:

> Hi Thusitha,
>
> Check if you have selected 'wso2carbon' as the certificate alias for
> signature validation.
>
> [image: Inline image 1]
>
> On Wed, Feb 11, 2015 at 5:13 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have gone through the steps in [1], to run the *Configuring Single
>> Sign-On with SAML 2.0 sample *in the IS 5.0.0.
>> When I try to login using admin/admin I'm getting following error
>>
>> [image: Inline image 1]
>>
>> In the IS console
>>
>> [2015-02-11 17:10:56,627]  WARN
>> {org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor}
>> -  *Signature validation for Authentication Request failed*.
>>
>> Using log4j.logger.org.wso2.carbon.identity=DEBUG
>>
>> [2015-02-11 17:04:10,856] DEBUG
>> {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -  Query
>> string :
>> SAMLRequest=nZPdbtswDIVfxdC9f5sCmRC7yBIUC9BtXuLuoneawiwaZMkT6TR9%2B8l20nnDGgS7FcnDw4%2FU7O5Y6%2BAADpU1OUujhAVgpN0q8z1nj9V9OGV3xQxFrRs%2Bb2lv1vCzBaTA1xnkfSBnrTPcClTIjagBOUm%2BmX984FmU8MZZstJqFswRwZFvtLAG2xrcBtxBSXhcP%2BRsT9TwONZWCr23SHyaTJOYnDiAf1P0Eklbx3tbQ%2FQDGxYsvQllBPW%2Bu2L8o%2FrdZHITd%2B4QLQvurZPQ28%2FZTmgEFqyWOfPDrrAUiOoAvwOILawMkjCUsyxJb8MkC9O0SlN%2BM%2BFpEk1vsycWlKe53isz0LoE4duQhPxDVZVh%2BXlTseDrmbpPYGfGfXd3PV1xZsqKv1jN4rHioJ81%2FJOXWC1Lq5V8GbXJrt%2Bi1vZ54UCQZ0auhR5vLeiyQPeituGuT%2BVNNzsSGGLBpuw8fWmFVjsFLmeDYxa%2Fej7dHGz7FfrrITjSf5lf2LoRTmGHHY5C0gk8HysvtKe6ht2ow9VLuJgmueyk%2FXN3dM%2FWbbsjAuknq5ww2FhHw9r%2B6acYYm8BKc4bH%2F%2FT4hc%3D&SigAlg=http%3A%2F%
>> 2Fwww.w3.org
>> %2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=gjnmwL3nruOUgRGotCoAxR1U3x7dKAw36MFQpn%2FBQbIl%2FlsX20cbQ6TkRBHsmVUYPX6DjTSSykEhkjme1mHsPOfNSTamIA29i%2Fsg8eXWJS47OeFrUaYutmFTNMHm%2F1MP3c92AppLoClLGd7Uza8RgywiXi%2FELvLLWL0qzTvb2O4%3D
>> [2015-02-11 17:04:10,857] DEBUG
>> {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Request message
>> > xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
>> AssertionConsumerServiceURL="
>> http://localhost:8080/travelocity.com/home.jsp"; Destination="
>> https://localhost:9443/samlsso"; ForceAuthn="false" ID="0"
>> IsPassive="false" IssueInstant="2015-02-11T11:34:10.852Z"
>> ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
>> Version="2.0">> xmlns:samlp="urn:oasis:names:tc:SAML:2.0:assertion">travelocity.com> xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" AllowCreate="true"
>> Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"
>> SPNameQualifier="Issuer"/>> xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
>> Comparison="exact">> xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
>> [2015-02-11 17:04:10,858] DEBUG
>> {org.wso2.carbon.identity.sso.saml.validators.SPInitSSOAuthnRequestValidator}
>> -  Authentication Request Validation is successful..
>> [2015-02-11 17:04:10,861] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
>> -  Initializing the flow
>> [2015-02-11 17:04:10,861] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
>> -  The query-string sent by the calling servlet is:
>> SAMLRequest=nZPdbtswDIVfxdC9f5sCmRC7yBIUC9BtXuLuoneawiwaZMkT6TR9%2B8l20nnDGgS7FcnDw4%2FU7O5Y6%2BAADpU1OUujhAVgpN0q8z1nj9V9OGV3xQxFrRs%2Bb2lv1vCzBaTA1xnkfSBnrTPcClTIjagBOUm%2BmX984FmU8MZZstJqFswRwZFvtLAG2xrcBtxBSXhcP%2BRsT9TwONZWCr23SHyaTJOYnDiAf1P0Eklbx3tbQ%2FQDGxYsvQllBPW%2Bu2L8o%2FrdZHITd%2B4QLQvurZPQ28%2FZTmgEFqyWOfPDrrAUiOoAvwOILawMkjCUsyxJb8MkC9O0SlN%2BM%2BFpEk1vsycWlKe53isz0LoE4duQhPxDVZVh%2BXlTseDrmbpPYGfGfXd3PV1xZsqKv1jN4rHioJ81%2FJOXWC1Lq5V8GbXJrt%2Bi1vZ54UCQZ0auhR5vLeiyQPeituGuT%2BVNNzsSGGLBpuw8fWmFVjsFLmeDYxa%2Fej7dHGz7FfrrITjSf5lf2LoRTmGHHY5C0gk8HysvtKe6ht2ow9VLuJgmueyk%2FXN3dM%2FWbbsjAuknq5ww2FhHw9r%2B6acYYm8BKc4bH%2F%2FT4hc%3D&SigAlg=http%3A%2F%
>> 2Fwww.w3.org
>> %2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=gjnmwL3nruOUgRGotCoAxR1U3x7dKAw36MFQpn%2FBQbIl%2FlsX20cbQ6TkRBHsmVUYPX6DjTSSykEhkjme1mHsPOfNSTamIA29i%2Fsg8eXWJS47OeFrUaYutmFTNMHm%2F1MP3c92AppLoClLGd7Uza8RgywiXi%2FELvLLWL0qzTvb2O4%3D&relyingParty=
>> travelocity.com
>> &sessionDataKey=166ec0b0-19b9-4531-b4c6-eb9b6ba0b40d&type=samlsso&commonAuthCallerPath=%2Fsamlsso&forceAuth=false&passiveAuth=false
>> [2015-02-11 17:04:10,861] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
>> -  Framework contextId: b55b5935-c834-43c9-8c0f-25548ea57da1
>> [2015-02-11 17:04:10,861] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
>> -  Starting an authentication flow
>> [2015-02-11 17:04:10,863] DEBUG
>> {org.wso2.carbon

Re: [Dev] SS 1.5.0 Release Testing Status

2015-02-11 Thread Aparna Karunarathna
Hi All,

SS is scheduled to released on this Friday(13th Feb), but QA team has
observed secondary user creation issue in SS and reported under carbon
jira[1]. This might be a kernel patch to fix this issue.

As per the discussion had with Sameera & carbon team, first they has to
test the carbon 4.3 patching process and then to fix it.

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

Regards,
Aparna

On Tue, Feb 10, 2015 at 11:55 PM, Chaminda Jayawardena 
wrote:

> Hi All,
>
> Please find the update on SS 1.5.0 release testing.
>
> We have covered the following high-level areas so far.
>
> 1. RSS Manager
>-Postgresql
>-MySql
>-MSSQL
>-H2
> 2. Cassandra Keyspaces
> 3. Hadoop File System - Pending
>
> Test case document, find here [1]
>
> Below types and count of issues on [2] are in open status;
> Highest - 2
> High -10
>
> [1].
> https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0Aj1RxSLVRSX3dER3ckRJblM0WlRlT3FkTWZBVDFJRkE&usp=sharing
> [2]. https://wso2.org/jira/issues/?jql=project%20%3D%20SS
>
> --
> Thanks & Regards
>
> *Chaminda Jayawardena*
> Senior Software Engineer - QA
> WSO2 Inc. - http://wso2.com
> +94-77-7725234
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Regards,*
*Aparna Karunarathna.*


*Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Error when processing the authentication request! in Configuring Single Sign-On with SAML 2.0 Sample

2015-02-11 Thread Tharindu Edirisinghe
Hi Thusitha,

Check if you have selected 'wso2carbon' as the certificate alias for
signature validation.

[image: Inline image 1]

On Wed, Feb 11, 2015 at 5:13 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi All,
>
> I have gone through the steps in [1], to run the *Configuring Single
> Sign-On with SAML 2.0 sample *in the IS 5.0.0.
> When I try to login using admin/admin I'm getting following error
>
> [image: Inline image 1]
>
> In the IS console
>
> [2015-02-11 17:10:56,627]  WARN
> {org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor}
> -  *Signature validation for Authentication Request failed*.
>
> Using log4j.logger.org.wso2.carbon.identity=DEBUG
>
> [2015-02-11 17:04:10,856] DEBUG
> {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -  Query
> string :
> SAMLRequest=nZPdbtswDIVfxdC9f5sCmRC7yBIUC9BtXuLuoneawiwaZMkT6TR9%2B8l20nnDGgS7FcnDw4%2FU7O5Y6%2BAADpU1OUujhAVgpN0q8z1nj9V9OGV3xQxFrRs%2Bb2lv1vCzBaTA1xnkfSBnrTPcClTIjagBOUm%2BmX984FmU8MZZstJqFswRwZFvtLAG2xrcBtxBSXhcP%2BRsT9TwONZWCr23SHyaTJOYnDiAf1P0Eklbx3tbQ%2FQDGxYsvQllBPW%2Bu2L8o%2FrdZHITd%2B4QLQvurZPQ28%2FZTmgEFqyWOfPDrrAUiOoAvwOILawMkjCUsyxJb8MkC9O0SlN%2BM%2BFpEk1vsycWlKe53isz0LoE4duQhPxDVZVh%2BXlTseDrmbpPYGfGfXd3PV1xZsqKv1jN4rHioJ81%2FJOXWC1Lq5V8GbXJrt%2Bi1vZ54UCQZ0auhR5vLeiyQPeituGuT%2BVNNzsSGGLBpuw8fWmFVjsFLmeDYxa%2Fej7dHGz7FfrrITjSf5lf2LoRTmGHHY5C0gk8HysvtKe6ht2ow9VLuJgmueyk%2FXN3dM%2FWbbsjAuknq5ww2FhHw9r%2B6acYYm8BKc4bH%2F%2FT4hc%3D&SigAlg=http%3A%2F%
> 2Fwww.w3.org
> %2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=gjnmwL3nruOUgRGotCoAxR1U3x7dKAw36MFQpn%2FBQbIl%2FlsX20cbQ6TkRBHsmVUYPX6DjTSSykEhkjme1mHsPOfNSTamIA29i%2Fsg8eXWJS47OeFrUaYutmFTNMHm%2F1MP3c92AppLoClLGd7Uza8RgywiXi%2FELvLLWL0qzTvb2O4%3D
> [2015-02-11 17:04:10,857] DEBUG
> {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Request message
>  xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
> AssertionConsumerServiceURL="
> http://localhost:8080/travelocity.com/home.jsp"; Destination="
> https://localhost:9443/samlsso"; ForceAuthn="false" ID="0"
> IsPassive="false" IssueInstant="2015-02-11T11:34:10.852Z"
> ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
> Version="2.0"> xmlns:samlp="urn:oasis:names:tc:SAML:2.0:assertion">travelocity.com xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" AllowCreate="true"
> Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"
> SPNameQualifier="Issuer"/> xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
> Comparison="exact"> xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
> [2015-02-11 17:04:10,858] DEBUG
> {org.wso2.carbon.identity.sso.saml.validators.SPInitSSOAuthnRequestValidator}
> -  Authentication Request Validation is successful..
> [2015-02-11 17:04:10,861] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
> -  Initializing the flow
> [2015-02-11 17:04:10,861] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
> -  The query-string sent by the calling servlet is:
> SAMLRequest=nZPdbtswDIVfxdC9f5sCmRC7yBIUC9BtXuLuoneawiwaZMkT6TR9%2B8l20nnDGgS7FcnDw4%2FU7O5Y6%2BAADpU1OUujhAVgpN0q8z1nj9V9OGV3xQxFrRs%2Bb2lv1vCzBaTA1xnkfSBnrTPcClTIjagBOUm%2BmX984FmU8MZZstJqFswRwZFvtLAG2xrcBtxBSXhcP%2BRsT9TwONZWCr23SHyaTJOYnDiAf1P0Eklbx3tbQ%2FQDGxYsvQllBPW%2Bu2L8o%2FrdZHITd%2B4QLQvurZPQ28%2FZTmgEFqyWOfPDrrAUiOoAvwOILawMkjCUsyxJb8MkC9O0SlN%2BM%2BFpEk1vsycWlKe53isz0LoE4duQhPxDVZVh%2BXlTseDrmbpPYGfGfXd3PV1xZsqKv1jN4rHioJ81%2FJOXWC1Lq5V8GbXJrt%2Bi1vZ54UCQZ0auhR5vLeiyQPeituGuT%2BVNNzsSGGLBpuw8fWmFVjsFLmeDYxa%2Fej7dHGz7FfrrITjSf5lf2LoRTmGHHY5C0gk8HysvtKe6ht2ow9VLuJgmueyk%2FXN3dM%2FWbbsjAuknq5ww2FhHw9r%2B6acYYm8BKc4bH%2F%2FT4hc%3D&SigAlg=http%3A%2F%
> 2Fwww.w3.org
> %2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=gjnmwL3nruOUgRGotCoAxR1U3x7dKAw36MFQpn%2FBQbIl%2FlsX20cbQ6TkRBHsmVUYPX6DjTSSykEhkjme1mHsPOfNSTamIA29i%2Fsg8eXWJS47OeFrUaYutmFTNMHm%2F1MP3c92AppLoClLGd7Uza8RgywiXi%2FELvLLWL0qzTvb2O4%3D&relyingParty=
> travelocity.com
> &sessionDataKey=166ec0b0-19b9-4531-b4c6-eb9b6ba0b40d&type=samlsso&commonAuthCallerPath=%2Fsamlsso&forceAuth=false&passiveAuth=false
> [2015-02-11 17:04:10,861] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
> -  Framework contextId: b55b5935-c834-43c9-8c0f-25548ea57da1
> [2015-02-11 17:04:10,861] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
> -  Starting an authentication flow
> [2015-02-11 17:04:10,863] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
> -  In authentication flow
> [2015-02-11 17:04:10,863] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
> -  

[Dev] [IS] Error when processing the authentication request! in Configuring Single Sign-On with SAML 2.0 Sample

2015-02-11 Thread Thusitha Thilina Dayaratne
Hi All,

I have gone through the steps in [1], to run the *Configuring Single
Sign-On with SAML 2.0 sample *in the IS 5.0.0.
When I try to login using admin/admin I'm getting following error

[image: Inline image 1]

In the IS console

[2015-02-11 17:10:56,627]  WARN
{org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor}
-  *Signature validation for Authentication Request failed*.

Using log4j.logger.org.wso2.carbon.identity=DEBUG

[2015-02-11 17:04:10,856] DEBUG
{org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -  Query
string :
SAMLRequest=nZPdbtswDIVfxdC9f5sCmRC7yBIUC9BtXuLuoneawiwaZMkT6TR9%2B8l20nnDGgS7FcnDw4%2FU7O5Y6%2BAADpU1OUujhAVgpN0q8z1nj9V9OGV3xQxFrRs%2Bb2lv1vCzBaTA1xnkfSBnrTPcClTIjagBOUm%2BmX984FmU8MZZstJqFswRwZFvtLAG2xrcBtxBSXhcP%2BRsT9TwONZWCr23SHyaTJOYnDiAf1P0Eklbx3tbQ%2FQDGxYsvQllBPW%2Bu2L8o%2FrdZHITd%2B4QLQvurZPQ28%2FZTmgEFqyWOfPDrrAUiOoAvwOILawMkjCUsyxJb8MkC9O0SlN%2BM%2BFpEk1vsycWlKe53isz0LoE4duQhPxDVZVh%2BXlTseDrmbpPYGfGfXd3PV1xZsqKv1jN4rHioJ81%2FJOXWC1Lq5V8GbXJrt%2Bi1vZ54UCQZ0auhR5vLeiyQPeituGuT%2BVNNzsSGGLBpuw8fWmFVjsFLmeDYxa%2Fej7dHGz7FfrrITjSf5lf2LoRTmGHHY5C0gk8HysvtKe6ht2ow9VLuJgmueyk%2FXN3dM%2FWbbsjAuknq5ww2FhHw9r%2B6acYYm8BKc4bH%2F%2FT4hc%3D&SigAlg=http%3A%2F%
2Fwww.w3.org
%2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=gjnmwL3nruOUgRGotCoAxR1U3x7dKAw36MFQpn%2FBQbIl%2FlsX20cbQ6TkRBHsmVUYPX6DjTSSykEhkjme1mHsPOfNSTamIA29i%2Fsg8eXWJS47OeFrUaYutmFTNMHm%2F1MP3c92AppLoClLGd7Uza8RgywiXi%2FELvLLWL0qzTvb2O4%3D
[2015-02-11 17:04:10,857] DEBUG
{org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Request message
http://localhost:8080/travelocity.com/home.jsp";
Destination="https://localhost:9443/samlsso"; ForceAuthn="false" ID="0"
IsPassive="false" IssueInstant="2015-02-11T11:34:10.852Z"
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Version="2.0">travelocity.comurn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
[2015-02-11 17:04:10,858] DEBUG
{org.wso2.carbon.identity.sso.saml.validators.SPInitSSOAuthnRequestValidator}
-  Authentication Request Validation is successful..
[2015-02-11 17:04:10,861] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
-  Initializing the flow
[2015-02-11 17:04:10,861] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
-  The query-string sent by the calling servlet is:
SAMLRequest=nZPdbtswDIVfxdC9f5sCmRC7yBIUC9BtXuLuoneawiwaZMkT6TR9%2B8l20nnDGgS7FcnDw4%2FU7O5Y6%2BAADpU1OUujhAVgpN0q8z1nj9V9OGV3xQxFrRs%2Bb2lv1vCzBaTA1xnkfSBnrTPcClTIjagBOUm%2BmX984FmU8MZZstJqFswRwZFvtLAG2xrcBtxBSXhcP%2BRsT9TwONZWCr23SHyaTJOYnDiAf1P0Eklbx3tbQ%2FQDGxYsvQllBPW%2Bu2L8o%2FrdZHITd%2B4QLQvurZPQ28%2FZTmgEFqyWOfPDrrAUiOoAvwOILawMkjCUsyxJb8MkC9O0SlN%2BM%2BFpEk1vsycWlKe53isz0LoE4duQhPxDVZVh%2BXlTseDrmbpPYGfGfXd3PV1xZsqKv1jN4rHioJ81%2FJOXWC1Lq5V8GbXJrt%2Bi1vZ54UCQZ0auhR5vLeiyQPeituGuT%2BVNNzsSGGLBpuw8fWmFVjsFLmeDYxa%2Fej7dHGz7FfrrITjSf5lf2LoRTmGHHY5C0gk8HysvtKe6ht2ow9VLuJgmueyk%2FXN3dM%2FWbbsjAuknq5ww2FhHw9r%2B6acYYm8BKc4bH%2F%2FT4hc%3D&SigAlg=http%3A%2F%
2Fwww.w3.org
%2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=gjnmwL3nruOUgRGotCoAxR1U3x7dKAw36MFQpn%2FBQbIl%2FlsX20cbQ6TkRBHsmVUYPX6DjTSSykEhkjme1mHsPOfNSTamIA29i%2Fsg8eXWJS47OeFrUaYutmFTNMHm%2F1MP3c92AppLoClLGd7Uza8RgywiXi%2FELvLLWL0qzTvb2O4%3D&relyingParty=
travelocity.com
&sessionDataKey=166ec0b0-19b9-4531-b4c6-eb9b6ba0b40d&type=samlsso&commonAuthCallerPath=%2Fsamlsso&forceAuth=false&passiveAuth=false
[2015-02-11 17:04:10,861] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
-  Framework contextId: b55b5935-c834-43c9-8c0f-25548ea57da1
[2015-02-11 17:04:10,861] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator}
-  Starting an authentication flow
[2015-02-11 17:04:10,863] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
-  In authentication flow
[2015-02-11 17:04:10,863] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
-  Starting the sequence
[2015-02-11 17:04:10,863] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
-  Force Authenticate: false
[2015-02-11 17:04:10,863] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
-  Re-Authenticate: false
[2015-02-11 17:04:10,863] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
-  Passive Authenticate: false
[2015-02-11 17:04:10,863] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Executing the Step Based Authentica

Re: [Dev] [ESB] [IS] Securing an endpoint using WSO2 ESB and IS

2015-02-11 Thread Madusanka Premaratne
Hi Shiva,
I will go through the doc you shared.

Thanks,

On Wed, Feb 11, 2015 at 4:17 PM, Shiva Balachandran  wrote:

> Hi Madushanka,
>
> Please check if the user credentials are present by logging in directly to
> the IS Admin Panel. Also try recreating another set of credentials with
> admin privileges and testing. Check document [1] for more information on
> how to securing the rest service using the ESB OAuth Mediator.
>
> [1] -
> https://docs.wso2.com/display/IS500/2-legged+OAuth+for+Securing+a+RESTful+Service
>
> Thank you.
>
> Regards,
>
> On Wed, Feb 11, 2015 at 3:08 PM, Madusanka Premaratne  > wrote:
>
>> Hi Shiva,
>> Thanks for the response.
>> When I debug the code, it points me that I use wrong credentials, but I
>> provided the credentials given by IS.
>> I am still confused why this goes wrong.
>>
>> Thanks,
>>
>> On Wed, Feb 11, 2015 at 2:00 PM, Shiva Balachandran 
>> wrote:
>>
>>> Hi,
>>>
>>> Please check the credentials again, might be an errornous credentials.
>>>
>>> Thank you.
>>>
>>> Regards,
>>>
>>> On Tue, Feb 10, 2015 at 2:39 PM, Madusanka Premaratne <
>>> madusan...@wso2.com> wrote:
>>>
 Hi all,
 I am trying to secure a rest service using ESB OAuth Mediator[1] with
 the help of WSO2 Identity Server. I created a service provider in WSO2 IS
 and used the OAuth credentials as username and password in ESB's OAuth
 mediator. When I call the proxy service it gives me an error saying
 "Connection Refused"

 Can somebody tell me What I am missing here?

  My proxy service looks like below,
 
 http://ws.apache.org/ns/synapse";
name="App"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">

   
  https://10.100.5.179:9444/services/";
username="erbO9h_cBgwQQ45fGmQ88RqpbMAa"
password="JU_G6DayJpYMBn8vVU7JGNab0Fga"/>
   
   
  
   
   
  http://10.100.5.179:9763/services/Version/getVersion"/>
   


 

 ​[1] - https://docs.wso2.com/display/ESB480/OAuth+Mediator​

 ​Thank You,​

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

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


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


>>>
>>>
>>> --
>>> Shiva Balachandran
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile - +94 774445788
>>> Blog - https://shivabalachandran.wordpress.com/
>>>
>>
>>
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook]  [image:
>> Twitter]  [image: Google Plus]
>>  [image:
>> Linkedin]  [image: Instagram]
>>  [image: Skype]
>> 
>>
>>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>



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

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

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


Re: [Dev] [ESB 4.5.1] Load balance endpoint only sends HTTP response header to the client

2015-02-11 Thread Dileepa Jayakody
Hi Isuru,

Thanks a lot!
Adding the messageType property did the trick.
I will use 4.8.1 :)

Regards,
Dileepa

On Wed, Feb 11, 2015 at 4:15 PM, Isuru Udana  wrote:

> Can you try with setting the messageType property to application/rdf+xml
> in outSequence.
>
> 
>
> And also 4.5.1 is a very old version of ESB, If there is no strong reason
> for you to keep using it, try to use latest 4.8.1 version.
>
> Thanks.
>
> On Wed, Feb 11, 2015 at 4:09 PM, Dileepa Jayakody <
> dileepajayak...@gmail.com> wrote:
>
>> Hi Isuru,
>>
>> Thanks a lot for that pointer :)
>> As you pointed out it seems the issue is related Accept content type of
>> my request (application/rdf+xml).
>>
>> I tried adding > class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> to the axis2.xml
>> but still ESB serializes the BE response as a text/plain which results in
>> just sending the HTTP 200 response header to the client.
>>
>> I also tried enabling  > class="org.wso2.carbon.relay.BinaryRelayBuilder"/> but still the in the
>> out-sequence ESB tries to serialize the response as text/plain.
>>
>>
>> Following is a full log of a sample request : curl -v -X POST -H "Accept:
>> application/rdf+xml" -H "Content-type: text/plain" --data "sample request
>> to detect cities like Paris in content."
>> http://localhost:8280/services/StanbolProxy
>>
>> [2015-02-11 16:01:24,844] DEBUG - wire >> "POST /services/StanbolProxy
>> HTTP/1.1[\r][\n]"
>> [2015-02-11 16:01:24,846] DEBUG - wire >> "User-Agent: curl/7.22.0
>> (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4
>> libidn/1.23 librtmp/2.3[\r][\n]"
>> [2015-02-11 16:01:24,846] DEBUG - wire >> "Host: localhost:8280[\r][\n]"
>> [2015-02-11 16:01:24,846] DEBUG - wire >> "Accept:
>> application/rdf+xml[\r][\n]"
>> [2015-02-11 16:01:24,846] DEBUG - wire >> "Content-type:
>> text/plain[\r][\n]"
>> [2015-02-11 16:01:24,846] DEBUG - wire >> "Content-Length: 54[\r][\n]"
>> [2015-02-11 16:01:24,846] DEBUG - wire >> "[\r][\n]"
>> [2015-02-11 16:01:24,846] DEBUG - wire >> "sample request to detect
>> cities like Paris in content."
>> [2015-02-11 16:01:24,854] DEBUG - wire << "POST /enhancer
>> HTTP/1.1[\r][\n]"
>> [2015-02-11 16:01:24,854] DEBUG - wire << "Content-Type: text/plain;
>> charset=UTF-8[\r][\n]"
>> [2015-02-11 16:01:24,855] DEBUG - wire << "Accept:
>> application/rdf+xml[\r][\n]"
>> [2015-02-11 16:01:24,855] DEBUG - wire << "Transfer-Encoding:
>> chunked[\r][\n]"
>> [2015-02-11 16:01:24,855] DEBUG - wire << "Host: localhost:8081[\r][\n]"
>> [2015-02-11 16:01:24,855] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
>> [2015-02-11 16:01:24,856] DEBUG - wire << "User-Agent:
>> Synapse-HttpComponents-NIO[\r][\n]"
>> [2015-02-11 16:01:24,856] DEBUG - wire << "[\r][\n]"
>> [2015-02-11 16:01:24,857] DEBUG - wire << "36[\r][\n]"
>> [2015-02-11 16:01:24,857] DEBUG - wire << "sample request to detect
>> cities like Paris in content.[\r][\n]"
>> [2015-02-11 16:01:24,858] DEBUG - wire << "0[\r][\n]"
>> [2015-02-11 16:01:24,858] DEBUG - wire << "[\r][\n]"
>> [2015-02-11 16:01:25,192] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
>> [2015-02-11 16:01:25,193] DEBUG - wire >> "Date: Wed, 11 Feb 2015
>> 10:31:24 GMT[\r][\n]"
>> [2015-02-11 16:01:25,193] DEBUG - wire >> "Content-Type:
>> application/rdf+xml[\r][\n]"
>> [2015-02-11 16:01:25,193] DEBUG - wire >> "Transfer-Encoding:
>> chunked[\r][\n]"
>> [2015-02-11 16:01:25,193] DEBUG - wire >> "Server:
>> Jetty(7.x.y-SNAPSHOT)[\r][\n]"
>> [2015-02-11 16:01:25,193] DEBUG - wire >> "[\r][\n]"
>> [2015-02-11 16:01:25,193] DEBUG - wire >> "783[\r][\n]"
>> [2015-02-11 16:01:25,193] DEBUG - wire >> "> [2015-02-11 16:01:25,194] DEBUG - wire >> "xmlns:rdf="
>> http://www.w3.org/1999/02/22-rdf-syntax-ns#"[\n]";
>> [2015-02-11 16:01:25,194] DEBUG - wire >> "xmlns:j.0="
>> http://purl.org/dc/terms/"[\n]";
>> [2015-02-11 16:01:25,194] DEBUG - wire >> "xmlns:j.1="
>> http://fise.iks-project.eu/ontology/"; > [\n]"
>> [2015-02-11 16:01:25,194] DEBUG - wire >> "  > rdf:about="urn:enhancement-cdbc9f2a-89b7-0b61-9159-081ae687ccd9">[\n]"
>> [2015-02-11 16:01:25,194] DEBUG - wire >> "> rdf:datatype="http://www.w3.org/2001/XMLSchema#double
>> ">0.14285864925027827[\n]"
>> [2015-02-11 16:01:25,194] DEBUG - wire >> "> rdf:resource="urn:content-item-sha1-ebfbb96693dc00da6924f8bd0b738819b84829a8"/>[\n]"
>> [2015-02-11 16:01:25,194] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#dateTime
>> ">2015-02-11T10:31:24.979Z[\n]"
>> [2015-02-11 16:01:25,194] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#string
>> ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine[\n]"
>> [2015-02-11 16:01:25,194] DEBUG - wire >> "
>>  en[\n]"
>> [2015-02-11 16:01:25,195] DEBUG - wire >> "http://purl.org/dc/terms/LinguisticSystem"/>[\n]"
>> [2015-02-11 16:01:25,195] DEBUG - wire >> "http://fise.iks-project.eu/ontology/Enhancement"/>[\n]"
>> [2015-02-11 16:01:25,195] DEBUG - wire >> "http://fise.iks-project.eu/ontology/TextAnno

Re: [Dev] [ESB] [IS] Securing an endpoint using WSO2 ESB and IS

2015-02-11 Thread Shiva Balachandran
Hi Madushanka,

Please check if the user credentials are present by logging in directly to
the IS Admin Panel. Also try recreating another set of credentials with
admin privileges and testing. Check document [1] for more information on
how to securing the rest service using the ESB OAuth Mediator.

[1] -
https://docs.wso2.com/display/IS500/2-legged+OAuth+for+Securing+a+RESTful+Service

Thank you.

Regards,

On Wed, Feb 11, 2015 at 3:08 PM, Madusanka Premaratne 
wrote:

> Hi Shiva,
> Thanks for the response.
> When I debug the code, it points me that I use wrong credentials, but I
> provided the credentials given by IS.
> I am still confused why this goes wrong.
>
> Thanks,
>
> On Wed, Feb 11, 2015 at 2:00 PM, Shiva Balachandran 
> wrote:
>
>> Hi,
>>
>> Please check the credentials again, might be an errornous credentials.
>>
>> Thank you.
>>
>> Regards,
>>
>> On Tue, Feb 10, 2015 at 2:39 PM, Madusanka Premaratne <
>> madusan...@wso2.com> wrote:
>>
>>> Hi all,
>>> I am trying to secure a rest service using ESB OAuth Mediator[1] with
>>> the help of WSO2 Identity Server. I created a service provider in WSO2 IS
>>> and used the OAuth credentials as username and password in ESB's OAuth
>>> mediator. When I call the proxy service it gives me an error saying
>>> "Connection Refused"
>>>
>>> Can somebody tell me What I am missing here?
>>>
>>>  My proxy service looks like below,
>>> 
>>> http://ws.apache.org/ns/synapse";
>>>name="App"
>>>transports="https,http"
>>>statistics="disable"
>>>trace="disable"
>>>startOnLoad="true">
>>>
>>>   
>>>  https://10.100.5.179:9444/services/";
>>>username="erbO9h_cBgwQQ45fGmQ88RqpbMAa"
>>>password="JU_G6DayJpYMBn8vVU7JGNab0Fga"/>
>>>   
>>>   
>>>  
>>>   
>>>   
>>>  http://10.100.5.179:9763/services/Version/getVersion"/>
>>>   
>>>
>>>
>>> 
>>>
>>> ​[1] - https://docs.wso2.com/display/ESB480/OAuth+Mediator​
>>>
>>> ​Thank You,​
>>>
>>> --
>>> *Madusanka Premaratne* | Associate Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>>> Email: madusan...@wso2.com | Web: www.wso2.com
>>>
>>> [image: Facebook]  [image:
>>> Twitter]  [image: Google Plus]
>>>  [image:
>>> Linkedin]  [image: Instagram]
>>>  [image: Skype]
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>> Blog - https://shivabalachandran.wordpress.com/
>>
>
>
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
> [image: Facebook]  [image:
> Twitter]  [image: Google Plus]
>  [image:
> Linkedin]  [image: Instagram]
>  [image: Skype]
> 
>
>


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
Blog - https://shivabalachandran.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 4.5.1] Load balance endpoint only sends HTTP response header to the client

2015-02-11 Thread Isuru Udana
Can you try with setting the messageType property to application/rdf+xml in
outSequence.



And also 4.5.1 is a very old version of ESB, If there is no strong reason
for you to keep using it, try to use latest 4.8.1 version.

Thanks.

On Wed, Feb 11, 2015 at 4:09 PM, Dileepa Jayakody  wrote:

> Hi Isuru,
>
> Thanks a lot for that pointer :)
> As you pointed out it seems the issue is related Accept content type of my
> request (application/rdf+xml).
>
> I tried adding  class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> to the axis2.xml
> but still ESB serializes the BE response as a text/plain which results in
> just sending the HTTP 200 response header to the client.
>
> I also tried enabling   class="org.wso2.carbon.relay.BinaryRelayBuilder"/> but still the in the
> out-sequence ESB tries to serialize the response as text/plain.
>
>
> Following is a full log of a sample request : curl -v -X POST -H "Accept:
> application/rdf+xml" -H "Content-type: text/plain" --data "sample request
> to detect cities like Paris in content."
> http://localhost:8280/services/StanbolProxy
>
> [2015-02-11 16:01:24,844] DEBUG - wire >> "POST /services/StanbolProxy
> HTTP/1.1[\r][\n]"
> [2015-02-11 16:01:24,846] DEBUG - wire >> "User-Agent: curl/7.22.0
> (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4
> libidn/1.23 librtmp/2.3[\r][\n]"
> [2015-02-11 16:01:24,846] DEBUG - wire >> "Host: localhost:8280[\r][\n]"
> [2015-02-11 16:01:24,846] DEBUG - wire >> "Accept:
> application/rdf+xml[\r][\n]"
> [2015-02-11 16:01:24,846] DEBUG - wire >> "Content-type:
> text/plain[\r][\n]"
> [2015-02-11 16:01:24,846] DEBUG - wire >> "Content-Length: 54[\r][\n]"
> [2015-02-11 16:01:24,846] DEBUG - wire >> "[\r][\n]"
> [2015-02-11 16:01:24,846] DEBUG - wire >> "sample request to detect cities
> like Paris in content."
> [2015-02-11 16:01:24,854] DEBUG - wire << "POST /enhancer HTTP/1.1[\r][\n]"
> [2015-02-11 16:01:24,854] DEBUG - wire << "Content-Type: text/plain;
> charset=UTF-8[\r][\n]"
> [2015-02-11 16:01:24,855] DEBUG - wire << "Accept:
> application/rdf+xml[\r][\n]"
> [2015-02-11 16:01:24,855] DEBUG - wire << "Transfer-Encoding:
> chunked[\r][\n]"
> [2015-02-11 16:01:24,855] DEBUG - wire << "Host: localhost:8081[\r][\n]"
> [2015-02-11 16:01:24,855] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
> [2015-02-11 16:01:24,856] DEBUG - wire << "User-Agent:
> Synapse-HttpComponents-NIO[\r][\n]"
> [2015-02-11 16:01:24,856] DEBUG - wire << "[\r][\n]"
> [2015-02-11 16:01:24,857] DEBUG - wire << "36[\r][\n]"
> [2015-02-11 16:01:24,857] DEBUG - wire << "sample request to detect cities
> like Paris in content.[\r][\n]"
> [2015-02-11 16:01:24,858] DEBUG - wire << "0[\r][\n]"
> [2015-02-11 16:01:24,858] DEBUG - wire << "[\r][\n]"
> [2015-02-11 16:01:25,192] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
> [2015-02-11 16:01:25,193] DEBUG - wire >> "Date: Wed, 11 Feb 2015 10:31:24
> GMT[\r][\n]"
> [2015-02-11 16:01:25,193] DEBUG - wire >> "Content-Type:
> application/rdf+xml[\r][\n]"
> [2015-02-11 16:01:25,193] DEBUG - wire >> "Transfer-Encoding:
> chunked[\r][\n]"
> [2015-02-11 16:01:25,193] DEBUG - wire >> "Server:
> Jetty(7.x.y-SNAPSHOT)[\r][\n]"
> [2015-02-11 16:01:25,193] DEBUG - wire >> "[\r][\n]"
> [2015-02-11 16:01:25,193] DEBUG - wire >> "783[\r][\n]"
> [2015-02-11 16:01:25,193] DEBUG - wire >> " [2015-02-11 16:01:25,194] DEBUG - wire >> "xmlns:rdf="
> http://www.w3.org/1999/02/22-rdf-syntax-ns#"[\n]";
> [2015-02-11 16:01:25,194] DEBUG - wire >> "xmlns:j.0="
> http://purl.org/dc/terms/"[\n]";
> [2015-02-11 16:01:25,194] DEBUG - wire >> "xmlns:j.1="
> http://fise.iks-project.eu/ontology/"; > [\n]"
> [2015-02-11 16:01:25,194] DEBUG - wire >> "   rdf:about="urn:enhancement-cdbc9f2a-89b7-0b61-9159-081ae687ccd9">[\n]"
> [2015-02-11 16:01:25,194] DEBUG - wire >> " rdf:datatype="http://www.w3.org/2001/XMLSchema#double
> ">0.14285864925027827[\n]"
> [2015-02-11 16:01:25,194] DEBUG - wire >> " rdf:resource="urn:content-item-sha1-ebfbb96693dc00da6924f8bd0b738819b84829a8"/>[\n]"
> [2015-02-11 16:01:25,194] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#dateTime
> ">2015-02-11T10:31:24.979Z[\n]"
> [2015-02-11 16:01:25,194] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#string
> ">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine[\n]"
> [2015-02-11 16:01:25,194] DEBUG - wire >> "
>  en[\n]"
> [2015-02-11 16:01:25,195] DEBUG - wire >> "http://purl.org/dc/terms/LinguisticSystem"/>[\n]"
> [2015-02-11 16:01:25,195] DEBUG - wire >> "http://fise.iks-project.eu/ontology/Enhancement"/>[\n]"
> [2015-02-11 16:01:25,195] DEBUG - wire >> "http://fise.iks-project.eu/ontology/TextAnnotation"/>[\n]"
> [2015-02-11 16:01:25,195] DEBUG - wire >> "  [\n]"
> [2015-02-11 16:01:25,195] DEBUG - wire >> "   rdf:about="urn:enhancement-ccc10374-74b7-7a7a-0b93-6a94ca0f88b5">[\n]"
> [2015-02-11 16:01:25,195] DEBUG - wire >> " rdf:datatype="http://www.w3.org/2001/XMLSchema#double
> ">0.857139

Re: [Dev] [ESB 4.5.1] Load balance endpoint only sends HTTP response header to the client

2015-02-11 Thread Dileepa Jayakody
Hi Isuru,

Thanks a lot for that pointer :)
As you pointed out it seems the issue is related Accept content type of my
request (application/rdf+xml).

I tried adding  to the axis2.xml
but still ESB serializes the BE response as a text/plain which results in
just sending the HTTP 200 response header to the client.

I also tried enabling   but still the in the
out-sequence ESB tries to serialize the response as text/plain.


Following is a full log of a sample request : curl -v -X POST -H "Accept:
application/rdf+xml" -H "Content-type: text/plain" --data "sample request
to detect cities like Paris in content."
http://localhost:8280/services/StanbolProxy

[2015-02-11 16:01:24,844] DEBUG - wire >> "POST /services/StanbolProxy
HTTP/1.1[\r][\n]"
[2015-02-11 16:01:24,846] DEBUG - wire >> "User-Agent: curl/7.22.0
(x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23
librtmp/2.3[\r][\n]"
[2015-02-11 16:01:24,846] DEBUG - wire >> "Host: localhost:8280[\r][\n]"
[2015-02-11 16:01:24,846] DEBUG - wire >> "Accept:
application/rdf+xml[\r][\n]"
[2015-02-11 16:01:24,846] DEBUG - wire >> "Content-type: text/plain[\r][\n]"
[2015-02-11 16:01:24,846] DEBUG - wire >> "Content-Length: 54[\r][\n]"
[2015-02-11 16:01:24,846] DEBUG - wire >> "[\r][\n]"
[2015-02-11 16:01:24,846] DEBUG - wire >> "sample request to detect cities
like Paris in content."
[2015-02-11 16:01:24,854] DEBUG - wire << "POST /enhancer HTTP/1.1[\r][\n]"
[2015-02-11 16:01:24,854] DEBUG - wire << "Content-Type: text/plain;
charset=UTF-8[\r][\n]"
[2015-02-11 16:01:24,855] DEBUG - wire << "Accept:
application/rdf+xml[\r][\n]"
[2015-02-11 16:01:24,855] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2015-02-11 16:01:24,855] DEBUG - wire << "Host: localhost:8081[\r][\n]"
[2015-02-11 16:01:24,855] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2015-02-11 16:01:24,856] DEBUG - wire << "User-Agent:
Synapse-HttpComponents-NIO[\r][\n]"
[2015-02-11 16:01:24,856] DEBUG - wire << "[\r][\n]"
[2015-02-11 16:01:24,857] DEBUG - wire << "36[\r][\n]"
[2015-02-11 16:01:24,857] DEBUG - wire << "sample request to detect cities
like Paris in content.[\r][\n]"
[2015-02-11 16:01:24,858] DEBUG - wire << "0[\r][\n]"
[2015-02-11 16:01:24,858] DEBUG - wire << "[\r][\n]"
[2015-02-11 16:01:25,192] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
[2015-02-11 16:01:25,193] DEBUG - wire >> "Date: Wed, 11 Feb 2015 10:31:24
GMT[\r][\n]"
[2015-02-11 16:01:25,193] DEBUG - wire >> "Content-Type:
application/rdf+xml[\r][\n]"
[2015-02-11 16:01:25,193] DEBUG - wire >> "Transfer-Encoding:
chunked[\r][\n]"
[2015-02-11 16:01:25,193] DEBUG - wire >> "Server:
Jetty(7.x.y-SNAPSHOT)[\r][\n]"
[2015-02-11 16:01:25,193] DEBUG - wire >> "[\r][\n]"
[2015-02-11 16:01:25,193] DEBUG - wire >> "783[\r][\n]"
[2015-02-11 16:01:25,193] DEBUG - wire >> "> "xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#"[\n]";
[2015-02-11 16:01:25,194] DEBUG - wire >> "xmlns:j.0="
http://purl.org/dc/terms/"[\n]";
[2015-02-11 16:01:25,194] DEBUG - wire >> "xmlns:j.1="
http://fise.iks-project.eu/ontology/"; > [\n]"
[2015-02-11 16:01:25,194] DEBUG - wire >> "  [\n]"
[2015-02-11 16:01:25,194] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#double
">0.14285864925027827[\n]"
[2015-02-11 16:01:25,194] DEBUG - wire >> "[\n]"
[2015-02-11 16:01:25,194] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#dateTime
">2015-02-11T10:31:24.979Z[\n]"
[2015-02-11 16:01:25,194] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#string
">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine[\n]"
[2015-02-11 16:01:25,194] DEBUG - wire >> "
 en[\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "http://purl.org/dc/terms/LinguisticSystem"/>[\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "http://fise.iks-project.eu/ontology/Enhancement"/>[\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "http://fise.iks-project.eu/ontology/TextAnnotation"/>[\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "  [\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "  [\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#double
">0.8571391372006272[\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "[\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#dateTime
">2015-02-11T10:31:24.979Z[\n]"
[2015-02-11 16:01:25,195] DEBUG - wire >> "http://www.w3.org/2001/XMLSchema#string
">org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine[\n]"
[2015-02-11 16:01:25,196] DEBUG - wire >> "
 fr[\n]"
[2015-02-11 16:01:25,196] DEBUG - wire >> "http://purl.org/dc/terms/LinguisticSystem"/>[\n]"
[2015-02-11 16:01:25,196] DEBUG - wire >> "http://fise.iks-project.eu/ontology/Enhancement"/>[\n]"
[2015-02-11 16:01:25,196] DEBUG - wire >> "http://fise.iks-project.eu/ontology/TextAnnotation"/>[\n]"
[2015-02-11 16:01:25,196] DEBUG - wire >> "  [\n]"
[2015-02-11 16:01:25,196] DEBUG - wire >> "[\n]"
[2015-02-11 16:01:25,19

Re: [Dev] Mysql connection issue

2015-02-11 Thread Vijayaratha Vijayasingam
Thanks all..
I used mysql workbench to configure the server..Looks it didnt work?
Used command line and granted root user for all ip addresses which i used
in the setup and it worked.

eg:- grant all on poc_apim.* TO r...@192.xx.xx.xx identified by "root";


Thanks.

On 11 February 2015 at 17:19, Udara Liyanage  wrote:

> HI Ratha,
>
> You can check weather MySQL server is accessible from you machine using
> telnet. Most probably you won't be able to when having a look at the issue
> you have mentioned. If the the server is running in the remote machine but
> still you can not connect most probably server is bind to localhost as
> Niroda mentioned. You can check bind address by
>
> netstat -tulpn | grep mysql
> tcp0  0 127.0.0.1:3306  *127.0.0.1*
> LISTEN  1105/mysqld
>
> If so change bind address to 0.0.0.0, so server will be bind to all
> network interfaces.
> tcp0  0 127.0.0.1:3306  *0.0.0.0:**
> LISTEN  1105/mysqld
>
> On Wed, Feb 11, 2015 at 10:57 AM, Nirodha Pramod  wrote:
>
>> Hi Ratha,
>>
>> This is either the user does not have enough privileges or you haven't
>> given remote access permission for clients to connect remotely. If you can
>> connect from a client from within the server machine then the root cause is
>> the latter one. To overcome that you have to set the bind-address value to
>> the ip instead of 127.0.0.1 to give remote access, which is in my.cnf file.
>> In linux systems it is usually there in /etc/mysql/my.cnf.  Please refer
>> [2] and [3] for more info.
>>
>> [2]
>> http://stackoverflow.com/questions/2482234/how-to-know-mysql-my-cnf-location
>> [3]
>> http://www.cyberciti.biz/faq/unix-linux-mysqld-server-bind-to-more-than-one-ip-address/
>>
>>
>> -Nirodha
>>
>> On Wed, Feb 11, 2015 at 9:57 AM, Anuruddha Liyanarachchi <
>> anurudd...@wso2.com> wrote:
>>
>>> Hi Vijayaratha,
>>>
>>> Have you checked this answer[1] at stackoverflow.
>>> You could try adding a new administrator account:
>>>
>>> [1]
>>> http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server
>>>
>>>
>>> On Wed, Feb 11, 2015 at 9:47 AM, Vijayaratha Vijayasingam <
>>> rat...@wso2.com> wrote:
>>>
 I checked that option too. My setting is right..Attached screenshot

 On 11 February 2015 at 12:11, Bhathiya Jayasekara 
 wrote:

> Hi Ratha,
>
> In MySQL server, *skip-networking* setting must have been enabled.
> You have to disable it to allow remote connections. More infor here [1].
>
> [1]
> http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html
>
> Thanks,
> Bhathiya
>
> On Wed, Feb 11, 2015 at 9:35 AM, Vijayaratha Vijayasingam <
> rat...@wso2.com> wrote:
>
>> Hi all;
>> Trying to connect remote mysql server which in windows box. But
>> getting[1];
>>
>> I can ping to that machine and firewall is off. Root user has all
>> privileges.
>>
>> Anyone knows the cause, what type of security settings i need to do
>> in mysql?
>>
>> [1]Caused by:
>> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: 
>> Could
>> not create connection to database server. Attempted reconnect 3 times.
>> Giving up.
>>
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>>
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>
>> at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
>>
>> at com.mysql.jdbc.Util.getInstance(Util.java:360)
>>
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
>>
>> at com.mysql.jdbc.
>>
>> Caused by: java.sql.SQLException: null,  message from server: "Host
>> '192.168.50.62' is not allowed to connect to this MySQL server"
>>
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
>>
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
>>
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
>>
>>  at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1037)
>>
>>
>> thanks
>> --
>> -Ratha
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax
>

Re: [Dev] jaxr sample of WSO2 Governance Registry throws an exception

2015-02-11 Thread Chathura Priyankara
Hi Hasanthi,

As Thusitha said this error occurs when you are using wrong username and
password in scoutv3.properties file.
Use admin for both username and password and try to run the sample.

Thanks!
Best regards,

On Tue, Feb 10, 2015 at 12:37 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Hasanthi,
>
> Did you edit the  scoutv3.properties file with username and password?
> Thanks
>
> On Mon, Feb 9, 2015 at 2:15 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi,
>> I tried to execute the jaxr sample according to the instructions of wso2
>> documentation. (https://docs.wso2.com/display/Governance453/JAXR+Sample)
>> . But it throws following exception,
>>
>> [java] javax.xml.registry.JAXRException:
>> org.apache.ws.scout.transport.TransportException:
>> java.lang.reflect.InvocationTargetException
>>  [java] at
>> org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.getAuthToken(BusinessLifeCycleManagerV3Impl.java:918)
>>  [java] at
>> org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.executeOperation(BusinessLifeCycleManagerV3Impl.java:566)
>>  [java] at
>> org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.saveOrganizations(BusinessLifeCycleManagerV3Impl.java:421)
>>  [java] at
>> org.wso2.registry.jaxr.sample.JaxrServiceTest.createOrganization(JaxrServiceTest.java:166)
>>  [java] at
>> org.wso2.registry.jaxr.sample.JaxrServiceTest.publishFindAndDeleteService(JaxrServiceTest.java:50)
>>  [java] at
>> org.wso2.registry.jaxr.sample.RegistryJaxrClient.main(RegistryJaxrClient.java:49)
>>  [java] Caused by: org.apache.ws.scout.transport.TransportException:
>> java.lang.reflect.InvocationTargetException
>>  [java] at
>> org.apache.ws.scout.registry.RegistryV3Impl.execute(RegistryV3Impl.java:256)
>>  [java] at
>> org.apache.ws.scout.registry.RegistryV3Impl.getAuthToken(RegistryV3Impl.java:857)
>>  [java] at
>> org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.getAuthToken(BusinessLifeCycleManagerV3Impl.java:914)
>>  [java] ... 5 more
>>  [java] Caused by: org.apache.ws.scout.transport.TransportException:
>> java.lang.reflect.InvocationTargetException
>>  [java] at
>> org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:83)
>>  [java] at
>> org.apache.ws.scout.registry.RegistryV3Impl.execute(RegistryV3Impl.java:254)
>>  [java] ... 7 more
>>  [java] Caused by: java.lang.reflect.InvocationTargetException
>>  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>>  [java] at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  [java] at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  [java] at java.lang.reflect.Method.invoke(Method.java:597)
>>  [java] at
>> org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:74)
>>  [java] ... 8 more
>>  [java] Caused by: java.lang.reflect.InvocationTargetException
>>  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>>  [java] at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  [java] at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  [java] at java.lang.reflect.Method.invoke(Method.java:597)
>>  [java] at
>> org.apache.juddi.v3.client.transport.wrapper.RequestHandler.invoke(RequestHandler.java:176)
>>  [java] at
>> org.apache.juddi.v3.client.transport.wrapper.UDDISecurityService.secure(UDDISecurityService.java:91)
>>  [java] ... 13 more
>>  [java] Caused by: javax.xml.ws.soap.SOAPFaultException: Invalid
>> credentials were passed
>>  [java] at
>> com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
>>  [java] at
>> com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:119)
>>  [java] at
>> com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
>>  [java] at
>> com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
>>  [java] at
>> com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
>>  [java] at com.sun.proxy.$Proxy40.getAuthToken(Unknown Source)
>>  [java] ... 19 more
>>
>> Is there anything to configure, other than the instructions given?
>>
>> Thanks and regards,
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com 
>> M :0718407133| http://wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer | WSO2 Inc
>
> Emailthusit...@wso2.com
> Mobile  +9471275

Re: [Dev] [ESB] [IS] Securing an endpoint using WSO2 ESB and IS

2015-02-11 Thread Madusanka Premaratne
Hi Shiva,
Thanks for the response.
When I debug the code, it points me that I use wrong credentials, but I
provided the credentials given by IS.
I am still confused why this goes wrong.

Thanks,

On Wed, Feb 11, 2015 at 2:00 PM, Shiva Balachandran  wrote:

> Hi,
>
> Please check the credentials again, might be an errornous credentials.
>
> Thank you.
>
> Regards,
>
> On Tue, Feb 10, 2015 at 2:39 PM, Madusanka Premaratne  > wrote:
>
>> Hi all,
>> I am trying to secure a rest service using ESB OAuth Mediator[1] with the
>> help of WSO2 Identity Server. I created a service provider in WSO2 IS and
>> used the OAuth credentials as username and password in ESB's OAuth
>> mediator. When I call the proxy service it gives me an error saying
>> "Connection Refused"
>>
>> Can somebody tell me What I am missing here?
>>
>>  My proxy service looks like below,
>> 
>> http://ws.apache.org/ns/synapse";
>>name="App"
>>transports="https,http"
>>statistics="disable"
>>trace="disable"
>>startOnLoad="true">
>>
>>   
>>  https://10.100.5.179:9444/services/";
>>username="erbO9h_cBgwQQ45fGmQ88RqpbMAa"
>>password="JU_G6DayJpYMBn8vVU7JGNab0Fga"/>
>>   
>>   
>>  
>>   
>>   
>>  http://10.100.5.179:9763/services/Version/getVersion"/>
>>   
>>
>>
>> 
>>
>> ​[1] - https://docs.wso2.com/display/ESB480/OAuth+Mediator​
>>
>> ​Thank You,​
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook]  [image:
>> Twitter]  [image: Google Plus]
>>  [image:
>> Linkedin]  [image: Instagram]
>>  [image: Skype]
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>



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

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

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


Re: [Dev] [ESB 4.5.1] Load balance endpoint only sends HTTP response header to the client

2015-02-11 Thread Isuru Udana
Hi Dileepa,

You could observe that Content-Type of response coming from the backend to
ESB is application/rdf+xml and the response sent from ESB to Client is
text/plain. So Content-Type is getting changed at the ESB.
Could you check whether you have selected correct message formatter
for application/rdf+xml
Content-Type in axis2.xml ?



On Wed, Feb 11, 2015 at 2:43 PM, Dileepa Jayakody  wrote:

> Hi Ruwan,
>
> Thanks again.
> However I still get only the HTTP status code response header to the
> client as below;
> I noted that the response's Transfer-Encoding is chunked. Could this be
> the cause that my client only gets the header part of the response?
>
>
> < HTTP/1.1 200 OK
> < Content-Type: text/plain; charset=UTF-8
> < Server: Jetty(7.x.y-SNAPSHOT)
> < Date: Wed, 11 Feb 2015 08:55:32 GMT
> < Transfer-Encoding: chunked
>
> Thanks,
> Dileepa
>
>
> On Wed, Feb 11, 2015 at 1:42 PM, Ruwan Abeykoon  wrote:
>
>> Hi Dileepa,
>> I am sorry to point you on sample of newer version 4.8.1.
>>
>> Can you try something like this , taken and changed based on sample for
>> 4.5.1 [1]. I Have not tested it though.
>>
>>
>>
>> >transports="https http"
>>startOnLoad="true">
>> 
>> 
>> 
>> 
>> 
>> > algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
>> 
>> http://localhost:8080/enhancer
>> "/>
>> 
>> 
>> http://localhost:8082/enhancer
>> "/>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> As I understand it, your configuration is missing inSequence and it might
>> have caused an undesired behaviour. I would configure both in and out
>> sequences when we have to change one.
>>
>> [1]
>> https://docs.wso2.com/display/ESB451/Sample+752%3A+Load+Balancing+Between+3+Endpoints+With+Endpoint+Templates
>>
>> Cheers,
>> Ruwan
>>
>>
>> On Wed, Feb 11, 2015 at 12:15 PM, Dileepa Jayakody <
>> dileepajayak...@gmail.com> wrote:
>>
>>> Hi Ruwan,
>>>
>>> Thanks for the link. I followed the sample but the issue still persists.
>>>
>>> Although the BE response comes to the out sequence only the HTTP 200
>>> status message is sent to the client.
>>> Response body is not sent.
>>>
>>> Regards,
>>> Dileepa
>>>
>>> On Wed, Feb 11, 2015 at 10:23 AM, Ruwan Abeykoon 
>>> wrote:
>>>
 Hi Deleepa,
 Would you be able to adopt the configuration according to the following
 sample?


 https://docs.wso2.com/display/ESB481/Sample+154%3A+Load+Balancing+with+Proxy+Services

 Have a nice day!
 -Ruwan

 On Tue, Feb 10, 2015 at 11:14 PM, Dileepa Jayakody <
 dileepajayak...@gmail.com> wrote:

> Hi All,
>
> Following is the log for a client request to my proxy service with
> wire-log enabled.
> BE response is logged by the LogMediator in the proxy service's
> out-sequence. But the response to the client doesn't contain the response
> body, only contains the HTTP 200 response header.
> Any tips to tackle the issue is much appreciated.
>
> Thanks,
> Dileepa
>
> [1]
> [2015-02-10 23:05:21,381] DEBUG - wire >> "POST /services/StanbolProxy
> HTTP/1.1[\r][\n]"
> [2015-02-10 23:05:21,384] DEBUG - wire >> "Content-Type:
> text/plain[\r][\n]"
> [2015-02-10 23:05:21,384] DEBUG - wire >> "Accept:
> application/rdf+xml[\r][\n]"
> [2015-02-10 23:05:21,384] DEBUG - wire >> "User-Agent:
> Java/1.7.0_72[\r][\n]"
> [2015-02-10 23:05:21,384] DEBUG - wire >> "Host: 192.168.1.8:8280
> [\r][\n]"
> [2015-02-10 23:05:21,385] DEBUG - wire >> "Connection:
> keep-alive[\r][\n]"
> [2015-02-10 23:05:21,385] DEBUG - wire >> "Content-Length: 35[\r][\n]"
> [2015-02-10 23:05:21,385] DEBUG - wire >> "[\r][\n]"
> [2015-02-10 23:05:21,385] DEBUG - wire >> "Barak Obama is the
> president of USA"
> [2015-02-10 23:05:21,875] DEBUG - wire << "POST /enhancer
> HTTP/1.1[\r][\n]"
> [2015-02-10 23:05:21,876] DEBUG - wire << "Content-Type: text/plain;
> charset=UTF-8[\r][\n]"
> [2015-02-10 23:05:21,876] DEBUG - wire << "Accept:
> application/rdf+xml[\r][\n]"
> [2015-02-10 23:05:21,877] DEBUG - wire << "Transfer-Encoding:
> chunked[\r][\n]"
> [2015-02-10 23:05:21,877] DEBUG - wire << "Host:
> localhost:8082[\r][\n]"
> [2015-02-10 23:05:21,877] DEBUG - wire << "Connection:
> Keep-Alive[\r][\n]"
> [2015-02-10 23:05:21,878] DEBUG - wire << "User-Agent:
> Synapse-HttpComponents-NIO[\r][\n]"
> [2015-02-10 23:05:21,878] DEBUG - wire << "[\r][\n]"
> [2015-02-10 23:05:21,879] DEBUG - wire << "23[\r][\n]"
> [2015-02-10 23:05:21,880] DEBUG - wire << "Barak Obama is the
> president of USA[\r][\n]"
> [2015-02-10 23:05:21,8

Re: [Dev] Mysql connection issue

2015-02-11 Thread Udara Liyanage
HI Ratha,

You can check weather MySQL server is accessible from you machine using
telnet. Most probably you won't be able to when having a look at the issue
you have mentioned. If the the server is running in the remote machine but
still you can not connect most probably server is bind to localhost as
Niroda mentioned. You can check bind address by

netstat -tulpn | grep mysql
tcp0  0 127.0.0.1:3306  *127.0.0.1*
LISTEN  1105/mysqld

If so change bind address to 0.0.0.0, so server will be bind to all network
interfaces.
tcp0  0 127.0.0.1:3306  *0.0.0.0:**
LISTEN  1105/mysqld

On Wed, Feb 11, 2015 at 10:57 AM, Nirodha Pramod  wrote:

> Hi Ratha,
>
> This is either the user does not have enough privileges or you haven't
> given remote access permission for clients to connect remotely. If you can
> connect from a client from within the server machine then the root cause is
> the latter one. To overcome that you have to set the bind-address value to
> the ip instead of 127.0.0.1 to give remote access, which is in my.cnf file.
> In linux systems it is usually there in /etc/mysql/my.cnf.  Please refer
> [2] and [3] for more info.
>
> [2]
> http://stackoverflow.com/questions/2482234/how-to-know-mysql-my-cnf-location
> [3]
> http://www.cyberciti.biz/faq/unix-linux-mysqld-server-bind-to-more-than-one-ip-address/
>
>
> -Nirodha
>
> On Wed, Feb 11, 2015 at 9:57 AM, Anuruddha Liyanarachchi <
> anurudd...@wso2.com> wrote:
>
>> Hi Vijayaratha,
>>
>> Have you checked this answer[1] at stackoverflow.
>> You could try adding a new administrator account:
>>
>> [1]
>> http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server
>>
>>
>> On Wed, Feb 11, 2015 at 9:47 AM, Vijayaratha Vijayasingam <
>> rat...@wso2.com> wrote:
>>
>>> I checked that option too. My setting is right..Attached screenshot
>>>
>>> On 11 February 2015 at 12:11, Bhathiya Jayasekara 
>>> wrote:
>>>
 Hi Ratha,

 In MySQL server, *skip-networking* setting must have been enabled. You
 have to disable it to allow remote connections. More infor here [1].

 [1]
 http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html

 Thanks,
 Bhathiya

 On Wed, Feb 11, 2015 at 9:35 AM, Vijayaratha Vijayasingam <
 rat...@wso2.com> wrote:

> Hi all;
> Trying to connect remote mysql server which in windows box. But
> getting[1];
>
> I can ping to that machine and firewall is off. Root user has all
> privileges.
>
> Anyone knows the cause, what type of security settings i need to do in
> mysql?
>
> [1]Caused by:
> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: 
> Could
> not create connection to database server. Attempted reconnect 3 times.
> Giving up.
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
>
> at com.mysql.jdbc.Util.getInstance(Util.java:360)
>
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
>
> at com.mysql.jdbc.
>
> Caused by: java.sql.SQLException: null,  message from server: "Host
> '192.168.50.62' is not allowed to connect to this MySQL server"
>
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
>
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
>
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
>
>  at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1037)
>
>
> thanks
> --
> -Ratha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

 *Phone: +94715478185 <%2B94715478185>*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 *
 *Twitter: https://twitter.com/bhathiyax *
 *Blog: http://movingaheadblog.blogspot.com
 *

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

Re: [Dev] [ESB 4.5.1] Load balance endpoint only sends HTTP response header to the client

2015-02-11 Thread Dileepa Jayakody
Hi Ruwan,

Thanks again.
However I still get only the HTTP status code response header to the client
as below;
I noted that the response's Transfer-Encoding is chunked. Could this be the
cause that my client only gets the header part of the response?


< HTTP/1.1 200 OK
< Content-Type: text/plain; charset=UTF-8
< Server: Jetty(7.x.y-SNAPSHOT)
< Date: Wed, 11 Feb 2015 08:55:32 GMT
< Transfer-Encoding: chunked

Thanks,
Dileepa


On Wed, Feb 11, 2015 at 1:42 PM, Ruwan Abeykoon  wrote:

> Hi Dileepa,
> I am sorry to point you on sample of newer version 4.8.1.
>
> Can you try something like this , taken and changed based on sample for
> 4.5.1 [1]. I Have not tested it though.
>
>
>
> transports="https http"
>startOnLoad="true">
> 
> 
> 
> 
> 
>  algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
> 
> http://localhost:8080/enhancer
> "/>
> 
> 
> http://localhost:8082/enhancer
> "/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> As I understand it, your configuration is missing inSequence and it might
> have caused an undesired behaviour. I would configure both in and out
> sequences when we have to change one.
>
> [1]
> https://docs.wso2.com/display/ESB451/Sample+752%3A+Load+Balancing+Between+3+Endpoints+With+Endpoint+Templates
>
> Cheers,
> Ruwan
>
>
> On Wed, Feb 11, 2015 at 12:15 PM, Dileepa Jayakody <
> dileepajayak...@gmail.com> wrote:
>
>> Hi Ruwan,
>>
>> Thanks for the link. I followed the sample but the issue still persists.
>>
>> Although the BE response comes to the out sequence only the HTTP 200
>> status message is sent to the client.
>> Response body is not sent.
>>
>> Regards,
>> Dileepa
>>
>> On Wed, Feb 11, 2015 at 10:23 AM, Ruwan Abeykoon  wrote:
>>
>>> Hi Deleepa,
>>> Would you be able to adopt the configuration according to the following
>>> sample?
>>>
>>>
>>> https://docs.wso2.com/display/ESB481/Sample+154%3A+Load+Balancing+with+Proxy+Services
>>>
>>> Have a nice day!
>>> -Ruwan
>>>
>>> On Tue, Feb 10, 2015 at 11:14 PM, Dileepa Jayakody <
>>> dileepajayak...@gmail.com> wrote:
>>>
 Hi All,

 Following is the log for a client request to my proxy service with
 wire-log enabled.
 BE response is logged by the LogMediator in the proxy service's
 out-sequence. But the response to the client doesn't contain the response
 body, only contains the HTTP 200 response header.
 Any tips to tackle the issue is much appreciated.

 Thanks,
 Dileepa

 [1]
 [2015-02-10 23:05:21,381] DEBUG - wire >> "POST /services/StanbolProxy
 HTTP/1.1[\r][\n]"
 [2015-02-10 23:05:21,384] DEBUG - wire >> "Content-Type:
 text/plain[\r][\n]"
 [2015-02-10 23:05:21,384] DEBUG - wire >> "Accept:
 application/rdf+xml[\r][\n]"
 [2015-02-10 23:05:21,384] DEBUG - wire >> "User-Agent:
 Java/1.7.0_72[\r][\n]"
 [2015-02-10 23:05:21,384] DEBUG - wire >> "Host: 192.168.1.8:8280
 [\r][\n]"
 [2015-02-10 23:05:21,385] DEBUG - wire >> "Connection:
 keep-alive[\r][\n]"
 [2015-02-10 23:05:21,385] DEBUG - wire >> "Content-Length: 35[\r][\n]"
 [2015-02-10 23:05:21,385] DEBUG - wire >> "[\r][\n]"
 [2015-02-10 23:05:21,385] DEBUG - wire >> "Barak Obama is the president
 of USA"
 [2015-02-10 23:05:21,875] DEBUG - wire << "POST /enhancer
 HTTP/1.1[\r][\n]"
 [2015-02-10 23:05:21,876] DEBUG - wire << "Content-Type: text/plain;
 charset=UTF-8[\r][\n]"
 [2015-02-10 23:05:21,876] DEBUG - wire << "Accept:
 application/rdf+xml[\r][\n]"
 [2015-02-10 23:05:21,877] DEBUG - wire << "Transfer-Encoding:
 chunked[\r][\n]"
 [2015-02-10 23:05:21,877] DEBUG - wire << "Host: localhost:8082[\r][\n]"
 [2015-02-10 23:05:21,877] DEBUG - wire << "Connection:
 Keep-Alive[\r][\n]"
 [2015-02-10 23:05:21,878] DEBUG - wire << "User-Agent:
 Synapse-HttpComponents-NIO[\r][\n]"
 [2015-02-10 23:05:21,878] DEBUG - wire << "[\r][\n]"
 [2015-02-10 23:05:21,879] DEBUG - wire << "23[\r][\n]"
 [2015-02-10 23:05:21,880] DEBUG - wire << "Barak Obama is the president
 of USA[\r][\n]"
 [2015-02-10 23:05:21,880] DEBUG - wire << "0[\r][\n]"
 [2015-02-10 23:05:21,881] DEBUG - wire << "[\r][\n]"
 [2015-02-10 23:05:26,211] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
 [2015-02-10 23:05:26,212] DEBUG - wire >> "Date: Tue, 10 Feb 2015
 17:35:21 GMT[\r][\n]"
 [2015-02-10 23:05:26,212] DEBUG - wire >> "Content-Type:
 application/rdf+xml[\r][\n]"
 [2015-02-10 23:05:26,212] DEBUG - wire >> "Transfer-Encoding:
 chunked[\r][\n]"
 [2015-02-10 23:05:26,212] DEBUG - wire >> "Server:
 Jetty(7.x.y-SNAPSHOT)[\r][\n]"
 [2015-02-10 23:05:26,212] 

Re: [Dev] [SS] Can not connect to a Cassandra cluster with CQL based connections.

2015-02-11 Thread Nuwan Silva
Hi Bhathiya,

Yes, "We can either communicate with Cassandra using hector or CQL."
(that's what I meant).
+1 for "*Note* that WSO2 Storage Server is a Hector-based client." I think
this is enough.

On Wed, Feb 11, 2015 at 2:34 PM, Bhathiya Jayasekara 
wrote:

> Hi Nuwan,
>
> There's no such thing as "CQL based clusters". We can either communicate
> with Cassandra using hector or CQL. Only SS UI can't use CQL. I thought
> that by below part it was clear. If it's not, let us know, Nilmini will fix
> it.
>
> "Note that WSO2 Storage Server is a Hector-based client. Therefore, the
> Hector datasource reader should always be enabled in the datasource
> configuration to allow the provisioning storage server in your system to
> access the Cassandra cluster."
>
> Thanks,
> Bhathiya
>
> On Wed, Feb 11, 2015 at 2:23 PM, Nuwan Silva  wrote:
>
>> Thanks for the clarification Bhathiya. But, IMO we should clearly say
>> that we can not provision CQL based clusters through SS UI.
>> I did not come across any mention regarding this.
>>
>> WDYT?
>>
>> On Wed, Feb 11, 2015 at 2:11 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> HI Nuwan,
>>>
>>> We have CQL data reader shipped with 1.5.0. But it's not used for SS UI.
>>> But any other clients can use it.
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>> On Wed, Feb 11, 2015 at 2:07 PM, Nuwan Silva  wrote:
>>>
 As per Harsha the CQL based datasource support is not there with 1.5.0
 right?

 So the CQL based configurations should be removed. Im referring [1] "Enable
 the following for CQL datasource reader:"
 or am I missing something?

 [1]
 https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments

 On Wed, Feb 11, 2015 at 1:02 PM, Bhathiya Jayasekara >>> > wrote:

> HI Nilmini,
>
> I just went through and +1 for the change.
>
> @Nuwan: WDYT?
>
> Thanks,
> Bhathiya
>
> On Wed, Feb 11, 2015 at 12:42 PM, Nilmini Perera 
> wrote:
>
>> Hi Bhathiya,
>>
>> Could you check the 'Configuring datasources Cassandra clusters'
>> section in [1]. If this is still not clear enough, will use another
>> approach.
>>
>> [1]
>> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>>
>> Thanks,
>> Nilmini
>>
>> On Wed, Feb 11, 2015 at 9:36 AM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> +1.
>>>
>>> @Nilmini: I'll guide you how to modify docs for this.
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>>
>>>
>>> On Wed, Feb 11, 2015 at 9:15 AM, Nuwan Silva 
>>> wrote:
>>>
 IMO We should remove those information from the documentation.

 On Tue, Feb 10, 2015 at 8:45 PM, Harsha Kumara 
 wrote:

> Hi Nuwan,
>
> The CQL based data source support in the cluster component is not
> available yet. Instead you will need to use hector based data sources.
>
> Thanks,
> Harsha
>
> On Tue, Feb 10, 2015 at 6:31 PM, Nuwan Silva 
> wrote:
>
>> Configured SS 1.5.0 (10-02-2015) pack to connect to a 4 node
>> Cassandra cluster with CQL based connection configured [1]. 
>> Following error
>> was thrown; We could connect to the cluster using hector based 
>> connection.
>> Issue with configurations used reported at [2]
>>
>> [2015-02-10 17:25:19,398] ERROR
>> {org.wso2.carbon.cassandra.mgt.ui.CassandraKeyspaceAdminClient} -  
>> Error
>> retrieving keyspace names !
>> org.apache.axis2.AxisFault: Error in looking up cluster instance:
>> com.datastax.driver.core.Cluster cannot be cast to
>> me.prettyprint.hector.api.Cluster
>>
>> [1]
>> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>> [2] https://wso2.org/jira/browse/SS-520
>>
>> Regards,
>> NuwanS.
>> --
>>
>>
>> *Nuwan Silva*
>> *Senior Software Engineer - QA*
>> Mobile: +9477 980 4543
>>
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://www.wso2.com
>>
>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



 --


 *Nuwan Silva*
 *Senior Software Engineer - QA*
 Mobile: +9477 980 4543

 WSO2 Inc.
 lean . enterprise . middlewear.
 http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://

Re: [Dev] [SS] Can not connect to a Cassandra cluster with CQL based connections.

2015-02-11 Thread Bhathiya Jayasekara
Hi Nuwan,

There's no such thing as "CQL based clusters". We can either communicate
with Cassandra using hector or CQL. Only SS UI can't use CQL. I thought
that by below part it was clear. If it's not, let us know, Nilmini will fix
it.

"Note that WSO2 Storage Server is a Hector-based client. Therefore, the
Hector datasource reader should always be enabled in the datasource
configuration to allow the provisioning storage server in your system to
access the Cassandra cluster."

Thanks,
Bhathiya

On Wed, Feb 11, 2015 at 2:23 PM, Nuwan Silva  wrote:

> Thanks for the clarification Bhathiya. But, IMO we should clearly say that
> we can not provision CQL based clusters through SS UI.
> I did not come across any mention regarding this.
>
> WDYT?
>
> On Wed, Feb 11, 2015 at 2:11 PM, Bhathiya Jayasekara 
> wrote:
>
>> HI Nuwan,
>>
>> We have CQL data reader shipped with 1.5.0. But it's not used for SS UI.
>> But any other clients can use it.
>>
>> Thanks,
>> Bhathiya
>>
>> On Wed, Feb 11, 2015 at 2:07 PM, Nuwan Silva  wrote:
>>
>>> As per Harsha the CQL based datasource support is not there with 1.5.0
>>> right?
>>>
>>> So the CQL based configurations should be removed. Im referring [1] "Enable
>>> the following for CQL datasource reader:"
>>> or am I missing something?
>>>
>>> [1]
>>> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>>>
>>> On Wed, Feb 11, 2015 at 1:02 PM, Bhathiya Jayasekara 
>>> wrote:
>>>
 HI Nilmini,

 I just went through and +1 for the change.

 @Nuwan: WDYT?

 Thanks,
 Bhathiya

 On Wed, Feb 11, 2015 at 12:42 PM, Nilmini Perera 
 wrote:

> Hi Bhathiya,
>
> Could you check the 'Configuring datasources Cassandra clusters'
> section in [1]. If this is still not clear enough, will use another
> approach.
>
> [1]
> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>
> Thanks,
> Nilmini
>
> On Wed, Feb 11, 2015 at 9:36 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> +1.
>>
>> @Nilmini: I'll guide you how to modify docs for this.
>>
>> Thanks,
>> Bhathiya
>>
>>
>>
>> On Wed, Feb 11, 2015 at 9:15 AM, Nuwan Silva  wrote:
>>
>>> IMO We should remove those information from the documentation.
>>>
>>> On Tue, Feb 10, 2015 at 8:45 PM, Harsha Kumara 
>>> wrote:
>>>
 Hi Nuwan,

 The CQL based data source support in the cluster component is not
 available yet. Instead you will need to use hector based data sources.

 Thanks,
 Harsha

 On Tue, Feb 10, 2015 at 6:31 PM, Nuwan Silva 
 wrote:

> Configured SS 1.5.0 (10-02-2015) pack to connect to a 4 node
> Cassandra cluster with CQL based connection configured [1]. Following 
> error
> was thrown; We could connect to the cluster using hector based 
> connection.
> Issue with configurations used reported at [2]
>
> [2015-02-10 17:25:19,398] ERROR
> {org.wso2.carbon.cassandra.mgt.ui.CassandraKeyspaceAdminClient} -  
> Error
> retrieving keyspace names !
> org.apache.axis2.AxisFault: Error in looking up cluster instance:
> com.datastax.driver.core.Cluster cannot be cast to
> me.prettyprint.hector.api.Cluster
>
> [1]
> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
> [2] https://wso2.org/jira/browse/SS-520
>
> Regards,
> NuwanS.
> --
>
>
> *Nuwan Silva*
> *Senior Software Engineer - QA*
> Mobile: +9477 980 4543
>
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://www.wso2.com
>



 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

>>>
>>>
>>>
>>> --
>>>
>>>
>>> *Nuwan Silva*
>>> *Senior Software Engineer - QA*
>>> Mobile: +9477 980 4543
>>>
>>> WSO2 Inc.
>>> lean . enterprise . middlewear.
>>> http://www.wso2.com
>>>
>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax
>> *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
>
> --
> Nilmini Perera
>
> Senior Technical Writer
> WSO2 Inc.
>
> Mobile: 0094776722152
>
>


 --
 *Bhathiya J

Re: [Dev] Integrate Jira and IS for SSO provisioning

2015-02-11 Thread Nirmani Meegahathenna
Hi,

Discussed a solution for this with Johann.

According to the SAML specification it's not mandatory to have the
"SessionOnOrAfter" attribute within the "AuthnStatement" though the plugin
code checks for that. If it's necessary you can add it by modifying the
buildSAMLAssertion method in ResponseBuilder class.

On Wed, Feb 11, 2015 at 11:40 AM, Nirmani Meegahathenna 
wrote:

> Kind Reminder on this issue.
>
> On Tue, Feb 10, 2015 at 3:38 PM, Nirmani Meegahathenna 
> wrote:
>
>> Adding to Dev group
>>
>> On Tue, Feb 10, 2015 at 3:04 PM, Nirmani Meegahathenna 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to integrate Jira and IS for SSO provisioning. Using LastPass
>>> Jira SAML Plugin for this.
>>> https://github.com/lastpass/jira-saml
>>>
>>> When a user tries to log in, the request is sent to IS and an
>>> authentication response is sent back to Jira. And then I'm getting a server
>>> 500 error due to a NullPointerException. Below is the error log.
>>>
 Referer URL: *Unknown*

 java.lang.NullPointerException

 java.lang.NullPointerException
at com.lastpass.saml.SAMLClient.validate(SAMLClient.java:219)
at com.lastpass.saml.SAMLClient.validateResponse(SAMLClient.java:429)
at 
 com.lastpass.jira.SAMLAuthenticator.getUser(SAMLAuthenticator.java:165)
at 
 com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:136)
at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
 com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100)
at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
 com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:172)
at 
 com.atlassian.jira.web.filters.JiraLoginFilter.doFilter(JiraLoginFilter.java:70)
at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
 com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
at 
 com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:70)
at 
 com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79)
at 
 com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:78)
at 
 com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
at 
 com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:70)
at 
 com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61)
at 
 com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:78)
at 
 com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
at 
 com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)
at 
 com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)
at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
 com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:99)
at 
 com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:19)
at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
 com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:71)
at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
 org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at 
 org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at 
 org.tuckey.web.filters.urlrewrite.UrlRewriter.processReques

Re: [Dev] [BAM] java.io.UTFDataFormatException after deploying KPI_Registry_Activity.tbox in BAM

2015-02-11 Thread Hasanthi Purnima Dissanayake
Hi Thusitha,
I also tried the same sample. I got below errors in the started BAM
console. But I got the output as mentioned in the documentation.

FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask
[2015-02-11 14:26:45,034] ERROR {org.apache.hadoop.hive.ql.Driver} -
FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask
[2015-02-11 14:26:45,035] ERROR
{org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
executing query: Query returned non-zero code: 9, cause: FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
at
org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
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)
[2015-02-11 14:26:45,035] ERROR
{org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error
while executing Hive script.
Query returned non-zero code: 9, cause: FAILED: Execution Error, return
code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
java.sql.SQLException: Query returned non-zero code: 9, cause: FAILED:
Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
at
org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:189)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.executeHiveQuery(HiveExecutorServiceImpl.java:599)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:304)
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java:192)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
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)
[2015-02-11 14:26:45,036] ERROR
{org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask} -  Error while
executing script : registry_activity_script
org.wso2.carbon.analytics.hive.exception.HiveExecutionException: Error
while executing Hive script.Query returned non-zero code: 9, cause: FAILED:
Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
at
org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl.execute(HiveExecutorServiceImpl.java:117)
at
org.wso2.carbon.analytics.hive.task.HiveScriptExecutorTask.execute(HiveScriptExecutorTask.java:70)
at
org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
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)


Hasanthi Dissanayake

Software Engineer | WSO2

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

On Wed, Feb 11, 2015 at 9:39 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi All,
>
> I'm trying to run the Statistics collector sample in the GReg[1]. I
> started the BAM and Deployed the KPI_Registry_Activity.tbox
> 
> .
> Then the following exception getting throw continuously.
>
> Job running in-process (local Hadoop)
> Hadoop job information for null: number of mappers: 0; number of reducers:
> 0
> 2015-02-11 09:32:02,789 null map = 0%,  reduce = 0%
> 2015-02-11 09:32:05,791 null map = 100%,  reduce = 0%
> Warning: generateAlternativeSeed
> *java.io.UTFDataFormatException: encoded string too long: 68777 bytes*
> at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
> at java.io.DataOutputStream.writeUT

Re: [Dev] [SS] Can not connect to a Cassandra cluster with CQL based connections.

2015-02-11 Thread Nuwan Silva
Thanks for the clarification Bhathiya. But, IMO we should clearly say that
we can not provision CQL based clusters through SS UI.
I did not come across any mention regarding this.

WDYT?

On Wed, Feb 11, 2015 at 2:11 PM, Bhathiya Jayasekara 
wrote:

> HI Nuwan,
>
> We have CQL data reader shipped with 1.5.0. But it's not used for SS UI.
> But any other clients can use it.
>
> Thanks,
> Bhathiya
>
> On Wed, Feb 11, 2015 at 2:07 PM, Nuwan Silva  wrote:
>
>> As per Harsha the CQL based datasource support is not there with 1.5.0
>> right?
>>
>> So the CQL based configurations should be removed. Im referring [1] "Enable
>> the following for CQL datasource reader:"
>> or am I missing something?
>>
>> [1]
>> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>>
>> On Wed, Feb 11, 2015 at 1:02 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> HI Nilmini,
>>>
>>> I just went through and +1 for the change.
>>>
>>> @Nuwan: WDYT?
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>> On Wed, Feb 11, 2015 at 12:42 PM, Nilmini Perera 
>>> wrote:
>>>
 Hi Bhathiya,

 Could you check the 'Configuring datasources Cassandra clusters'
 section in [1]. If this is still not clear enough, will use another
 approach.

 [1]
 https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments

 Thanks,
 Nilmini

 On Wed, Feb 11, 2015 at 9:36 AM, Bhathiya Jayasekara >>> > wrote:

> +1.
>
> @Nilmini: I'll guide you how to modify docs for this.
>
> Thanks,
> Bhathiya
>
>
>
> On Wed, Feb 11, 2015 at 9:15 AM, Nuwan Silva  wrote:
>
>> IMO We should remove those information from the documentation.
>>
>> On Tue, Feb 10, 2015 at 8:45 PM, Harsha Kumara 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> The CQL based data source support in the cluster component is not
>>> available yet. Instead you will need to use hector based data sources.
>>>
>>> Thanks,
>>> Harsha
>>>
>>> On Tue, Feb 10, 2015 at 6:31 PM, Nuwan Silva 
>>> wrote:
>>>
 Configured SS 1.5.0 (10-02-2015) pack to connect to a 4 node
 Cassandra cluster with CQL based connection configured [1]. Following 
 error
 was thrown; We could connect to the cluster using hector based 
 connection.
 Issue with configurations used reported at [2]

 [2015-02-10 17:25:19,398] ERROR
 {org.wso2.carbon.cassandra.mgt.ui.CassandraKeyspaceAdminClient} -  
 Error
 retrieving keyspace names !
 org.apache.axis2.AxisFault: Error in looking up cluster instance:
 com.datastax.driver.core.Cluster cannot be cast to
 me.prettyprint.hector.api.Cluster

 [1]
 https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
 [2] https://wso2.org/jira/browse/SS-520

 Regards,
 NuwanS.
 --


 *Nuwan Silva*
 *Senior Software Engineer - QA*
 Mobile: +9477 980 4543

 WSO2 Inc.
 lean . enterprise . middlewear.
 http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94775505618
>>> Blog:harshcreationz.blogspot.com
>>>
>>
>>
>>
>> --
>>
>>
>> *Nuwan Silva*
>> *Senior Software Engineer - QA*
>> Mobile: +9477 980 4543
>>
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://www.wso2.com
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax
> *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



 --
 Nilmini Perera

 Senior Technical Writer
 WSO2 Inc.

 Mobile: 0094776722152


>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>>
>>
>> *Nuwan Silva*
>> *Senior Software Engineer - QA*
>> Mobile: +9477 980 4543
>>
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://www.wso2.com
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.l

Re: [Dev] [SS] Can not connect to a Cassandra cluster with CQL based connections.

2015-02-11 Thread Bhathiya Jayasekara
HI Nuwan,

We have CQL data reader shipped with 1.5.0. But it's not used for SS UI.
But any other clients can use it.

Thanks,
Bhathiya

On Wed, Feb 11, 2015 at 2:07 PM, Nuwan Silva  wrote:

> As per Harsha the CQL based datasource support is not there with 1.5.0
> right?
>
> So the CQL based configurations should be removed. Im referring [1] "Enable
> the following for CQL datasource reader:"
> or am I missing something?
>
> [1]
> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>
> On Wed, Feb 11, 2015 at 1:02 PM, Bhathiya Jayasekara 
> wrote:
>
>> HI Nilmini,
>>
>> I just went through and +1 for the change.
>>
>> @Nuwan: WDYT?
>>
>> Thanks,
>> Bhathiya
>>
>> On Wed, Feb 11, 2015 at 12:42 PM, Nilmini Perera 
>> wrote:
>>
>>> Hi Bhathiya,
>>>
>>> Could you check the 'Configuring datasources Cassandra clusters' section
>>> in [1]. If this is still not clear enough, will use another approach.
>>>
>>> [1]
>>> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>>>
>>> Thanks,
>>> Nilmini
>>>
>>> On Wed, Feb 11, 2015 at 9:36 AM, Bhathiya Jayasekara 
>>> wrote:
>>>
 +1.

 @Nilmini: I'll guide you how to modify docs for this.

 Thanks,
 Bhathiya



 On Wed, Feb 11, 2015 at 9:15 AM, Nuwan Silva  wrote:

> IMO We should remove those information from the documentation.
>
> On Tue, Feb 10, 2015 at 8:45 PM, Harsha Kumara 
> wrote:
>
>> Hi Nuwan,
>>
>> The CQL based data source support in the cluster component is not
>> available yet. Instead you will need to use hector based data sources.
>>
>> Thanks,
>> Harsha
>>
>> On Tue, Feb 10, 2015 at 6:31 PM, Nuwan Silva  wrote:
>>
>>> Configured SS 1.5.0 (10-02-2015) pack to connect to a 4 node
>>> Cassandra cluster with CQL based connection configured [1]. Following 
>>> error
>>> was thrown; We could connect to the cluster using hector based 
>>> connection.
>>> Issue with configurations used reported at [2]
>>>
>>> [2015-02-10 17:25:19,398] ERROR
>>> {org.wso2.carbon.cassandra.mgt.ui.CassandraKeyspaceAdminClient} -  Error
>>> retrieving keyspace names !
>>> org.apache.axis2.AxisFault: Error in looking up cluster instance:
>>> com.datastax.driver.core.Cluster cannot be cast to
>>> me.prettyprint.hector.api.Cluster
>>>
>>> [1]
>>> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>>> [2] https://wso2.org/jira/browse/SS-520
>>>
>>> Regards,
>>> NuwanS.
>>> --
>>>
>>>
>>> *Nuwan Silva*
>>> *Senior Software Engineer - QA*
>>> Mobile: +9477 980 4543
>>>
>>> WSO2 Inc.
>>> lean . enterprise . middlewear.
>>> http://www.wso2.com
>>>
>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
>
>
> *Nuwan Silva*
> *Senior Software Engineer - QA*
> Mobile: +9477 980 4543
>
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://www.wso2.com
>



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

 *Phone: +94715478185 <%2B94715478185>*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 *
 *Twitter: https://twitter.com/bhathiyax *
 *Blog: http://movingaheadblog.blogspot.com
 *

>>>
>>>
>>>
>>> --
>>> Nilmini Perera
>>>
>>> Senior Technical Writer
>>> WSO2 Inc.
>>>
>>> Mobile: 0094776722152
>>>
>>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
>
> --
>
>
> *Nuwan Silva*
> *Senior Software Engineer - QA*
> Mobile: +9477 980 4543
>
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://www.wso2.com
>



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

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


Re: [Dev] [SS] Can not connect to a Cassandra cluster with CQL based connections.

2015-02-11 Thread Nuwan Silva
As per Harsha the CQL based datasource support is not there with 1.5.0
right?

So the CQL based configurations should be removed. Im referring [1] "Enable
the following for CQL datasource reader:"
or am I missing something?

[1]
https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments

On Wed, Feb 11, 2015 at 1:02 PM, Bhathiya Jayasekara 
wrote:

> HI Nilmini,
>
> I just went through and +1 for the change.
>
> @Nuwan: WDYT?
>
> Thanks,
> Bhathiya
>
> On Wed, Feb 11, 2015 at 12:42 PM, Nilmini Perera  wrote:
>
>> Hi Bhathiya,
>>
>> Could you check the 'Configuring datasources Cassandra clusters' section
>> in [1]. If this is still not clear enough, will use another approach.
>>
>> [1]
>> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>>
>> Thanks,
>> Nilmini
>>
>> On Wed, Feb 11, 2015 at 9:36 AM, Bhathiya Jayasekara 
>> wrote:
>>
>>> +1.
>>>
>>> @Nilmini: I'll guide you how to modify docs for this.
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>>
>>>
>>> On Wed, Feb 11, 2015 at 9:15 AM, Nuwan Silva  wrote:
>>>
 IMO We should remove those information from the documentation.

 On Tue, Feb 10, 2015 at 8:45 PM, Harsha Kumara 
 wrote:

> Hi Nuwan,
>
> The CQL based data source support in the cluster component is not
> available yet. Instead you will need to use hector based data sources.
>
> Thanks,
> Harsha
>
> On Tue, Feb 10, 2015 at 6:31 PM, Nuwan Silva  wrote:
>
>> Configured SS 1.5.0 (10-02-2015) pack to connect to a 4 node
>> Cassandra cluster with CQL based connection configured [1]. Following 
>> error
>> was thrown; We could connect to the cluster using hector based 
>> connection.
>> Issue with configurations used reported at [2]
>>
>> [2015-02-10 17:25:19,398] ERROR
>> {org.wso2.carbon.cassandra.mgt.ui.CassandraKeyspaceAdminClient} -  Error
>> retrieving keyspace names !
>> org.apache.axis2.AxisFault: Error in looking up cluster instance:
>> com.datastax.driver.core.Cluster cannot be cast to
>> me.prettyprint.hector.api.Cluster
>>
>> [1]
>> https://docs.wso2.com/display/SS150/Configuring+Multiple+Cassandra+Environments
>> [2] https://wso2.org/jira/browse/SS-520
>>
>> Regards,
>> NuwanS.
>> --
>>
>>
>> *Nuwan Silva*
>> *Senior Software Engineer - QA*
>> Mobile: +9477 980 4543
>>
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://www.wso2.com
>>
>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



 --


 *Nuwan Silva*
 *Senior Software Engineer - QA*
 Mobile: +9477 980 4543

 WSO2 Inc.
 lean . enterprise . middlewear.
 http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>> Nilmini Perera
>>
>> Senior Technical Writer
>> WSO2 Inc.
>>
>> Mobile: 0094776722152
>>
>>
>
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 


*Nuwan Silva*
*Senior Software Engineer - QA*
Mobile: +9477 980 4543

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


Re: [Dev] [ESB] [IS] Securing an endpoint using WSO2 ESB and IS

2015-02-11 Thread Shiva Balachandran
Hi,

Please check the credentials again, might be an errornous credentials.

Thank you.

Regards,

On Tue, Feb 10, 2015 at 2:39 PM, Madusanka Premaratne 
wrote:

> Hi all,
> I am trying to secure a rest service using ESB OAuth Mediator[1] with the
> help of WSO2 Identity Server. I created a service provider in WSO2 IS and
> used the OAuth credentials as username and password in ESB's OAuth
> mediator. When I call the proxy service it gives me an error saying
> "Connection Refused"
>
> Can somebody tell me What I am missing here?
>
>  My proxy service looks like below,
> 
> http://ws.apache.org/ns/synapse";
>name="App"
>transports="https,http"
>statistics="disable"
>trace="disable"
>startOnLoad="true">
>
>   
>  https://10.100.5.179:9444/services/";
>username="erbO9h_cBgwQQ45fGmQ88RqpbMAa"
>password="JU_G6DayJpYMBn8vVU7JGNab0Fga"/>
>   
>   
>  
>   
>   
>  http://10.100.5.179:9763/services/Version/getVersion"/>
>   
>
>
> 
>
> ​[1] - https://docs.wso2.com/display/ESB480/OAuth+Mediator​
>
> ​Thank You,​
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
> [image: Facebook]  [image:
> Twitter]  [image: Google Plus]
>  [image:
> Linkedin]  [image: Instagram]
>  [image: Skype]
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
Blog - https://shivabalachandran.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][BAM] Who is the owner and users of BAM Presentation Service Stub?

2015-02-11 Thread Nuwan Dias
Yes, since its ownership wasn't claimed by anybody we moved the source
inside carbon-apimgt.

Thanks,
NuwanD.

On Wed, Feb 11, 2015 at 1:50 PM, Srinath Perera  wrote:

> is this resolved?
>
> On Thu, Feb 5, 2015 at 4:16 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi Sinthuja/Inosh
>>
>> Do you have any idea, who is the owner of the following module[1]?
>>
>> And which are the products using this module? As I grep for the
>> artifactId, API-M and AppM using this.
>>
>> I want to know the functionality of this stub in APIM and AppM. This is
>> not moved to git or nobody claim for the ownership of this module.
>>
>>
>>
>>
>> [1] :
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/service-stubs/org.wso2.carbon.bam.presentation.stub
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>
>
> --
> 
> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
> Site: http://people.apache.org/~hemapani/
> Photos: http://www.flickr.com/photos/hemapani/
> Phone: 0772360902
>



-- 
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] [APIM][BAM] Who is the owner and users of BAM Presentation Service Stub?

2015-02-11 Thread Srinath Perera
is this resolved?

On Thu, Feb 5, 2015 at 4:16 PM, Abimaran Kugathasan 
wrote:

> Hi Sinthuja/Inosh
>
> Do you have any idea, who is the owner of the following module[1]?
>
> And which are the products using this module? As I grep for the
> artifactId, API-M and AppM using this.
>
> I want to know the functionality of this stub in APIM and AppM. This is
> not moved to git or nobody claim for the ownership of this module.
>
>
>
>
> [1] :
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/service-stubs/org.wso2.carbon.bam.presentation.stub
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


-- 

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


Re: [Dev] [ESB 4.5.1] Load balance endpoint only sends HTTP response header to the client

2015-02-11 Thread Ruwan Abeykoon
Hi Dileepa,
I am sorry to point you on sample of newer version 4.8.1.

Can you try something like this , taken and changed based on sample for
4.5.1 [1]. I Have not tested it though.











http://localhost:8080/enhancer"/>


http://localhost:8082/enhancer"/>












As I understand it, your configuration is missing inSequence and it might
have caused an undesired behaviour. I would configure both in and out
sequences when we have to change one.

[1]
https://docs.wso2.com/display/ESB451/Sample+752%3A+Load+Balancing+Between+3+Endpoints+With+Endpoint+Templates

Cheers,
Ruwan


On Wed, Feb 11, 2015 at 12:15 PM, Dileepa Jayakody <
dileepajayak...@gmail.com> wrote:

> Hi Ruwan,
>
> Thanks for the link. I followed the sample but the issue still persists.
>
> Although the BE response comes to the out sequence only the HTTP 200
> status message is sent to the client.
> Response body is not sent.
>
> Regards,
> Dileepa
>
> On Wed, Feb 11, 2015 at 10:23 AM, Ruwan Abeykoon  wrote:
>
>> Hi Deleepa,
>> Would you be able to adopt the configuration according to the following
>> sample?
>>
>>
>> https://docs.wso2.com/display/ESB481/Sample+154%3A+Load+Balancing+with+Proxy+Services
>>
>> Have a nice day!
>> -Ruwan
>>
>> On Tue, Feb 10, 2015 at 11:14 PM, Dileepa Jayakody <
>> dileepajayak...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> Following is the log for a client request to my proxy service with
>>> wire-log enabled.
>>> BE response is logged by the LogMediator in the proxy service's
>>> out-sequence. But the response to the client doesn't contain the response
>>> body, only contains the HTTP 200 response header.
>>> Any tips to tackle the issue is much appreciated.
>>>
>>> Thanks,
>>> Dileepa
>>>
>>> [1]
>>> [2015-02-10 23:05:21,381] DEBUG - wire >> "POST /services/StanbolProxy
>>> HTTP/1.1[\r][\n]"
>>> [2015-02-10 23:05:21,384] DEBUG - wire >> "Content-Type:
>>> text/plain[\r][\n]"
>>> [2015-02-10 23:05:21,384] DEBUG - wire >> "Accept:
>>> application/rdf+xml[\r][\n]"
>>> [2015-02-10 23:05:21,384] DEBUG - wire >> "User-Agent:
>>> Java/1.7.0_72[\r][\n]"
>>> [2015-02-10 23:05:21,384] DEBUG - wire >> "Host: 192.168.1.8:8280
>>> [\r][\n]"
>>> [2015-02-10 23:05:21,385] DEBUG - wire >> "Connection:
>>> keep-alive[\r][\n]"
>>> [2015-02-10 23:05:21,385] DEBUG - wire >> "Content-Length: 35[\r][\n]"
>>> [2015-02-10 23:05:21,385] DEBUG - wire >> "[\r][\n]"
>>> [2015-02-10 23:05:21,385] DEBUG - wire >> "Barak Obama is the president
>>> of USA"
>>> [2015-02-10 23:05:21,875] DEBUG - wire << "POST /enhancer
>>> HTTP/1.1[\r][\n]"
>>> [2015-02-10 23:05:21,876] DEBUG - wire << "Content-Type: text/plain;
>>> charset=UTF-8[\r][\n]"
>>> [2015-02-10 23:05:21,876] DEBUG - wire << "Accept:
>>> application/rdf+xml[\r][\n]"
>>> [2015-02-10 23:05:21,877] DEBUG - wire << "Transfer-Encoding:
>>> chunked[\r][\n]"
>>> [2015-02-10 23:05:21,877] DEBUG - wire << "Host: localhost:8082[\r][\n]"
>>> [2015-02-10 23:05:21,877] DEBUG - wire << "Connection:
>>> Keep-Alive[\r][\n]"
>>> [2015-02-10 23:05:21,878] DEBUG - wire << "User-Agent:
>>> Synapse-HttpComponents-NIO[\r][\n]"
>>> [2015-02-10 23:05:21,878] DEBUG - wire << "[\r][\n]"
>>> [2015-02-10 23:05:21,879] DEBUG - wire << "23[\r][\n]"
>>> [2015-02-10 23:05:21,880] DEBUG - wire << "Barak Obama is the president
>>> of USA[\r][\n]"
>>> [2015-02-10 23:05:21,880] DEBUG - wire << "0[\r][\n]"
>>> [2015-02-10 23:05:21,881] DEBUG - wire << "[\r][\n]"
>>> [2015-02-10 23:05:26,211] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "Date: Tue, 10 Feb 2015
>>> 17:35:21 GMT[\r][\n]"
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "Content-Type:
>>> application/rdf+xml[\r][\n]"
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "Transfer-Encoding:
>>> chunked[\r][\n]"
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "Server:
>>> Jetty(7.x.y-SNAPSHOT)[\r][\n]"
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "[\r][\n]"
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "1093[\r][\n]"
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> ">> [2015-02-10 23:05:26,212] DEBUG - wire >> "xmlns:rdf="
>>> http://www.w3.org/1999/02/22-rdf-syntax-ns#"[\n]";
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "xmlns:j.0="
>>> http://purl.org/dc/terms/"[\n]";
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "xmlns:j.1="
>>> http://fise.iks-project.eu/ontology/"; > [\n]"
>>> [2015-02-10 23:05:26,212] DEBUG - wire >> "  >> rdf:about="urn:enhancement-f50e270f-6c52-78a1-96e0-a9a150f42dce">[\n]"
>>> [2015-02-10 23:05:26,213] DEBUG - wire >> ">> rdf:datatype="http://www.w3.org/2001/XMLSchema#double
>>> ">0.7127498890292797[\n]"
>>> [2015-02-10 23:05:26,213] DEBUG - wire >> "http:/