Re: [Dev] String plus compiles to append

2015-12-17 Thread Manuranga Perera
My comment is about using plus out side of loops. Obviously we should use
StringBuilder when using loops. But we shouldn't uses it unnecessary
outside of loops since it affects readability.

On Thu, Dec 17, 2015 at 11:23 AM, Rasika Perera  wrote:

> Hi All,
>
> Please find comments inline.
>
> Yes, this has been the case for sometime where internally append is used.
>> Try the same with a loop.
>
> +1 have tried this. Even though compiler is optimized to put StringBuilder
> on multiple "+" concats not too *smart* to use the same StringBuilder
> instance inside a loop.
>
> Tried Test.java with a string concat inside a *loop*.
>
> *Test.java*
> class Test {
> public static void main(String[] args) {
> String content = "";
> for (int i = 0; i < 10; i++) {
> content = content + String.valueOf(i);
> }
> System.out.println(content);
> }
> }
>
> *Constant pool:*
> const #3 = class #24; //  java/lang/StringBuilder
>
> *Main Method:*
> public static void main(java.lang.String[]);
>   Code:
>0: ldc #2; //String
>2: astore_1
>3: iconst_0
>4: istore_2
>5: iload_2
>6: bipush 10
>8: if_icmpge 39
>11: new #3; //class java/lang/StringBuilder <---*creating new
> String builder each cycle*
>14: dup
>15: invokespecial #4; //Method java/lang/StringBuilder."":()V
>18: aload_1
>19: invokevirtual #5; //Method
> java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
>22: iload_2
>23: invokestatic #6; //Method
> java/lang/String.valueOf:(I)Ljava/lang/String;
>26: invokevirtual #5; //Method
> java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
>29: invokevirtual #7; //Method
> java/lang/StringBuilder.toString:()Ljava/lang/String;
>32: astore_1
>33: iinc 2, 1
>36: goto 5 <--- *Jump for the loop*
>39: getstatic #8; //Field java/lang/System.out:Ljava/io/PrintStream;
>42: aload_1
>43: invokevirtual #9; //Method
> java/io/PrintStream.println:(Ljava/lang/String;)V
>46: return
> }
>
> Thanks,
> Rasika
>
> On Wed, Dec 16, 2015 at 6:19 AM, Afkham Azeez  wrote:
>
>> Yes, this has been the case for sometime where internally append is used.
>> Try the same with a loop.
>>
>> On Tue, Dec 15, 2015 at 11:43 PM, Manuranga Perera  wrote:
>>
>>> I have compiled following class using javac 1.6.0_38
>>>
>>> class X{
>>> public String m(String a, String b, String c){
>>> return a + b + c;
>>> }
>>> }
>>>
>>>
>>> and decoupled using javap
>>>
>>>
>>> class X {
>>>   X();
>>> Code:
>>>0: aload_0
>>>1: invokespecial #1  // Method
>>> java/lang/Object."":()V
>>>4: return
>>>
>>>   public java.lang.String m(java.lang.String, java.lang.String,
>>> java.lang.String);
>>> Code:
>>>0: new   #2  // class
>>> java/lang/StringBuilder
>>>3: dup
>>>4: invokespecial #3  // Method
>>> java/lang/StringBuilder."":()V
>>>7: aload_1
>>>8: invokevirtual #4  // Method
>>> java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
>>>   11: aload_2
>>>   12: invokevirtual #4  // Method
>>> java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
>>>   15: aload_3
>>>   16: invokevirtual #4  // Method
>>> java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
>>>   19: invokevirtual #5  // Method
>>> java/lang/StringBuilder.toString:()Ljava/lang/String;
>>>   22: areturn
>>> }
>>>
>>> As you can see, there are three appends but only one StringBuilder
>>> objects. Therefor I purpose using plus instead of append in our code.
>>>
>>>
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: rasi...@wso2.com
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list

Re: [Dev] [AppFac][Docker]Best Java Docker Client Library

2015-12-17 Thread Roshan Deniyage
Hi Samith,
If we use a docker plugin, it becomes a part of build job so, need to
generate the docker file before the build starts. If we use the existing
appfactory jenkins plugin, we can generate the docker file and call the
docker commands after the build is finish inside our plugin. Docker related
steps are called when deployment is happen.

Thanks,
Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile:  +94 777636406 / +1 408 667 6254
Twitter:  *https://twitter.com/roshku *
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Thu, Dec 17, 2015 at 12:40 PM, Samith Dassanayake 
wrote:

> Hi Roshan,
>
> Even though if you use [1], you have to face the dynamic docker file issue
> right?(Correct me If I am wrong).
>
> [1] https://github.com/docker-java/docker-java
>
> Regards,
> Samith
>
> On Wed, Dec 16, 2015 at 11:40 PM, Roshan Deniyage 
> wrote:
>
>> Adding missing links ;
>>
>> ​
>> [1]
>> https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Docker+Build+and+Publish+plugin
>> [2] https://wiki.jenkins-ci.org/display/JENKINS/Docker+build+step+plugin
>>
>>
>> Hi Samith,
>>> Yes we evaluated [1] and [2] and not going to use those plugins
>>> since our docker files are going to be dynamic and should be available to
>>> jenkins job before build begins. That is also possible with number of ways,
>>> but decided to change only deployment part in appfactory-jenkins plugin to
>>> build docker based artifacts.
>>>
>>> Thanks,
>>> Roshan Deniyage
>>> Associate Technical Lead
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile:  +94 777636406 / +1 408 667 6254
>>> Twitter:  *https://twitter.com/roshku *
>>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>>
>>>
>>> On Wed, Dec 16, 2015 at 9:33 PM, Samith Dassanayake 
>>> wrote:
>>>
 Hi Roshan,

 Have you looked at [1]

 ​​
 [1]
 https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Docker+Build+and+Publish+plugin

 Regards,
 Samith

 On Wed, Dec 16, 2015 at 4:58 PM, Roshan Deniyage 
 wrote:

> Hi All,
>For App Factory build artifact feature, we are going with the stand
> alone Jenkins server for the next release as well. This is the existing
> method. The only change is instead of building user artifact and push it 
> to
> some git repository, we are going to build a docker image and push it to
> our private docker registry.
>
> For this we think of calling docker REST API inside our
> appfactory-jenkins-plugin (existing custom plugin). So, need to have a 
> java
> docker client library and I found 4 libraries as below.
>
> (1) https://github.com/docker-java/docker-java
>  [based on jersey REST library and java 7]
>
> (2) https://github.com/spotify/docker-client
>   [Simple java client, seems like a primitive library]
>
> (3) (1) https://github.com/shekhargulati/rx-docker-client
>   [Asyn style library and use java 8 features]
>
> (4) https://github.com/jclouds/jclouds-labs/tree/master/docker
>  [This is used by the jCloud library]
>
> I am going to go ahead with (1) since it gives the required
> functionalities.
>
> If anyone has used any of those libraries or any other better library,
> please give your suggestions.
>
> Thanks,
> Roshan Deniyage
> Associate Technical Lead
> WSO2, Inc: http://wso2.com
>
> Mobile:  +94 777636406 / +1 408 667 6254
> Twitter:  *https://twitter.com/roshku
> *
> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>
>
> ___
> 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
 Blog : buddycode.blogspot.com

>>>
>>>
>>
>
>
> --
> Best Regards
>
> Samith Dassanayake
> Software Engineer | Cloud TG
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +947 76207351
> Blog : buddycode.blogspot.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTPS REST Client

2015-12-17 Thread Malmee Weerasinghe
Hi Dharshana,
I tried with what you suggested. But I still get the same error.
ppaas-artifact-converter tool doesn't run on Carbon and it runs
independently. Therefore for "System.getProperty("carbon.home")" it returns
null. I tried copying this file, "wso2carbon.jks" to the resources folder.
But I get the same error.
Thank you.

On Thu, Dec 17, 2015 at 9:31 AM, Dharshana Warusavitharana <
dharsha...@wso2.com> wrote:

