Re: [Dev] Wat is the way to handle DB deadlock issues

2014-11-10 Thread Akalanka Pagoda Arachchi
Hi Amila,

Agree with Senaka. Also note that as Sumedha's query suggests this might
lock few more tables other than 'UM_ROLE_PERMISSION' table. So try to beak
down this into several queries and pass the parameter via java. This is not
efficient but might help you to debug the issue.

Thanks,
Akalanka

On Mon, Nov 10, 2014 at 8:02 PM, Senaka Fernando  wrote:

> Hi Amila,
>
> From what I understand, neither should you retry nor let the DB Util
> handle this. You should generally avoid running into this situation,
> because if something is deadlocked, ideally the DB Driver itself has
> already tried to restructure the calls but failed to do so in a timely
> manner.
>
> To resolve this, you need to find the two operations that get in the way
> of each other. You already have one, which is the call to authorizeRole()
> in AppFactoryResourceManagementService class. But, what we need to find is
> the other one that actually succeeds. In the Registry Kernel, we have some
> debugging logic in place to identify such deadlock situations, but I'm not
> sure the same exists in UM Kernel. So, may be you can first try to isolate
> any other code that updates UM_ROLE_PERMISSION, and try to log them to the
> console. Then if you can reproduce the same issue once again, you can
> perhaps track down the most likely victim.
>
> I'm also guessing that your call to authorizeRole() in
> AppFactoryResourceManagementService, seems to be invoked whenever somebody
> requests for the registry. Now, that does not quite sound right. Ideally
> you'd authorize somebody before accessing the registry, but just once. Can
> you check whether that can be fixed as well? If this is the case, may be
> the fix is much more straightforward.
>
> Thanks,
> Senaka.
>
> On Mon, Nov 10, 2014 at 2:05 PM, Amila Maha Arachchi 
> wrote:
>
>> AFAIR, when this issue occurred, it was not under a load. This does not
>> occur on all execution. This is an intermittent issue. But I am thinking of
>> a way to code for failures and handle the situation.
>>
>> On Mon, Nov 10, 2014 at 5:03 PM, Sumedha Rubasinghe 
>> wrote:
>>
>>> How frequent is this? does this come with a load or even on single
>>> execution?
>>> SQL in concern here is following?
>>>
>>> DELETE FROM UM_ROLE_PERMISSION WHERE UM_ROLE_NAME=? AND UM_PERMISSION_ID
>>> = (SELECT UM_ID FROM UM_PERMISSION WHERE UM_RESOURCE_ID = ? AND UM_ACTION =
>>> ? AND UM_TENANT_ID=?) AND UM_TENANT_ID=? AND UM_DOMAIN_ID=(SELECT
>>> UM_DOMAIN_ID FROM UM_DOMAIN WHERE UM_TENANT_ID=? AND UM_DOMAIN_NAME=?)
>>>
>>>
>>>
>>> On Mon, Nov 10, 2014 at 2:55 PM, Amila Maha Arachchi 
>>> wrote:
>>>
 Hi all,

 I have seen deadlock issues occurring during database transactions
 within our code. [1] is such a situation.

 What is the best way to handle such cases?

 Should we retry from the code where we invoked the authorisation
 manager in this case (i.e. AF code) or should the authorisation manager do
 the retry or the DatabaseUtil class should handle this?

 [1] https://wso2.org/jira/browse/CLOUD-310

 TID: [0] [SCC] [2014-10-27 06:56:21,093] ERROR
 {org.wso2.carbon.user.core.util.DatabaseUtil} - Error! Deadlock found
 when trying to get lock; try restarting transaction
 {org.wso2.carbon.user.core.util.DatabaseUtil}

 com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException:
 Deadlock found when trying to get lock; try restarting transaction
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
 at com.mysql.jdbc.Util.getInstance(Util.java:386)
 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1066)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)
 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
 at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818)
 at
 com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157)
 at
 com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2460)
 at
 com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2377)
 at
 com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2361)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:542)
 at
 org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:718)
 at
 org.wso2.carbon.user.core.authorization.J

Re: [Dev] Chunk 13 Release

2014-11-10 Thread Chanika Geeganage
Hi,

Both BAM and DSS are added to chunk-13. Yesterday there was some issues
found in the built BAM pack during smoke test. Maninda will be able to give
more details about the issues. We will try to resolve those issues and
provide RC packs today.

Thanks


On Tue, Nov 11, 2014 at 11:56 AM, Nuwan Dias  wrote:

> AFAIK only DSS is going on chunk-13. @Chanika, can you confirm please?
>
> BAM/APIM have moved to chunk-14. Ratha is building packs now and we should
> be able to provide packs within the day.
>
> Thanks,
> NuwanD.
>
> On Tue, Nov 11, 2014 at 11:52 AM, Aparna Karunarathna 
> wrote:
>
>> Hi,
>>
>> Since the Chunk 13 release date scheduled on 3rd week of November, can
>> you build all chunk 13 packs in the builder machine and share the latest
>> packs and p2 repo with us.
>>
>>
>> Regards,
>> --
>> *Aparna Karunarathna.*
>>
>>
>> *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533 <0714002533>*
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Best Regards..

Chanika Geeganage
Software Engineer
WSO2, Inc.; http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] BAM tasks to be tested

2014-11-10 Thread Ishara Cooray
Thanks Malith.

Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Tue, Nov 11, 2014 at 11:53 AM, Malith Dhanushka  wrote:

> Scheduling hive scripts in analyzer nodes act as the BAM tasks. Basically
> hive scripts are wrapped by tasks[1] and delegated among deferent analyzer
> nodes. Then hive scripts will be scheduled and executed with the
> associated event trigger in task. So you can do following test scenarios,
>
> - Tasks getting distributed and scheduled properly.
> - Tasks unscheduling
> - Fail-over scenarios (When one server is down, tasks on that server
> should be distributed among other servers)
>
> [1]https://docs.wso2.com/display/BAM250/Scheduling+an+Analytic+Script
>
> Thanks,
>
>
> On Tue, Nov 11, 2014 at 6:58 AM, Ishara Cooray  wrote:
>
>> Hi,
>>
>> i have to write a test to test BAM tasks are getting properly scheduled
>> in cloud setup.Wondering what are the BAM tasks i have to test?
>>
>> Thanks & Regards,
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Malith Dhanushka
> Software Engineer - Data Technologies
> *WSO2, Inc. : wso2.com *
> *Mobile*  : +94 716 506 693
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Properties - Automation Test Case Plan

2014-11-10 Thread Krishantha Samaraweera
Hi Dimuthu,

Can you update the progress made so far with properties automation.

@ESB Team - Any update on hidden properties :) or can we just rely on
documented properties.

Thanks,
Krishantha.

On Mon, Nov 3, 2014 at 12:53 PM, Krishantha Samaraweera  wrote:

> Hi ESB Team,
>
> Can you please review the test cases document. Are there any hidden
> properties which need to be added here :)
>
> Going though the source code didn't help much to find any missing
> properties.
>
> Thanks,
> Krishantha.
>
> On Mon, Oct 27, 2014 at 6:30 PM, Dimuthu De Lanerolle 
> wrote:
>
>> We have written around 30 new Test cases with regarding to ESB properties
>> and a few test cases are on pending state as we are currently in the
>> process of evaluating the possibility of automating test scenarios
>> involving threads as mentioned in a previous mail "[Dev] How to identify
>> thread ID's for messages in ESB?" . Will update the future progress once we
>> are done with the evaluation.
>>
>> Regards
>>
>> On Tue, Oct 14, 2014 at 2:11 PM, Dimuthu De Lanerolle 
>> wrote:
>>
>>> Hi,
>>>
>>> I am in the process of writing automation tests to cover all ESB
>>> properties (https://docs.wso2.com/display/ESB481/Properties+Reference).
>>> Link below [1] indicates the test cases identified as that needs to be
>>> automated. This gdoc indicates the properties mentioned in the ESB 4.8.1
>>> documentation only. Also I found it a bit difficult to filter  test cases
>>> written for the purposes of testing 'properties' only inside esb
>>> integration modules other than test cases mentioned in 'Test Class Name'
>>> column. BTW are there any additional properties we need to automate
>>> other than what are mentioned in the ESB documentation ?
>>>
>>> [1]
>>> https://docs.google.com/a/wso2.com/spreadsheets/d/1Ql-c8tIRQE3VCHGuQbFBUqq1UisiZwpI9qmAA-gNKWY/edit#gid=0
>>>
>>> Regards
>>>
>>> --
>>> Dimuthu De Lanerolle
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middlewear.
>>> http://wso2.com/
>>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>>>
>>>
>>
>>
>> --
>> Dimuthu De Lanerolle
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://wso2.com/
>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



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


Re: [Dev] [patch 0009 kernel]missing maven class?

2014-11-10 Thread Vijayaratha Vijayasingam
java version "1.6.0_45"

 Apache Maven 3.0.5

On 11 November 2014 12:25, Manoj Kumara  wrote:

> Hi Ratha,
>
> What is the maven/java version in the builder machine.
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
> On Tue, Nov 11, 2014 at 12:00 PM, Vijayaratha Vijayasingam <
> rat...@wso2.com> wrote:
>
>> Getting following at builder machine;
>>
>> ception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/maven/surefire/booter/ForkedBooter
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.maven.surefire.booter.ForkedBooter
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>
>> Could not find the main class:
>> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/maven/surefire/booter/ForkedBooter
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.maven.surefire.booter.ForkedBooter
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>
>> Could not find the main class:
>> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/maven/surefire/booter/ForkedBooter
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.maven.surefire.booter.ForkedBooter
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>
>> Could not find the main class:
>> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/maven/surefire/booter/ForkedBooter
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.maven.surefire.booter.ForkedBooter
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>
>> Could not find the main class:
>> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/maven/surefire/booter/ForkedBooter
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.maven.surefire.booter.ForkedBooter
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>
>> Could not find the main class:
>> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/maven/surefire/booter/ForkedBooter
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.maven.surefire.booter.ForkedBooter
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>
>> Could not find the main class:
>> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/maven/surefire/booter/ForkedBooter
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.maven.surefire.booter.ForkedBooter
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:20

Re: [Dev] [patch 0009 kernel]missing maven class?

2014-11-10 Thread Manoj Kumara
Hi Ratha,

What is the maven/java version in the builder machine.


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Tue, Nov 11, 2014 at 12:00 PM, Vijayaratha Vijayasingam 
wrote:

> Getting following at builder machine;
>
> ception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/maven/surefire/booter/ForkedBooter
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.surefire.booter.ForkedBooter
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class:
> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/maven/surefire/booter/ForkedBooter
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.surefire.booter.ForkedBooter
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class:
> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/maven/surefire/booter/ForkedBooter
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.surefire.booter.ForkedBooter
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class:
> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/maven/surefire/booter/ForkedBooter
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.surefire.booter.ForkedBooter
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class:
> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/maven/surefire/booter/ForkedBooter
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.surefire.booter.ForkedBooter
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class:
> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/maven/surefire/booter/ForkedBooter
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.surefire.booter.ForkedBooter
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class:
> org.apache.maven.surefire.booter.ForkedBooter. Program will exit.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/maven/surefire/booter/ForkedBooter
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.surefire.booter.ForkedBooter
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at

[Dev] {chunk 13] compilation error

2014-11-10 Thread Vijayaratha Vijayasingam
Hi;
 getting following error in clean repo @ builder machine;

[INFO] Building org.wso2.carbon.bam.cassandra.data.archive.ui 4.2.1

[INFO]


[INFO]

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
org.wso2.carbon.bam.cassandra.data.archive.ui ---

[INFO] Deleting
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/target

[INFO]

[INFO] --- incremental-build-plugin:1.3:incremental-build (default) @
org.wso2.carbon.bam.cassandra.data.archive.ui ---

[INFO] Verifying module descriptor ...

[INFO] Pom descriptor modification detected.

[INFO] Deleting
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/target

[INFO]

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
org.wso2.carbon.bam.cassandra.data.archive.ui ---

[debug] execute contextualize

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 648 resources

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
org.wso2.carbon.bam.cassandra.data.archive.ui ---

[INFO] Compiling 2 source files to
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/target/classes

[INFO] -

[ERROR] COMPILATION ERROR :

[INFO] -

[ERROR]
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/src/main/java/org/wso2/carbon/bam/cassandra/data/archive/ui/CassandraDataArchiveAdminClient.java:[10,54]
package org.wso2.carbon.bam.cassandra.data.archive.stub does not exist

[ERROR]
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/src/main/java/org/wso2/carbon/bam/cassandra/data/archive/ui/CassandraDataArchiveAdminClient.java:[11,54]
package org.wso2.carbon.bam.cassandra.data.archive.stub does not exist

[ERROR]
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/src/main/java/org/wso2/carbon/bam/cassandra/data/archive/ui/CassandraDataArchiveAdminClient.java:[12,59]
package org.wso2.carbon.bam.cassandra.data.archive.stub.util does not exist

[ERROR]
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/src/main/java/org/wso2/carbon/bam/cassandra/data/archive/ui/CassandraDataArchiveAdminClient.java:[22,12]
cannot find symbol

symbol  : class CassandraArchivalServiceStub

location: class
org.wso2.carbon.bam.cassandra.data.archive.ui.CassandraDataArchiveAdminClient

[ERROR]
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/src/main/java/org/wso2/carbon/bam/cassandra/data/archive/ui/CassandraDataArchiveAdminClient.java:[37,37]
cannot find symbol

symbol  : class ArchiveConfiguration

location: class
org.wso2.carbon.bam.cassandra.data.archive.ui.CassandraDataArchiveAdminClient

[ERROR]
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/src/main/java/org/wso2/carbon/bam/cassandra/data/archive/ui/CassandraDataArchiveAdminClient.java:[38,12]
cannot find symbol

symbol  : class CassandraArchivalServiceException

location: class
org.wso2.carbon.bam.cassandra.data.archive.ui.CassandraDataArchiveAdminClient

[ERROR]
/opt/checkout_chunk13/platform/branches/turing/components/bam2/org.wso2.carbon.bam.cassandra.data.archive.ui/4.2.1/src/main/java/org/wso2/carbon/bam/cassandra/data/archive/ui/CassandraDataArchiveAdminClient.java:[30,19]
cannot find symbol

symbol  : class CassandraArchivalServiceStub

location: class
org.wso2.carbon.bam.cassandra.data.archive.ui.CassandraDataArchiveAdminClient

[INFO] 7 errors

[INFO] -

[INFO]


[INFO] Reactor Summary:

[INFO]

[INFO] Apache Hive ... SUCCESS [0.174s]

[INFO] hive-root . SUCCESS
[2:18.224s]

[INFO] hive.wso2 . SUCCESS [6.982s]

[INFO] Apache Cassandra .. SUCCESS
[1:00.410s]

[INFO] cassandra.wso2  SUCCESS [2.746s]

[INFO] WSO2 Carbon Product Releases- Aggregate Pom ... SUCCESS [0.118s]

[INFO] WSO2 Carbon - Product releases - dependencies - Aggregator Module
SUCCESS [0.007s]

[INFO] WSO2 Carbon -  BAM - Cassandra data archive Stub .. SUCCESS [2.696s]

[INFO] WSO2 Carbon - Cassandra Search Stub ... SUCCESS [0.373s]

[INFO] WSO2 Carbon - Analytics Hive Stub . SUCCESS [13.377s]

[INFO] WSO2 Ca

Re: [Dev] (CARBON-15065) Remove duplicate class name from log4j layout pattern

2014-11-10 Thread Isuru Perera
Great! Thanks Sameera! :)

