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

2015-03-16 Thread Isuruwan Herath
Hi Punnadi,

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

Thanks!
Isuruwan

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

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


-- 
Isuruwan Herath
Technical Lead

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


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

2015-03-16 Thread Sabra Ossen
Hi,

I am trying to access a secure web service using the method mentioned in
[1]. But I am getting the following error.

Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.neethi.PolicyEngine.getPolicy(Ljava/lang/Object;)Lorg/apache/neethi/Policy;
at
org.wso2.dashboard.client.DataServiceStub.getPolicy(DataServiceStub.java:771)
at
org.wso2.dashboard.client.DataServiceStub.populateAxisService(DataServiceStub.java:57)
at
org.wso2.dashboard.client.DataServiceStub.(DataServiceStub.java:202)
at
org.wso2.dashboard.client.DataServiceStub.(DataServiceStub.java:191)
at org.wso2.dashboard.publish.data.DataPublisher.main(DataPublisher.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

I have included the dependencies in the pom below.


UTF-8
1.6.1
1.6.1




wso2-nexus
WSO2 internal Repository
http://maven.wso2.org/nexus/content/groups/wso2-public/

true
daily
ignore






   

org.apache.axis2
axis2
${axis2.version}


org.apache.axis2
axis2-transport-local
${axis2.version}


org.apache.axis2
axis2-transport-http
${axis2.version}




org.apache.rampart
rampart-core
${rampart.version}




org.apache.neethi
neethi
3.0.1



I have also included the code segment as well. I have extracted the Policy
from the wsdl exposed after the service is deployed and saved it in
"wso2MDPolicy.xml.'

public class DataPublisher {

   public static void main(String[] args) throws Exception {

  String epr = "https://10.100.4.10:9443/services/XXX";;
  System.setProperty("javax.net.ssl.trustStore", (new
File("../src/main/resources/wso2carbon.jks")).getAbsolutePath());
  System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");

  ConfigurationContext ctx = ConfigurationContextFactory
.createConfigurationContextFromFileSystem(null, null);
  ServiceStub stub = new ServiceStub(ctx,epr);
  ServiceClient client = stub._getServiceClient();
  Options options = client.getOptions();
  client.engageModule("rampart");
  options.setUserName("admin");
  options.setPassword("admin");

  options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
loadPolicy("../src/main/resources/wso2MDPolicy.xml"));

  InsertRawLeadsPerWeek request = new InsertRawLeadsPerWeek();

  request.setStart_date("2012-04-08");
  request.setEnd_date("2012-04-5");
  request.setTotal_users(1000);
  request.setEu_users(1000);
  request.setNa_users(1000);
  request.setRow_users(1000);
  request.setUnclassified_users(10001);

  stub.insertRawLeadsPerWeek(request);
   }

   private static Policy loadPolicy(String path) throws Exception {
  InputStream resource = new FileInputStream(path);
  StAXOMBuilder builder = new StAXOMBuilder(resource);
  return PolicyEngine.getPolicy(builder.getDocumentElement());
   }

}


[1]
https://docs.wso2.com/display/DSS322/Secure+Data+Service+Sample#SecureDataServiceSample-Aboutthesample


Any help on this issue is appreciated.

Thanks.
-- 
Sabra Ossen
*Software Engineering Intern*
Mobile : +94 (0) 775 837 356
sa...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Governance registry starting error

2015-03-16 Thread Sajith Kariyawasam
Hi Dimithri,

This could be due to a configuration issue. Could you please share the
registry.xml files of both the nodes?

Thanks,
Sajith

On Tue, Mar 17, 2015 at 11:37 AM, Dimithri Abeygunawardane <
dimith...@wso2.com> wrote:

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

Re: [Dev] Governance registry starting error

2015-03-16 Thread Dimithri Abeygunawardane
Hi Udara,

Yes, I have put the MYSQL jar in lib, but haven't changed the Driver.
Thanks for the quick response.

However, now I'm getting the following error (in a different node of the
same cluster).
Any ideas why this is coming?

 ERROR
{org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor} -
 Could not read remote instance configuration. Caused by: null
java.lang.NullPointerException
at
org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor.readRemoteInstances(RegistryConfigurationProcessor.java:649)
at
org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor.populateRegistryConfig(RegistryConfigurationProcessor.java:366)
at
org.wso2.carbon.registry.core.config.RegistryContext.(RegistryContext.java:461)
at
org.wso2.carbon.registry.core.config.RegistryContext.(RegistryContext.java:442)
at
org.wso2.carbon.registry.core.config.RegistryContext.getBaseInstance(RegistryContext.java:321)
at
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:627)
at
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
at
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:71)
at
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
[2015-03-17 05:56:32,932] ERROR
{org.wso2.carbon.registry.core.config.RegistryContext} -  Unable to get
instance of the registry context
org.wso2.carbon.registry.core.exceptions.RegistryException: C

[Dev] Is "202" the expected behavior when invoke a proxy with missing template

2015-03-16 Thread Naasheer Ali
Hi ESB Team,

   I'm trying to fix ESBJAVA-3311. Invoking a proxy with missing template
returns 202 Accepted.
Is "202" the expected behavior with the response or It should be changed to
some other values like 404. Because in the ESBJAVA-3515 (202 returned by
API calls when a particular method is not allowed) issue malaka has
commented that 202 is the expected behavior.

@malaka
can you give me a clear idea on that?

Regards,
-- 

*Naasheer Ali* | Associate Software Engineer

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

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


[Dev] [MB] Message order issue in queue path when subscriber unstable

2015-03-16 Thread Pumudu Ruhunage
Hi,

I found a issue in queue path, Steps to reproduce is as follows,

1. Start MB node in standalone mode.
2. Set queue subscriber to 'queue1' and maximum message count to 2,500.
3. Send 10,000 queue messages to 'queue1'.
4. Subscriber will receive 2,500 messages in proper order and will
disconnect.
5. After subscriber disconnects re-run subscriber.
6. Subscriber will receive random message set upto 2,500 messages and will
get disconnected (it will not receive messages starting from 2,501 th
message)
7. If 10,000th message get received by subscriber, it will stop receive any
other messages.

Is this behavior acceptable according to amqp protocol ? Is it necessary to
handle message receiving order when subscriber is unstable?

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


Re: [Dev] Interested in Deep Learning Integration for Machine Learner - GSOC 2015

2015-03-16 Thread Thushan Ganegedara
Dear Nirmal,

Thank you very much for sharing the previous e-mail trails. I will look
into the resources mentioned in the emails. However, I have been watching
lectures, and following tutorials on http://deeplearning.net/ for a while,
which acts as the primary hub for deep learning knowledge sharing.

My next step will be to play around with DeepLearning4J as I've been
implementing deep learning in Python (Theano) before this. I think I'll
soon be able to figure out what type of functionality provided by
DeepLearning4J.

That will help me to come up with a strong proposal that leverages
functionality of DeepLearning4J to the maximum.


Thank you very much for pointing me to the other resources.

On Tue, Mar 17, 2015 at 4:01 PM, Nirmal Fernando  wrote:

