Re: [Dev] Clarification on user account unlock - self signup users

2018-07-02 Thread Gayan Yalpathwala
On Tue, Jul 3, 2018 at 11:26 AM Gayan Yalpathwala  wrote:

> Hi Isura,
>
> I have encountered the same problem in IS 5.3.0 as well. The user account
> gets locked after 3 failed attempts, but gets unlocked after 5 minutes,
> whereas I need the account to be unlocked by the admin.
>
> Here are the configuration values I have set in identity-event.properties.
>
> account.lock.handler.enable=true
> account.lock.handler.login.fail.timeout.ratio=2
> account.lock.handler.On.Failure.Max.Attempts=3
> account.lock.handler.Time=5
>
> I have also tried after setting below properties to 0, without any luck.
>
>- account.lock.handler.Time in identity-event.properties (Also tried
>after changing the respective property in mgt. console).
>
> When this value is set to 0, account status is shown as locked in user
profile, although it gets unlocked right away after a success login.

>
>- Authentication.Policy.Account.Lock.Time in identity-event.properties.
>
> Sorry, I meant identity-mgt.properties* here.

> Thanks,
>
>
>
> On Thu, Feb 22, 2018 at 6:15 PM Harsha Thirimanna 
> wrote:
>
>>
>>
>> On Thu, Feb 22, 2018 at 2:55 PM, Isura Karunaratne 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>>
>>>
>>> On Thu, Feb 22, 2018 at 2:26 PM, Isuru Uyanage  wrote:
>>>
>>>> Hi All,
>>>>
>>>> I tried the steps included in doc [1]. As it describes, after 5 invalid
>>>> login attempts, the particular user account gets locked. After 5 minutes,
>>>> as per the config, once user tries to log in with correct credentials, he
>>>> is able to log in and the account gets unlocked.
>>>>
>>>> As per doc[2] step 6, it says if
>>>> Authentication.Policy.Account.Lock.Time is not equal to zero only
>>>> above process happens. If it is 0, then the admin user needs to unlock the
>>>> user account through Management Console or through Admin Services. [3]
>>>>
>>>> When a user gets self signed up, the role which that user gets assigned
>>>> is  *Internal/selfsignup* and permission given is login only. But even
>>>> if above value is 0, selfsignup user can get his account unlocked after the
>>>> specified time. Admin user does not need to do it through the Management
>>>> Console.
>>>>
>>>> Therefore, what is the actual purpose of 
>>>> Authentication.Policy.Account.Lock.Time
>>>> property  in /repository/conf/identity/identity-mgt.properties
>>>> file?
>>>>
>>>
>>> This doc needs to be corrected.  It should be account.lock.handler.Time
>>> in identity.xml. But, file based configuratoins applied for super tenant at
>>> the first server startup only.
>>>
>>
>> ​@Isura,
>>
>> Is this from IS 5.5.0 onward only ?​
>>
>>
>>
>>>
>>> Ideally, the self signup users should be unlocked based on unlock time
>>> configurations.
>>>
>>> Regads,
>>> Isura.
>>>
>>> That need
>>>
>>>>
>>>> Is above information in the doc[2] and doc[3] not valid for
>>>> self-signup users?
>>>>
>>>> [1] -
>>>> https://docs.wso2.com/display/IS550/Self+Sign+Up+and+Account+Confirmation#SelfSignUpandAccountConfirmation-Tryoutselfsignup
>>>> [2] -
>>>> https://docs.wso2.com/display/IS550/Account+Locking+by+Failed+Login+Attempts
>>>> [3] -
>>>> https://docs.wso2.com/display/IS550/Locking+a+Specific+User+Account
>>>>
>>>>
>>>> Any thoughts are appreciated.
>>>>
>>>>
>>>> *Thanks and Best Regards,*
>>>>
>>>> *Isuru Uyanage*
>>>> *Software Engineer - QA | WSO2*
>>>> *Mobile : **+94 77 <+94%2077%20767%201807> 55 30752*
>>>> *LinkedIn: **https://www.linkedin.com/in/isuru-uyanage/
>>>> <https://www.linkedin.com/in/isuru-uyanage/>*
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Isura Dilhara Karunaratne*
>>> Associate Technical Lead | WSO2
>>> Email: is...@wso2.com
>>> Mob : +94 772 254 810 <+94%2077%20225%204810>
>>> Blog : http://isurad.blogspot.com/
>>>
>>>
>>>
>>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Gayan Kaushalya Yalpathwala*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> LK: +94 71 868 2704
> US: (408) 386-7521
>
> <https://wso2.com/events/>
>


-- 
*Gayan Kaushalya Yalpathwala*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
US: (408) 386-7521

<https://wso2.com/events/>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification on user account unlock - self signup users

2018-07-02 Thread Gayan Yalpathwala
Hi Isura,

I have encountered the same problem in IS 5.3.0 as well. The user account
gets locked after 3 failed attempts, but gets unlocked after 5 minutes,
whereas I need the account to be unlocked by the admin.

Here are the configuration values I have set in identity-event.properties.

account.lock.handler.enable=true
account.lock.handler.login.fail.timeout.ratio=2
account.lock.handler.On.Failure.Max.Attempts=3
account.lock.handler.Time=5

I have also tried after setting below properties to 0, without any luck.

   - account.lock.handler.Time in identity-event.properties (Also tried
   after changing the respective property in mgt. console).
   - Authentication.Policy.Account.Lock.Time in identity-event.properties.

Thanks,



On Thu, Feb 22, 2018 at 6:15 PM Harsha Thirimanna  wrote:

>
>
> On Thu, Feb 22, 2018 at 2:55 PM, Isura Karunaratne  wrote:
>
>> Hi Isuru,
>>
>>
>>
>> On Thu, Feb 22, 2018 at 2:26 PM, Isuru Uyanage  wrote:
>>
>>> Hi All,
>>>
>>> I tried the steps included in doc [1]. As it describes, after 5 invalid
>>> login attempts, the particular user account gets locked. After 5 minutes,
>>> as per the config, once user tries to log in with correct credentials, he
>>> is able to log in and the account gets unlocked.
>>>
>>> As per doc[2] step 6, it says if
>>> Authentication.Policy.Account.Lock.Time is not equal to zero only above
>>> process happens. If it is 0, then the admin user needs to unlock the user
>>> account through Management Console or through Admin Services. [3]
>>>
>>> When a user gets self signed up, the role which that user gets assigned
>>> is  *Internal/selfsignup* and permission given is login only. But even
>>> if above value is 0, selfsignup user can get his account unlocked after the
>>> specified time. Admin user does not need to do it through the Management
>>> Console.
>>>
>>> Therefore, what is the actual purpose of 
>>> Authentication.Policy.Account.Lock.Time
>>> property  in /repository/conf/identity/identity-mgt.properties
>>> file?
>>>
>>
>> This doc needs to be corrected.  It should be account.lock.handler.Time
>> in identity.xml. But, file based configuratoins applied for super tenant at
>> the first server startup only.
>>
>
> ​@Isura,
>
> Is this from IS 5.5.0 onward only ?​
>
>
>
>>
>> Ideally, the self signup users should be unlocked based on unlock time
>> configurations.
>>
>> Regads,
>> Isura.
>>
>> That need
>>
>>>
>>> Is above information in the doc[2] and doc[3] not valid for
>>> self-signup users?
>>>
>>> [1] -
>>> https://docs.wso2.com/display/IS550/Self+Sign+Up+and+Account+Confirmation#SelfSignUpandAccountConfirmation-Tryoutselfsignup
>>> [2] -
>>> https://docs.wso2.com/display/IS550/Account+Locking+by+Failed+Login+Attempts
>>> [3] -
>>> https://docs.wso2.com/display/IS550/Locking+a+Specific+User+Account
>>>
>>>
>>> Any thoughts are appreciated.
>>>
>>>
>>> *Thanks and Best Regards,*
>>>
>>> *Isuru Uyanage*
>>> *Software Engineer - QA | WSO2*
>>> *Mobile : **+94 77 <+94%2077%20767%201807> 55 30752*
>>> *LinkedIn: **https://www.linkedin.com/in/isuru-uyanage/
>>> *
>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> *Isura Dilhara Karunaratne*
>> Associate Technical Lead | WSO2
>> Email: is...@wso2.com
>> Mob : +94 772 254 810 <+94%2077%20225%204810>
>> Blog : http://isurad.blogspot.com/
>>
>>
>>
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Gayan Kaushalya Yalpathwala*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
US: (408) 386-7521


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


Re: [Dev] [APIM 2.1.0] No CORS headers received for OPTIONS http method

2018-04-19 Thread Gayan Yalpathwala
Thanks for the response Tharindu.

You're right! When I add "*Access-Control-Request-Method: GET*" header in
the request, I am seeing following behavior.

   1. When OPTIONS method is defined for a resource in API, I am getting
   all HTTP methods supported by the back-end + NO
   "Access-Control-Allow-Headers".
   This is because the back-end does not support CORS.

   2. When OPTIONS method is NOT defined for a resource in API, I am
   getting HTTP methods supported by the API (on gateway) +
   "Access-Control-Allow-Headers".
   This request is catered by the gateway itself, rather than passing thru
   to the back-end.

Thanks for the clarification.


On Thu, Apr 19, 2018 at 10:08 PM, Tharindu Dharmarathna <tharin...@wso2.com>
wrote:

> Hi Gayan,
> Did you Add the OPTIONS resource to API ?. Then OPTION call will be going
> to the backend. If you not specifying OPTION Resource you need to send 
> *Access-Control-Request-Method
> *header.
>
>
> Thanks
> Tharindu
>
>
> On Fri, Apr 20, 2018 at 4:23 AM, Gayan Yalpathwala <gay...@wso2.com>
> wrote:
>
>> Hi team,
>>
>> Let me explain this using Pizzashack sample API. I have added OPTIONS
>> method for "/menu" resource on top of the sample.
>>
>> For GET method, I am receiving "Access-Control-Allow-Headers" whereas for
>> OPTIONS, I am not getting it. See below.
>>
>> curl -k -X GET --header 'Accept: application/json' --header
>> 'Authorization: Bearer x' 'https://mylocal:8243/pizzashack/1.0.0/menu'
>> -v
>> < HTTP/1.1 200 OK
>> < Access-Control-Allow-Origin: *
>> < Access-Control-Allow-Methods: GET
>> < Access-Control-Allow-Headers: authorization,Access-Control-A
>> llow-Origin,Content-Type,SOAPAction
>>
>> curl -k -X OPTIONS --header 'Accept: application/json' --header
>> 'Authorization: Bearer x' 'https://mylocal:8243/pizzashack/1.0.0/menu'
>> -v
>> < HTTP/1.1 200 OK
>> < Allow: DELETE,POST,GET,PUT,OPTIONS,HEAD
>>
>> I am expecting CORS headers for OPTIONS call as well.
>>
>> Thanks,
>>
>> --
>> *Gayan Kaushalya Yalpathwala*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> LK: +94 71 868 2704
>> US: (408) 386-7521
>>
>> <https://wso2.com/events/>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Tharindu Dharmarathna*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091*
>



-- 
*Gayan Kaushalya Yalpathwala*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
US: (408) 386-7521

<https://wso2.com/events/>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM 2.1.0] No CORS headers received for OPTIONS http method

2018-04-19 Thread Gayan Yalpathwala
Hi team,

Let me explain this using Pizzashack sample API. I have added OPTIONS
method for "/menu" resource on top of the sample.

For GET method, I am receiving "Access-Control-Allow-Headers" whereas for
OPTIONS, I am not getting it. See below.

curl -k -X GET --header 'Accept: application/json' --header 'Authorization:
Bearer x' 'https://mylocal:8243/pizzashack/1.0.0/menu' -v
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET
< Access-Control-Allow-Headers:
authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction

curl -k -X OPTIONS --header 'Accept: application/json' --header
'Authorization: Bearer x' 'https://mylocal:8243/pizzashack/1.0.0/menu'
-v
< HTTP/1.1 200 OK
< Allow: DELETE,POST,GET,PUT,OPTIONS,HEAD

I am expecting CORS headers for OPTIONS call as well.

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
US: (408) 386-7521


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


[Dev] [IAM] Password policy per role

2018-02-22 Thread Gayan Yalpathwala
Hi team,

How can we achieve different password policies per user roles in IAM? Is
this supported in a configuration or else by writing a custom password
policy?

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
US: (408) 386-7521


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


[Dev] SSLException: Unsupported record version in DAS 3.1.0

2017-09-07 Thread Gayan Yalpathwala
Hi team,

I am getting the below error when connecting to an RDS in AWS. This
datasource is added in analytics-datasources.xml and I refer to it while
reading some data into the spark context.

Caused by:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could
not create connection to database server. Attempted reconnect 3 times.
Giving up.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.Util.getInstance(Util.java:408)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:918)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
at
com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2115)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2040)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:790)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor161.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
at
org.wso2.carbon.analytics.spark.core.sources.AnalyticsDatasourceWrapper.getConnection(AnalyticsDatasourceWrapper.java:72)
at
org.apache.spark.sql.jdbc.carbon.CarbonJDBCUtils$.checkAndCreateTable(CarbonJDBCUtils.scala:96)
at
org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:128)
... 27 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications link failure

The last packet successfully received from the server was 514 milliseconds
ago.  The last packet sent successfully to the server was 514 milliseconds
ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:989)
at
com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:164)
at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4901)
at
com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2205)
at
com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2056)
... 45 more
Caused by: javax.net.ssl.SSLException: Unsupported record version
Unknown-0.0
at sun.security.ssl.InputRecord.checkRecordVersion(InputRecord.java:552)
at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:565)
at sun.security.ssl.InputRecord.read(InputRecord.java:532)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at
com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:149)
... 50 more

JDBC connection string is in this format: jdbc:mysql://
xx.rds.amazonaws.com:3306/database?autoReconnect=truerelaxAutoCommit=trueuseSSL=truerequireSSL=true

I presume this is due to not matching the SSL protocols on two ends. What
is a possible solution to overcome this?

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
US: +1 650 695 2324



Re: [Dev] DAS 3.1.0 minimum HA setup fails to persist half of the events

2017-06-14 Thread Gayan Yalpathwala
Hi Gimantha,

HA is enabled in event-processor.xml correctly and all artifacts are
deployed on both servers. This happens the other way round too when the
inactive node is made the master.
I had a debug session with Tishan and identified that the below error is
logged recursively on the inactive node every time.

java.util.NoSuchElementException
at java.util.AbstractQueue.remove(AbstractQueue.java:117)
at
org.wso2.carbon.event.publisher.core.internal.BlockingEventQueue.remove(BlockingEventQueue.java:144)
at
org.wso2.carbon.event.publisher.core.internal.EventPublisher.sendEvent(EventPublisher.java:246)
at
org.wso2.carbon.event.publisher.core.internal.EventPublisher.onEvent(EventPublisher.java:294)
at
org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvent(EventJunction.java:157)
at
org.wso2.carbon.event.receiver.core.internal.management.QueueInputEventDispatcher$QueueInputEventDispatcherWorker.run(QueueInputEventDispatcher.java:142)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

Thanks,

On Wed, Jun 14, 2017 at 7:13 PM, Gimantha Bandara <giman...@wso2.com> wrote:

> Hi Gayan,
> Is HA enabled in event-processor.xml? Also is pageVisitsReceiver receiver
> deployed in both servers?
> On Wed, Jun 14, 2017 at 4:34 PM Gayan Yalpathwala <gay...@wso2.com> wrote:
>
>> Hi team,
>>
>> I have configured a DAS 3.1.0 minimum HA setup as per
>> https://docs.wso2.com/display/CLUSTER44x/Minimum+
>> High+Availability+Deployment+-+DAS+3.1.0.
>> Please note that all analytics datasources are pointed to an HBase
>> cluster. I am publishing a large number of events to both the nodes
>> (client-side load balanced) from an ESB proxy service using PublishEvent
>> mediator. Here, I observed on DAS end, exactly half of the events are not
>> getting persisted and below error is thrown multiple times on DAS master
>> node.
>>
>> TID: [-1234] [] [2017-06-14 09:32:49,673] ERROR {org.wso2.carbon.event.
>> processor.manager.core.internal.EventHandler} -  Unable to process
>> events for tenant :-1234 on stream:/Receiver/PageVisitsReceiver
>> {org.wso2.carbon.event.processor.manager.core.internal.EventHandler}
>> java.lang.NullPointerException
>> at org.wso2.carbon.event.receiver.core.internal.management.
>> QueueInputEventDispatcher.process(QueueInputEventDispatcher.java:102)
>> at org.wso2.carbon.event.processor.manager.core.internal.EventHandler$1.
>> receive(EventHandler.java:161)
>> at org.wso2.carbon.event.processor.manager.commons.transport.server.
>> TCPEventServer$ServerWorker$ListenerProcessor.run(
>> TCPEventServer.java:234)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(
>> ThreadPoolExecutor.java:1142)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
>> ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:748)
>>
>> Any thoughts on this behavior?
>>
>> Thanks,
>>
>> --
>> *Gayan Kaushalya Yalpathwala*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> LK: +94 71 868 2704 <071%20868%202704>
>> US: +1 650 695 2324 <+1%20650-695-2324>
>>
>> <http://asia14.wso2con.com/>
>>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919 <071%20496%201919>
>



-- 
*Gayan Kaushalya Yalpathwala*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
US: +1 650 695 2324

<http://asia14.wso2con.com/>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DAS 3.1.0 minimum HA setup fails to persist half of the events

2017-06-14 Thread Gayan Yalpathwala
Hi team,

I have configured a DAS 3.1.0 minimum HA setup as per
https://docs.wso2.com/display/CLUSTER44x/Minimum+High+Availability+Deployment+-+DAS+3.1.0
.
Please note that all analytics datasources are pointed to an HBase cluster.
I am publishing a large number of events to both the nodes (client-side
load balanced) from an ESB proxy service using PublishEvent mediator. Here,
I observed on DAS end, exactly half of the events are not getting persisted
and below error is thrown multiple times on DAS master node.

TID: [-1234] [] [2017-06-14 09:32:49,673] ERROR
{org.wso2.carbon.event.processor.manager.core.internal.EventHandler} -
 Unable to process events for tenant :-1234 on
stream:/Receiver/PageVisitsReceiver
{org.wso2.carbon.event.processor.manager.core.internal.EventHandler}
java.lang.NullPointerException
at
org.wso2.carbon.event.receiver.core.internal.management.QueueInputEventDispatcher.process(QueueInputEventDispatcher.java:102)
at
org.wso2.carbon.event.processor.manager.core.internal.EventHandler$1.receive(EventHandler.java:161)
at
org.wso2.carbon.event.processor.manager.commons.transport.server.TCPEventServer$ServerWorker$ListenerProcessor.run(TCPEventServer.java:234)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

Any thoughts on this behavior?

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
US: +1 650 695 2324


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


Re: [Dev] [ESB] [DAS] Error while passing the data through publishEvent mediator

2017-05-22 Thread Gayan Yalpathwala
Please note that I was able to get through this by enabling sequential
mediation in Iterate mediator.

Thanks,

On Mon, May 22, 2017 at 3:45 PM, Gayan Yalpathwala <gay...@wso2.com> wrote:

> Hi team,
>
> I am getting an error similar to above, when PublishEvent mediator in the
> target sequence of an Iterate mediator. ESB version is 5.0.0.
> [2017-05-22 15:36:24,135] ERROR - PublishEventMediator Cannot mediate
> message. Failed to load event sink 'TestEventSink'. Error: Event sink
> "TestEventSink" not found.
>
> I can see the following jira too: https://wso2.org/jira/browse/
> ESBJAVA-4899.
> Is there a possible solution or a workaround for this?
>
> Thanks,
>
>
>
> On Thu, Sep 10, 2015 at 5:03 PM, Nadeeshaan Gunasinghe <
> nadeesh...@wso2.com> wrote:
>
>> Hi Chanuka,
>> It seems you haven't defined the event sink. Make sure you have defined
>> one with the name eventSink14.
>> Regards
>>
>>
>> *Nadeeshaan Gunasinghe*
>> Software Engineer, WSO2 Inc. http://wso2.com
>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>> <#m_-8717959336583478941_m_86378577479624110_>
>> <http://www.facebook.com/nadeeshaan.gunasinghe>
>> <http://lk.linkedin.com/in/nadeeshaan>  <http://twitter.com/Nadeeshaan>
>> <http://nadeeshaan.blogspot.com/>
>> Get a signature like this: Click here!
>> <http://ws-promos.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS9lbWFpbC1pbnN0YWxsP3dzX25jaWQ9NjcyMjk0MDA4JnV0bV9zb3VyY2U9ZXh0ZW5zaW9uJnV0bV9tZWRpdW09ZW1haWwmdXRtX2NhbXBhaWduPXByb21vXzU3MzI1Njg1NDg3Njk3OTIiLCAiZSI6ICI1NzMyNTY4NTQ4NzY5NzkyIn0=>
>>
>> On Thu, Sep 10, 2015 at 8:55 AM, Chanuka Dissanayake <chan...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I'm retrieving data set from Salesforce through ESB by using the
>>> Salesforce connector [1]. My intention is here to pass the data set to
>>> DAS as a payload. Therefore I used 'iterate' mediator [2] to iterate
>>> the data and inside that I used publishEvent mediator to pass the data
>>> to DAS as wso2events. But I'm getting this error [3] during the
>>> operation. First I created a Sample static data and pass it successfully to
>>> the DAS without getting the error and using the same 'EventSink' (which
>>> is 'eventSink14'). Proxy source [4]. What can be the possible error here?
>>>
>>> Additionally: Also when I update the PublishEvent stream Pay load
>>> attributes and trying to add a receiver from DAS, It is not identifying
>>> the newly added Pay Load attribute(s) (which may be a bug). Because of that
>>> it'll categorize as a inactive receiver [5]. Need to change the Stream name
>>> or the version of the Stream as a workaround.
>>>
>>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Salesforce+Connector
>>> [2] https://docs.wso2.com/display/ESB480/Iterate+Mediator
>>> [3]
>>>
>>> 2015-09-09 17:09:53,741] ERROR - PublishEventMediator Cannot mediate
>>> message. Failed to load event sink 'eventSink14'. Error: Event sink
>>> "eventSink14" not found
>>>
>>> [2015-09-09 17:09:53,741]  INFO - LogMediator To:
>>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>>> , MessageID: urn:uuid:0877c7fb-3e22-41d3-83ab-629edc9b59e9, Direction:
>>> request, message = aa, Envelope: >> encoding='utf-8'?>http://schemas.
>>> xmlsoap.org/soap/envelope/">>> ="urn:partner.soap.sforce.com">http://www.w3.org/2
>>> 001/XMLSchema-instance" xsi:type="QueryResult">true<
>>> queryLocator xsi:nil="true"/>9>> soapenv:Body>
>>>
>>> [2015-09-09 17:09:53,742] ERROR - PublishEventMediator Cannot mediate
>>> message. Failed to load event sink 'eventSink14'. Error: Event sink
>>> "eventSink14" not found
>>>
>>> [2015-09-09 17:09:53,743] ERROR - PublishEventMediator Cannot mediate
>>> message. Failed to load event sink 'eventSink14'. Error: Event sink
>>> "eventSink14" not found
>>>
>>> [2015-09-09 17:09:53,743]  INFO - LogMediator To:
>>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>>> , MessageID: urn:uuid:e16bc0a2-586c-4aa7-9d34-f03773b09efb, Direction:
>>> request, message = aa, Envelope: >> encoding='utf-8'?>http://schemas.
>>> xmlsoap.org/soap/envelope/">>> ="urn:partner.soap.sforce.com">http://www.w3.org/