On Tue, Nov 11, 2014 at 11:57 AM, Sameera Jayasoma  wrote:

> Thanks for the suggestion Isuru. Will talk it from here :)
>
> On Tue, Nov 11, 2014 at 11:53 AM, Isuru Perera  wrote:
>
>> Hi,
>>
>> On Tue, Nov 11, 2014 at 11:42 AM, Supun Malinga  wrote:
>>
>>> Hi Isuru,
>>>
>>> You are welcome to send a PR :)
>>>
>> Yes! I want to send a PR, but I will not be able to build carbon
>> distribution and test this anytime soon. :(
>>
>>>
>>> thanks,
>>>
>>> On Tue, Nov 11, 2014 at 11:27 AM, Isuru Perera  wrote:
>>>
 Hi,

 I just created a JIRA [1] to remove duplicate class name in WSO2 Carbon
 log messages.

 It would be great if we can fix the log4j layout pattern in all WSO2
 products.

 Thanks!

 Best Regards,

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

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

 about.me/chrishantha

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


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://sameera.adahas.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


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

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


[Dev] [patch 0009 kernel]missing maven class?

2014-11-10 Thread Vijayaratha Vijayasingam
Getting following at builder machine;

ception in thread "main" java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/ForkedBooter

Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

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

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

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

Could not find the main class:
org.apache.maven.surefire.booter.ForkedBooter. Program will exit.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/ForkedBooter

Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

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

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

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

Could not find the main class:
org.apache.maven.surefire.booter.ForkedBooter. Program will exit.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/ForkedBooter

Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

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

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

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

Could not find the main class:
org.apache.maven.surefire.booter.ForkedBooter. Program will exit.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/ForkedBooter

Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

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

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

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

Could not find the main class:
org.apache.maven.surefire.booter.ForkedBooter. Program will exit.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/ForkedBooter

Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

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

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

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

Could not find the main class:
org.apache.maven.surefire.booter.ForkedBooter. Program will exit.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/ForkedBooter

Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

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

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

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

Could not find the main class:
org.apache.maven.surefire.booter.ForkedBooter. Program will exit.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/ForkedBooter

Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

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

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

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

Could not find the main class:
org.apache.maven.surefire.booter.ForkedBooter. Program will exit.

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/maven/surefire/booter/ForkedBooter

Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

a

Re: [Dev] (CARBON-15065) Remove duplicate class name from log4j layout pattern

2014-11-10 Thread Sameera Jayasoma
Thanks for the suggestion Isuru. Will talk it from here :)

On Tue, Nov 11, 2014 at 11:53 AM, Isuru Perera  wrote:

> Hi,
>
> On Tue, Nov 11, 2014 at 11:42 AM, Supun Malinga  wrote:
>
>> Hi Isuru,
>>
>> You are welcome to send a PR :)
>>
> Yes! I want to send a PR, but I will not be able to build carbon
> distribution and test this anytime soon. :(
>
>>
>> thanks,
>>
>> On Tue, Nov 11, 2014 at 11:27 AM, Isuru Perera  wrote:
>>
>>> Hi,
>>>
>>> I just created a JIRA [1] to remove duplicate class name in WSO2 Carbon
>>> log messages.
>>>
>>> It would be great if we can fix the log4j layout pattern in all WSO2
>>> products.
>>>
>>> Thanks!
>>>
>>> Best Regards,
>>>
>>> [1] https://wso2.org/browse/CARBON-15065
>>>
>>> --
>>> Isuru Perera
>>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 
Sameera Jayasoma,
Software Architect,

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

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


Re: [Dev] Chunk 13 Release

2014-11-10 Thread Nuwan Dias
AFAIK only DSS is going on chunk-13. @Chanika, can you confirm please?

BAM/APIM have moved to chunk-14. Ratha is building packs now and we should
be able to provide packs within the day.

Thanks,
NuwanD.

On Tue, Nov 11, 2014 at 11:52 AM, Aparna Karunarathna 
wrote:

> Hi,
>
> Since the Chunk 13 release date scheduled on 3rd week of November, can you
> build all chunk 13 packs in the builder machine and share the latest packs
> and p2 repo with us.
>
>
> Regards,
> --
> *Aparna Karunarathna.*
>
>
> *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533 <0714002533>*
>



-- 
Nuwan Dias

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


Re: [Dev] [DEV] BAM tasks to be tested

2014-11-10 Thread Malith Dhanushka
Scheduling hive scripts in analyzer nodes act as the BAM tasks. Basically
hive scripts are wrapped by tasks[1] and delegated among deferent analyzer
nodes. Then hive scripts will be scheduled and executed with the associated
event trigger in task. So you can do following test scenarios,

- Tasks getting distributed and scheduled properly.
- Tasks unscheduling
- Fail-over scenarios (When one server is down, tasks on that server should
be distributed among other servers)

[1]https://docs.wso2.com/display/BAM250/Scheduling+an+Analytic+Script

Thanks,


On Tue, Nov 11, 2014 at 6:58 AM, Ishara Cooray  wrote:

> Hi,
>
> i have to write a test to test BAM tasks are getting properly scheduled in
> cloud setup.Wondering what are the BAM tasks i have to test?
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Dhanushka
Software Engineer - Data Technologies
*WSO2, Inc. : wso2.com *
*Mobile*  : +94 716 506 693
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] (CARBON-15065) Remove duplicate class name from log4j layout pattern

2014-11-10 Thread Isuru Perera
Hi,

On Tue, Nov 11, 2014 at 11:42 AM, Supun Malinga  wrote:

> Hi Isuru,
>
> You are welcome to send a PR :)
>
Yes! I want to send a PR, but I will not be able to build carbon
distribution and test this anytime soon. :(

>
> thanks,
>
> On Tue, Nov 11, 2014 at 11:27 AM, Isuru Perera  wrote:
>
>> Hi,
>>
>> I just created a JIRA [1] to remove duplicate class name in WSO2 Carbon
>> log messages.
>>
>> It would be great if we can fix the log4j layout pattern in all WSO2
>> products.
>>
>> Thanks!
>>
>> Best Regards,
>>
>> [1] https://wso2.org/browse/CARBON-15065
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



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

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


[Dev] [DEV] What are the functionalities in App factory Issue Tracker?

2014-11-10 Thread Ishara Cooray
Hi,

I have to write tests to make sure that all the issue tracker
functionalities in App factory Issue tracker are properly working in the
cloud setup. Please let me know what are the issue tracker functionalities
in issue tracker and how i can invoke them? Is there any API that i can use?

Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Chunk 13 Release

2014-11-10 Thread Aparna Karunarathna
Hi,

Since the Chunk 13 release date scheduled on 3rd week of November, can you
build all chunk 13 packs in the builder machine and share the latest packs
and p2 repo with us.


Regards,
-- 
*Aparna Karunarathna.*


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


Re: [Dev] (CARBON-15065) Remove duplicate class name from log4j layout pattern

2014-11-10 Thread Supun Malinga
Hi Isuru,

You are welcome to send a PR :)

thanks,

On Tue, Nov 11, 2014 at 11:27 AM, Isuru Perera  wrote:

> Hi,
>
> I just created a JIRA [1] to remove duplicate class name in WSO2 Carbon
> log messages.
>
> It would be great if we can fix the log4j layout pattern in all WSO2
> products.
>
> Thanks!
>
> Best Regards,
>
> [1] https://wso2.org/browse/CARBON-15065
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] (CARBON-15065) Remove duplicate class name from log4j layout pattern

2014-11-10 Thread Isuru Perera
Hi,

I just created a JIRA [1] to remove duplicate class name in WSO2 Carbon log
messages.

It would be great if we can fix the log4j layout pattern in all WSO2
products.

Thanks!

Best Regards,

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

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

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


Re: [Dev] One or more certificates rejected.

2014-11-10 Thread Thushara Ranawaka
Hi,
FYI
Finally solve the issue!
Reason for the issue is new mac update (10.10 Yosemite)
Had to reinstall JDK[1] then install Java for OS X 2014-001[2]. Java for OS
X 2014-001 includes installation improvements, and supersedes all previous
versions of Java for OS X. This package installs the same version of Java 6
included in Java for OS X 2013-005.