> Hi Malmee,
>
> The SSL issue comes with the rest client is because you are going to
> invoke HTTPS backend with out proper certificate in path.
>
> you can set keys to the system path using following
>
> String trustStore = System.getProperty("carbon.home") + File.separator + 
> "repository" + File.separator +
> "resources" + File.separator + "security" + 
> File.separator + "wso2carbon.jks";
> System.setProperty("javax.net.ssl.trustStore", trustStore);
> System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
> System.setProperty("javax.net.ssl.trustStoreType", "JKS");
>
>
> In this sample WSO2 carbon keys set as keys to the system path you can use 
> the same.
>
> Apache HTTP client is bit old client instead you can try some thing like 
> JAX-RS 2 or RestEasy client.
>
> In All these clients you need to add above code segment to export keys to 
> call secured HTTP call.
>
>
> Thank you,
>
> Dharshana.
>
>
> On Wed, Dec 16, 2015 at 8:56 PM, Isuru Haththotuwa 
> wrote:
>
>> Hi Malmee,
>>
>> If you have used java built in methods, that would mean your tool would
>> not be required to depend on an external library such as Apache HTTP client
>> as you have mentioned. This is fine for a simple use case. However, please
>> note if you need more functionality, such as support for all HTTP
>> operations, and other capabilities, etc. it would be advisable to use
>> Apache HTTP client or any other suitable existing library without
>> implementing it again by yourself.
>>
>> For the certificate issue that you are getting, its possible to override
>> the default certificate validation mechanism and plug in your own
>> implementation which can disable certificate validation (for testing
>> purposes). For HTTP Client 4, please see [1].
>>
>> [1].
>> http://stackoverflow.com/questions/2703161/how-to-ignore-ssl-certificate-errors-in-apache-httpclient-4-0
>>
>> On Wed, Dec 16, 2015 at 8:29 PM, Malmee Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> We have developed a HTTPS REST client using java in-built methods which
>>> works properly. [1] This method is configured to allow self signed
>>> certificates.
>>>
>>> When using apache http client we get a certificate error :
>>> javax.net.ssl.SSLPeerUnverifiedException: Host name '192.168.30.227'
>>> does not match the certificate subject provided by the peer (CN=localhost,
>>> O=WSO2, L=Mountain View, ST=CA, C=US).
>>>
>>> What would be a good choice? Using apache HTTP client or java in built
>>> methods. Your suggestions are highly appreciated.
>>>
>>> [1]
>>> https://github.com/nishadi/product-private-paas/blob/master/tools/migration/ppaas-artifact-converter/src/main/java/org/wso2/ppaas/tools/artifactmigration/RestClient.java
>>>
>>> --
>>> Malmee Weerasinghe
>>> WSO2 Intern
>>> mobile : (+94)* 71 7601905* |   email :   
>>> mal...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94770342233
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>



-- 
Malmee Weerasinghe
WSO2 Intern
mobile : (+94)* 71 7601905* |   email :   
mal...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] LDA-Topic-Model by Apache Spark

2015-12-17 Thread Srinath Perera
Adding dev@

What are the topic identified? Do they have real life explanation?

What happen with 3 and more topics?

--Srinath

On Wed, Dec 16, 2015 at 2:00 PM, Sinnathamby Mahesan 
wrote:

> Dear Srinath / Nirmal
>
>- This is about the program for Apache Spark LDA Modelling
>- The data file 'twittersGL.txt' is tried assuming each twitter is a
>document
>- stop words are removed
>- word frequency in each document is found
>- the prescribed numbers of  most and least frequency words are removed
>- a new vocabulary list is constructed (after removal of those words)
>- Using the frequency count in each document and the new vocabulary
>list,  the necessary data file for Apache LDA model is constructed
>- datafile is passed to LDA Model algorithm along with other parameters
>- such number of topics
>- LDA algorithm produces LDA-scores of vocab-size x number-of-topics
>entries
>- These entries (saved in a file) should be passed to a data
>visualisation application for decision making.
>
> Tried with LibreOffice Calc, for the three out of five topics -
> chart make us conclude two topics can be identified while the third is a
> kind of mixture of the other two topics.
>
> Here is a brief description of variables listed - I believe it is
> self-explanatory and in flow along the processing order.
>
>
> STOPWORDS_FILE stopwordstwitter.txt stopWords List
>
> input data twittersGL.txt through args[0]
>
> JavaSparkContext jSc
>
> lines as JavaRDD , each line delimited by a new line is
> considered a document wordListsLcRDD lines are mapped to lower-case and
> split into list of lists of words
>
> cleanListsRDD wordListsLcRDD is mapped to remove stop words, and with
> empty-lines removed (and cached as needed more than once)
>
> countMapRDD CleanListsRDD is mapped to find word frequency in each of the
> lists separately (i.e. in each document)
>
> flatList cleanListsRDD got flatten and collected as a list construct
> vocab-list
>
> initialVocabSize ( i.e. before removing most and least frequency words)
> flatList is streamed, made distinct and counted
>
> allDocsWordCount (Map) flatList is mapped to group words and to count
> them separately
>
> nTopWords, nBttmWords Variables set to 20 and 154 respectively
> newVocabSize initialVocabSize – nTopWords – nBttmWords
>
> CountMapSortedOnValues countMapRDD is sorted on values with most and
> least frequency words removed (number of words to be removed are
> prescribed) – thanks to skip(n) and limit(m) methods in Java stream
>
> VocabList (with newVocabSize) constructed using keySet of
> CountMapSortedOnValues, and sorted in alphabetical order
>
> docWordFreqRDD This is the matrix needed for Apache SparkLDA Model
> CountMapRDD is mapped to check with newVocabList and to assign values
> from the map and zero for non-existing words.
> Also, rows with no non-zero entries are removed
>
> LDATopicModel Uses the Apache Spark LDA model algorithm taking
> docWordFreqRDD, nTopics as parameters, Produces a matrix of LDA scores.
>
> LDAScores+TimeStamp text file containing LDA Scores - (newVocabSize x
> nTopics) entries with words are saved.
>
> All mapping functions and filer functions are defined with the prefix 'sm_'
> in MyFunctions.java
>
>
> All related documents are in a folder zipped and attached herewith.
>
> Thank you
> Mahesan
>
> ~~
> Sinnathamby Mahesan
>
> ~~
> ~~
>



-- 

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


Re: [Dev] String plus compiles to append

2015-12-17 Thread Afkham Azeez
+1

On Thu, Dec 17, 2015 at 1:55 PM, Manuranga Perera  wrote:

> My comment is about using plus out side of loops. Obviously we should use
> StringBuilder when using loops. But we shouldn't uses it unnecessary
> outside of loops since it affects readability.
>
> On Thu, Dec 17, 2015 at 11:23 AM, Rasika Perera  wrote:
>
>> Hi All,
>>
>> Please find comments inline.
>>
>> Yes, this has been the case for sometime where internally append is used.
>>> Try the same with a loop.
>>
>> +1 have tried this. Even though compiler is optimized to put
>> StringBuilder on multiple "+" concats not too *smart* to use the same
>> StringBuilder instance inside a loop.
>>
>> Tried Test.java with a string concat inside a *loop*.
>>
>> *Test.java*
>> class Test {
>> public static void main(String[] args) {
>> String content = "";
>> for (int i = 0; i < 10; i++) {
>> content = content + String.valueOf(i);
>> }
>> System.out.println(content);
>> }
>> }
>>
>> *Constant pool:*
>> const #3 = class #24; //  java/lang/StringBuilder
>>
>> *Main Method:*
>> public static void main(java.lang.String[]);
>>   Code:
>>0: ldc #2; //String
>>2: astore_1
>>3: iconst_0
>>4: istore_2
>>5: iload_2
>>6: bipush 10
>>8: if_icmpge 39
>>11: new #3; //class java/lang/StringBuilder <---*creating new
>> String builder each cycle*
>>14: dup
>>15: invokespecial #4; //Method java/lang/StringBuilder."":()V
>>18: aload_1
>>19: invokevirtual #5; //Method
>> java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
>>22: iload_2
>>23: invokestatic #6; //Method
>> java/lang/String.valueOf:(I)Ljava/lang/String;
>>26: invokevirtual #5; //Method
>> java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
>>29: invokevirtual #7; //Method
>> java/lang/StringBuilder.toString:()Ljava/lang/String;
>>32: astore_1
>>33: iinc 2, 1
>>36: goto 5 <--- *Jump for the loop*
>>39: getstatic #8; //Field java/lang/System.out:Ljava/io/PrintStream;
>>42: aload_1
>>43: invokevirtual #9; //Method
>> java/io/PrintStream.println:(Ljava/lang/String;)V
>>46: return
>> }
>>
>> Thanks,
>> Rasika
>>
>> On Wed, Dec 16, 2015 at 6:19 AM, Afkham Azeez  wrote:
>>
>>> Yes, this has been the case for sometime where internally append is
>>> used. Try the same with a loop.
>>>
>>> On Tue, Dec 15, 2015 at 11:43 PM, Manuranga Perera 
>>> wrote:
>>>
 I have compiled following class using javac 1.6.0_38

 class X{
 public String m(String a, String b, String c){
 return a + b + c;
 }
 }


 and decoupled using javap


 class X {
   X();
 Code:
0: aload_0
1: invokespecial #1  // Method
 java/lang/Object."":()V
4: return

   public java.lang.String m(java.lang.String, java.lang.String,
 java.lang.String);
 Code:
0: new   #2  // class
 java/lang/StringBuilder
3: dup
4: invokespecial #3  // Method
 java/lang/StringBuilder."":()V
7: aload_1
8: invokevirtual #4  // Method
 java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
   11: aload_2
   12: invokevirtual #4  // Method
 java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
   15: aload_3
   16: invokevirtual #4  // Method
 java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
   19: invokevirtual #5  // Method
 java/lang/StringBuilder.toString:()Ljava/lang/String;
   22: areturn
 }

 As you can see, there are three appends but only one StringBuilder
 objects. Therefor I purpose using plus instead of append in our code.



 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> With Regards,