> Thanks for your interest on this project, Thushan.
>
> We already had a discussion with another student (unfortunately, it
> appeared he's not eligible to participate in GSoC) at http://wso2
> .markmail.org/search/list:org.wso2.dev#query:list%3Aorg.wso2
> .dev%20from%3A%22Nirmal%20Fernando%22+page:1+mid:3brcf5pex7zdcitm+state:results
>
> Also, we had another discussion here:
> http://mail.wso2.org/mailarchive/dev/2015-March/thread.html#44758
> where we shared some resources that you could look at.
>
> On WSO2 Machine Learner, I'll share a presentation created by Srinath.
>
> On Tue, Mar 17, 2015 at 10:23 AM, Thushan Ganegedara 
> wrote:
>
>> Dear Developers,
>>
>> I am Thushan Ganegedara, a PhD student at University of Sydney. I
>> graduated from University of Moratuwa, Sri Lanka in 2014.
>>
>> I became quite interested in the idea of Deep Learning for WSO2 Machine
>> Learner for GSOC 2015. Neural networks is one my major strengths as I have
>> been working with Neural Networks (specifically Self-Organizing-Maps and
>> Back-propagation) (Java) for almost 2 years so far.
>> Furthermore, I am currently pursuing my PhD in representation learning
>> (i.e. Deep Learning)
>>
>> I have already published a paper in IJCNN 2014
>> http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6889650&tag=1
>> and expecting to publish another in IJCNN 2015
>>
>> I would appreciate greatly if you could let me know any
>> wiki/documentation (other than GIT Readme document and WSO2 Oxygen Tank)
>> where I can familiarize myself with the Machine Learner more.
>>
>>
>> Looking forward to hearing from you. Thank you
>>
>> --
>> Regards,
>>
>> Thushan Ganegedara
>> School of IT
>> University of Sydney, Australia
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Regards,

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


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

2015-03-16 Thread Asanka Vithanage
Hi All,

Observed following error on AS 520 manager Node when restarting the AS
worker Nodes. Issue seams Intermittent.
Have we observed this issue before ? Any solutions/explanations?

*Cluster Details:*
niginx fronted 1 Manager/ 2 worker node AS 520 (with Service
Pack1-hazelcast_3.0.1.wso2v1.jar)  cluster, each node runs on separate
machines.
Local registry mounted to H2
Config and Governance registry mounted on a Mysql Database

Manager Node: 192.168.48.90  Wrk Node 1: 192.168.48.91   Wrk Node 2:
192.168.48.92


*Steps followed:*
1. Cluster was running nearly 2 weeks continuously
2. AS cluster used to host back-end services required for ESB
3. AS Services invoked thorough ESB continously as a long running/load test
4. Due to a OOM issue on worker Node2 , restarted the cluster

*Issue:*

TID: [0] [AS] [2015-03-17 02:06:34,207]  INFO
{org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme} -
Member left [a3ee426a-153e-4ebc-95d5-95292370ec23]: /192.168.48.92:4000
{org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme}
TID: [0] [AS] [2015-03-17 04:49:47,567]  INFO
{org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme} -
Member joined [a5d7cd86-fc94-409b-9720-e68210e6906c]: /192.168.48.92:4000
{org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme}
TID: [0] [AS] [2015-03-17 04:50:18,641] ERROR
{com.hazelcast.spi.impl.PartitionIteratingOperation} -
[192.168.48.90]:4000 [wso2.as.domain] [unknown]
java.lang.NullPointerException
{com.hazelcast.spi.impl.PartitionIteratingOperation}
com.hazelcast.nio.serialization.HazelcastSerializationException:
java.lang.NullPointerException
at
com.hazelcast.nio.serialization.SerializationServiceImpl.handleException(SerializationServiceImpl.java:298)
at
com.hazelcast.nio.serialization.SerializationServiceImpl.writeObject(SerializationServiceImpl.java:254)
at
com.hazelcast.nio.serialization.ByteArrayObjectDataOutput.writeObject(ByteArrayObjectDataOutput.java:262)
at
com.hazelcast.spi.impl.PartitionIteratingOperation$PartitionResponse.writeData(PartitionIteratingOperation.java:130)
at
com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:129)
at
com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:36)
at
com.hazelcast.nio.serialization.StreamSerializerAdapter.write(StreamSerializerAdapter.java:36)
at
com.hazelcast.nio.serialization.SerializationServiceImpl.writeObject(SerializationServiceImpl.java:252)
at
com.hazelcast.nio.serialization.ByteArrayObjectDataOutput.writeObject(ByteArrayObjectDataOutput.java:262)
at
com.hazelcast.spi.impl.NormalResponse.writeData(NormalResponse.java:79)
at
com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:129)
at
com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:36)
at
com.hazelcast.nio.serialization.StreamSerializerAdapter.write(StreamSerializerAdapter.java:48)
at
com.hazelcast.nio.serialization.SerializationServiceImpl.toData(SerializationServiceImpl.java:176)
at
com.hazelcast.nio.serialization.SerializationServiceImpl.toData(SerializationServiceImpl.java:157)
at com.hazelcast.spi.impl.NodeEngineImpl.toData(NodeEngineImpl.java:151)
at
com.hazelcast.spi.impl.BasicOperationService.send(BasicOperationService.java:639)
at
com.hazelcast.spi.impl.ResponseHandlerFactory$RemoteInvocationResponseHandler.sendResponse(ResponseHandlerFactory.java:120)
at
com.hazelcast.spi.impl.BasicOperationService.processOperation(BasicOperationService.java:385)
at
com.hazelcast.spi.impl.BasicOperationService.processPacket(BasicOperationService.java:309)
at
com.hazelcast.spi.impl.BasicOperationService.access$400(BasicOperationService.java:102)
at
com.hazelcast.spi.impl.BasicOperationService$BasicOperationProcessorImpl.process(BasicOperationService.java:756)
at
com.hazelcast.spi.impl.BasicOperationScheduler$ProcessTask.run(BasicOperationScheduler.java:186)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at
com.hazelcast.util.executor.PoolExecutorThreadFactory$ManagedThread.run(PoolExecutorThreadFactory.java:59)
Caused by: java.lang.NullPointerException
at com.hazelcast.map.MapEntrySet.writeData(MapEntrySet.java:60)
at
com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:129)
at
com.hazelcast.nio.serialization.DataSerializer.write(DataSerializer.java:36)
at
com.hazelcast.nio.serialization.StreamSerializerAdapter.write(StreamSerializerAdapter.java:36)
at
com.hazelcast.nio.serialization.SerializationServiceImpl.writeObject(SerializationServiceImpl.java:252)
... 25 more
TID: [0] [AS] [2015-03-17 04:52:41,699]  INFO
{org.wso2.carbon.core.clustering.hazelcast.wka.WKABasedMembershipScheme} -
Member joined [83db16fc-65be-41de-9750

[Dev] Integration test for blocking calls in call mediator

2015-03-16 Thread Kathees Rajendram
Hi Isuru,

Please find the PR[1] for $subject.

I tried to add the integration test for the MTOM and out only
request/response. That is not handled. I will fix the functionality and add
the integration test for that.

https://github.com/wso2/product-esb/pull/101

Thanks
Kathees

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


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

2015-03-16 Thread Krishantha Samaraweera
Hi Thanuja,

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

We might need to figure out a workaround for this.

Thanks,
Krishantha.



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

> Hi Thanuja,
>
> As Akalanka mentioned, you get error for  *9765 *because you are using
>  "startupParameterMap.put("-DportOffset", "1")", might be you have a
> another server started manually  or from a previous test case is using this
> port. Put a debug point  at  "startupParameterMap.put("-DportOffset",
> "1");"(before start the second server) and try to find the consumer of port
> 9765.
>
> Also note that it is not recommend to use SNAPSHOT test framework version.
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Tue, Mar 17, 2015 at 8:45 AM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> Hi Thanuja,
>>
>> While getting a new AutomationContext you are passing a parameter for
>> portOffset of 1. I believe this is why it is looking for 9764 + 1.
>>
>> Thanks,
>> Akalanka.
>>
>> On Mon, Mar 16, 2015 at 11:57 PM, Thanuja Jayasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> We are in the process of moving existing test cases to TAF 4.3.1 and
>>> experienced following issue when we try to start another IS server.
>>>
>>> automation.xml configuration -
>>>
>>> >> nonBlockingTransportEnabled="false">
>>> 
>>> localhost
>>> 
>>> 
>>> *9764*
>>> 9444
>>> 
>>> 
>>> 
>>> 
>>>
>>> Code -
>>>
>>> Map startupParameterMap = new HashMap>> String>();
>>> startupParameterMap.put("-DportOffset", "1");
>>> CarbonTestServerManager server1 = new
>>> CarbonTestServerManager(new AutomationContext("IDENTITY",  "identity002",
>>> TestUserMode.SUPER_TENANT_ADMIN), System.getProperty("carbon.zip"),
>>> startupParameterMap);
>>>
>>> Error -
>>>
>>> testInit(org.wso2.identity.integration.test.provisioning.ProvisioningTestCase)
>>>  Time elapsed: 330.967 sec  <<< FAILURE!
>>> java.lang.RuntimeException: Port *9765* is not open
>>> at
>>> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:151)
>>> at
>>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136)
>>> at
>>> org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:100)
>>> at
>>> org.wso2.identity.integration.common.utils.CarbonTestServerManager.startServer(CarbonTestServerManager.java:29)
>>> at
>>> org.wso2.carbon.automation.extensions.servers.carbonserver.MultipleServersManager.startServers(MultipleServersManager.java:46)
>>> at
>>> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.startOtherCarbonServers(ProvisioningTestCase.java:438)
>>> at
>>> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.testInit(ProvisioningTestCase.java:91)
>>>
>>>
>>> Issue is it refers to port 9765 even it should be referring to port
>>> 9764.
>>>
>>> So I changed TAF version to 4.3.2-SNAPSHOT and this issue get resolved.
>>> But I can see following error log with TAF 4.3.2-SNAPSHOT. This happens
>>> because we are trying to access the server before it get started properly.
>>>
>>> INFO
>>>  [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
>>> - Waiting for user login...
>>> INFO
>>>  [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
>>> - https://localhost:9444/services
>>> INFO  [org.apache.axis2.transport.http.HTTPSender] - Unable to
>>> sendViaPost to url[https://localhost:9444/services/AuthenticationAdmin]
>>> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
>>> at
>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
>>> at
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>>> 
>>>
>>> ERROR
>>> [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
>>> - Unable to login as user..
>>>
>>>
>>> Thanks,
>>> Thanuja.
>>>
>>> --
>>> *Thanuja Lakmal*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94715979891 +94758009992
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Software Engineer*
>> *078-4721791 <078-4721791>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation

Re: [Dev] [APIM][Integration-test]Integration test for Application & Subscription Sharing

2015-03-16 Thread Shani Ranasinghe
Hi,

Thanks for the info. Will follow this.

On Tue, Mar 17, 2015 at 10:23 AM, Waruna Perera  wrote:

> Hi Shani,
>
> Remember that due to cache storage, you  need to restart the server in the
> test case after the user claims are updated.
>
> Thanks,
>
> On Tue, Mar 17, 2015 at 9:43 AM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi Shani,
>>
>> RemoteUserStoreManagerServiceClient [1]  has  setUserClaimValue() method.
>> You can find the usage in [2]
>>
>> [1]
>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/am/admin/clients/user/RemoteUserStoreManagerServiceClient.java
>>
>> [2]
>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/sample/JWTTestCase.java
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Tue, Mar 17, 2015 at 8:38 AM, Shani Ranasinghe  wrote:
>>
>>> Hi,
>>>
>>>
>>> I need to write a test case for Application & subscription sharing
>>> feature.
>>>
>>> For this, I require a user who has claims. I could not find how to add
>>> claims for user. Please let me know if there are any references that I
>>> could refer to in order to write this.
>>>
>>> --
>>> Thanks and Regards
>>> *,Shani Ranasinghe*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 2273555
>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] how to pass an environment variable from a json object

2015-03-16 Thread Awanthika Senarath
Hi Lasitha,

In my scenario I am unable to change the java method which reads the json
file. It is reading the location parameter from the Json file and gets the
file from that location in

 url = Thread.currentThread().getContextClassLoader().getResource(location);


hence I need to pass the absolute location of the file from via the json
object   in this

"location": "${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip"

what i want to do is to retrieve the catalina-base environmental variable
in the json context

regards
Awanthika

On Tue, Mar 17, 2015 at 10:34 AM, Lasitha Wattaladeniya 
wrote:

> Hi Awanthika,
>
> IMO you can achieve this using a util method, where you resolve system
> parameters pragmatically. Don't know about any existing libraries to get
> this done :)
>
> On Tue, Mar 17, 2015 at 10:27 AM, Awanthika Senarath 
> wrote:
>
>> Hi Lasithan,
>>
>> my requirement is to get an existing env varibale from a json file.
>>
>> regards
>> Awanthika
>>
>> On Tue, Mar 17, 2015 at 10:25 AM, Lasitha Wattaladeniya <
>> lasit...@wso2.com> wrote:
>>
>>> Hi awanthika, check this out
>>> http://stackoverflow.com/questions/1462069/passing-environment-variables-to-a-jvm-in-a-platform-independent-manner
>>>
>>> On Tue, Mar 17, 2015 at 9:38 AM, Awanthika Senarath 
>>> wrote:
>>>
 Hi,

 Im trying to achieve $subject to pass the $CATALINA_HOME environment
 variable into a java class via a json object to a java class

 when i try to pass the parameter as this

 "location":
 "${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip"
 the catalina_base/catalina_homa parameter is not recognized as a
 dynamic value at the java class. It will print an IOException saying

 java.io.IOException: Can't
 find ${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip

 Appreciate help on resolving this.


 regards

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



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


>>>
>>>
>>> --
>>> Lasitha Wattaladeniya
>>> Software Engineer
>>> WSO2, Inc. | http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Mobile : +94719397528
>>> Blog : techreadme.blogspot.com
>>>
>>
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> Lasitha Wattaladeniya
> Software Engineer
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +94719397528
> Blog : techreadme.blogspot.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] how to pass an environment variable from a json object

2015-03-16 Thread Lasitha Wattaladeniya
Hi Awanthika,

IMO you can achieve this using a util method, where you resolve system
parameters pragmatically. Don't know about any existing libraries to get
this done :)

On Tue, Mar 17, 2015 at 10:27 AM, Awanthika Senarath 
wrote:

> Hi Lasithan,
>
> my requirement is to get an existing env varibale from a json file.
>
> regards
> Awanthika
>
> On Tue, Mar 17, 2015 at 10:25 AM, Lasitha Wattaladeniya  > wrote:
>
>> Hi awanthika, check this out
>> http://stackoverflow.com/questions/1462069/passing-environment-variables-to-a-jvm-in-a-platform-independent-manner
>>
>> On Tue, Mar 17, 2015 at 9:38 AM, Awanthika Senarath 
>> wrote:
>>
>>> Hi,
>>>
>>> Im trying to achieve $subject to pass the $CATALINA_HOME environment
>>> variable into a java class via a json object to a java class
>>>
>>> when i try to pass the parameter as this
>>>
>>> "location":
>>> "${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip"
>>> the catalina_base/catalina_homa parameter is not recognized as a
>>> dynamic value at the java class. It will print an IOException saying
>>>
>>> java.io.IOException: Can't
>>> find ${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip
>>>
>>> Appreciate help on resolving this.
>>>
>>>
>>> regards
>>>
>>> --
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lasitha Wattaladeniya
>> Software Engineer
>> WSO2, Inc. | http://wso2.com
>> lean. enterprise. middleware
>>
>> Mobile : +94719397528
>> Blog : techreadme.blogspot.com
>>
>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


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

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


Re: [Dev] Interested in Deep Learning Integration for Machine Learner - GSOC 2015

2015-03-16 Thread Nirmal Fernando
Thanks for your interest on this project, Thushan.

We already had a discussion with another student (unfortunately, it
appeared he's not eligible to participate in GSoC) at http://wso2
.markmail.org/search/list:org.wso2.dev#query:list%3Aorg.wso2
.dev%20from%3A%22Nirmal%20Fernando%22+page:1+mid:3brcf5pex7zdcitm+state:results

Also, we had another discussion here:
http://mail.wso2.org/mailarchive/dev/2015-March/thread.html#44758
where we shared some resources that you could look at.

On WSO2 Machine Learner, I'll share a presentation created by Srinath.

On Tue, Mar 17, 2015 at 10:23 AM, Thushan Ganegedara 
wrote:

> Dear Developers,
>
> I am Thushan Ganegedara, a PhD student at University of Sydney. I
> graduated from University of Moratuwa, Sri Lanka in 2014.
>
> I became quite interested in the idea of Deep Learning for WSO2 Machine
> Learner for GSOC 2015. Neural networks is one my major strengths as I have
> been working with Neural Networks (specifically Self-Organizing-Maps and
> Back-propagation) (Java) for almost 2 years so far.
> Furthermore, I am currently pursuing my PhD in representation learning
> (i.e. Deep Learning)
>
> I have already published a paper in IJCNN 2014
> http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6889650&tag=1
> and expecting to publish another in IJCNN 2015
>
> I would appreciate greatly if you could let me know any wiki/documentation
> (other than GIT Readme document and WSO2 Oxygen Tank) where I can
> familiarize myself with the Machine Learner more.
>
>
> Looking forward to hearing from you. Thank you
>
> --
> Regards,
>
> Thushan Ganegedara
> School of IT
> University of Sydney, Australia
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thanks & regards,
Nirmal

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


Re: [Dev] how to pass an environment variable from a json object

2015-03-16 Thread Awanthika Senarath
Hi Lasithan,

my requirement is to get an existing env varibale from a json file.

regards
Awanthika

On Tue, Mar 17, 2015 at 10:25 AM, Lasitha Wattaladeniya 
wrote:

> Hi awanthika, check this out
> http://stackoverflow.com/questions/1462069/passing-environment-variables-to-a-jvm-in-a-platform-independent-manner
>
> On Tue, Mar 17, 2015 at 9:38 AM, Awanthika Senarath 
> wrote:
>
>> Hi,
>>
>> Im trying to achieve $subject to pass the $CATALINA_HOME environment
>> variable into a java class via a json object to a java class
>>
>> when i try to pass the parameter as this
>>
>> "location":
>> "${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip"
>> the catalina_base/catalina_homa parameter is not recognized as a
>> dynamic value at the java class. It will print an IOException saying
>>
>> java.io.IOException: Can't
>> find ${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip
>>
>> Appreciate help on resolving this.
>>
>>
>> regards
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lasitha Wattaladeniya
> Software Engineer
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +94719397528
> Blog : techreadme.blogspot.com
>



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


Re: [Dev] how to pass an environment variable from a json object

2015-03-16 Thread Lasitha Wattaladeniya
Hi awanthika, check this out
http://stackoverflow.com/questions/1462069/passing-environment-variables-to-a-jvm-in-a-platform-independent-manner

On Tue, Mar 17, 2015 at 9:38 AM, Awanthika Senarath 
wrote:

> Hi,
>
> Im trying to achieve $subject to pass the $CATALINA_HOME environment
> variable into a java class via a json object to a java class
>
> when i try to pass the parameter as this
>
> "location":
> "${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip"
> the catalina_base/catalina_homa parameter is not recognized as a
> dynamic value at the java class. It will print an IOException saying
>
> java.io.IOException: Can't
> find ${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip
>
> Appreciate help on resolving this.
>
>
> regards
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] [APIM][Integration-test]Integration test for Application & Subscription Sharing

2015-03-16 Thread Waruna Perera
Hi Shani,

Remember that due to cache storage, you  need to restart the server in the
test case after the user claims are updated.

Thanks,

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

> Hi Shani,
>
> RemoteUserStoreManagerServiceClient [1]  has  setUserClaimValue() method.
> You can find the usage in [2]
>
> [1]
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/am/admin/clients/user/RemoteUserStoreManagerServiceClient.java
>
> [2]
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/sample/JWTTestCase.java
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Tue, Mar 17, 2015 at 8:38 AM, Shani Ranasinghe  wrote:
>
>> Hi,
>>
>>
>> I need to write a test case for Application & subscription sharing
>> feature.
>>
>> For this, I require a user who has claims. I could not find how to add
>> claims for user. Please let me know if there are any references that I
>> could refer to in order to write this.
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>> ___
>> 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
>
>


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


[Dev] Interested in Deep Learning Integration for Machine Learner - GSOC 2015

2015-03-16 Thread Thushan Ganegedara
Dear Developers,

I am Thushan Ganegedara, a PhD student at University of Sydney. I graduated
from University of Moratuwa, Sri Lanka in 2014.

I became quite interested in the idea of Deep Learning for WSO2 Machine
Learner for GSOC 2015. Neural networks is one my major strengths as I have
been working with Neural Networks (specifically Self-Organizing-Maps and
Back-propagation) (Java) for almost 2 years so far.
Furthermore, I am currently pursuing my PhD in representation learning
(i.e. Deep Learning)

I have already published a paper in IJCNN 2014
http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6889650&tag=1
and expecting to publish another in IJCNN 2015

I would appreciate greatly if you could let me know any wiki/documentation
(other than GIT Readme document and WSO2 Oxygen Tank) where I can
familiarize myself with the Machine Learner more.


Looking forward to hearing from you. Thank you

-- 
Regards,

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


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

2015-03-16 Thread Punnadi Gunarathna
Hi All,

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


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

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

-- 
Thanks and Regards,

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



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


Re: [Dev] [MB] MB cluster throws 'hazelcast operation timeout' exception with long running tests

2015-03-16 Thread Pumudu Ruhunage
Hi,

As per offline chat with Azeez , i will try to reproduce the issue with
jconsole enabled and get system status (load/memory usage etc.) when this
exception throws in each machine in cluster.

Regards,

On Mon, Mar 16, 2015 at 11:23 AM, Ramith Jayasinghe  wrote:

> Looping in Kernel Team.
>
> On Mon, Mar 16, 2015 at 11:01 AM, Pumudu Ruhunage  wrote:
>
>> Hi,
>>
>> I did a long running MB cluster test and got attached exceptions.
>> Following is the test scenario i followed.
>>
>> 1. Start two MB nodes, nodeA(slot coordinator) and nodeB with shared
>> oracle database.
>> 2. Add two subscribers for queue messages (queue1 and queue2) to nodeB.
>> 3. Start publish messages to 'queue1' with average 1000 TPS to nodeA.
>> 4. Start publish messages to 'queue2' with average 300 TPS to nodeA.
>> 5. After around 48 hours attached exceptions were thrown from nodeA.
>>
>> What will be the best approach to solve this issue.
>> Thanks,
>>
>>
>> Regards,
>> --
>> Pumudu Ruhunage
>> Associate Software Engineer | WSO2 Inc
>> M: +94 779 664493  | http://wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>
>


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


Re: [Dev] [ESB] Updating wso2esb-4.9.0-M8-SNAPSHOT with Synapse Core from develop branch

2015-03-16 Thread Jagath Sisirakumara Ariyarathne
Hi Maheeka,

As you mentioned, I updated carbon-mediation version 4.3.3-SNAPSHOT
(develop branch version) in product-esb pom file and it is working fine now.

Thanks for the support.

On Tue, Mar 17, 2015 at 9:30 AM, Maheeka Jayasuriya 
wrote:

> Hi Jagath,
>
> I have followed the same steps and it works for me. I updated,
> "2.1.3-wso2v3-SNAPSHOT" in both
> product-esb and carbon-mediation pom files. Additionally I have updated
> carbon-mediation version as well, since I did changes to that too, but this
> should work.
>
> Thanks,
> Maheeka
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> On Tue, Mar 17, 2015 at 9:17 AM, Jagath Sisirakumara Ariyarathne <
> jaga...@wso2.com> wrote:
>
>> Hi,
>>
>> I did some updates in synapse core using develop branch. To test it with wso2
>> esb-4.9.0-M8-SNAPSHOT pack, i followed below steps according to [1].
>>
>>- Built synapse core from develop branch.
>>(synapse-core-2.1.3-wso2v3-SNAPSHOT)
>>- Updated new synapse version in carbon-mediation and product-esb pom
>>files. (develop branches of both)
>>- Built both carbon-mediation and product-esb.
>>
>> But the new synapse core library is not there in newly built ESB pack.
>> Still the old version synapse-core-2.1.3.wso2v2 can be found and I cannot
>> start ESB with synapse-core-2.1.3-wso2v3-SNAPSHOT.
>>
>> Is the above procedure correct and anything I missed there?
>>
>> [1] - https://www.mail-archive.com/dev@wso2.org/msg41770.html
>>
>> Thanks
>>
>> --
>> Jagath Ariyarathne
>> Technical Lead
>> WSO2 Inc.  http://wso2.com/
>> Email: jaga...@wso2.com
>> Mob  : +94 77 386 7048
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][Integration-test]Integration test for Application & Subscription Sharing

2015-03-16 Thread Saneth Dharmakeerthi
Hi Shani,

RemoteUserStoreManagerServiceClient [1]  has  setUserClaimValue() method.
You can find the usage in [2]

[1]
https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/am/admin/clients/user/RemoteUserStoreManagerServiceClient.java

[2]
https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/sample/JWTTestCase.java

Thanks and Best Regards,

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

On Tue, Mar 17, 2015 at 8:38 AM, Shani Ranasinghe  wrote:

> Hi,
>
>
> I need to write a test case for Application & subscription sharing
> feature.
>
> For this, I require a user who has claims. I could not find how to add
> claims for user. Please let me know if there are any references that I
> could refer to in order to write this.
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] how to pass an environment variable from a json object

2015-03-16 Thread Awanthika Senarath
Hi,

Im trying to achieve $subject to pass the $CATALINA_HOME environment
variable into a java class via a json object to a java class

when i try to pass the parameter as this

"location": "${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip"
the catalina_base/catalina_homa parameter is not recognized as a
dynamic value at the java class. It will print an IOException saying

java.io.IOException: Can't
find ${CATALINA_BASE}/temp/che-templates/web-spring-java-simple.zip

Appreciate help on resolving this.


regards

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


Re: [Dev] [ESB] Updating wso2esb-4.9.0-M8-SNAPSHOT with Synapse Core from develop branch

2015-03-16 Thread Maheeka Jayasuriya
Hi Jagath,

I have followed the same steps and it works for me. I updated,
"2.1.3-wso2v3-SNAPSHOT" in both
product-esb and carbon-mediation pom files. Additionally I have updated
carbon-mediation version as well, since I did changes to that too, but this
should work.

Thanks,
Maheeka

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Tue, Mar 17, 2015 at 9:17 AM, Jagath Sisirakumara Ariyarathne <
jaga...@wso2.com> wrote:

> Hi,
>
> I did some updates in synapse core using develop branch. To test it with wso2
> esb-4.9.0-M8-SNAPSHOT pack, i followed below steps according to [1].
>
>- Built synapse core from develop branch.
>(synapse-core-2.1.3-wso2v3-SNAPSHOT)
>- Updated new synapse version in carbon-mediation and product-esb pom
>files. (develop branches of both)
>- Built both carbon-mediation and product-esb.
>
> But the new synapse core library is not there in newly built ESB pack.
> Still the old version synapse-core-2.1.3.wso2v2 can be found and I cannot
> start ESB with synapse-core-2.1.3-wso2v3-SNAPSHOT.
>
> Is the above procedure correct and anything I missed there?
>
> [1] - https://www.mail-archive.com/dev@wso2.org/msg41770.html
>
> Thanks
>
> --
> Jagath Ariyarathne
> Technical Lead
> WSO2 Inc.  http://wso2.com/
> Email: jaga...@wso2.com
> Mob  : +94 77 386 7048
>
>
> ___
> 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] IS sever start up issue in TAF 4.3.1

2015-03-16 Thread Saneth Dharmakeerthi
Hi Thanuja,

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

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

Thanks and Best Regards,

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

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

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


Re: [Dev] GSOC2015:PROJECT

2015-03-16 Thread Tharinda Ehelepola
Hi,

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

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

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

 On Tue, Mar 17, 2015 at 7:39 AM, Srinath Perera 
 wrote:

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

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

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

 Regards,
 Supun

 On Fri, Mar 13, 2015 at 6:27 AM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>

[Dev] [ESB] Updating wso2esb-4.9.0-M8-SNAPSHOT with Synapse Core from develop branch

2015-03-16 Thread Jagath Sisirakumara Ariyarathne
Hi,

I did some updates in synapse core using develop branch. To test it with wso2
esb-4.9.0-M8-SNAPSHOT pack, i followed below steps according to [1].

   - Built synapse core from develop branch.
   (synapse-core-2.1.3-wso2v3-SNAPSHOT)
   - Updated new synapse version in carbon-mediation and product-esb pom
   files. (develop branches of both)
   - Built both carbon-mediation and product-esb.

But the new synapse core library is not there in newly built ESB pack.
Still the old version synapse-core-2.1.3.wso2v2 can be found and I cannot
start ESB with synapse-core-2.1.3-wso2v3-SNAPSHOT.

Is the above procedure correct and anything I missed there?

[1] - https://www.mail-archive.com/dev@wso2.org/msg41770.html

Thanks

-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2015:PROJECT

2015-03-16 Thread Tharinda Ehelepola
Hi,

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

On Tue, Mar 17, 2015 at 3:45 AM, Nirmal Fernando  wrote:

> Your reply is sent only to me Tharinda. Can you please replyAll?
>
> On Tue, Mar 17, 2015 at 9:04 AM, Tharinda Ehelepola  > wrote:
>
>> Hi,
>>
>> Yeah I meant the process of running a Spark job. There are transformation
>> methods in jar files. What I tried is how to use those methods in java. I
>> think it is help me to conversion of wrangler scripts.
>>
>> On Tue, Mar 17, 2015 at 2:15 AM, Nirmal Fernando  wrote:
>>
>>> Hi Srinath, I think Tharinda meant to say that he is in the process of
>>> running a Spark job. Tharinda, isn't it the case?
>>>
>>> On Tue, Mar 17, 2015 at 7:39 AM, Srinath Perera 
>>> wrote:
>>>
 Why do you need to build it? ( it can be built), but you can use the
 jars.

 --Srinth

 On Mon, Mar 16, 2015 at 3:30 PM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>
> I studied about apache spark these days. I 'm still stuck in building
> part. I went through different links and finally decided to build it using
> intellij. I have found most of the libraries but still errors occur when
> running examples.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/lang3/SystemUtils
> at org.apache.spark.util.Utils$.(Utils.scala:1476)
> at org.apache.spark.util.Utils$.(Utils.scala)
> at org.apache.spark.SparkContext.(SparkContext.scala:70)
> at
> org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
> at
> org.apache.spark.examples.JavaLogQuery.main(JavaLogQuery.java:105)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.lang3.SystemUtils
> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 10 more
> Exception in thread "delete Spark temp dirs"
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.spark.util.Utils$
> at org.apache.spark.util.Utils$$anon$4.run(Utils.scala:175)
>
>
> Here I added some errors. *Apache Spark* is a fast and general engine
> for big data processing. Wrangler is to data cleaning and transformation.
> So what I got is some spark methods related to wrangler scripts. If I can
> get proper knowledge about spark java API I can use that for conversion of
> wrangler scripts to java. And also it will help me to get proper idea 
> about
> the whole project. So can you please give me some tips for building apache
> spark.
>
> Thank you,
> Tharinda.
>
> On Fri, Mar 13, 2015 at 12:24 PM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> I got the libraries. But still have a problem with below ones.
>>
>> import org.apache.spark.streaming.api.java.JavaDStream;
>> import org.apache.spark.streaming.api.java.JavaReceiverInputDStream;
>>
>> import org.apache.spark.streaming.api.java.JavaStreamingContext;
>>
>>
>> On Fri, Mar 13, 2015 at 5:05 AM, Supun Sethunga 
>> wrote:
>>
>>> Hi,
>>>
>>> You can find all the necessary libraries in the Maven Repository
>>> [1]. Please use the latest version of spark (v1.2.1).
>>>
>>> [1] http://mvnrepository.com/artifact/org.apache.spark
>>>
>>> Regards,
>>> Supun
>>>
>>> On Fri, Mar 13, 2015 at 6:27 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Hi,

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

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

2015-03-16 Thread Sandamal Weerasinghe
Hi all,

Please find the pull requests for the above feature. In the orbit bundle I
embedded the dependencies because many of them don't have osgi bundles and
this would ensure that the RM Inbound feature would have all the
dependencies it would need. For the RM Connector we can use the work done
by Pasadi as a starting point (
https://svn.wso2.com/wso2/interns/2013/pasadi/CXFWsdlToJava/)

Thanks.

https://github.com/wso2/orbit/pull/71
https://github.com/wso2/carbon-mediation/pull/82

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

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


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

2015-03-16 Thread Akalanka Pagoda Arachchi
Hi Thanuja,

While getting a new AutomationContext you are passing a parameter for
portOffset of 1. I believe this is why it is looking for 9764 + 1.

Thanks,
Akalanka.

On Mon, Mar 16, 2015 at 11:57 PM, Thanuja Jayasinghe 
wrote:

> Hi,
>
> We are in the process of moving existing test cases to TAF 4.3.1 and
> experienced following issue when we try to start another IS server.
>
> automation.xml configuration -
>
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> *9764*
> 9444
> 
> 
> 
> 
>
> Code -
>
> Map startupParameterMap = new HashMap String>();
> startupParameterMap.put("-DportOffset", "1");
> CarbonTestServerManager server1 = new CarbonTestServerManager(new
> AutomationContext("IDENTITY",  "identity002",
> TestUserMode.SUPER_TENANT_ADMIN), System.getProperty("carbon.zip"),
> startupParameterMap);
>
> Error -
>
> testInit(org.wso2.identity.integration.test.provisioning.ProvisioningTestCase)
>  Time elapsed: 330.967 sec  <<< FAILURE!
> java.lang.RuntimeException: Port *9765* is not open
> at
> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:151)
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136)
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:100)
> at
> org.wso2.identity.integration.common.utils.CarbonTestServerManager.startServer(CarbonTestServerManager.java:29)
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.MultipleServersManager.startServers(MultipleServersManager.java:46)
> at
> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.startOtherCarbonServers(ProvisioningTestCase.java:438)
> at
> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.testInit(ProvisioningTestCase.java:91)
>
>
> Issue is it refers to port 9765 even it should be referring to port 9764.
>
> So I changed TAF version to 4.3.2-SNAPSHOT and this issue get resolved.
> But I can see following error log with TAF 4.3.2-SNAPSHOT. This happens
> because we are trying to access the server before it get started properly.
>
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
> - Waiting for user login...
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
> - https://localhost:9444/services
> INFO  [org.apache.axis2.transport.http.HTTPSender] - Unable to sendViaPost
> to url[https://localhost:9444/services/AuthenticationAdmin]
> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
> at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
> 
>
> ERROR
> [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
> - Unable to login as user..
>
>
> Thanks,
> Thanuja.
>
> --
> *Thanuja Lakmal*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94715979891 +94758009992
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1

2015-03-16 Thread Saneth Dharmakeerthi
Hi Malithi & Krishantha,


I created a similar scenario and  analyse the method call order and noticed
that @Factory is get called first. @BeforeTest and @AfterTest that are in
separate class execute only once. But @BeforeTest and @AfterTest in the
same  class with  @Factory ,@BeforeClass..,@Test are  get execute  multiple
times (equal to the how much instance that that has been created in the
@Factory).

Malithi,

Until we find the exact reason for this behaviour you can  move
your @BeforeTest and @AfterTest to a different class. Also share your Test
Class with us.



Thanks and Best Regards,

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

On Mon, Mar 16, 2015 at 11:08 PM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi Malithi,
>
> On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe 
> wrote:
>
>> Hi All,
>>
>> I'm using Factories in TestNG to instantiate tests dynamically for
>> different parameter sets. And I have configured the test class inside a
>>  block in the testng.xml as below.
>>
>> 
>> 
>> > name="org.wso2.identity.integration.test.openid.OpenIDSSOTestCase" />
>> 
>> 
>>
>> When running this test on the TAF 4.3.1 I found that the methods
>> annotated with 'BeforeTest' and 'AfterTest' runs for each test instance
>> instantiated with the factory.
>> But when running the same test on an earlier version of TAF, methods
>> annotated with 'BeforeTest' and 'AfterTest' are executed only once, which
>> is the expected behavior [1].
>>
>> I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions of
>> TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This is
>> also reported in [2].
>>
>> Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ?
>>
>
> Nope we haven't downgraded testNG in TAF 4.3.1. in your old tests modules,
>  6.8 version might be explicitly specified. We only recommend to go with
> testNG 6.1.1 as 6.8 is not much stable.
>
> Some other products like AS also use @Factory with @BeforeTest and
> @AfterTest annotations with 6.1.1. Need to figure out what is really
> happening here.
>
> Thanks,
> Krishantha.
>
>
>> In that case, what would be the way to achieve the expected behavior ?
>>
>> [1] http://testng.org/doc/documentation-main.html#annotations
>> [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html
>>
>> Thanks,
>> Malithi.
>> --
>>
>> *Malithi Edirisinghe*
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-03-16 Thread Prasad Tissera
Yes, We tried after downgrading spring version but it didn't solve the
issue.

Sent from my mobile
On Mar 16, 2015 7:50 PM, "Kishanthan Thangarajah" 
wrote:

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

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

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

 Regards,
 Prasad.

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

> Can we have IS pack with the above issue hosted somewhere, so that we
> could take a look?
>
> On Sun, Mar 15, 2015 at 1:21 PM, Johann Nallathamby 
> wrote:
>
>> Hi AS Team,
>>
>> Appreciate if we can get this resolved ASAP. This is turning out to
>> be a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.
>>
>> Thanks.
>>
>> On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> This issues still seems to be there in spring.framework_3.2.9.wso2v1
>>> even though the suggested fix has been applied in [1]. Class not found
>>> exception occurred intermittently in IS 5.1.0 pack when calling OAuth
>>> endpoints. The issue has been reported in [2] and has marked as
>>> resolved. How should we proceed in this? Thanks.
>>>
>>> root cause
>>> java.lang.ClassNotFoundException:
>>> org.wso2.carbon.identity.oauth.cache.CacheKey
>>>
>>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>>
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
>>> java.lang.Class.getDeclaredConstructors0(Native Method)
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
>>> java.lang.Class.getConstructor0(Class.java:2708)
>>> java.lang.Class.getDeclaredConstructor(Class.java:1987)
>>>
>>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>>>
>>> [1].
>>> https://github.com/wso2/orbit/commit/d947214c470b257a9fe3083d8c4c7baf49d46f87
>>> [2]. https://wso2.org/jira/browse/CARBON-14864
>>>
>>> Regards,
>>> Prasad.
>>>
>>> On Fri, Jul 18, 2014 at 9:52 AM, Pulasthi Supun 
>>> wrote:
>>>
 Hi Sameera,

 Was this change applied to the 4.3.0 branch on git?. we are getting
 a similar random server not starting up issue. seems it is the same 
 reason.
 If this is not already allied can we get this added to 4.3.0 branch. 
 We are
 trying to fix integration test in greg and this random server hangup is
 causing a lot of time to be wasted.

 Regards,
 Pulasthi


 On Mon, Jul 14, 2014 at 8:56 PM, Sameera Jayasoma >>> > wrote:

> Done.
>
>
>
>
> On Mon, Jul 14, 2014 at 6:54 PM, Kasun Gajasinghe  > wrote:
>
>> Hi kernel team,
>>
>> Please commit the patch at [1] for this issue.
>>
>> [1] https://wso2.org/jira/browse/CARBON-14864
>>
>> Thanks,

[Dev] [APIM][Integration-test]Integration test for Application & Subscription Sharing

2015-03-16 Thread Shani Ranasinghe
Hi,


I need to write a test case for Application & subscription sharing feature.

For this, I require a user who has claims. I could not find how to add
claims for user. Please let me know if there are any references that I
could refer to in order to write this.

-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-03-16 Thread Nirmal Fernando
Hi Nivethika,

Thanks for your interest on this project idea and sorry for the delayed
reply.

We have few other interested students and let me point out to you the
discussions we had so far. Please go through them and let us know if you
have any specific questions.

http://wso2-oxygen-tank.10903.n7.nabble.com/GSoC-2015-Proposal-11-
Recommendation-Solution-for-WSO2-Machine-Learner-td113667.html

http://wso2-oxygen-tank.10903.n7.nabble.com/Re-GSoc-2015-Recommendation
-Solution-for-WSO2-Machine-Learner-Requesting-Clarification-tt113885.html#a113972


On Mon, Mar 16, 2015 at 4:09 PM, Nivethika mahasivam 
wrote:

> Hello,
> I am Nivethika, a student from International Master in Service
> Engineering, currently at University of Crete, Greece. I am a fan of
> Service science , cloud and BigData.
> I am really interested in getting involved in the proposal listed in GSOC
> 2015, which is *Recommendation Solution for WSO2 Machine Learner.*
> I am going through the documents suggested to get an initial idea about
> the project.
> I would like to get your support to know more about the project and
> deliverable and any other materials i can go through to make it more
> successful.
> According to Spark Collaborative Filtering is the method we have to use
> for recommendation system or should i do more research on it.
> I have experience with Java, Web services, JS and HTML. Is there any other
> prerequisites i would need to make it ?
>
> Thanking you in advance.
> Regards,
> Nivethika. M
>
>
>
>


-- 

Thanks & regards,
Nirmal

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


Re: [Dev] GSOC2015:PROJECT

2015-03-16 Thread Nirmal Fernando
Hi Srinath, I think Tharinda meant to say that he is in the process of
running a Spark job. Tharinda, isn't it the case?

On Tue, Mar 17, 2015 at 7:39 AM, Srinath Perera  wrote:

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

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

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

 Regards,
 Supun

 On Fri, Mar 13, 2015 at 6:27 AM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

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

Re: [Dev] GSOC2015:PROJECT

2015-03-16 Thread Srinath Perera
Why do you need to build it? ( it can be built), but you can use the jars.

--Srinth

On Mon, Mar 16, 2015 at 3:30 PM, Tharinda Ehelepola 
wrote:

> Hi,
>
> I studied about apache spark these days. I 'm still stuck in building
> part. I went through different links and finally decided to build it using
> intellij. I have found most of the libraries but still errors occur when
> running examples.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/lang3/SystemUtils
> at org.apache.spark.util.Utils$.(Utils.scala:1476)
> at org.apache.spark.util.Utils$.(Utils.scala)
> at org.apache.spark.SparkContext.(SparkContext.scala:70)
> at
> org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
> at org.apache.spark.examples.JavaLogQuery.main(JavaLogQuery.java:105)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.lang3.SystemUtils
> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 10 more
> Exception in thread "delete Spark temp dirs"
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.spark.util.Utils$
> at org.apache.spark.util.Utils$$anon$4.run(Utils.scala:175)
>
>
> Here I added some errors. *Apache Spark* is a fast and general engine for
> big data processing. Wrangler is to data cleaning and transformation. So
> what I got is some spark methods related to wrangler scripts. If I can get
> proper knowledge about spark java API I can use that for conversion of
> wrangler scripts to java. And also it will help me to get proper idea about
> the whole project. So can you please give me some tips for building apache
> spark.
>
> Thank you,
> Tharinda.
>
> On Fri, Mar 13, 2015 at 12:24 PM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> I got the libraries. But still have a problem with below ones.
>>
>> import org.apache.spark.streaming.api.java.JavaDStream;
>> import org.apache.spark.streaming.api.java.JavaReceiverInputDStream;
>>
>> import org.apache.spark.streaming.api.java.JavaStreamingContext;
>>
>>
>> On Fri, Mar 13, 2015 at 5:05 AM, Supun Sethunga  wrote:
>>
>>> Hi,
>>>
>>> You can find all the necessary libraries in the Maven Repository [1].
>>> Please use the latest version of spark (v1.2.1).
>>>
>>> [1] http://mvnrepository.com/artifact/org.apache.spark
>>>
>>> Regards,
>>> Supun
>>>
>>> On Fri, Mar 13, 2015 at 6:27 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Hi,

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

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

> Hi Tharinda,
>
> Please find the comments inline.
>
> I think the major part of this project is create a back end of java
>> code created using wrangler script.
>
> Yes.
>
> Wrangler scripts are mostly done by javascript. So I need to convert
>> those into java.
>
> Yes. Further, java code should be Apache Spark Transformation. Please
> refer my previous mail for details on Spark.
>
> I was not able to find some method. Other ways of doing this is used
>> common methods like split,merge.. etc easily find on java. Rest of the
>> methods are convert by manually. Is there any method to convert those
>> scripts to java.
>
> You have to come up with a solution and an implementation for this. It
> is the core part of the project :)
>
> Feel free to contact us if you need further clarifications.
>
> Regards,
> Supun
>
> On Thu, Mar 12, 2015 at 1:04 PM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> I think the major part of this project is create a back end of java
>> code created using wrangler script. Wrangler scripts are mostly done by
>> javascript. So I need to convert tho

[Dev] WSO2 Carbon Kernel 4.4.0 Beta 1 is Released!!!

2015-03-16 Thread Jayanga Dissanayake
*WSO2 Carbon Kernel 4.4.0 Beta 1 is Released!!!*

WSO2 Carbon team is pleased to announce the first beta release of the WSO2
Carbon Kernel 4.4.0.

WSO2 Carbon redefines middleware by providing an integrated and
componentized middleware platform that adapts to the specific needs of any
enterprise IT project - on premise or in the cloud. 100% open source and
standards-based, WSO2 Carbon enables developers to rapidly orchestrate
business processes, compose applications and develop services using WSO2
Developer Studio and a broad range of business and technical services that
integrate with legacy, packaged and SaaS applications.

WSO2 Carbon kernel, the lean, modular, OSGi-based platform, is the base of
the WSO2 Carbon platform. It is a composable server architecture which
inherits modularity and dynamism from OSGi framework. WSO2 Carbon kernel
can be considered as a framework for server development. All the WSO2
products are composed as a collection of reusable components running on
this kernel. These products/components inherit all the core services
provided by Carbon kernel such as Registry/repository, User management,
Transports, Caching, Clustering, Logging, Deployment related features.



*What's New In This Release*


   - Java7/Java8 support - the new kernel can now be compiled and run on
   both Java7 and Java8.
   - Tomcat upgrade - Tomcat is upgraded to version 7.0.59.
   - Tenant Eager Loading - WSO2 Carbon Kernel can now be configured to
   load specified set of tenants at server start-up.



*Key Features*


   - Composable Server Architecture - Provides a modular, light-weight,
   OSGi-based server development framework.
   - Carbon Application(CApp) deployment support.
   - Multi-Profile Support for Carbon Platform - This enable a single
   product to run on multiple modes/profiles.
   - Carbon + Tomcat JNDI Context - Provide ability to access both carbon
   level and tomcat level JNDI resources to applications using a single JNDI
   context.
   - Distributed Caching and Clustering functionality - Carbon kernel
   provides a distributed cache and clustering implementation which is based
   on Hazelcast- a group communication framework
   - Pluggable Transports Framework - This is based on Axis2 transports
   module.
   - Registry/Repository API- Provide core registry/repository API for
   component developers.
   - User Management API  - Provides a basic user management API for
   component developers.
   - Logging - Carbon kernel supports both Java logging as well as Log4j.
   Logs from both these sources will be aggregated to a single output
   - Pluggable artifact deployer framework - Kernel can be extended to
   deploy any kind of artifacts such as Web services, Web apps, Business
   processes, Proxy services, User stores etc.
   - Deployment Synchronization - Provides synchronization of deployed
   artifacts across a product cluster.
   - Ghost Deployment - Provides a lazy loading mechanism for deployed
   artifacts
   - Multi-tenancy support - The roots of the multi-tenancy in Carbon
   platform lies in the Carbon kernel. This feature includes tenant level
   isolation as well as lazy loading of tenants.



You can download the Beta pack from the following location.

   - wso2carbon-4.4.0-beta1.zip
   




*Fixed Issues*

   - https://wso2.org/jira/issues/?filter=12181



*Known Issues*

   - https://wso2.org/jira/browse/CARBON/fixforversion/11640



*How to Contribute*

   - WSO2 Carbon kernel code is hosted in GitHub.
   - The GIT repository is  https://github.com/wso2/carbon4-kernel/
   - Carbon 4.4.0 Beta release tag is
   https://github.com/wso2/carbon4-kernel/releases/tag/v4.4.0-beta1
   - Please report issues at Carbon JIRA.
   https://wso2.org/jira/browse/CARBON



*Contact Us*

WSO2 Carbon developers can be contacted via following mailing lists:

   - Carbon Developers List: dev@wso2.org
   - Carbon Architecture List: architect...@wso2.org


Thank for your interest in WSO2 Carbon Kernel.

*--The WSO2 Carbon Team--*


*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Proposal 17 : Data Wrangler extension for WSO2 Machine Learner

2015-03-16 Thread Tharinda Ehelepola
I studied about proposal 17 last few days. Now I have proper idea about
that project. In order to prepare the proposal It's better if I have some
template or last year proposals. Can you provide me some links.

On Mon, Mar 16, 2015 at 2:20 PM, Nirmal Fernando  wrote:

> Try adding
>
> 
>
> org.apache.commons
>
> commons-lang3
>
> 3.3.2
>
> 
>
> On Mon, Mar 16, 2015 at 7:40 PM, Tharinda Ehelepola  > wrote:
>
>> Hi,
>>
>> I studied about apache spark these days. I 'm still stuck in building
>> part. I went through different links and finally decided to build it using
>> intellij. I have found most of the libraries but still errors occur when
>> running examples.
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/lang3/SystemUtils
>> at org.apache.spark.util.Utils$.(Utils.scala:1476)
>> at org.apache.spark.util.Utils$.(Utils.scala)
>> at org.apache.spark.SparkContext.(SparkContext.scala:70)
>> at
>> org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
>> at org.apache.spark.examples.JavaLogQuery.main(JavaLogQuery.java:105)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>> at
>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.lang3.SystemUtils
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ... 10 more
>> Exception in thread "delete Spark temp dirs"
>> java.lang.NoClassDefFoundError: Could not initialize class
>> org.apache.spark.util.Utils$
>> at org.apache.spark.util.Utils$$anon$4.run(Utils.scala:175)
>>
>>
>> Here I added some errors. *Apache Spark* is a fast and general engine
>> for big data processing. Wrangler is to data cleaning and transformation.
>> So what I got is some spark methods related to wrangler scripts. If I can
>> get proper knowledge about spark java API I can use that for conversion of
>> wrangler scripts to java. And also it will help me to get proper idea about
>> the whole project. So can you please give me some tips for building apache
>> spark.
>>
>> Thank you,
>> Tharinda.
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Persisting user sessions in database

2015-03-16 Thread Darshana Gunawardana
On Monday, March 16, 2015, Lasitha Wattaladeniya  wrote:

> Hi Lakshani,
>
> Even if the SessionDataPersist/RememberMe is not enabled the logged in
> user details will be available in the cache (session data will be removed
> after a time out period). In general session data will be available in
> cache and also in the session persist database.
>

> Therefore you don't have to forcefully put everything to the db, you can
> access from both cache and db.
>

+1
I think using this info we can show some metadata like 'active',
'persisted' for each user sessions.

With this info user can revoke all persisted(remember me enabled) sessions
if he want. And user can check what are the active sessions established.

Btw this feature will be really cool if we can show the ip and the
user-agent\browser which this session is established. AFAIK, we do not
maintain this data currently, if so lets add it into roadmap as a
improvement.

Thanks,
Darshana.


> On Mon, Mar 16, 2015 at 1:42 AM, Lakshani Gamage  > wrote:
>
>> Hi all,
>> I'm working on my fast track project [1]. I have to monitor logged in
>> users via  IS admin console. In the current implementation, logged in user
>> details are saved in database if
>> DBCPersistenceManager.SessionDataPersist.Enable = true. For that we have
>> to enable below config in identity.xml.
>>
>> 
>> 
>> true
>> 60
>> 
>> false
>> 1
>> 60
>> 
>> false
>> 
>> 
>>
>> When above config is not enabled, when a user logs in, that user
>> information is not saved in database. As I have to monitor all the logged
>> in user details, I removed the
>> DBCPersistenceManager.SessionDataPersist.Enable condition checking part
>> from implementation of  authentication-framework component.  Is this ok?
>>
>> [1]. https://redmine.wso2.com/issues/3188
>>
>> Thank you.
>> --
>> Lakshani Gamage
>>
>> *Software Engineer*
>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org 
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lasitha Wattaladeniya
> Software Engineer
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +94719397528
> Blog : techreadme.blogspot.com
>


-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Persisting user sessions in database

2015-03-16 Thread Hasintha Indrajee
Hi Lakshani,

If *session data persistence* is not enabled, logged in user information
should be retrieved from Cache (Information only resides in cache).
Therefore you can get logged in user information directly from the cache.

If the *session data persistence *is enabled, then you can refer to DB
since all the session data is written into DB. Furthermore, If session data
persistence is enabled, there can be session data information which are not
in cache but still resides in DB (due to cache clearance or invalidation).
Therefore in this case the best option is to read session data from DB
rather than from the cache.

IMO, when the session data persistence is enabled,the better option is to
read data from DB. Because if you are reading from cache, you may need to
retrieve missing session information from DB (which are not in cache),
which is an additional cost since there is no direct attribute to find out
whether the particular session information resides only in DB or not.


On Mon, Mar 16, 2015 at 1:49 AM, Lakshani Gamage  wrote:

> Thanks both of you. I will try those options.
>
> Thank you.
>
> On Mon, Mar 16, 2015 at 11:03 AM, Lasitha Wattaladeniya  > wrote:
>
>> Hi Lakshani,
>>
>> Even if the SessionDataPersist/RememberMe is not enabled the logged in
>> user details will be available in the cache (session data will be removed
>> after a time out period). In general session data will be available in
>> cache and also in the session persist database.
>>
>> Therefore you don't have to forcefully put everything to the db, you can
>> access from both cache and db.
>>
>> On Mon, Mar 16, 2015 at 1:42 AM, Lakshani Gamage 
>> wrote:
>>
>>> Hi all,
>>> I'm working on my fast track project [1]. I have to monitor logged in
>>> users via  IS admin console. In the current implementation, logged in user
>>> details are saved in database if
>>> DBCPersistenceManager.SessionDataPersist.Enable = true. For that we
>>> have to enable below config in identity.xml.
>>>
>>> 
>>> 
>>> true
>>> 60
>>> 
>>> false
>>> 1
>>> 60
>>> 
>>> false
>>> 
>>> 
>>>
>>> When above config is not enabled, when a user logs in, that user
>>> information is not saved in database. As I have to monitor all the logged
>>> in user details, I removed the
>>> DBCPersistenceManager.SessionDataPersist.Enable condition checking part
>>> from implementation of  authentication-framework component.  Is this ok?
>>>
>>> [1]. https://redmine.wso2.com/issues/3188
>>>
>>> Thank you.
>>> --
>>> Lakshani Gamage
>>>
>>> *Software Engineer*
>>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lasitha Wattaladeniya
>> Software Engineer
>> WSO2, Inc. | http://wso2.com
>> lean. enterprise. middleware
>>
>> Mobile : +94719397528
>> Blog : techreadme.blogspot.com
>>
>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Hasintha Indrajee
Software Engineer
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] IS sever start up issue in TAF 4.3.1

2015-03-16 Thread Thanuja Jayasinghe
Hi,

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

automation.xml configuration -



localhost


*9764*
9444





Code -

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

Error -

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


Issue is it refers to port 9765 even it should be referring to port 9764.

So I changed TAF version to 4.3.2-SNAPSHOT and this issue get resolved. But
I can see following error log with TAF 4.3.2-SNAPSHOT. This happens because
we are trying to access the server before it get started properly.

INFO
 [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- Waiting for user login...
INFO
 [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- https://localhost:9444/services
INFO  [org.apache.axis2.transport.http.HTTPSender] - Unable to sendViaPost
to url[https://localhost:9444/services/AuthenticationAdmin]
org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)


ERROR
[org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- Unable to login as user..


Thanks,
Thanuja.

-- 
*Thanuja Lakmal*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1

2015-03-16 Thread Krishantha Samaraweera
Hi Malithi,

On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe 
wrote:

> Hi All,
>
> I'm using Factories in TestNG to instantiate tests dynamically for
> different parameter sets. And I have configured the test class inside a
>  block in the testng.xml as below.
>
> 
> 
>  name="org.wso2.identity.integration.test.openid.OpenIDSSOTestCase" />
> 
> 
>
> When running this test on the TAF 4.3.1 I found that the methods annotated
> with 'BeforeTest' and 'AfterTest' runs for each test instance instantiated
> with the factory.
> But when running the same test on an earlier version of TAF, methods
> annotated with 'BeforeTest' and 'AfterTest' are executed only once, which
> is the expected behavior [1].
>
> I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions of
> TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This is
> also reported in [2].
>
> Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ?
>

Nope we haven't downgraded testNG in TAF 4.3.1. in your old tests modules,
 6.8 version might be explicitly specified. We only recommend to go with
testNG 6.1.1 as 6.8 is not much stable.

Some other products like AS also use @Factory with @BeforeTest and
@AfterTest annotations with 6.1.1. Need to figure out what is really
happening here.

Thanks,
Krishantha.


> In that case, what would be the way to achieve the expected behavior ?
>
> [1] http://testng.org/doc/documentation-main.html#annotations
> [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html
>
> Thanks,
> Malithi.
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 
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] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1

2015-03-16 Thread Malithi Edirisinghe
Hi Irham,


On Mon, Mar 16, 2015 at 10:18 PM, Irham Iqbal  wrote:

> Hi Malithi,
>
> Since you have only one class with all the test cases you can use
> *@BeforeClass,@AfterClass* this will run before and after all the test
> methods inside the class.
>

It's just not a one class. It's a factory as I have mentioned above. This
test worked perfectly as expected with TAF 4.2.8



> TestNG version 6.8.x we have noticed some issues(i.e dependsOnMethods
> doesn't work)
>

Is this the reason to downgrade TestNG version in TAF 4.3.1

>
> Thanks,
> Iqbal
>
> On Mon, Mar 16, 2015 at 9:46 PM, Malithi Edirisinghe 
> wrote:
>
>> Yes, 'BeforeTest' and 'AfterTest' resides in the same class. As I have
>> mentioned above I think the problem is with TestNG 6.1.1 version.
>>
>> On Mon, Mar 16, 2015 at 7:57 PM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> [Adding: Krishantha]
>>>
>>> Hi Malithi,
>>>
>>> Have you written  the 'BeforeTest' and 'AfterTest'  inside the same
>>> test class with  'BeforeClasst' ,'AfterClasst and other "@Test" test
>>> methods?
>>> If so put 'BeforeTest' and 'AfterTest' in a different class and  add
>>> that class to testng.xml  with OpenIDSSOTestCase.
>>>
>>>
>>>
>>>
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe 
>>> wrote:
>>>
 Hi All,

 I'm using Factories in TestNG to instantiate tests dynamically for
 different parameter sets. And I have configured the test class inside a
  block in the testng.xml as below.

 
 
 >>> name="org.wso2.identity.integration.test.openid.OpenIDSSOTestCase" />
 
 

 When running this test on the TAF 4.3.1 I found that the methods
 annotated with 'BeforeTest' and 'AfterTest' runs for each test instance
 instantiated with the factory.
 But when running the same test on an earlier version of TAF, methods
 annotated with 'BeforeTest' and 'AfterTest' are executed only once, which
 is the expected behavior [1].

 I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions
 of TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This
 is also reported in [2].

 Is there a specific reason to downgrade the TestNG version in TAF 4.3.1
 ?
 In that case, what would be the way to achieve the expected behavior ?

 [1] http://testng.org/doc/documentation-main.html#annotations
 [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html

 Thanks,
 Malithi.
 --

 *Malithi Edirisinghe*
 Senior Software Engineer
 WSO2 Inc.

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

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


>>>
>>
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>



-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

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


Re: [Dev] Please resend PR product-esb/129

2015-03-16 Thread Maheeka Jayasuriya
Hi Irham,

It's merged now.

Thanks,
Maheeka

On Monday, March 16, 2015, Irham Iqbal  wrote:

> Hi Maheeka,
>
> Any update on this?
>
> Thanks,
> Iqbal
>
> On Fri, Mar 6, 2015 at 5:19 PM, Irham Iqbal  > wrote:
>
>> Hi Maheeka,
>>
>> I have merged the wso2/product-esb repository develop branch with my repo
>> and committed the changes. I can see those changes in the pull request[1] i
>> gave it to develop branch earlier. Please check it.
>>
>> [1]https://github.com/wso2/product-esb/pull/89
>>
>> Thanks,
>> Iqbal
>>
>> On Fri, Mar 6, 2015 at 11:06 AM, Maheeka Jayasuriya > > wrote:
>>
>>> Hi Iqbal,
>>>
>>> As discussed offline, please resend the PR after fetching latest from
>>> wso2/product-esb repository. There are significant changes that were done
>>> here, that needs to be included and verified in your PR. Thanks.
>>>
>>>
>>> Thanks,
>>>
>>> Maheeka Jayasuriya
>>> Software Engineer
>>> Mobile : +9450661
>>>
>>> On Wed, Mar 4, 2015 at 2:02 PM, Irham Iqbal >> > wrote:
>>>
 Hi Maheeka,

 As per the offline conversation we had, I have resent the pull
 request[1] to development branch

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

 Thanks,
 Iqbal


 On Wed, Mar 4, 2015 at 1:34 PM, Maheeka Jayasuriya >>> > wrote:

> Thanks Iqbal.
>
>
> Thanks,
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> On Wed, Mar 4, 2015 at 1:26 PM, Irham Iqbal  > wrote:
>
>> Hi Maheeka,
>>
>> I have created the pull[1] request to wso2 repo
>>
>> [1]https://github.com/wso2/product-esb/pull/86
>>
>> Thanks,
>> Iqbal
>>
>> On Mon, Mar 2, 2015 at 4:37 PM, Maheeka Jayasuriya > > wrote:
>>
>>> Hi Iqbal,
>>>
>>> Can you please resend pull request at
>>> https://github.com/wso2-dev/product-esb/pull/129/, to
>>> https://github.com/wso2/product-esb develop branch?
>>>
>>> Thanks,
>>>
>>> Maheeka Jayasuriya
>>> Software Engineer
>>> Mobile : +9450661
>>>
>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>>  WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>> phone: +94 777888452
>>
>
>


 --
 Irham Iqbal
 Software Engineer - Test Automation
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware
 phone: +94 777888452

>>>
>>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>>  WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>> phone: +94 777888452
>>
>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>


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


Re: [Dev] Please resend PR product-esb/129

2015-03-16 Thread Irham Iqbal
Hi Maheeka,

Any update on this?

Thanks,
Iqbal

On Fri, Mar 6, 2015 at 5:19 PM, Irham Iqbal  wrote:

> Hi Maheeka,
>
> I have merged the wso2/product-esb repository develop branch with my repo
> and committed the changes. I can see those changes in the pull request[1] i
> gave it to develop branch earlier. Please check it.
>
> [1]https://github.com/wso2/product-esb/pull/89
>
> Thanks,
> Iqbal
>
> On Fri, Mar 6, 2015 at 11:06 AM, Maheeka Jayasuriya 
> wrote:
>
>> Hi Iqbal,
>>
>> As discussed offline, please resend the PR after fetching latest from
>> wso2/product-esb repository. There are significant changes that were done
>> here, that needs to be included and verified in your PR. Thanks.
>>
>>
>> Thanks,
>>
>> Maheeka Jayasuriya
>> Software Engineer
>> Mobile : +9450661
>>
>> On Wed, Mar 4, 2015 at 2:02 PM, Irham Iqbal  wrote:
>>
>>> Hi Maheeka,
>>>
>>> As per the offline conversation we had, I have resent the pull
>>> request[1] to development branch
>>>
>>> [1]https://github.com/wso2/product-esb/pull/89
>>>
>>> Thanks,
>>> Iqbal
>>>
>>>
>>> On Wed, Mar 4, 2015 at 1:34 PM, Maheeka Jayasuriya 
>>> wrote:
>>>
 Thanks Iqbal.


 Thanks,

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

 On Wed, Mar 4, 2015 at 1:26 PM, Irham Iqbal  wrote:

> Hi Maheeka,
>
> I have created the pull[1] request to wso2 repo
>
> [1]https://github.com/wso2/product-esb/pull/86
>
> Thanks,
> Iqbal
>
> On Mon, Mar 2, 2015 at 4:37 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi Iqbal,
>>
>> Can you please resend pull request at
>> https://github.com/wso2-dev/product-esb/pull/129/, to
>> https://github.com/wso2/product-esb develop branch?
>>
>> Thanks,
>>
>> Maheeka Jayasuriya
>> Software Engineer
>> Mobile : +9450661
>>
>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>


>>>
>>>
>>> --
>>> Irham Iqbal
>>> Software Engineer - Test Automation
>>>  WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>> phone: +94 777888452
>>>
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>



-- 
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] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1

2015-03-16 Thread Irham Iqbal
Hi Malithi,

Since you have only one class with all the test cases you can use
*@BeforeClass,@AfterClass* this will run before and after all the test
methods inside the class. TestNG version 6.8.x we have noticed some
issues(i.e dependsOnMethods doesn't work)

Thanks,
Iqbal

On Mon, Mar 16, 2015 at 9:46 PM, Malithi Edirisinghe 
wrote:

> Yes, 'BeforeTest' and 'AfterTest' resides in the same class. As I have
> mentioned above I think the problem is with TestNG 6.1.1 version.
>
> On Mon, Mar 16, 2015 at 7:57 PM, Saneth Dharmakeerthi 
> wrote:
>
>> [Adding: Krishantha]
>>
>> Hi Malithi,
>>
>> Have you written  the 'BeforeTest' and 'AfterTest'  inside the same test
>> class with  'BeforeClasst' ,'AfterClasst and other "@Test" test methods?
>> If so put 'BeforeTest' and 'AfterTest' in a different class and  add
>> that class to testng.xml  with OpenIDSSOTestCase.
>>
>>
>>
>>
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm using Factories in TestNG to instantiate tests dynamically for
>>> different parameter sets. And I have configured the test class inside a
>>>  block in the testng.xml as below.
>>>
>>> 
>>> 
>>> >> name="org.wso2.identity.integration.test.openid.OpenIDSSOTestCase" />
>>> 
>>> 
>>>
>>> When running this test on the TAF 4.3.1 I found that the methods
>>> annotated with 'BeforeTest' and 'AfterTest' runs for each test instance
>>> instantiated with the factory.
>>> But when running the same test on an earlier version of TAF, methods
>>> annotated with 'BeforeTest' and 'AfterTest' are executed only once, which
>>> is the expected behavior [1].
>>>
>>> I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions
>>> of TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This
>>> is also reported in [2].
>>>
>>> Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ?
>>> In that case, what would be the way to achieve the expected behavior ?
>>>
>>> [1] http://testng.org/doc/documentation-main.html#annotations
>>> [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html
>>>
>>> Thanks,
>>> Malithi.
>>> --
>>>
>>> *Malithi Edirisinghe*
>>> Senior Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile : +94 (0) 718176807
>>> malit...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1

2015-03-16 Thread Malithi Edirisinghe
Yes, 'BeforeTest' and 'AfterTest' resides in the same class. As I have
mentioned above I think the problem is with TestNG 6.1.1 version.

On Mon, Mar 16, 2015 at 7:57 PM, Saneth Dharmakeerthi 
wrote:

> [Adding: Krishantha]
>
> Hi Malithi,
>
> Have you written  the 'BeforeTest' and 'AfterTest'  inside the same test
> class with  'BeforeClasst' ,'AfterClasst and other "@Test" test methods?
> If so put 'BeforeTest' and 'AfterTest' in a different class and  add that
> class to testng.xml  with OpenIDSSOTestCase.
>
>
>
>
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe 
> wrote:
>
>> Hi All,
>>
>> I'm using Factories in TestNG to instantiate tests dynamically for
>> different parameter sets. And I have configured the test class inside a
>>  block in the testng.xml as below.
>>
>> 
>> 
>> > name="org.wso2.identity.integration.test.openid.OpenIDSSOTestCase" />
>> 
>> 
>>
>> When running this test on the TAF 4.3.1 I found that the methods
>> annotated with 'BeforeTest' and 'AfterTest' runs for each test instance
>> instantiated with the factory.
>> But when running the same test on an earlier version of TAF, methods
>> annotated with 'BeforeTest' and 'AfterTest' are executed only once, which
>> is the expected behavior [1].
>>
>> I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions of
>> TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This is
>> also reported in [2].
>>
>> Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ?
>> In that case, what would be the way to achieve the expected behavior ?
>>
>> [1] http://testng.org/doc/documentation-main.html#annotations
>> [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html
>>
>> Thanks,
>> Malithi.
>> --
>>
>> *Malithi Edirisinghe*
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

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


Re: [Dev] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1

2015-03-16 Thread Saneth Dharmakeerthi
[Adding: Krishantha]

Hi Malithi,

Have you written  the 'BeforeTest' and 'AfterTest'  inside the same test
class with  'BeforeClasst' ,'AfterClasst and other "@Test" test methods?
If so put 'BeforeTest' and 'AfterTest' in a different class and  add that
class to testng.xml  with OpenIDSSOTestCase.






Thanks and Best Regards,

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

On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe 
wrote:

> Hi All,
>
> I'm using Factories in TestNG to instantiate tests dynamically for
> different parameter sets. And I have configured the test class inside a
>  block in the testng.xml as below.
>
> 
> 
>  name="org.wso2.identity.integration.test.openid.OpenIDSSOTestCase" />
> 
> 
>
> When running this test on the TAF 4.3.1 I found that the methods annotated
> with 'BeforeTest' and 'AfterTest' runs for each test instance instantiated
> with the factory.
> But when running the same test on an earlier version of TAF, methods
> annotated with 'BeforeTest' and 'AfterTest' are executed only once, which
> is the expected behavior [1].
>
> I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions of
> TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This is
> also reported in [2].
>
> Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ?
> In that case, what would be the way to achieve the expected behavior ?
>
> [1] http://testng.org/doc/documentation-main.html#annotations
> [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html
>
> Thanks,
> Malithi.
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

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

Need to have a another deep look and see.

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

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

 On Sun, Mar 15, 2015 at 1:21 PM, Johann Nallathamby 
 wrote:

> Hi AS Team,
>
> Appreciate if we can get this resolved ASAP. This is turning out to be
> a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.
>
> Thanks.
>
> On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera 
> wrote:
>
>> Hi Kasun,
>>
>> This issues still seems to be there in spring.framework_3.2.9.wso2v1
>> even though the suggested fix has been applied in [1]. Class not found
>> exception occurred intermittently in IS 5.1.0 pack when calling OAuth
>> endpoints. The issue has been reported in [2] and has marked as
>> resolved. How should we proceed in this? Thanks.
>>
>> root cause java.lang.ClassNotFoundException:
>> org.wso2.carbon.identity.oauth.cache.CacheKey
>>
>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
>> java.lang.Class.getDeclaredConstructors0(Native Method)
>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
>> java.lang.Class.getConstructor0(Class.java:2708)
>> java.lang.Class.getDeclaredConstructor(Class.java:1987)
>>
>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>>
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>>
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>>
>> [1].
>> https://github.com/wso2/orbit/commit/d947214c470b257a9fe3083d8c4c7baf49d46f87
>> [2]. https://wso2.org/jira/browse/CARBON-14864
>>
>> Regards,
>> Prasad.
>>
>> On Fri, Jul 18, 2014 at 9:52 AM, Pulasthi Supun 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> Was this change applied to the 4.3.0 branch on git?. we are getting
>>> a similar random server not starting up issue. seems it is the same 
>>> reason.
>>> If this is not already allied can we get this added to 4.3.0 branch. We 
>>> are
>>> trying to fix integration test in greg and this random server hangup is
>>> causing a lot of time to be wasted.
>>>
>>> Regards,
>>> Pulasthi
>>>
>>>
>>> On Mon, Jul 14, 2014 at 8:56 PM, Sameera Jayasoma 
>>> wrote:
>>>
 Done.




 On Mon, Jul 14, 2014 at 6:54 PM, Kasun Gajasinghe 
 wrote:

> Hi kernel team,
>
> Please commit the patch at [1] for this issue.
>
> [1] https://wso2.org/jira/browse/CARBON-14864
>
> Thanks,
> KasunG
>
>
> On Mon, Jul 14, 2014 at 5:15 PM, Vijayaratha Vijayasingam <
> rat...@wso2.com> wrote:
>
>> tried with kasun's modified spring lib, looks like it is working..
>>
>>
>> On 14 July 2014 16:54, Vijayaratha Vijayas

Re: [Dev] Proposal 17 : Data Wrangler extension for WSO2 Machine Learner

2015-03-16 Thread Nirmal Fernando
Try adding



org.apache.commons

commons-lang3

3.3.2



On Mon, Mar 16, 2015 at 7:40 PM, Tharinda Ehelepola 
wrote:

> Hi,
>
> I studied about apache spark these days. I 'm still stuck in building
> part. I went through different links and finally decided to build it using
> intellij. I have found most of the libraries but still errors occur when
> running examples.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/lang3/SystemUtils
> at org.apache.spark.util.Utils$.(Utils.scala:1476)
> at org.apache.spark.util.Utils$.(Utils.scala)
> at org.apache.spark.SparkContext.(SparkContext.scala:70)
> at
> org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
> at org.apache.spark.examples.JavaLogQuery.main(JavaLogQuery.java:105)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.lang3.SystemUtils
> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 10 more
> Exception in thread "delete Spark temp dirs"
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.spark.util.Utils$
> at org.apache.spark.util.Utils$$anon$4.run(Utils.scala:175)
>
>
> Here I added some errors. *Apache Spark* is a fast and general engine for
> big data processing. Wrangler is to data cleaning and transformation. So
> what I got is some spark methods related to wrangler scripts. If I can get
> proper knowledge about spark java API I can use that for conversion of
> wrangler scripts to java. And also it will help me to get proper idea about
> the whole project. So can you please give me some tips for building apache
> spark.
>
> Thank you,
> Tharinda.
>



-- 

Thanks & regards,
Nirmal

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


[Dev] Proposal 17 : Data Wrangler extension for WSO2 Machine Learner

2015-03-16 Thread Tharinda Ehelepola
Hi,

I studied about apache spark these days. I 'm still stuck in building part.
I went through different links and finally decided to build it using
intellij. I have found most of the libraries but still errors occur when
running examples.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/lang3/SystemUtils
at org.apache.spark.util.Utils$.(Utils.scala:1476)
at org.apache.spark.util.Utils$.(Utils.scala)
at org.apache.spark.SparkContext.(SparkContext.scala:70)
at
org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
at org.apache.spark.examples.JavaLogQuery.main(JavaLogQuery.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.lang3.SystemUtils
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more
Exception in thread "delete Spark temp dirs"
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.spark.util.Utils$
at org.apache.spark.util.Utils$$anon$4.run(Utils.scala:175)


Here I added some errors. *Apache Spark* is a fast and general engine for
big data processing. Wrangler is to data cleaning and transformation. So
what I got is some spark methods related to wrangler scripts. If I can get
proper knowledge about spark java API I can use that for conversion of
wrangler scripts to java. And also it will help me to get proper idea about
the whole project. So can you please give me some tips for building apache
spark.

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


[Dev] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1

2015-03-16 Thread Malithi Edirisinghe
Hi All,

I'm using Factories in TestNG to instantiate tests dynamically for
different parameter sets. And I have configured the test class inside a
 block in the testng.xml as below.







When running this test on the TAF 4.3.1 I found that the methods annotated
with 'BeforeTest' and 'AfterTest' runs for each test instance instantiated
with the factory.
But when running the same test on an earlier version of TAF, methods
annotated with 'BeforeTest' and 'AfterTest' are executed only once, which
is the expected behavior [1].

I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions of
TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This is
also reported in [2].

Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ?
In that case, what would be the way to achieve the expected behavior ?

[1] http://testng.org/doc/documentation-main.html#annotations
[2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html

Thanks,
Malithi.
-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

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


Re: [Dev] Tenant creation fails during server startup in Integration Tests

2015-03-16 Thread Supun Sethunga
Hi Krishantha,

Yes it was a product bug :) upgrading the carbon-multitenancy version fixed
it.

Thanks,
Supun

On Mon, Mar 16, 2015 at 6:11 PM, Krishantha Samaraweera  wrote:

> Didn't you get the same error when adding tenants manually ? I think this
> is a product bug :)
>
> Thanks,
> Krishantha.
>
> On Mon, Mar 16, 2015 at 5:58 PM, Supun Sethunga  wrote:
>
>> Hi,
>>
>> Im using the Test Automation Framework 4.3.1, and experiencing the
>> $subject in ML integration test. I get the following error.
>> However, superTenant gets created successfully. Also, if I remove any
>> tenants listed under the "Tenants" in automation.xml, server starts-up with
>> no errors. Attached the automation.xml.
>>
>> Any idea whats going wrong here? Looking at the mail thread "[Dev] [ES]
>> Can't add tenants in latest ES pack" it seems this is something to do with
>> carbon-multitenancy 4.3.4.
>>
>>
>> *INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
>> Waiting to login  user...*
>> *WARN  [org.apache.axiom.util.stax.dialect.StAXDialectDetector] - Unable
>> to determine dialect of the StAX implementation at
>> jar:file:/home/supun/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v5/axiom-1.2.11.wso2v5.jar!/*
>> *INFO
>>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>> [2015-03-16 17:41:26,676]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>  'admin@carbon.super [-1234]' logged in at [2015-03-16 17:41:26,675+0530]*
>> *INFO
>>  [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
>> Login Successful*
>> *INFO
>>  
>> [org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
>> - Server started successfully.*
>> *INFO
>>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>> [2015-03-16 17:41:26,820]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>  'admin@carbon.super [-1234]' logged in at [2015-03-16 17:41:26,820+0530]*
>> *INFO
>>  [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
>> Login Successful*
>> *INFO
>>  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
>> User - user3 created in tenant domain of  carbon.super*
>> *INFO
>>  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
>> User - user4 created in tenant domain of  carbon.super*
>> *ERROR
>> [org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient]
>> - RemoteException thrown while adding user/tenants : *
>> *org.apache.axis2.AxisFault:
>> org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage*
>> * at
>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)*
>> * at
>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:367)*
>> * at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)*
>> * at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)*
>> * at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)*
>> * at
>> org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.getTenant(TenantMgtAdminServiceStub.java:1612)*
>> * at
>> org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient.addTenant(TenantManagementServiceClient.java:71)*
>> * at
>> org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator.populateUsers(UserPopulator.java:89)*
>> * at
>> org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension.onExecutionStart(UserPopulateExtension.java:59)*
>> * 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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)*
>> * at
>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)*
>> * at org.testng.TestNG.runExecutionListeners(TestNG.java:1094)*
>> * at org.testng.TestNG.run(TestNG.java:1041)*
>> * 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)*
>> * 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.Reflect

Re: [Dev] Tenant creation fails during server startup in Integration Tests

2015-03-16 Thread Krishantha Samaraweera
Didn't you get the same error when adding tenants manually ? I think this
is a product bug :)

Thanks,
Krishantha.

On Mon, Mar 16, 2015 at 5:58 PM, Supun Sethunga  wrote:

> Hi,
>
> Im using the Test Automation Framework 4.3.1, and experiencing the
> $subject in ML integration test. I get the following error.
> However, superTenant gets created successfully. Also, if I remove any
> tenants listed under the "Tenants" in automation.xml, server starts-up with
> no errors. Attached the automation.xml.
>
> Any idea whats going wrong here? Looking at the mail thread "[Dev] [ES]
> Can't add tenants in latest ES pack" it seems this is something to do with
> carbon-multitenancy 4.3.4.
>
>
> *INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
> Waiting to login  user...*
> *WARN  [org.apache.axiom.util.stax.dialect.StAXDialectDetector] - Unable
> to determine dialect of the StAX implementation at
> jar:file:/home/supun/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v5/axiom-1.2.11.wso2v5.jar!/*
> *INFO
>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> [2015-03-16 17:41:26,676]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>  'admin@carbon.super [-1234]' logged in at [2015-03-16 17:41:26,675+0530]*
> *INFO
>  [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
> Login Successful*
> *INFO
>  
> [org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
> - Server started successfully.*
> *INFO
>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> [2015-03-16 17:41:26,820]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>  'admin@carbon.super [-1234]' logged in at [2015-03-16 17:41:26,820+0530]*
> *INFO
>  [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
> Login Successful*
> *INFO
>  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
> User - user3 created in tenant domain of  carbon.super*
> *INFO
>  [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
> User - user4 created in tenant domain of  carbon.super*
> *ERROR
> [org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient]
> - RemoteException thrown while adding user/tenants : *
> *org.apache.axis2.AxisFault:
> org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage*
> * at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)*
> * at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:367)*
> * at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)*
> * at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)*
> * at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)*
> * at
> org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.getTenant(TenantMgtAdminServiceStub.java:1612)*
> * at
> org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient.addTenant(TenantManagementServiceClient.java:71)*
> * at
> org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator.populateUsers(UserPopulator.java:89)*
> * at
> org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension.onExecutionStart(UserPopulateExtension.java:59)*
> * 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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)*
> * at
> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)*
> * at org.testng.TestNG.runExecutionListeners(TestNG.java:1094)*
> * at org.testng.TestNG.run(TestNG.java:1041)*
> * 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)*
> * 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.

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

2015-03-16 Thread Saneth Dharmakeerthi
Hi,

Please find pull request [1] for phase2 and ignore the previous pull
request [2]. The new pull request can be merge without a conflict.

Three test cases has been desabled due to  following JIRA  issues.


   - AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase  :
   APIMANAGER-3374 [3]
   - ChangeAPIEndPointURLTestCase : APIMANAGER-3378 [4]
   - EditAPIContextAndCheckAccessibilityTestCase : APIMANAGER-3377 [5]


[1] https://github.com/wso2/product-apim/pull/53
[2] https://github.com/wso2/product-apim/pull/49

[3] https://wso2.org/jira/browse/APIMANAGER-3374
[4] https://wso2.org/jira/browse/APIMANAGER-3378
[5] https://wso2.org/jira/browse/APIMANAGER-3377

Thanks and Best Regards,

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

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

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

 Please find the progress update,

 I have finished following test cases.

- testAPIPublishingAndVisibilityInStore
- testAccessibilityOfPublishedOldAPIAndPublishedCopyAPI
- testAccessibilityOfDeprecatedOldAPIAndPublishedCopyAPI
- testAccessibilityOfOldAPIAndCopyAPIWithReSubscription
- testAccessibilityOfOldAPIAndCopyAPIWithOutReSubscription
- testAccessibilityOfBlockAPI
- testAccessibilityOfRetireAPI



 Thanks and Best Regards,

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

 On Mon, Mar 2, 2015 at 5:53 PM, Saneth Dharmakeerthi 
 wrote:

> Hi,
>
> I am working on $subject, test scenarios will be based on [1] API-M
> 1.9.0 Test Plan document (under  API Life Cycle Tab).
>
> [1]API-M 1.9.0 Test Plan
> 
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>


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


[Dev] Tenant creation fails during server startup in Integration Tests

2015-03-16 Thread Supun Sethunga
Hi,

Im using the Test Automation Framework 4.3.1, and experiencing the $subject
in ML integration test. I get the following error.
However, superTenant gets created successfully. Also, if I remove any
tenants listed under the "Tenants" in automation.xml, server starts-up with
no errors. Attached the automation.xml.

Any idea whats going wrong here? Looking at the mail thread "[Dev] [ES]
Can't add tenants in latest ES pack" it seems this is something to do with
carbon-multitenancy 4.3.4.


*INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
Waiting to login  user...*
*WARN  [org.apache.axiom.util.stax.dialect.StAXDialectDetector] - Unable to
determine dialect of the StAX implementation at
jar:file:/home/supun/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v5/axiom-1.2.11.wso2v5.jar!/*
*INFO
 [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
[2015-03-16 17:41:26,676]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'admin@carbon.super [-1234]' logged in at [2015-03-16 17:41:26,675+0530]*
*INFO
 [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
Login Successful*
*INFO
 
[org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
- Server started successfully.*
*INFO
 [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
[2015-03-16 17:41:26,820]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'admin@carbon.super [-1234]' logged in at [2015-03-16 17:41:26,820+0530]*
*INFO
 [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
Login Successful*
*INFO
 [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
User - user3 created in tenant domain of  carbon.super*
*INFO
 [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
User - user4 created in tenant domain of  carbon.super*
*ERROR
[org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient]
- RemoteException thrown while adding user/tenants : *
*org.apache.axis2.AxisFault:
org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage*
* at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)*
* at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:367)*
* at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)*
* at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)*
* at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)*
* at
org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.getTenant(TenantMgtAdminServiceStub.java:1612)*
* at
org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient.addTenant(TenantManagementServiceClient.java:71)*
* at
org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator.populateUsers(UserPopulator.java:89)*
* at
org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension.onExecutionStart(UserPopulateExtension.java:59)*
* 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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)*
* at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)*
* at org.testng.TestNG.runExecutionListeners(TestNG.java:1094)*
* at org.testng.TestNG.run(TestNG.java:1041)*
* 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)*
* 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)*
*ERROR
[org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
Execution error occurred in
TestExecutionListener:-[Ljava.lang.StackTraceElement;@37b82d69*
*org.apache.maven.surefire.util.Suref

Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg

2015-03-16 Thread Mahesh Chinthaka
Hi Samith,
Yes you are correct, we can make the end user oriented message in another
layer other than the module layer. So throwing e is fine i guess.
Thanks everyone!

On Mon, Mar 16, 2015 at 5:45 PM, Samith Dassanayake  wrote:

> Hi Mahesh,
> IMHO I think from the module layer, we should throw the exception with
> required additional details along with the exception. In block layer, we
> should log it and set the response with the correct error code and
> content(content should be a simple end user oriented message)[1], before
> return to the user. If you set it correctly then it will be directed
> to OnFailure callback of the caller and you can do what ever client level
> exception handling over there
>
> [1] http://jaggeryjs.org/documentation.jag?api=response
>
> Thanks,
> Samith
>
> On Mon, Mar 16, 2015 at 2:50 AM, Gayan Dhanushka  wrote:
>
>> Hi Mahesh,
>>
>> +1 for throwing an error message.
>>
>> A message of the format mentioned above would be good for logging. IMO
>> throwing a simple message is enough to be displayed to the user.
>>
>> Regards
>> Gayan
>>
>> On Mon, Mar 16, 2015 at 3:00 PM, Danushka Fernando 
>> wrote:
>>
>>> We dont need to give that detailed error message to the user. But having
>>> an error message saying what has been failed like jenkins job creation
>>> failed or git repo creation failed would be good IMO.
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Mon, Mar 16, 2015 at 2:53 PM, Mahesh Chinthaka 
>>> wrote:
>>>
 Hi,
 +1 for throwing the message.
 But another question,
 At the moment we have put all details possible for the message. eg:
 tenant domain, username ,application type etc.
 But when it comes to user (front end) i think message should be simple.

 For an example.
 Lets say an error occurred while creating an application.

 should the message diplayed on the UI be like ,
 var msg = " Application creation failed!!"
 or
 var msg = "Error while creating application : " + applicationName + "
 with application key : " + applicationKey
   + " of application type : " + applicationType + " and
 version : " + version + " for the user : "
   + userName + " of tenant domain : " + tenantDomain +
 ".

 On Mon, Mar 16, 2015 at 2:44 PM, Danushka Fernando 
 wrote:

> Since this is about sending an error message for front end IMO both
> ways are ok for me. And since we are showing the error message we are
> throwing I guess we need to throw the message.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi all,
>>
>> In AF appmgt module layer,
>> when we catch a exception what is the correct way to handle it.
>>
>> var msg = "Some error msg";
>> log.error(msg);
>> log.error(e);
>> *throw e; *
>> or
>> *throw msg;*
>>
>> In appfactory we get the error message thrown in the module layer to
>> front and display it in UI in the top section of the page with a red bar.
>> So if we thew e, the GUI will get a big error message displayed with
>> all the stack trace details.
>>
>>
>> Whats the best way ??
>>
>> --
>> *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
>>
>>
>


 --
 *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
>>>
>>>
>>
>>
>> --
>> Gayan Dhanuska
>> Software Engineer
>> http://wso2.com/
>> Lean Enterprise Middleware
>>
>> Mobile
>> 071 666 2327
>>
>> Office
>> Tel   : 94 11 214 5345
>> Fax  : 94 11 214 5300
>>
>> Twitter : https://twitter.com/gayanlggd
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards
>
> Samith Dassanayake
> Software Engineer | Cloud TG
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +947 76207351
>



-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove,

Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg

2015-03-16 Thread Samith Dassanayake
Hi Mahesh,
IMHO I think from the module layer, we should throw the exception with
required additional details along with the exception. In block layer, we
should log it and set the response with the correct error code and
content(content should be a simple end user oriented message)[1], before
return to the user. If you set it correctly then it will be directed
to OnFailure callback of the caller and you can do what ever client level
exception handling over there

[1] http://jaggeryjs.org/documentation.jag?api=response

Thanks,
Samith

On Mon, Mar 16, 2015 at 2:50 AM, Gayan Dhanushka  wrote:

> Hi Mahesh,
>
> +1 for throwing an error message.
>
> A message of the format mentioned above would be good for logging. IMO
> throwing a simple message is enough to be displayed to the user.
>
> Regards
> Gayan
>
> On Mon, Mar 16, 2015 at 3:00 PM, Danushka Fernando 
> wrote:
>
>> We dont need to give that detailed error message to the user. But having
>> an error message saying what has been failed like jenkins job creation
>> failed or git repo creation failed would be good IMO.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Mon, Mar 16, 2015 at 2:53 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi,
>>> +1 for throwing the message.
>>> But another question,
>>> At the moment we have put all details possible for the message. eg:
>>> tenant domain, username ,application type etc.
>>> But when it comes to user (front end) i think message should be simple.
>>>
>>> For an example.
>>> Lets say an error occurred while creating an application.
>>>
>>> should the message diplayed on the UI be like ,
>>> var msg = " Application creation failed!!"
>>> or
>>> var msg = "Error while creating application : " + applicationName + "
>>> with application key : " + applicationKey
>>>   + " of application type : " + applicationType + " and
>>> version : " + version + " for the user : "
>>>   + userName + " of tenant domain : " + tenantDomain + ".
>>>
>>> On Mon, Mar 16, 2015 at 2:44 PM, Danushka Fernando 
>>> wrote:
>>>
 Since this is about sending an error message for front end IMO both
 ways are ok for me. And since we are showing the error message we are
 throwing I guess we need to throw the message.

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

 On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka 
 wrote:

> Hi all,
>
> In AF appmgt module layer,
> when we catch a exception what is the correct way to handle it.
>
> var msg = "Some error msg";
> log.error(msg);
> log.error(e);
> *throw e; *
> or
> *throw msg;*
>
> In appfactory we get the error message thrown in the module layer to
> front and display it in UI in the top section of the page with a red bar.
> So if we thew e, the GUI will get a big error message displayed with
> all the stack trace details.
>
>
> Whats the best way ??
>
> --
> *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
>
>

>>>
>>>
>>> --
>>> *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
>>
>>
>
>
> --
> Gayan Dhanuska
> Software Engineer
> http://wso2.com/
> Lean Enterprise Middleware
>
> Mobile
> 071 666 2327
>
> Office
> Tel   : 94 11 214 5345
> Fax  : 94 11 214 5300
>
> Twitter : https://twitter.com/gayanlggd
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards

Samith Dassanayake
Software Engineer | Cloud TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

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


Re: [Dev] Code Review on ToodleDo Connector

2015-03-16 Thread Rajeenthini Satkunam
Hi,

Noted.

On Mon, Mar 16, 2015 at 1:29 PM, Elilmatha Sivanesan 
wrote:

> Hi Dinithi and Rajeenthini,
>
> Can you please check on this an give the pull request to
> https://github.com/wso2/esb-connectors .
>
> Thank you.
>
>
> On Wed, Feb 25, 2015 at 10:56 PM, Dinithi De Silva 
> wrote:
>
>> Hi Elil,
>>
>> AFAIK some of the dependencies are moved to a new location from the old
>> location. That must be the reason for the test failure. I'll check what are
>> the dependencies missing and inform you soon.
>>
>> Thanks
>>
>> On Wed, Feb 25, 2015 at 5:17 PM, Elilmatha Sivanesan 
>> wrote:
>>
>>> Hi Dinithi and Rajeenthini,
>>>
>>> I'm testing ToodleDo Connector[1] and all the tests are failed, and when
>>> i test mannually I'm unable to upload the ToodleDo.zip error log [2]
>>>
>>> Your opinions are appreciated.
>>>
>>> [1] https://github.com/dinithiviranga/ToodledoESBConnector
>>> [2]
>>>  
>>> https://docs.google.com/a/wso2.com/document/d/1YA-rg9WIbwb5bsh3LoCdfLdwVmA4A1zQ_pmAgEc0RlA/edit
>>> 
>>>
>>> Thank you.
>>> --
>>> *S.Elilmatha*
>>> Associate  Software Engineer,
>>>
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Mobile 0779842221.
>>>
>>>
>>
>>
>> --
>> *Dinithi De Silva*
>> Associate Software Engineer, WSO2 Inc.
>> m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
>> | a: #20, Palm Grove, Colombo 03
>>
>
>
>
> --
> *S.Elilmatha*
> Associate  Software Engineer,
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile 0779842221.
>
>


-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

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


[Dev] WSO2 App Factory 2.1.0 Released!

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

WSO2 App Factory team is pleased to announce the general availability of
WSO2 App Factory 2.1.0.

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

You can download this distribution from
http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/appfactory/wso2appfactory/2.1.0/wso2appfactory-2.1.0.zip

The online documentation is available at
https://docs.wso2.com/display/AF210/WSO2+App+Factory+Documentation

Source repository for App Factory can be found at
https://github.com/wso2/product-af/tree/wso2appfactory-2.1.0

Puppet manifests for App Factory can be found at
https://github.com/wso2/product-af/tree/wso2appfactory-2.1.0/modules/puppet-manifests

New Features & Improvements


   -

   BAM integration for user activity
   -

   Ability to warn the user when "app type" violating commit occur
   -

   Add new application types by adding an archive
   -

   Refactor all app types to be deployed by a single archive
   -

   Wall improvements
   -

   Moving run-time data from registry to database
   -

   Write a Authenticator in place of Mutual SSL
   -

   Use puppet for dev setup
   -

   Ability to add runtime externally
   -

   Custom URL improvements


All resolved Issues

   -

   WSO2 App Factory resolved issues
   



Known Issues

   -

   WSO2 App Factory known issues
   



How You Can Contribute


   -

   Mailing Lists

Join our mailing list and correspond with the developers directly.

Developer list : dev@wso2.org | Subscribe | Mail Archive


User forum : StackOverflow 




   -

   Reporting Issues

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 App Factory or in the Carbon base framework through
the public WSO2 App Factory JIRA  or
Carbon JIRA .

Support

We are committed to ensuring that your enterprise middleware deployment is
completely supported from evaluation to production. Our unique approach
ensures that all support leverages our open development methodology and is
provided by the very same engineers who build the technology.

For more details and to take advantage of this unique opportunity
http://wso2.com/support/

For more information about WSO2 App Factory Server, please see
http://wso2.com/cloud/app-factory/.

Thank you for your interest in WSO2 App Factory.

-- The WSO2 App Factory Team --
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-03-16 Thread Niranda Perera
Hi Sameera,

the versions are 2.5.0-spark for org.spark-project.protobuf:protobuf-java and
2.5.0 for com.google.protobuf:protobuf-java

is there a workaround to include both these jars in the feature.xml?

rgds

On Mon, Mar 16, 2015 at 3:33 PM, Sameera Jayasoma  wrote:

> Carbon-p2-plugin simply invoke Equinox P2 APIs to generate features? You
> can simply scan through the P2 plugin code and see.
>
> As per our offline chat, versions of these two jars are also very similar.
> That may be a problem
>
> https://github.com/wso2/maven-tools
>
> On Mon, Mar 16, 2015 at 9:58 AM, Niranda Perera  wrote:
>
>> Hi all,
>>
>> I have come across an issue in carbon P2 plugin while creating a feature.
>> Please consider the following scenario. [1]
>>
>> I need 2 jars to be bundled with the feature, from 2 different packages
>> BUT with the same artifact ID. Please see the highlighted text.
>>
>> 
>> org.wso2.maven
>> carbon-p2-plugin
>> 
>> 
>> 4-p2-feature-generation
>> package
>> 
>> p2-feature-gen
>> 
>> 
>>
>> org.wso2.carbon.analytics.spark.server
>>
>> ../../../../etc/feature.properties
>> 
>> 
>>
>> org.wso2.carbon.p2.category.type:server
>> 
>>
>> org.eclipse.equinox.p2.type.group:false
>> 
>> 
>> 
>> 
>>
>> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.core
>>
>> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.admin
>>
>> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.utils
>>
>> org.wso2.apache.spark:spark-core_2.10
>>
>> org.wso2.apache.spark:spark-sql_2.10
>>
>> org.apache.commons:commons-lang3
>>
>> org.apache.commons:commons-math3
>>
>> org.scala-lang:scala-library
>>
>> org.scala-lang:scala-reflect
>>
>> com.codahale.metrics:metrics-json
>>
>> com.codahale.metrics:metrics-jvm
>>
>> com.codahale.metrics:metrics-core
>>
>> com.codahale.metrics:metrics-graphite
>>
>> com.fasterxml.jackson.core:jackson-databind
>>
>> com.fasterxml.jackson.core:jackson-core
>>
>> com.fasterxml.jackson.core:jackson-annotations
>>
>> com.esotericsoftware.kryo:kryo
>>
>> org.xerial.snappy:snappy-java
>>
>> io.netty.wso2:netty-all
>>
>> javax.servlet.jsp:javax.servlet.jsp-api
>>
>> org.apache.tomcat.wso2:tomcat-servlet-api
>>
>> org.wso2.apache.hadoop:hadoop-client
>>
>> org.wso2.json4s:json4s-jackson_2.10
>>
>> org.eclipse.jetty:jetty-continuation
>>
>> org.eclipse.jetty:jetty-http
>>
>> org.eclipse.jetty:jetty-io
>>
>> org.eclipse.jetty:jetty-jndi
>>
>> org.eclipse.jetty:jetty-security
>>
>> org.eclipse.jetty:jetty-server
>>
>> org.eclipse.jetty:jetty-servlet
>>
>> org.eclipse.jetty:jetty-util
>>
>> org.eclipse.jetty:jetty-webapp
>>
>> org.eclipse.jetty:jetty-xml
>> io.netty:netty
>>
>> org.spark-project.protobuf:protobuf-java
>>
>>  com.google.protobuf:protobuf-java
>>
>>
>> org.wso2.uncommons.maths:uncommons-maths
>>
>> com.ning:compress-lzf
>>
>> com.google.guava:guava
>> org.slf4j:slf4j-api
>>
>> org.slf4j:slf4j-log4j12
>>
>> org.wso2.twitter:chill_2.10
>>
>> org.wso2.clearspring.analytics:stream
>>
>> org.wso2.orbit.org.apache.mesos:mesos
>>
>> 
>> 
>>
>> org.wso2.carbon.core:${carbon.kernel.version}
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> After building the feature, I found the relevant jars in the feature's
>> plugins folder.  BUT when I put the feature inside the product, only the
>> 2nd jar (com.google.protobuf:protobuf-java) is copied to the product's
>> plugins folder.
>> further looking into the problem, I found out that feature's feature.xml
>> file does not contain the 1st jar (
>> org.spark-project.protobuf:protobuf-java), which I think explains why it
>> was not copied to the product's plugins folder.
>>
>> Is this a known issue? does the carbon p2 plugin omits such packages when
>> it is creating the feature.xml file?
>>
>> look forward for your assistance in this regard.
>>
>> cheers
>>
>> [1]
>> https://github.com/wso2/carbon-analytics/blob/master/features/analytics/analytics-processors/org.wso2.carbon.analytics.spark.server.feature/pom.xml
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jaya

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

2015-03-16 Thread Sameera Jayasoma
Carbon-p2-plugin simply invoke Equinox P2 APIs to generate features? You
can simply scan through the P2 plugin code and see.

As per our offline chat, versions of these two jars are also very similar.
That may be a problem

https://github.com/wso2/maven-tools

On Mon, Mar 16, 2015 at 9:58 AM, Niranda Perera  wrote:

> Hi all,
>
> I have come across an issue in carbon P2 plugin while creating a feature.
> Please consider the following scenario. [1]
>
> I need 2 jars to be bundled with the feature, from 2 different packages
> BUT with the same artifact ID. Please see the highlighted text.
>
> 
> org.wso2.maven
> carbon-p2-plugin
> 
> 
> 4-p2-feature-generation
> package
> 
> p2-feature-gen
> 
> 
> org.wso2.carbon.analytics.spark.server
>
> ../../../../etc/feature.properties
> 
> 
>
> org.wso2.carbon.p2.category.type:server
> 
>
> org.eclipse.equinox.p2.type.group:false
> 
> 
> 
> 
>
> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.core
>
> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.admin
>
> org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.utils
>
> org.wso2.apache.spark:spark-core_2.10
>
> org.wso2.apache.spark:spark-sql_2.10
>
> org.apache.commons:commons-lang3
>
> org.apache.commons:commons-math3
>
> org.scala-lang:scala-library
>
> org.scala-lang:scala-reflect
>
> com.codahale.metrics:metrics-json
>
> com.codahale.metrics:metrics-jvm
>
> com.codahale.metrics:metrics-core
>
> com.codahale.metrics:metrics-graphite
>
> com.fasterxml.jackson.core:jackson-databind
>
> com.fasterxml.jackson.core:jackson-core
>
> com.fasterxml.jackson.core:jackson-annotations
>
> com.esotericsoftware.kryo:kryo
>
> org.xerial.snappy:snappy-java
>
> io.netty.wso2:netty-all
>
> javax.servlet.jsp:javax.servlet.jsp-api
>
> org.apache.tomcat.wso2:tomcat-servlet-api
>
> org.wso2.apache.hadoop:hadoop-client
>
> org.wso2.json4s:json4s-jackson_2.10
>
> org.eclipse.jetty:jetty-continuation
>
> org.eclipse.jetty:jetty-http
>
> org.eclipse.jetty:jetty-io
>
> org.eclipse.jetty:jetty-jndi
>
> org.eclipse.jetty:jetty-security
>
> org.eclipse.jetty:jetty-server
>
> org.eclipse.jetty:jetty-servlet
>
> org.eclipse.jetty:jetty-util
>
> org.eclipse.jetty:jetty-webapp
>
> org.eclipse.jetty:jetty-xml
> io.netty:netty
>
> org.spark-project.protobuf:protobuf-java
>
>  com.google.protobuf:protobuf-java
>
>
> org.wso2.uncommons.maths:uncommons-maths
>
> com.ning:compress-lzf
>
> com.google.guava:guava
> org.slf4j:slf4j-api
>
> org.slf4j:slf4j-log4j12
>
> org.wso2.twitter:chill_2.10
>
> org.wso2.clearspring.analytics:stream
>
> org.wso2.orbit.org.apache.mesos:mesos
>
> 
> 
>
> org.wso2.carbon.core:${carbon.kernel.version}
> 
> 
> 
> 
> 
> 
>
> After building the feature, I found the relevant jars in the feature's
> plugins folder.  BUT when I put the feature inside the product, only the
> 2nd jar (com.google.protobuf:protobuf-java) is copied to the product's
> plugins folder.
> further looking into the problem, I found out that feature's feature.xml
> file does not contain the 1st jar (
> org.spark-project.protobuf:protobuf-java), which I think explains why it
> was not copied to the product's plugins folder.
>
> Is this a known issue? does the carbon p2 plugin omits such packages when
> it is creating the feature.xml file?
>
> look forward for your assistance in this regard.
>
> cheers
>
> [1]
> https://github.com/wso2/carbon-analytics/blob/master/features/analytics/analytics-processors/org.wso2.carbon.analytics.spark.server.feature/pom.xml
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
>



-- 
Sameera Jayasoma,
Software Architect,

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

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


Re: [Dev] GSOC2015:PROJECT

2015-03-16 Thread Tharinda Ehelepola
Hi,

I studied about apache spark these days. I 'm still stuck in building part.
I went through different links and finally decided to build it using
intellij. I have found most of the libraries but still errors occur when
running examples.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/lang3/SystemUtils
at org.apache.spark.util.Utils$.(Utils.scala:1476)
at org.apache.spark.util.Utils$.(Utils.scala)
at org.apache.spark.SparkContext.(SparkContext.scala:70)
at
org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
at org.apache.spark.examples.JavaLogQuery.main(JavaLogQuery.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.lang3.SystemUtils
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more
Exception in thread "delete Spark temp dirs"
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.spark.util.Utils$
at org.apache.spark.util.Utils$$anon$4.run(Utils.scala:175)


Here I added some errors. *Apache Spark* is a fast and general engine for
big data processing. Wrangler is to data cleaning and transformation. So
what I got is some spark methods related to wrangler scripts. If I can get
proper knowledge about spark java API I can use that for conversion of
wrangler scripts to java. And also it will help me to get proper idea about
the whole project. So can you please give me some tips for building apache
spark.

Thank you,
Tharinda.

On Fri, Mar 13, 2015 at 12:24 PM, Tharinda Ehelepola 
wrote:

> Hi,
>
> I got the libraries. But still have a problem with below ones.
>
> import org.apache.spark.streaming.api.java.JavaDStream;
> import org.apache.spark.streaming.api.java.JavaReceiverInputDStream;
>
> import org.apache.spark.streaming.api.java.JavaStreamingContext;
>
>
> On Fri, Mar 13, 2015 at 5:05 AM, Supun Sethunga  wrote:
>
>> Hi,
>>
>> You can find all the necessary libraries in the Maven Repository [1].
>> Please use the latest version of spark (v1.2.1).
>>
>> [1] http://mvnrepository.com/artifact/org.apache.spark
>>
>> Regards,
>> Supun
>>
>> On Fri, Mar 13, 2015 at 6:27 AM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I checked the methods of apache spark. Some of them are related to
>>> wrangler script. I run spark as a maven project. But I am not able to run
>>> example code in java. Because it asking about the libraries. I found
>>> some simple example from stackoverflow . But I am not able to find the
>>> library of spark.apache. So can you please give me some idea about
>>> those libraries.
>>>
>>> On Thu, Mar 12, 2015 at 11:35 AM, Supun Sethunga 
>>> wrote:
>>>
 Hi Tharinda,

 Please find the comments inline.

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

 Yes.

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

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

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

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

 Feel free to contact us if you need further clarifications.

 Regards,
 Supun

 On Thu, Mar 12, 2015 at 1:04 PM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>
> I think the major part of this project is create a back end of java
> code created using wrangler script. Wrangler scripts are mostly done by
> javascript. So I need to convert those into java. I was not able to find
> some method. Other ways of doing this is used common methods like
> split,merge.. etc easily find on java. Rest of the methods are convert by
> manually. Is there any method to convert those scripts to java.
>
> Thank you.
> Tharinda.
>
> On Wed, Mar 11, 2015 at 3:45 AM

Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg

2015-03-16 Thread Gayan Dhanushka
Hi Mahesh,

+1 for throwing an error message.

A message of the format mentioned above would be good for logging. IMO
throwing a simple message is enough to be displayed to the user.

Regards
Gayan

On Mon, Mar 16, 2015 at 3:00 PM, Danushka Fernando 
wrote:

> We dont need to give that detailed error message to the user. But having
> an error message saying what has been failed like jenkins job creation
> failed or git repo creation failed would be good IMO.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Mar 16, 2015 at 2:53 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi,
>> +1 for throwing the message.
>> But another question,
>> At the moment we have put all details possible for the message. eg:
>> tenant domain, username ,application type etc.
>> But when it comes to user (front end) i think message should be simple.
>>
>> For an example.
>> Lets say an error occurred while creating an application.
>>
>> should the message diplayed on the UI be like ,
>> var msg = " Application creation failed!!"
>> or
>> var msg = "Error while creating application : " + applicationName + "
>> with application key : " + applicationKey
>>   + " of application type : " + applicationType + " and
>> version : " + version + " for the user : "
>>   + userName + " of tenant domain : " + tenantDomain + ".
>>
>> On Mon, Mar 16, 2015 at 2:44 PM, Danushka Fernando 
>> wrote:
>>
>>> Since this is about sending an error message for front end IMO both ways
>>> are ok for me. And since we are showing the error message we are throwing I
>>> guess we need to throw the message.
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka 
>>> wrote:
>>>
 Hi all,

 In AF appmgt module layer,
 when we catch a exception what is the correct way to handle it.

 var msg = "Some error msg";
 log.error(msg);
 log.error(e);
 *throw e; *
 or
 *throw msg;*

 In appfactory we get the error message thrown in the module layer to
 front and display it in UI in the top section of the page with a red bar.
 So if we thew e, the GUI will get a big error message displayed with
 all the stack trace details.


 Whats the best way ??

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


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


-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-03-16 Thread Prasad Tissera
Issue cannot be observed in IS 5.0.0 with patch0009.

Regards,
Prasad.

On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah  wrote:

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

 Appreciate if we can get this resolved ASAP. This is turning out to be
 a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.

 Thanks.

 On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera 
 wrote:

> Hi Kasun,
>
> This issues still seems to be there in spring.framework_3.2.9.wso2v1
> even though the suggested fix has been applied in [1]. Class not found
> exception occurred intermittently in IS 5.1.0 pack when calling OAuth
> endpoints. The issue has been reported in [2] and has marked as
> resolved. How should we proceed in this? Thanks.
>
> root cause java.lang.ClassNotFoundException:
> org.wso2.carbon.identity.oauth.cache.CacheKey
>
> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
> java.lang.Class.getDeclaredConstructors0(Native Method)
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
> java.lang.Class.getConstructor0(Class.java:2708)
> java.lang.Class.getDeclaredConstructor(Class.java:1987)
>
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>
> [1].
> https://github.com/wso2/orbit/commit/d947214c470b257a9fe3083d8c4c7baf49d46f87
> [2]. https://wso2.org/jira/browse/CARBON-14864
>
> Regards,
> Prasad.
>
> On Fri, Jul 18, 2014 at 9:52 AM, Pulasthi Supun 
> wrote:
>
>> Hi Sameera,
>>
>> Was this change applied to the 4.3.0 branch on git?. we are getting a
>> similar random server not starting up issue. seems it is the same reason.
>> If this is not already allied can we get this added to 4.3.0 branch. We 
>> are
>> trying to fix integration test in greg and this random server hangup is
>> causing a lot of time to be wasted.
>>
>> Regards,
>> Pulasthi
>>
>>
>> On Mon, Jul 14, 2014 at 8:56 PM, Sameera Jayasoma 
>> wrote:
>>
>>> Done.
>>>
>>>
>>>
>>>
>>> On Mon, Jul 14, 2014 at 6:54 PM, Kasun Gajasinghe 
>>> wrote:
>>>
 Hi kernel team,

 Please commit the patch at [1] for this issue.

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

 Thanks,
 KasunG


 On Mon, Jul 14, 2014 at 5:15 PM, Vijayaratha Vijayasingam <
 rat...@wso2.com> wrote:

> tried with kasun's modified spring lib, looks like it is working..
>
>
> On 14 July 2014 16:54, Vijayaratha Vijayasingam 
> wrote:
>
>> kasun , as you said i tried..after that i get some spring class
>> loading issue..May be the way edited the jar is wrong..
>> please commit the fix..we need to build the pack
>>
>> 2014-07-14 16:50:42,213]  INFO
>> {org.wso2.carbon.server.util.PatchUtils.console} -  Patch 
>> verification
>> successfully completed without encountering any issues.
>>
>> Could not start:
>> null(reference:file:../plugins/spring.framework_3.1.0.wso2v1.jar:482).
>>  It's
>> state is uninstalled.
>>
>> log4j:ERROR Could not instantiate class
>

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

2015-03-16 Thread Supun Malinga
sorry wrong thread. Please ignore my last reply.

thanks,

On Mon, Mar 16, 2015 at 2:57 PM, Supun Malinga  wrote:

> Hi Manoj,
>
> Can you commit this pls ?.
>
> thanks,
>
> On Mon, Mar 16, 2015 at 2:49 PM, Prasad Tissera  wrote:
>
>> I'll check and let you know ASAP. Thanks.
>>
>> Regards,
>> Prasad.
>>
>> On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Can you guys check this with IS 5.0.0 also (apply patch0009)? If spring
>>> upgrade is causing the issue, then it should occur when patch0009 is
>>> applied on IS 5.0.0.
>>>
>>> On Mon, Mar 16, 2015 at 9:36 AM, Prasad Tissera 
>>> wrote:
>>>
 It can be observed in a fresh pack which can be downloaded from jenkins
 [1].  Following curl can be used to reproduce the issue.

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

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

 Regards,
 Prasad.

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

> Can we have IS pack with the above issue hosted somewhere, so that we
> could take a look?
>
> On Sun, Mar 15, 2015 at 1:21 PM, Johann Nallathamby 
> wrote:
>
>> Hi AS Team,
>>
>> Appreciate if we can get this resolved ASAP. This is turning out to
>> be a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.
>>
>> Thanks.
>>
>> On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> This issues still seems to be there in spring.framework_3.2.9.wso2v1
>>> even though the suggested fix has been applied in [1]. Class not found
>>> exception occurred intermittently in IS 5.1.0 pack when calling OAuth
>>> endpoints. The issue has been reported in [2] and has marked as
>>> resolved. How should we proceed in this? Thanks.
>>>
>>> root cause
>>> java.lang.ClassNotFoundException:
>>> org.wso2.carbon.identity.oauth.cache.CacheKey
>>>
>>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>>
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
>>> java.lang.Class.getDeclaredConstructors0(Native Method)
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
>>> java.lang.Class.getConstructor0(Class.java:2708)
>>> java.lang.Class.getDeclaredConstructor(Class.java:1987)
>>>
>>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>>>
>>> [1].
>>> https://github.com/wso2/orbit/commit/d947214c470b257a9fe3083d8c4c7baf49d46f87
>>> [2]. https://wso2.org/jira/browse/CARBON-14864
>>>
>>> Regards,
>>> Prasad.
>>>
>>> On Fri, Jul 18, 2014 at 9:52 AM, Pulasthi Supun 
>>> wrote:
>>>
 Hi Sameera,

 Was this change applied to the 4.3.0 branch on git?. we are getting
 a similar random server not starting up issue. seems it is the same 
 reason.
 If this is not already allied can we get this added to 4.3.0 branch. 
 We are
 trying to fix integration test in greg and this random server hangup is
 causing a lot of time to be wasted.

 Regards,
 Pulasthi


 On Mon, Jul 14, 2014 at 8:56 PM, Sameera Jayasoma >>> > wrote:

> Done.
>
>
>
>
> On Mon, Jul 14, 2014 at 6:54 PM, Kasun Gajasinghe  > wrote:
>
>> Hi kernel team,
>>
>> Please commit the patch at [1] for this issue.
>>
>> [1] https://wso2.org/jira/browse/CARBON-14864
>>
>> Thanks,
>> KasunG
>>
>>
>> On Mon, Jul 14, 2014 at 5:15 PM, Vijayaratha Vijayasingam <
>> rat...@wso2.com> wrote:
>>
>>> tried with kasun's modified spring lib, looks like it is
>>> working..
>>>
>>>
>>> On 14 July 2014 16:54, Vijayaratha Vijayasingam >> > wrote:
>>>
 kasun , as you said i tried..after that i get some spring class
 loading issue..May be the 

Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg

2015-03-16 Thread Danushka Fernando
We dont need to give that detailed error message to the user. But having an
error message saying what has been failed like jenkins job creation failed
or git repo creation failed would be good IMO.

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

On Mon, Mar 16, 2015 at 2:53 PM, Mahesh Chinthaka  wrote:

> Hi,
> +1 for throwing the message.
> But another question,
> At the moment we have put all details possible for the message. eg: tenant
> domain, username ,application type etc.
> But when it comes to user (front end) i think message should be simple.
>
> For an example.
> Lets say an error occurred while creating an application.
>
> should the message diplayed on the UI be like ,
> var msg = " Application creation failed!!"
> or
> var msg = "Error while creating application : " + applicationName + " with
> application key : " + applicationKey
>   + " of application type : " + applicationType + " and
> version : " + version + " for the user : "
>   + userName + " of tenant domain : " + tenantDomain + ".
>
> On Mon, Mar 16, 2015 at 2:44 PM, Danushka Fernando 
> wrote:
>
>> Since this is about sending an error message for front end IMO both ways
>> are ok for me. And since we are showing the error message we are throwing I
>> guess we need to throw the message.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi all,
>>>
>>> In AF appmgt module layer,
>>> when we catch a exception what is the correct way to handle it.
>>>
>>> var msg = "Some error msg";
>>> log.error(msg);
>>> log.error(e);
>>> *throw e; *
>>> or
>>> *throw msg;*
>>>
>>> In appfactory we get the error message thrown in the module layer to
>>> front and display it in UI in the top section of the page with a red bar.
>>> So if we thew e, the GUI will get a big error message displayed with all
>>> the stack trace details.
>>>
>>>
>>> Whats the best way ??
>>>
>>> --
>>> *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
>>>
>>>
>>
>
>
> --
> *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] We are getting some class not found issues intermittently

2015-03-16 Thread Supun Malinga
Hi Manoj,

Can you commit this pls ?.

thanks,

On Mon, Mar 16, 2015 at 2:49 PM, Prasad Tissera  wrote:

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

 On Sun, Mar 15, 2015 at 1:21 PM, Johann Nallathamby 
 wrote:

> Hi AS Team,
>
> Appreciate if we can get this resolved ASAP. This is turning out to be
> a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.
>
> Thanks.
>
> On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera 
> wrote:
>
>> Hi Kasun,
>>
>> This issues still seems to be there in spring.framework_3.2.9.wso2v1
>> even though the suggested fix has been applied in [1]. Class not found
>> exception occurred intermittently in IS 5.1.0 pack when calling OAuth
>> endpoints. The issue has been reported in [2] and has marked as
>> resolved. How should we proceed in this? Thanks.
>>
>> root cause java.lang.ClassNotFoundException:
>> org.wso2.carbon.identity.oauth.cache.CacheKey
>>
>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
>> java.lang.Class.getDeclaredConstructors0(Native Method)
>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
>> java.lang.Class.getConstructor0(Class.java:2708)
>> java.lang.Class.getDeclaredConstructor(Class.java:1987)
>>
>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>>
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>>
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>>
>> [1].
>> https://github.com/wso2/orbit/commit/d947214c470b257a9fe3083d8c4c7baf49d46f87
>> [2]. https://wso2.org/jira/browse/CARBON-14864
>>
>> Regards,
>> Prasad.
>>
>> On Fri, Jul 18, 2014 at 9:52 AM, Pulasthi Supun 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> Was this change applied to the 4.3.0 branch on git?. we are getting
>>> a similar random server not starting up issue. seems it is the same 
>>> reason.
>>> If this is not already allied can we get this added to 4.3.0 branch. We 
>>> are
>>> trying to fix integration test in greg and this random server hangup is
>>> causing a lot of time to be wasted.
>>>
>>> Regards,
>>> Pulasthi
>>>
>>>
>>> On Mon, Jul 14, 2014 at 8:56 PM, Sameera Jayasoma 
>>> wrote:
>>>
 Done.




 On Mon, Jul 14, 2014 at 6:54 PM, Kasun Gajasinghe 
 wrote:

> Hi kernel team,
>
> Please commit the patch at [1] for this issue.
>
> [1] https://wso2.org/jira/browse/CARBON-14864
>
> Thanks,
> KasunG
>
>
> On Mon, Jul 14, 2014 at 5:15 PM, Vijayaratha Vijayasingam <
> rat...@wso2.com> wrote:
>
>> tried with kasun's modified spring lib, looks like it is working..
>>
>>
>> On 14 July 2014 16:54, Vijayaratha Vijayasingam 
>> wrote:
>>
>>> kasun , as you said i tried..after that i get some spring class
>>> loading issue..May be the way edited the jar is wrong..
>>> please commit the fix..we need to build the pack
>>>
>>> 2014-07-14 16:50:42,213]  INFO
>>> {org.wso2.carbon.server.util.PatchUtils.console} -  Patch 
>>> verification
>>> successfully completed wit

Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg

2015-03-16 Thread Mahesh Chinthaka
Hi,
+1 for throwing the message.
But another question,
At the moment we have put all details possible for the message. eg: tenant
domain, username ,application type etc.
But when it comes to user (front end) i think message should be simple.

For an example.
Lets say an error occurred while creating an application.

should the message diplayed on the UI be like ,
var msg = " Application creation failed!!"
or
var msg = "Error while creating application : " + applicationName + " with
application key : " + applicationKey
  + " of application type : " + applicationType + " and
version : " + version + " for the user : "
  + userName + " of tenant domain : " + tenantDomain + ".

On Mon, Mar 16, 2015 at 2:44 PM, Danushka Fernando 
wrote:

> Since this is about sending an error message for front end IMO both ways
> are ok for me. And since we are showing the error message we are throwing I
> guess we need to throw the message.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi all,
>>
>> In AF appmgt module layer,
>> when we catch a exception what is the correct way to handle it.
>>
>> var msg = "Some error msg";
>> log.error(msg);
>> log.error(e);
>> *throw e; *
>> or
>> *throw msg;*
>>
>> In appfactory we get the error message thrown in the module layer to
>> front and display it in UI in the top section of the page with a red bar.
>> So if we thew e, the GUI will get a big error message displayed with all
>> the stack trace details.
>>
>>
>> Whats the best way ??
>>
>> --
>> *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
>>
>>
>


-- 
*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] We are getting some class not found issues intermittently

2015-03-16 Thread Prasad Tissera
I'll check and let you know ASAP. Thanks.

Regards,
Prasad.

On Mon, Mar 16, 2015 at 2:48 PM, Kishanthan Thangarajah  wrote:

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

 Appreciate if we can get this resolved ASAP. This is turning out to be
 a blocker for IS 5.1.0 M1 release. Reopened the JIRA as well.

 Thanks.

 On Sun, Mar 15, 2015 at 9:08 AM, Prasad Tissera 
 wrote:

> Hi Kasun,
>
> This issues still seems to be there in spring.framework_3.2.9.wso2v1
> even though the suggested fix has been applied in [1]. Class not found
> exception occurred intermittently in IS 5.1.0 pack when calling OAuth
> endpoints. The issue has been reported in [2] and has marked as
> resolved. How should we proceed in this? Thanks.
>
> root cause java.lang.ClassNotFoundException:
> org.wso2.carbon.identity.oauth.cache.CacheKey
>
> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
> java.lang.Class.getDeclaredConstructors0(Native Method)
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
> java.lang.Class.getConstructor0(Class.java:2708)
> java.lang.Class.getDeclaredConstructor(Class.java:1987)
>
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>
> [1].
> https://github.com/wso2/orbit/commit/d947214c470b257a9fe3083d8c4c7baf49d46f87
> [2]. https://wso2.org/jira/browse/CARBON-14864
>
> Regards,
> Prasad.
>
> On Fri, Jul 18, 2014 at 9:52 AM, Pulasthi Supun 
> wrote:
>
>> Hi Sameera,
>>
>> Was this change applied to the 4.3.0 branch on git?. we are getting a
>> similar random server not starting up issue. seems it is the same reason.
>> If this is not already allied can we get this added to 4.3.0 branch. We 
>> are
>> trying to fix integration test in greg and this random server hangup is
>> causing a lot of time to be wasted.
>>
>> Regards,
>> Pulasthi
>>
>>
>> On Mon, Jul 14, 2014 at 8:56 PM, Sameera Jayasoma 
>> wrote:
>>
>>> Done.
>>>
>>>
>>>
>>>
>>> On Mon, Jul 14, 2014 at 6:54 PM, Kasun Gajasinghe 
>>> wrote:
>>>
 Hi kernel team,

 Please commit the patch at [1] for this issue.

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

 Thanks,
 KasunG


 On Mon, Jul 14, 2014 at 5:15 PM, Vijayaratha Vijayasingam <
 rat...@wso2.com> wrote:

> tried with kasun's modified spring lib, looks like it is working..
>
>
> On 14 July 2014 16:54, Vijayaratha Vijayasingam 
> wrote:
>
>> kasun , as you said i tried..after that i get some spring class
>> loading issue..May be the way edited the jar is wrong..
>> please commit the fix..we need to build the pack
>>
>> 2014-07-14 16:50:42,213]  INFO
>> {org.wso2.carbon.server.util.PatchUtils.console} -  Patch 
>> verification
>> successfully completed without encountering any issues.
>>
>> Could not start:
>> null(reference:file:../plugins/spring.framework_3.1.0.wso2v1.jar:482).
>>  It's
>> state is uninstalled.
>>
>> log4j:ERROR Could not instantiate class
>> [

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

2015-03-16 Thread Kishanthan Thangarajah
Can you guys check this with IS 5.0.0 also (apply patch0009)? If spring
upgrade is causing the issue, then it should occur when patch0009 is
applied on IS 5.0.0.

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

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

 This issues still seems to be there in spring.framework_3.2.9.wso2v1
 even though the suggested fix has been applied in [1]. Class not found
 exception occurred intermittently in IS 5.1.0 pack when calling OAuth
 endpoints. The issue has been reported in [2] and has marked as
 resolved. How should we proceed in this? Thanks.

 root cause java.lang.ClassNotFoundException:
 org.wso2.carbon.identity.oauth.cache.CacheKey

 org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
 java.lang.Class.getDeclaredConstructors0(Native Method)
 java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
 java.lang.Class.getConstructor0(Class.java:2708)
 java.lang.Class.getDeclaredConstructor(Class.java:1987)

 org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)

 [1].
 https://github.com/wso2/orbit/commit/d947214c470b257a9fe3083d8c4c7baf49d46f87
 [2]. https://wso2.org/jira/browse/CARBON-14864

 Regards,
 Prasad.

 On Fri, Jul 18, 2014 at 9:52 AM, Pulasthi Supun 
 wrote:

> Hi Sameera,
>
> Was this change applied to the 4.3.0 branch on git?. we are getting a
> similar random server not starting up issue. seems it is the same reason.
> If this is not already allied can we get this added to 4.3.0 branch. We 
> are
> trying to fix integration test in greg and this random server hangup is
> causing a lot of time to be wasted.
>
> Regards,
> Pulasthi
>
>
> On Mon, Jul 14, 2014 at 8:56 PM, Sameera Jayasoma 
> wrote:
>
>> Done.
>>
>>
>>
>>
>> On Mon, Jul 14, 2014 at 6:54 PM, Kasun Gajasinghe 
>> wrote:
>>
>>> Hi kernel team,
>>>
>>> Please commit the patch at [1] for this issue.
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-14864
>>>
>>> Thanks,
>>> KasunG
>>>
>>>
>>> On Mon, Jul 14, 2014 at 5:15 PM, Vijayaratha Vijayasingam <
>>> rat...@wso2.com> wrote:
>>>
 tried with kasun's modified spring lib, looks like it is working..


 On 14 July 2014 16:54, Vijayaratha Vijayasingam 
 wrote:

> kasun , as you said i tried..after that i get some spring class
> loading issue..May be the way edited the jar is wrong..
> please commit the fix..we need to build the pack
>
> 2014-07-14 16:50:42,213]  INFO
> {org.wso2.carbon.server.util.PatchUtils.console} -  Patch verification
> successfully completed without encountering any issues.
>
> Could not start:
> null(reference:file:../plugins/spring.framework_3.1.0.wso2v1.jar:482).
>  It's
> state is uninstalled.
>
> log4j:ERROR Could not instantiate class
> [org.wso2.carbon.logging.appender.CarbonMemoryAppender].
>
> java.lang.ClassNotFoundException:
> org.wso2.carbon.logging.appender.CarbonMemoryAppender
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bund

Re: [Dev] Switch case is not working in the proxy

2015-03-16 Thread Keerthika Mahendralingam
Please find the wire log:

[2015-03-16 11:56:26,191] DEBUG - wire >> "POST /services/marketo
HTTP/1.1[\r][\n]"

[2015-03-16 11:56:26,192] DEBUG - wire >> "Host:
keerthikas-macbook-pro.local:8280[\r][\n]"

[2015-03-16 11:56:26,192] DEBUG - wire >> "Connection: keep-alive[\r][\n]"

[2015-03-16 11:56:26,192] DEBUG - wire >> "Content-Length: 650[\r][\n]"

[2015-03-16 11:56:26,192] DEBUG - wire >> "Action:
urn:createAndUpdateLeads[\r][\n]"

[2015-03-16 11:56:26,192] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"

[2015-03-16 11:56:26,192] DEBUG - wire >> "Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"

[2015-03-16 11:56:26,192] DEBUG - wire >> "User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/41.0.2272.89 Safari/537.36[\r][\n]"

[2015-03-16 11:56:26,192] DEBUG - wire >> "Content-Type:
application/json[\r][\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "Accept: */*[\r][\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "Accept-Encoding: gzip,
deflate[\r][\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "Accept-Language:
en-US,en;q=0.8[\r][\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "Cookie: CFID=111368577;
CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
BIGipServersjgcp-restapi_https=4262002698.47873.[\r][\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "[\r][\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "{[\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> ""marketoInstanceURL":"
https://667-LPB-079.mktorest.com",[\n]";

[2015-03-16 11:56:26,193] DEBUG - wire >> "
"clientSecret":"Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd",[\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "
"clientId":"01f22a42-0f05-4e7f-b675-550b6de66f91",[\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "
[0x9]"action":"updateOnly",[\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "
[0x9]"lookupField":"email",[\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "
[0x9]"partitionName":"default",[\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "  "asyncProcessing":"true",[\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "   [0x9]"input":[  [\n]"

[2015-03-16 11:56:26,193] DEBUG - wire >> "  {  [\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> " "email":"co...@gmail.com
",[\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> "
"firstName":"con-1",[\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> "
"postalCode":"04828"[\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> "  },[\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> "  {  [\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> " "email":"co...@gmail.com
",[\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> "
"firstName":"con-2",[\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> "
"postalCode":"04828"[\n]"

[2015-03-16 11:56:26,194] DEBUG - wire >> "  },[\n]"

[2015-03-16 11:56:26,195] DEBUG - wire >> "  {  [\n]"

[2015-03-16 11:56:26,195] DEBUG - wire >> " "email":"co...@gmail.com
",[\n]"

[2015-03-16 11:56:26,195] DEBUG - wire >> "
"firstName":"con-3",[\n]"

[2015-03-16 11:56:26,195] DEBUG - wire >> "
"postalCode":"04828"[\n]"

[2015-03-16 11:56:26,195] DEBUG - wire >> "  }[\n]"

[2015-03-16 11:56:26,195] DEBUG - wire >> "   ][\n]"

[2015-03-16 11:56:26,195] DEBUG - wire >> "}"

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> POST
/services/marketo HTTP/1.1

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> Host:
keerthikas-macbook-pro.local:8280

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> Connection:
keep-alive

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >>
Content-Length: 650

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> Action:
urn:createAndUpdateLeads

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> Cache-Control:
no-cache

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >> Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >> User-Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/41.0.2272.89 Safari/537.36

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >> Content-Type:
application/json

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >> Accept: */*

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >>
Accept-Encoding: gzip, deflate

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >>
Accept-Language: en-US,en;q=0.8

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >> Cookie:
CFID=111368577;
CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
BIGipServersjgcp-restapi_https=4262002698.47873.

[2015-03-16 11:56:27,766] DEBUG - headers http-outgoing-2 >> GET
/identity/oauth/token?grant_type=client_credentials&client_id=01f22a42-0f05-4e7f-b675-550b6de66f91&client_secret=Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd
HTTP/1.1

[2015-03-16 11:56:27,767] DEBUG - headers http-outgoing-2 >>
Accept-Language: en-US,en;q=0.8

[2015-

Re: [Dev] Switch case is not working in the proxy

2015-03-16 Thread Keerthika Mahendralingam
Hi Elil,
I have added the Action header.

Thanks,

On Mon, Mar 16, 2015 at 12:06 PM, Elilmatha Sivanesan 
wrote:

>
> make sure you have added Action header and value urn:createAndUpdateLeads
> when testing via postman/rest..
>
> On Mon, Mar 16, 2015 at 11:59 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Please find the wire log:
>>
>> [2015-03-16 11:56:26,191] DEBUG - wire >> "POST /services/marketo
>> HTTP/1.1[\r][\n]"
>>
>> [2015-03-16 11:56:26,192] DEBUG - wire >> "Host:
>> keerthikas-macbook-pro.local:8280[\r][\n]"
>>
>> [2015-03-16 11:56:26,192] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
>>
>> [2015-03-16 11:56:26,192] DEBUG - wire >> "Content-Length: 650[\r][\n]"
>>
>> [2015-03-16 11:56:26,192] DEBUG - wire >> "Action:
>> urn:createAndUpdateLeads[\r][\n]"
>>
>> [2015-03-16 11:56:26,192] DEBUG - wire >> "Cache-Control:
>> no-cache[\r][\n]"
>>
>> [2015-03-16 11:56:26,192] DEBUG - wire >> "Origin:
>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>>
>> [2015-03-16 11:56:26,192] DEBUG - wire >> "User-Agent: Mozilla/5.0
>> (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/41.0.2272.89 Safari/537.36[\r][\n]"
>>
>> [2015-03-16 11:56:26,192] DEBUG - wire >> "Content-Type:
>> application/json[\r][\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "Accept: */*[\r][\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "Accept-Encoding: gzip,
>> deflate[\r][\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "Accept-Language:
>> en-US,en;q=0.8[\r][\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "Cookie: CFID=111368577;
>> CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
>> BIGipServersjgcp-restapi_https=4262002698.47873.[\r][\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "[\r][\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "{[\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> ""marketoInstanceURL":"
>> https://667-LPB-079.mktorest.com",[\n]";
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "
>> "clientSecret":"Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd",[\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "
>> "clientId":"01f22a42-0f05-4e7f-b675-550b6de66f91",[\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "
>> [0x9]"action":"updateOnly",[\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "
>> [0x9]"lookupField":"email",[\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "
>> [0x9]"partitionName":"default",[\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "
>> "asyncProcessing":"true",[\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "   [0x9]"input":[  [\n]"
>>
>> [2015-03-16 11:56:26,193] DEBUG - wire >> "  {  [\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> " "email":"
>> co...@gmail.com",[\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> "
>> "firstName":"con-1",[\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> "
>> "postalCode":"04828"[\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> "  },[\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> "  {  [\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> " "email":"
>> co...@gmail.com",[\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> "
>> "firstName":"con-2",[\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> "
>> "postalCode":"04828"[\n]"
>>
>> [2015-03-16 11:56:26,194] DEBUG - wire >> "  },[\n]"
>>
>> [2015-03-16 11:56:26,195] DEBUG - wire >> "  {  [\n]"
>>
>> [2015-03-16 11:56:26,195] DEBUG - wire >> " "email":"
>> co...@gmail.com",[\n]"
>>
>> [2015-03-16 11:56:26,195] DEBUG - wire >> "
>> "firstName":"con-3",[\n]"
>>
>> [2015-03-16 11:56:26,195] DEBUG - wire >> "
>> "postalCode":"04828"[\n]"
>>
>> [2015-03-16 11:56:26,195] DEBUG - wire >> "  }[\n]"
>>
>> [2015-03-16 11:56:26,195] DEBUG - wire >> "   ][\n]"
>>
>> [2015-03-16 11:56:26,195] DEBUG - wire >> "}"
>>
>> [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> POST
>> /services/marketo HTTP/1.1
>>
>> [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> Host:
>> keerthikas-macbook-pro.local:8280
>>
>> [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> Connection:
>> keep-alive
>>
>> [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >>
>> Content-Length: 650
>>
>> [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >> Action:
>> urn:createAndUpdateLeads
>>
>> [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 >>
>> Cache-Control: no-cache
>>
>> [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >> Origin:
>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm
>>
>> [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >> User-Agent:
>> Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML,
>> like Gecko) Chrome/41.0.2272.89 Safari/537.36
>>
>> [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >>
>> Content-Type: application/json
>>
>> [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 >> Accept: */*
>>
>> [2015-03-16 11:5

Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg

2015-03-16 Thread Danushka Fernando
Since this is about sending an error message for front end IMO both ways
are ok for me. And since we are showing the error message we are throwing I
guess we need to throw the message.

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

On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka  wrote:

> Hi all,
>
> In AF appmgt module layer,
> when we catch a exception what is the correct way to handle it.
>
> var msg = "Some error msg";
> log.error(msg);
> log.error(e);
> *throw e; *
> or
> *throw msg;*
>
> In appfactory we get the error message thrown in the module layer to front
> and display it in UI in the top section of the page with a red bar.
> So if we thew e, the GUI will get a big error message displayed with all
> the stack trace details.
>
>
> Whats the best way ??
>
> --
> *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 mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg

2015-03-16 Thread Mahesh Chinthaka
Hi all,

In AF appmgt module layer,
when we catch a exception what is the correct way to handle it.

var msg = "Some error msg";
log.error(msg);
log.error(e);
*throw e; *
or
*throw msg;*

In appfactory we get the error message thrown in the module layer to front
and display it in UI in the top section of the page with a red bar.
So if we thew e, the GUI will get a big error message displayed with all
the stack trace details.


Whats the best way ??

-- 
*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] [APP-M] Workflows in App Manager

2015-03-16 Thread Yasassri Ratnayake
Hi AM team,

In the current implementation of App-Manager, the Creator is able to edit
any web-App in 'IN-REVIEW' or 'PUBLISHED' states.

IMHO this implementation is seemingly wrong, since one objective of going
through the workflow process is to validate the content of the created app.
So if the Creator can change the content after publishing there is no point
in validating the content. Is there any specific reason for this
implementation?

If this implementation is agreed and decided, the Mobile App workflow
implementation should be changed. Since in Mobile Apps the creator cannot
edit any app beyond CREATED state. So in order to be consistent this should
be reverted to match the webapp scenario.

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


Re: [Dev] [G-Reg] [New Feature] Implementing password field for registry RXTs

2015-03-16 Thread Sithumini Senevirathne
Thanks Maninda.

Regards,
Sithumini

On Mon, Mar 16, 2015 at 11:43 AM, Maninda Edirisooriya 
wrote:

> IMO the password field should be encrypted when it is stored in the
> database. That means the password should be encrypted from the backend and
> decrypted each time from the backend once requested.
>
> Thanks.
>
>
> *Maninda Edirisooriya*
> Senior Software Engineer
>
> *WSO2, Inc.*lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *E-mail* : mani...@wso2.com
> *Skype* : @manindae
> *Twitter* : @maninda
>
> On Mon, Mar 16, 2015 at 10:46 AM, Sithumini Senevirathne <
> sithumi...@wso2.com> wrote:
>
>> Hi all,
>>
>> Currently registry do not have password field support for RXTs and I'm
>> working on implementing this.
>>
>> This implementation comes with several concerns as below,
>>
>>1. UI aspect of the password field
>>2. Security aspect of the password fields
>>
>>
>> The solution for the concern #1 is,
>>
>>1. Created a new "PasswordFiels" class in
>>"org.wso2.carbon.governance.generic.ui.common.dataobject"
>>
>>
>> Regarding the security concern of the password field, I identified
>> several challenges.
>>
>>- When to encrypt the password field content.
>>- Whether the encryption should be in UI side or backend side?
>>- When to decrypt the password field content.
>>- Whether the decryption should be done in every time it is viewed or
>>decrypt the password field content as necessary upon request of the user?
>>
>> Please give your suggestions on regarding these concerns.
>>
>> Thanks,
>> Regards,
>> Sithumini
>> --
>> --
>> Sithumini Senevirathne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: sithumi...@wso2.com,   mobile: +94 756977999
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon Context API Documentation

2015-03-16 Thread Danushka Fernando
AFAIU what you want is to get all resources in a collection. You can
retrieve collection from registry and iterate though all resources in that
collection.

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

On Mon, Mar 16, 2015 at 1:28 PM, Pubudu Dodangoda  wrote:

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


Re: [Dev] Code Review on ToodleDo Connector

2015-03-16 Thread Elilmatha Sivanesan
Hi Dinithi and Rajeenthini,

Can you please check on this an give the pull request to
https://github.com/wso2/esb-connectors .

Thank you.


On Wed, Feb 25, 2015 at 10:56 PM, Dinithi De Silva 
wrote:

> Hi Elil,
>
> AFAIK some of the dependencies are moved to a new location from the old
> location. That must be the reason for the test failure. I'll check what are
> the dependencies missing and inform you soon.
>
> Thanks
>
> On Wed, Feb 25, 2015 at 5:17 PM, Elilmatha Sivanesan 
> wrote:
>
>> Hi Dinithi and Rajeenthini,
>>
>> I'm testing ToodleDo Connector[1] and all the tests are failed, and when
>> i test mannually I'm unable to upload the ToodleDo.zip error log [2]
>>
>> Your opinions are appreciated.
>>
>> [1] https://github.com/dinithiviranga/ToodledoESBConnector
>> [2]
>>  
>> https://docs.google.com/a/wso2.com/document/d/1YA-rg9WIbwb5bsh3LoCdfLdwVmA4A1zQ_pmAgEc0RlA/edit
>> 
>>
>> Thank you.
>> --
>> *S.Elilmatha*
>> Associate  Software Engineer,
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile 0779842221.
>>
>>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>



-- 
*S.Elilmatha*
Associate  Software Engineer,

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

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


Re: [Dev] Carbon Context API Documentation

2015-03-16 Thread Pubudu Dodangoda
If I say it specifically,I want to know how to get all the resources in a
directory in registry
I know how to do this when the resource names are known, by using this
registry.getResource("resourceName")

I want to get all the resources

Thank You and kind regards

On Mon, Mar 16, 2015 at 1:19 PM, Pubudu Dodangoda  wrote:

> Where can I find the complete documentations for carbon context API? link
> 
>
> I mean something similar to this collections
> 
>
> My truest intention is to get an idea about the methods provided in this
> API for Registry access
>
> If someone can point me in the correct direction, I'd be very much
> grateful
>
> Thank You
> --
> Pubudu Dodangoda
> BSc Engineering(Hon's) Undergraduate
> Department of Computer Science Engineering
> University of Moratuwa
> 0716053681 / 0775192994
>



-- 
Pubudu Dodangoda
BSc Engineering(Hon's) Undergraduate
Department of Computer Science Engineering
University of Moratuwa
0716053681 / 0775192994
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon Context API Documentation

2015-03-16 Thread Pubudu Dodangoda
Where can I find the complete documentations for carbon context API? link


I mean something similar to this collections


My truest intention is to get an idea about the methods provided in this
API for Registry access

If someone can point me in the correct direction, I'd be very much grateful

Thank You
-- 
Pubudu Dodangoda
BSc Engineering(Hon's) Undergraduate
Department of Computer Science Engineering
University of Moratuwa
0716053681 / 0775192994
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Googleplus ESB connector review

2015-03-16 Thread Elilmatha Sivanesan
Hi madushanka,

You have given the pull request to wso2-dev. Please give the pull request
to https://github.com/wso2/esb-connectors.

Thank you.

On Wed, Mar 4, 2015 at 4:43 PM, Madusanka Premaratne 
wrote:

> Hi Elilmatha,
> Done as requested. Please find the Jira[1] and the PR[2]
>
> [1] - https://wso2.org/jira/browse/ESBCONNECT-30
> [2] - https://github.com/wso2-dev/esb-connectors/pull/172
>
> Thanks,
>
> On Wed, Feb 25, 2015 at 10:27 AM, Madusanka Premaratne <
> madusan...@wso2.com> wrote:
>
>> Hi Vanji,
>> Both of us engaged in creating support patches. We will do this ASAP and
>> send a PR.
>> Thanks,
>>
>> On Wed, Feb 25, 2015 at 10:10 AM, Vanjikumaran Sivajothy 
>> wrote:
>>
>>> @Thaindu and Madusanka,
>>>
>>> Any idea on this ?
>>>
>>> On Fri, Feb 20, 2015 at 5:53 PM, Elilmatha Sivanesan >> > wrote:
>>>
 Hi Madusanka and Tharindu

 Please find the feedbacks regarding Google plus connector.


1. Please modify the pom to run the test cases in a single build.
2. four test cases failed because of the api change they have
removed 'fields' from the optional parameters [

Failed tests:

 testListActivityWithOneOptionalParam2(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
JSONObject["kind"] not found.



 testListActivityWithOptionalParams(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
JSONObject["kind"] not found.



 testListActivityWithTwoOptionalParam1(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
JSONObject["kind"] not found.



 testListActivityWithTwoOptionalParam2(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
JSONObject["kind"] not found.]
3.

so please do the above rework and give the pull request to
https://github.com/wso2/esb-connectors.

 Thank you.
 --
 *S.Elilmatha*
 Associate  Software Engineer,

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

 Mobile 0779842221.


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


>>>
>>>
>>> --
>>> Sivajothy Vanjikumaran
>>> *Senior Software Engineer*
>>> *Integration Technologies Team*
>>> *WSO2 Inc. http://wso2.com *
>>> *Mobile:(+94)777219209*
>>> [image: Facebook]  [image:
>>> Twitter]  [image: LinkedIn]
>>>  [image:
>>> Blogger]  [image: SlideShare]
>>> 
>>>
>>> This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may
>>> have received this communication in error, please reply to the
>>> sender indicating that fact and delete the copy you received and in
>>> addition, you should not print, copy, re-transmit, disseminate, or
>>> otherwise use the information contained in this communication.
>>> Internet communications cannot be guaranteed to be timely, secure, error
>>> or virus-free. The sender does not accept liability for any errors
>>> or omissions
>>>
>>
>>
>>
>> --
>> *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]
>> 
>>
>>
>
>
> --
> *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]
> 
>
>


-- 
*S.Elilmatha*
Associate  Software Engineer,

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

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

Re: [Dev] perform a git clone from pom.xml

2015-03-16 Thread Awanthika Senarath
thanks Rajith!

it worked

regards
Awanthika

On Mon, Mar 16, 2015 at 11:47 AM, Rajith Vitharana  wrote:

> Hi Awanthika,
>
> Try using "exec-maven-plugin". you can find more details on [1] and [2]
>
> [1] - http://mojo.codehaus.org/exec-maven-plugin/
> [2] -
> http://stackoverflow.com/questions/3491937/i-want-to-execute-shell-commands-from-mavens-pom-xml
>
> Thanks,
>
> On Mon, Mar 16, 2015 at 11:41 AM, Awanthika Senarath 
> wrote:
>
>> Hi all,
>>
>> Is it possible to achieve $subject?
>>
>> I came through [1] which will perform git clone but there i need t
>> execute mvn scm:checkout
>>
>> Is it possible to perform a git clonevia pom file with mvn clean install
>> command?
>>
>>
>>
>> [1]
>> http://stackoverflow.com/questions/6359332/how-can-i-do-a-git-pull-in-maven
>>
>>
>>
>> regards
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>



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


Re: [Dev] [Urgent] API store not showing published APIs in 1.3.3 version

2015-03-16 Thread Supun Malinga
Hi Dulitha,

Can you have a look at, "[API-everywhere] Unable to view published APIs in
API store" thread.

thanks,

On Mon, Mar 16, 2015 at 11:56 AM, Nuwan Dias  wrote:

> Hi Dulitha,
>
> These features were created some time back. And the APIM team doesn't
> actively commit to these. These were created to be used by the GREG and AS
> teams for API Everywhere.
>
> About a month back the GREG and AS teams tested these features and we
> fixed some issues and they verified these were working. From that point
> onwards we have not been working on these features and they were being used
> by the two products above. Can you please talk to SupunM/Chandana and see
> if there is any difference in what you are doing compared to what GREG and
> AS is doing?
>
> Thanks,
> NuwanD.
>
> On Mon, Mar 16, 2015 at 11:28 AM, Dulitha Wijewantha 
> wrote:
>
>> Hi Nuwan,
>> We are using the carbon API manager component 1.3.3 version [1]. When you
>> published an API from the API Publisher, the API is not visible in the API
>> Store. I checked with a latest snapshot of 1.9.0 [2] and found out that it
>> doesn't seem to have the above problem. However, the carbon apim version
>> used in product-apim is 1.2.0-SNAPSHOT [3].
>>
>> This is currently a blocker for our ongoing release.
>>
>> [1] - https://github.com/wso2/product-mdm/blob/master/pom.xml#L684
>> [2] -
>> http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/am/wso2am/1.9.0-SNAPSHOT/wso2am-1.9.0-20150316.034813-76.zip
>> [3] - https://github.com/wso2/product-apim/blob/master/pom.xml#L739
>>
>> Cheers~
>>
>> --
>> Dulitha Wijewantha (Chan)
>> Software Engineer - Mobile Development
>> WSO2 Inc
>> Lean.Enterprise.Middleware
>>  * ~Email   duli...@wso2.com *
>> *  ~Mobile +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me *
>> *  ~Twitter @dulitharw *
>>   *~Github @dulichan *
>>   *~SO @chan *
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



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


[Dev] wso2 ESB Illegal incoming connection- Possibly two send backs are happening for the same request

2015-03-16 Thread Akila Nimantha [IT/EKO/LOITS]
Hi all,

I am using wso2 esb 4.8.1 and I just noted below error in my ESB log file. Also 
I checked in the internet for a solution and I found it in jira, 
https://wso2.org/jira/browse/ESBJAVA-2234
But there is no clear answer to overcome this error.
Are there any changes to overcome this error in future??

TID: [0] [ESB] [2015-03-16 12:08:05,939]  WARN 
{org.apache.synapse.transport.passthru.SourceHandler} -  Illegal incoming 
connection state: REQUEST_DONE . Possibly two send backs are happening for the 
same request {org.apache.synapse.transport.passthru.SourceHandler}
TID: [0] [ESB] [2015-03-16 12:08:05,939]  WARN 
{org.apache.synapse.transport.passthru.SourceHandler} -  Trying to write 
response body while the handler is in an inconsistent state REQUEST_DONE 
{org.apache.synapse.transport.passthru.SourceHandler}
TID: [0] [ESB] [2015-03-16 12:08:05,941] ERROR 
{org.apache.axis2.engine.AxisEngine} -  The service cannot be found for the 
endpoint reference (EPR) /favicon.ico {org.apache.axis2.engine.AxisEngine}
org.apache.axis2.AxisFault: The service cannot be found for the endpoint 
reference (EPR) /favicon.ico
   at 
org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:251)
   at 
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:109)
   at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
   at 
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
   at 
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:168)
   at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
TID: [0] [ESB] [2015-03-16 12:08:05,942] ERROR 
{org.apache.synapse.transport.passthru.ServerWorker} -  Error processing GET 
request for : /favicon.ico {org.apache.synapse.transport.passthru.ServerWorker}
org.apache.axis2.AxisFault: The service cannot be found for the endpoint 
reference (EPR) /favicon.ico
   at 
org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:251)
   at 
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:109)
   at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
   at 
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
   at 
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:168)
   at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)

Regards,
Akila Rathnayake

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this message
immediately if this is an electronic communication.

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