Make sure you quit any Java applications before installing this
update.(chrome, IDE's etc)

Thanks

[1]-
http://sencs.blogspot.com/2014/09/how-to-setup-mac-osx-environment-for.html
[2]- http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US

On Mon, Nov 10, 2014 at 8:53 PM, Omindu Rathnaweera  wrote:

> Hi Thushara,
>
> In my case, replacing the cacerts file from jdk 1.6.0_45 fixed the build
> error. But while going through the jdk folder I've noticed there are few
> other files replaced with broken aliases. So reinstalling the jdk might be
> the proper way to solve this.
>
> Regards,
> Omindu
>
> On Mon, Nov 10, 2014 at 7:36 PM, Thushara Ranawaka 
> wrote:
>
>> Hi Omindu,
>>
>> Yes, I did follow this[1] question but no luck. Last week I updated the
>> mac OS. Looks like Im getting these errors afterward.
>>
>> Below the part of the error log - 1415620329273.log.
>>
>> !ENTRY org.eclipse.osgi 2 0 2014-11-10 17:22:10.552
>> !MESSAGE TrustEngine failure: System
>> !STACK 0
>> java.io.FileNotFoundException:
>> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/lib/security/cacerts
>> (No such file or directory)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.(FileInputStream.java:120)
>> at
>> org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getInputStream(KeyStoreTrustEngine.java:311)
>> at
>> org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getKeyStore(KeyStoreTrustEngine.java:87)
>> at org.eclipse.osgi.
>>
>>
>> [1]-
>> http://stackoverflow.com/questions/20075717/having-issues-with-android-studio-project-after-os-x-10-9-upgrade-error-with-ca
>>
>> Thanks,
>>
>> On Mon, Nov 10, 2014 at 6:41 PM, Omindu Rathnaweera 
>> wrote:
>>
>>> Hi Thushara,
>>>
>>> Can you check the following log file and see whether the issue is
>>> related to a missing cacerts file ? Had a similar problem while
>>> building the kernel on mac.
>>>
>>> /Users/thushara/.m2/repository/org/eclipse/tycho/
>>> tycho-p2-runtime/0.13.0/eclipse/configuration/1415620329273.log
>>>
>>> Regards,
>>> Omindu.
>>>
>>> On Mon, Nov 10, 2014 at 5:57 PM, Thushara Ranawaka 
>>> wrote:
>>>
 Yes, Im using mvn 3.0.5 and java 1.6

 Thanks,

 On Mon, Nov 10, 2014 at 5:51 PM, Harsha Kumara 
 wrote:

> Hi Thushara,
>
> Make sure you that you use maven 3.0.x and java 1.6 to build the
> products.
>
> Thanks,
> Harsha
>
> On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka  > wrote:
>
>> Hi,
>>
>> While building carbon4-kernel, product-es and product-greg fails in WSO2
>> Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
>> Registry - P2 Profile Generation respectively. All 3 of them are failing
>> due to below error:
>>
>> *Installation failed.*
>>
>> *One or more certificates rejected. Cannot proceed with installation.*
>>
>> Kindly find the error log for carbon below.
>>
>> Anybody who overcome the same issue?
>>
>>
>> [INFO] Executed tasks
>>
>> [INFO]
>>
>> [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
>> wso2carbon-core ---
>>
>> [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature
>>
>> [INFO] Extracting feature
>> org.wso2.carbon:org.wso2.carbon.core.runtime.feature
>>
>> [INFO] Copying resources
>>
>> [INFO] Running Equinox P2 Publisher Application for Repository
>> Generation
>>
>> [INFO] Command line:
>>
>> /bin/sh -c cd
>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
>> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
>> -jar
>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
>> -nosplash -application
>> org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
>> -metadataRepository
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>> -metadataRepositoryName wso2carbon-core -artifactRepository
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>> -artifactRepositoryName wso2carbon-core -publishArtifacts
>> -publishArtifactRepository -compress -append
>>
>> Generating metadata for ..
>>
>> Generation completed with success [3 seconds].
>>
>>>

[Dev] WSO2CEP Samples -Geo Dashboard

2014-11-10 Thread Damith Wickramasinghe
Hi,

I have added a new  CEP sample to run geo dashboard.  As the app needed
extension Jars and changes in siddhi.extension file , i have added the
logic to script file to copy those into necessary places. So after sample
executes those files will be permanently resides in those respective
places.  Is it a good approach to do so? Please provide me feedbacks on
this. As for now it won't make any issue for the flow.

Thanks,
Damith.


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

lean.enterprise.middleware

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


Re: [Dev] Review and merge carbon business process #21

2014-11-10 Thread Firzhan Naqash
Hi Akalanka,

I have updated the pull request with your suggestions.


Regards,
Firzhan

On Tue, Nov 11, 2014 at 8:33 AM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi Firzhan,
>
> Isn't it a good idea to completely delete the lines you have commented out
> in 
> 'components/bpmn/org.wso2.carbon.bpmn/src/main/java/org/wso2/carbon/bpmn/core/db/Database.java'
> file if they are not necessary? Or else I think it's better to add a
> comment why you have commented out those, to help the one who's editing
> this after you. Also I believe after this change the method description
> should change as well?
>
> Thanks,
> Akalanka
>
> On Mon, Nov 10, 2014 at 10:43 PM, Firzhan Naqash  wrote:
>
>> Hi,
>>
>> Please commit the pull request [1] . The changes are related on updating
>> the activiti version.
>>
>> [1] https://github.com/wso2-dev/carbon-business-process/pull/21
>> Regards,
>> Firzhan
>>
>> ___
>> 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] ESB Unsupported content type faultString

2014-11-10 Thread Akila Nimantha [IT/EKO/LOITS]
Hi all,

I am trying to invoke a web service created in oracle application server using 
ESB proxy service. What I did was created a passthrough proxy using endpoind 
and endpoint wsdl. When first time I trying to invoke it, it gives me below 
error,

the endpoint reference (epr) for the operation not found and the wsa action = 
null

then I changed

with

in axis2.xml file.(I used this link  
http://stackoverflow.com/questions/23584536/using-wso2-esb-passthrough-proxy-on-weblogic-spring-web-service/23602518#23602518
 )

Now it gives me the following fault,

http://schemas.xmlsoap.org/soap/envelope/";>
   SOAP-ENV:Protocol
   Unsupported content type "application/soap+xml; charset=UTF-8", 
must be: "text/xml".
   /cyberfin_lofc_fdRates/FdRates


Also I tried to add content type header to the proxy as mentioned below. But it 
give me same fault.


http://ws.apache.org/ns/synapse";
   name="payloadtest2"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
 

   http://192.100.151.47:7778/cyberfin_lofc_fdRates/FdRates"/>

 
  
  
 
  
   
   http://192.100.151.47:7778/cyberfin_lofc_fdRates/FdRates?wsdl"/>
   


What should I do  also plain web service is accessible through the 
soapUI
Please check the attachments for plain service wsdl and proxy wsdl.

Regards,
Akila



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.


ESBpayloadtest2.wsdl
Description: ESBpayloadtest2.wsdl


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


Re: [Dev] [EMM] What is meant by "Pass-code History" ?

2014-11-10 Thread Jerad Rutnam
+1 for tool-tip/help suggestion.

It's always better to show some guides/information to the user. And yes, we
can use html "placeholder" attribute as the "example text" and "tool-tip"
for the "context/help". In this case we can tackle both old and new
browsers, if we have to consider about it.

Cheers,

On Tue, Nov 11, 2014 at 8:38 AM, Dhanuka De Silva  wrote:

> +1 from me for Sameera's suggestion.
>
> Its always good to provide some contextual help (help icon in front of
> each text box/tip to appear when mouse hover)
>
> Inline help text using  html *placeholder* attribute only works with
> modern browsers. Do we need to consider that as a concern?
>
> Cheers
>
> On Tue, Nov 11, 2014 at 7:56 AM, Dakshika Jayathilaka 
> wrote:
>
>> +1 for Sameera's suggestion.
>>
>> This type of situations can be handle by adding meaningful tooltip or
>> using inline help.
>>
>> Thank you,
>>
>> Regards,
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Mon, Nov 10, 2014 at 6:04 PM, Pasanthi Amarasekera 
>> wrote:
>>
>>> Hi,
>>>
>>> +1 for Sameera's suggestion.
>>>
>>> @UX team
>>> WDYT ?
>>>
>>> Thank you.
>>>
>>> Regards,
>>> Pasanthi.
>>>
>>> On Mon, Nov 10, 2014 at 5:12 PM, Sameera Perera 
>>> wrote:
>>>
 Have to agree with ChathuraD that this is the common term. But, we
 should add some contextual help here.

 On Mon, Nov 10, 2014 at 11:21 AM, Chathura Dilan 
 wrote:

> I'm not sure. General term could be 'Passcode History'[1]
>
> [1] -
> https://www.google.lk/search?q=passcode+history#q=%22passcode+history%22
>
> On Mon, Nov 10, 2014 at 10:43 AM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> +1, Thanks for creating the JIRA.
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Mon, Nov 10, 2014 at 10:32 AM, Pasanthi Amarasekera <
>> pasan...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I also had the same problem when I was trying to give a passcode
>>> policy to my Android device for testing purposes. Thus created this JIRA
>>> [1]. We need to fix this in CDM 2.0 (if it has the same functionality as
>>> this). WDYT ?
>>>
>>> [1]https://wso2.org/jira/browse/EMM-756
>>>
>>> Thank you.
>>>
>>> Regards,
>>> Pasanthi.
>>>
>>>
>>>
>>> On Mon, Nov 10, 2014 at 9:17 AM, Inosh Perera 
>>> wrote:
>>>
 Hi Dilan,
 As you can see in the doc Lakshman mentioned, Passcode has an
 expiration time, after the expiration, user will have to change the
 password. In order to stop user from using the same passwords, he 
 recently
 used, pass-code history has to be set.

 Regards,
 inosh

 On Mon, Nov 10, 2014 at 8:55 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> Hi Dilan,
>
> documentation[1] says. is that helpful?
>
> The end-user will not be allowed to reuse a passcode that he/she
> previously entered until he/she exceeds the set password history
> length (e.g., if the passcode history length is 3 and your passcode
> currently is 21345, you can not enter 21345 as the passcode in
> the next three consecutive passcode rotation cycles).
>
> [1] https://docs.wso2.com/display/EMM110/EMM+Policy+Settings
>
> On Mon, Nov 10, 2014 at 7:00 AM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> Hi All,
>>
>> I was going through a check of the list of operations supported
>> by wso2 emm
>> on Android devices.
>>
>> Under pass-code policy, when the corresponding policy setting
>> form prompts up,
>> It asks for a required field called "Pass-code History". (See the
>> screen-shot)
>>
>> What is the kind of input that we are supposed to give for this?
>>
>> Appreciate any feedback on this.
>>
>> Thanks.
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>>>

Re: [Dev] [EMM] What is meant by "Pass-code History" ?

2014-11-10 Thread Dhanuka De Silva
+1 from me for Sameera's suggestion.

Its always good to provide some contextual help (help icon in front of each
text box/tip to appear when mouse hover)

Inline help text using  html *placeholder* attribute only works with modern
browsers. Do we need to consider that as a concern?

Cheers

On Tue, Nov 11, 2014 at 7:56 AM, Dakshika Jayathilaka 
wrote:

> +1 for Sameera's suggestion.
>
> This type of situations can be handle by adding meaningful tooltip or
> using inline help.
>
> Thank you,
>
> Regards,
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Mon, Nov 10, 2014 at 6:04 PM, Pasanthi Amarasekera 
> wrote:
>
>> Hi,
>>
>> +1 for Sameera's suggestion.
>>
>> @UX team
>> WDYT ?
>>
>> Thank you.
>>
>> Regards,
>> Pasanthi.
>>
>> On Mon, Nov 10, 2014 at 5:12 PM, Sameera Perera 
>> wrote:
>>
>>> Have to agree with ChathuraD that this is the common term. But, we
>>> should add some contextual help here.
>>>
>>> On Mon, Nov 10, 2014 at 11:21 AM, Chathura Dilan 
>>> wrote:
>>>
 I'm not sure. General term could be 'Passcode History'[1]

 [1] -
 https://www.google.lk/search?q=passcode+history#q=%22passcode+history%22

 On Mon, Nov 10, 2014 at 10:43 AM, Dilan Udara Ariyaratne <
 dil...@wso2.com> wrote:

> +1, Thanks for creating the JIRA.
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Mon, Nov 10, 2014 at 10:32 AM, Pasanthi Amarasekera <
> pasan...@wso2.com> wrote:
>
>> Hi,
>>
>> I also had the same problem when I was trying to give a passcode
>> policy to my Android device for testing purposes. Thus created this JIRA
>> [1]. We need to fix this in CDM 2.0 (if it has the same functionality as
>> this). WDYT ?
>>
>> [1]https://wso2.org/jira/browse/EMM-756
>>
>> Thank you.
>>
>> Regards,
>> Pasanthi.
>>
>>
>>
>> On Mon, Nov 10, 2014 at 9:17 AM, Inosh Perera 
>> wrote:
>>
>>> Hi Dilan,
>>> As you can see in the doc Lakshman mentioned, Passcode has an
>>> expiration time, after the expiration, user will have to change the
>>> password. In order to stop user from using the same passwords, he 
>>> recently
>>> used, pass-code history has to be set.
>>>
>>> Regards,
>>> inosh
>>>
>>> On Mon, Nov 10, 2014 at 8:55 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi Dilan,

 documentation[1] says. is that helpful?

 The end-user will not be allowed to reuse a passcode that he/she
 previously entered until he/she exceeds the set password history
 length (e.g., if the passcode history length is 3 and your passcode
 currently is 21345, you can not enter 21345 as the passcode in the
 next three consecutive passcode rotation cycles).

 [1] https://docs.wso2.com/display/EMM110/EMM+Policy+Settings

 On Mon, Nov 10, 2014 at 7:00 AM, Dilan Udara Ariyaratne <
 dil...@wso2.com> wrote:

> Hi All,
>
> I was going through a check of the list of operations supported by
> wso2 emm
> on Android devices.
>
> Under pass-code policy, when the corresponding policy setting form
> prompts up,
> It asks for a required field called "Pass-code History". (See the
> screen-shot)
>
> What is the kind of input that we are supposed to give for this?
>
> Appreciate any feedback on this.
>
> Thanks.
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*


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


>>>
>>>
>>> --
>>> Inosh Perera
>>> Software Engineer, WSO2 Inc.
>>> Tel: 0785293686
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Pasanthi Amarasekera
>> WSO2 Inc: http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile: +94 77 9541735
>>
>
>
> ___
> Dev maili

Re: [Dev] Review and merge carbon business process #21

2014-11-10 Thread Akalanka Pagoda Arachchi
Hi Firzhan,

Isn't it a good idea to completely delete the lines you have commented out
in 
'components/bpmn/org.wso2.carbon.bpmn/src/main/java/org/wso2/carbon/bpmn/core/db/Database.java'
file if they are not necessary? Or else I think it's better to add a
comment why you have commented out those, to help the one who's editing
this after you. Also I believe after this change the method description
should change as well?

Thanks,
Akalanka

On Mon, Nov 10, 2014 at 10:43 PM, Firzhan Naqash  wrote:

> Hi,
>
> Please commit the pull request [1] . The changes are related on updating
> the activiti version.
>
> [1] https://github.com/wso2-dev/carbon-business-process/pull/21
> Regards,
> Firzhan
>
> ___
> 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] Writing Integration tests for Developer Studio 4.0.0

2014-11-10 Thread Awanthika Senarath
thanks Krishantha,

I will look into TestNG framework for integration test writing.

regards
Awanthika

On Mon, Nov 10, 2014 at 7:40 PM, Krishantha Samaraweera  wrote:

> Hi Awathika,
>
> On Fri, Nov 7, 2014 at 4:30 PM, Awanthika Senarath 
> wrote:
>
>> Hi,
>>
>> For $Subject
>>  Recommended way to write integration tests for GWT based projects is
>> Junit.
>>  I noticed that in Codenvy they have used Mockito framework together with
>> Junit, for their testing mechanism. Shall we proceed the same way?
>>
>>
> Our recommended unit tests framework is TestNG. Mocking is required when
> you write unit tests, and its not heavily used when comes to UI/Integration
> tests. And you won't be able to use our TAF with Junit dependencies as its
> core is depending on testNG.
>
>
>>  We also need to test the SWT widget UIs, Is there a recommended way for
>> SWT based widget testing in WSO2? ( One option I came across is SWTBot )
>>
>>  I have noted the following scenario at [1], for writing integration
>> tests.
>> @Kavith : Is there anything that I have missed?
>>
>>
>>
>>
>> [1]
>> https://docs.google.com/a/wso2.com/document/d/13uFuTND0UHCtCfURlVrTuaZ7qjwH7p8qnrS8HgKMi-0/edit
>>
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



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


Re: [Dev] [EMM] What is meant by "Pass-code History" ?

2014-11-10 Thread Dakshika Jayathilaka
+1 for Sameera's suggestion.

This type of situations can be handle by adding meaningful tooltip or using
inline help.

Thank you,

Regards,
*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Mon, Nov 10, 2014 at 6:04 PM, Pasanthi Amarasekera 
wrote:

> Hi,
>
> +1 for Sameera's suggestion.
>
> @UX team
> WDYT ?
>
> Thank you.
>
> Regards,
> Pasanthi.
>
> On Mon, Nov 10, 2014 at 5:12 PM, Sameera Perera  wrote:
>
>> Have to agree with ChathuraD that this is the common term. But, we should
>> add some contextual help here.
>>
>> On Mon, Nov 10, 2014 at 11:21 AM, Chathura Dilan 
>> wrote:
>>
>>> I'm not sure. General term could be 'Passcode History'[1]
>>>
>>> [1] -
>>> https://www.google.lk/search?q=passcode+history#q=%22passcode+history%22
>>>
>>> On Mon, Nov 10, 2014 at 10:43 AM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 +1, Thanks for creating the JIRA.


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

 On Mon, Nov 10, 2014 at 10:32 AM, Pasanthi Amarasekera <
 pasan...@wso2.com> wrote:

> Hi,
>
> I also had the same problem when I was trying to give a passcode
> policy to my Android device for testing purposes. Thus created this JIRA
> [1]. We need to fix this in CDM 2.0 (if it has the same functionality as
> this). WDYT ?
>
> [1]https://wso2.org/jira/browse/EMM-756
>
> Thank you.
>
> Regards,
> Pasanthi.
>
>
>
> On Mon, Nov 10, 2014 at 9:17 AM, Inosh Perera  wrote:
>
>> Hi Dilan,
>> As you can see in the doc Lakshman mentioned, Passcode has an
>> expiration time, after the expiration, user will have to change the
>> password. In order to stop user from using the same passwords, he 
>> recently
>> used, pass-code history has to be set.
>>
>> Regards,
>> inosh
>>
>> On Mon, Nov 10, 2014 at 8:55 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi Dilan,
>>>
>>> documentation[1] says. is that helpful?
>>>
>>> The end-user will not be allowed to reuse a passcode that he/she
>>> previously entered until he/she exceeds the set password history
>>> length (e.g., if the passcode history length is 3 and your passcode
>>> currently is 21345, you can not enter 21345 as the passcode in the
>>> next three consecutive passcode rotation cycles).
>>>
>>> [1] https://docs.wso2.com/display/EMM110/EMM+Policy+Settings
>>>
>>> On Mon, Nov 10, 2014 at 7:00 AM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Hi All,

 I was going through a check of the list of operations supported by
 wso2 emm
 on Android devices.

 Under pass-code policy, when the corresponding policy setting form
 prompts up,
 It asks for a required field called "Pass-code History". (See the
 screen-shot)

 What is the kind of input that we are supposed to give for this?

 Appreciate any feedback on this.

 Thanks.


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

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


>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Pasanthi Amarasekera
> WSO2 Inc: http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 77 9541735
>


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


>>>
>>>
>>> --
>>> Regards,
>>>
>>> Chatura Dilan Perera
>>> *(Senior Software Engineer** - WSO2 Inc.**)*
>>> www.dilan.me
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> --
>>
>> *Sameera Perera*
>> Director of Engineering
>> gtalk: samee...@wso2.com
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> *WSO2, Inc.* 

[Dev] [DEV] BAM tasks to be tested

2014-11-10 Thread Ishara Cooray
Hi,

i have to write a test to test BAM tasks are getting properly scheduled in
cloud setup.Wondering what are the BAM tasks i have to test?

Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Getting an error while creating a tenant in appfactory

2014-11-10 Thread Mahesh Chinthaka
Hi Danushka,
no I couldnt. I will :)