Re: [Dev] [ESB] [DAS] Error while passing the data through publishEvent mediator

2017-05-22 Thread Gayan Yalpathwala
Hi team,

I am getting an error similar to above, when PublishEvent mediator in the
target sequence of an Iterate mediator. ESB version is 5.0.0.
[2017-05-22 15:36:24,135] ERROR - PublishEventMediator Cannot mediate
message. Failed to load event sink 'TestEventSink'. Error: Event sink
"TestEventSink" not found.

I can see the following jira too: https://wso2.org/jira/browse/ESBJAVA-4899.
Is there a possible solution or a workaround for this?

Thanks,



On Thu, Sep 10, 2015 at 5:03 PM, Nadeeshaan Gunasinghe 
wrote:

> Hi Chanuka,
> It seems you haven't defined the event sink. Make sure you have defined
> one with the name eventSink14.
> Regards
>
>
> *Nadeeshaan Gunasinghe*
> Software Engineer, WSO2 Inc. http://wso2.com
> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
> <#m_86378577479624110_>
> 
>   
> 
> Get a signature like this: Click here!
> 
>
> On Thu, Sep 10, 2015 at 8:55 AM, Chanuka Dissanayake 
> wrote:
>
>> Hi,
>>
>> I'm retrieving data set from Salesforce through ESB by using the
>> Salesforce connector [1]. My intention is here to pass the data set to
>> DAS as a payload. Therefore I used 'iterate' mediator [2] to iterate the
>> data and inside that I used publishEvent mediator to pass the data to DAS
>> as wso2events. But I'm getting this error [3] during the operation. First I
>> created a Sample static data and pass it successfully to the DAS without
>> getting the error and using the same 'EventSink' (which is 'eventSink14').
>> Proxy source [4]. What can be the possible error here?
>>
>> Additionally: Also when I update the PublishEvent stream Pay load
>> attributes and trying to add a receiver from DAS, It is not identifying
>> the newly added Pay Load attribute(s) (which may be a bug). Because of that
>> it'll categorize as a inactive receiver [5]. Need to change the Stream name
>> or the version of the Stream as a workaround.
>>
>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Salesforce+Connector
>> [2] https://docs.wso2.com/display/ESB480/Iterate+Mediator
>> [3]
>>
>> 2015-09-09 17:09:53,741] ERROR - PublishEventMediator Cannot mediate
>> message. Failed to load event sink 'eventSink14'. Error: Event sink
>> "eventSink14" not found
>>
>> [2015-09-09 17:09:53,741]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:0877c7fb-3e22-41d3-83ab-629edc9b59e9, Direction:
>> request, message = aa, Envelope: > encoding='utf-8'?>http://schemas.xmlsoap
>> .org/soap/envelope/">> ="urn:partner.soap.sforce.com">http://www.w3.org/2001/
>> XMLSchema-instance" xsi:type="QueryResult">true> xsi:nil="true"/>9> soapenv:Envelope>
>>
>> [2015-09-09 17:09:53,742] ERROR - PublishEventMediator Cannot mediate
>> message. Failed to load event sink 'eventSink14'. Error: Event sink
>> "eventSink14" not found
>>
>> [2015-09-09 17:09:53,743] ERROR - PublishEventMediator Cannot mediate
>> message. Failed to load event sink 'eventSink14'. Error: Event sink
>> "eventSink14" not found
>>
>> [2015-09-09 17:09:53,743]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:e16bc0a2-586c-4aa7-9d34-f03773b09efb, Direction:
>> request, message = aa, Envelope: > encoding='utf-8'?>http://schemas.xmlsoap
>> .org/soap/envelope/">> ="urn:partner.soap.sforce.com">http://www.w3.org/2001/
>> XMLSchema-instance" xsi:type="QueryResult">true> xsi:nil="true"/>9> soapenv:Envelope>
>>
>> [2015-09-09 17:09:53,744] ERROR - PublishEventMediator Cannot mediate
>> message. Failed to load event sink 'eventSink14'. Error: Event sink
>> "eventSink14" not found
>>
>> [2015-09-09 17:09:53,744] ERROR - PublishEventMediator Cannot mediate
>> message. Failed to load event sink 'eventSink14'. Error: Event sink
>> "eventSink14" not found
>>
>> [2015-09-09 17:09:53,746]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:08a723ab-9232-43db-ab66-be3feeac6fc1, Direction:
>> request, message = aa, Envelope: > encoding='utf-8'?>http://schemas.xmlsoap
>> .org/soap/envelope/">> ="urn:partner.soap.sforce.com">http://www.w3.org/2001/
>> XMLSchema-instance" xsi:type="QueryResult">true> xsi:nil="true"/>9> soapenv:Envelope>
>>
>> [4]
>>
>> 
>> http://ws.apache.org/ns/synapse;
>>name="esbtoBamProxyEvent"
>>transports="https,http"
>>statistics="disable"
>>trace="disable"
>>startOnLoad="true">
>>
>>   

Re: [Dev] [IS] XML configuration to set the public certificate in IdP

2016-07-29 Thread Gayan Yalpathwala
Thank you for the reply Tharindu. This helps but not exactly what I wanted
to know.

I am trying to add an external IdP to IS, for which I have written an XML
based IdP configuration that goes under
repository/conf/identity/identity-providers. I already have the public cert
from the external IdP and I am worried about how to include that in the
aforesaid XML config. There is a tag named  in a sample IdP
config, but adding the certificate directly there or adding the encoded
value hasn't worked for me so far. Do we have a sample XML config that can
help here?

Thanks,

On Thu, Jul 28, 2016 at 5:37 PM, Tharindu Edirisinghe <tharin...@wso2.com>
wrote:

> Hi Gayan,
>
> Here's a sample command if the IDP is WSO2 Identity Server where you can
> export the public certificate in PEM format.
>
>
>
> *keytool -exportcert -alias wso2carbon -keypass wso2carbon -keystore
> wso2carbon.jks -storepass wso2carbon -rfc -file ispublic_crt.pem*
> Then, the certificate file, you  can open with a notepad so you see the
> certificate value. Sample is below.
>
> -BEGIN CERTIFICATE-
>
>
>
>
>
>
>
>
>
>
> *MIICNTCCAZ6gAwIBAgIES343gjANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExFjAUBgNVBAcMDU1vdW50YWluIFZpZXcxDTALBgNVBAoMBFdTTzIxEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0xMDAyMTkwNzAyMjZaFw0zNTAyMTMwNzAyMjZaMFUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwNTW91bnRhaW4gVmlldzENMAsGA1UECgwEV1NPMjESMBAGA1UEAwwJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCUp/oV1vWc8/TkQSiAvTousMzOM4asB2iltr2QKozni5aVFu818MpOLZIr8LMnTzWllJvvaA5RAAdpbECb+48FjbBe0hseUdN5HpwvnH/DW8ZccGvk53I6Orq7hLCv1ZHtuOCokghz/ATrhyPq+QktMfXnRS4HrKGJTzxaCcU7OQIDAQABoxIwEDAOBgNVHQ8BAf8EBAMCBPAwDQYJKoZIhvcNAQEFBQADgYEAW5wPR7cr1LAdq+IrR44iQlRG5ITCZXY9hI0PygLP2rHANh+PYfTmxbuOnykNGyhM6FjFLbW2uZHQTY1jMrPprjOrmyK5sjJRO4d1DeGHT/YnIjs9JogRKv4XHECwLtIVdAbIdWHEtVZJyMSktcyysFcvuhPQK8Qc/E/Wq8uHSCo=*
> -END CERTIFICATE-
>
> You can copy this certificate value (highlight above) and put in the file.
>
> Note that above is only if the IDP is WSO2 IS. If the IDP is a third party
> IDP, then you can get the certificate in PEM format and read the value.
>
> Regards,
> TharinduE
>
> On Thu, Jul 28, 2016 at 7:22 PM, Gayan Yalpathwala <gay...@wso2.com>
> wrote:
>
>> Hi devs,
>>
>> I have a file based IdP configuration in which I need to add the public
>> certificate of the IdP. I have tried by adding the certificate content as
>> it is, under the  tag, and also tried with the base64 encoded
>> version of the same, with no luck. What is the correct way to add this
>> configuration?
>>
>> Thanks,
>>
>> --
>> *Gayan Kaushalya Yalpathwala*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> LK: +94 71 868 2704
>> UK: +44 747 844 3609
>>
>> <http://asia14.wso2con.com/>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>



-- 
*Gayan Kaushalya Yalpathwala*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609

<http://asia14.wso2con.com/>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] XML configuration to set the public certificate in IdP

2016-07-28 Thread Gayan Yalpathwala
Hi devs,

I have a file based IdP configuration in which I need to add the public
certificate of the IdP. I have tried by adding the certificate content as
it is, under the  tag, and also tried with the base64 encoded
version of the same, with no luck. What is the correct way to add this
configuration?

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609


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


[Dev] Fails to read shared IdP from the configuration file

2016-07-27 Thread Gayan Yalpathwala
Hi,

I have the following IdP configuration with the prefix "SHARED_" added to
the IdentityProviderName as per the doc in [1]. This fails with a complain
that no claim mappings are returned from the DB under the same IDP_ID. Is
this a valid check to be done or can this be called a bug?


SHARED_Corporate
Corporate

https://localhost:9444/oauth2/token

true





SAMLSSOAuthenticator
samlsso
true


IdpEntityId
url


IsLogoutEnabled
false


SPEntityId
id


SSOUrl
url


isAssertionSigned
true


commonAuthQueryParams



IsUserIdInClaims
true


IsLogoutReqSigned
false


IsAssertionEncrypted
false


IsAuthReqSigned
false


IsAuthnRespSigned
false


LogoutReqUrl
false





SAMLSSOAuthenticator




   false
   
  
 
http://wso2.org/claims/emailaddress
 
 

http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name
 
  
  
 
http://wso2.org/claims/role
 
 

http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role
 
  
  
 
http://wso2.org/claims/givenname
 
 

http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname
 
  
  
 
http://wso2.org/claims/lastname
 
 

http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname
 
  
  
 
http://wso2.org/claims/uid
 
 

http://schemas.xmlsoap.org/ws/2005/05/identity/claims/uid
 
  
   






[2016-07-27 16:58:13,624] ERROR
{org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent} -  Error
while loading idp from file system.
org.wso2.carbon.idp.mgt.IdentityProviderManagementException: No Identity
Provider claim URIs defined for tenant -1234
at
org.wso2.carbon.idp.mgt.dao.IdPManagementDAO.addIdPClaimMappings(IdPManagementDAO.java:2121)
at
org.wso2.carbon.idp.mgt.dao.IdPManagementDAO.addIdP(IdPManagementDAO.java:1562)
at
org.wso2.carbon.idp.mgt.dao.CacheBackedIdPMgtDAO.addIdP(CacheBackedIdPMgtDAO.java:238)
at
org.wso2.carbon.idp.mgt.IdentityProviderManager.addIdP(IdentityProviderManager.java:1190)
at
org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent.buildFileBasedIdPList(IdPManagementServiceComponent.java:211)
at
org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent.activate(IdPManagementServiceComponent.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)


[1]
https://docs.wso2.com/display/IS510/Configuring+a+SP+and+IdP+Using+Configuration+Files

-- 
*Gayan Kaushalya Yalpathwala*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609


___
Dev mailing list

Re: [Dev] [EMM][Android] OTA firmware upgrade support

2016-03-30 Thread Gayan Yalpathwala
Hi Kasun,

Following problems were encountered while completing the OTA upgrade
process.

03-30 22:50:16.534 12103-12116/org.wso2.emm.system.service E/OTA_SM: Update
package file retrieval error.java.io.IOException: open failed: EACCES
(Permission denied)
- This was due to using /cache/update.zip as the OTA package location. This
location was changed to /mnt/sdcard/update.zip in order to read the file
successfully.
- Also added following read and write permissions for the system app.




checkURL() method in OTAServerManager.java hangs while checking the
existence of the URL.
- This implementation is currently invalid since we have a static URL
implementation, therefore the method was made to return true.

Other than that, I have noticed that the server is ACKed even when the OTA
upgrade fails on the device end.
Is there a mechanism to clear the OTA package from the device's file
location once installed? If not, this will lead to a memory overflow.

Thanks,





On Tue, Mar 29, 2016 at 9:11 PM, Kasun Dananjaya Delgolla <kas...@wso2.com>
wrote:

> Hi Gayan,
>
> Seems like OTA process downloads the firmware package. After this, did you
> see logs when the system app tries to trigger the build?
>
> Thanks
>
> On Tue, Mar 29, 2016 at 7:38 PM, Gayan Yalpathwala <gay...@wso2.com>
> wrote:
>
>> Hi Kasun et al,
>>
>> I have implemented this operation and tested on a rooted device with the
>> system app in place.
>>
>> OTA Server
>> =
>> A file server which serves build.prop and the particular upgrade pack was
>> used as the OTA server. These files need to be added under a sub-directory
>> in the name of the device.
>> Ex:-
>> Device name: c1ktt
>> Files: http://10.10.10.227:8000/c1ktt/build.prop and
>> http://10.10.10.227:8000/c1ktt/c1ktt.ota.zip
>>
>> build.prop
>> 
>> Attached is a sample build.prop. Key field to be changed is as follows.
>> ro.build.version.release=x.x.x (This version has to be greater than the
>> previous version of the firmware for an upgrade to happen)
>>
>> Server side configurations
>> 
>> Following constants need to be changed accordingly
>> in org/wso2/emm/system/service/utils/Constants.java. These configs which
>> are related to the OTA server, will be moved out to an external config file.
>>   public static final String DEFAULT_OTA_SERVER_ADDRESS = "10.10.10.227";
>> public static final String DEFAULT_OTA_SERVER_PROTOCOL = "http";
>> public static final int DEFAULT_OTA_SERVER_PORT = 8000;
>>
>> Logs from system app
>> =
>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>> D/EMMSystemService: Entered onHandleIntent of the Command Runner Service.
>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>> D/EMMSystemService: EMM agent has sent a command.
>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>> D/EMMSystemService: The operation code is: UPGRADE_FIRMWARE
>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>> I/EMMSystemService: Will now executing the command ...UPGRADE_FIRMWARE
>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>> D/EMMSystemService: Do task triggered. Code = UPGRADE_FIRMWARE
>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>> I/EMMSystemService: An upgrade has been requested
>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/Toast:
>>  checkMirrorLinkEnabled returns : false
>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/Toast:
>> showing allowed
>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
>> Loading configuration from file /data/system/ota.conf for product c1ktt
>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service E/OTA_SC:
>> Build property file does not meet required
>> specification.java.io.FileNotFoundException: /data/system/ota.conf: open
>> failed: ENOENT (No such file or directory)
>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service I/OTA_SC:
>> Loading default configuration for product c1ktt.
>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
>> create a new server config: package url
>> http://10.10.10.227:8000/c1ktt/c1ktt.ota.zip:8000
>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
>> build.prop URL:http://10.10.10.227:8000/c1ktt/build.prop
>> 03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM:
>> Start download: http://10.10.10.227:8000/c1ktt/build.prop to buffer
>> 03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM:
>> wrot

Re: [Dev] [EMM][Android] OTA firmware upgrade support

2016-03-29 Thread Gayan Yalpathwala
Hi Kasun et al,

I have implemented this operation and tested on a rooted device with the
system app in place.

OTA Server
=
A file server which serves build.prop and the particular upgrade pack was
used as the OTA server. These files need to be added under a sub-directory
in the name of the device.
Ex:-
Device name: c1ktt
Files: http://10.10.10.227:8000/c1ktt/build.prop and
http://10.10.10.227:8000/c1ktt/c1ktt.ota.zip

build.prop

Attached is a sample build.prop. Key field to be changed is as follows.
ro.build.version.release=x.x.x (This version has to be greater than the
previous version of the firmware for an upgrade to happen)

Server side configurations

Following constants need to be changed accordingly
in org/wso2/emm/system/service/utils/Constants.java. These configs which
are related to the OTA server, will be moved out to an external config file.
  public static final String DEFAULT_OTA_SERVER_ADDRESS = "10.10.10.227";
public static final String DEFAULT_OTA_SERVER_PROTOCOL = "http";
public static final int DEFAULT_OTA_SERVER_PORT = 8000;

Logs from system app
=
03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
D/EMMSystemService: Entered onHandleIntent of the Command Runner Service.
03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
D/EMMSystemService: EMM agent has sent a command.
03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
D/EMMSystemService: The operation code is: UPGRADE_FIRMWARE
03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
I/EMMSystemService: Will now executing the command ...UPGRADE_FIRMWARE
03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
D/EMMSystemService: Do task triggered. Code = UPGRADE_FIRMWARE
03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
I/EMMSystemService: An upgrade has been requested
03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/Toast:
 checkMirrorLinkEnabled returns : false
03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/Toast: showing
allowed
03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
Loading configuration from file /data/system/ota.conf for product c1ktt
03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service E/OTA_SC: Build
property file does not meet required
specification.java.io.FileNotFoundException: /data/system/ota.conf: open
failed: ENOENT (No such file or directory)
03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service I/OTA_SC:
Loading default configuration for product c1ktt.
03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC: create
a new server config: package url
http://10.10.10.227:8000/c1ktt/c1ktt.ota.zip:8000
03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
build.prop URL:http://10.10.10.227:8000/c1ktt/build.prop
03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM: Start
download: http://10.10.10.227:8000/c1ktt/build.prop to buffer
03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM: wrote
1024 into byte output stream
03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM: wrote
1024 into byte output stream
03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM: wrote
1024 into byte output stream
03-29 18:46:40.219 23424-17321/org.wso2.emm.system.service D/OTA_SM: wrote
166 into byte output stream
03-29 18:46:40.219 23424-17321/org.wso2.emm.system.service D/OTA_SM:
Download finished: 3238 bytes downloaded
03-29 18:46:40.219 23424-17321/org.wso2.emm.system.service D/OTA_BPP:
tmpDir:/data/data/org.wso2.emm.system.service/files

Thanks,




On Wed, Feb 10, 2016 at 7:22 PM, Kasun Dananjaya Delgolla <kas...@wso2.com>
wrote:

> Hi,
>
> I have implemented the android layer implementation of the above
> functionality. How it works is, when the admin sends the upgrade command
> from the UI/REST API, android agent app talks to the system service
> (implemented as a separate component, since these features require system
> level/root access). Then, the system service will invoke the firmware
> upgrade following the below steps.
>
> 1. System app will first downloads the OTA upgrade package's configuration
> file "ota.conf" from the OTA server (server URL and ports have to be
> configured in the system app)
> 2. Then it parses the config file downloaded to read the necessary configs
> (ex: upgrade package version, size etc)
> 3. System app compares the upgrade package version with the device
> existing firmware version.
> 4. If the firmware version is greater than the available version, it
> downloads the upgrade package from the server.
> 5. System app triggers the OTA upgrade.
>
> Thanks
>
> On Wed, Feb 10, 2016 at 6:41 PM, Gayan Yalpathwala <gay...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I am adding the above function to the REST API layer and to the jaggery
>>

[Dev] WSO2 Developer Studio 3.8.0 Beta Released!

2015-09-25 Thread Gayan Yalpathwala
Hi All,

We have WSO2 Developer Studio 3.8.0 Beta ready to be downloaded at [1] and
installed eclipse distributions available at [2]. This release includes
following tasks, sub-tasks, improvements and bug fixes.

*Tasks*

   - [TOOLS-2786 ] - A new maven
   plugin to pre-prepare for package goal
   - [TOOLS-3083 ] - Update "WSO2
   Classpath Libraries" properly after adding ESB 4.9.0 released Jars.
   - [TOOLS-3180 ] - Remove CEP
   Project from Developer Studio


*Sub-tasks*

   - [TOOLS-1778 ] - Remove the
   default connection arrows


*Improvements*

   - [TOOLS-2785 ] - Refactoring
   maven-tools repository
   - [TOOLS-2927 ] - JDBC and
   RabbitMQ message store types are not available in message store types
   dropdown.
   - [TOOLS-3074 ] - Connector
   Project - Add connector file path improvement
   - [TOOLS-3103 ] - List
   available properties for Property mediator's Property name
   - [TOOLS-3143 ] - AF
   Perspective UI Improvements


*Bugs*

   - [TOOLS-1954 ] - DevStudio -
   GReg Project fails to commit changes
   - [TOOLS-2176 ] - Provide zoom
   in zoom out feature in ESB Graphical editor
   - [TOOLS-2208 ] -
   AccountServiceSampleProject contains build-path issues
   - [TOOLS-2307 ] - When
   importing a 'template' and 'REST API artifact' the Specified configuration
   file location is not validating properly
   - [TOOLS-2475 ] - In Local
   Entry the value is not validating properly in when Local entry type is
   "In-Lined XML"
   - [TOOLS-2555 ] - Closing a
   project does not close it's child projects. Have to close each and every
   project individually even if they are belong to one parent project (Maven
   Multi Module Project)
   - [TOOLS-2581 ] - Mac
   installation of Dev Studio needs to work out-of-box
   - [TOOLS-2642 ] - Give a UI
   menu to remove installed connector
   - [TOOLS-2654 ] - Unable to
   delete registry resource on first attempt
   - [TOOLS-2665 ] - Call mediator
   graphical view wont change on endpoint type changing from property window
   - [TOOLS-2667 ] - XQuery
   mediator Target source path attributes added from property window not shown
   in the source view
   - [TOOLS-2673 ] - Typo in XPath
   - [TOOLS-2691 ] - When
   deserializing the security scenarios, security scenario option button is
   not getting updated properly
   - [TOOLS-2698 ] - Unable to see
   project dependencies when creating a CApp project in Mac OS X Yosemite
   - [TOOLS-2710 ] - Unable to
   save HTTP endpoint with an expression for a Property.
   - [TOOLS-2733 ] - Support Maven
   Artifact Token Replacement in wso2-esb-task-plugin
   - [TOOLS-2746 ] - Deleting the
   default child endpoint of Load-balancer endpoint will create unexpected
   behaviors in Dev Studio.
   - [TOOLS-2747 ] - Imported
   endpoint templates in dev studio, are picked up as sequence templates once
   CAR is deployed.
   - [TOOLS-2755 ] - Maven -
   Incorrect folder structure created when building the Data Service Project
   - [TOOLS-2756 ] - Eclipse
   doesn't save the Endpoint Template with parameters
   - [TOOLS-2778 ] - DevStudio
   3.7.1 rewrites project pom file when adding new resource
   - [TOOLS-2798 ] - Inline WSDL
   does not get persisted
   - [TOOLS-2832 ] - Named
   endpoint and sequence double click event doesn't work in registry projects.
   - [TOOLS-2833 ] - Duplicate
   warning messages for kerberos authentication validation in security form
   editor
   - [TOOLS-2834 ] - Persistence
   issues in service principal name on page change event
   - [TOOLS-2835 ] - Security form
   editor 

[Dev] Maven Tools 5.0.0 Released!

2015-08-20 Thread Gayan Yalpathwala
Hi,