>>
>> *Rasika Perera*
>> Software Engineer
>> M: +94 71 680 9060 E: rasi...@wso2.com
>> 

Re: [Dev] Please update carbon-parent version to 2

2015-12-17 Thread Afkham Azeez
Please add documentation on the new Carbon bundle plugin maven properties.

On Thu, Dec 17, 2015 at 7:13 PM, Manuri Amaya Perera 
wrote:

> Hi,
>
> Please upgrade carbon-parent version to 2[1] in product-mss and product-gw
> if it has not been done already.
> I have sent a PR with required changes for product-gw[2].
>
> [1] https://github.com/wso2/carbon-parent/blob/carbon-parent-2/pom.xml
> [2] https://github.com/wso2/product-gw/pull/26
>
> Thank you.
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



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

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] [Architecture] WSO2 Business Process Server 3.5.1 - Beta Released !

2015-12-17 Thread Firzhan Naqash
WSO2 Business Process Server 3.5.1 - Beta Released !

Date :  17th December 2015

WSO2 BPS team is pleased to announce the Beta release of WSO2 BPS 3.5.1
Beta. You can download the distribution from [1].

WSO2 Business Process Server (BPS) is an easy-to-use Open Source Business
Process Server that executes business processes written following WS-BPEL
and WS-Human Task or BPMN 2.0 standards. WS-BPEL is the defacto standard
for composing multiple synchronous and asynchronous web services into
collaborative and transactional process flows which increase the
flexibility and agility of your Service Oriented Architecture. WS-Human
Task allows people activities to be integrated with business processes.
BPMN will provide businesses with the capability of understanding their
internal business procedures in a graphical notation and will give
organizations the ability to communicate these procedures in a standard
manner. WSO2 BPS is powered by Apache ODE and Activiti available under
Apache Software License v2.0. WSO2 BPS provides a complete Web based
graphical console to deploy, manage and monitor business process and
process instances.

Fixed JIRA issues can be found on following link
 . Your feedback is most
welcome, and any issues can be reported to the project at [2].

[1]
http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.1/beta/wso2bps-3.5.1-beta.zip

[2] https://wso2.org/jira/browse/BPS

-WSO2 BPS Team-


Regards,
Firzhan


email: firz...@wso2.com
mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
blog: http://firzhanblogger.blogspot.com/
  *
*twitter: https://twitter.com/firzhan007  |
linked-in: **https://www.linkedin.com/in/firzhan
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please update carbon-parent version to 2

2015-12-17 Thread Manuri Amaya Perera
Hi,

Please upgrade carbon-parent version to 2[1] in product-mss and product-gw
if it has not been done already.
I have sent a PR with required changes for product-gw[2].

[1] https://github.com/wso2/carbon-parent/blob/carbon-parent-2/pom.xml
[2] https://github.com/wso2/product-gw/pull/26

Thank you.

-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please update carbon-parent version to 2

2015-12-17 Thread Manuri Amaya Perera
Hi Azeez,

It has already been added to C5 documentation[1]. But need to do some
changes and doc team will look into that tomorrow.

[1] https://docs.wso2.com/display/Carbon500/Using+the+Maven+Bundle+Plugin

Thank you.

On Thu, Dec 17, 2015 at 7:17 PM, Afkham Azeez  wrote:

> Please add documentation on the new Carbon bundle plugin maven properties.
>
> On Thu, Dec 17, 2015 at 7:13 PM, Manuri Amaya Perera 
> wrote:
>
>> Hi,
>>
>> Please upgrade carbon-parent version to 2[1] in product-mss and
>> product-gw if it has not been done already.
>> I have sent a PR with required changes for product-gw[2].
>>
>> [1] https://github.com/wso2/carbon-parent/blob/carbon-parent-2/pom.xml
>> [2] https://github.com/wso2/product-gw/pull/26
>>
>> Thank you.
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Is it possible to install a feature into a Carbon server from target folder?

2015-12-17 Thread Sumedha Rubasinghe
Wondering if $subject is possible without building whole feature repo?



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


Re: [Dev] [DEV][IS] Getting an Unique index or primary key violation exception.

2015-12-17 Thread Kamidu Punchihewa
Hi IS Team.

The above error occurs in the 1st token expiration time also,with on device
calling a singleton token refreshing call to IS.
This happens when EMM android agent try to acquire a new set of token on
the access token expiry using the refresh token grant.

This Issue Started after the IS version bump from 5.0.3-SNAPSHOT  to 5.0.3.

Code Snippet which initiate communication with IS is given below.








*var xMLHttpRequest = new XMLHttpRequest();var tokenEndpoint =
mdmProps.idPServer + "/oauth2/token";xMLHttpRequest.open("POST",
tokenEndpoint, false);xMLHttpRequest.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");xMLHttpRequest.setRequestHeader("Authorization",
"Basic " + clientData);var url = "grant_type=refresh_token_token="
+ tokenPair.refreshToken;if (scope) {*

*url = url + "=" + scope*



*}xMLHttpRequest.send(url);*

Thanks & Best Regards.

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


Disclaimer: 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,
retransmit, 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.

On Wed, Dec 16, 2015 at 3:15 PM, Kamidu Punchihewa 
wrote:

> Hi Johann/IS Team,
>
> As per the discussion i had offline earlier above exception occurred under
> heavy loads.
>
> The above exception occurred without any high loads in the system.
> When one devices logged in for some time, without any concurrent calls to
> IS, this exception is given to the device.
> Any idea why this happens with one device acting alone.
>
> Thanks and Regards.
>
> Kamidu Sachith Punchihewa
> *Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> Disclaimer: 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, retransmit, 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.
>
> On Wed, Dec 16, 2015 at 12:13 PM, Kamidu Punchihewa 
> wrote:
>
>> Hi IS team,
>>
>>
>> I am getting a "Unique index or primary key violation" exception when
>> trying to refresh the access token with the refresh token grant type. The
>> error log is given below.
>>
>> As per the discussion I had offline with Johann, this seems to be a known
>> issue which could occur when tested with a high load of concurrent calls.
>> But in my case it was only just 4 connections attempting to refresh tokens
>> concurrently.
>> Even though the exception is thrown, a new token pair can be generated by
>> sending another few calls.
>>
>> The issue is the exception which is visible in the log.In a production
>> environment, since this exception is thrown in the IS back-end, it would be
>> a bit odd to the user to see an exception in the EMM console.
>>
>> WDUT?
>>
>>
>> Error Log :
>>
>> [2015-11-26 11:27:42,093] ERROR
>>> {org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve}
>>> -  Access token has expired , API : /mdm-android-agent/operation/device-info
>>> [2015-11-26 11:27:42,190] ERROR
>>> {org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve}
>>> -  Access token has expired , API : /mdm-admin/notifications/NEW
>>> [2015-11-26 11:27:42,299] ERROR
>>> {org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error occurred while
>>> issuing the access token for Client ID : CJo5Izhh4aziaMV1gAKN8fovcpka, User
>>> ID null, Scope : [] and Grant Type : refresh_token
>>> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error when
>>> storing the access token for consumer key : CJo5Izhh4aziaMV1gAKN8fovcpka
>>> at
>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:245)
>>> at
>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.invalidateAndCreateNewToken(TokenMgtDAO.java:1103)
>>> at
>>> org.wso2.carbon.identity.oauth2.token.handlers.grant.RefreshGrantHandler.issue(RefreshGrantHandler.java:246)
>>> at
>>> 