On Mon, Nov 10, 2014 at 9:36 PM, Danushka Fernando 
wrote:

> Did you check BPS logs and Instance status?
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Nov 10, 2014 at 9:35 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi all,
>>
>> FYI : I tried with following as well,
>>
>> Got the latest code, build appfactory pack (with out my code changes) and
>> set appfactory up using that pack.  Patched buildserver and appfactory
>> using jars with my changes and pached jenkins.war.
>> Then tenant creation can be done , but when creating an application it
>> stays at not-responding state forever.
>> Neither appfacotry nor buildserver gives any errors :(
>>
>> Thanks
>>
>>
>> On Mon, Nov 10, 2014 at 9:24 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi all,
>>>
>>> I made some changes in code and built wso2appfactory-2.1.0.zip pack and
>>> set appfactory up using that pack.
>>> These are the Classes which I made chages.
>>>
>>> org.wso2.carbon.appfactory.build  JenkinsApplicationEventsListener.java
>>> org.wso2.carbon.appfactory.build  RestBasedJenkinsCIConnector.java
>>> org.wso2.carbon.appfactory.build
>>> NonBuildableApplicationEventListner.java
>>>
>>> org.wso2.carbon.appfactory.core   Undeployer.java
>>>
>>> org.wso2.carbon.appfactory.deployers   AbstractStratosUndeployer.java
>>> org.wso2.carbon.appfactory.deployers   AbstractUndeployer.java
>>>
>>> appfactory-plugin JenkinsStratosUndeployer.java
>>>
>>> Everything seemed to be fine until tenant creation. When a tenant is
>>> created appfactory gives following error
>>>
>>>
>>> TID: [0] [Carbon] [2014-11-10 20:57:11,809] ERROR
>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Exception occurred
>>> while trying to invoke service method null
>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver}
>>> org.apache.axis2.AxisFault
>>> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>>> at org.apache.axis2.util.Utils.createServiceObject(Utils.java:775)
>>> at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:215)
>>> at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:252)
>>> at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:78)
>>> at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>> at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>>> at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>>> at
>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>> at
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.jav

[Dev] Review and merge carbon business process #21

2014-11-10 Thread Firzhan Naqash
Hi,

Please commit the pull request [1] . The changes are related on updating
the activiti version.

[1] https://github.com/wso2-dev/carbon-business-process/pull/21
Regards,
Firzhan
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Review and Merge Orbit #33

2014-11-10 Thread Firzhan Naqash
Hi Nandika,

Can you please merge pull request[1].

This exposes additional packages of activiti engine. This packages are used
to manage activiti sessions with in BPMN.

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

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


Re: [Dev] [AF] Getting an error while creating a tenant in appfactory

2014-11-10 Thread Danushka Fernando
Did you check BPS logs and Instance status?

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

On Mon, Nov 10, 2014 at 9:35 PM, Mahesh Chinthaka  wrote:

> Hi all,
>
> FYI : I tried with following as well,
>
> Got the latest code, build appfactory pack (with out my code changes) and
> set appfactory up using that pack.  Patched buildserver and appfactory
> using jars with my changes and pached jenkins.war.
> Then tenant creation can be done , but when creating an application it
> stays at not-responding state forever.
> Neither appfacotry nor buildserver gives any errors :(
>
> Thanks
>
>
> On Mon, Nov 10, 2014 at 9:24 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi all,
>>
>> I made some changes in code and built wso2appfactory-2.1.0.zip pack and
>> set appfactory up using that pack.
>> These are the Classes which I made chages.
>>
>> org.wso2.carbon.appfactory.build  JenkinsApplicationEventsListener.java
>> org.wso2.carbon.appfactory.build  RestBasedJenkinsCIConnector.java
>> org.wso2.carbon.appfactory.build  NonBuildableApplicationEventListner.java
>>
>> org.wso2.carbon.appfactory.core   Undeployer.java
>>
>> org.wso2.carbon.appfactory.deployers   AbstractStratosUndeployer.java
>> org.wso2.carbon.appfactory.deployers   AbstractUndeployer.java
>>
>> appfactory-plugin JenkinsStratosUndeployer.java
>>
>> Everything seemed to be fine until tenant creation. When a tenant is
>> created appfactory gives following error
>>
>>
>> TID: [0] [Carbon] [2014-11-10 20:57:11,809] ERROR
>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Exception occurred
>> while trying to invoke service method null
>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver}
>> org.apache.axis2.AxisFault
>> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>> at org.apache.axis2.util.Utils.createServiceObject(Utils.java:775)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:215)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:252)
>> at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:78)
>> at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>> at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>> at
>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>> at
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>> at
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>> a

Re: [Dev] [AF] Getting an error while creating a tenant in appfactory

2014-11-10 Thread Mahesh Chinthaka
Hi all,

FYI : I tried with following as well,

Got the latest code, build appfactory pack (with out my code changes) and
set appfactory up using that pack.  Patched buildserver and appfactory
using jars with my changes and pached jenkins.war.
Then tenant creation can be done , but when creating an application it
stays at not-responding state forever.
Neither appfacotry nor buildserver gives any errors :(

Thanks


On Mon, Nov 10, 2014 at 9:24 PM, Mahesh Chinthaka  wrote:

> Hi all,
>
> I made some changes in code and built wso2appfactory-2.1.0.zip pack and
> set appfactory up using that pack.
> These are the Classes which I made chages.
>
> org.wso2.carbon.appfactory.build  JenkinsApplicationEventsListener.java
> org.wso2.carbon.appfactory.build  RestBasedJenkinsCIConnector.java
> org.wso2.carbon.appfactory.build  NonBuildableApplicationEventListner.java
>
> org.wso2.carbon.appfactory.core   Undeployer.java
>
> org.wso2.carbon.appfactory.deployers   AbstractStratosUndeployer.java
> org.wso2.carbon.appfactory.deployers   AbstractUndeployer.java
>
> appfactory-plugin JenkinsStratosUndeployer.java
>
> Everything seemed to be fine until tenant creation. When a tenant is
> created appfactory gives following error
>
>
> TID: [0] [Carbon] [2014-11-10 20:57:11,809] ERROR
> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Exception occurred
> while trying to invoke service method null
> {org.apache.axis2.rpc.receivers.RPCMessageReceiver}
> org.apache.axis2.AxisFault
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at org.apache.axis2.util.Utils.createServiceObject(Utils.java:775)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:215)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:252)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:78)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
> at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>

[Dev] [AF] Getting an error while creating a tenant in appfactory

2014-11-10 Thread Mahesh Chinthaka
Hi all,

I made some changes in code and built wso2appfactory-2.1.0.zip pack and set
appfactory up using that pack.
These are the Classes which I made chages.

org.wso2.carbon.appfactory.build  JenkinsApplicationEventsListener.java
org.wso2.carbon.appfactory.build  RestBasedJenkinsCIConnector.java
org.wso2.carbon.appfactory.build  NonBuildableApplicationEventListner.java