WSO2 Developer Studio team is pleased to announce that Maven Tools 5.0.0 is
released from maven-tools repository [1].

Key features:

   - wso2-release-helper-plugin is an enhanced version of
   wso2-release-pre-prepare-plugin with git and other SCM support, rollback
   support, dry run support etc.
   - wso2-maven-package-prepare-plugin is a plugin that helps prepare CApp
   pom files for maven package goal.
   - wso2-esb-connector-plugin provides maven support for ESB connectors.
   - wso2-esb-inboundendpoint-plugin provides maven support for ESB inbound
   endpoints.
   - maven-dataservice-plugin provides maven support for multiple data
   services created under a single data services project.

Full list of changes can be found in [2]. Below are the versions of
different maven plugins released herewith.

org.wso2.maven:carbon-p2-plugin:1.5.6
org.wso2.maven:maven-axis2-plugin:2.1.0
org.wso2.maven:maven-bpel-plugin:2.1.0
org.wso2.maven:maven-brs-plugin:1.1.0
org.wso2.maven:maven-carbon-ui-plugin:2.1.0
org.wso2.maven:maven-car-deploy-plugin:1.1.0
org.wso2.maven:maven-car-plugin:2.1.0
org.wso2.maven:maven-cep-plugin:1.1.0
org.wso2.maven:maven-dataservice-plugin:2.1.0
org.wso2.maven:maven-ds-validator-plugin:2.1.0
org.wso2.maven:maven-endpoint-plugin:2.1.0
org.wso2.maven:maven-gadget-plugin:2.1.0
org.wso2.maven:maven-inboundendpoint-plugin:1.0.0
org.wso2.maven:maven-jaxws-plugin:2.1.0
org.wso2.maven:maven-library-plugin:2.1.0
org.wso2.maven:maven-localentry-plugin:2.1.0
org.wso2.maven:maven-proxy-plugin:2.1.0
org.wso2.maven:maven-qos-plugin:1.1.0
org.wso2.maven:maven-registry-filter-plugin:2.1.0
org.wso2.maven:maven-registry-handler-plugin:2.1.0
org.wso2.maven:maven-registry-plugin:2.1.0
org.wso2.maven:maven-sequence-plugin:2.1.0
org.wso2.maven:maven-stratos-plugin:2.1.0
org.wso2.maven:maven-synapse-mediator-plugin:2.1.0
org.wso2.maven:maven-synapse-plugin:2.1.0
org.wso2.maven:maven-war-plugin:2.1.0
org.wso2.maven:wso2-esb-api-plugin:2.1.0
org.wso2.maven:wso2-esb-connector-plugin:1.0.0
org.wso2.maven:wso2-esb-endpoint-plugin:2.1.0
org.wso2.maven:wso2-esb-inboundendpoint-plugin:1.0.0
org.wso2.maven:wso2-esb-localentry-plugin:2.1.0
org.wso2.maven:wso2-esb-messageprocessor-plugin:1.1.0
org.wso2.maven:wso2-esb-messagestore-plugin:1.1.0
org.wso2.maven:wso2-esb-proxy-plugin:2.1.0
org.wso2.maven:wso2-esb-sequence-plugin:2.1.0
org.wso2.maven:wso2-esb-synapse-plugin:2.1.0
org.wso2.maven:wso2-esb-task-plugin:2.1.0
org.wso2.maven:wso2-esb-template-plugin:2.1.0
org.wso2.maven:wso2-general-project-plugin:2.1.0
org.wso2.maven:wso2-maven-package-prepare-plugin:1.0.0
org.wso2.maven:wso2-release-helper-plugin:1.0.0
org.wso2.maven:wso2-release-pre-prepare-plugin:1.2.0

[1] https://github.com/wso2/maven-tools
[2]
https://wso2.org/jira/browse/TOOLS-3006?jql=project%20%3D%20TOOLS%20AND%20resolution%20%3D%20Fixed%20AND%20fixVersion%20in%20(%223.8.0%22%2C%20%223.8.0%20Beta%22)%20AND%20component%20%3D%20Maven

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609

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


Re: [Dev] DevStudio errors

2015-07-03 Thread Gayan Yalpathwala
We have removed the old ESB editor from DevStudio 3.8.0.
Please refer: https://wso2.org/jira/browse/TOOLS-2867

Thanks,

On Fri, Jul 3, 2015 at 11:18 AM, Susinda Perera susi...@wso2.com wrote:



 On Thu, Jul 2, 2015 at 10:31 PM, Viraj Rajaguru vi...@wso2.com wrote:

 Hi John,

 Currently there are two types of ESB editors in DevS 3.7.1.
 1. Tree structured ESB editor (deprecated)


 @ Jasintha/Viraj
 Isnt it the time for us to remove the old esb editor? Can we do this for
 3.8.0 release, i think this would reduce many issues.

 2. Drag and drop ESB diagram editor (recommended)

 Deprecated tree structured ESB editor is outdated and we are not
 maintaining it.(We are removing this deprecated editor in next DevS 3.8.0
 release). You are getting saving issues/design to source switching issues
 with old editor because it's outdated.

 So the solution here is to open ESB config files using recommended ESB
 editor by just double clicking on the config file. (Double click event will
 trigger config file to open in the recommended ESB diagram editor.) Using
 other options such as Right click on config file -- Open With -- ESB
 Editor, use Ctrl + Shift + R to open config files, will result to open
 config files in deprecated ESB editor.

 It seems mentioned *java.lang.NullPointerException *exception is not the
 root cause for the issues. Please attach the full error
 log($workspace/.metadata/.log) to check the actual error.

 Thanks,
 Viraj.



 On Thu, Jul 2, 2015 at 5:47 PM, John Hawkins jo...@wso2.com wrote:

 Sorry- I meant to put that in the original message !!

 Here is the data section of the error in eclipse
 eclipse.buildId=4.3.2.M20140221-1700
 java.version=1.7.0_79
 java.vendor=Oracle Corporation
 BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
 Framework arguments:  -product org.eclipse.epp.package.jee.product
 -keyring /Users/wso2/.eclipse_keyring -showlocation
 Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
 org.eclipse.epp.package.jee.product -keyring /Users/wso2/.eclipse_keyring
 -showlocation


 And I downloaded devstudio (3.7.1) right of the wso2.com pages (two
 days ago) - as a single, eclipse included, bundle - *not* installed into a
 pre-existing eclipse.


 thanks,
 John.


 John Hawkins
 Director: Solutions Architecture


 On Thu, Jul 2, 2015 at 12:39 PM, Harshana Eranga Martin 
 harshan...@gmail.com wrote:

 Hi John,

 What is the Dev Studio version you are using? Did you download it from
 the Products listing in wso2.com? What is the JDK version you are
 using?

 Thanks and Regards,
 Harshana
 --
 Harshana Eranga Martin

 Committer - Eclipse ECF: http://www.eclipse.org/ecf/
 Blog: http://harshana05.blogspot.com
 Profile: https://www.google.com/profiles/harshana05

 On 2 July 2015 at 19:29, John Hawkins jo...@wso2.com wrote:

 Hi Folks,

 I'm getting a few errors with DevStudio which are really beginning to
 bug me. I can't see anyone else having these errors so I'll put it out
 there so you folks may be able to guide me as to what to do ( or you may
 have seen them before but google has let me down :-)

 Key problem is that eclipse/dev studio is struggling to save files
 e.g. an api.xml file or a proxy-service.xml file. This shows itself when I
 try to save a diagram or when I try to move from the diagram to the source
 view. The first error in the chain is...



 *Problems occurred when invoking code from plug-in:
 org.eclipse.ui.workbench. which has the stacktrace of *

 *java.lang.NullPointerException*
 * at
 org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:435)*
 * at
 org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)*
 * at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)*
 * at
 org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)*
 * etc.etc.*




 It then has three other errors along those lines.

 This may or may not be related but.What also happens is that files
 also don't look right in the esb editor.. They come out as a tree 
 structure
 and not the nice diagram editor. In order to get around this (and get it
 opening in the nice diagram editor) I have to close the WSO2 ESB Graphical
 perspective and then re-open the Dev Studio (by going Dev Studio-Open
 Dashboard. That solves the problem of the editor not showing the 
 graphical
 view and also seems to solve the problem of file saving. However, it's not
 long before both problems come back - but I have no idea what sequence of
 events makes them come back !

 I realise this is a bit of a random problem - but it's really making
 editing a very long winded process so any help would be much appreciated 
 !!




 many thanks
 John.

 John Hawkins
 Director: Solutions Architecture


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




 

Re: [Dev] [DevStudio] Please review and merged the PR

2015-06-24 Thread Gayan Yalpathwala
Merged.

On Wed, Jun 24, 2015 at 12:20 PM, Nuwan Pallewela nuw...@wso2.com wrote:

 Hi,

 Please review and merge PR[1] - Fixing TOOLS-2837 Server role is not
 clickable until the particular artifact is selected in CAPP editor

 [1] https://github.com/wso2/developer-studio/pull/53

 Thanks,
 Nuwan.

 --
 --

 *Nuwan Chamara Pallewela*


 *Software Engineer*

 *WSO2, Inc. *
 *lean . enterprise . middleware*

 Email   *nuw...@wso2.com nuw...@wso2.com*
 Mobile  *+94719079739 %2B94719079739*
 *+94767100087 %2B94767100087*


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609

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


Re: [Dev] Can't brows registry resource when WSO2 starting using Developer Studio 3.8.0 m5

2015-06-23 Thread Gayan Yalpathwala
Chandana and myself could figure out the same issue in GReg 5.0.0-M7 when
started through DevS. This version of GReg uses,

org.wso2.carbon.registry.core_4.4.0,
org.wso2.carbon.registry.api_4.4.0 and
org.wso2.carbon.registry.resource.ui_4.4.4.SNAPSHOT.

Thanks,


On Tue, Jun 23, 2015 at 5:48 PM, KasunG Gajasinghe kas...@wso2.com wrote:


 AS depends on snapshot version of kernel which is a special case. Since AS
 and kernel are the same team, and kernel snapshots are tested against AS we
 need this.


 On Tue, Jun 23, 2015 at 3:36 PM, Kasun Indrasiri ka...@wso2.com wrote:


 App server uses *org.wso2.carbon.registry.core_4.4.1.SNAPSHOT.jar*
 and *org.wso2.carbon.registry.api_4.4.1.SNAPSHOT.jar*
  So, is that related to not using the latest registry core and api? Why
 do we have snapshot versions of these components in AS?

 On Tue, Jun 23, 2015 at 3:30 PM, Susankha Nirmala susan...@wso2.com
 wrote:

 Hi All,

 Yes, with org.wso2.carbon.registry.resource.ui_4.4.3.jar also it's not
 working. But with, org.wso2.carbon.registry.resource.ui_4.4.1.jar, 
 AppServer
 is working and ESB is not working.

 Thanks.
 /Susankha.

 On Tue, Jun 23, 2015 at 3:17 PM, Isuru Udana isu...@wso2.com wrote:

 Hi,

 Latest ESB build has the 4.4.3 version of this jar.
 As per Susankha, still the same issue exists in that pack.



 On Tue, Jun 23, 2015 at 3:13 PM, Susankha Nirmala susan...@wso2.com
 wrote:

 Hi Chandana,

 It is org.wso2.carbon.registry.resource.ui_4.4.1.jar

 Thanks.
 /Susankha.

 On Tue, Jun 23, 2015 at 3:11 PM, Chandana Napagoda chand...@wso2.com
 wrote:

 Hi Susankha,

 What is the org.wso2.carbon.registry.resource.uibundle version used
 in ESB?

 Regards,
 Chandana

 On Tue, Jun 23, 2015 at 2:58 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 [+Sagara,+Chandana]

 On Tue, Jun 23, 2015 at 2:17 PM, Susankha Nirmala susan...@wso2.com
  wrote:

 Hi All,

 I have started  wso2esb-4.9.0-BETA-SNAPSHOT server using
 Developer Studio 3.8.0 m5 pack and try to browse the registry browser 
 using
 the management console. It will return empty page and give the
 exception [1]. After that I have tried the same thing with
 wso2as-5.3.0-SNAPSHOT pack and I can successfully browse the registry
 resources using the management console. When I compared the registry
 plugins between two packs (ESB and App Server), I can see below version
 differences.

 App server uses *org.wso2.carbon.registry.core_4.4.1.SNAPSHOT.jar*
 and *org.wso2.carbon.registry.api_4.4.1.SNAPSHOT.jar*
 ESB uses *org.wso2.carbon.registry.core_4.4.0.jar* and 
 *org.wso2.carbon.registry.api_4.4.0.jar*

 Is that the reason for this?

 [1]-  2015-06-22 10:58:52,201] ERROR - JspTilesRequestContext
 JSPException while including path '/resources/resource.jsp'.
 javax.servlet.jsp.JspException: ServletException while including
 page.
 at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:102)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
 at
 org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
 at
 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
 at
 org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
 at
 org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
 at
 org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at
 org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 

Re: [Dev] [DevStudio] [ESB] Including ForEach mediator in Developer Studio

2015-06-10 Thread Gayan Yalpathwala
Hi all,

We have completed ForEach mediator and will be released as a part of DevS
3.8.0 M4 release.

Thanks,

On Thu, Jun 4, 2015 at 11:08 AM, Viraj Rajaguru vi...@wso2.com wrote:

 Hi Maheeka,

 We have started implementing ForEach mediator targeting DevS 3.8.0. This
 mediator will be available in future milestone releases of DevS 3.8.0.

 Thanks,
 Viraj.

 On Wed, Jun 3, 2015 at 2:57 PM, Maheeka Jayasuriya mahe...@wso2.com
 wrote:

 Hi DevS Team,

 With ESB 4.9.0 we are introducing a new mediator - ForEach mediator.
 Please find the documentation at [1].

 Please let know how to proceed on $subject.

 [1] https://docs.wso2.com/display/ESB490/ForEach+Mediator

 Thanks,

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661




 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068






-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609

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


Re: [Dev] Cannot build Dev Studio projects with Mavan 3.3

2015-05-28 Thread Gayan Yalpathwala
Hi Sajini,

I could reproduce this locally. It seems like an issue related to java and
maven versions specified in eclipse preferences, hence created the jira
https://wso2.org/jira/browse/TOOLS-2819.

Thanks,

On Wed, May 27, 2015 at 6:50 PM, Firzhan Naqash firz...@wso2.com wrote:

 Hi Sajini,

 Carbon platform 4.2 works with maven 3.0.5 only

 Regards,
 Firzhan

 On Wed, May 27, 2015 at 8:18 AM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 I tried to build a simple ESB project created using Dev Studio in Windows
 environment and got the following error. My maven version is 3.3. But when
 I downgrade the maven version to 3.0.5 the build was successful. Is this a
 bug?



  Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec
 (package) on project EdwConfig: Command execution failed. Cannot run
 program mvn (in directory
 C:\WSO2\Project\ESB\Edw\EdwConfig\target\capp): CreateProcess error=2,
 The system cannot find the file specified - [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
 goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (package) on project
 EdwConfig: Command execution failed.
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Command
 execution failed.
 at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:350)
 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 ... 19 more
 Caused by: java.io.IOException: Cannot run program mvn (in directory
 C:\WSO2\Project\ESB\Edw\EdwConfig\target\capp): CreateProcess error=2,
 The system cannot find the file specified
 at java.lang.ProcessBuilder.start(Unknown Source)
 at java.lang.Runtime.exec(Unknown Source)
 at
 org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
 at
 org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
 at
 org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
 at
 org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
 at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:589)
 at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:335)
 ... 21 more

 Thank you,
 Sajini
 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva

 Phone: +94 712797729


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





-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609

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


Re: [Dev] [Architecture] Developer Studio 3.8.0 M1 Released!

2015-05-25 Thread Gayan Yalpathwala
Hi Harshana,

Yes. Dev Studio 3.8.0 will support both Eclipse Luna SR2 and JDK 1.8.

Thanks,

On Mon, May 25, 2015 at 1:03 PM, Harshana Eranga Martin 
harshan...@gmail.com wrote:

 Hi Gayan,

 Does Dev Studio 3.8 version going to support Eclipse Luna SR2 and JDK
 1.8.0 version?

 Thanks and Regards,
 Harshana
 --
 Harshana Eranga Martin

 Committer - Eclipse ECF: http://www.eclipse.org/ecf/
 Blog: http://harshana05.blogspot.com
 Profile: https://www.google.com/profiles/harshana05

 On 19 May 2015 at 01:17, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi All,

 We have WSO2 Developer Studio 3.8.0 M1 ready to be downloaded at [1].

 This release includes following features, improvements, tasks and bug
 fixes.

 Features:

 [TOOLS-2672] https://wso2.org/jira/browse/TOOLS-2672 - Apply Security
 for Services
 [TOOLS-2800] https://wso2.org/jira/browse/TOOLS-2800 - Support for
 adding carbon 4.4.0 based servers into DevS sever view

 Improvements:

 [TOOLS-2768] https://wso2.org/jira/browse/TOOLS-2768 - Introduce a
 parameter to define user roles for services
 [TOOLS-2727] https://wso2.org/jira/browse/TOOLS-2727 - Doesn't allow
 to add multiple .dbs into a single Data Service Project
 [TOOLS-2718] https://wso2.org/jira/browse/TOOLS-2718 - The
 wso2-maven-release-pre-prepare-plugin does not support baic authentication
 [TOOLS-2793] https://wso2.org/jira/browse/TOOLS-2793 - Remove
 userstore form registry tree in DevS

 Tasks:

 [TOOLS-2739] https://wso2.org/jira/browse/TOOLS-2739 - Add a new
 option to the dashboard to create a Data Service Project
 [TOOLS-2687] https://wso2.org/jira/browse/TOOLS-2687 - Design the form
 editor for ws-security policy
 [TOOLS-2686] https://wso2.org/jira/browse/TOOLS-2686 - Serialization
 and Deserialization between Security Form Editor and Source view
 [TOOLS-2685] https://wso2.org/jira/browse/TOOLS-2685 - Create a multi
 page editor to represent ws-policy file
 [TOOLS-2684] https://wso2.org/jira/browse/TOOLS-2684 - Create a policy
 file and save as a registry resource
 [TOOLS-2783] https://wso2.org/jira/browse/TOOLS-2783 - Moving to
 Eclipse Luna
 [TOOLS-2678] https://wso2.org/jira/browse/TOOLS-2678 - Remove all
 snapshot dependencies

 Bugs:

 [TOOLS-2781] https://wso2.org/jira/browse/TOOLS-2781 - Backward
 compatibility of 3.7.1 with the 3.7.0 projects
 [TOOLS-2780] https://wso2.org/jira/browse/TOOLS-2780 - Opening API
 with Dev-Studio shows duplicate API Handlers
 [TOOLS-2777] https://wso2.org/jira/browse/TOOLS-2777 - Allowing to
 proceed when there is no Data Service Project specified when creating a
 Data Service
 [TOOLS-2776] https://wso2.org/jira/browse/TOOLS-2776 - Cannot create
 proxy service with name having numeric at the end
 [TOOLS-2757] https://wso2.org/jira/browse/TOOLS-2757 - ESB Rest API
 does not allow to save protocol type http/https
 [TOOLS-2754] https://wso2.org/jira/browse/TOOLS-2754 - When creating a
 Data Service display only the Data Services Projects
 [TOOLS-2751] https://wso2.org/jira/browse/TOOLS-2751 - Handle Import
 Data Service option in Data Service creation
 [TOOLS-2749] https://wso2.org/jira/browse/TOOLS-2749 - Pop up the DSS
 project creation wizard when click on the 'Create DSS Project' link in Data
 Service creation
 [TOOLS-2748] https://wso2.org/jira/browse/TOOLS-2748 - Include created
 .dbs files as dependencies when creating CAPP
 [TOOLS-2740] https://wso2.org/jira/browse/TOOLS-2740 - Allow to browse
 the DSS project when creating a new Data Service
 [TOOLS-2734] https://wso2.org/jira/browse/TOOLS-2734 - Adding an empty
 tag for policy key when creating a data service
 [TOOLS-2694] https://wso2.org/jira/browse/TOOLS-2694 - Formatting
 error on services.xml file created for an Axis2 service project
 [TOOLS-2715] https://wso2.org/jira/browse/TOOLS-2715 - Typo in
 DevStudio in server shut down message
 [TOOLS-2692] https://wso2.org/jira/browse/TOOLS-2692 - Rampart
 configuration is not getting serialized when the security scenario is
 Kerberos Authentication
 [TOOLS-2690] https://wso2.org/jira/browse/TOOLS-2690 - Delay in saving
 the changes when moving from design view to source view
 [TOOLS-2689] https://wso2.org/jira/browse/TOOLS-2689 - Serialize and
 deserialize the updated values on page change in the security form editor
 [TOOLS-2688] https://wso2.org/jira/browse/TOOLS-2688 - Deserialization
 issues when updating the source view in Security Form Editor
 [TOOLS-2674] https://wso2.org/jira/browse/TOOLS-2674 - Unable to
 redeploy CApp from within Developer Studio
 [TOOLS-2669] https://wso2.org/jira/browse/TOOLS-2669 - When creating
 JAX-RS project, the 'Finish' button is enabled even user not specifying any
 project location
 [TOOLS-2731] https://wso2.org/jira/browse/TOOLS-2731 - Importing
 existing ESB Artifacts to ESB Config Project creates incorrect Entry in
 artifact.xml file
 [TOOLS-2790] https://wso2.org/jira/browse/TOOLS-2790 - NullPointer
 exception in creating Registry Handler Project
 [TOOLS-2792] https://wso2.org/jira/browse/TOOLS

Re: [Dev] [DevStudio] Upgrading to Eclipse Che 3.9.2 for WSO2 Developer Studio 4.0.0-M1 release

2015-05-25 Thread Gayan Yalpathwala
Hi Rajeevan,

PR is merged.
From above mentioned issues, [1] is fixed and works in order. But I still
find an issue in Windows x64, reported in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=468165, which prevents me
from working out [2].

Thanks,


On Mon, May 25, 2015 at 3:21 PM, Rajeevan Vimalanathan rajeev...@wso2.com
wrote:

 Hi,

 We have upgraded WSO2 Developer Studio with Eclipse Che 3.9.2 (4.0.0-M0
 has Eclipse Che 3.8.0). This particular release of Eclipse Che is promised
 to fix the blockers and outstanding issues [1]  [2] reported to Codenvy.
 These changes will be effective with Developer Studio 4.0.0-M1.
 Please review and merge the pull request [3] for $subject.

 [1] Workspace selector produces an error and blocks creating projects in
 Windows - https://bugs.eclipse.org/bugs/show_bug.cgi?id=467810
  (Discussed in Eclipse Che start-up error in windows x64)
 [2] Removing new popup window for built artifacts -
 https://bugs.eclipse.org/bugs/show_bug.cgi?id=467831
  (Pull request sent)
 [1] https://github.com/wso2/cloud-dev-studio/pull/12

 Thanks,
 Rajeevan

 --

 Vimalanathan Rajeevan
 Software Engineer
 WSO2 Inc.:http://wso2.com
 lean.enterprise.middleware


 Mobile : +94 773090875




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609

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


[Dev] Developer Studio 3.8.0 M1 Released!

2015-05-18 Thread Gayan Yalpathwala
Hi All,