Re: [Dev] [DEV][IS] Getting an Unique index or primary key violation exception.

2015-12-17 Thread Kamidu Punchihewa
Hi Johann/IS Team,

As per the discussion i had offline earlier above exception occurred under
heavy loads.

The above exception occurred without any high loads in the system.
When one devices logged in for some time, without any concurrent calls to
IS, this exception is given to the device.
Any idea why this happens with one device acting alone.

Thanks and Regards.

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


Disclaimer: 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,
retransmit, 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.

On Wed, Dec 16, 2015 at 12:13 PM, Kamidu Punchihewa 
wrote:

> Hi IS team,
>
>
> I am getting a "Unique index or primary key violation" exception when
> trying to refresh the access token with the refresh token grant type. The
> error log is given below.
>
> As per the discussion I had offline with Johann, this seems to be a known
> issue which could occur when tested with a high load of concurrent calls.
> But in my case it was only just 4 connections attempting to refresh tokens
> concurrently.
> Even though the exception is thrown, a new token pair can be generated by
> sending another few calls.
>
> The issue is the exception which is visible in the log.In a production
> environment, since this exception is thrown in the IS back-end, it would be
> a bit odd to the user to see an exception in the EMM console.
>
> WDUT?
>
>
> Error Log :
>
> [2015-11-26 11:27:42,093] ERROR
>> {org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve}
>> -  Access token has expired , API : /mdm-android-agent/operation/device-info
>> [2015-11-26 11:27:42,190] ERROR
>> {org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve}
>> -  Access token has expired , API : /mdm-admin/notifications/NEW
>> [2015-11-26 11:27:42,299] ERROR
>> {org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error occurred while
>> issuing the access token for Client ID : CJo5Izhh4aziaMV1gAKN8fovcpka, User
>> ID null, Scope : [] and Grant Type : refresh_token
>> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error when
>> storing the access token for consumer key : CJo5Izhh4aziaMV1gAKN8fovcpka
>> at
>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:245)
>> at
>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.invalidateAndCreateNewToken(TokenMgtDAO.java:1103)
>> at
>> org.wso2.carbon.identity.oauth2.token.handlers.grant.RefreshGrantHandler.issue(RefreshGrantHandler.java:246)
>> at
>> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:186)
>> at
>> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:196)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:273)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:115)
>> 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.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
>> at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
>> at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>> at
>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
>> at
>> 

Re: [Dev] [VOTE] Release WSO2 Machine Learner 1.1.0 RC1

2015-12-17 Thread Maheshakya Wijewardena
Hi all,

We are calling off the VOTE due to an issue and will start a new Vote for
Machine Learner 1.1.0 RC2.

Best regards.

On Fri, Dec 18, 2015 at 10:42 AM, Maheshakya Wijewardena <
mahesha...@wso2.com> wrote:

> Hi Devs,
>
> This is the 1st Release Candidate of WSO2 Machine Learner 1.1.0.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12589
>
> Please download, test and vote. Vote will be open for 72 hours or as
> longer as needed.
>
> *Binary distribution files:*
>
> https://github.com/wso2/product-ml/releases/download/v1.1.0-rc1/wso2ml-1.1.0.zip
>
> *P2 repository*:
> https://github.com/wso2/product-ml/releases/download/v1.1.0-rc1/p2-repo.zip
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2ml-199/
>
> *The tag to be voted upon:*
> https://github.com/wso2/product-ml/tree/v1.1.0-rc1
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you,
> Machine Learner Team
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> mahesha...@wso2.com
> +94711228855
>
>
>


-- 
Pruthuvi Maheshakya Wijewardena
mahesha...@wso2.com
+94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: [API Manager] Creating android Client sdk using swagger source code

2015-12-17 Thread Randika Navagamuwa
Hi all,
   I'm trying to come with a solution to reduce the complexity of
developing android apps. I found out that it would be better to integrate
the solution with API manager.

   - User should be able create APIs.
   - Then when he is using those APIs, Android client sdk should be
   generated automatically.

Since first part is already there in the API manager, I'm more concerned
about the second part. Android client can be generated easily using swagger
*codegen*.
According to my knowledge swagger source file is generated by API manager
after creating the API. We should be able to generate the client side code
using that *swagger.json* file. But the problem here is when I create the
client code some classes are missing.

  I think it's not working because

   - There should be more in the json to create the client side code.
   (Swagger definition is incomplete)

I just want to clarify whether I'm correct or not and is it possible to
implement that?

Thanks,
Randika

-- 
*Randika Navagamuwa*
*Intern - Software Engineering*
*Mobile : +94711853466 <%2B94711853466>*
*Twitter : twitter.com/rnavagamuwa *
*Facebook : facebook.com/rnavagamuwa *
*Linkedin : lk.linkedin.com/in/rnavagamuwa
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [ESB] Deprecated features in ESB 4.10

2015-12-17 Thread Isuru Udana
Hi Amila,

On Fri, Dec 18, 2015 at 11:12 AM, Amila Maha Arachchi 
wrote:

> Have you seen *Enqueue* and *RMSequence* mediators being used when
> implementing mediation logics?
>
We have already removed RMSequence mediator in 4.9.0.
I haven't seen anyone using Enqueue Mediator in a real use case.

I think we should deprecate Topic feature and Event Mediator as well.

Thanks.

>
> On Wed, Dec 9, 2015 at 12:11 PM, Kasun Indrasiri  wrote:
>
>> Shall we deprecate following mediators in 4.10 release.
>>
>> *- Callout mediator :*
>>  All the callout functionality is supported with 'call' mediator with
>> blocking=true. Having two similar mediators will be create a bit of a
>> confusion.
>>
>> *- DBReport/DBLookup mediator*
>> These mediators offer very limited functionality and we always recommend
>> to integrate with databases with the use of DSS (using a separate DSS or
>> using DSS features inside ESB)
>>
>> *- Bean, POJOCommand, Spring* : Rarely used mediators and no active
>> development happens on these.
>> *- Router* : Same as filter mediator, so no use of having this.
>> *- In, Out * : Rarely used and often not required with the new
>> call/respond mediator approach.
>>
>> Any comments  on these or any other features that we should deprecate
>> from 4.10 release?
>>
>> Thanks,
>> Kasun.
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] HTTPS REST Client

2015-12-17 Thread Kasun Indrasiri
Any reason to building a HTTP client from scratch? Why don't we use
existing libs such as HTTPClient or Netty?

On Fri, Dec 18, 2015 at 8:51 AM, Harsha Thirimanna  wrote:

> Just try to give absolute path first and test. Because as Dharshana
> mentioned, it should work.
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Thu, Dec 17, 2015 at 5:23 PM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Malmee,
>>
>> You have to replace the cert location with actuvel .srt file you have.
>>
>> Thank you,
>> Dharshana
>>
>> On Thu, Dec 17, 2015 at 2:32 PM, Malmee Weerasinghe 
>> wrote:
>>
>>> Hi Dharshana,
>>> I tried with what you suggested. But I still get the same error.
>>> ppaas-artifact-converter tool doesn't run on Carbon and it runs
>>> independently. Therefore for "System.getProperty("carbon.home")" it
>>> returns null. I tried copying this file, "wso2carbon.jks" to the resources
>>> folder. But I get the same error.
>>> Thank you.
>>>
>>> On Thu, Dec 17, 2015 at 9:31 AM, Dharshana Warusavitharana <
>>> dharsha...@wso2.com> wrote:
>>>
 Hi Malmee,

 The SSL issue comes with the rest client is because you are going to
 invoke HTTPS backend with out proper certificate in path.

 you can set keys to the system path using following

 String trustStore = System.getProperty("carbon.home") + File.separator + 
 "repository" + File.separator +
 "resources" + File.separator + "security" + 
 File.separator + "wso2carbon.jks";
 System.setProperty("javax.net.ssl.trustStore", trustStore);
 System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
 System.setProperty("javax.net.ssl.trustStoreType", "JKS");


 In this sample WSO2 carbon keys set as keys to the system path you can use 
 the same.

 Apache HTTP client is bit old client instead you can try some thing like 
 JAX-RS 2 or RestEasy client.

 In All these clients you need to add above code segment to export keys to 
 call secured HTTP call.


 Thank you,

 Dharshana.


 On Wed, Dec 16, 2015 at 8:56 PM, Isuru Haththotuwa 
 wrote:

> Hi Malmee,
>
> If you have used java built in methods, that would mean your tool
> would not be required to depend on an external library such as Apache HTTP
> client as you have mentioned. This is fine for a simple use case. However,
> please note if you need more functionality, such as support for all HTTP
> operations, and other capabilities, etc. it would be advisable to use
> Apache HTTP client or any other suitable existing library without
> implementing it again by yourself.
>
> For the certificate issue that you are getting, its possible to
> override the default certificate validation mechanism and plug in your own
> implementation which can disable certificate validation (for testing
> purposes). For HTTP Client 4, please see [1].
>
> [1].
> http://stackoverflow.com/questions/2703161/how-to-ignore-ssl-certificate-errors-in-apache-httpclient-4-0
>
> On Wed, Dec 16, 2015 at 8:29 PM, Malmee Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> We have developed a HTTPS REST client using java in-built methods
>> which works properly. [1] This method is configured to allow self signed
>> certificates.
>>
>> When using apache http client we get a certificate error :
>> javax.net.ssl.SSLPeerUnverifiedException: Host name '192.168.30.227'
>> does not match the certificate subject provided by the peer 
>> (CN=localhost,
>> O=WSO2, L=Mountain View, ST=CA, C=US).
>>
>> What would be a good choice? Using apache HTTP client or java in
>> built methods. Your suggestions are highly appreciated.
>>
>> [1]
>> https://github.com/nishadi/product-private-paas/blob/master/tools/migration/ppaas-artifact-converter/src/main/java/org/wso2/ppaas/tools/artifactmigration/RestClient.java
>>
>> --
>> Malmee Weerasinghe
>> WSO2 Intern
>> mobile : (+94)* 71 7601905* |   email :   
>> mal...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>

[Dev] [VOTE] Release WSO2 Identity Server 5.1.0 RC1

2015-12-17 Thread Hasintha Indrajee
Hi Devs,

This is the first release candidate of WSO2 Identity Server 5.1.0.

This release fixes the following issues:
https://wso2.org/jira/issues/?filter=12586

Please download, test and vote.

Source & binary distribution files:
https://github.com/wso2/product-is/releases/tag/v5.1.0-rc1

Maven staging repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2is-203/

The tag to be voted upon:
https://github.com/wso2/product-is/tree/v5.1.0-rc1


[ ]  Stable - go ahead and release
[ ]  Broken - do not release (explain why)

Thanks and Regards,
WSO2 Identity Server Team.

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


[Dev] NPE when deploying API Store on IoT Server

2015-12-17 Thread Sumedha Rubasinghe
[2015-12-18 13:01:34,068]  INFO
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api-store].File[/Volumes/data/projects/wso2/iot-server/src/product-iot-server/modules/distribution/target/wso2iot-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store]
[2015-12-18 13:01:34,095] ERROR
{org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
java.lang.NullPointerException
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.jaggeryjs.scriptengine.exceptions.ScriptException:
java.lang.NullPointerException
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.executeScripts(TomcatJaggeryWebappsDeployer.java:501)
at
org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.access$500(TomcatJaggeryWebappsDeployer.java:64)
at
org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:316)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:290)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:212)
at
org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:213)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:247)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:173)
at
org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:116)
at
org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:224)
at
org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:114)
at
org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.synapse.Axis2SynapseController.deployMediatorExtensions(Axis2SynapseController.java:743)
at
org.apache.synapse.Axis2SynapseController.createSynapseEnvironment(Axis2SynapseController.java:388)
at org.apache.synapse.ServerManager.start(ServerManager.java:181)
at
org.wso2.carbon.mediation.initializer.ServiceBusInitializer.initESB(ServiceBusInitializer.java:441)
at
org.wso2.carbon.mediation.initializer.ServiceBusInitializer.activate(ServiceBusInitializer.java:190)
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:345)
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

Re: [Dev] [dev] DS test fixes after UI changes.

2015-12-17 Thread Ayesha Dissanayaka
Created ui-test-fixes branch in carbon-dashboards as well.

[2] https://github.com/wso2/carbon-dashboards/tree/ui-test-fixes

Thanks!
-Ayesha

On Fri, Dec 18, 2015 at 10:41 AM, Ayesha Dissanayaka 
wrote:

> Hi all,
>
> I have created new branch *ui-test-fixes* in product-ds repo in-order to
> perform test fixes. All the PRs related to these test fixes, please send
> them to this branch. As discussed once all the test related changes are
> done, we'll merge this branch to the master.
>
> [1] https://github.com/wso2/product-ds/tree/ui-test-fixes
>
> Thanks!
> -Ayesha
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> 
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com

20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS][DAS] Sample for DashboardServer - How to get back-end url, username, password for DAS to invoke DAS rest API from jaggery file

2015-12-17 Thread Supun Sethunga
Hi Rajeenthini,

Instead of the DAS REST API, you can use the "Analytics javascript API"
[1]. This should eliminate the requirement of needing user-credentials. (or
doesn't need to send an Authorization header)

[1] https://docs.wso2.com/display/DAS300/Analytics+JavaScript+(JS)+API

Regards,
Supun

On Fri, Dec 18, 2015 at 10:41 AM, Rajeenthini Satkunam  wrote:

> Hi all,
>
> Currently I am working on creating sample for dashboard server with DAS
> integration.I need to invoke DAS rest API from Jaggery file(sample.jag) to
> get some data.As per documentation[1] of DAS rest API we need to send
> authorization header along with request to fetch data from DAS. So for
> workaround I have hard-coded the username password values to variable and
> concatenate them as username + ":" + password and encoded them then send as
> a authorization header.Here I need to get server username and
> password(credentials).IMHO it is not good practice that hard-coding
> credentials of server.
> I have shared my Jaggery code below
>
> try {
> var username = "admin";//hard-coded value of username
> var password = "admin";//hard-coded value of password
> var tableName = request.getParameter("tableName");
> var query = request.getParameter("query");
> var url = "https://localhost:9465/analytics/search;;
> var encoderJavaPkg = Packages.javax.xml.bind.DatatypeConverter;
> var bytes = [];
> var encodeString = username + ":" + password;
> for (var i = 0; i < encodeString.length; ++i) {
> bytes.push(encodeString.charCodeAt(i));
> }
> var authHeader = "Basic " + encoderJavaPkg.printBase64Binary(bytes);
> var result = post(url, stringify({
> "tableName": tableName,
> "start": 0,
> "count": 100,
> "query": query
> }), {"Authorization": authHeader, "Content-Type": "application/json"}, 
> "application/json");
> print(result.data);
> } catch (e) {
> log.info(e);
> }
>
> [1] - 
> https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API
>
> As for now to start both server (DAS and DS) I have changed offset value for 
> DAS as "2" in carbon.xml.I can successfully start both server 
> simultaneously.It will be very useful if I can get the back-end URL and 
> server credentials of DAS and get rid of hard-coding those values.Can anyone 
> please help me and your suggestions mostly appreciate?
>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] Can we suppress DAS message for schedule task execution?

2015-12-17 Thread Sumedha Rubasinghe
It can fill up the logs quite easily when there are lot of scheduled
scripts running @ low intervals.

As an alternative,
Make it a DEBUG & have an UI option to see when was the script last ran.


eg:

[2015-12-18 13:05:34,067]  INFO
{org.wso2.carbon.device.mgt.iot.controlqueue.mqtt.MqttSubscriber} -
 Subscribed with client id: f9560:virtual_firealarm