org.wso2.carbon.appfactory.core   Undeployer.java

org.wso2.carbon.appfactory.deployers   AbstractStratosUndeployer.java
org.wso2.carbon.appfactory.deployers   AbstractUndeployer.java

appfactory-plugin JenkinsStratosUndeployer.java

Everything seemed to be fine until tenant creation. When a tenant is
created appfactory gives following error


TID: [0] [Carbon] [2014-11-10 20:57:11,809] ERROR
{org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Exception occurred
while trying to invoke service method null
{org.apache.axis2.rpc.receivers.RPCMessageReceiver}
org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.util.Utils.createServiceObject(Utils.java:775)
at
org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:215)
at
org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:252)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:78)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Threa

Re: [Dev] [EMM] What is meant by "Pass-code History" ?

2014-11-10 Thread Chanaka Jayasena
"Past Code History" alone seems confusing. +1 for an inline help message.

I also notice an issue with the two checkboxes in the screen. They should
be input element first and label second. Thats the convention.

thanks,
Chanaka

On Mon, Nov 10, 2014 at 6:04 PM, Pasanthi Amarasekera 
wrote:

> Hi,
>
> +1 for Sameera's suggestion.
>
> @UX team
> WDYT ?
>
> Thank you.
>
> Regards,
> Pasanthi.
>
> On Mon, Nov 10, 2014 at 5:12 PM, Sameera Perera  wrote:
>
>> Have to agree with ChathuraD that this is the common term. But, we should
>> add some contextual help here.
>>
>> On Mon, Nov 10, 2014 at 11:21 AM, Chathura Dilan 
>> wrote:
>>
>>> I'm not sure. General term could be 'Passcode History'[1]
>>>
>>> [1] -
>>> https://www.google.lk/search?q=passcode+history#q=%22passcode+history%22
>>>
>>> On Mon, Nov 10, 2014 at 10:43 AM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 +1, Thanks for creating the JIRA.


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

 On Mon, Nov 10, 2014 at 10:32 AM, Pasanthi Amarasekera <
 pasan...@wso2.com> wrote:

> Hi,
>
> I also had the same problem when I was trying to give a passcode
> policy to my Android device for testing purposes. Thus created this JIRA
> [1]. We need to fix this in CDM 2.0 (if it has the same functionality as
> this). WDYT ?
>
> [1]https://wso2.org/jira/browse/EMM-756
>
> Thank you.
>
> Regards,
> Pasanthi.
>
>
>
> On Mon, Nov 10, 2014 at 9:17 AM, Inosh Perera  wrote:
>
>> Hi Dilan,
>> As you can see in the doc Lakshman mentioned, Passcode has an
>> expiration time, after the expiration, user will have to change the
>> password. In order to stop user from using the same passwords, he 
>> recently
>> used, pass-code history has to be set.
>>
>> Regards,
>> inosh
>>
>> On Mon, Nov 10, 2014 at 8:55 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi Dilan,
>>>
>>> documentation[1] says. is that helpful?
>>>
>>> The end-user will not be allowed to reuse a passcode that he/she
>>> previously entered until he/she exceeds the set password history
>>> length (e.g., if the passcode history length is 3 and your passcode
>>> currently is 21345, you can not enter 21345 as the passcode in the
>>> next three consecutive passcode rotation cycles).
>>>
>>> [1] https://docs.wso2.com/display/EMM110/EMM+Policy+Settings
>>>
>>> On Mon, Nov 10, 2014 at 7:00 AM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Hi All,

 I was going through a check of the list of operations supported by
 wso2 emm
 on Android devices.

 Under pass-code policy, when the corresponding policy setting form
 prompts up,
 It asks for a required field called "Pass-code History". (See the
 screen-shot)

 What is the kind of input that we are supposed to give for this?

 Appreciate any feedback on this.

 Thanks.


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

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


>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Pasanthi Amarasekera
> WSO2 Inc: http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 77 9541735
>


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


>>>
>>>
>>> --
>>> Regards,
>>>
>>> Chatura Dilan Perera
>>> *(Senior Software Engineer** - WSO2 Inc.**)*
>>> www.dilan.me
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> --
>>
>> *Sameera Perera*
>> Director of Engineering
>> gtalk: samee...@wso2.com
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> *WSO2, Inc.* 

Re: [Dev] One or more certificates rejected.

2014-11-10 Thread Omindu Rathnaweera
Hi Thushara,

In my case, replacing the cacerts file from jdk 1.6.0_45 fixed the build
error. But while going through the jdk folder I've noticed there are few
other files replaced with broken aliases. So reinstalling the jdk might be
the proper way to solve this.

Regards,
Omindu

On Mon, Nov 10, 2014 at 7:36 PM, Thushara Ranawaka 
wrote:

> Hi Omindu,
>
> Yes, I did follow this[1] question but no luck. Last week I updated the
> mac OS. Looks like Im getting these errors afterward.
>
> Below the part of the error log - 1415620329273.log.
>
> !ENTRY org.eclipse.osgi 2 0 2014-11-10 17:22:10.552
> !MESSAGE TrustEngine failure: System
> !STACK 0
> java.io.FileNotFoundException:
> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/lib/security/cacerts
> (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(FileInputStream.java:120)
> at
> org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getInputStream(KeyStoreTrustEngine.java:311)
> at
> org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getKeyStore(KeyStoreTrustEngine.java:87)
> at org.eclipse.osgi.
>
>
> [1]-
> http://stackoverflow.com/questions/20075717/having-issues-with-android-studio-project-after-os-x-10-9-upgrade-error-with-ca
>
> Thanks,
>
> On Mon, Nov 10, 2014 at 6:41 PM, Omindu Rathnaweera 
> wrote:
>
>> Hi Thushara,
>>
>> Can you check the following log file and see whether the issue is related
>> to a missing cacerts file ? Had a similar problem while building the
>> kernel on mac.
>>
>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/
>> eclipse/configuration/1415620329273.log
>>
>> Regards,
>> Omindu.
>>
>> On Mon, Nov 10, 2014 at 5:57 PM, Thushara Ranawaka 
>> wrote:
>>
>>> Yes, Im using mvn 3.0.5 and java 1.6
>>>
>>> Thanks,
>>>
>>> On Mon, Nov 10, 2014 at 5:51 PM, Harsha Kumara  wrote:
>>>
 Hi Thushara,

 Make sure you that you use maven 3.0.x and java 1.6 to build the
 products.

 Thanks,
 Harsha

 On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka 
 wrote:

> Hi,
>
> While building carbon4-kernel, product-es and product-greg fails in WSO2
> Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
> Registry - P2 Profile Generation respectively. All 3 of them are failing
> due to below error:
>
> *Installation failed.*
>
> *One or more certificates rejected. Cannot proceed with installation.*
>
> Kindly find the error log for carbon below.
>
> Anybody who overcome the same issue?
>
>
> [INFO] Executed tasks
>
> [INFO]
>
> [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
> wso2carbon-core ---
>
> [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature
>
> [INFO] Extracting feature
> org.wso2.carbon:org.wso2.carbon.core.runtime.feature
>
> [INFO] Copying resources
>
> [INFO] Running Equinox P2 Publisher Application for Repository
> Generation
>
> [INFO] Command line:
>
> /bin/sh -c cd
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
> -jar
> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application
> org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
> -metadataRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -metadataRepositoryName wso2carbon-core -artifactRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -artifactRepositoryName wso2carbon-core -publishArtifacts
> -publishArtifactRepository -compress -append
>
> Generating metadata for ..
>
> Generation completed with success [3 seconds].
>
> [INFO] Running Equinox P2 Category Publisher Application for the
> Generated Repository
>
> [INFO]
>
> [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing
> products) @ wso2carbon-core ---
>
> [INFO] Command line:
>
> /bin/sh -c cd
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
> -jar
> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
> -metadataRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -a

Re: [Dev] Wat is the way to handle DB deadlock issues

2014-11-10 Thread Senaka Fernando
Hi Amila,

>From what I understand, neither should you retry nor let the DB Util handle
this. You should generally avoid running into this situation, because if
something is deadlocked, ideally the DB Driver itself has already tried to
restructure the calls but failed to do so in a timely manner.

To resolve this, you need to find the two operations that get in the way of
each other. You already have one, which is the call to authorizeRole() in
AppFactoryResourceManagementService class. But, what we need to find is the
other one that actually succeeds. In the Registry Kernel, we have some
debugging logic in place to identify such deadlock situations, but I'm not
sure the same exists in UM Kernel. So, may be you can first try to isolate
any other code that updates UM_ROLE_PERMISSION, and try to log them to the
console. Then if you can reproduce the same issue once again, you can
perhaps track down the most likely victim.

I'm also guessing that your call to authorizeRole() in
AppFactoryResourceManagementService, seems to be invoked whenever somebody
requests for the registry. Now, that does not quite sound right. Ideally
you'd authorize somebody before accessing the registry, but just once. Can
you check whether that can be fixed as well? If this is the case, may be
the fix is much more straightforward.

Thanks,
Senaka.

On Mon, Nov 10, 2014 at 2:05 PM, Amila Maha Arachchi 
wrote:

> AFAIR, when this issue occurred, it was not under a load. This does not
> occur on all execution. This is an intermittent issue. But I am thinking of
> a way to code for failures and handle the situation.
>
> On Mon, Nov 10, 2014 at 5:03 PM, Sumedha Rubasinghe 
> wrote:
>
>> How frequent is this? does this come with a load or even on single
>> execution?
>> SQL in concern here is following?
>>
>> DELETE FROM UM_ROLE_PERMISSION WHERE UM_ROLE_NAME=? AND UM_PERMISSION_ID
>> = (SELECT UM_ID FROM UM_PERMISSION WHERE UM_RESOURCE_ID = ? AND UM_ACTION =
>> ? AND UM_TENANT_ID=?) AND UM_TENANT_ID=? AND UM_DOMAIN_ID=(SELECT
>> UM_DOMAIN_ID FROM UM_DOMAIN WHERE UM_TENANT_ID=? AND UM_DOMAIN_NAME=?)
>>
>>
>>
>> On Mon, Nov 10, 2014 at 2:55 PM, Amila Maha Arachchi 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have seen deadlock issues occurring during database transactions
>>> within our code. [1] is such a situation.
>>>
>>> What is the best way to handle such cases?
>>>
>>> Should we retry from the code where we invoked the authorisation manager
>>> in this case (i.e. AF code) or should the authorisation manager do the
>>> retry or the DatabaseUtil class should handle this?
>>>
>>> [1] https://wso2.org/jira/browse/CLOUD-310
>>>
>>> TID: [0] [SCC] [2014-10-27 06:56:21,093] ERROR
>>> {org.wso2.carbon.user.core.util.DatabaseUtil} - Error! Deadlock found
>>> when trying to get lock; try restarting transaction
>>> {org.wso2.carbon.user.core.util.DatabaseUtil}
>>>
>>> com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException:
>>> Deadlock found when trying to get lock; try restarting transaction
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>> at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
>>> at com.mysql.jdbc.Util.getInstance(Util.java:386)
>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1066)
>>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)
>>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)
>>> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
>>> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
>>> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818)
>>> at
>>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157)
>>> at
>>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2460)
>>> at
>>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2377)
>>> at
>>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2361)
>>> at
>>> org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:542)
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:718)
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:358)
>>> at
>>> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.authorizeAppIdRole(AppFactoryResourceManagementService.java:351)
>>> at
>>> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.getRegistry(AppFactoryResourceManagementService.java:246)
>>> at
>>> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResou

Re: [Dev] Writing Integration tests for Developer Studio 4.0.0

2014-11-10 Thread Krishantha Samaraweera
Hi Awathika,

On Fri, Nov 7, 2014 at 4:30 PM, Awanthika Senarath 
wrote:

> Hi,
>
> For $Subject
>  Recommended way to write integration tests for GWT based projects is
> Junit.
>  I noticed that in Codenvy they have used Mockito framework together with
> Junit, for their testing mechanism. Shall we proceed the same way?
>
>
Our recommended unit tests framework is TestNG. Mocking is required when
you write unit tests, and its not heavily used when comes to UI/Integration
tests. And you won't be able to use our TAF with Junit dependencies as its
core is depending on testNG.


>  We also need to test the SWT widget UIs, Is there a recommended way for
> SWT based widget testing in WSO2? ( One option I came across is SWTBot )
>
>  I have noted the following scenario at [1], for writing integration tests.
> @Kavith : Is there anything that I have missed?
>
>
>
>
> [1]
> https://docs.google.com/a/wso2.com/document/d/13uFuTND0UHCtCfURlVrTuaZ7qjwH7p8qnrS8HgKMi-0/edit
>
>
>
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
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] One or more certificates rejected.