We have WSO2 Developer Studio 3.8.0 M1 ready to be downloaded at [1].

This release includes following features, improvements, tasks and bug fixes.

Features:

[TOOLS-2672] https://wso2.org/jira/browse/TOOLS-2672 - Apply Security for
Services
[TOOLS-2800] https://wso2.org/jira/browse/TOOLS-2800 - Support for adding
carbon 4.4.0 based servers into DevS sever view

Improvements:

[TOOLS-2768] https://wso2.org/jira/browse/TOOLS-2768 - Introduce a
parameter to define user roles for services
[TOOLS-2727] https://wso2.org/jira/browse/TOOLS-2727 - Doesn't allow to
add multiple .dbs into a single Data Service Project
[TOOLS-2718] https://wso2.org/jira/browse/TOOLS-2718 - The
wso2-maven-release-pre-prepare-plugin does not support baic authentication
[TOOLS-2793] https://wso2.org/jira/browse/TOOLS-2793 - Remove userstore
form registry tree in DevS

Tasks:

[TOOLS-2739] https://wso2.org/jira/browse/TOOLS-2739 - Add a new option
to the dashboard to create a Data Service Project
[TOOLS-2687] https://wso2.org/jira/browse/TOOLS-2687 - Design the form
editor for ws-security policy
[TOOLS-2686] https://wso2.org/jira/browse/TOOLS-2686 - Serialization and
Deserialization between Security Form Editor and Source view
[TOOLS-2685] https://wso2.org/jira/browse/TOOLS-2685 - Create a multi
page editor to represent ws-policy file
[TOOLS-2684] https://wso2.org/jira/browse/TOOLS-2684 - Create a policy
file and save as a registry resource
[TOOLS-2783] https://wso2.org/jira/browse/TOOLS-2783 - Moving to Eclipse
Luna
[TOOLS-2678] https://wso2.org/jira/browse/TOOLS-2678 - Remove all
snapshot dependencies

Bugs:

[TOOLS-2781] https://wso2.org/jira/browse/TOOLS-2781 - Backward
compatibility of 3.7.1 with the 3.7.0 projects
[TOOLS-2780] https://wso2.org/jira/browse/TOOLS-2780 - Opening API with
Dev-Studio shows duplicate API Handlers
[TOOLS-2777] https://wso2.org/jira/browse/TOOLS-2777 - Allowing to
proceed when there is no Data Service Project specified when creating a
Data Service
[TOOLS-2776] https://wso2.org/jira/browse/TOOLS-2776 - Cannot create
proxy service with name having numeric at the end
[TOOLS-2757] https://wso2.org/jira/browse/TOOLS-2757 - ESB Rest API does
not allow to save protocol type http/https
[TOOLS-2754] https://wso2.org/jira/browse/TOOLS-2754 - When creating a
Data Service display only the Data Services Projects
[TOOLS-2751] https://wso2.org/jira/browse/TOOLS-2751 - Handle Import Data
Service option in Data Service creation
[TOOLS-2749] https://wso2.org/jira/browse/TOOLS-2749 - Pop up the DSS
project creation wizard when click on the 'Create DSS Project' link in Data
Service creation
[TOOLS-2748] https://wso2.org/jira/browse/TOOLS-2748 - Include created
.dbs files as dependencies when creating CAPP
[TOOLS-2740] https://wso2.org/jira/browse/TOOLS-2740 - Allow to browse
the DSS project when creating a new Data Service
[TOOLS-2734] https://wso2.org/jira/browse/TOOLS-2734 - Adding an empty
tag for policy key when creating a data service
[TOOLS-2694] https://wso2.org/jira/browse/TOOLS-2694 - Formatting error
on services.xml file created for an Axis2 service project
[TOOLS-2715] https://wso2.org/jira/browse/TOOLS-2715 - Typo in DevStudio
in server shut down message
[TOOLS-2692] https://wso2.org/jira/browse/TOOLS-2692 - Rampart
configuration is not getting serialized when the security scenario is
Kerberos Authentication
[TOOLS-2690] https://wso2.org/jira/browse/TOOLS-2690 - Delay in saving
the changes when moving from design view to source view
[TOOLS-2689] https://wso2.org/jira/browse/TOOLS-2689 - Serialize and
deserialize the updated values on page change in the security form editor
[TOOLS-2688] https://wso2.org/jira/browse/TOOLS-2688 - Deserialization
issues when updating the source view in Security Form Editor
[TOOLS-2674] https://wso2.org/jira/browse/TOOLS-2674 - Unable to redeploy
CApp from within Developer Studio
[TOOLS-2669] https://wso2.org/jira/browse/TOOLS-2669 - When creating
JAX-RS project, the 'Finish' button is enabled even user not specifying any
project location
[TOOLS-2731] https://wso2.org/jira/browse/TOOLS-2731 - Importing existing
ESB Artifacts to ESB Config Project creates incorrect Entry in artifact.xml
file
[TOOLS-2790] https://wso2.org/jira/browse/TOOLS-2790 - NullPointer
exception in creating Registry Handler Project
[TOOLS-2792] https://wso2.org/jira/browse/TOOLS-2792 - WSO2 classpath
libraries cannot add
[TOOLS-2787] https://wso2.org/jira/browse/TOOLS-2787 - If allow role
dialog close without adding the roles , next time dialog will not open
[TOOLS-2752] https://wso2.org/jira/browse/TOOLS-2752 - Add the option
create new Data Service for the menu


Your feedback is most welcome. Please report issues at [2] and specify the
affect version as 3.8.0 M1.

[1] http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.8.0/M1/
[2] https://wso2.org/jira/browse/TOOLS

Thanks and Regards,
WSO2 Developer Studio Team
___
Dev mailing list
Dev@wso2.org

[Dev] Refactoring maven-tools repository

2015-05-17 Thread Gayan Yalpathwala
Hi Susankha,

Please find the attached diff file which has the partly done fix for maven
versioning (Repository [1]). I have renamed all the version tags with
specific domains and organized them in the root pom. I suggest you go ahead
with the versions I have mentioned in maven-versions.txt file which could
solve the issues we came up with. Related jira can be found in [2].

[1] https://github.com/wso2/maven-tools
[2] https://wso2.org/jira/browse/TOOLS-2785

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609

http://asia14.wso2con.com/
diff --git a/carbon-p2-plugin/pom.xml b/carbon-p2-plugin/pom.xml
index a2bc1c0..4683ffb 100755
--- a/carbon-p2-plugin/pom.xml
+++ b/carbon-p2-plugin/pom.xml
@@ -30,7 +30,7 @@
 modelVersion4.0.0/modelVersion
 artifactIdcarbon-p2-plugin/artifactId
 packagingmaven-plugin/packaging
-version1.5.5-SNAPSHOT/version
+version1.5.7-SNAPSHOT/version
 nameMaven P2 Profile Generation Plugin/name
 
 dependencies
diff --git a/pom.xml b/pom.xml
index 2eacfbb..c5a50ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -92,122 +92,79 @@
/modules
 
dependencyManagement
-   dependencies
+   dependencies  
+   !-- org.apache dependencies --
dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-core/artifactId
-   version${maven.core.version}/version
-   /dependency
-   dependency
-   groupIdorg.eclipse.tycho/groupId
-   artifactIdtycho-equinox/artifactId
-   version${tycho.version}/version
-   /dependency
-   dependency
-   groupIdorg.eclipse.tycho/groupId
-   artifactIdtycho-equinox-launching/artifactId
-   version${tycho.version}/version
-   /dependency
-   dependency
-   groupIdorg.eclipse.tycho/groupId
-   artifactIdtycho-p2-facade/artifactId
-   version${tycho.version}/version
+   
version${org.apache.maven.core.version}/version
/dependency
dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-project/artifactId
-   version${maven.project.version}/version
-   /dependency
-   dependency
-   groupIdjunit/groupId
-   artifactIdjunit/artifactId
-   version${junit.version}/version
-   scopetest/scope
+   
version${org.apache.maven.project.version}/version
/dependency
dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-model/artifactId
-   version${maven.model.version}/version
+   
version${org.apache.maven.model.version}/version
/dependency
dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-artifact/artifactId
-   version${maven.artifact.version}/version
+   
version${org.apache.maven.artifact.version}/version
/dependency
dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-archiver/artifactId
-   version${maven.archiver.version}/version
+   
version${org.apache.maven.archiver.version}/version
/dependency
dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-artifact-manager/artifactId
-   
version${maven.artifact.manager.version}/version
+   
version${org.apache.maven.artifact.manager.version}/version
/dependency
dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-settings/artifactId
-   version${maven.settings.version}/version
+   
version${org.apache.maven.settings.version}/version
/dependency

Re: [Dev] Inconsistency between maven-car-plugin and wso2-esb-sequence-plugin

2015-05-04 Thread Gayan Yalpathwala
Hi Manu,

Plugin versions you have mentioned are fine and go together as well. Can
you please try the MMM projects structure I have discussed with you offline
and multiple CAPP/ESB config projects to organize your artifacts? This
should reduce the complexity in your workspace and solve the issue.

Thanks,

On Mon, May 4, 2015 at 11:08 AM, Manuranga Perera m...@wso2.com wrote:

 Since this is bit urgent, can I use a older venison of the plug-ins for
 now ?
 Can you recommenced set of versions that will together?

 On Mon, May 4, 2015 at 10:51 AM, Jasintha Dasanayake jasin...@wso2.com
 wrote:

 Hi Manu

 Similar issue has been reported and Gayank is working to fix this issue ,

 @Gayank can you please verify this issue also resolve by your working fix
 .

 Thanks and Regards
 /Jasintha

 On Sat, May 2, 2015 at 6:01 PM, Manuranga Perera m...@wso2.com wrote:

 I have created a composite project and ESB configure project in
 Dev-Studio. Deployment via Dev-Studio works. But I can't do maven built
 form the top.

 The issue is that,

 1) config project creates files in proj/target/artifacts but
 composite project looks in proj/target/capp/artifacts .
 2) composite looks at proj/target/capp/artifacts/sequence/MySequence
 /target/MySequence-1.0.0.xml but real path is
 proj/target/artifacts/sequence/MySequence/MySequence.xml

 is this a know issue? please share any ideas on how to resolve.

 version info:
 maven-eclipse-plugin:2.9
 wso2-esb-proxy-plugin:2.0.10
 wso2-esb-sequence-plugin:2.0.10
 maven-car-plugin:2.0.10


 --
 With regards,
 *Manu*ranga Perera.

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




 --

 *Jasintha Dasanayake*

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/lean . enterprise . middleware*


 *mobile :- 0711368118 0711368118*




 --
 With regards,
 *Manu*ranga Perera.

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

LK: +94 71 868 2704
UK: +44 747 844 3609

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


Re: [Dev] [Announce] WSO2 Committers += Jayanga Dissanayake

2014-08-05 Thread Gayan Yalpathwala
Congratulations Jayanga!!


On Tue, Aug 5, 2014 at 12:43 PM, Amal Gunatilake am...@wso2.com wrote:

 Congratz !!

 Thank you   Best regards,

 *Amal Gunatilake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware


 On Tue, Aug 5, 2014 at 12:39 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrags... :)


 On Tue, Aug 5, 2014 at 12:17 PM, Milinda Perera milin...@wso2.com
 wrote:

 congratz Jayanga ...


 On Tue, Aug 5, 2014 at 12:09 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Congratz Jayanga 

 Regards,
 Firzhan


 On Tue, Aug 5, 2014 at 12:08 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Congratz Jayanga..!!!


 On Tue, Aug 5, 2014 at 12:05 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratzz Jayanga...!!!


 On Tue, Aug 5, 2014 at 11:34 AM, Akila Ravihansa Perera 
 raviha...@wso2.com wrote:

 Congratulations!
 On 5 Aug 2014 11:10, Sameera Jayasoma same...@wso2.com wrote:

  Hello Folks,

 In recognition of his contributions to WSO2 Carbon as well as to
 WSO2 in various forms, we are pleased to announce the WSO2 
 committership of
 Jayanga Dissanayake.

 Jayanga has contributed in many areas, including Development
 Governance Project for C5, Operation Center. We look forward to his
 valuable involvement as a WSO2 committer.

 Jayanga, welcome to WSO2 Committer's club. Please join us in
 congratulating him.

 Thanks,
 Sameera.

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


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




 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 Suhan Dharmasuriya

 Software Engineer - Test Automation

 Tel: +94 112 145345
 Mob: +94 779 869138

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



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




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


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




 --
 Rajith Vitharana

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

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



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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Fastest way to copy the SOAP Body from one Envelope to another

2014-08-05 Thread Gayan Yalpathwala
Hi Sandamal,

You can use org.apache.synapse.util.PayloadHelper class for all such
utility methods. Following is an example for your case.

PayloadHelper.setXMLPayload(envelope2,
envelope1.getBody().getFirstElement().cloneOMElement());

Hope this helps. Thanks,


On Tue, Aug 5, 2014 at 12:08 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi,

 I need to copy the SOAPBody of one SOAP Envelope and replace the SOAPBody
 of another using it. Does anyone know a fast mechanism to achieve this?

 Thanks.

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

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Fastest way to copy the SOAP Body from one Envelope to another

2014-08-05 Thread Gayan Yalpathwala
Hi Sandamal,

According to the offline chat I had with you, this should already be solved
right? Given solution should perfectly work for the given case.

Thanks,


On Tue, Aug 5, 2014 at 2:47 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi Gayan,


 This is the body of the Soap envelope that I need copied.

 ?xml version=1.0 encoding=UTF-8?soapenv:Body 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
ns:getQuoteResponse xmlns:ns=http://services.samples;
   ns:return xmlns:ax23=http://services.samples/xsd; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=ax23:GetQuoteResponse
  ax23:change-2.6118882540227526/ax23:change
  ax23:earnings12.94566873541299/ax23:earnings
  ax23:high-172.3778889138847/ax23:high
  ax23:last175.8553311594652/ax23:last
  ax23:lastTradeTimestampTue Aug 05 14:43:06 IST 
 2014/ax23:lastTradeTimestamp
  ax23:low182.9590055156625/ax23:low
  ax23:marketCap4.899401067021363E7/ax23:marketCap
  ax23:nameIBM Company/ax23:name
  ax23:open-175.20550902687447/ax23:open
  ax23:peRatio-17.11558033436292/ax23:peRatio
  ax23:percentageChange1.5254260629340552/ax23:percentageChange
  ax23:prevClose-171.22352354456038/ax23:prevClose
  ax23:symbolIBM/ax23:symbol
  ax23:volume7888/ax23:volume
   /ns:return
/ns:getQuoteResponse/soapenv:Body



 This is the SOAP body that needs to be replaced.


 ?xml version=1.0 encoding=UTF-8?soap:Body 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; /


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


 On Tue, Aug 5, 2014 at 1:49 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi Sandamal,

 You can use org.apache.synapse.util.PayloadHelper class for all such
 utility methods. Following is an example for your case.

 PayloadHelper.setXMLPayload(envelope2,
 envelope1.getBody().getFirstElement().cloneOMElement());

 Hope this helps. Thanks,


 On Tue, Aug 5, 2014 at 12:08 PM, Sandamal Weerasinghe sanda...@wso2.com
 wrote:

 Hi,

 I need to copy the SOAPBody of one SOAP Envelope and replace the
 SOAPBody of another using it. Does anyone know a fast mechanism to achieve
 this?

 Thanks.

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

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/





-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Waruna Perera

2014-08-01 Thread Gayan Yalpathwala
Congratulations Waruna!!


On Fri, Aug 1, 2014 at 1:22 PM, Krishantha Samaraweera krishan...@wso2.com
wrote:

 Hi all,

 It's my distinct pleasure to welcome Waruna Perera as a WSO2 Committer. He
 has been a valuable contributor for test automation and WSO2 product
 platform. In acknowledgement of his contributions, he's been voted as a
 WSO2 Committer. Welcome aboard and keep up the good work!

 Thanks,
 Krishantha.

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Isura Karunaratne

2014-07-23 Thread Gayan Yalpathwala
Congratulations Isura!!


On Wed, Jul 23, 2014 at 4:53 PM, Aruna Karunarathna ar...@wso2.com wrote:

 Congratzz Isura... !!!


 On Wed, Jul 23, 2014 at 4:43 PM, Malintha Adikari malin...@wso2.com
 wrote:

 Congratulations


 On Wed, Jul 23, 2014 at 4:41 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Congratzz Isura.

  ~Shameera.


 On Wed, Jul 23, 2014 at 4:39 PM, Hasintha Indrajee hasin...@wso2.com
 wrote:

 Congrats Isura.


 On Wed, Jul 23, 2014 at 4:37 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Congrats Isura ...


 On Wed, Jul 23, 2014 at 4:35 PM, Suresh Attanayaka sur...@wso2.com
 wrote:

 Congrats Isura.


 On Wed, Jul 23, 2014 at 4:30 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to announce Isura Karunaratne as a WSO2 Committer.
 Isura has been a valuable contributor for WSO2 Identity Server
 product, and in recognition of his contributions to WSO2, he has been 
 voted
 as a WSO2 Committer.

 Isura, Congratulations and Keep up the good work!

 Thanks  Regards,
 Johann.

 --
 Thanks  Regards,

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

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

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




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060

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




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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



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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R

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




 --
 *Malintha Adikari*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 71 2312958
 Blog:http://malinthas.blogspot.com
 Page:   http://about.me/malintha

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




 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Sajith Ravindra

2014-07-23 Thread Gayan Yalpathwala
Congratulations Sajith!!


On Wed, Jul 23, 2014 at 4:57 PM, Pulasthi Supun pulas...@wso2.com wrote:

 Congrats Sajith!


 On Wed, Jul 23, 2014 at 4:52 PM, Mohanadarshan Vivekanandalingam 
 mo...@wso2.com wrote:

 Congrats Sajith..!



 On Wed, Jul 23, 2014 at 4:49 PM, Rajeev Sampath raje...@wso2.com wrote:

 Congrats Sajith...!


 On Wed, Jul 23, 2014 at 3:42 PM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:


 Hi All,

 It's my pleasure to announce Sajith Ravindra as a WSO2 Committer.
 SajithR has been a valuable contributor for WSO2 CEP product and in
 recognition of his contributions to WSO2, he has been voted as a
 WSO2Committer.

 Sajith, Congratulations and Keep up the good work!

 Thanks and Regards,
 Suho

 --

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


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

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




 --
 Rajeev Sampath
 Senior Software Engineer
 WSO2, Inc.; http://www.wso2.com.

 Mobile:
 * +94716265766 %2B94716265766*

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




 --
 *V. Mohanadarshan*
 *Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com http://wso2.com *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673

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




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Prasad Tissera

2014-07-23 Thread Gayan Yalpathwala
Congratulations Prasad!!


On Wed, Jul 23, 2014 at 4:53 PM, Aruna Karunarathna ar...@wso2.com wrote:

 Congratzz Prasad...!!!


 On Wed, Jul 23, 2014 at 4:43 PM, Malintha Adikari malin...@wso2.com
 wrote:

 Congratulations


 On Wed, Jul 23, 2014 at 4:41 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Congrats Prasad !!!


 On Wed, Jul 23, 2014 at 4:40 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Congrats Prasad...


 On Wed, Jul 23, 2014 at 4:38 PM, Suresh Attanayaka sur...@wso2.com
 wrote:

 Congrats Prasad!


 On Wed, Jul 23, 2014 at 4:28 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to announce Prasad Tissera as a WSO2 Committer.
 Prasad has been a valuable contributor for WSO2 Identity Server
 product, and in recognition of his contributions to WSO2, he has been 
 voted
 as a WSO2 Committer.

 Prasad, Congratulations and Keep up the good work!

 Thanks  Regards,
 Johann.

 --
 Thanks  Regards,

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

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

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




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060

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




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

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




 --
 *Malintha Adikari*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 71 2312958
 Blog:http://malinthas.blogspot.com
 Page:   http://about.me/malintha

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




 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Thanuja Jayasinghe

2014-07-23 Thread Gayan Yalpathwala
Congratulations Thanuja!!


On Wed, Jul 23, 2014 at 4:55 PM, Lakshman Udayakantha lakshm...@wso2.com
wrote:

 Congratulations Thanuja


 On Wed, Jul 23, 2014 at 4:52 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratzz Thanuja...!!!


 On Wed, Jul 23, 2014 at 4:41 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Congratzz Thanuja.

 ~Shameera


 On Wed, Jul 23, 2014 at 4:40 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Congrats Thanuja !!


 On Wed, Jul 23, 2014 at 4:38 PM, Bhathiya Jayasekara bhath...@wso2.com
  wrote:

 Congratulations


 On Wed, Jul 23, 2014 at 4:34 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Congrats Thanuja..


 On Wed, Jul 23, 2014 at 4:27 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to announce Thanuja Jayasinghe as a WSO2 Committer
 . Thanuja has been a valuable contributor for WSO2 Identity Server
 product, and in recognition of his contributions to WSO2, he has been 
 voted
 as a WSO2 Committer.

 Thanuja, Congratulations and Keep up the good work!

 Thanks  Regards,
 Johann.

 --
 Thanks  Regards,

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

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

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




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




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

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

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




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R

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




 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 Lakshman Udayakantha
 Software Engineer, WSO2
 Mobile: *0711241005*

 *lakshm...@wso2.com lakshm...@wso2.com *


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] DevStudio build has never worked

2014-07-22 Thread Gayan Yalpathwala
Hi,

Noticed that changes in wso2-dev/developer-studio are not merged to
wso2/developer-studio. This is what has caused the issue.

Thanks,


On Tue, Jul 22, 2014 at 2:38 PM, Afkham Azeez az...@wso2.com wrote:

 $subject. Why?

 https://wso2.org/jenkins/job/developer-studio/

 It is totally UNACCEPTABLE under the new build system to have broken
 builds!

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

 *Lean . Enterprise . Middleware*

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


[Dev] Registry resource not found exception thrown at UES tenant login

2014-07-07 Thread Gayan Yalpathwala
Hi Manu/Sameera,

I get the following exception when logged in as a tenant. Version: UES
1.1.0. Noticed that this has been fixed in other products previously (refer
[1] and [2]).

[2014-07-07 12:19:38,795] ERROR
{org.wso2.carbon.registry.app.ResourceServlet} -  Error retrieving the
resource /_system/governance/repository/theme/admin/main.css. Resource does
not exist at path /_system/governance/repository/theme/admin/main.css
org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
Resource does not exist at path
/_system/governance/repository/theme/admin/main.css
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:532)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:164)
at
org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:524)
at
org.wso2.carbon.registry.app.ResourceServlet.doGet(ResourceServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
at
org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156)
at
org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java: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:62)
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

Re: [Dev] Integration Tests - AS BAM stat publishing or ESB-Activity Monitoring

2014-07-02 Thread Gayan Yalpathwala
Hi Chamil,

Did you happen to come across already existing test cases[1]? Hope you can
refer [2] as a sample test case and [3] is a good article to follow.

[1]
https://github.com/wso2-dev/product-as/tree/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests
[2]
https://github.com/wso2-dev/product-as/blob/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/AARServiceTestCase.java
[3]
http://wso2.com/library/articles/2014/06/introducing-automated-tests-for-wso2-products/

Thanks,