[2015-12-18 13:05:34,067]  INFO
{org.wso2.carbon.device.mgt.iot.controlqueue.mqtt.MqttSubscriber} -
 Subscribed to topic: WSO2IoTServer/+/virtual_firealarm/+/publisher
[2015-12-18 13:06:00,002]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Accelerometer_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,002]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Battery_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,003]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: GPS_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,004]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Gravity_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,004]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Gyroscope_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,005]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Light_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,006]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Magnetic_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,006]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Pressure_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,007]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Proximity_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,008]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Rotation_Sensor_Script for tenant id: -1234
[2015-12-18 13:06:00,008]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Temperature_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,001]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Accelerometer_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,001]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Battery_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,002]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: GPS_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,002]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Gravity_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,003]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Gyroscope_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,004]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Light_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,004]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Magnetic_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,004]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Pressure_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,005]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Proximity_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,005]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Rotation_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:00,006]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: Temperature_Sensor_Script for tenant id: -1234
[2015-12-18 13:07:28,405] ERROR
{org.eclipse.paho.client.mqttv3.internal.ClientState} -  b942b:raspberrypi:
Timed out as no activity, keepAlive=60,000
lastOutboundActivity=1,450,424,128,407 lastInboundActivity=1,450,424,068,623
[2015-12-18 13:07:28,406]  WARN
{org.wso2.carbon.device.mgt.iot.controlqueue.mqtt.MqttSubscriber} -  Lost
Connection for client: b942b:raspberrypi to tcp://204.232.188.214:1883._This
was due to - Timed out waiting for a response from the server (Sanitized)
[2015-12-18 13:07:29,273]  INFO
{org.wso2.carbon.device.mgt.iot.controlqueue.mqtt.MqttSubscriber} -
 Subscribed with client id: b942b:raspberrypi
[2015-12-18 13:07:29,273]  INFO
{org.wso2.carbon.device.mgt.iot.controlqueue.mqtt.MqttSubscriber} -
 Subscribed to topic: WSO2IoTServer/+/raspberrypi/+/publisher
[2015-12-18 13:08:00,001]  INFO

Re: [Dev] [Architecture] [ESB] Deprecated features in ESB 4.10

2015-12-17 Thread Prabath Abeysekera
I agree with Cyril.

In addition to what's already been mentioned, I don't think it's a good
idea to make mediation threads blocked for database calls, etc via
DBLookup/DBReport for longer periods of time, as most of the queries that
are usually being used in pretty much any practical enterprise integration
scenario would be time-consuming, particularly as respective data-stores
get occupied of large volumes of data, over time. ESB, as quite being used
as a backbone of any system that connects multiple disparate systems
together via mediation, etc, letting its core blocked for such an
environment isn't quite good, IMO. Instead, I believe, a better option
would be to delegate the same responsibility to the data layer, which can
then be scaled up and tuned to deal with similar instances.

Cheers,
Prabath

On Wed, Dec 16, 2015 at 12:05 PM, Cyril Rognon 
wrote:

> Hi
>
> DB mediator can be handy as you said but it is a bad  practice to query
> the DB right from the Esb. It is against the low coupling principles that
> makes integration  layer agile and   thin and scalable etc.
>
> DSS is setup in two  minutes and can fulfill your needs   out of the box.
>
> Maybe we should provide a migration tool to turn  DBMediator usage into
> Daraservices operation  call.  One could even  generate the dbs Dataservice
> definition from the DBMediator.
>
> +1 for deprecating these  mediators.  Setup some tool or complete
> documentation to migrate existing usage.
>
> Thanks,
> Cyril
> Le 9 déc. 2015 13:55, "Malaka Silva"  a écrit :
>
>> In my experience using ​DB mediator we can cover some of the use cases
>> using ESB out of the box, which I find very handy.
>>
>> Also use case of integrating with stored procs can easily covered with
>> this.
>>
>> However there are limits like batch update or getting multiple rows.
>>
>> ​I guess we can argue both ways. IMO we should keep these mediators since
>> it'll become handy for some use cases :)
>>
>> On Wed, Dec 9, 2015 at 4:58 PM, Kasun Indrasiri  wrote:
>>
>>>
>>>
>>> On Wed, Dec 9, 2015 at 3:32 PM, Malaka Silva  wrote:
>>>
 +1 except  DBReport/DBLookup mediators

 DBReport and DBLookup only offer a very limited set of capabilities.
>>> IMO, for any real integration scenario, we can't use them.  :).
>>>
 On Wed, Dec 9, 2015 at 2:00 PM, Yumani Ranaweera 
 wrote:

> Is it possible to provide sufficient documentation to help the
> customers who would be migrating in future.
>
> Thanks,
> Yumani
>
>
> On Wed, Dec 9, 2015 at 1:45 PM, Chanaka Fernando 
> wrote:
>
>> *- Callout mediator :*
>>  All the callout functionality is supported with 'call' mediator with
>> blocking=true. Having two similar mediators will be create a bit of a
>> confusion.
>>
>> It will make a lot of confusion when we have more than one mediators
>> to do the same thing. Therefore, better to deprecate this mediator.
>>
>> *- DBReport/DBLookup mediator*
>> These mediators offer very limited functionality and we always
>> recommend to integrate with databases with the use of DSS (using a 
>> separate
>> DSS or using DSS features inside ESB)
>>
>> Even though this mediator has been used by some customers, they are
>> using that for very limited functionality and we always suggest them to 
>> use
>> DSS as Kasun mentioned. If users really want to connect to a database, 
>> they
>> can easily write a simple class mediator.
>>
>> *- Bean, POJOCommand, Spring* : Rarely used mediators and no active
>> development happens on these.
>> *- Router* : Same as filter mediator, so no use of having this.
>> *- In, Out * : Rarely used and often not required with the new
>> call/respond mediator approach.
>>
>> +1 for deprecating these mediators.
>>
>> With the new DAS integration, we can deprecate BAM mediator since we
>> have the PublishEvent mediator.
>>
>> On Wed, Dec 9, 2015 at 6:41 AM, Kasun Indrasiri 
>> wrote:
>>
>>> Shall we deprecate following mediators in 4.10 release.
>>>
>>> *- Callout mediator :*
>>>  All the callout functionality is supported with 'call' mediator
>>> with blocking=true. Having two similar mediators will be create a bit 
>>> of a
>>> confusion.
>>>
>>> *- DBReport/DBLookup mediator*
>>> These mediators offer very limited functionality and we always
>>> recommend to integrate with databases with the use of DSS (using a 
>>> separate
>>> DSS or using DSS features inside ESB)
>>>
>>> *- Bean, POJOCommand, Spring* : Rarely used mediators and no active
>>> development happens on these.
>>> *- Router* : Same as filter mediator, so no use of having this.
>>> *- In, Out * : Rarely used and often not required 

Re: [Dev] [Architecture] [ESB] Deprecated features in ESB 4.10

2015-12-17 Thread Amila Maha Arachchi
Have you seen *Enqueue* and *RMSequence* mediators being used when
implementing mediation logics?

On Wed, Dec 9, 2015 at 12:11 PM, Kasun Indrasiri  wrote:

> Shall we deprecate following mediators in 4.10 release.
>
> *- Callout mediator :*
>  All the callout functionality is supported with 'call' mediator with
> blocking=true. Having two similar mediators will be create a bit of a
> confusion.
>
> *- DBReport/DBLookup mediator*
> These mediators offer very limited functionality and we always recommend
> to integrate with databases with the use of DSS (using a separate DSS or
> using DSS features inside ESB)
>
> *- Bean, POJOCommand, Spring* : Rarely used mediators and no active
> development happens on these.
> *- Router* : Same as filter mediator, so no use of having this.
> *- In, Out * : Rarely used and often not required with the new
> call/respond mediator approach.
>
> Any comments  on these or any other features that we should deprecate from
> 4.10 release?
>
> Thanks,
> Kasun.
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

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


[Dev] UUF/Jaggery - unformatted error

2015-12-17 Thread Sumedha Rubasinghe
Sajith,
What is the reason for following exception to be printed in an unformatted
manner?

>

[2015-12-18 13:01:35,127] ERROR {JAGGERY.config.app:js} -
 org.mozilla.javascript.WrappedException: Wrapped