2014-11-10 Thread Thushara Ranawaka
Hi Omindu,

Yes, I did follow this[1] question but no luck. Last week I updated the mac
OS. Looks like Im getting these errors afterward.

Below the part of the error log - 1415620329273.log.

!ENTRY org.eclipse.osgi 2 0 2014-11-10 17:22:10.552
!MESSAGE TrustEngine failure: System
!STACK 0
java.io.FileNotFoundException:
/Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/lib/security/cacerts
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:120)
at
org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getInputStream(KeyStoreTrustEngine.java:311)
at
org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getKeyStore(KeyStoreTrustEngine.java:87)
at org.eclipse.osgi.


[1]-
http://stackoverflow.com/questions/20075717/having-issues-with-android-studio-project-after-os-x-10-9-upgrade-error-with-ca

Thanks,

On Mon, Nov 10, 2014 at 6:41 PM, Omindu Rathnaweera  wrote:

> Hi Thushara,
>
> Can you check the following log file and see whether the issue is related
> to a missing cacerts file ? Had a similar problem while building the
> kernel on mac.
>
> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/
> eclipse/configuration/1415620329273.log
>
> Regards,
> Omindu.
>
> On Mon, Nov 10, 2014 at 5:57 PM, Thushara Ranawaka 
> wrote:
>
>> Yes, Im using mvn 3.0.5 and java 1.6
>>
>> Thanks,
>>
>> On Mon, Nov 10, 2014 at 5:51 PM, Harsha Kumara  wrote:
>>
>>> Hi Thushara,
>>>
>>> Make sure you that you use maven 3.0.x and java 1.6 to build the
>>> products.
>>>
>>> Thanks,
>>> Harsha
>>>
>>> On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka 
>>> wrote:
>>>
 Hi,

 While building carbon4-kernel, product-es and product-greg fails in WSO2
 Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
 Registry - P2 Profile Generation respectively. All 3 of them are failing
 due to below error:

 *Installation failed.*

 *One or more certificates rejected. Cannot proceed with installation.*

 Kindly find the error log for carbon below.

 Anybody who overcome the same issue?


 [INFO] Executed tasks

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
 wso2carbon-core ---

 [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature

 [INFO] Extracting feature
 org.wso2.carbon:org.wso2.carbon.core.runtime.feature

 [INFO] Copying resources

 [INFO] Running Equinox P2 Publisher Application for Repository
 Generation

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application
 org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
 -metadataRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -metadataRepositoryName wso2carbon-core -artifactRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -artifactRepositoryName wso2carbon-core -publishArtifacts
 -publishArtifactRepository -compress -append

 Generating metadata for ..

 Generation completed with success [3 seconds].

 [INFO] Running Equinox P2 Category Publisher Application for the
 Generated Repository

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing products)
 @ wso2carbon-core ---

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
 -metadataRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -artifactRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -productFile
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/carbon.product
 -executables
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
 -publishArtifacts -configs gtk.linux.x86 -flavor tooling -append

 Generating metadata for ..

 Generati

Re: [Dev] Wat is the way to handle DB deadlock issues

2014-11-10 Thread Amila Maha Arachchi
AFAIR, when this issue occurred, it was not under a load. This does not
occur on all execution. This is an intermittent issue. But I am thinking of
a way to code for failures and handle the situation.

On Mon, Nov 10, 2014 at 5:03 PM, Sumedha Rubasinghe 
wrote:

> How frequent is this? does this come with a load or even on single
> execution?
> SQL in concern here is following?
>
> DELETE FROM UM_ROLE_PERMISSION WHERE UM_ROLE_NAME=? AND UM_PERMISSION_ID =
> (SELECT UM_ID FROM UM_PERMISSION WHERE UM_RESOURCE_ID = ? AND UM_ACTION = ?
> AND UM_TENANT_ID=?) AND UM_TENANT_ID=? AND UM_DOMAIN_ID=(SELECT
> UM_DOMAIN_ID FROM UM_DOMAIN WHERE UM_TENANT_ID=? AND UM_DOMAIN_NAME=?)
>
>
>
> On Mon, Nov 10, 2014 at 2:55 PM, Amila Maha Arachchi 
> wrote:
>
>> Hi all,
>>
>> I have seen deadlock issues occurring during database transactions within
>> our code. [1] is such a situation.
>>
>> What is the best way to handle such cases?
>>
>> Should we retry from the code where we invoked the authorisation manager
>> in this case (i.e. AF code) or should the authorisation manager do the
>> retry or the DatabaseUtil class should handle this?
>>
>> [1] https://wso2.org/jira/browse/CLOUD-310
>>
>> TID: [0] [SCC] [2014-10-27 06:56:21,093] ERROR
>> {org.wso2.carbon.user.core.util.DatabaseUtil} - Error! Deadlock found
>> when trying to get lock; try restarting transaction
>> {org.wso2.carbon.user.core.util.DatabaseUtil}
>>
>> com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException:
>> Deadlock found when trying to get lock; try restarting transaction
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>> at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
>> at com.mysql.jdbc.Util.getInstance(Util.java:386)
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1066)
>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)
>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)
>> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
>> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
>> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818)
>> at
>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157)
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2460)
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2377)
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2361)
>> at
>> org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:542)
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:718)
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:358)
>> at
>> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.authorizeAppIdRole(AppFactoryResourceManagementService.java:351)
>> at
>> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.getRegistry(AppFactoryResourceManagementService.java:246)
>> at
>> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResource(AppFactoryResourceManagementService.java:159)
>> at
>> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResources(AppFactoryResourceManagementService.java:142)
>>
>>
>>
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



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


Re: [Dev] One or more certificates rejected.

2014-11-10 Thread Omindu Rathnaweera
Hi Thushara,

Can you check the following log file and see whether the issue is related
to a missing cacerts file ? Had a similar problem while building the kernel
on mac.

/Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/
eclipse/configuration/1415620329273.log

Regards,
Omindu.

On Mon, Nov 10, 2014 at 5:57 PM, Thushara Ranawaka 
wrote:

> Yes, Im using mvn 3.0.5 and java 1.6
>
> Thanks,
>
> On Mon, Nov 10, 2014 at 5:51 PM, Harsha Kumara  wrote:
>
>> Hi Thushara,
>>
>> Make sure you that you use maven 3.0.x and java 1.6 to build the products.
>>
>> Thanks,
>> Harsha
>>
>> On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka 
>> wrote:
>>
>>> Hi,
>>>
>>> While building carbon4-kernel, product-es and product-greg fails in WSO2
>>> Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
>>> Registry - P2 Profile Generation respectively. All 3 of them are failing
>>> due to below error:
>>>
>>> *Installation failed.*
>>>
>>> *One or more certificates rejected. Cannot proceed with installation.*
>>>
>>> Kindly find the error log for carbon below.
>>>
>>> Anybody who overcome the same issue?
>>>
>>>
>>> [INFO] Executed tasks
>>>
>>> [INFO]
>>>
>>> [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
>>> wso2carbon-core ---
>>>
>>> [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature
>>>
>>> [INFO] Extracting feature
>>> org.wso2.carbon:org.wso2.carbon.core.runtime.feature
>>>
>>> [INFO] Copying resources
>>>
>>> [INFO] Running Equinox P2 Publisher Application for Repository Generation
>>>
>>> [INFO] Command line:
>>>
>>> /bin/sh -c cd
>>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
>>> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
>>> -jar
>>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
>>> -nosplash -application
>>> org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
>>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
>>> -metadataRepository
>>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>>> -metadataRepositoryName wso2carbon-core -artifactRepository
>>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>>> -artifactRepositoryName wso2carbon-core -publishArtifacts
>>> -publishArtifactRepository -compress -append
>>>
>>> Generating metadata for ..
>>>
>>> Generation completed with success [3 seconds].
>>>
>>> [INFO] Running Equinox P2 Category Publisher Application for the
>>> Generated Repository
>>>
>>> [INFO]
>>>
>>> [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing products)
>>> @ wso2carbon-core ---
>>>
>>> [INFO] Command line:
>>>
>>> /bin/sh -c cd
>>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
>>> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
>>> -jar
>>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
>>> -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
>>> -metadataRepository
>>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>>> -artifactRepository
>>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>>> -productFile
>>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/carbon.product
>>> -executables
>>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
>>> -publishArtifacts -configs gtk.linux.x86 -flavor tooling -append
>>>
>>> Generating metadata for ..
>>>
>>> Generation completed with success [0 seconds].
>>>
>>> [INFO]
>>>
>>> [INFO] --- carbon-p2-plugin:1.5.3:materialize-product
>>> (materialize-product) @ wso2carbon-core ---
>>>
>>> [INFO] Command line:
>>>
>>> /bin/sh -c cd
>>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
>>> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
>>> -jar
>>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
>>> -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
>>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>>> -artifactRepository
>>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>>> -installIU carbon.product.id -profileProperties
>>> org.eclipse.update.install.features=true -profile default -bundlepool
>>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon
>>> -shared
>>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel

Re: [Dev] [EMM] What is meant by "Pass-code History" ?

2014-11-10 Thread Pasanthi Amarasekera
Hi,

+1 for Sameera's suggestion.

@UX team
WDYT ?

Thank you.

Regards,
Pasanthi.

On Mon, Nov 10, 2014 at 5:12 PM, Sameera Perera  wrote:

> Have to agree with ChathuraD that this is the common term. But, we should
> add some contextual help here.
>
> On Mon, Nov 10, 2014 at 11:21 AM, Chathura Dilan 
> wrote:
>
>> I'm not sure. General term could be 'Passcode History'[1]
>>
>> [1] -
>> https://www.google.lk/search?q=passcode+history#q=%22passcode+history%22
>>
>> On Mon, Nov 10, 2014 at 10:43 AM, Dilan Udara Ariyaratne > > wrote:
>>
>>> +1, Thanks for creating the JIRA.
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Mon, Nov 10, 2014 at 10:32 AM, Pasanthi Amarasekera <
>>> pasan...@wso2.com> wrote:
>>>
 Hi,

 I also had the same problem when I was trying to give a passcode policy
 to my Android device for testing purposes. Thus created this JIRA [1]. We
 need to fix this in CDM 2.0 (if it has the same functionality as this).
 WDYT ?

 [1]https://wso2.org/jira/browse/EMM-756

 Thank you.

 Regards,
 Pasanthi.



 On Mon, Nov 10, 2014 at 9:17 AM, Inosh Perera  wrote:

> Hi Dilan,
> As you can see in the doc Lakshman mentioned, Passcode has an
> expiration time, after the expiration, user will have to change the
> password. In order to stop user from using the same passwords, he recently
> used, pass-code history has to be set.
>
> Regards,
> inosh
>
> On Mon, Nov 10, 2014 at 8:55 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> Hi Dilan,
>>
>> documentation[1] says. is that helpful?
>>
>> The end-user will not be allowed to reuse a passcode that he/she
>> previously entered until he/she exceeds the set password history
>> length (e.g., if the passcode history length is 3 and your passcode
>> currently is 21345, you can not enter 21345 as the passcode in the
>> next three consecutive passcode rotation cycles).
>>
>> [1] https://docs.wso2.com/display/EMM110/EMM+Policy+Settings
>>
>> On Mon, Nov 10, 2014 at 7:00 AM, Dilan Udara Ariyaratne <
>> dil...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I was going through a check of the list of operations supported by
>>> wso2 emm
>>> on Android devices.
>>>
>>> Under pass-code policy, when the corresponding policy setting form
>>> prompts up,
>>> It asks for a required field called "Pass-code History". (See the
>>> screen-shot)
>>>
>>> What is the kind of input that we are supposed to give for this?
>>>
>>> Appreciate any feedback on this.
>>>
>>> Thanks.
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Pasanthi Amarasekera
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 77 9541735

>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Chatura Dilan Perera
>> *(Senior Software Engineer** - WSO2 Inc.**)*
>> www.dilan.me
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> --
>
> *Sameera Perera*
> Director of Engineering
> gtalk: samee...@wso2.com
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> *WSO2, Inc.* 
> lean.enterprise.middleware
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Pasanthi Amarasekera
WSO2 Inc: http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] One or more certificates rejected.

2014-11-10 Thread Thushara Ranawaka
Yes, Im using mvn 3.0.5 and java 1.6

Thanks,

On Mon, Nov 10, 2014 at 5:51 PM, Harsha Kumara  wrote:

> Hi Thushara,
>
> Make sure you that you use maven 3.0.x and java 1.6 to build the products.
>
> Thanks,
> Harsha
>
> On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka 
> wrote:
>
>> Hi,
>>
>> While building carbon4-kernel, product-es and product-greg fails in WSO2
>> Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
>> Registry - P2 Profile Generation respectively. All 3 of them are failing
>> due to below error:
>>
>> *Installation failed.*
>>
>> *One or more certificates rejected. Cannot proceed with installation.*
>>
>> Kindly find the error log for carbon below.
>>
>> Anybody who overcome the same issue?
>>
>>
>> [INFO] Executed tasks
>>
>> [INFO]
>>
>> [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
>> wso2carbon-core ---
>>
>> [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature
>>
>> [INFO] Extracting feature
>> org.wso2.carbon:org.wso2.carbon.core.runtime.feature
>>
>> [INFO] Copying resources
>>
>> [INFO] Running Equinox P2 Publisher Application for Repository Generation
>>
>> [INFO] Command line:
>>
>> /bin/sh -c cd
>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
>> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
>> -jar
>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
>> -nosplash -application
>> org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
>> -metadataRepository
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>> -metadataRepositoryName wso2carbon-core -artifactRepository
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>> -artifactRepositoryName wso2carbon-core -publishArtifacts
>> -publishArtifactRepository -compress -append
>>
>> Generating metadata for ..
>>
>> Generation completed with success [3 seconds].
>>
>> [INFO] Running Equinox P2 Category Publisher Application for the
>> Generated Repository
>>
>> [INFO]
>>
>> [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing products) @
>> wso2carbon-core ---
>>
>> [INFO] Command line:
>>
>> /bin/sh -c cd
>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
>> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
>> -jar
>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
>> -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
>> -metadataRepository
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>> -artifactRepository
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>> -productFile
>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/carbon.product
>> -executables
>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
>> -publishArtifacts -configs gtk.linux.x86 -flavor tooling -append
>>
>> Generating metadata for ..
>>
>> Generation completed with success [0 seconds].
>>
>> [INFO]
>>
>> [INFO] --- carbon-p2-plugin:1.5.3:materialize-product
>> (materialize-product) @ wso2carbon-core ---
>>
>> [INFO] Command line:
>>
>> /bin/sh -c cd
>> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
>> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
>> -jar
>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
>> -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>> -artifactRepository
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
>> -installIU carbon.product.id -profileProperties
>> org.eclipse.update.install.features=true -profile default -bundlepool
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon
>> -shared
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon/p2
>> -destination
>> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon/default
>> -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
>>
>> Installing carbon.product.id 4.3.0.SNAPSHOT.
>>
>> Installation failed.
>>
>> One or more certificates rejected. Cannot proceed with installation.
>>
>> Application failed, log file location:
>> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/141562

Re: [Dev] One or more certificates rejected.

2014-11-10 Thread Harsha Kumara
Hi Thushara,

Make sure you that you use maven 3.0.x and java 1.6 to build the products.

Thanks,
Harsha

On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka 
wrote:

> Hi,
>
> While building carbon4-kernel, product-es and product-greg fails in WSO2
> Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
> Registry - P2 Profile Generation respectively. All 3 of them are failing
> due to below error:
>
> *Installation failed.*
>
> *One or more certificates rejected. Cannot proceed with installation.*
>
> Kindly find the error log for carbon below.
>
> Anybody who overcome the same issue?
>
>
> [INFO] Executed tasks
>
> [INFO]
>
> [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
> wso2carbon-core ---
>
> [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature
>
> [INFO] Extracting feature
> org.wso2.carbon:org.wso2.carbon.core.runtime.feature
>
> [INFO] Copying resources
>
> [INFO] Running Equinox P2 Publisher Application for Repository Generation
>
> [INFO] Command line:
>
> /bin/sh -c cd
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
> -jar
> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application
> org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
> -metadataRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -metadataRepositoryName wso2carbon-core -artifactRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -artifactRepositoryName wso2carbon-core -publishArtifacts
> -publishArtifactRepository -compress -append
>
> Generating metadata for ..
>
> Generation completed with success [3 seconds].
>
> [INFO] Running Equinox P2 Category Publisher Application for the Generated
> Repository
>
> [INFO]
>
> [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing products) @
> wso2carbon-core ---
>
> [INFO] Command line:
>
> /bin/sh -c cd
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
> -jar
> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
> -metadataRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -artifactRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -productFile
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/carbon.product
> -executables
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
> -publishArtifacts -configs gtk.linux.x86 -flavor tooling -append
>
> Generating metadata for ..
>
> Generation completed with success [0 seconds].
>
> [INFO]
>
> [INFO] --- carbon-p2-plugin:1.5.3:materialize-product
> (materialize-product) @ wso2carbon-core ---
>
> [INFO] Command line:
>
> /bin/sh -c cd
> /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
> /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
> -jar
> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
> -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -artifactRepository
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
> -installIU carbon.product.id -profileProperties
> org.eclipse.update.install.features=true -profile default -bundlepool
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon
> -shared
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon/p2
> -destination
> file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon/default
> -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
>
> Installing carbon.product.id 4.3.0.SNAPSHOT.
>
> Installation failed.
>
> One or more certificates rejected. Cannot proceed with installation.
>
> Application failed, log file location:
> /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1415620329273.log
>
>
> [INFO]
> 
>
> [INFO] Reactor Summary:
>
> [INFO]
>
> [INFO] WSO2 Carbon - Parent Pom .. SUCCESS [0.188s]
>
> [INFO] WSO2 

[Dev] One or more certificates rejected.

2014-11-10 Thread Thushara Ranawaka
Hi,

While building carbon4-kernel, product-es and product-greg fails in WSO2
Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
Registry - P2 Profile Generation respectively. All 3 of them are failing
due to below error:

*Installation failed.*

*One or more certificates rejected. Cannot proceed with installation.*

Kindly find the error log for carbon below.

Anybody who overcome the same issue?


[INFO] Executed tasks

[INFO]

[INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
wso2carbon-core ---

[INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature

[INFO] Extracting feature
org.wso2.carbon:org.wso2.carbon.core.runtime.feature

[INFO] Copying resources

[INFO] Running Equinox P2 Publisher Application for Repository Generation

[INFO] Command line:

/bin/sh -c cd
/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
/Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
-jar
/Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application
org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
-metadataRepository
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
-metadataRepositoryName wso2carbon-core -artifactRepository
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
-artifactRepositoryName wso2carbon-core -publishArtifacts
-publishArtifactRepository -compress -append

Generating metadata for ..

Generation completed with success [3 seconds].

[INFO] Running Equinox P2 Category Publisher Application for the Generated
Repository

[INFO]

[INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing products) @
wso2carbon-core ---

[INFO] Command line:

/bin/sh -c cd
/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
/Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
-jar
/Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
-metadataRepository
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
-artifactRepository
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
-productFile
/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/carbon.product
-executables
/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
-publishArtifacts -configs gtk.linux.x86 -flavor tooling -append

Generating metadata for ..

Generation completed with success [0 seconds].

[INFO]

[INFO] --- carbon-p2-plugin:1.5.3:materialize-product (materialize-product)
@ wso2carbon-core ---

[INFO] Command line:

/bin/sh -c cd
/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel &&
/Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
-jar
/Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application org.eclipse.equinox.p2.director -metadataRepository
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
-artifactRepository
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
-installIU carbon.product.id -profileProperties
org.eclipse.update.install.features=true -profile default -bundlepool
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon
-shared
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon/p2
-destination
file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon/default
-p2.os linux -p2.ws gtk -p2.arch x86 -roaming

Installing carbon.product.id 4.3.0.SNAPSHOT.

Installation failed.

One or more certificates rejected. Cannot proceed with installation.

Application failed, log file location:
/Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1415620329273.log


[INFO]


[INFO] Reactor Summary:

[INFO]

[INFO] WSO2 Carbon - Parent Pom .. SUCCESS [0.188s]

[INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.083s]

[INFO] WSO2 Carbon - Default Authenticator Stub .. SUCCESS [4.506s]

[INFO] WSO2 Carbon Core - Common Stub  SUCCESS [6.497s]

[INFO] WSO2 Carbon - Component Manager Stub .. SUCCESS [4.048s]

[INFO] WSO2 Carbon - Server Role Management Stub . SUCCESS [1.820s]

[INFO] WSO2

Re: [Dev] [EMM] What is meant by "Pass-code History" ?

2014-11-10 Thread Sameera Perera
Have to agree with ChathuraD that this is the common term. But, we should
add some contextual help here.

On Mon, Nov 10, 2014 at 11:21 AM, Chathura Dilan  wrote:

> I'm not sure. General term could be 'Passcode History'[1]
>
> [1] -
> https://www.google.lk/search?q=passcode+history#q=%22passcode+history%22
>
> On Mon, Nov 10, 2014 at 10:43 AM, Dilan Udara Ariyaratne 
> wrote:
>
>> +1, Thanks for creating the JIRA.
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Mon, Nov 10, 2014 at 10:32 AM, Pasanthi Amarasekera > > wrote:
>>
>>> Hi,
>>>
>>> I also had the same problem when I was trying to give a passcode policy
>>> to my Android device for testing purposes. Thus created this JIRA [1]. We
>>> need to fix this in CDM 2.0 (if it has the same functionality as this).
>>> WDYT ?
>>>
>>> [1]https://wso2.org/jira/browse/EMM-756
>>>
>>> Thank you.
>>>
>>> Regards,
>>> Pasanthi.
>>>
>>>
>>>
>>> On Mon, Nov 10, 2014 at 9:17 AM, Inosh Perera  wrote:
>>>
 Hi Dilan,
 As you can see in the doc Lakshman mentioned, Passcode has an
 expiration time, after the expiration, user will have to change the
 password. In order to stop user from using the same passwords, he recently
 used, pass-code history has to be set.

 Regards,
 inosh

 On Mon, Nov 10, 2014 at 8:55 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> Hi Dilan,
>
> documentation[1] says. is that helpful?
>
> The end-user will not be allowed to reuse a passcode that he/she
> previously entered until he/she exceeds the set password history
> length (e.g., if the passcode history length is 3 and your passcode
> currently is 21345, you can not enter 21345 as the passcode in the
> next three consecutive passcode rotation cycles).
>
> [1] https://docs.wso2.com/display/EMM110/EMM+Policy+Settings
>
> On Mon, Nov 10, 2014 at 7:00 AM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> Hi All,
>>
>> I was going through a check of the list of operations supported by
>> wso2 emm
>> on Android devices.
>>
>> Under pass-code policy, when the corresponding policy setting form
>> prompts up,
>> It asks for a required field called "Pass-code History". (See the
>> screen-shot)
>>
>> What is the kind of input that we are supposed to give for this?
>>
>> Appreciate any feedback on this.
>>
>> Thanks.
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


>>>
>>>
>>> --
>>> Pasanthi Amarasekera
>>> WSO2 Inc: http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 77 9541735
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
>
> Chatura Dilan Perera
> *(Senior Software Engineer** - WSO2 Inc.**)*
> www.dilan.me
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

--

*Sameera Perera*
Director of Engineering
gtalk: samee...@wso2.com
Tel : 94 11 214 5345
Fax :94 11 2145300
*WSO2, Inc.* 
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invitation: Http Inbound Endpoint Code Review -Part 2 @ Mon Nov 10, 2014 2pm - 3pm (Isuru Ranawaka)

2014-11-10 Thread Isuru Ranawaka
Hi ,
Following are the code review notes.

  Provide more  meaningful error messages when logging errors.
  Properly configure Intellij idea for short cut keys and disable OS level
short cuts.
  Use template for generate WSO2-License files.

  Introduce Manager level class which is outside from HTTP inbound endpoint
implementation to start and stop IO reactor.
  Introduce API in passthru transport level to reuse codes in Passthru
transport code.
  Remove deprecated methods and upgrade to HttpCore newer version.



On Fri, Nov 7, 2014 at 1:50 PM, Isuru Ranawaka  wrote:

> more details »
> 
> Http Inbound Endpoint Code Review -Part 2
> *When*
> Mon Nov 10, 2014 2pm – 3pm Colombo
> *Where*
> 1 st Floor Meeting Room (map
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/http-inbound
> 
> *Calendar*
> Isuru Ranawaka
> *Who*
> •
> Isuru Ranawaka - organizer
> •
> Srinath Perera
> •
> Ravi Undupitiya
> •
> Afkham Azeez
> •
> Shafreen Anfar
> •
> Ishan Jayawardena
> •
> Isuru Udana
> •
> Sandamal Weerasinghe
> •
> Malaka Silva
> •
> Chanaka Fernando
> •
> Jeewantha Dharmaparakrama
> •
> Kasun Indrasiri
> •
> Ravindra Ranwala
> •
> dev@wso2.org
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google Calendar 
>
> You are receiving this courtesy email at the account dev@wso2.org because
> you are an attendee of this event.
>
> To stop receiving future updates for this event, decline this event.
> Alternatively you can sign up for a Google account at
> https://www.google.com/calendar/ and control your notification settings
> for your entire calendar.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Wat is the way to handle DB deadlock issues

2014-11-10 Thread Sumedha Rubasinghe
How frequent is this? does this come with a load or even on single
execution?
SQL in concern here is following?

DELETE FROM UM_ROLE_PERMISSION WHERE UM_ROLE_NAME=? AND UM_PERMISSION_ID =
(SELECT UM_ID FROM UM_PERMISSION WHERE UM_RESOURCE_ID = ? AND UM_ACTION = ?
AND UM_TENANT_ID=?) AND UM_TENANT_ID=? AND UM_DOMAIN_ID=(SELECT
UM_DOMAIN_ID FROM UM_DOMAIN WHERE UM_TENANT_ID=? AND UM_DOMAIN_NAME=?)



On Mon, Nov 10, 2014 at 2:55 PM, Amila Maha Arachchi 
wrote:

> Hi all,
>
> I have seen deadlock issues occurring during database transactions within
> our code. [1] is such a situation.
>
> What is the best way to handle such cases?
>
> Should we retry from the code where we invoked the authorisation manager
> in this case (i.e. AF code) or should the authorisation manager do the
> retry or the DatabaseUtil class should handle this?
>
> [1] https://wso2.org/jira/browse/CLOUD-310
>
> TID: [0] [SCC] [2014-10-27 06:56:21,093] ERROR
> {org.wso2.carbon.user.core.util.DatabaseUtil} - Error! Deadlock found when
> trying to get lock; try restarting transaction
> {org.wso2.carbon.user.core.util.DatabaseUtil}
>
> com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException:
> Deadlock found when trying to get lock; try restarting transaction
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> at com.mysql.jdbc.Util.getInstance(Util.java:386)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1066)
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818)
> at
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2460)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2377)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2361)
> at
> org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:542)
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:718)
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:358)
> at
> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.authorizeAppIdRole(AppFactoryResourceManagementService.java:351)
> at
> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.getRegistry(AppFactoryResourceManagementService.java:246)
> at
> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResource(AppFactoryResourceManagementService.java:159)
> at
> org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResources(AppFactoryResourceManagementService.java:142)
>
>
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>


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