On Wed, Jul 2, 2014 at 2:04 PM, Chamil Jeewantha cha...@wso2.com wrote:

 Can someone point me to the git/svn location which has the $subject. My
 requirement is to write an Integration Test for AS-BAM data publishing. its
 really helpful if I can find some existing tests to refer to.

 Regards,
 Chamil

 --
 K.D. Chamil Jeewantha
 Associate Technical Lead
 WSO2, Inc.;  http://wso2.com
 Mobile: +94716813892


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] How to connect Twitter Streaming API through ESB?.

2014-07-01 Thread Gayan Yalpathwala
Hi Danesh,

In case there's no connector for a particular purpose, class mediators are
always an option. You can write your own classes to connect, process,
aggregate and store the response from the streaming API. Please use [1] and
[2] as a reference for writing and integrating class mediators in a message
flow. You can get these steps done in one proxy service.

As an additional step, you will have to define another proxy service to
retrieve data stored by the first proxy service. I hope Twitter's streaming
definition explains that further [below diagram].



[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/1.0.0/src/main/java/org/wso2/carbon/connector/twitter/TwitterConfig.java
[2]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/1.0.0/src/main/resources/twitter_config/init.xml

Thanks,


On Wed, Jul 2, 2014 at 10:07 AM, Danesh Kuruppu dan...@wso2.com wrote:

 Hi All,

 $subject please?

 The Twitter Connector in WSO2 ESB uses the Twitter REST API.
 Is it possible for me to connect Twitter Streaming API through ESB?

 Please help me.

 [1] https://dev.twitter.com/docs/api/streaming

 Thanks

 --

 Danesh Kuruppu
 Senior Software Engineer
 WSO2 Inc,
 Mobile: +94 (77) 1690552

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] [DEV] Connector testing error

2014-06-23 Thread Gayan Yalpathwala
Hi Sabashan,

Did you place the particular ESB pack in modules/distribution/target/
directory? You have to zip and copy the particular ESB pack there and this
gets picked up by tests in runtime.

Thanks,


On Mon, Jun 23, 2014 at 10:52 AM, sabashan baladevan sabashan...@gmail.com
wrote:

 Hi all,

 I have got this error when maven build,

  T E S T S
 ---
 Running TestSuite
 [2014-06-23 10:12:31,696]  INFO
 {org.wso2.carbon.automation.core.PlatformExecutionManager} -
  ---Test Execution Started --
 [2014-06-23 10:12:31,707]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
 null
 org.apache.maven.surefire.util.SurefireReflectionException:
 java.lang.reflect.InvocationTargetException; nested exception is
 java.lang.reflect.InvocationTargetException: null
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)


 What can be the problem? It indicates error in carbon zip file null, but I
 already placed it in particular folder. But still I have this error.


 Regards
 Sabashan

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] [BAM] Optimizing BAM Mediator Data Publishing Logic

2014-06-20 Thread Gayan Yalpathwala
Hi Jeewantha,

Thanks for your clarification. That sums up the issue and I guess the
restriction in Dev Studio helps in that case. Currently Dev Studio has no
intelligence to identify context sensitive mediators in a mediation flow
and then allow/block mediators after a send mediator.

Thanks,


On Fri, Jun 20, 2014 at 1:38 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Hi Gayan,

 This does not always work. For example the following give an
 org.apache.axiom.om.OMException Error.

 proxy name=testProxy transports=https http startOnLoad=true
 trace=disable
   description/
   target
  inSequence
 send
endpoint
   address uri=http://localhost:9000/
/endpoint
 /send
 log level=full/
  /inSequence
  outSequence
 send/
  /outSequence
   /target
/proxy


 The reason is the message is not fully built when the log mediator is
 executed. If you add another log level=full/ before the send mediator,
 both log mediators will work.

 Thanks,
 Jeewantha


 On Tue, Jun 17, 2014 at 9:50 AM, Gayan Yalpathwala gay...@wso2.com
 wrote:

 Hi All,


 On Mon, Jun 16, 2014 at 11:53 AM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Gayan,

 Thanks for the input, yes I noticed this in Developer Studio. By any
 chance do you know the reason for adding this restriction?

 As I understand there could be scenarios where we need to add mediators
 after a send mediator in an out sequence such as BAM and log. One other
 point to note here is that ESB has not restricted this.


 I have discussed about this offline with Jeewantha and figured out some
 exceptional cases where we get to add mediators after a send mediator.

 @Kasun,
  Why do we execute the flow after a send mediator since we expect only a
 non-blocking behavior from a send mediator? If so, we need to attend and
 sync these scenarios in ESB and Dev studio.


 Thanks


 On Mon, Jun 16, 2014 at 9:57 AM, Gayan Yalpathwala gay...@wso2.com
 wrote:

 Hi Imesh,

 Considering perf details you have mentioned, having the BAM mediator
 after a send mediator would optimize the situation. But it is not the
 recommended to add any mediator after a send mediator. If you check in
 Developer studio, we have deliberately restricted this behavior.

 Thanks,


 On Fri, Jun 13, 2014 at 10:20 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 HI Ayash,

 Yes after doing the optimisations we placed the BAM mediator after the
 send call in the out mediation flow.

 Thanks


 On Fri, Jun 13, 2014 at 2:33 AM, Ayash ayashkan...@wso2.com wrote:

 Hi Imesh,

 While experiencing this problem, do you remember where the BAM
 Mediators were in the mediation flow? Have you kept them after calling
 send or before in the mediation flow?

 Thanks,
 -Ayash


 On Thu, Feb 13, 2014 at 2:18 PM, Imesh Gunaratne im...@wso2.com
 wrote:

 s/comapred/compared/g
 s/millisecods/milliseconds/g


 On Thu, Feb 13, 2014 at 10:21 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 Hi Sinthuja,

 Thanks for your response. Absolutely the concern is not with the
 data publisher but with the bam mediator logic being executed in the
 mediation flow.

 This is something I experienced during last couple of days while
 configuring several BAM mediators in an ESB flow. When a load test was 
 run
 (with a set of concurrent users) and the ESB mediation latency was
 monitored, the BAM mediators were taking considerable amount of time
 comapred with the ESB latency without having the BAM mediators. It was 
 like
 90 ms with the BAM mediators and 35 ms without them.

 What I wanted to highlight here is that, I could not see any reason
 for executing the above logic in the mediation flow and adding several
 millisecods to the ESB latency.

 Thanks


 On Thu, Feb 13, 2014 at 12:32 AM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Hi Imesh,

 Publish() method in data publisher is not a blocking call, it's a
 asynchronous call. Within data publisher the events are put into a 
 queue
 and a separate thread does the real publishing to BAM. Also in BAM
 mediator, the AsyncDataPublisher is being used therefore the 
 connection to
 BAM is also made asynchronous.  Hence IMHO it's not required to spawn 
 a new
 thread externally to publish the events and make it complicated.

 Thanks,
 Sinthuja.


 On Thu, Feb 13, 2014 at 2:15 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 Hi,

 This is regarding the BAM Mediator 4.2.0.
 As it looks like currently the BAM Mediator is executing the data
 publishing logic in the same thread which the current message 
 mediation is
 happening:

 public class BamMediator:

 public boolean mediate(MessageContext messageContext) {
   ...
   try {
 stream.sendEvents(messageContext);
   } catch (BamMediatorException e) {
   return true;
   }

}
 }

 public class Stream {

 ...

 public void sendEvents(MessageContext messageContext) throws

Re: [Dev] Adding Mediators after the Send Mediator

2014-06-18 Thread Gayan Yalpathwala
Hi all,

Quoting Nirmal..
AFAIK in a send mediator you can specify a receiving sequence, which will
get invoked after receiving the response from the endpoint. So, the only
reason I can imagine is to handle a scenario where the mediation goes to a
receiving sequence and come back to the sequence you have the send mediator.


What exactly happens is that the Send mediator sends a non-blocking call to
the endpoint and the response hits the out sequence (OR receiving sequence
if defined). Mediators that follow the send mediator will be invoked
asynchronously. This is the same behavior of using a clone mediator as
explained by Jasintha.

Please find my comments inline as well.

On Wed, Jun 18, 2014 at 11:32 AM, Jasintha Dasanayake jasin...@wso2.com
wrote:

 small correction !

 .ideally flow should not continue after the send mediator ...

 /Jasintha

 On Wed, Jun 18, 2014 at 11:22 AM, Jasintha Dasanayake jasin...@wso2.com
 wrote:


 Send mediator consider as leaf node of a particular mediation flow  so
 ideally flow should not continue after send mediator.


We have restricted adding mediators after a send mediator in Developer
studio, but this is supported in ESB. IMO, We need to stick to one of the
above practices (Either allowing mediators after send mediator OR use
cloning) and resolve the conflicts between Developer studio and ESB.

if some want to continue mediation flow after invoke a external call the
 call mediator should be used , if user expect result in the out sequence
 then message should be clone first, after that one copy of message can be
 send while other copy of message continue the flow.

 Thanks
 /Jasintha




 On Wed, Jun 18, 2014 at 11:08 AM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Hi All,

 ESB allows to add mediators after the send mediator. Can someone state
 the use of adding mediators after the send mediator?

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

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




 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com http://wso2.com/
 lean . enterprise . middleware*


 *mobile :- 0711368118*




 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com http://wso2.com/
 lean . enterprise . middleware*


 *mobile :- 0711368118*

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



Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Proper Guide on RESTful API designing

2014-06-17 Thread Gayan Yalpathwala
All,

I found this[1] very useful on $Subject. WSO2 ESB REST API comprehensively
supports design and management aspects mentioned above. With the extensive
UI support on REST API in Developer studio, this becomes easier and more
flexible. Refer [2] and [3].

[1] http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api
[2] https://docs.wso2.org/display/ESB480/Using+the+REST+API
[3]
https://docs.wso2.org/display/DVS360/Creating+ESB+Artifacts#CreatingESBArtifacts-CreatingaRESTAPI

Thanks,


On Fri, Jun 13, 2014 at 10:07 AM, Dakshika Jayathilaka daksh...@wso2.com
wrote:

 +1 to have proper guideline  for all our products.



 On Fri, Jun 13, 2014 at 2:21 AM, Chan duli...@wso2.com wrote:

 I think we really need to push this and get a guideline of best practices
 for REST APIs. Bunch of products have REST APIs built to the core and I
 think we had some discussions around focusing API Manger on API Designing
 as well. +1 to have a guideline of best practices for all our products.

 Cheers~


 On Wed, Jun 11, 2014 at 8:45 PM, Dakshika Jayathilaka daksh...@wso2.com
 wrote:

 Hi,

 Do we have $subject. Are we following any specific set of guidance or Is
 that ok to go with general best practices. ex: [1
 http://www.amazon.com/gp/product/1449310508/]

 [1] http://www.amazon.com/gp/product/1449310508/

  Regards,

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

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




 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
  WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*



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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] [Architecture] Developer Studio 3.7.0 RC 1 Released!

2014-06-17 Thread Gayan Yalpathwala
Hi Isuru,

Developer Studio 3.7.0 runs on top of Eclipse Kepler and will not support
Eclipse Luna.

Thanks,


On Tue, Jun 17, 2014 at 11:23 PM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 Can we install Developer Studio 3.7.0 to Eclipse Luna? Eclipse Luna RC
 packages [1] are already available and I hope Developer Studio 3.7.0 will
 be compatible.

 [1] http://www.eclipse.org/downloads/index-developer.php


 On Tue, Jun 10, 2014 at 1:42 AM, Susankha Nirmala susan...@wso2.com
 wrote:

 Hi All,

   We have WSO2 Developer Studio 3.7.0 RC 1 ready to be downloaded at [1]
 and installed eclipse distributions available at [2]. This release includes
 following bug fixes, improvements and tasks.

 *Bug*

 [TOOLS-2261] - [Assignment Activity] XPath Expression auto fill is not
 working and also it's missing the 'Expression Language' selection drop down
 list
 [TOOLS-2448] - Dev Studio doesn't support DSS 3.2.0 cassandra data stax
  configuration
 [TOOLS-2451] - The property name should be 'Cache Type' instead of 'Cache
 Action'
 [TOOLS-2452] - Connection type should be 'Pool' instead of DB_Connection
 in DBLOOKUP and DBREPORT
 [TOOLS-2453] - Composite application project pom editor has been
 overridden by default maven pom editor
 [TOOLS-2454] - 'initAxis2ClientOptions' is missing in Callout Mediator
 [TOOLS-2455] - Properties are missing in the Property Window of the
 Failover Endpoint
 [TOOLS-2456] - 'Session Timeout' property is missing in LoadBalance
  Endpoint
 [TOOLS-2457] - Unnecessary properties 'WSDL Definition' and 'WSDL
 Description' in WSDLEndpoint
 [TOOLS-2458] - In Local entry properties view 'Value Type' property
 should be renamed properly with the values
 [TOOLS-2459] - 'Condition Type' property's values should be inline with
 management console in Filter Mediator
 [TOOLS-2461] - In Send Mediator only sequences should list down under
 'Static Receiving Sequence' property
 [TOOLS-2462] - App Factory Login window always gets default Host URL
 [TOOLS-2464] - In HTTPEndpoint unwanted properties are displayed
 [TOOLS-2468] - Bean Mediator's property window is not properly organized
 [TOOLS-2469] - Property Names of 'Format' and 'Format key' should be
 renamed accordingly in PayloadFactoryMediator
 [TOOLS-2470] - Title of the variable's window ('Variables' property
 window) of the XQuery Mediator is not descriptive
 [TOOLS-2471] - Entitlement Mediator property issues
 [TOOLS-2472] - Entitlement mediator's 'Entitlement Client Type' and
 'CallBack Class' values are not serializing properly
 [TOOLS-2473] - Local entry Properties view issues
 [TOOLS-2476] - Property Mediator's Property data type OM needs an inline
 editor
 [TOOLS-2477] - Property Mediator property isssues
 [TOOLS-2478] - Unnecessary property 'Consumer Receive Timeout' in Message
 Store
 [TOOLS-2479] - Schedule Task property issues
 [TOOLS-2480] - 'Endpoint Properties Configuration' dialog property type
 should support only LITERALS
 [TOOLS-2481] - App Factory tools - Fix errors that appears when a
 project is opened in Dev Studio
 [TOOLS-2485] - In Conditional Route branches window, when existing routes
 are removed, evaluator expression does not get removed
 [TOOLS-2487] - Conditional Router property name should be changed
 [TOOLS-2488] - In Validate Mediator entire row doesn't get removed
 [TOOLS-2492] - Log Mediator's property window doesn't pop up when the log
 separator is null
 [TOOLS-2493] - Can add more than one endpoint inside Call Mediator
 [TOOLS-2495] - Feature value does not get deserialized in the Validate
 Mediator
 [TOOLS-2497] - Bean mediator validation fails for empty string values
 [TOOLS-2498] - Registry Resource wizard allow to select template data
 mapper type
 [TOOLS-2499] - move messageStore icon into middle of the graphical editor
 [TOOLS-2502] - remove schedule task connection handlers
 [TOOLS-2507] - Message processor wizard icon need to be same as as they
 are in graphical view
 [TOOLS-2508] - NPE due to message processor plugin ID typo
 [TOOLS-2510] - Exception thrown while exporting a web application
 [TOOLS-2514] - BPEL deploy.xml editor crashes when saving
 [TOOLS-2515] - Introduce bamServerProfiles support to BPEL deploy.xml
 editor
 [TOOLS-2516] - NPE thrown when starting GREG 4.5.3 with DevStudio.
 [TOOLS-2517] - An internal error occurred during: Updating Maven
 Project in Spring project
 [TOOLS-2518] - HTTP Status 404 for Spring project when try to run with
 Developer Studio
 [TOOLS-2519] - Remove app factory login prompt when app factory
 perspective is opened via developer studio dashboard.
 [TOOLS-2520] - Composite App projects pom editor opens with default pom
 editor
 [TOOLS-2524] - Cannot undeploy or redeploy Capp with 4.0.0 based carbon
 servers
 [TOOLS-2535] - App Factory Tools - Datasources are not displayed in 
 application
 details view.
 [TOOLS-2537] - CApp Maven Plugin - Multi Module Projects - Only parent
 poms are deployed in to distribution management server
 [TOOLS-2540] - Error is thrown 

Re: [Dev] [BAM] Optimizing BAM Mediator Data Publishing Logic

2014-06-16 Thread Gayan Yalpathwala
Hi All,


On Mon, Jun 16, 2014 at 11:53 AM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Gayan,

 Thanks for the input, yes I noticed this in Developer Studio. By any
 chance do you know the reason for adding this restriction?

 As I understand there could be scenarios where we need to add mediators
 after a send mediator in an out sequence such as BAM and log. One other
 point to note here is that ESB has not restricted this.


I have discussed about this offline with Jeewantha and figured out some
exceptional cases where we get to add mediators after a send mediator.

@Kasun,
Why do we execute the flow after a send mediator since we expect only a
non-blocking behavior from a send mediator? If so, we need to attend and
sync these scenarios in ESB and Dev studio.


 Thanks


 On Mon, Jun 16, 2014 at 9:57 AM, Gayan Yalpathwala gay...@wso2.com
 wrote:

 Hi Imesh,

 Considering perf details you have mentioned, having the BAM mediator
 after a send mediator would optimize the situation. But it is not the
 recommended to add any mediator after a send mediator. If you check in
 Developer studio, we have deliberately restricted this behavior.

 Thanks,


 On Fri, Jun 13, 2014 at 10:20 AM, Imesh Gunaratne im...@wso2.com wrote:

 HI Ayash,

 Yes after doing the optimisations we placed the BAM mediator after the
 send call in the out mediation flow.

 Thanks


 On Fri, Jun 13, 2014 at 2:33 AM, Ayash ayashkan...@wso2.com wrote:

 Hi Imesh,

 While experiencing this problem, do you remember where the BAM
 Mediators were in the mediation flow? Have you kept them after calling
 send or before in the mediation flow?

 Thanks,
 -Ayash


 On Thu, Feb 13, 2014 at 2:18 PM, Imesh Gunaratne im...@wso2.com
 wrote:

 s/comapred/compared/g
 s/millisecods/milliseconds/g


 On Thu, Feb 13, 2014 at 10:21 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 Hi Sinthuja,

 Thanks for your response. Absolutely the concern is not with the data
 publisher but with the bam mediator logic being executed in the mediation
 flow.

 This is something I experienced during last couple of days while
 configuring several BAM mediators in an ESB flow. When a load test was 
 run
 (with a set of concurrent users) and the ESB mediation latency was
 monitored, the BAM mediators were taking considerable amount of time
 comapred with the ESB latency without having the BAM mediators. It was 
 like
 90 ms with the BAM mediators and 35 ms without them.

 What I wanted to highlight here is that, I could not see any reason
 for executing the above logic in the mediation flow and adding several
 millisecods to the ESB latency.

 Thanks


 On Thu, Feb 13, 2014 at 12:32 AM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Hi Imesh,

 Publish() method in data publisher is not a blocking call, it's a
 asynchronous call. Within data publisher the events are put into a queue
 and a separate thread does the real publishing to BAM. Also in BAM
 mediator, the AsyncDataPublisher is being used therefore the connection 
 to
 BAM is also made asynchronous.  Hence IMHO it's not required to spawn a 
 new
 thread externally to publish the events and make it complicated.

 Thanks,
 Sinthuja.


 On Thu, Feb 13, 2014 at 2:15 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 Hi,

 This is regarding the BAM Mediator 4.2.0.
 As it looks like currently the BAM Mediator is executing the data
 publishing logic in the same thread which the current message 
 mediation is
 happening:

 public class BamMediator:

 public boolean mediate(MessageContext messageContext) {
   ...
   try {
 stream.sendEvents(messageContext);
   } catch (BamMediatorException e) {
   return true;
   }

}
 }

 public class Stream {

 ...

 public void sendEvents(MessageContext messageContext) throws 
 BamMediatorException {
 ActivityIDSetter activityIDSetter = new ActivityIDSetter();
 
 activityIDSetter.setActivityIdInTransportHeader(messageContext);
 try {
 if (!isPublisherCreated) {
 initializeDataPublisher(this);
 isPublisherCreated = true;
 }
 this.publishEvent(messageContext);
 } catch (BamMediatorException e) {
 String errorMsg = Problem occurred while logging events 
 in the BAM Mediator.  + e.getMessage();
 log.error(errorMsg, e);
 throw new BamMediatorException(errorMsg, e);
 }
 }

 ...

 }

 I think if we move this logic to a new thread we could reduce the
 time it takes to execute the data publishing logic from the main 
 message
 flow. WDYT?

 Thanks

 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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




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

Re: [Dev] [BAM] Optimizing BAM Mediator Data Publishing Logic

2014-06-15 Thread Gayan Yalpathwala
Hi Imesh,

Considering perf details you have mentioned, having the BAM mediator after
a send mediator would optimize the situation. But it is not the recommended
to add any mediator after a send mediator. If you check in Developer
studio, we have deliberately restricted this behavior.

Thanks,


On Fri, Jun 13, 2014 at 10:20 AM, Imesh Gunaratne im...@wso2.com wrote:

 HI Ayash,

 Yes after doing the optimisations we placed the BAM mediator after the
 send call in the out mediation flow.

 Thanks


 On Fri, Jun 13, 2014 at 2:33 AM, Ayash ayashkan...@wso2.com wrote:

 Hi Imesh,

 While experiencing this problem, do you remember where the BAM Mediators
 were in the mediation flow? Have you kept them after calling send or
 before in the mediation flow?

 Thanks,
 -Ayash


 On Thu, Feb 13, 2014 at 2:18 PM, Imesh Gunaratne im...@wso2.com wrote:

 s/comapred/compared/g
 s/millisecods/milliseconds/g


 On Thu, Feb 13, 2014 at 10:21 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 Hi Sinthuja,

 Thanks for your response. Absolutely the concern is not with the data
 publisher but with the bam mediator logic being executed in the mediation
 flow.

 This is something I experienced during last couple of days while
 configuring several BAM mediators in an ESB flow. When a load test was run
 (with a set of concurrent users) and the ESB mediation latency was
 monitored, the BAM mediators were taking considerable amount of time
 comapred with the ESB latency without having the BAM mediators. It was like
 90 ms with the BAM mediators and 35 ms without them.

 What I wanted to highlight here is that, I could not see any reason for
 executing the above logic in the mediation flow and adding several
 millisecods to the ESB latency.

 Thanks


 On Thu, Feb 13, 2014 at 12:32 AM, Sinthuja Ragendran sinth...@wso2.com
  wrote:

 Hi Imesh,

 Publish() method in data publisher is not a blocking call, it's a
 asynchronous call. Within data publisher the events are put into a queue
 and a separate thread does the real publishing to BAM. Also in BAM
 mediator, the AsyncDataPublisher is being used therefore the connection to
 BAM is also made asynchronous.  Hence IMHO it's not required to spawn a 
 new
 thread externally to publish the events and make it complicated.

 Thanks,
 Sinthuja.


 On Thu, Feb 13, 2014 at 2:15 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 Hi,

 This is regarding the BAM Mediator 4.2.0.
 As it looks like currently the BAM Mediator is executing the data
 publishing logic in the same thread which the current message mediation 
 is
 happening:

 public class BamMediator:

 public boolean mediate(MessageContext messageContext) {
   ...
   try {
 stream.sendEvents(messageContext);
   } catch (BamMediatorException e) {
   return true;
   }

}
 }

 public class Stream {

 ...

 public void sendEvents(MessageContext messageContext) throws 
 BamMediatorException {
 ActivityIDSetter activityIDSetter = new ActivityIDSetter();
 activityIDSetter.setActivityIdInTransportHeader(messageContext);
 try {
 if (!isPublisherCreated) {
 initializeDataPublisher(this);
 isPublisherCreated = true;
 }
 this.publishEvent(messageContext);
 } catch (BamMediatorException e) {
 String errorMsg = Problem occurred while logging events in 
 the BAM Mediator.  + e.getMessage();
 log.error(errorMsg, e);
 throw new BamMediatorException(errorMsg, e);
 }
 }

 ...

 }

 I think if we move this logic to a new thread we could reduce the
 time it takes to execute the data publishing logic from the main message
 flow. WDYT?

 Thanks

 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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




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

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955





 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware




 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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




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




 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


 