java.lang.ArrayIndexOutOfBoundsException: 1
(/publisher/modules/data/driver.js#40)_ at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)_ at
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)_ at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)_ at
org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)_ at
org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)_ at
org.jaggeryjs.rhino.publisher.modules.data.c4._c_anonymous_4(/publisher/modules/data/driver.js:40)_
at
org.jaggeryjs.rhino.publisher.modules.data.c4.call(/publisher/modules/data/driver.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)_ at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_10(/publisher/modules/data/model.manager.js:104)_
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)_ at
org.jaggeryjs.rhino..scripts.c0._c_anonymous_17(/scripts/server.js:266)_
at
org.jaggeryjs.rhino..scripts.c0.call(/scripts/server.js)_ at
org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)_ at
org.jaggeryjs.rhino..scripts.c0._c_anonymous_16(/scripts/server.js:246)_
at
org.jaggeryjs.rhino..scripts.c0.call(/scripts/server.js)_ at
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)_ at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_9(/publisher/modules/data/model.manager.js:103)_
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)_ at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_17(/publisher/modules/data/model.manager.js:151)_
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)_ at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_5(/publisher/modules/data/model.manager.js:76)_
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)_ at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_4(/publisher/modules/data/model.manager.js:42)_
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)_ at
org.jaggeryjs.rhino.publisher.modules.c8._c_anonymous_13(/publisher/modules/bundler.js:168)_
at
org.jaggeryjs.rhino.publisher.modules.c8.call(/publisher/modules/bundler.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)_ at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_3(/publisher/modules/data/model.manager.js:40)_
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)_ at
org.jaggeryjs.rhino.publisher.modules.data.c1._c_ModelManager_2(/publisher/modules/data/model.manager.js:24)_
at
org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)_
at
org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)_ at
org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)_ at
org.jaggeryjs.rhino.publisher.modules.data.c0._c_anonymous_3(/publisher/modules/data/storage.js:74)_
at
org.jaggeryjs.rhino.publisher.modules.data.c0.call(/publisher/modules/data/storage.js)_
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)_ at
org.jaggeryjs.rhino.publisher.modules.data.c0._c_StorageManager_2(/publisher/modules/data/storage.js:54)_
at
org.jaggeryjs.rhino.publisher.modules.data.c0.call(/publisher/modules/data/storage.js)_
at
org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)_ at
org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)_ at
org.jaggeryjs.rhino.publisher.modules.c7._c_Deployer_2(/publisher/modules/asset.deployment.js:50)_
at
org.jaggeryjs.rhino.publisher.modules.c7.call(/publisher/modules/asset.deployment.js)_
at
org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)_ at
org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)_ at
org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_3(/publisher/modules/publisher.js:76)_
at
org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)_
at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)_ at
org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)_ at

[Dev] jtds driver for MSSQL

2015-12-17 Thread Sashika Wijesinghe
Hi All,

May I know whether we are supporting jtds driver for MSSQL? Is it
recommended to use jtds driver?

Thanks,
-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jtds driver for MSSQL

2015-12-17 Thread Prabath Abeysekera
Yeah, things should work OOTB with JTDS driver too. If you come across any
issue while testing with the same, please do raise JIRAs as appropriate.

Cheers,
Prabath

On Thu, Dec 17, 2015 at 5:36 PM, Sashika Wijesinghe 
wrote:

> Hi All,
>
> May I know whether we are supporting jtds driver for MSSQL? Is it
> recommended to use jtds driver?
>
> Thanks,
> --
>
> *Sashika WijesingheSoftware Engineer - QA Team*
> Mobile : +94 (0) 774537487
> sash...@wso2.com
>



-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jtds driver for MSSQL

2015-12-17 Thread Sashika Wijesinghe
Thanks Prabath.

On Thu, Dec 17, 2015 at 5:52 PM, Prabath Abeysekera 
wrote:

> Yeah, things should work OOTB with JTDS driver too. If you come across any
> issue while testing with the same, please do raise JIRAs as appropriate.
>
> Cheers,
> Prabath
>
> On Thu, Dec 17, 2015 at 5:36 PM, Sashika Wijesinghe 
> wrote:
>
>> Hi All,
>>
>> May I know whether we are supporting jtds driver for MSSQL? Is it
>> recommended to use jtds driver?
>>
>> Thanks,
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 

*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
sash...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jtds driver for MSSQL

2015-12-17 Thread Prabath Abeysekera
No prob!

On Thu, Dec 17, 2015 at 5:56 PM, Sashika Wijesinghe 
wrote:

> Thanks Prabath.
>
> On Thu, Dec 17, 2015 at 5:52 PM, Prabath Abeysekera 
> wrote:
>
>> Yeah, things should work OOTB with JTDS driver too. If you come across
>> any issue while testing with the same, please do raise JIRAs as
>> appropriate.
>>
>> Cheers,
>> Prabath
>>
>> On Thu, Dec 17, 2015 at 5:36 PM, Sashika Wijesinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> May I know whether we are supporting jtds driver for MSSQL? Is it
>>> recommended to use jtds driver?
>>>
>>> Thanks,
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>
>>
>>
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>
>
> --
>
> *Sashika WijesingheSoftware Engineer - QA Team*
> Mobile : +94 (0) 774537487
> sash...@wso2.com
>



-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTPS REST Client

2015-12-17 Thread Harsha Thirimanna
Just try to give absolute path first and test. Because as Dharshana
mentioned, it should work.


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Thu, Dec 17, 2015 at 5:23 PM, Dharshana Warusavitharana <
dharsha...@wso2.com> wrote:

> Hi Malmee,
>
> You have to replace the cert location with actuvel .srt file you have.
>
> Thank you,
> Dharshana
>
> On Thu, Dec 17, 2015 at 2:32 PM, Malmee Weerasinghe 
> wrote:
>
>> Hi Dharshana,
>> I tried with what you suggested. But I still get the same error.
>> ppaas-artifact-converter tool doesn't run on Carbon and it runs
>> independently. Therefore for "System.getProperty("carbon.home")" it
>> returns null. I tried copying this file, "wso2carbon.jks" to the resources
>> folder. But I get the same error.
>> Thank you.
>>
>> On Thu, Dec 17, 2015 at 9:31 AM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Hi Malmee,
>>>
>>> The SSL issue comes with the rest client is because you are going to
>>> invoke HTTPS backend with out proper certificate in path.
>>>
>>> you can set keys to the system path using following
>>>
>>> String trustStore = System.getProperty("carbon.home") + File.separator + 
>>> "repository" + File.separator +
>>> "resources" + File.separator + "security" + 
>>> File.separator + "wso2carbon.jks";
>>> System.setProperty("javax.net.ssl.trustStore", trustStore);
>>> System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
>>> System.setProperty("javax.net.ssl.trustStoreType", "JKS");
>>>
>>>
>>> In this sample WSO2 carbon keys set as keys to the system path you can use 
>>> the same.
>>>
>>> Apache HTTP client is bit old client instead you can try some thing like 
>>> JAX-RS 2 or RestEasy client.
>>>
>>> In All these clients you need to add above code segment to export keys to 
>>> call secured HTTP call.
>>>
>>>
>>> Thank you,
>>>
>>> Dharshana.
>>>
>>>
>>> On Wed, Dec 16, 2015 at 8:56 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 Hi Malmee,

 If you have used java built in methods, that would mean your tool would
 not be required to depend on an external library such as Apache HTTP client
 as you have mentioned. This is fine for a simple use case. However, please
 note if you need more functionality, such as support for all HTTP
 operations, and other capabilities, etc. it would be advisable to use
 Apache HTTP client or any other suitable existing library without
 implementing it again by yourself.

 For the certificate issue that you are getting, its possible to
 override the default certificate validation mechanism and plug in your own
 implementation which can disable certificate validation (for testing
 purposes). For HTTP Client 4, please see [1].

 [1].
 http://stackoverflow.com/questions/2703161/how-to-ignore-ssl-certificate-errors-in-apache-httpclient-4-0

 On Wed, Dec 16, 2015 at 8:29 PM, Malmee Weerasinghe 
 wrote:

> Hi All,
>
> We have developed a HTTPS REST client using java in-built methods
> which works properly. [1] This method is configured to allow self signed
> certificates.
>
> When using apache http client we get a certificate error :
> javax.net.ssl.SSLPeerUnverifiedException: Host name '192.168.30.227'
> does not match the certificate subject provided by the peer (CN=localhost,
> O=WSO2, L=Mountain View, ST=CA, C=US).
>
> What would be a good choice? Using apache HTTP client or java in built
> methods. Your suggestions are highly appreciated.
>
> [1]
> https://github.com/nishadi/product-private-paas/blob/master/tools/migration/ppaas-artifact-converter/src/main/java/org/wso2/ppaas/tools/artifactmigration/RestClient.java
>
> --
> Malmee Weerasinghe
> WSO2 Intern
> mobile : (+94)* 71 7601905* |   email :   
> mal...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



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


>>>
>>>
>>> --
>>>
>>> Dharshana Warusavitharana
>>> Senior Software Engineer , Test Automation
>>> WSO2 Inc. http://wso2.com
>>> email : dharsha...@wso2.com 
>>> 

Re: [Dev] HTTPS REST Client

2015-12-17 Thread Dharshana Warusavitharana
Hi Malmee,

You have to replace the cert location with actuvel .srt file you have.

Thank you,
Dharshana

On Thu, Dec 17, 2015 at 2:32 PM, Malmee Weerasinghe  wrote:

> Hi Dharshana,
> I tried with what you suggested. But I still get the same error.
> ppaas-artifact-converter tool doesn't run on Carbon and it runs
> independently. Therefore for "System.getProperty("carbon.home")" it
> returns null. I tried copying this file, "wso2carbon.jks" to the resources
> folder. But I get the same error.
> Thank you.
>
> On Thu, Dec 17, 2015 at 9:31 AM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Malmee,
>>
>> The SSL issue comes with the rest client is because you are going to
>> invoke HTTPS backend with out proper certificate in path.
>>
>> you can set keys to the system path using following
>>
>> String trustStore = System.getProperty("carbon.home") + File.separator + 
>> "repository" + File.separator +
>> "resources" + File.separator + "security" + 
>> File.separator + "wso2carbon.jks";
>> System.setProperty("javax.net.ssl.trustStore", trustStore);
>> System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
>> System.setProperty("javax.net.ssl.trustStoreType", "JKS");
>>
>>
>> In this sample WSO2 carbon keys set as keys to the system path you can use 
>> the same.
>>
>> Apache HTTP client is bit old client instead you can try some thing like 
>> JAX-RS 2 or RestEasy client.
>>
>> In All these clients you need to add above code segment to export keys to 
>> call secured HTTP call.
>>
>>
>> Thank you,
>>
>> Dharshana.
>>
>>
>> On Wed, Dec 16, 2015 at 8:56 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi Malmee,
>>>
>>> If you have used java built in methods, that would mean your tool would
>>> not be required to depend on an external library such as Apache HTTP client
>>> as you have mentioned. This is fine for a simple use case. However, please
>>> note if you need more functionality, such as support for all HTTP
>>> operations, and other capabilities, etc. it would be advisable to use
>>> Apache HTTP client or any other suitable existing library without
>>> implementing it again by yourself.
>>>
>>> For the certificate issue that you are getting, its possible to override
>>> the default certificate validation mechanism and plug in your own
>>> implementation which can disable certificate validation (for testing
>>> purposes). For HTTP Client 4, please see [1].
>>>
>>> [1].
>>> http://stackoverflow.com/questions/2703161/how-to-ignore-ssl-certificate-errors-in-apache-httpclient-4-0
>>>
>>> On Wed, Dec 16, 2015 at 8:29 PM, Malmee Weerasinghe 
>>> wrote:
>>>
 Hi All,

 We have developed a HTTPS REST client using java in-built methods which
 works properly. [1] This method is configured to allow self signed
 certificates.

 When using apache http client we get a certificate error :
 javax.net.ssl.SSLPeerUnverifiedException: Host name '192.168.30.227'
 does not match the certificate subject provided by the peer (CN=localhost,
 O=WSO2, L=Mountain View, ST=CA, C=US).

 What would be a good choice? Using apache HTTP client or java in built
 methods. Your suggestions are highly appreciated.

 [1]
 https://github.com/nishadi/product-private-paas/blob/master/tools/migration/ppaas-artifact-converter/src/main/java/org/wso2/ppaas/tools/artifactmigration/RestClient.java

 --
 Malmee Weerasinghe
 WSO2 Intern
 mobile : (+94)* 71 7601905* |   email :   
 mal...@wso2.com

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


>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Dharshana Warusavitharana
>> Senior Software Engineer , Test Automation
>> WSO2 Inc. http://wso2.com
>> email : dharsha...@wso2.com 
>> Tel  : +94 11 214 5345
>> Fax :+94 11 2145300
>> cell : +94770342233
>> blog : http://dharshanaw.blogspot.com
>>
>> lean . enterprise . middleware
>>
>
>
>
> --
> Malmee Weerasinghe
> WSO2 Intern
> mobile : (+94)* 71 7601905* |   email :   
> mal...@wso2.com
>



-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94770342233
blog : http://dharshanaw.blogspot.com

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


[Dev] [dev] DS test fixes after UI changes.

2015-12-17 Thread Ayesha Dissanayaka
Hi all,

I have created new branch *ui-test-fixes* in product-ds repo in-order to
perform test fixes. All the PRs related to these test fixes, please send
them to this branch. As discussed once all the test related changes are
done, we'll merge this branch to the master.

[1] https://github.com/wso2/product-ds/tree/ui-test-fixes

Thanks!
-Ayesha
-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com

20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Machine Learner 1.1.0 RC1

2015-12-17 Thread Maheshakya Wijewardena
Hi Devs,

This is the 1st Release Candidate of WSO2 Machine Learner 1.1.0.

This release fixes the following issues:
https://wso2.org/jira/issues/?filter=12589

Please download, test and vote. Vote will be open for 72 hours or as longer
as needed.

*Binary distribution files:*
https://github.com/wso2/product-ml/releases/download/v1.1.0-rc1/wso2ml-1.1.0.zip

*P2 repository*:
https://github.com/wso2/product-ml/releases/download/v1.1.0-rc1/p2-repo.zip

*Maven staging repository:*
http://maven.wso2.org/nexus/content/repositories/orgwso2ml-199/

*The tag to be voted upon:*
https://github.com/wso2/product-ml/tree/v1.1.0-rc1


[ ] Broken - do not release (explain why)
[ ] Stable - go ahead and release

Thank you,
Machine Learner Team


-- 
Pruthuvi Maheshakya Wijewardena
mahesha...@wso2.com
+94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DS][DAS] Sample for DashboardServer - How to get back-end url, username, password for DAS to invoke DAS rest API from jaggery file

2015-12-17 Thread Rajeenthini Satkunam
Hi all,

Currently I am working on creating sample for dashboard server with DAS
integration.I need to invoke DAS rest API from Jaggery file(sample.jag) to
get some data.As per documentation[1] of DAS rest API we need to send
authorization header along with request to fetch data from DAS. So for
workaround I have hard-coded the username password values to variable and
concatenate them as username + ":" + password and encoded them then send as
a authorization header.Here I need to get server username and
password(credentials).IMHO it is not good practice that hard-coding
credentials of server.
I have shared my Jaggery code below

try {
var username = "admin";//hard-coded value of username
var password = "admin";//hard-coded value of password
var tableName = request.getParameter("tableName");
var query = request.getParameter("query");
var url = "https://localhost:9465/analytics/search;;
var encoderJavaPkg = Packages.javax.xml.bind.DatatypeConverter;
var bytes = [];
var encodeString = username + ":" + password;
for (var i = 0; i < encodeString.length; ++i) {
bytes.push(encodeString.charCodeAt(i));
}
var authHeader = "Basic " + encoderJavaPkg.printBase64Binary(bytes);
var result = post(url, stringify({
"tableName": tableName,
"start": 0,
"count": 100,
"query": query
}), {"Authorization": authHeader, "Content-Type":
"application/json"}, "application/json");
print(result.data);
} catch (e) {
log.info(e);
}

[1] - 
https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API

As for now to start both server (DAS and DS) I have changed offset
value for DAS as "2" in carbon.xml.I can successfully start both
server simultaneously.It will be very useful if I can get the back-end
URL and server credentials of DAS and get rid of hard-coding those
values.Can anyone please help me and your suggestions mostly
appreciate?




-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


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

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