Re: [Dev] Allowing 'http' for revokeAPI from KM

2014-11-10 Thread Sumedha Rubasinghe
It will be like broadcasting your tokens to rest of the users.
If someone still wants to take the risk, we can tell them how to do it. But
not have as part of standard product configuration.


On Mon, Nov 10, 2014 at 3:34 PM, Vijayaratha Vijayasingam 
wrote:

>
>
> On 10 November 2014 15:33, Vijayaratha Vijayasingam 
> wrote:
>
>> Hi all;
>>
>> We have default REST APIs  which are deployed in gateway, call 'https'
>> oauth endpoints.
>> When we regenerate application token, we call revoke API (REST API
>> deployed at gateway) to clear cache entries.
>> Currently, we restrict this API call only via 'https'.  But we should
>> allow user to access this api  via 'http'  too? If internal network is
>> secured, users prefer to use 'http' to call gateway APIs?
>>
>> Thanks.
>> --
>> -Ratha
>>
>
>
>
> --
> -Ratha
>



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


Re: [Dev] Can not subscribe to API with user has subscriber permission

2014-11-10 Thread Waruna Perera
Hi Dinesh,

Found out that request was wrong. Thanks for the reply.


On Mon, Nov 10, 2014 at 3:30 PM, Dinesh J Weerakkody 
wrote:

> Hi Waruna,
>
> This error occurs when API is not available in the registry. I hope that
> you are running a jmeter script. If so, please keep some time gap between
> requests because server take some time to store and make available newly
> created APIs.
>
> Thanks,
>
> On Mon, Nov 10, 2014 at 1:27 PM, Waruna Perera  wrote:
>
>>
>> Hi,
>>
>> I am writing a test cae for JWT claim checks. For that I created a user
>> with subscriber permission. But when user sends the subscriber request it
>> gives following error. What could be the reason?
>>
>> UserAwareAPIConsumer Failed to get API from :
>> /apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
>> INFO
>>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>> org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
>> Resource does not exist at path
>> /_system/governance/apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
>>
>> Thanks,
>>
>> --
>> 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
>>
>>
>
>
> --
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>



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


Re: [Dev] Allowing 'http' for revokeAPI from KM

2014-11-10 Thread Vijayaratha Vijayasingam
On 10 November 2014 15:33, Vijayaratha Vijayasingam  wrote:

> Hi all;
>
> We have default REST APIs  which are deployed in gateway, call 'https'
> oauth endpoints.
> When we regenerate application token, we call revoke API (REST API
> deployed at gateway) to clear cache entries.
> Currently, we restrict this API call only via 'https'.  But we should
> allow user to access this api  via 'http'  too? If internal network is
> secured, users prefer to use 'http' to call gateway APIs?
>
> Thanks.
> --
> -Ratha
>



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


Re: [Dev] Can not subscribe to API with user has subscriber permission

2014-11-10 Thread Dinesh J Weerakkody
Hi Waruna,

This error occurs when API is not available in the registry. I hope that
you are running a jmeter script. If so, please keep some time gap between
requests because server take some time to store and make available newly
created APIs.

Thanks,

On Mon, Nov 10, 2014 at 1:27 PM, Waruna Perera  wrote:

>
> Hi,
>
> I am writing a test cae for JWT claim checks. For that I created a user
> with subscriber permission. But when user sends the subscriber request it
> gives following error. What could be the reason?
>
> UserAwareAPIConsumer Failed to get API from :
> /apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
> INFO
>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
> org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
> Resource does not exist at path
> /_system/governance/apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
>
> Thanks,
>
> --
> 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
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integrating Python modules to the Maven build process

2014-11-10 Thread Gayan Gunarathne
Hi Chamila

Did you check with maven assembly plugin[1]? I guess we are already used
this plugin in the project itself.

http://maven.apache.org/plugins/maven-assembly-plugin/

Thanks,
Gayan

On Mon, Nov 10, 2014 at 1:02 PM, Chamila De Alwis  wrote:

> Update:
>
> I used the maven-antrun-plugin to zip the folder contents, as it was far
> simpler than the exec plugin.
>
> 
> 
> 
> *maven-antrun-plugin*
> 
> 
> package
> 
> run
> 
> 
> 
>
>
> * destfile="${project.build.directory}/artifact-name-${project.version}.zip"
> basedir="parentdir/contentdir"/>*
> 
> 
> 
> 
> 
> 
> 
>
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Fri, Nov 7, 2014 at 12:10 PM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> I have a python module that should be integrated in to the rest of the
>> Java code in a project with Maven. The production code folder in this
>> module should be zipped up and moved to the target folder when maven
>> install is run.
>>
>> The only option I've found so far is to map actions in Python's
>> setuptools to Maven through exec-maven-plugin[1]. However my requirement
>> seems simpler than writing a setup.py file.
>>
>> Are there any other methods to approach this?
>>
>>
>> [1] - http://shiningpanda.com/python-java-unified-build-process-14.html
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gay...@wso2.com  | mobile : +94 766819985
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Wat is the way to handle DB deadlock issues

2014-11-10 Thread Amila Maha Arachchi
Hi all,

I have seen deadlock issues occurring during database transactions within
our code. [1] is such a situation.

What is the best way to handle such cases?

Should we retry from the code where we invoked the authorisation manager in
this case (i.e. AF code) or should the authorisation manager do the retry
or the DatabaseUtil class should handle this?

[1] https://wso2.org/jira/browse/CLOUD-310

TID: [0] [SCC] [2014-10-27 06:56:21,093] ERROR
{org.wso2.carbon.user.core.util.DatabaseUtil} - Error! Deadlock found when
trying to get lock; try restarting transaction
{org.wso2.carbon.user.core.util.DatabaseUtil}

com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock
found when trying to get lock; try restarting transaction
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.Util.getInstance(Util.java:386)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1066)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818)
at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2460)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2377)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2361)
at
org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:542)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:718)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:358)
at
org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.authorizeAppIdRole(AppFactoryResourceManagementService.java:351)
at
org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.getRegistry(AppFactoryResourceManagementService.java:246)
at
org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResource(AppFactoryResourceManagementService.java:159)
at
org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResources(AppFactoryResourceManagementService.java:142)



-- 
*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] ESB platform build failiure : Compilation failure in Apache Synapse - Non-blocking HTTP/s Transport

2014-11-10 Thread Shashika Karunatilaka
Hi,

Im getting an error when building ESB platform from source(error log also
attached),

=

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0:compile
(default-compile) on project synapse-nhttp-transport: Compilation failure:
Compilation failure:

[ERROR]
/Users/shashika/Documents/WSO2_PRODUCT_BUILD/carbon/platform/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/certificatevalidation/ocsp/OCSPVerifier.java:[229,41]
cannot find symbol

[ERROR] symbol  : constructor
AuthorityInformationAccess(org.bouncycastle.asn1.ASN1Sequence)

[ERROR] location: class
org.bouncycastle.asn1.x509.AuthorityInformationAccess

[ERROR]

[ERROR]
/Users/shashika/Documents/WSO2_PRODUCT_BUILD/carbon/platform/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/certificatevalidation/crl/CRLVerifier.java:[149,60]
incompatible types

[ERROR] found   : org.bouncycastle.asn1.ASN1Primitive

[ERROR] required: org.bouncycastle.asn1.DERObject

 end of error log ===


my java version is 1.6.0_65, and maven version is 3.0.5

downloaded the platform from this [1]
[1] https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/


Thank you.
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792

[INFO] 

[INFO] Reactor Summary:

[INFO] 

[INFO] ODE ... SUCCESS [0.343s]

[INFO] ODE :: Agents . SUCCESS [1.207s]

[INFO] ODE :: Utilities .. SUCCESS [1.983s]

[INFO] ODE :: Java Concurrent Objects (JACOB)  SUCCESS [0.571s]

[INFO] ODE :: BPEL Schemas ... SUCCESS [4.255s]

[INFO] ODE :: BPEL Test Script Files . SUCCESS [0.457s]

[INFO] ODE :: OBJ  SUCCESS [0.465s]

[INFO] ODE :: APIs ... SUCCESS [0.653s]

[INFO] ODE :: JCA Connector .. SUCCESS [0.291s]

[INFO] ODE :: DAO Interfaces . SUCCESS [0.325s]

[INFO] ODE :: OpenJPA DAO Impl ... SUCCESS [3.544s]

[INFO] ODE :: JCA Resource Archive ... SUCCESS [0.309s]

[INFO] ODE :: JCA Server . SUCCESS [0.262s]

[INFO] ODE :: BPEL Scheduler Simple .. SUCCESS [0.535s]

[INFO] ODE :: BPEL Compiler .. SUCCESS [1.358s]

[INFO] ODE :: Interface Layers Common  SUCCESS [0.417s]

[INFO] ODE :: BPEL Query Language  SUCCESS [0.771s]

[INFO] ODE :: Hibernate DAO Implementation ... SUCCESS [4.961s]

[INFO] ODE :: Command Line Tools . SUCCESS [0.371s]

[INFO] ODE :: Process Store .. SUCCESS [2.256s]

[INFO] ODE :: Runtime Engine . SUCCESS [1.745s]

[INFO] ODE :: OpenJPA DDL Generation . SUCCESS [5.962s]

[INFO] ODE :: Hibernate DAO DDL Generation ... SUCCESS [3.112s]

[INFO] ODE :: JCA Connector Implementation ... SUCCESS [0.335s]

[INFO] ODE :: BPEL Tests . SUCCESS [0.629s]

[INFO] ODE :: AXIS2 .. SUCCESS [0.732s]

[INFO] ODE :: Extensions . SUCCESS [0.010s]

[INFO] ODE :: Extensions E4X . SUCCESS [0.477s]

[INFO] ODE :: Extensions Long Running  SUCCESS [0.357s]

[INFO] ode.wso2 .. SUCCESS [2.200s]

[INFO] Apache Synapse - Secure vault . SUCCESS [0.875s]

[INFO] Apache Synapse  SUCCESS [0.742s]

[INFO] Apache Synapse - Commons classes .. SUCCESS [1.246s]

[INFO] Apache Synapse - Transports ... SUCCESS [0.504s]

[INFO] Apache Synapse - Non-blocking HTTP/s Transport  FAILURE [0.701s]

[INFO] Apache Synapse - PIPE Transport ... SKIPPED

[INFO] Apache Synapse - VFS Transport  SKIPPED

[INFO] Apache Synapse - Tasks classes  SKIPPED

[INFO] Apache Synapse - Core . SKIPPED

[INFO] Apache Synapse - FIX Transport  SKIPPED

[INFO] Apache Synapse - Extensions ... SKIPPED

[INFO] Apache Synapse - Samples .. SKIPPED

[INFO] Apache Synapse - Patches .. SKIPPED

[INFO] Apache Synapse - Experimental code  SKIPPED

[INFO] Apache Synapse - Web Application .. SKIPPED

[INFO] Apach