Re: [Dev] WSO2 Committers += Shazni Nazir

2014-06-03 Thread Gayan Yalpathwala
Congratulations Shazni!!


On Wed, Jun 4, 2014 at 11:06 AM, Tishan Dahanayakage tis...@wso2.com
wrote:

 Congratz Shazni!


 On Wed, Jun 4, 2014 at 11:04 AM, Nufail Mohamed nuf...@wso2.com wrote:

 Congrats Shazni


 On Wed, Jun 4, 2014 at 10:56 AM, Lali Devamanthri l...@wso2.com wrote:

 Congrats Shazni


 On Tue, Jun 3, 2014 at 7:51 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Congrats Shazni!!




 On Tue, Jun 3, 2014 at 7:49 PM, Subash Chaturanga sub...@wso2.com
 wrote:

 Hi all,
 It's my pleasure to announce Shazni as a WSO2 Committer. Shazni has
 done great contributions to G-Reg product and showed very good enthusiasm
 in his work. And in recognition of his contribution he has been voted as a
 wso2 commiter.

 Shazni, welcome aboard and keep up the good work!.

 --
 Thanks
 /subash

 *Subash Chaturanga*
 Senior Software Engineer :Platform TG; WSO2 Inc. http://wso2.com

 email: sub...@wso2.com
 blog:  http://subashsdm.blogspot.com/
 twitter: @subash89
 phone: +9477 2225922
 Lean . Enterprise . Middleware

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




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
  http://www.wso2.com

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



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




 --
 Tishan Dahanayakage
 Software Engineer
 WSO2, Inc.
 Mobile:+94 716481328

 Disclaimer: This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, re-transmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


[Dev] [DataMapper] A major limitation in converting JSON to Avro schema

2014-05-08 Thread Gayan Yalpathwala
Hi,

It was found that a JSON of following format is not possible to be
converted to respective Avro schema and an exception [1] is thrown.

{
   avatarUrls:{
  16x16:
https://jirastg.wso2.org/jira/secure/projectavatar?size=xsmallpid=10030avatarId=10011
,
  24x24:
https://jirastg.wso2.org/jira/secure/projectavatar?size=smallpid=10030avatarId=10011
,
  32x32:
https://jirastg.wso2.org/jira/secure/projectavatar?size=mediumpid=10030avatarId=10011
,
  48x48:
https://jirastg.wso2.org/jira/secure/projectavatar?pid=10030avatarId=10011;
   }
}

This is due to key values in JSON that start with numbers. In JSON, this is
possible but it is not possible on java based Avro. How can we overcome
this in DataMapper context?

[1]
org.apache.avro.SchemaParseException: Illegal initial character: 16x16
at org.apache.avro.Schema.validateName(Schema.java:1061)
at org.apache.avro.Schema.access$200(Schema.java:79)
at org.apache.avro.Schema$Field.init(Schema.java:372)
at org.apache.avro.Schema$Field.init(Schema.java:367)
at
org.wso2.developerstudio.datamapper.diagram.custom.persistence.JsonToAvroSchemaTransformer.createField(JsonToAvroSchemaTransformer.java:239)
at
org.wso2.developerstudio.datamapper.diagram.custom.persistence.JsonToAvroSchemaTransformer.createRecord(JsonToAvroSchemaTransformer.java:146)
at
org.wso2.developerstudio.datamapper.diagram.custom.persistence.JsonToAvroSchemaTransformer.createRecord(JsonToAvroSchemaTransformer.java:140)
at
org.wso2.developerstudio.datamapper.diagram.custom.persistence.JsonToAvroSchemaTransformer.createRecord(JsonToAvroSchemaTransformer.java:140)
at
org.wso2.developerstudio.datamapper.diagram.custom.persistence.JsonToAvroSchemaTransformer.createArray(JsonToAvroSchemaTransformer.java:186)
at
org.wso2.developerstudio.datamapper.diagram.custom.persistence.JsonToAvroSchemaTransformer.transform(JsonToAvroSchemaTransformer.java:104)
at
org.wso2.developerstudio.datamapper.diagram.custom.action.SchemaFromJsonAction.doRun(SchemaFromJsonAction.java:82)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.run(AbstractActionHandler.java:359)
at
org.eclipse.gmf.runtime.common.ui.action.ActionManager$1.run(ActionManager.java:225)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.gmf.runtime.common.ui.action.ActionManager.run(ActionManager.java:223)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.runWithEvent(AbstractActionHandler.java:377)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

http://asia14.wso2con.com/H

[Dev] Handling non-root JSON in DataMapper visual editor

2014-05-05 Thread Gayan Yalpathwala
Hi,

Current implementation of visual DataMapper always expects schemas with a
root record (Type). This basically should be a named record so that it
could be visually represented in the tree structure. A sample is given
below.

{
   name:sfRecords,
   type:record,
   fields:[
  {
 name:sfRecord,
 type:{
type:array,
items:{
   name:sfRecord,
   type:record,
   fields:[
  {
 name:Opportunity_Name,
 type:string
  },
  {
 name:Account_Name,
 type:string
  },
  {
 name:Amount,
 type:string
  }
   ]
}
 }
  }
   ]
}

​
A problem occurs when a JSON data-set is converted to avro schema using the
given option. JSON can exist without a named root node therefore such input
cannot be represented visually.

Eg:-

 {
   expand:schema,names,
   startAt:0,
   maxResults:50,
   total:6,
   issues:[
  {
 id:10230,
 self:http://kelpie9:8081/rest/api/2/issue/BULK-62;,
 key:BULK-62
  },
  {
 id:10004,
 self:http://kelpie9:8081/rest/api/2/issue/BULK-47;,
 key:BULK-47
  }
   ]
}

What will be the approach for handling inputs like this? IMO, we can
introduce a default root node to both input and output tree structures, so
that any forthcoming elements can be listed below that regardless of their
type (either Type, List or Attribute).

Thanks,


-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] [Data mapper] Declare project constants in a Util class

2014-04-24 Thread Gayan Yalpathwala
Hi Lali,

We use messages.properties file for localization purposes. Here we include
only messages that should be conveyed to the user which can later be
translated to a different language. So I don't think this is not a good
location to store project constants.

Thanks,


On Thu, Apr 24, 2014 at 12:30 PM, Lali Devamanthri l...@wso2.com wrote:

 Hi,
 Aren't we use 'messages.properties'  file for declare all constant in a
 project? Is it only for keep dialog box and wizard messages ?


 Thanks,
 Lali


 On Wed, Apr 23, 2014 at 12:41 PM, Susinda Perera susi...@wso2.com wrote:

 +1, Move it to a common place so it would be easy for all of us to code
 and maintain.



 On Wed, Apr 23, 2014 at 12:21 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi,

 I am thinking of moving all datamapper visual editor project constants
 to dataMapper.diagram.custom.util.Editorutils class. Currently, some
 extensions, prefixes and suffixes are scattered around the code base and
 hope this will help making them reusable. Any thoughts?

 Thanks,

 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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




 --
 *Susinda Perera*
 Software Engineer
 Mobile:(+94)716049075

 WSO2 Inc. http://wso2.com/
 Tel : 94 11 214 5345 Fax :94 11 2145300


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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
 http://www.wso2.com




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


[Dev] [Data mapper] Declare project constants in a Util class

2014-04-23 Thread Gayan Yalpathwala
Hi,

I am thinking of moving all datamapper visual editor project constants
to dataMapper.diagram.custom.util.Editorutils class. Currently, some
extensions, prefixes and suffixes are scattered around the code base and
hope this will help making them reusable. Any thoughts?

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] [Data mapper] Wrong placement of new tree elements

2014-04-23 Thread Gayan Yalpathwala
Hi Susinda,

We have tested the emf model. It correctly adds the new element as a child
of the correct selectedNode. The problem occurs only in the graphical model.

Thanks,


On Wed, Apr 23, 2014 at 12:38 PM, Susinda Perera susi...@wso2.com wrote:

 Might be selectedNode is wrong, when there are list of nodes when you
 mouse click and select, it may sometimes selects the upper node or parent
 node.




 On Wed, Apr 23, 2014 at 9:27 AM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi,

 I am adding new elements to existing tree nodes of input and output trees
 and encounter a wrong placing issue for newly added tree elements. The
 following code snippet is used to add a new element to a tree node.

 EObject object = ((Node) selectedEP.getModel()).getElement();
 // Used to identify the selected resource of the model
 TreeNode selectedNode = (TreeNode) object;

 // Configure the new element by setting default values
 Element elementNew = DataMapperFactory.eINSTANCE.createElement();
 elementNew.setName(NEW_FIELD_ID);
 elementNew.setLevel(selectedNode.getLevel() + 1);
 elementNew.setSchemaDataType(SchemaDataType.STRING);

 AddCommand addCmd = new AddCommand(((GraphicalEditPart)
 selectedEP).getEditingDomain(),
 selectedNode, DataMapperPackage.Literals.TREE_NODE__ELEMENT, elementNew,
 0);
 if (addCmd.canExecute()) {
 ((GraphicalEditPart) selectedEP).getEditingDomain().getCommandStack()
 .execute(addCmd);
 }

 This successfully adds the new element as a child of the selected
 editpart in the emf model, yet graphically displays above the selected
 editpart (not under the selected editpart).

 (Here, a NewField is added to NewRecord)

 Another thing to note here is that when a new field is added to an
 imported tree node like sfRecord, it is correctly added under the exact
 sfRecord node. Any thoughts on this?

 Thanks,​

 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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




 --
 *Susinda Perera*
 Software Engineer
 Mobile:(+94)716049075

 WSO2 Inc. http://wso2.com/
 Tel : 94 11 214 5345 Fax :94 11 2145300




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Need help on 'Can not serialize OM Element Envelope' Exception in Axis2

2014-04-22 Thread Gayan Yalpathwala
Hi Supun,

As far as I have identified, this can occur when the input does not match
with the expected. I think you might have sent a message wrapped by an
envelope where the method only expects the actual payload. Please refer
comments in [1].

[1] https://issues.apache.org/jira/browse/AXIOM-237

Thanks,


On Tue, Apr 22, 2014 at 10:13 AM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 Im trying to create a web-service in Axis2 and access the service from a
 client using the stub (which was generated using the wsdl). One of the
 methods takes a OMElement as the input parameter. Thus, when I call that
 method using the stub, I get the following Exception.












 *Exception in thread main java.lang.RuntimeException: Can not serialize
 OM Element Envelopeat
 org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963)
 at java.lang.String.valueOf(String.java:2854) at
 java.io.PrintStream.println(PrintStream.java:821)at
 client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471)
 at client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)
 Caused by: javax.xml.stream.XMLStreamException: Unknow type can not
 serializeat
 org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071)
 at
 org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
 *



 The OMElement which is sent as the parameter, takes the following format.



 *ns:viewOrder xmlns:ns=orderprocessorns
 ns:orderId0001/ns:orderId /ns:viewOrder*


 Any idea whats have been done wrong here?
 The other methods in the service stub, which takes data types
 int/string/etc as input parameters, work fine.

 Thanks,
 Supun

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

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Need help on 'Can not serialize OM Element Envelope' Exception in Axis2

2014-04-22 Thread Gayan Yalpathwala
Hi Supun,


On Tue, Apr 22, 2014 at 3:08 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Gayan,

 I went through the link, but doesn't seems to be the issue in my case.

 Message sent by the client does not contain the SOAP envelop. And the same
 method actually works when accessed using sendReceive() function. I think
 the issue is with the data type of the element in the wsdl, which is as
 below.

 xs:element name=viewOrder
xs:complexType
 xs:sequence
   xs:element minOccurs=0 name=element nillable=true
 type=xs:*anyType*/
 /xs:sequence
/xs:complexType
 /xs:element

 It considers the type as anyType, thus the method in the stub is
 created with a input parameter of the type java.lang.Object rather than
 an OMElement.


I found that there is a known issue here. Stub method is supposed to handle
any generic java object when the type is anyType in wsdl, but throws this
exception only for OMElement. There is a previous discussion subjecting *[Dev]
{Need help/ AXIS2}Unknown type can not serialize Exception* and I can
see two open issues ([1] and [2]) as well. I think Dushan can shed some
light on this.

[1] https://issues.apache.org/jira/browse/AXIS2-3797
[2] https://wso2.org/jira/browse/WSAS-1553


 Not sure about a solution as yet.

 Thanks,
 Supun


 On Tue, Apr 22, 2014 at 2:55 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi Supun,

 As far as I have identified, this can occur when the input does not match
 with the expected. I think you might have sent a message wrapped by an
 envelope where the method only expects the actual payload. Please refer
 comments in [1].

 [1] https://issues.apache.org/jira/browse/AXIOM-237

 Thanks,


 On Tue, Apr 22, 2014 at 10:13 AM, Supun Sethunga sup...@wso2.com wrote:

  Hi,

 Im trying to create a web-service in Axis2 and access the service from a
 client using the stub (which was generated using the wsdl). One of the
 methods takes a OMElement as the input parameter. Thus, when I call that
 method using the stub, I get the following Exception.












 *Exception in thread main java.lang.RuntimeException: Can not
 serialize OM Element Envelopeat
 org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963)
 at java.lang.String.valueOf(String.java:2854) at
 java.io.PrintStream.println(PrintStream.java:821)at
 client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471)
 at client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)
 Caused by: javax.xml.stream.XMLStreamException: Unknow type can not
 serializeat
 org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071)
 at
 org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
 *



 The OMElement which is sent as the parameter, takes the following format.



 *ns:viewOrder xmlns:ns=orderprocessorns
 ns:orderId0001/ns:orderId /ns:viewOrder*


 Any idea whats have been done wrong here?
 The other methods in the service stub, which takes data types
 int/string/etc as input parameters, work fine.

 Thanks,
 Supun

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

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




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



Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


[Dev] [Data mapper] Wrong placement of new tree elements

2014-04-22 Thread Gayan Yalpathwala
Hi,

I am adding new elements to existing tree nodes of input and output trees
and encounter a wrong placing issue for newly added tree elements. The
following code snippet is used to add a new element to a tree node.

EObject object = ((Node) selectedEP.getModel()).getElement();
// Used to identify the selected resource of the model
TreeNode selectedNode = (TreeNode) object;

// Configure the new element by setting default values
Element elementNew = DataMapperFactory.eINSTANCE.createElement();
elementNew.setName(NEW_FIELD_ID);
elementNew.setLevel(selectedNode.getLevel() + 1);
elementNew.setSchemaDataType(SchemaDataType.STRING);

AddCommand addCmd = new AddCommand(((GraphicalEditPart)
selectedEP).getEditingDomain(),
selectedNode, DataMapperPackage.Literals.TREE_NODE__ELEMENT, elementNew, 0);
if (addCmd.canExecute()) {
((GraphicalEditPart) selectedEP).getEditingDomain().getCommandStack()
.execute(addCmd);
}

This successfully adds the new element as a child of the selected editpart
in the emf model, yet graphically displays above the selected editpart (not
under the selected editpart).

(Here, a NewField is added to NewRecord)

Another thing to note here is that when a new field is added to an imported
tree node like sfRecord, it is correctly added under the exact sfRecord
node. Any thoughts on this?

Thanks,​

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Waruna Jayaweera

2014-04-19 Thread Gayan Yalpathwala
Congratulations Waruna!!


On Sat, Apr 19, 2014 at 10:07 PM, Manoj Kumara ma...@wso2.com wrote:

 Congratulations Waruna !!!


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


 On Sat, Apr 19, 2014 at 8:23 AM, Nandika Jayawardana nand...@wso2.comwrote:

 Hi All,

 It's my  pleasure to announce Waruna Jayaweera as a WSO2 Committer.
 Waruna has  been a valuable contributor for WSO2 BPS / BRS products and in
 recognition of his contributions to WSO2, he has been voted as a WSO2
 Committer.

 Waruna, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

 --
 Nandika Jayawardana
 Senior Technical Lead
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware

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



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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Amal Gunatilake

2014-04-19 Thread Gayan Yalpathwala
Congratulations on your achievement Amal !!


On Sat, Apr 19, 2014 at 10:08 PM, Manoj Kumara ma...@wso2.com wrote:

 Congratulation Amal !!!


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


 On Sat, Apr 19, 2014 at 8:27 AM, Nandika Jayawardana nand...@wso2.comwrote:

 Hi All,

 It's my  pleasure to announce Amal Gunatilake as a WSO2 Committer. Amal
 has  been a valuable contributor for WSO2 BPS product and in recognition of
 his contributions to WSO2, he has been voted as a WSO2 Committer.

 Amal, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

 --
 Nandika Jayawardana
 Senior Technical Lead
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware

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



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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] [Data-mapper] Maintain an avro schema object model

2014-04-17 Thread Gayan Yalpathwala
Hi Jasintha,


On Thu, Apr 17, 2014 at 6:11 PM, Jasintha Dasanayake jasin...@wso2.comwrote:


 Please have a look in the ESB graphical editor, there we have maintained
 the synapse model for a particular mediator, similarly you have to maintain
 the Avro schema model here


I have referred TaskTransformer class where it transforms the ecore model
to respective synapse model during serialization time. IMO, We can use a
similar approach to transform the ecore model to respective avro model when
saving the diagram. WDYT?


 Thanks
 /Jasintha


 On Thu, Apr 17, 2014 at 6:05 PM, Lali Devamanthri l...@wso2.com wrote:

 Hi GayanK,


 On Thu, Apr 17, 2014 at 4:27 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi,

 I am in the process of implementing the tool to build input and output
 schema of data-mapper visual editor. Here I need to maintain an object
 model of type org.apache.avro.Schema where it should be accessible by an
 array of action classes which reside in
 org.wso2.developerstudio.visualdatamapper.diagram package. This model
 should reflect input and ouptut avro schemas and should be modified by
 above different action classes. Would it be a better idea to maintain a
 variable of the above type, local to DataMapperMultiPageEditor for this
 purpose?


 No, DataMapperMultiPageEditor is for handle switching between graphical
 editor and source editor in data mapper project. Considering your
 requirements, its not a good idea to use DataMapperMultiPageEditor class
 for keeping object model.

 Thanks,
 Lali


 Thanks,

 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
  http://www.wso2.com

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




 --

 *Jasintha Dasanayake *


 *Software EngineerWSO2 Inc. | http://wso2.com http://wso2.com/ lean .
 enterprise . middleware*


 *mobile :- 0711368118*



Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


[Dev] [Developer-studio] IllegalStateException when updating GMF resource set in run-time

2014-04-16 Thread Gayan Yalpathwala
Hi,

I am trying to dynamically update one of the datamapper GMF editparts using
the following [1] code snippet. This throws an IllegalStateException [2].
Any idea on how I can update the resource set in run-time?

[1]
TreeNode graphicalTreeModel = rootDiagram.getInput().getTreeNode().get(0);
TreeNode treeNodeNew = DataMapperFactory.eINSTANCE.createTreeNode();
treeNodeNew.setName(Test node);
treeNodeNew.setLevel(2);
treeNodeNew.setSchemaDataType(SchemaDataType.INT);
graphicalTreeModel.getNode().add(treeNodeNew);

[2]
!MESSAGE Cannot modify resource set without a write transaction
!STACK 0
java.lang.IllegalStateException: Cannot modify resource set without a write
transaction
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.assertWriting(TransactionChangeRecorder.java:348)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.appendNotification(TransactionChangeRecorder.java:302)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.processObjectNotification(TransactionChangeRecorder.java:284)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.notifyChanged(TransactionChangeRecorder.java:240)
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at
org.eclipse.emf.common.notify.impl.NotificationImpl.dispatch(NotificationImpl.java:1027)
at
org.eclipse.emf.common.notify.impl.NotificationImpl.dispatch(NotificationImpl.java:1032)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:299)
at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:303)
at
dataMapper.diagram.custom.action.AddNewRecordAction.addNewRecordToModel(AddNewRecordAction.java:119)
at
dataMapper.diagram.custom.action.AddNewRecordAction.doRun(AddNewRecordAction.java:99)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.run(AbstractActionHandler.java:359)
at
org.eclipse.gmf.runtime.common.ui.action.ActionManager$1.run(ActionManager.java:225)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.gmf.runtime.common.ui.action.ActionManager.run(ActionManager.java:223)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.runWithEvent(AbstractActionHandler.java:377)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Need Clarifications about Data Mapper Mediator

2014-04-11 Thread Gayan Yalpathwala
Hi Sohani,

Please find comments inline.

On Fri, Apr 11, 2014 at 9:48 PM, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 DataMapperMediator has been implemented so far and I need to clarify few
 things as listed below.

 1.Since user should mention the required data type for input and output as
 discussed, should these fields for mentioning the data types/formats be
 mandatory fields? As the initial step we have defined set of data types
 that are supported by Data Mapper mediator and has set one of those data
 types as the default one (Eg:JSON). Will this work?


I think we can go with this approach. IMO, we should think about the 80:20
rule and set default type as xml since most of the use cases come around
xml.


 2. Does DataMapperMediator needs to have a front end implementation ? IMO
 user should't give the ability to create a DataMapperMediator in ESB
 management console since the graphical editor for data mapping is available
 in developer studio and there is no point of providing a facility as such.
 WDYT?


Agree with your point. I don't see any value in adding data mapper mediator
in management console, since it is completely configured only through
developer-studio.


 Thanks,
 Sohani


 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

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



Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] ESB 4.8.1 - sample 360 - Exception when trying to access database

2014-04-09 Thread Gayan Yalpathwala
Hi Sameera,

In order to create derby databases, those three jars should be present in
the /repository/components/extensions directory. Secondly, the same set of
drivers should be present in /repository/components/lib directory where
dblookup mediator will pick them up. The first purpose is clearly mentioned
in [1]. I think the same thing should be mentioned in [2] as well.

@Isuru, Can you please confirm this?

[1] https://docs.wso2.org/display/ESB481/Setting+up+with+Remote+Derby
[2] https://docs.wso2.org/display/ESB481/Setting+Up+the+ESB+Samples

Thanks,


On Wed, Apr 9, 2014 at 9:28 PM, Sameera Kannangara samee...@wso2.comwrote:

 Hi all,

 When running ESB 4.8.1 - sample 360 
 [1]https://docs.wso2.org/display/ESB481/Sample+360%3A+Introduction+to+dblookup+Mediator,
 I got the following exception and stack trace.

 ERROR - DBLookupMediator Error executing statement : select * from company
 where name =? against DataSource :
 jdbc:derby://localhost:1527/esbdb;create=false
 org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class
 'org.apache.derby.jdbc.ClientDriver'
 at
 org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429)
 at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
 at
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
 at
 org.apache.synapse.mediators.db.DBLookupMediator.processStatement(DBLookupMediator.java:44)
 at
 org.apache.synapse.mediators.db.AbstractDBMediator.mediate(AbstractDBMediator.java:143)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:228)
 at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.ClassNotFoundException:
 org.apache.derby.jdbc.ClientDriver
 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)
 at
 org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at
 org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420)
 ... 19 more

 When searching for fixes for above problem I came across a youtube video
 explaining how to run ESB sample 360 at 
 [2]https://www.youtube.com/watch?v=gStDjnS0JTw
 .
 According the video, jar files derby.jar, derbyclient.jar and derbynet.jar
 should be added to both ESB_HOME/repository/components/extensions and
 ESB_HOME/repository/components/lib directories.
 But the instruction to add above jars to the
 ESB_HOME/repository/components/extensions directory seems to be missing
 in the documentation.
 After adding jars to both directories ESB 4.8.1 - sample 360 runs
 correctly and provides expected outputs.

 Is there another way to fix this problem?

 Thank you,
 --
 Sameera Kannangara,
 Software Engineer,
 WSO2 Inc.

 [1]
 https://docs.wso2.org/display/ESB481/Sample+360%3A+Introduction+to+dblookup+Mediator
 [2] https://www.youtube.com/watch?v=gStDjnS0JTw

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


[Dev] Data-mapper input readers status update

2014-04-08 Thread Gayan Yalpathwala
Hi,

Data mapper engine requires input readers that read different data types.
XML reader has been developed already and I have started developing the
other two readers for JSON and CSV.

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] JFace dialog does not show on top

2014-04-07 Thread Gayan Yalpathwala
Hi Melan,

Display.getCurrent().getActiveShell() works as expected. Thanks for the
suggestion.

Regards,


On Mon, Apr 7, 2014 at 12:09 PM, Melan Nimesh me...@wso2.com wrote:

 Hi,


 On Mon, Apr 7, 2014 at 11:33 AM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi,

 I have embedded a JFace dialog for some datamapper related functionality.
 This is a basic dialog that extends org.eclipse.jface.dialogs.Dialog and it
 fails to show on top when default shell is passed as the parent [1]. This
 way, the dialog opens fine but hides behind the eclipse window. I have
 tried options [2] and [3] as well where option [2] does not work either and
 [3] works with a known bug [4]. Have anyone come up with a workaround for
 this?

 [1]
 Shell shell = new Shell(Display.getDefault());
 DataMapperConfigurationDialog dataMapperConfigurationDialog = new
 DataMapperConfigurationDialog(shell);
 dataMapperConfigurationDialog.create();


 try with active shell rather than creating a new shell

 eg.

 Display.getCurrent().getActiveShell() or
 PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();


 Thanks,
 Melan



 [2] dataMapperConfigurationDialog.getShell().forceActive();

 [3]
 public DataMapperConfigurationDialog(Shell parentShell) {
 super(parentShell);
  setShellStyle(SWT.ON_TOP | SWT.CLOSE | SWT.TITLE | SWT.BORDER | SWT.OK
 | SWT.APPLICATION_MODAL);
 }

 [4] https://bugs.eclipse.org/bugs/show_bug.cgi?id=410810

 Thanks,


 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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




 --
 *Melan Nimesh*
 Software Engineer;
 WSO2 Inc.;  http://wso2.org
 E-mail: melan AT wso2.com;
 Mobile: +94 77 631 6759




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Maven optimization variable error

2014-04-02 Thread Gayan Yalpathwala
Hi Chathurika,

I am afraid there occurs a serious issue if you copy and paste the
MAVEN_OPTS string in WSO2 docs directly. This is because of character ()
where it should be () precisely. Please ack if this is what troubled you.

Thanks,


On Wed, Apr 2, 2014 at 12:01 PM, Chathurika De Silva
chathuri...@wso2.comwrote:

 Hi All

 I tried to use the following MAVEN_OPTS value which is in the documentation

 *MAVEN_OPTS=-Xms768m -Xmx3072m -XX:MaxPermSize=1200m*

 but it resulted in an error saying *Xms768m not found*


 When i used the following command worked

 *MAVEN_OPTS=-Xms1024m -Xmx4096m -XX:MaxPermSize=1024m*


 Is there any reason why the previous one is not working?

 Thanks and best regards
 --
 *Chathurika Erandi*
 Software Engineer,
 WSO2 Inc.

 *E-mail:* chathuri...@wso2.com
 *Mobile: *+94714 328 612
 *Blog*: chathurikaerandi.blogspot.com

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Maven optimization variable error

2014-04-02 Thread Gayan Yalpathwala
Hi Chathurika,

Yes this should be fixed in docs. I have raised a documentation jira [1]
accordingly.

[1] https://wso2.org/jira/browse/DOCUMENTATION-682

Thanks,


On Wed, Apr 2, 2014 at 4:58 PM, Chathurika De Silva chathuri...@wso2.comwrote:

 Hi Gayan

 You are correct, that is the problem. Shouldn't it be specified in the
 documentation? Not to copy paste?

 Thanks


 On Wed, Apr 2, 2014 at 4:51 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi Chathurika,

 I am afraid there occurs a serious issue if you copy and paste the
 MAVEN_OPTS string in WSO2 docs directly. This is because of character ()
 where it should be () precisely. Please ack if this is what troubled
 you.

 Thanks,


 On Wed, Apr 2, 2014 at 12:01 PM, Chathurika De Silva 
 chathuri...@wso2.com wrote:

 Hi All

 I tried to use the following MAVEN_OPTS value which is in the
 documentation

 *MAVEN_OPTS=-Xms768m -Xmx3072m -XX:MaxPermSize=1200m*

 but it resulted in an error saying *Xms768m not found*


 When i used the following command worked

 *MAVEN_OPTS=-Xms1024m -Xmx4096m -XX:MaxPermSize=1024m*


 Is there any reason why the previous one is not working?

 Thanks and best regards
 --
 *Chathurika Erandi*
 Software Engineer,
 WSO2 Inc.

 *E-mail:* chathuri...@wso2.com
 *Mobile: *+94714 328 612
 *Blog*: chathurikaerandi.blogspot.com

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




 --
 *Chathurika Erandi*
 Software Engineer,
 WSO2 Inc.

 *E-mail:* chathuri...@wso2.com
 *Mobile: *+94714 328 612
 *Blog*: chathurikaerandi.blogspot.com




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] [ESB] Scheduling Tasks

2014-04-02 Thread Gayan Yalpathwala
Hi Rajith,

Cron style in trigger would be appropriate for your case and you can still
try time interval option as well. Since you are going to have a number of
publisher classes, you shall have different scheduled tasks respectively.
[1] would give you an idea about this and please refer [2] for more details.

[1]
task xmlns=http://ws.apache.org/ns/synapse; name=publisherTask1
class=org.wso2.example.PublisherClass1
trigger interval=1500/
/task

task xmlns=http://ws.apache.org/ns/synapse; name=publisherTask2
class=org.wso2.example.PublisherClass2
trigger cron=0 0 12 * * ?/
/task

[2]
http://itsmeisuru.wordpress.com/2013/11/12/wso2-esb-scheduled-task-example/

Thanks,


On Wed, Apr 2, 2014 at 3:34 PM, Rajith Vitharana raji...@wso2.com wrote:

 Hi all,

 I have implemented a publisher class which will pull data from some Rest
 API and publish those data to a BAM instance. There are more than one Rest
 API and I hope to develop separate publisher classes for each Rest API
 since I need to schedule them in different time intervals. For the time
 being I have developed this as a full standalone applications with using
 quartz to schedule the tasks. But I need to move this in to a server
 instead of being standalone application. I found [1] in google which
 describes how to schedule tasks in WSO2 ESB. would this be the correct
 approach for this? appreciate any guidance.

 [1] -
 https://docs.wso2.org/display/ESB470/Adding+and+Scheduling+Tasks#AddingandSchedulingTasks-cronstyle

 Thanks,

 --
 Rajith Vitharana

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

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Synapse changes for GIThub

2014-03-25 Thread Gayan Yalpathwala
Hi Vanji,

I have sent a pull request [1] for fixing the jira [2]. This fix is done in
2.1.2-wso2v4.

[1] https://github.com/wso2/wso2-synapse/pull/11
[2] https://wso2.org/jira/browse/ESBJAVA-3025

Thanks,


On Thu, Mar 20, 2014 at 3:07 PM, Lakmali Baminiwatta lakm...@wso2.comwrote:

 Hi Vanji,

 Sent a pull request to merge changes to git.

 Thanks,
 Lakmali


 On 19 March 2014 10:48, Vanjikumaran Sivajothy va...@wso2.com wrote:

 You pull request has been merged[1] and successfully built the synapse[2]


 Thank you.


 [1]
 https://github.com/wso2/wso2-synapse/commit/dc65b4dbc631925b442169a3a995eeb854eaa30c
 [2]http://54.84.136.218:8080/jenkins/job/wso2-synapse/65/


 On Wed, Mar 19, 2014 at 9:59 AM, Bhathiya Jayasekara 
 bhath...@wso2.comwrote:

 Hi Vanji,

 I sent a pull request for my changes.

 Thanks,
 Bhathiya


 On Tue, Mar 18, 2014 at 10:34 AM, Vanjikumaran Sivajothy va...@wso2.com
  wrote:

 Thank you NuwanD


 On Tuesday, March 18, 2014, Nuwan Dias nuw...@wso2.com wrote:

 Adding PrabathA and Bhathiya as they have also committed to synapse
 2.1.2-wso2v5

  Thanks,
 NuwanD.


 On Tue, Mar 18, 2014 at 9:27 AM, Vanjikumaran Sivajothy 
 va...@wso2.com wrote:

 Hi API Manger Team,

 We have seen that, you are using Synapse version 2.1.2-wso2v5
 for upcoming release.

 Nevertheless, ESB team currently working on GIT repo[1] with 
 2.1.3-wso2v1-SNAPSHOT
 Which is Copy of 2.1.2-wso2v4 . Therefore please make sure to send a
 pull request to synapse GIT repo with what ever changes that you do for
 2.1.2-wso2v5.

 [1] https://github.com/wso2/wso2-synapse

 Thank you for your cooperation,
 Best Regards
  --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 *Mobile USA:**(+1)918 813 2403*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

 This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions




 --
 Nuwan Dias

 Senior Software Engineer - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729



 --
 Sent from Gmail Mobile




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

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




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 *Mobile USA:**(+1)918 813 2403*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

 This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions




 --
 Lakmali Baminiwatta
  Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Ushani Balasooriya

2014-03-20 Thread Gayan Yalpathwala
Congratulations Ushani !!


On Thu, Mar 20, 2014 at 8:22 PM, Susinda Perera susi...@wso2.com wrote:

 Congratulations Ushani .


 On Thu, Mar 20, 2014 at 11:18 AM, Waruna Jayaweera waru...@wso2.comwrote:

 Congratzzz.


 On Thu, Mar 20, 2014 at 11:07 AM, Sohani Weerasinghe soh...@wso2.comwrote:

 Congratulations !

 Regards,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine


 On Thu, Mar 20, 2014 at 11:05 AM, Chanaka Fernando chana...@wso2.comwrote:

 Congrats Ushani !!!


 On Thu, Mar 20, 2014 at 10:53 AM, Manoj Kumara ma...@wso2.com wrote:

 Congratulations Ushani .


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


 On Thu, Mar 20, 2014 at 10:51 AM, Shashika Ubhayaratne 
 shash...@wso2.com wrote:

 Congrats Ushani 

 Shashika Ubhayaratne
 Associate Technical Lead - QA
 WSO2 Inc: http://www.wso2.com/
 Mobile: *+94773383831*


 On Thu, Mar 20, 2014 at 10:43 AM, Nirmal Fernando nir...@wso2.comwrote:

 Congratulations Ushani!


 On Thu, Mar 20, 2014 at 10:41 AM, Asanka Vithanage asan...@wso2.com
  wrote:

 Congrats Ushani  !!!


 On Thu, Mar 20, 2014 at 10:38 AM, Suneth Ranasinghe 
 sun...@wso2.com wrote:

 Congratz Ushani...!!!


 On Thu, Mar 20, 2014 at 10:05 AM, Sandapa Handakumbura 
 sand...@wso2.com wrote:

 Congratulations Ushani!!!


 On Wed, Mar 19, 2014 at 1:18 PM, Evanthika Amarasiri 
 evanth...@wso2.com wrote:

 Hi,

 It's my pleasure to announce Ushani Balasooriya as a WSO2
 commiter. She is an active member of the QA team and has been a
 great contributor during ESB, API-M, App-Factory  IS releases.

 Welcome aboard Ushani and keep up the good work!

 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935

 wso2.com Lean Enterprise Midd
 leware

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




 --
 Sandapa Handakumbura
 Associate Technical Lead
 WSO2.Inc. ; http://wso2.com/
 M : +94777115866

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




 --
 Suneth Ranasinghe
 Senior Software Engineer - QA
 Mobile: +94717387198

 wso2.com
 Lean Enterprise Middleware

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




 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 WSO2 Inc. www.wso2.com


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




 --

 Thanks  regards,
 Nirmal

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



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



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



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




 --
 --
 Chanaka Fernando
 Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com




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



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




 --
 Regards,

 Waruna Lakshitha Jayaweera
 Software Engineer
 WSO2 Inc; http://wso2.com
 phone: +94713255198

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




 --
 *Susinda Perera*
 Software Engineer
 Mobile:(+94)716049075

 WSO2 Inc. http://wso2.com/
 Tel : 94 11 214 5345 Fax :94 11 2145300


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] [Developer Studio] Create proxy service UI not showing up

2014-03-10 Thread Gayan Yalpathwala
Hi Supun,

Yes, this is a known scenario that occurs when Developer studio (3.5.0 or
3.6.0) is used with jdk 1.6. Thanks for creating a jira.

Thanks,


On Mon, Mar 10, 2014 at 9:52 PM, Supun Malinga sup...@wso2.com wrote:

 Created TOOLS-2372.

 thanks,


 On Mon, Mar 10, 2014 at 12:13 PM, Supun Malinga sup...@wso2.com wrote:

 Jasintha, found that this could be due to using the 1.6 jdk. Will let you
 know if I get same with 1.7. Sorry for the noise..
 I had accidentally switched to jdk 6 which I run by default.

 +1 for putting up a warning when you are running in jdk 6 or any
 unsupported versions..

 thanks,




 On Mon, Mar 10, 2014 at 11:04 AM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Happens all of a sudden, there after cannot create a proxy. UI wizard
 for create proxy doesn't show. Was only able to fix it by cleaning the
 .meta files from the workspace..

 Unfortunately this happened during a demo as well.. :(.

 Please fix.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Malintha Adikari

2014-02-26 Thread Gayan Yalpathwala
Congrats Malintha!!


On Tue, Feb 25, 2014 at 10:52 AM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Congratulations !!!


 On Tue, Feb 25, 2014 at 10:32 AM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Congratulations!!!...


 Thanks,
 Nuwanw


 On Mon, Feb 24, 2014 at 5:43 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

  Hi all,

 It's my distinct pleasure to welcome to Malintha Adikari as a WSO2
 Committer. He has made some great contributions to test automation
 framework and to our platform. In acknowledgement of his contributions,
 he's been voted as a WSO2 Committer. Welcome aboard and keep up the good
 work!

 Thanks,
 Krishantha.


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




 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Developers += Sameera Medagammaddegedara

2014-02-03 Thread Gayan Yalpathwala
Congratulations Sameera!!


On Sun, Feb 2, 2014 at 10:37 PM, Pubudud Dissanayake pubu...@wso2.comwrote:

 Congratulations Sameera !!


 On Sun, Feb 2, 2014 at 10:24 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:


 Thank You Everyone.


 On Sat, Feb 1, 2014 at 6:05 AM, Nuwan Bandara nu...@wso2.com wrote:

 Hi All,

 Please welcome SameeraM as our newest addition to the WSO2 Commiters
 list. Sameera's contribution to WSO2 platform and product stack can be
 found at [1]. Your contribution is much valued and hope you will keep it up.

 [1] https://github.com/splinter?tab=activity

 --



 *Thanks  Regards, Nuwan BandaraTechnical Lead; **WSO2 Inc. *
 *lean . enterprise . middleware |  http://wso2.com http://wso2.com *

 *blog : http://nuwanbando.com http://nuwanbando.com; email:
 nu...@wso2.com nu...@wso2.com; phone: +1 812 606 7390
 %2B1%20812%20606%207390 *
 http://www.nuwanbando.com/




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005

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




 --
 *Pubudu Dissanayake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Mobile: 0775503304

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Please make sure to release chunk-07 with zero test failures.

2014-02-03 Thread Gayan Yalpathwala
Hi Isuru,

I checked with Jeewantha about [1] and it was seen that changes are not
bundled as expected. Please rectify this and also check whether test cases
[2] are correctly applied.

[1] https://wso2.org/jira/browse/ESBJAVA-2586
[2] https://wso2.org/jira/secure/attachment/29103/GayanK_TA-742_Fix1.diff

Thanks,


On Thu, Jan 30, 2014 at 12:42 PM, Krishantha Samaraweera 
krishan...@wso2.com wrote:

 ESB UI tests were executed and there were three test failures. Two test
 cases were fixed.

 I have seen dead page while executing EndpointsListTestCase, this test
 case is added for JIRA at https://wso2.org/jira/browse/ESBJAVA-2586

 Can ESB team please check the patch is provided in the JIRA is properly
 applied.

 Thanks,
 Krishantha.



 On Thu, Jan 30, 2014 at 10:59 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Thanks IsuruU for the update.

 Can you send me the class names of those two failed cases. I will have a
 look. If we cannot fix it property before the release, we need to disable
 those tests.

 With regard to the UI test failures. I think issue is with browser
 version compatibility with selenium version we used. Updating selenium
 version in test framework at this stage is not a good decision. Because it
 could introduce dependency conflicts with axis2 dependencies (we experience
 this before)

 Thus, my recommendation is to use -Dwebdriver.firefox.bin option with
 maven and point it to earlier version of firefox 20~24. Note that you don't
 need to downgrade firefox, just pointing to firefox binary will be enough.

 e.g
 maven install -Dwebdriver.firefox.bin=/path/to/your/firefox/firefox-20-bin

 Thanks,
 Krishantha.


 On Thu, Jan 30, 2014 at 10:38 AM, Isuru Udana isu...@wso2.com wrote:

 Hi Krishantha,

 All unit tests got passed in chunk-07 yesterday.
 We run all ESB integration tests at once and only 2 tests cases failed
 due to read timeouts. Those two got passed when run in isolation.
 Breaking tests into 6 modules has made a significant improvement.

 There are 4 other ui tests failures.
 According to Malka and NuwanW those failures are due to browser issues
 in the builder machine.

 BPS team is running integration tests for BPS.

 Thanks.


 On Wed, Jan 29, 2014 at 12:49 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi all,

 Can product RMs make sure to do the final release with zero test
 failures. Otherwise we will have to fix them before creating custom
 branches etc.. And test failure will directly impact to the current chunk
 build stabilization process. So try to run all unit/integration
 (backend/UI) test cases before the release.

 Please let automation team know, if you find any difficulty with fixing
 failure cases.

 Thanks,
 Krishantha.

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




 --
 *Isuru Udana*
  Senior
 * Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana




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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Imesh Gunaratne

2014-01-29 Thread Gayan Yalpathwala
Congratulations Imesh !!


On Thu, Jan 30, 2014 at 9:04 AM, Udara Rathnayake uda...@wso2.com wrote:

 Congratulations Imesh ... !!!


 On Thu, Jan 30, 2014 at 12:21 AM, Lakmal Warusawithana lak...@wso2.comwrote:

 Hi,

 Its my pleasure to welcome Imesh Gunaratne as a WSO2 Commiter.

 Imesh, welcome aboard and keep up the good work.

 regards

 --
 Lakmal Warusawithana
 Software Architect; WSO2 Inc.
 Mobile : +94714289692
 Blog : http://lakmalsview.blogspot.com/


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




 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-28 Thread Gayan Yalpathwala
Congratulations Isuruwan!


On Sat, Jan 25, 2014 at 10:20 AM, Chamil Jeewantha cha...@wso2.com wrote:

 Congratulations!


 On Sat, Jan 25, 2014 at 1:41 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Congrats Isuruwan!... :-)


 On 24 January 2014 20:33, Shani Ranasinghe sh...@wso2.com wrote:

 Congrats Isuruwan


 On Fri, Jan 24, 2014 at 7:28 PM, Shameera Rathnayaka 
 shame...@wso2.comwrote:

 Congrat Isuruwan !!!


 Thanks,
 Shameera.


 On Fri, Jan 24, 2014 at 1:38 PM, Chan duli...@wso2.com wrote:

 Congratz Isuruwan


 On Fri, Jan 24, 2014 at 1:31 PM, Gayan Dhanushka gay...@wso2.comwrote:

 Congratzzz Isuruwan...!!!

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

 Mobile
 071 666 2327

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

 Twitter : https://twitter.com/gayanlggd


 On Fri, Jan 24, 2014 at 12:48 PM, Malintha Adikari malin...@wso2.com
  wrote:

 Congratulations Isuruwan ... !!!

 Regards,
 Malintha


 On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera waru...@wso2.com
  wrote:

 Congratzz Isuruwan


 On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe 
 ram...@wso2.com wrote:

 Congrats Isuru1!



 On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando sen...@wso2.com
  wrote:

 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer.
 Isuruwan has made some great contributions to our platform during 
 the last
 few months and in recognition of his commitment and contributions he 
 has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P:
 +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise .
 Middleware

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




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

 E: ram...@wso2.com
 P: +94 776715671


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




 --
 Regards,

 Waruna Lakshitha Jayaweera
 Software Engineer
 WSO2 Inc; http://wso2.com
 phone: +94713255198

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




 --
 *Malintha Adikari*
  Software Engineer

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

 mobile: +94 71 2312958

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



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




 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
  WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*

 *  ~Website   dulithawijewantha.com http://dulithawijewantha.com/ *

 *  ~Blog blog.dulithawijewantha.com
 http://dulichan.github.io/chan/*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*

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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R

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




 --
 Thanks and Regards
 *, Shani Ranasinghe*

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

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




 --
 K.D. Chamil Jeewantha
 Associate Technical Lead
 WSO2, Inc.;  http://wso2.com
 Mobile: +94716813892


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 

Re: [Dev] Twitter Connector SSL handshaking fails

2014-01-27 Thread Gayan Yalpathwala
Hi Jackie,

I have been using twitter connector for an enterprise use case in past few
days. As far as I have figured out, following are the steps to get it
working. However, some of these are purely twitter related activities,
don't know whether we can/should mention them in our docs.

   1. Goto https://dev.twitter.com/apps and create a new application. Here
   you have to provide some basic information about the app.
   2. Once the app is created it will show you the following artifacts
   which you need to use in twitter.init operation.
   [Consumer key, Consumer secret, Access token, Access token secret]
   3. Prior to deploying, visit
https://api.twitter.com/oauth2/tokenhttps://www.google.com/url?q=https%3A%2F%2Fapi.twitter.com%2Foauth2%2Ftokensa=Dsntz=1usg=AFQjCNE4_apO1KFJZjWn-dwt_6XfwAOR-Q
on
   your browser and click on the https trust icon on address bar and follow
   Connection tab.
   4. Click certificate information and follow details tab on the appearing
   dialog. There use 'Export' option to export the trust certificate to the
   file system.
   5. Then use the following command to import that certificate into ESB
   client trust store.
   keytool -importcert -file certificate file -keystore
   ESB/repository/resources/security/client-truststore.jks -alias
   TwitterTrustCertImport
   6. After this, restart the server and deploy the twitter configuration.

Hope this helps.

Thanks,





On Tue, Jan 28, 2014 at 2:41 AM, Jackie Wheeler jac...@wso2.com wrote:

 I'm having a hard time figuring out exactly what to say in the docs about
 authentication. I'm reading through Twitter's documentation on OAuth, and
 I'm not clear on what applies to WSO2 as creators of the Twitter connector
 and what users of our Twitter connector have to actually configure. Can
 someone walk me through the specific steps that one of our connector users
 would have to do to get the Twitter connector to authenticate with and
 connect to Twitter? Please note that we are still missing a full working
 example or any real sample values that will help people understand how to
 use the connector.

 Thanks,
 Jackie


 On Sun, Jan 26, 2014 at 9:54 PM, Dushan Abeyruwan dus...@wso2.com wrote:

 HI
 May be twitter trust certificates might have renewed and that's why once
 we add twitter certificate to client-trust-store it started to work, we
 should add this to documentation
 Need to get certificate from https://api.twitter.com/oauth2/token
 and adding to trust store.


 On Mon, Jan 27, 2014 at 11:15 AM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi,

 Twitter connector fails to init and throws the following exception.

 TID: [0] [ESB] [2014-01-27 09:20:08,385] ERROR
 {org.apache.synapse.transport.passthru.TargetHandler} -  I/O error: General
 SSLEngine problem {org.apache.synapse.transport.passthru.TargetHandler}
 javax.net.ssl.SSLHandshakeException: General SSLEngine problem
 at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1362)
 at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:513)
  at
 sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1177)
 at sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1149)
  at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:469)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.doWrap(SSLIOSession.java:220)
  at
 org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:254)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380)
  at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
  at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
 at java.lang.Thread.run(Thread.java:722)
 Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
 at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1683)
  at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:278)
 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
  at
 sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)
 at
 sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
  at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
 at sun.security.ssl.Handshaker$1.run(Handshaker.java:808)
  at sun.security.ssl.Handshaker$1.run(Handshaker.java:806)
 at java.security.AccessController.doPrivileged(Native Method)
  at sun.security.ssl.Handshaker

[Dev] Twitter Connector SSL handshaking fails

2014-01-26 Thread Gayan Yalpathwala
Hi,

Twitter connector fails to init and throws the following exception.

TID: [0] [ESB] [2014-01-27 09:20:08,385] ERROR
{org.apache.synapse.transport.passthru.TargetHandler} -  I/O error: General
SSLEngine problem {org.apache.synapse.transport.passthru.TargetHandler}
javax.net.ssl.SSLHandshakeException: General SSLEngine problem
at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1362)
at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:513)
at sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1177)
at sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1149)
at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:469)
at
org.apache.http.nio.reactor.ssl.SSLIOSession.doWrap(SSLIOSession.java:220)
at
org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:254)
at
org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380)
at
org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
at java.lang.Thread.run(Thread.java:722)
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1683)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:278)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)
at
sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
at sun.security.ssl.Handshaker$1.run(Handshaker.java:808)
at sun.security.ssl.Handshaker$1.run(Handshaker.java:806)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1299)
at
org.apache.http.nio.reactor.ssl.SSLIOSession.doRunTask(SSLIOSession.java:238)
at
org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:270)
... 9 more
Caused by: sun.security.validator.ValidatorException: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)
at
sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
at sun.security.validator.Validator.validate(Validator.java:260)
at
sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
at
sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:283)
at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:138)
at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1328)
... 17 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
at
sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)
... 23 more
TID: [0] [ESB] [2014-01-27 09:20:08,402]  WARN
{org.apache.synapse.endpoints.EndpointContext} -  Endpoint :
AnonymousEndpoint will be marked SUSPENDED as it failed
{org.apache.synapse.endpoints.EndpointContext}
TID: [0] [ESB] [2014-01-27 09:20:08,403]  WARN
{org.apache.synapse.endpoints.EndpointContext} -  Suspending endpoint :
AnonymousEndpoint - current suspend duration is : 3ms - Next retry
after : Mon Jan 27 09:20:38 IST 2014
{org.apache.synapse.endpoints.EndpointContext}

I think this occurs due to a certificate change on twitter side. I was able
to overcome this issue by importing api.twitter.com[1] certificate
into client-truststore.jks. Is there a known workaround for this or what
further action can be taken?

[1] 
https://api.twitter.com/oauth2/tokenhttps://www.google.com/url?q=https%3A%2F%2Fapi.twitter.com%2Foauth2%2Ftokensa=Dsntz=1usg=AFQjCNE4_apO1KFJZjWn-dwt_6XfwAOR-Q

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


[Dev] Developer Studio 3.5.0 Beta 3 Released!

2014-01-15 Thread Gayan Yalpathwala
Hi All,

We have WSO2 Developer Studio 3.5.0 Beta 3 ready to be downloaded at [1].
Installed eclipse distributions available at [2].

This release includes following bug fixes.
Bug Fixes

   - [TOOLS-1960 https://wso2.org/jira/browse/TOOLS-1960] - Unable to
   import an existing mediator project into an ESB Config project
   - [TOOLS-2050 https://wso2.org/jira/browse/TOOLS-2050] - Unable to
   perform 'Finish' when importing a Data Services Validator project
   - [TOOLS-2054 https://wso2.org/jira/browse/TOOLS-2054] - Lower parts
   of the description of letters like g,p are clipped
   - [TOOLS-2207 https://wso2.org/jira/browse/TOOLS-2207] - Delete From
   Model Context menu is available
   - [TOOLS-2262 https://wso2.org/jira/browse/TOOLS-2262] - [Deployment
   Descriptor] Associated ports are not listed for partner links - Drop down
   list is empty
   - [TOOLS-2289 https://wso2.org/jira/browse/TOOLS-2289] - QoS wizard
   needs to validate the wsdl before finishing
   - [TOOLS-2294 https://wso2.org/jira/browse/TOOLS-2294] -
   [DS-BPS]AdderProcessPort not showing as as the inbound address port in
   deploy.xml
   - [TOOLS-2303 https://wso2.org/jira/browse/TOOLS-2303] - [AF]
   Checked-out application fails to redeploy


Your feedback is most welcome. Please report issues at [3] and specify the
affect version as 3.5.0 Beta 3.

[1]
http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.5.0/Beta3/wso2-developer-studio_3.5.0.zip
[2]
http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.5.0/Beta3/Dev-Studio-Pre-installed-Eclipse/
[3] https://wso2.org/jira/browse/TOOLS


Thanks and Regards,
WSO2 Developer Studio Team.

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Handling special characters in AF

2014-01-09 Thread Gayan Yalpathwala
Hi,

Does AF allow special characters like *$?/.:; in the password? In AF
Perspective of Developer studio, user credentials get passed to AF backend.
There we need to understand whether some kind of sanitation is required
before passing a password which has special characters. WDYT?

Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling special characters in AF

2014-01-09 Thread Gayan Yalpathwala
On Thu, Jan 9, 2014 at 2:41 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi,

 Does AF allow special characters like *$?/.:; in the password? In AF
 Perspective of Developer studio, user credentials get passed to AF backend.
 There we need to understand whether some kind of sanitation is required
 before passing a password which has special characters. WDYT?

 Thanks,

 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling special characters in AF

2014-01-09 Thread Gayan Yalpathwala
Hi,

Thanks for your response. Does that mean there are no other restrictions
with the password?

Thanks,


On Thu, Jan 9, 2014 at 3:32 PM, Amani Soysa am...@wso2.com wrote:

 Yes looks like you cannot have password's with '' we will fix this ASAP.
 I have created a jira to track this issue [1].

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


 On Thu, Jan 9, 2014 at 2:41 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi,

 Does AF allow special characters like *$?/.:; in the password? In
 AF Perspective of Developer studio, user credentials get passed to AF
 backend. There we need to understand whether some kind of sanitation is
 required before passing a password which has special characters. WDYT?

 Thanks,

 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704




 --
 Amani Soysa
 Senior Software Engineer
 Mobile: +94772325528
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += SumedhaS

2014-01-04 Thread Gayan Yalpathwala
Congratulations Sumedha!!


On Fri, Jan 3, 2014 at 10:48 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 Congratz Sumedha !!!


 Cheers,
 Dhanuka

 *Dhanuka Ranasinghe*

 Senior Software Engineer

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

 phone : +94 715381915


 On Fri, Jan 3, 2014 at 9:01 PM, Chamara Silva cham...@wso2.com wrote:

 Congrats Sumedha..

 Regards,
 Chamara Silva


 On Fri, Jan 3, 2014 at 10:12 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Congrats Sumedha...!!


 On 3 January 2014 17:52, Shani Ranasinghe sh...@wso2.com wrote:

 Cngratulations Sumedha


 On Fri, Jan 3, 2014 at 5:23 PM, Lali Devamanthri l...@wso2.com wrote:

 Congratulations Sumedha


 On Fri, Jan 3, 2014 at 1:58 PM, Amila Maha Arachchi 
 ami...@wso2.comwrote:


 Hi All,

 It's my pleasure to welcome Sumedha Kodithuwakku as a WSO2 Committer.
 SumedhaS has been a valuable contributor to the Cloud team during the 
 last
 few months. He worked on the Cloud Preview deployment and also developed
 the HeartBeat tool for it. In addition to that he has worked on many 
 other
 Cloud related development work. In recognition of his contributions,
 SumedhaS has been voted as a WSO2 committer.

 SumedhaS, Welcome aboard and keep up the good work!

 Regards,
 AmilaM.
 --
 *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




 --
 *Lali Sudaththa Devamanthri*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922


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




 --
 Thanks and Regards
 *, Shani Ranasinghe*

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

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




 --
 A. Suminda Chamara Silva
 Senior Software Engineer
 WSO2 Inc.
 Mobile: +94718302858
 blog: http://chamaras.blogspot.com


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



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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704

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


Re: [Dev] WSO2 Committers += Dimuthu De Lanerolle

2013-11-26 Thread Gayan Yalpathwala
Congrats Dimuthu


On Tue, Nov 26, 2013 at 3:24 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 Congrats...

 *Dhanuka Ranasinghe*

 Senior Software Engineer

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

 phone : +94 715381915


 On Tue, Nov 26, 2013 at 3:03 PM, Shani Ranasinghe sh...@wso2.com wrote:

 congrats...


 On Tue, Nov 26, 2013 at 10:30 AM, Shashika Ubhayaratne shash...@wso2.com
  wrote:

 congrats
 Shashika Ubhayaratne
 Associate Technical Lead - QA
 WSO2 Inc: http://www.wso2.com/
 Mobile: +94773383831


 On Tue, Nov 26, 2013 at 8:40 AM, Venura Kahawala ven...@wso2.com
 wrote:
  Congrats Dimuthu...
 
 
  On Mon, Nov 25, 2013 at 11:50 PM, Lasantha Fernando lasan...@wso2.com
 
  wrote:
 
  Congratz Dimuthu..!!
 
 
  On 25 November 2013 22:12, Asanka Dissanayake asan...@wso2.com
 wrote:
 
  congratzz Dimuthu ...!!!
 
 
  On Mon, Nov 25, 2013 at 10:08 PM, Inosh Goonewardena in...@wso2.com
 
  wrote:
 
  Congratz dimuthu
 
 
 
  On Mon, Nov 25, 2013 at 8:57 PM, Malintha Adikari 
 malin...@wso2.com
  wrote:
 
  Congratulations Dimuthu.
 
 
  Malintha Adikari,
 
 
  On Mon, Nov 25, 2013 at 8:22 PM, Manula Chathurika Thantriwatte
  manu...@wso2.com wrote:
 
  Congratulations !!!
 
 
  On Mon, Nov 25, 2013 at 8:18 PM, Asanka Vithanage 
 asan...@wso2.com
  wrote:
 
  Congrats!!!
 
 
  On Mon, Nov 25, 2013 at 8:08 PM, Nuwan Silva nuw...@wso2.com
 wrote:
 
  Congrats!!!
 
 
  On Mon, Nov 25, 2013 at 7:49 PM, Pulasthi Supun 
 pulas...@wso2.com
  wrote:
 
  Congrats !
 
 
  On Mon, Nov 25, 2013 at 7:42 PM, Harsha Thirimanna
  hars...@wso2.com wrote:
 
  Congrad :)
 
 
 
  Harsha Thirimanna
  Senior Software Engineer; WSO2, Inc.; http://wso2.com
 
  email: hars...@wso2.com cell: +94 71 5186770
  twitter: http://twitter.com/harshathirimann
  linked-in:
  http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 
  Lean . Enterprise . Middleware
 
 
 
  On Mon, Nov 25, 2013 at 7:40 PM, Krishantha Samaraweera
  krishan...@wso2.com wrote:
 
  Hi All,
 
  It's my pleasure to welcome Dimuthu De Lanerolle to WSO2
  developer community by granting WSO2 commitership. DimuthuD
 has been
  contributing greatly to product integration tests and test
 automation
  framework related developments over the last couple of
 months. In
  acknowledgement of his contributions, he's been voted as a
 WSO2 Committer.
  Welcome aboard and keep up the good work!
 
 
  Thanks,
 
  --
  Krishantha Samaraweera
  Senior Technical Lead - Test Automation
  Mobile: +94 77 7759918
  WSO2, Inc.; http://wso2.com/
  lean . enterprise . middlewear.
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  --
  Pulasthi Supun
  Software Engineer; WSO2 Inc.; http://wso2.com,
  Email: pulas...@wso2.com
  Mobile: +94 (71) 9258281
  Blog : http://pulasthisupun.blogspot.com/
  Git hub profile: https://github.com/pulasthi
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
 
  Nuwan Silva
  Senior Software Engineer - QA
  Mobile: +94779804543
 
  WSO2 Inc.
 
  lean . enterprise . middlewear.
  http://www.wso2.com
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Asanka Vithanage
  Senior Software Engineer -QA
  Mobile: +94 0716286708
  Email: asan...@wso2.com
  WSO2 Inc. www.wso2.com
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Regards,
  Manula Chathurika Thantriwatte
  Software Engineer
  WSO2 Inc. : http://wso2.com
  lean . enterprise . middleware
 
  email : manu...@wso2.com / man...@apache.org
  phone : +94 772492511
  blog : http://manulachathurika.blogspot.com/
 
 
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Software Engineer,
  WSO2 Inc.  http://wso2.com
  (M) +94(71) 2312958
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Regards,
 
  Inosh Goonewardena
  Associate Technical Lead- WSO2 Inc.
  Mobile: +94779966317
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
 
  Asanka Dissanayake
  Software Engineer
  WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 
  email: asan...@wso2.com,   blog: cyberwaadiya.blogspot.com,
  asankastechtalks.wordpress.com  mobile: +94 71 8373821
 
  ___
  Dev mailing list
  Dev@wso2.org
  

Re: [Dev] WSO2 Committers += Susinda

2013-10-17 Thread Gayan Yalpathwala
Many congratulations Susinda!!


On Thu, Oct 17, 2013 at 3:02 PM, Rajeeva Uthayasangar raje...@wso2.comwrote:

 Congratz !!!


 On Thu, Oct 17, 2013 at 2:58 PM, Manoj Kumara ma...@wso2.com wrote:

 Congratz Susinda ..

 Best Regards..


 Manoj Kumara
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/ManKuma
 Mobile: +94713448188


 On Thu, Oct 17, 2013 at 2:56 PM, Bhathiya Jayasekara 
 bhath...@wso2.comwrote:

 Congratulations Susinda... :)


 On Thu, Oct 17, 2013 at 2:54 PM, Harshana Martin harsh...@wso2.comwrote:

 Hi All,

 It's my distinct pleasure to welcome Susinda as a WSO2 Committer.

 Susinda has  been a valuable contributor for WSO2 Developer Studio
 since he joined WSO2. In recognition of his contributions to WSO2, he has
 been voted as a WSO2 Committer.

 Susinda, Congratulations and Keep up the good work!

 Thanks and Regards,
 Harshana

 --

 Harshana Martin
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 775 998 115
 Profile: https://www.google.com/profiles/harshana05
 Blog: http://harshana05.blogspot.com
 Twitter: http://twitter.com/harshana05


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




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com*
 *
 *
 *Phone: +94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax*

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



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




 --
 *Rajeeva Uthayasangar*
 Software Engineer
 WSO2, Inc.:http://wso2.com*
 *


 Mobile: +94777298873


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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704

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


Re: [Dev] WSO2 Committers += AsankaS

2013-10-17 Thread Gayan Yalpathwala
Many congrats Asanka!!!


On Thu, Oct 17, 2013 at 3:02 PM, Inosh Goonewardena in...@wso2.com wrote:

 Congratz asanka


 On Thu, Oct 17, 2013 at 2:59 PM, Manoj Kumara ma...@wso2.com wrote:

 Congratz Asanka ..

 Best Regards..


 Manoj Kumara
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/ManKuma
 Mobile: +94713448188


 On Thu, Oct 17, 2013 at 2:53 PM, Harshana Martin harsh...@wso2.comwrote:

  Hi All,

 It's my distinct pleasure to welcome AsankaS as a WSO2 Committer.

 AsankaS has  been a valuable contributor for WSO2 Developer Studio since
 he joined WSO2. In recognition of his contributions to WSO2, he has been
 voted as a WSO2 Committer.

 AsankaS, Congratulations and Keep up the good work!

 Thanks and Regards,
 Harshana
 --

 Harshana Martin
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 775 998 115
 Profile: https://www.google.com/profiles/harshana05
 Blog: http://harshana05.blogspot.com
 Twitter: http://twitter.com/harshana05


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



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




 --
 Regards,

 Inosh Goonewardena
 Associate Technical Lead- WSO2 Inc.
 Mobile: +94779966317

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704

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


Re: [Dev] WSO2 Committers += Ayashkantha

2013-09-11 Thread Gayan Yalpathwala
Congrats Ayash!!!


On Tue, Sep 10, 2013 at 8:04 AM, Lali Devamanthri l...@wso2.com wrote:

 Congrats Ayashkantha!


 On Thu, Sep 5, 2013 at 2:13 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi everyone,

 It's my pleasure to announce Ayashkantha as a WSO2 commiter. Ayashkantha
 has done many contributions to the BAM product, and I'm sure he will
 continue to be a valuable member to the team. Ayashkantha, welcome aboard
 and keep up the good work! ..


 Cheers,
 Anjana.

 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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




 --
 *Lali Sudaththa Devamanthri*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922

 http://us13.wso2con.com/

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704

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


[Dev] WSO2 Data Mapper - Data reading and writing

2013-08-27 Thread Gayan Yalpathwala
Hi,

As the initial step, we had to read data from JSON and CSV using selectors.
Selector format was decided to be the following.

 employee.firstname
 customers.customer.account.number


Following libraries were used to read data by converting the selector to
jsonpath and CSV header.

*Axiom* to read XML

*Jayway jsonpath*

elementPath = $.. + elementPath;

nodesList = new ArrayListObject();

 nodesList = JsonPath.read(jsonString, elementPath); //elementPath-jsonpath

*Javacsv 2.0*

csvReader = new CsvReader(inputFile.getCanonicalPath());

csvReader.readHeaders();

inputValueList = new ArrayListObject();
while(csvReader.readRecord()){

inputValueList.add(csvReader.get(elementPath)); //elementPath-CSV header

 }

In an intermediate step, processed data is stored in a hashmap and
therefore I had to write data from the hashmap to different data types
(XML, JSON, CSV). Following is what I have tried.

*DOM* as a solution to create output XML.

DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();

 DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
 doc = docBuilder.newDocument();

IteratorMap.EntryString, String iterator = map.entrySet().iterator();
int i=0;
while (iterator.hasNext()) {

Map.EntryString,String pairs = (Map.EntryString,String)iterator.next();
//Set root node
if(i==0){

Element rootElement =
doc.createElement(pairs.getKey().toString().split(\\.)[0]);
doc.appendChild(rootElement);
mappedNodes.put(pairs.getKey().toString().split(\\.)[0], rootElement);

}
chooseNode(pairs.getKey().toString(), pairs.getValue().toString());
i++;

}

TransformerFactory transformerFactory = TransformerFactory.newInstance();

 Transformer transformer = transformerFactory.newTransformer();
 DOMSource source = new DOMSource(doc);
StreamResult result = new StreamResult(file);
transformer.transform(source, result);

*Google Gson* as a JSON builder.

baseNode = new HashMapString, Object();

ListMapString, Object firstNode = new ArrayListMapString, Object();

baseNode.put(key.substring(0, key.indexOf(.)), firstNode); //first node

if(getNode instanceof List)

((ListListMapString, Object) getNode).add(list);

else if(getNode instanceof Map)

((MapString, Object) getNode).put(lastNode,
(value.equals())?list:value);

Gson gson = new GsonBuilder().setPrettyPrinting().create();

String jsonString = gson.toJson(baseNode);

*Open-csv *CsvWriter to write CSV with header.

 writer = new CSVWriter(new FileWriter(file));
SetString keySet = map.keySet();
ListString keyList = new ArrayListString();
keyList.addAll(keySet);
//Csv header
ListString csvHeader = new ArrayListString();
IteratorString it = keySet.iterator();
while ( it.hasNext() ){

 csvHeader.add(it.next());

 }
writer.writeNext(csvHeader.toArray(new String[csvHeader.size()]));
//Csv data
ListString[] csvData = new ArrayListString[]();
for(int i=0; i  map.get( keySet.iterator().next() ).size() ; i++){

String[] stringArray = new String[keyList.size()];
//iterate over keyList
for(int j=0; jkeyList.size(); j++){

 stringArray[j] = map.get(keyList.get(j)).get(i);

 }
csvData.add(stringArray);

}
writer.writeAll(csvData);
writer.close();

WDYT? Are there any better ways to do this?

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Data Mapper - Converting XSD and JSON schema to Avro schema

2013-08-27 Thread Gayan Yalpathwala
Hi,

I had to come up with a solution to derive an Avro schema when the input is
XSD or JSON schema. As a solution, I have tried the following process to
convert XSD to AVRO.

   1. XSD to POJO generation
   2. POJO to Avro schema generation

*XSD to POJO generation*
Runtime execution of xjc was used.

String xjcCommand = xjc -d src/main/java/temp/tempPojo -p gen
resource/employee.xsd;
Process child = Runtime.getRuntime().exec(xjcCommand);

*POJO to Avro schema generation*
Java reflection was used.

Schema s = ReflectData.get().getSchema(Employee.class);

For JSON schema, following is the implementation.

*JSON schema to Avro schema*

JCodeModel codeModel = new JCodeModel();

URL source = new File(./resource/mySchema.json).toURI().toURL();

new SchemaMapper().generate(codeModel, GenPojo, com.example, source);

codeModel.build(new File(output));

*
*
WDYT about performing a double conversion like this? Do you find a better
way?

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev