Re: [Dev] [AF] Using setTimeout in a jiggery page

2015-06-12 Thread Ruchira Wageesha
setTimeout can be used, but it will be executed in the background and you
don't have control over when it is done. Also, if you trigger that from a
specific request, then you can't get the results before that request ends.

Further, it will have probably hold cleaning up the scopes associated with
that specific request until setTimeout get executed. Hence, please take
those into consideration.

Depending on you requirement, you can also think of implementing a Java
class which do the caching and expose a util method, so Jaggery can fetch
from the cache. In this way, you can get more control over concurrency
control etc.

/Ruchira

On Fri, Jun 12, 2015 at 11:03 AM, danush...@wso2.com wrote:

  Hi
 Currently in AF jaggery application we are using the block model. In the
 index page we were loading the permissions to cache. So I moved the caching
 to a separate thread using setTimeout fuction. Seems there is an
 performance improvement after that. My question is whether that's the
 correct thing to do. Is it ok to use setTimeout function there?

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




-- 

*Ruchira Wageesha**Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

*email: ruch...@wso2.com ruch...@wso2.com,   blog:
ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF][Jaggery] Error while calling java method from jaggery

2015-06-12 Thread danushkaf
Hi Mahesh

When we register an osgi service to a bundle, Any component can retrieve it. 
Usually we do it in Service Component where we write the scr references. And we 
keep reference to an object of the service and we use only inside the given 
component. If we need it in another component we retrieve same from there too. 
That's how its done in java components. But when it comes to a web application 
(or jiggery application) since they are not running in osgi framework they 
cannot refer to the osgi services in the same manner. So we retrieve it from 
carbon context.

We have done this call every where in our application.


CarbonContext.getThreadlocalCarbonContext().getOSGIService(“service name”)


You have to retrieve the service in the above manner in your code.


Hope the explanation is clear to you.






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





From: Mahesh Chinthaka
Sent: ‎Friday‎, ‎June‎ ‎12‎, ‎2015 ‎10‎:‎36‎ ‎AM
To: WSO2 Developers' List





Hi ,



Im trying to call a java method from a jaggery module.

We have called same method from java side like follows

AppFactoryS4ListenersUtil.getTenantRegistryLoader().loadTenantRegistry(tenantId);





my jaggery code is like follows




var tenantId=getTenantId();



var s4util = 
Packages.org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil;

s4util.getTenantRegistryLoader().loadTenantRegistry(tenantId);





And Im getting following error








TID: [0] [AF] [2015-06-12 10:22:05,387] ERROR 
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -  
org.mozilla.javascript.EcmaError: TypeError: Cannot call property 
getTenantRegistryLoader in object [JavaPackage 
org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is not a 
function, it is object. (/appmgt/modules/manager/manager.jag#331) 
{org.jaggeryjs.jaggery.core.manager.WebAppManager}

org.jaggeryjs.scriptengine.exceptions.ScriptException: 
org.mozilla.javascript.EcmaError: TypeError: Cannot call property 
getTenantRegistryLoader in object [JavaPackage 
org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is not a 
function, it is object. (/appmgt/modules/manager/manager.jag#331)

at 
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)

at 
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)

at 
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)

at 
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

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:379)

at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)

at 
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at 
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

at 
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

at 
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

at 
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

at 
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)

at 
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)

at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

at 
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)

   

[Dev] [BPS] Please review and merge the pull request

2015-06-12 Thread Vinod Kavinda
Hi,
Please $subject [1] for [2].

[1] - https://github.com/wso2/carbon-business-process/pull/75
[2] - https://wso2.org/jira/browse/BPS-363

Regards,
Vinod

-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware http://www.wso2.com.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AM1.9.0] Long running test for 10000 token scenario

2015-06-12 Thread Lakshani Gamage
Hi all,

I setup a distributed setup for $subject with following nodes.

   - 2 key managers
   - 2 gateways
   - publisher
   - store

Setting up jmeter needs to be done.

While setting up I found an issue and reported here[1] .

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

Thanks,
-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invitation: Introduction to BPS @ Fri Jun 12, 2015 10:30am - 11:30am (am...@wso2.com)

2015-06-12 Thread Amal Gunatilake
Some of the samples used in the slides can be found at :
https://svn.wso2.org/repos/wso2/scratch/amalg/BPS_Samples/

On Fri, Jun 12, 2015 at 12:02 PM, Amal Gunatilake am...@wso2.com wrote:

 Presentation slides can be found at :
 https://docs.google.com/a/wso2.com/presentation/d/1CdYi-D7vPt3DGZckyS0g-TOGF7CiiaaJ8VbGXfo4t8o/edit?usp=sharing

 Best regards,
 Amal.

 On Thu, Jun 11, 2015 at 3:07 PM, Yohanna Fernando yoha...@wso2.com
 wrote:

 more details »
 https://www.google.com/calendar/event?action=VIEWeid=bDg4NGxjZ29mN3M3cTVoZGg1cWNkZjRwYm8gYW1hbGdAd3NvMi5jb20tok=MTYjeW9oYW5uYUB3c28yLmNvbWM0YjY1MGM2ZDdmZGQ0ZTMwYjU3OGViNGEzZWM2MjY3ZTUzMDIzY2Uctz=Asia/Colombohl=en
 Introduction to BPS
 Amal G will be doing an introduction to BPS.
 *When*
 Fri Jun 12, 2015 10:30am – 11:30am Colombo
 *Where*
 LK 6th Floor Meeting Room - Turing Ext:1005660 (map
 https://maps.google.lk/maps?q=LK+6th+Floor+Meeting+Room+-+Turing+Ext:1005660hl=en
 )
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/yohanna
 https://plus.google.com/hangouts/_/wso2.com/yohanna?hceid=eW9oYW5uYUB3c28yLmNvbQ.l884lcgof7s7q5hdh5qcdf4pbo
 *Calendar*
 am...@wso2.com
 *Who*
 •
 Yohanna Fernando - organizer
 •
 Amal Gunatilake
 •
 Shiva Balachandran
 •
 Praneesha Chandrasiri - optional
 •
 Nirdesha Munasinghe - optional
 •
 Samuel Gnaniah - optional
 •
 Rukshani Weerasinha - optional
 •
 Mariangela Hills - optional
 •
 Nisrin Sheriff - optional
 •
 Nalin Sugathapala - optional
 •
 Shavindri Dissanayake - optional
 •
 Sanjeev Niles - optional
 •
 Tania Mahanama - optional
 •
 Nilmini Perera - optional

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=bDg4NGxjZ29mN3M3cTVoZGg1cWNkZjRwYm8gYW1hbGdAd3NvMi5jb20rst=1tok=MTYjeW9oYW5uYUB3c28yLmNvbWM0YjY1MGM2ZDdmZGQ0ZTMwYjU3OGViNGEzZWM2MjY3ZTUzMDIzY2Uctz=Asia/Colombohl=en
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=bDg4NGxjZ29mN3M3cTVoZGg1cWNkZjRwYm8gYW1hbGdAd3NvMi5jb20rst=3tok=MTYjeW9oYW5uYUB3c28yLmNvbWM0YjY1MGM2ZDdmZGQ0ZTMwYjU3OGViNGEzZWM2MjY3ZTUzMDIzY2Uctz=Asia/Colombohl=en
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=bDg4NGxjZ29mN3M3cTVoZGg1cWNkZjRwYm8gYW1hbGdAd3NvMi5jb20rst=2tok=MTYjeW9oYW5uYUB3c28yLmNvbWM0YjY1MGM2ZDdmZGQ0ZTMwYjU3OGViNGEzZWM2MjY3ZTUzMDIzY2Uctz=Asia/Colombohl=en*
 more options »
 https://www.google.com/calendar/event?action=VIEWeid=bDg4NGxjZ29mN3M3cTVoZGg1cWNkZjRwYm8gYW1hbGdAd3NvMi5jb20tok=MTYjeW9oYW5uYUB3c28yLmNvbWM0YjY1MGM2ZDdmZGQ0ZTMwYjU3OGViNGEzZWM2MjY3ZTUzMDIzY2Uctz=Asia/Colombohl=en

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this email at the account am...@wso2.com because you
 are subscribed for invitations on calendar am...@wso2.com.

 To stop receiving these emails, please log in to
 https://www.google.com/calendar/ and change your notification settings
 for this calendar.




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




-- 
*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-identity-4.5.1 released to staging

2015-06-12 Thread Jayanga Dissanayake
Hi Prasad,,

repo is released.

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Thu, Jun 11, 2015 at 11:48 PM, Prasad Tissera pras...@wso2.com wrote:

 Hi Jayanga,

 Verified [1]. Please proceed with the release. Thanks.

 [1]
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-043/

 Regards,
 Prasad.

 On Thu, Jun 11, 2015 at 8:22 PM, Jayanga Dissanayake jaya...@wso2.com
 wrote:

 Hi Prasad,

 The repo is closed [1] . Please verify before release.

 [1]
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-043/

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Thu, Jun 11, 2015 at 5:29 PM, Prasad Tissera pras...@wso2.com wrote:

 Hi Jayanga,

 carbon-identity-4.5.1 released to staging and verified the fixes. Please
 review and move to public.

 Regards,
 Prasad.

 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444





 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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


Re: [Dev] Error when trying to run proxy service

2015-06-12 Thread Aaquibah Nashry
Hi malaka,
yes that was the problem.
thanks.

M.R.Aaquibah Nashry
*Intern, Engineering*
Mobile : +94 773946123
Tel  : +94 112662541
nas...@wso2.com

On Fri, Jun 12, 2015 at 12:10 PM, Malaka Silva mal...@wso2.com wrote:

 you need to append secutitytoken with the password.


 from doc,
 Connecting to Salesforce

 To use the Salesforce connector, add the salesforce.init element in
 your configuration before any other Salesforce connector operations. This
 configuration authenticates with Salesforce by configuring the user
 credentials and login URL. The password is a combination of the user
 password plus the security token provided by Salesforce. For example, if
 the user's password is ABCD, and the security token is 1234, enter ABCD1234
 as the password. Users can obtain their security token by changing their
 password or resetting their security token in the Salesforce user
 interface, at which point Salesforce sends a new security token to the
 email address on the user's Salesforce record.
 *init*
 salesforce.init
 usernamex...@abc.com/username
 passwordx/password
 loginUrlhttps://login.salesforce.com/services/Soap/u/27.0/loginUrl
 /salesforce.init

 The response of this operation is attached to the message body and is used
 for subsequent Salesforce operations. The session ID is saved to the
 propertysalesforce.sessionId, and the server URL is saved to
 salesforce.serviceUrl. If the given login details are invalid, the
 specified fault sequence will be triggered



 On Fri, Jun 12, 2015 at 11:55 AM, Aaquibah Nashry nas...@wso2.com wrote:

 Hi,
 the problem was with the authentication to salesforce.

 Thanks,

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 11:36 AM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi Kavith,
 the data is not written to the database at all...

 when i save my data service, i get this on the esb log,

 [2015-06-12 11:28:38,441]  WARN
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
 Administrator login attempt 'admin[-1234]' at [2015-06-12
 11:28:38,441+0530] from IP address 10.100.4.35
 [2015-06-12 11:28:38,442]  WARN
 {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
 Illegal access attempt at [2015-06-12 11:28:38,0442] from IP address
 10.100.4.35 while trying to authenticate access to service
 LoggedUserInfoAdmin
 [2015-06-12 11:28:40,772]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'admin@carbon.super [-1234]' logged in at [2015-06-12
 11:28:40,772+0530] from IP address 10.100.4.35
 [2015-06-12 11:29:00,534]  INFO
 {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
 service: mysql {super-tenant}


 when i save my proxy,

 ilding Axis service for Proxy service : query
 [2015-06-12 11:30:11,453]  INFO {SERVICE_LOGGER.query} -  Adding service
 query to the Axis2 configuration
 [2015-06-12 11:30:11,458]  INFO
 {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
 service: query {super-tenant}
 [2015-06-12 11:30:11,521]  INFO {SERVICE_LOGGER.query} -  Successfully
 created the Axis2 service for Proxy service : query

 when i try the service,

 NFO {SERVICE_LOGGER.query} -  Connection = Login to Salesforce .
 [2015-06-12 11:34:17,895]  WARN {SERVICE_LOGGER} -  ERROR_CODE : null
 ERROR_MESSAGE : null


 these are the logs i get...

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 11:22 AM, Kavith Lokuhewage kav...@wso2.com
 wrote:

 Hi Aaquibah,

 Can you see this data written into the database properly?  Is it just
 the case that you get a read time out on tryit tool? Please attach the
 complete log of ESB for this scenario.

 Thanks.

 On Fri, Jun 12, 2015 at 11:06 AM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi Kavith,

 i got the following:

 [2015-06-12 11:05:02,198]  INFO {SERVICE_LOGGER.query} -  Connection =
 Login to Salesforce .
 [2015-06-12 11:05:03,435]  WARN {SERVICE_LOGGER} -  ERROR_CODE : null
 ERROR_MESSAGE : null


 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 10:59 AM, Kavith Lokuhewage kav...@wso2.com
 wrote:

 Hi Aaquibah,

 Do you see any error logs in ESB side?

 Thanks.

 On Fri, Jun 12, 2015 at 10:52 AM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi,
 I followed the stepsin this link to get data from salesforce and
 write to mysql database :


 http://wso2.com/library/articles/2014/02/cloud-to-rdbms-using-wso2-esb/

 When i try the service, i get this error:

 TryitProxyError h:status=SOAP envelope error xmlns:h=
 http://wso2.org/ns/TryitProxy;org.apache.axis2.AxisFault: Read
 timed out/TryitProxyError

 Any ideas to solve this???

 Thanks in advance,

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 

Re: [Dev] [PPaaS][Configurator] WSO2-IS template for Configurator

2015-06-12 Thread Pubudu Gunatilaka
Hi Imesh,

I added a README.md file and it includes the following details.
- Configurations it supports
- Configuration parameters and their usage
- Files used by the configuration parameters

I also modified the WSO2-IS 5.0.0 template to setup an external database.

PR can be found in [1]. Please review and merge.

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

Thank you!


On Wed, Jun 10, 2015 at 1:38 PM, Imesh Gunaratne im...@wso2.com wrote:

 Great work Pubudu! I have now merged it to master branch.
 IMO it would be better if we can add a README.md file here [1] and explain
 the configurations it support.

 [1]
 https://github.com/wso2/product-private-paas/tree/master/cartridges/templates/wso2is-5.0.0

 Thanks

 On Wed, Jun 10, 2015 at 12:52 PM, Pubudu Gunatilaka pubu...@wso2.com
 wrote:

 Hi Imesh,

 I have added WSO2-IS template for the configurator module.
 Please review and merge the PR in [1].

 [1] - https://github.com/wso2/product-private-paas/pull/87

 Thank you!
 --

 *Pubudu Gunatilaka*
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 77 4078049




 --
 *Imesh Gunaratne*
 Senior 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




-- 

*Pubudu Gunatilaka*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 77 4078049
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Sewmini Jayaweera
Hi,

Please note that API creation is blocked when mssql databases are used [1].

https://wso2.org/jira/browse/APIMANAGER-3867

Thanks and regards,
Sewmini

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

On Fri, Jun 12, 2015 at 2:16 PM, Nuwan Dias nuw...@wso2.com wrote:

 Sorry about that, wrong UI validation done to fix [1]. Will issue a fix to
 continue testing.

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

 Thanks,
 NuwanD.

 On Fri, Jun 12, 2015 at 2:12 PM, Sewmini Jayaweera sewm...@wso2.com
 wrote:

 Hi,

 Please note that new feature introduced in API Manager 1.9.0 (Pluggable
 version context) is broken and cannot test it in the latest pack given (API
 manager 1.9.0 nightly build pack 12-06-2015). Please refer to the Jira below

 https://wso2.org/jira/browse/APIMANAGER-3866

 Thanks  Regards
 sewmini

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

 On Fri, Jun 12, 2015 at 12:04 PM, Lakmali Baminiwatta lakm...@wso2.com
 wrote:

 Hi,

 Please find $subject from [1]

 [1]http://builder1.us1.wso2.org/~apim/12-06-2015/

 Thanks,
 Lakmali

 --
 Lakmali Baminiwatta
  Senior Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com





 --
 Nuwan Dias

 Technical Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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


Re: [Dev] Error when trying to run proxy service

2015-06-12 Thread Aaquibah Nashry
Hi Kavith,
the data is not written to the database at all...

when i save my data service, i get this on the esb log,

[2015-06-12 11:28:38,441]  WARN
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
Administrator login attempt 'admin[-1234]' at [2015-06-12
11:28:38,441+0530] from IP address 10.100.4.35
[2015-06-12 11:28:38,442]  WARN
{org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
Illegal access attempt at [2015-06-12 11:28:38,0442] from IP address
10.100.4.35 while trying to authenticate access to service
LoggedUserInfoAdmin
[2015-06-12 11:28:40,772]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
'admin@carbon.super [-1234]' logged in at [2015-06-12 11:28:40,772+0530]
from IP address 10.100.4.35
[2015-06-12 11:29:00,534]  INFO
{org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
service: mysql {super-tenant}


when i save my proxy,

ilding Axis service for Proxy service : query
[2015-06-12 11:30:11,453]  INFO {SERVICE_LOGGER.query} -  Adding service
query to the Axis2 configuration
[2015-06-12 11:30:11,458]  INFO
{org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
service: query {super-tenant}
[2015-06-12 11:30:11,521]  INFO {SERVICE_LOGGER.query} -  Successfully
created the Axis2 service for Proxy service : query

when i try the service,

NFO {SERVICE_LOGGER.query} -  Connection = Login to Salesforce .
[2015-06-12 11:34:17,895]  WARN {SERVICE_LOGGER} -  ERROR_CODE : null
ERROR_MESSAGE : null


these are the logs i get...

M.R.Aaquibah Nashry
*Intern, Engineering*
Mobile : +94 773946123
Tel  : +94 112662541
nas...@wso2.com

On Fri, Jun 12, 2015 at 11:22 AM, Kavith Lokuhewage kav...@wso2.com wrote:

 Hi Aaquibah,

 Can you see this data written into the database properly?  Is it just the
 case that you get a read time out on tryit tool? Please attach the complete
 log of ESB for this scenario.

 Thanks.

 On Fri, Jun 12, 2015 at 11:06 AM, Aaquibah Nashry nas...@wso2.com wrote:

 Hi Kavith,

 i got the following:

 [2015-06-12 11:05:02,198]  INFO {SERVICE_LOGGER.query} -  Connection =
 Login to Salesforce .
 [2015-06-12 11:05:03,435]  WARN {SERVICE_LOGGER} -  ERROR_CODE : null
 ERROR_MESSAGE : null


 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 10:59 AM, Kavith Lokuhewage kav...@wso2.com
 wrote:

 Hi Aaquibah,

 Do you see any error logs in ESB side?

 Thanks.

 On Fri, Jun 12, 2015 at 10:52 AM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi,
 I followed the stepsin this link to get data from salesforce and write
 to mysql database :

 http://wso2.com/library/articles/2014/02/cloud-to-rdbms-using-wso2-esb/

 When i try the service, i get this error:

 TryitProxyError h:status=SOAP envelope error xmlns:h=
 http://wso2.org/ns/TryitProxy;org.apache.axis2.AxisFault: Read timed
 out/TryitProxyError

 Any ideas to solve this???

 Thanks in advance,

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

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




 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +9477-9-145-123 | +9471-455-6-401
 Linkedin http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419
 Twitter https://twitter.com/KavithThiranga





 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +9477-9-145-123 | +9471-455-6-401
 Linkedin http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419
 Twitter https://twitter.com/KavithThiranga

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


Re: [Dev] carbon-identity-4.5.1 released to staging

2015-06-12 Thread Prasad Tissera
Thanks..

On Fri, Jun 12, 2015 at 11:44 AM, Jayanga Dissanayake jaya...@wso2.com
wrote:

 Hi Prasad,,

 repo is released.

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Thu, Jun 11, 2015 at 11:48 PM, Prasad Tissera pras...@wso2.com wrote:

 Hi Jayanga,

 Verified [1]. Please proceed with the release. Thanks.

 [1]
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-043/

 Regards,
 Prasad.

 On Thu, Jun 11, 2015 at 8:22 PM, Jayanga Dissanayake jaya...@wso2.com
 wrote:

 Hi Prasad,

 The repo is closed [1] . Please verify before release.

 [1]
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-043/

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Thu, Jun 11, 2015 at 5:29 PM, Prasad Tissera pras...@wso2.com
 wrote:

 Hi Jayanga,

 carbon-identity-4.5.1 released to staging and verified the fixes.
 Please review and move to public.

 Regards,
 Prasad.

 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444





 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444





-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge

2015-06-12 Thread Chamin Dias
Hi,

Pull request [1] was closed due to a change in the upstream. (to resolve
conflicts due a change of a folder name : Default to Responsive)

This is the Fix [2] (updated PR) for JIRA issue [3].

Please review and merge.

[1] https://github.com/wso2/carbon-apimgt/pull/689
[2] https://github.com/wso2/carbon-apimgt/pull/695
[3] https://wso2.org/jira/browse/APIMANAGER-3828

Thanks.

On Thu, Jun 11, 2015 at 8:52 PM, Chamin Dias cham...@wso2.com wrote:

 Hi,

 This is the Fix [1] for JIRA issue [2].

 Please review and merge.

 [1] https://github.com/wso2/carbon-apimgt/pull/689
 [2] https://wso2.org/jira/browse/APIMANAGER-3828

 Thanks.

 --
 Chamin Dias
 *Software Engineer*
 Mobile : +94 (0) 716 097455 %2B94%20%280%29%20773%20451194
 cham...@wso2.com




-- 
Chamin Dias
*Software Engineer*
Mobile : +94 (0) 716 097455 %2B94%20%280%29%20773%20451194
cham...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Sameera Medagammaddegedara
Hi Jayanga,

The carbon-store-2.1.0 component has been released to staging.Could you
please provide assistance in closing and releasing the said repo.

Thank You,
Sameera

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


Re: [Dev] [AF] Using setTimeout in a jiggery page

2015-06-12 Thread danushkaf
Hi Ruchira, 

Thanks for the detailed explanation. Few explanations about our implementation.

We use java caches and this caching is about caching stuff related to the user 
in the session. So it has to be in the jaggery level. 

Then it’s ok that this runs later and that what we want to happen too.

Since this is one time thing and not an really heavy operation keeping the 
scope is ok I guess. (Only when login)

@Dimuthu, Manjula any thoughts?








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





From: Ruchira Wageesha
Sent: ‎Friday‎, ‎June‎ ‎12‎, ‎2015 ‎12‎:‎53‎ ‎PM
To: Danushka Fernando
Cc: WSO2 Developers' List, Dimuthu Leelarathne, Manjula Rathnayake___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Sewmini Jayaweera
Hi,

Please note that new feature introduced in API Manager 1.9.0 (Pluggable
version context) is broken and cannot test it in the latest pack given (API
manager 1.9.0 nightly build pack 12-06-2015). Please refer to the Jira below

https://wso2.org/jira/browse/APIMANAGER-3866

Thanks  Regards
sewmini

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

On Fri, Jun 12, 2015 at 12:04 PM, Lakmali Baminiwatta lakm...@wso2.com
wrote:

 Hi,

 Please find $subject from [1]

 [1]http://builder1.us1.wso2.org/~apim/12-06-2015/

 Thanks,
 Lakmali

 --
 Lakmali Baminiwatta
  Senior 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


Re: [Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Nuwan Dias
Sorry about that, wrong UI validation done to fix [1]. Will issue a fix to
continue testing.

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

Thanks,
NuwanD.

On Fri, Jun 12, 2015 at 2:12 PM, Sewmini Jayaweera sewm...@wso2.com wrote:

 Hi,

 Please note that new feature introduced in API Manager 1.9.0 (Pluggable
 version context) is broken and cannot test it in the latest pack given (API
 manager 1.9.0 nightly build pack 12-06-2015). Please refer to the Jira below

 https://wso2.org/jira/browse/APIMANAGER-3866

 Thanks  Regards
 sewmini

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

 On Fri, Jun 12, 2015 at 12:04 PM, Lakmali Baminiwatta lakm...@wso2.com
 wrote:

 Hi,

 Please find $subject from [1]

 [1]http://builder1.us1.wso2.org/~apim/12-06-2015/

 Thanks,
 Lakmali

 --
 Lakmali Baminiwatta
  Senior Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com





-- 
Nuwan Dias

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


Re: [Dev] Puppet setup script showing Error: Could not request certificate

2015-06-12 Thread Aiyadurai Rajeevan
Hi Sajith/Pubudu,

Thanks for your inputs, Will check this two and keep you posted.

Thanks  Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636

On Thu, Jun 11, 2015 at 7:14 PM, Pubudu Gunatilaka pubu...@wso2.com wrote:

 Hi Aiyadurai,

 Check whether puppet master and agent have configurations according to [1].

 [1] - http://sajithblogs.blogspot.com/2014/12/puppet-configs.html

 Thank you!

 On Thu, Jun 11, 2015 at 6:31 PM, Sajith Abeywardhana saji...@wso2.com
 wrote:

 Hi Rajeewan,

 Did you inspect tcp dump? It seems like SSL handshake fail when
 requesting a certificate.

 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com

 On Thu, Jun 11, 2015 at 3:35 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 I have been working on integrating Appfactory developer setup puppet
 script for Mac, When I run the the setup script i got below exception. Your
 expertise would be much appreciated to resolve this issue.

 ###
 ### Starting AppFactory Developer Setup ###
 ###

 Removing previous agent certificates...

 Setting username and password for puppet agent...
 Enter username (default username is afpuppet and press enter to
 continue with the default):
 Enter password (default password is afpuppet and press enter to
 continue with the default):
 Installing mkpasswd...
 sudo: apt-get: command not found
 # Starting mysql setup 
 /Library/Ruby/Site/puppet/defaults.rb:214: warning: Insecure world
 writable dir /usr/local/bin in PATH, mode 040777
 tee: setup-logs/puppet2015-06-11.15:26:32.log: No such file or directory
 /Library/Ruby/Site/puppet/defaults.rb:214: warning: Insecure world
 writable dir /usr/local/bin in PATH, mode 040777
 Warning: Setting templatedir is deprecated. See
 http://links.puppetlabs.com/env-settings-deprecations
(at /Library/Ruby/Site/puppet/settings.rb:1139:in
 `issue_deprecation_warning')
 Info: Creating a new SSL key for 7j4755-mysql
 Info: Caching certificate for ca
 Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml
 Info: Creating a new SSL certificate request for 7j4755-mysql
 Info: Certificate Request fingerprint (SHA256):
 A5:91:3E:BB:B1:39:4C:29:EE:99:39:E4:3D:83:57:1E:48:0D:C6:45:20:58:16:95:88:5E:70:D1:37:E3:30:B4
 Info: Caching certificate for 7j4755-mysql
 Error: Could not request certificate: SSL_connect returned=1 errno=0
 state=SSLv3 read server certificate B: certificate verify failed: [self
 signed certificate in certificate chain for /CN=Puppet CA generated on
 puppet.appfactory.private.wso2.com]

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 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




 --

 *Pubudu Gunatilaka*
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 77 4078049

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


Re: [Dev] Error when trying to run proxy service

2015-06-12 Thread Aaquibah Nashry
Hi,
the problem was with the authentication to salesforce.

Thanks,

M.R.Aaquibah Nashry
*Intern, Engineering*
Mobile : +94 773946123
Tel  : +94 112662541
nas...@wso2.com

On Fri, Jun 12, 2015 at 11:36 AM, Aaquibah Nashry nas...@wso2.com wrote:

 Hi Kavith,
 the data is not written to the database at all...

 when i save my data service, i get this on the esb log,

 [2015-06-12 11:28:38,441]  WARN
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
 Administrator login attempt 'admin[-1234]' at [2015-06-12
 11:28:38,441+0530] from IP address 10.100.4.35
 [2015-06-12 11:28:38,442]  WARN
 {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
 Illegal access attempt at [2015-06-12 11:28:38,0442] from IP address
 10.100.4.35 while trying to authenticate access to service
 LoggedUserInfoAdmin
 [2015-06-12 11:28:40,772]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'admin@carbon.super [-1234]' logged in at [2015-06-12 11:28:40,772+0530]
 from IP address 10.100.4.35
 [2015-06-12 11:29:00,534]  INFO
 {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
 service: mysql {super-tenant}


 when i save my proxy,

 ilding Axis service for Proxy service : query
 [2015-06-12 11:30:11,453]  INFO {SERVICE_LOGGER.query} -  Adding service
 query to the Axis2 configuration
 [2015-06-12 11:30:11,458]  INFO
 {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
 service: query {super-tenant}
 [2015-06-12 11:30:11,521]  INFO {SERVICE_LOGGER.query} -  Successfully
 created the Axis2 service for Proxy service : query

 when i try the service,

 NFO {SERVICE_LOGGER.query} -  Connection = Login to Salesforce .
 [2015-06-12 11:34:17,895]  WARN {SERVICE_LOGGER} -  ERROR_CODE : null
 ERROR_MESSAGE : null


 these are the logs i get...

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 11:22 AM, Kavith Lokuhewage kav...@wso2.com
 wrote:

 Hi Aaquibah,

 Can you see this data written into the database properly?  Is it just the
 case that you get a read time out on tryit tool? Please attach the complete
 log of ESB for this scenario.

 Thanks.

 On Fri, Jun 12, 2015 at 11:06 AM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi Kavith,

 i got the following:

 [2015-06-12 11:05:02,198]  INFO {SERVICE_LOGGER.query} -  Connection =
 Login to Salesforce .
 [2015-06-12 11:05:03,435]  WARN {SERVICE_LOGGER} -  ERROR_CODE : null
 ERROR_MESSAGE : null


 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 10:59 AM, Kavith Lokuhewage kav...@wso2.com
 wrote:

 Hi Aaquibah,

 Do you see any error logs in ESB side?

 Thanks.

 On Fri, Jun 12, 2015 at 10:52 AM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi,
 I followed the stepsin this link to get data from salesforce and write
 to mysql database :

 http://wso2.com/library/articles/2014/02/cloud-to-rdbms-using-wso2-esb/

 When i try the service, i get this error:

 TryitProxyError h:status=SOAP envelope error xmlns:h=
 http://wso2.org/ns/TryitProxy;org.apache.axis2.AxisFault: Read timed
 out/TryitProxyError

 Any ideas to solve this???

 Thanks in advance,

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

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




 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +9477-9-145-123 | +9471-455-6-401
 Linkedin http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419
 Twitter https://twitter.com/KavithThiranga





 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +9477-9-145-123 | +9471-455-6-401
 Linkedin http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419
 Twitter https://twitter.com/KavithThiranga



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


[Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Lakmali Baminiwatta
Hi,

Please find $subject from [1]

[1]http://builder1.us1.wso2.org/~apim/12-06-2015/

Thanks,
Lakmali

-- 
Lakmali Baminiwatta
 Senior 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


[Dev] Please Review and Merge the PR

2015-06-12 Thread Thusitha Thilina Dayaratne
Hi,

Please review and merge the PR[1] for JIRA[2]
[1] - https://github.com/wso2/carbon4-kernel/pull/238
[2] - https://wso2.org/jira/browse/CARBON-15267

Thanks
-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.9.0 nightly build pack - 12-06-2015

2015-06-12 Thread Nuwan Dias
They've been fixed now. Please follow instructions on the JiRA to continue
testing.

Thanks,
NuwanD.

On Fri, Jun 12, 2015 at 2:35 PM, Sewmini Jayaweera sewm...@wso2.com wrote:

 Hi,

 Please note that API creation is blocked when mssql databases are used
 [1].

 https://wso2.org/jira/browse/APIMANAGER-3867

 Thanks and regards,
 Sewmini

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

 On Fri, Jun 12, 2015 at 2:16 PM, Nuwan Dias nuw...@wso2.com wrote:

 Sorry about that, wrong UI validation done to fix [1]. Will issue a fix
 to continue testing.

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

 Thanks,
 NuwanD.

 On Fri, Jun 12, 2015 at 2:12 PM, Sewmini Jayaweera sewm...@wso2.com
 wrote:

 Hi,

 Please note that new feature introduced in API Manager 1.9.0 (Pluggable
 version context) is broken and cannot test it in the latest pack given (API
 manager 1.9.0 nightly build pack 12-06-2015). Please refer to the Jira below

 https://wso2.org/jira/browse/APIMANAGER-3866

 Thanks  Regards
 sewmini

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

 On Fri, Jun 12, 2015 at 12:04 PM, Lakmali Baminiwatta lakm...@wso2.com
 wrote:

 Hi,

 Please find $subject from [1]

 [1]http://builder1.us1.wso2.org/~apim/12-06-2015/

 Thanks,
 Lakmali

 --
 Lakmali Baminiwatta
  Senior Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com





 --
 Nuwan Dias

 Technical Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729





-- 
Nuwan Dias

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


[Dev] Developer Studio 3.8.0 M4 Released!

2015-06-12 Thread Sohani Weerasinghe
Hi All,

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

This release includes following features, tasks and bug fixes.
Features:

   - [TOOLS-2847 https://wso2.org/jira/browse/TOOLS-2847] - DevS support
   for ForEach mediator
   - [TOOLS-2862 https://wso2.org/jira/browse/TOOLS-2862] -
   APIM-Perspective to edit APIM sequence from registry

Tasks:

   - [TOOLS-2838 https://wso2.org/jira/browse/TOOLS-2838] -
   Implementation for HTTP transport in Inbound Endpoint
   - [TOOLS-2839 https://wso2.org/jira/browse/TOOLS-2839] -
   Implementation for JMS transport in Inbound Endpoint
   - [TOOLS-2840 https://wso2.org/jira/browse/TOOLS-2840] -
   Implementation for Custom transport in Inbound Endpoint
   - [TOOLS-2841 https://wso2.org/jira/browse/TOOLS-2841] -
   Implementation for HTTPS transport in Inbound Endpoint
   - [TOOLS-2842 https://wso2.org/jira/browse/TOOLS-2842] -
   Implementation for File transport in Inbound Endpoint
   - [TOOLS-2843 https://wso2.org/jira/browse/TOOLS-2843] -
   Implementation for HL7 transport in Inbound Endpoint
   - [TOOLS-2844 https://wso2.org/jira/browse/TOOLS-2844] -
   Implementation for KAFKA transport in Inbound Endpoint
   - [TOOLS-2845 https://wso2.org/jira/browse/TOOLS-2845] -
   Implementation for CXF_WS_RM transport in Inbound Endpoint
   - [TOOLS-2855 https://wso2.org/jira/browse/TOOLS-2855] - Adding
   zooming functionality
   - [TOOLS-2857 https://wso2.org/jira/browse/TOOLS-2857] - Support CApp
   deployment for Inbound Endpoints

Bugs:

   - [TOOLS-2824 https://wso2.org/jira/browse/TOOLS-2824] - Cannot
   create/design complex endpoints
   - [TOOLS-2851 https://wso2.org/jira/browse/TOOLS-2851] - Support
   Import option for Inbound Endpoint
   - [TOOLS-2859 https://wso2.org/jira/browse/TOOLS-2859] - When opening
   sequence from APIM perspective , first mediator not showing in the diagram
   - [TOOLS-2860 https://wso2.org/jira/browse/TOOLS-2860] - Registry
   Tree, Copy resource among the nodes not working

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

[1] *https://svn.wso2.org/repos/wso2/scratch/DevS/
https://svn.wso2.org/repos/wso2/scratch/DevS/*
[2] https://wso2.org/jira/browse/TOOLS

Thanks and Regards,
WSO2 Developer Studio Team
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


Re: [Dev] Error when trying to run proxy service

2015-06-12 Thread Malaka Silva
you need to append secutitytoken with the password.


from doc,
Connecting to Salesforce

To use the Salesforce connector, add the salesforce.init element in your
configuration before any other Salesforce connector operations. This
configuration authenticates with Salesforce by configuring the user
credentials and login URL. The password is a combination of the user
password plus the security token provided by Salesforce. For example, if
the user's password is ABCD, and the security token is 1234, enter ABCD1234
as the password. Users can obtain their security token by changing their
password or resetting their security token in the Salesforce user
interface, at which point Salesforce sends a new security token to the
email address on the user's Salesforce record.
*init*
salesforce.init
usernamex...@abc.com/username
passwordx/password
loginUrlhttps://login.salesforce.com/services/Soap/u/27.0/loginUrl
/salesforce.init

The response of this operation is attached to the message body and is used
for subsequent Salesforce operations. The session ID is saved to the
propertysalesforce.sessionId, and the server URL is saved to
salesforce.serviceUrl. If the given login details are invalid, the
specified fault sequence will be triggered



On Fri, Jun 12, 2015 at 11:55 AM, Aaquibah Nashry nas...@wso2.com wrote:

 Hi,
 the problem was with the authentication to salesforce.

 Thanks,

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 11:36 AM, Aaquibah Nashry nas...@wso2.com wrote:

 Hi Kavith,
 the data is not written to the database at all...

 when i save my data service, i get this on the esb log,

 [2015-06-12 11:28:38,441]  WARN
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
 Administrator login attempt 'admin[-1234]' at [2015-06-12
 11:28:38,441+0530] from IP address 10.100.4.35
 [2015-06-12 11:28:38,442]  WARN
 {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
 Illegal access attempt at [2015-06-12 11:28:38,0442] from IP address
 10.100.4.35 while trying to authenticate access to service
 LoggedUserInfoAdmin
 [2015-06-12 11:28:40,772]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'admin@carbon.super [-1234]' logged in at [2015-06-12 11:28:40,772+0530]
 from IP address 10.100.4.35
 [2015-06-12 11:29:00,534]  INFO
 {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
 service: mysql {super-tenant}


 when i save my proxy,

 ilding Axis service for Proxy service : query
 [2015-06-12 11:30:11,453]  INFO {SERVICE_LOGGER.query} -  Adding service
 query to the Axis2 configuration
 [2015-06-12 11:30:11,458]  INFO
 {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
 service: query {super-tenant}
 [2015-06-12 11:30:11,521]  INFO {SERVICE_LOGGER.query} -  Successfully
 created the Axis2 service for Proxy service : query

 when i try the service,

 NFO {SERVICE_LOGGER.query} -  Connection = Login to Salesforce .
 [2015-06-12 11:34:17,895]  WARN {SERVICE_LOGGER} -  ERROR_CODE : null
 ERROR_MESSAGE : null


 these are the logs i get...

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 11:22 AM, Kavith Lokuhewage kav...@wso2.com
 wrote:

 Hi Aaquibah,

 Can you see this data written into the database properly?  Is it just
 the case that you get a read time out on tryit tool? Please attach the
 complete log of ESB for this scenario.

 Thanks.

 On Fri, Jun 12, 2015 at 11:06 AM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi Kavith,

 i got the following:

 [2015-06-12 11:05:02,198]  INFO {SERVICE_LOGGER.query} -  Connection =
 Login to Salesforce .
 [2015-06-12 11:05:03,435]  WARN {SERVICE_LOGGER} -  ERROR_CODE : null
 ERROR_MESSAGE : null


 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

 On Fri, Jun 12, 2015 at 10:59 AM, Kavith Lokuhewage kav...@wso2.com
 wrote:

 Hi Aaquibah,

 Do you see any error logs in ESB side?

 Thanks.

 On Fri, Jun 12, 2015 at 10:52 AM, Aaquibah Nashry nas...@wso2.com
 wrote:

 Hi,
 I followed the stepsin this link to get data from salesforce and
 write to mysql database :


 http://wso2.com/library/articles/2014/02/cloud-to-rdbms-using-wso2-esb/

 When i try the service, i get this error:

 TryitProxyError h:status=SOAP envelope error xmlns:h=
 http://wso2.org/ns/TryitProxy;org.apache.axis2.AxisFault: Read
 timed out/TryitProxyError

 Any ideas to solve this???

 Thanks in advance,

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

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




 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 

Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-06-12 Thread Srinath Perera
yes that is OK.

On Fri, Jun 12, 2015 at 4:25 PM, Mohamed Fawzan fawz...@gmail.com wrote:

 Yes. It is a good time. I can take the 6.00AM Train from kandy. Can reach
 colombo by 10.00 i guess. Is it o?


 On Friday, June 12, 2015, Mohamed Fawzan fawz...@gmail.com wrote:

 Understood. Thanks Srinath.

 On Friday, June 12, 2015, Srinath Perera srin...@wso2.com wrote:

 Input and output streams are the same thing. Sometimes, a stream can be
 both inputs and outputs E.g. Stream 2.

 [image: Inline image 1]

 On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,

 Can you please help me to understand the streams? I mean the 
 InputOutputNode
 in.


 InputOutputNode : {

 connectionName : 'StockQuoteStream',

 connectionType :'Stream',

 connectionTypeDetails : 'para1:string, para2:int'

 }


 In the layout[1]  http://vc.mutexlk.com/dashboard.htmlI have considered 
 Input  Output streams as separate things. Is it correct ? or else are 
 they belong to same category?


 -Regards


 [1]-http://vc.mutexlk.com/dashboard.html


 On Thu, Jun 11, 2015 at 10:53 AM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi,



 On Thu, Jun 11, 2015 at 8:04 AM, Srinath Perera srin...@wso2.com
 wrote:

 Need names inside canvas as well. ( need to handle large names).

 What are the children of streams? attributes?

 I was planning to categorize streams there. Please see the updated
 names here[1]. http://vc.mutexlk.com/dashboard.html





 I would rather connect streams and operators, then click on operator
 and pick which attribute/ or attributes you use. If so I would not show
 children against streams.

 On Thu, Jun 11, 2015 at 6:52 AM, Mohamed Fawzan fawz...@gmail.com
 wrote:


 Hi Srinath,

 I have just added the streams names inside the rectangles [1]
 http://vc.mutexlk.com/dashboard.html . Please check and comment
 on it.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Wed, Jun 10, 2015 at 5:55 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:


 On Wed, Jun 10, 2015 at 5:52 PM, Srinath Perera srin...@wso2.com
 wrote:

 We can do it several ways

 1. have small connectors showing against each node ( Stream/
 Operator), which you can click and drag to connector in other node.


 +1, I had the same idea on my mind. I will work on that, Feel free
 to suggest other options as well.



 2. Second option drop into other one as you mention.

 I think #2 run into a problem if you want to connect two streams
 to same operator ( e.g. Join). So I prefer #1. But open for other 
 options.

 --Srinath

 On Wed, Jun 10, 2015 at 5:46 PM, Mohamed Fawzan fawz...@gmail.com
  wrote:

 Are we talking about connecting the streams  operators phase? If
 so what is your preferred method of doing it?

 does the connection made when we drop an operator on another
 operator OR drop an operator on a stream?

 Am I correct ?



 On Wed, Jun 10, 2015 at 5:42 PM, Srinath Perera srin...@wso2.com
  wrote:

 We need to connect stream to operators and operator to other
 operators by connectors?
 Need to click on a connector and drg it to another operator or
 stream. Would that clear?

 On Wed, Jun 10, 2015 at 5:36 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:


 On Wed, Jun 10, 2015 at 5:31 PM, Srinath Perera 
 srin...@wso2.com wrote:



 we need name of the stream in the box IMO.


 +1, I will make the changes.



 Also we need a way to draw from the stream to operators and
 between operators next.

 I can't quite understand that, Can you please explain it a
 bit?





 On Tue, Jun 9, 2015 at 7:24 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi Srinath,

 I have added the streams[1]
 http://vc.mutexlk.com/dashboard.html as well. Please check
 and comment.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Tue, Jun 9, 2015 at 9:43 AM, Srinath Perera 
 srin...@wso2.com wrote:

 Look good. And overall layout is OK. ( We can do bit of
 styling with UI team later)

 --Srinath

 On Mon, Jun 8, 2015 at 6:06 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi Srinath,

 I have just added the right click delete option [1]
 http://vc.mutexlk.com/dashboard.html . Please check and
 comment on it.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Mon, Jun 8, 2015 at 3:54 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Yeah. Right now working on the stream, i will try the
 right click - delete. Btw what do you think of the complete 
 svg layout? Is
 it ok?


 On Monday, June 8, 2015, Srinath Perera srin...@wso2.com
 wrote:

 Mohan said I need to move it to red box to delete. Not
 very intuitive IMO.

 Can we support right click and delete?

 On Mon, Jun 8, 2015 at 3:25 PM, Srinath Perera 
 srin...@wso2.com wrote:

 I did not see any streams .. but can move the operators.

 I assume you have not done deletes yet.

 --Srinath

 On Sun, Jun 7, 2015 at 9:02 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi,

 I have updated the SVG layout with icons. Please check
 [1] http://vc.mutexlk.com/dashboard.html

 [1] - 

Re: [Dev] Issue with HTTP event publisher when using PoolingHttpClientConnectionManager

2015-06-12 Thread Ramindu De Silva
Hi all,

I resolved the issue.

Previously, it happened since i configured the connection manager only once
for all the receivers. For every creation of an adapter a connection
manager should be configured.

Thanks,
Best Regards

On Thu, Jun 11, 2015 at 10:32 PM, Ramindu De Silva ramin...@wso2.com
wrote:

 Hi all,

 I am experiencing $subject when using multiple event publishers. Earlier
 implementation of CEP used only one http client per http adapter which used
 SystemDefaultHttpClient. But it couldn't handle high frequency of data. So
 i managed to implement PoolingHttpClientConnectionManager and use the
 CloaseableHttpClient. It works perfectly when theres only one http adapter.
 But when I add another http adapter, it does not publish the requests using
 the adapter i added secondly.

 Im using Apache HttpClient 4.3.3

 Any suggestions for the reason or any alternative ways to overcome this
 issue?

 The following link[1] is my implementation. I referred to this post[2] as
 well.

 1.
 https://github.com/ramindu90/carbon-analytics-common/blob/http-performance-testing/components/event-publisher/event-output-adapters/org.wso2.carbon.event.output.adapter.http/src/main/java/org/wso2/carbon/event/output/adapter/http/HTTPEventAdapter.java

 2. http://www.baeldung.com/httpclient-connection-management

 --
 *Ramindu De Silva*
 Software Engineer
 WSO2 Inc.: http://wso2.com
 lean.enterprise.middleware

 email: ramin...@wso2.com sanj...@wso2.com
 mob: +94 772339350
 mob: +94 782731766




-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com sanj...@wso2.com
mob: +94 772339350
mob: +94 782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Sameera Medagammaddegedara
Thank You Jayanga

On Fri, Jun 12, 2015 at 5:21 PM, Jayanga Dissanayake jaya...@wso2.com
wrote:

 Hi Sameera,

 Repo is released.

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Fri, Jun 12, 2015 at 5:18 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Jayanga,


 Could you please release the components.



 On Fri, Jun 12, 2015 at 5:16 PM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Sameera,

 We performed the build with the above repo and build seems to be
 successful.



 Shazni Nazeer
 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Fri, Jun 12, 2015 at 3:35 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi GREG team,

 Could you please verify the product-greg build with the following repo:
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
 http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2carbonstore-045%2Fsa=Dsntz=1usg=AFQjCNFk_sRdHSg8TJM6aZhiDhSXxy7S6w

 Thank You,
 Sameera

 On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Jayanga,

 The carbon-store-2.1.0 component has been released to staging.Could
 you please provide assistance in closing and releasing the said repo.

 Thank You,
 Sameera

 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005





 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005





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


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Shazni Nazeer
Hi Sameera,

We performed the build with the above repo and build seems to be
successful.



Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com

On Fri, Jun 12, 2015 at 3:35 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi GREG team,

 Could you please verify the product-greg build with the following repo:
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
 http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2carbonstore-045%2Fsa=Dsntz=1usg=AFQjCNFk_sRdHSg8TJM6aZhiDhSXxy7S6w

 Thank You,
 Sameera

 On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Jayanga,

 The carbon-store-2.1.0 component has been released to staging.Could you
 please provide assistance in closing and releasing the said repo.

 Thank You,
 Sameera

 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




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


Re: [Dev] [PPaaS][Configurator] WSO2-IS template for Configurator

2015-06-12 Thread Imesh Gunaratne
Thanks Pubudu! I just merged the pull request to master branch.

On Fri, Jun 12, 2015 at 2:05 PM, Pubudu Gunatilaka pubu...@wso2.com wrote:

 Hi Imesh,

 I added a README.md file and it includes the following details.
 - Configurations it supports
 - Configuration parameters and their usage
 - Files used by the configuration parameters

 I also modified the WSO2-IS 5.0.0 template to setup an external database.

 PR can be found in [1]. Please review and merge.

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

 Thank you!


 On Wed, Jun 10, 2015 at 1:38 PM, Imesh Gunaratne im...@wso2.com wrote:

 Great work Pubudu! I have now merged it to master branch.
 IMO it would be better if we can add a README.md file here [1] and
 explain the configurations it support.

 [1]
 https://github.com/wso2/product-private-paas/tree/master/cartridges/templates/wso2is-5.0.0

 Thanks

 On Wed, Jun 10, 2015 at 12:52 PM, Pubudu Gunatilaka pubu...@wso2.com
 wrote:

 Hi Imesh,

 I have added WSO2-IS template for the configurator module.
 Please review and merge the PR in [1].

 [1] - https://github.com/wso2/product-private-paas/pull/87

 Thank you!
 --

 *Pubudu Gunatilaka*
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 77 4078049




 --
 *Imesh Gunaratne*
 Senior 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




 --

 *Pubudu Gunatilaka*
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 77 4078049




-- 
*Imesh Gunaratne*
Senior 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


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Jayanga Dissanayake
Hi Sameera,

Repo is released.

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Fri, Jun 12, 2015 at 5:18 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi Jayanga,


 Could you please release the components.



 On Fri, Jun 12, 2015 at 5:16 PM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Sameera,

 We performed the build with the above repo and build seems to be
 successful.



 Shazni Nazeer
 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Fri, Jun 12, 2015 at 3:35 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi GREG team,

 Could you please verify the product-greg build with the following repo:
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
 http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2carbonstore-045%2Fsa=Dsntz=1usg=AFQjCNFk_sRdHSg8TJM6aZhiDhSXxy7S6w

 Thank You,
 Sameera

 On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Jayanga,

 The carbon-store-2.1.0 component has been released to staging.Could you
 please provide assistance in closing and releasing the said repo.

 Thank You,
 Sameera

 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005





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


Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-06-12 Thread Mohamed Fawzan
Yes. It is a good time. I can take the 6.00AM Train from kandy. Can reach
colombo by 10.00 i guess. Is it o?

On Friday, June 12, 2015, Mohamed Fawzan fawz...@gmail.com wrote:

 Understood. Thanks Srinath.

 On Friday, June 12, 2015, Srinath Perera srin...@wso2.com
 javascript:_e(%7B%7D,'cvml','srin...@wso2.com'); wrote:

 Input and output streams are the same thing. Sometimes, a stream can be
 both inputs and outputs E.g. Stream 2.

 [image: Inline image 1]

 On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi Srinath,

 Can you please help me to understand the streams? I mean the InputOutputNode
 in.


 InputOutputNode : {

 connectionName : 'StockQuoteStream',

 connectionType :'Stream',

 connectionTypeDetails : 'para1:string, para2:int'

 }


 In the layout[1]  http://vc.mutexlk.com/dashboard.htmlI have considered 
 Input  Output streams as separate things. Is it correct ? or else are they 
 belong to same category?


 -Regards


 [1]-http://vc.mutexlk.com/dashboard.html


 On Thu, Jun 11, 2015 at 10:53 AM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi,



 On Thu, Jun 11, 2015 at 8:04 AM, Srinath Perera srin...@wso2.com
 wrote:

 Need names inside canvas as well. ( need to handle large names).

 What are the children of streams? attributes?

 I was planning to categorize streams there. Please see the updated
 names here[1]. http://vc.mutexlk.com/dashboard.html





 I would rather connect streams and operators, then click on operator
 and pick which attribute/ or attributes you use. If so I would not show
 children against streams.

 On Thu, Jun 11, 2015 at 6:52 AM, Mohamed Fawzan fawz...@gmail.com
 wrote:


 Hi Srinath,

 I have just added the streams names inside the rectangles [1]
 http://vc.mutexlk.com/dashboard.html . Please check and comment on
 it.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Wed, Jun 10, 2015 at 5:55 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:


 On Wed, Jun 10, 2015 at 5:52 PM, Srinath Perera srin...@wso2.com
 wrote:

 We can do it several ways

 1. have small connectors showing against each node ( Stream/
 Operator), which you can click and drag to connector in other node.


 +1, I had the same idea on my mind. I will work on that, Feel free
 to suggest other options as well.



 2. Second option drop into other one as you mention.

 I think #2 run into a problem if you want to connect two streams to
 same operator ( e.g. Join). So I prefer #1. But open for other options.

 --Srinath

 On Wed, Jun 10, 2015 at 5:46 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Are we talking about connecting the streams  operators phase? If
 so what is your preferred method of doing it?

 does the connection made when we drop an operator on another
 operator OR drop an operator on a stream?

 Am I correct ?



 On Wed, Jun 10, 2015 at 5:42 PM, Srinath Perera srin...@wso2.com
 wrote:

 We need to connect stream to operators and operator to other
 operators by connectors?
 Need to click on a connector and drg it to another operator or
 stream. Would that clear?

 On Wed, Jun 10, 2015 at 5:36 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:


 On Wed, Jun 10, 2015 at 5:31 PM, Srinath Perera 
 srin...@wso2.com wrote:



 we need name of the stream in the box IMO.


 +1, I will make the changes.



 Also we need a way to draw from the stream to operators and
 between operators next.

 I can't quite understand that, Can you please explain it a bit?





 On Tue, Jun 9, 2015 at 7:24 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi Srinath,

 I have added the streams[1]
 http://vc.mutexlk.com/dashboard.html as well. Please check
 and comment.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Tue, Jun 9, 2015 at 9:43 AM, Srinath Perera 
 srin...@wso2.com wrote:

 Look good. And overall layout is OK. ( We can do bit of
 styling with UI team later)

 --Srinath

 On Mon, Jun 8, 2015 at 6:06 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi Srinath,

 I have just added the right click delete option [1]
 http://vc.mutexlk.com/dashboard.html . Please check and
 comment on it.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Mon, Jun 8, 2015 at 3:54 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Yeah. Right now working on the stream, i will try the right
 click - delete. Btw what do you think of the complete svg 
 layout? Is it ok?


 On Monday, June 8, 2015, Srinath Perera srin...@wso2.com
 wrote:

 Mohan said I need to move it to red box to delete. Not
 very intuitive IMO.

 Can we support right click and delete?

 On Mon, Jun 8, 2015 at 3:25 PM, Srinath Perera 
 srin...@wso2.com wrote:

 I did not see any streams .. but can move the operators.

 I assume you have not done deletes yet.

 --Srinath

 On Sun, Jun 7, 2015 at 9:02 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi,

 I have updated the SVG layout with icons. Please check
 [1] http://vc.mutexlk.com/dashboard.html

 [1] - http://vc.mutexlk.com/dashboard.html

 On Sun, Jun 7, 

[Dev] AS build fails at tests-security-manager due to file permission

2015-06-12 Thread Niranjan Karunanandham
Hi,

When I tried to build AS pack from Github (master branch) [1], it failed
with error in [2], but this is *passing in Jenkins*. Had an offline
discussion with Nuwan and found out that in my machine *sign-packs.sh*
which is used to sign the jar files in the pack for testing is not executed
as it does *not have execute permission*. When I check the original
location of the file and it has the permission - 775, but when it is copied
the permission is lost.

After I changed the original file permission to 755  and ran the test case,
it failed when it tried to execute sign-packs.sh with a different error
(error: that a newline is present (^M)). This is happened because the
sign-packs.sh file has the Line Separator as *CRLF*. After changing it to
*LF*, I was able to run the tests-security-manager. Why is this happening?


[1] - https://github.com/wso2/product-as/
[2] -
INFO
 [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- Port 9763 is closed and available for use
INFO
 [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- Port 9443 is closed and available for use
INFO
 
[org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager]
- Starting carbon server.
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- JAVA_HOME environment variable is set to /usr/local/java/jdk1.7.0_51
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- CARBON_HOME environment variable is set to
/home/nira/git/Nira/product-as/modules/integration/tests-integration/tests-security-manager/target/carbontmp1434108379893/wso2as-6.0.0-SNAPSHOT
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Property pattern javax.net.ssl.trustStore is restricted for tenant code.
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Property pattern javax.net.ssl.trustStorePassword is restricted for
tenant code.
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Property pattern denied.system.properties is restricted for tenant code.
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- java.security.AccessControlException
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
-  - klass: 'java/security/AccessControlException'
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # A fatal error has been detected by the Java Runtime Environment:
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #  Internal Error (exceptions.cpp:424), pid=20621, tid=139773740406528
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #  fatal error: ExceptionMark destructor expects no pending exceptions
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build
1.7.0_51-b13)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode
linux-amd64 compressed oops)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # Failed to write core dump. Core dumps have been disabled. To enable
core dumping, try ulimit -c unlimited before starting Java again
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # An error report file with more information is saved as:
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
/home/nira/git/Nira/product-as/modules/integration/tests-integration/tests-security-manager/target/carbontmp1434108379893/wso2as-6.0.0-SNAPSHOT/hs_err_pid20621.log
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- # If you would like to submit a bug report, please visit:
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #   http://bugreport.sun.com/bugreport/crash.jsp
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- #
ERROR
[org.wso2.carbon.automation.extensions.servers.utils.InputStreamHandler] -
Aborted (core dumped)


Regards,
Nira

-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Sameera Medagammaddegedara
Hi Jayanga,


Could you please release the components.



On Fri, Jun 12, 2015 at 5:16 PM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Sameera,

 We performed the build with the above repo and build seems to be
 successful.



 Shazni Nazeer
 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Fri, Jun 12, 2015 at 3:35 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi GREG team,

 Could you please verify the product-greg build with the following repo:
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
 http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2carbonstore-045%2Fsa=Dsntz=1usg=AFQjCNFk_sRdHSg8TJM6aZhiDhSXxy7S6w

 Thank You,
 Sameera

 On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Jayanga,

 The carbon-store-2.1.0 component has been released to staging.Could you
 please provide assistance in closing and releasing the said repo.

 Thank You,
 Sameera

 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005





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


Re: [Dev] [GSoC 2015] New SVG Layout for Visual Composer Siddhi Lang.

2015-06-12 Thread Srinath Perera
Input and output streams are the same thing. Sometimes, a stream can be
both inputs and outputs E.g. Stream 2.

[image: Inline image 1]

On Thu, Jun 11, 2015 at 1:53 PM, Mohamed Fawzan fawz...@gmail.com wrote:

 Hi Srinath,

 Can you please help me to understand the streams? I mean the InputOutputNode
 in.


 InputOutputNode : {

 connectionName : 'StockQuoteStream',

 connectionType :'Stream',

 connectionTypeDetails : 'para1:string, para2:int'

 }


 In the layout[1]  http://vc.mutexlk.com/dashboard.htmlI have considered 
 Input  Output streams as separate things. Is it correct ? or else are they 
 belong to same category?


 -Regards


 [1]-http://vc.mutexlk.com/dashboard.html


 On Thu, Jun 11, 2015 at 10:53 AM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Hi,



 On Thu, Jun 11, 2015 at 8:04 AM, Srinath Perera srin...@wso2.com wrote:

 Need names inside canvas as well. ( need to handle large names).

 What are the children of streams? attributes?

 I was planning to categorize streams there. Please see the updated names
 here[1]. http://vc.mutexlk.com/dashboard.html





 I would rather connect streams and operators, then click on operator and
 pick which attribute/ or attributes you use. If so I would not show
 children against streams.

 On Thu, Jun 11, 2015 at 6:52 AM, Mohamed Fawzan fawz...@gmail.com
 wrote:


 Hi Srinath,

 I have just added the streams names inside the rectangles [1]
 http://vc.mutexlk.com/dashboard.html . Please check and comment on
 it.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Wed, Jun 10, 2015 at 5:55 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:


 On Wed, Jun 10, 2015 at 5:52 PM, Srinath Perera srin...@wso2.com
 wrote:

 We can do it several ways

 1. have small connectors showing against each node ( Stream/
 Operator), which you can click and drag to connector in other node.


 +1, I had the same idea on my mind. I will work on that, Feel free to
 suggest other options as well.



 2. Second option drop into other one as you mention.

 I think #2 run into a problem if you want to connect two streams to
 same operator ( e.g. Join). So I prefer #1. But open for other options.

 --Srinath

 On Wed, Jun 10, 2015 at 5:46 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:

 Are we talking about connecting the streams  operators phase? If so
 what is your preferred method of doing it?

 does the connection made when we drop an operator on another
 operator OR drop an operator on a stream?

 Am I correct ?



 On Wed, Jun 10, 2015 at 5:42 PM, Srinath Perera srin...@wso2.com
 wrote:

 We need to connect stream to operators and operator to other
 operators by connectors?
 Need to click on a connector and drg it to another operator or
 stream. Would that clear?

 On Wed, Jun 10, 2015 at 5:36 PM, Mohamed Fawzan fawz...@gmail.com
 wrote:


 On Wed, Jun 10, 2015 at 5:31 PM, Srinath Perera srin...@wso2.com
 wrote:



 we need name of the stream in the box IMO.


 +1, I will make the changes.



 Also we need a way to draw from the stream to operators and
 between operators next.

 I can't quite understand that, Can you please explain it a bit?





 On Tue, Jun 9, 2015 at 7:24 PM, Mohamed Fawzan fawz...@gmail.com
  wrote:

 Hi Srinath,

 I have added the streams[1]
 http://vc.mutexlk.com/dashboard.html as well. Please check
 and comment.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Tue, Jun 9, 2015 at 9:43 AM, Srinath Perera srin...@wso2.com
  wrote:

 Look good. And overall layout is OK. ( We can do bit of styling
 with UI team later)

 --Srinath

 On Mon, Jun 8, 2015 at 6:06 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi Srinath,

 I have just added the right click delete option [1]
 http://vc.mutexlk.com/dashboard.html . Please check and
 comment on it.

 -Regards

 [1] - http://vc.mutexlk.com/dashboard.html

 On Mon, Jun 8, 2015 at 3:54 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Yeah. Right now working on the stream, i will try the right
 click - delete. Btw what do you think of the complete svg 
 layout? Is it ok?


 On Monday, June 8, 2015, Srinath Perera srin...@wso2.com
 wrote:

 Mohan said I need to move it to red box to delete. Not very
 intuitive IMO.

 Can we support right click and delete?

 On Mon, Jun 8, 2015 at 3:25 PM, Srinath Perera 
 srin...@wso2.com wrote:

 I did not see any streams .. but can move the operators.

 I assume you have not done deletes yet.

 --Srinath

 On Sun, Jun 7, 2015 at 9:02 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi,

 I have updated the SVG layout with icons. Please check [1]
 http://vc.mutexlk.com/dashboard.html

 [1] - http://vc.mutexlk.com/dashboard.html

 On Sun, Jun 7, 2015 at 3:35 PM, Mohamed Fawzan 
 fawz...@gmail.com wrote:

 Hi,

 Since our plan to create layout (as in milestone) failed,
 I have created a new layout[1]
 http://vc.mutexlk.com/svg.html. Which is completely
 made of SVG. I have hosted a demo so that you can check it 
 easily.
 Expecting your feedback to proceed work.

 -Regards

Re: [Dev] Review and merge for ESBJAVA-3766 and ESBJAVA-3733

2015-06-12 Thread Maheeka Jayasuriya
Correction : ESBJAVA-3766 and ESBJAVA-3773

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Fri, Jun 12, 2015 at 4:51 PM, Maheeka Jayasuriya mahe...@wso2.com
wrote:

 Hi,

 $subject please.

 [2] also contains serialization tests.

 [1] https://github.com/wso2/carbon-mediation/pull/214
 [2] https://github.com/wso2/wso2-synapse/pull/228

 Thanks,

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

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


[Dev] Warning log printed when ML server start-up

2015-06-12 Thread Nirmal Fernando
We can see following highlighted warning logs at the server start-up. Any
thoughts on this?

JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home

CARBON_HOME environment variable is set to
/Volumes/wso2/git/product-ml/modules/distribution/target/wso2ml-1.0.0-SNAPSHOT

*[2015-06-12 15:01:57,087]  WARN
{org.apache.axiom.util.stax.dialect.StAXDialectDetector} -  Unable to
determine dialect of the StAX implementation at
bundleresource://16.fwk31199212/*

*[2015-06-12 15:01:57,080]  WARN
{org.apache.axiom.util.stax.dialect.StAXDialectDetector} -  Unable to
determine dialect of the StAX implementation at
bundleresource://16.fwk31199212/*

[2015-06-12 15:01:57,335]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
Carbon...

[2015-06-12 15:01:57,336]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
Mac OS X 10.10.2, x86_64

[2015-06-12 15:01:57,336]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre

[2015-06-12 15:01:57,336]

-- 

Thanks  regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Revamping MB Test Framework to cut down time.

2015-06-12 Thread Akalanka Pagoda Arachchi
Hi Hemika,

Also I think we can use a subset of all the available test cases in the
in-memory mode rather than running them all again in the in-memory mode.
Since in-memory mode does not guarantee the delivery and was suggested to
be used as a developer testing mode rather than a production deployment
mode, this would be fine.

WDYT Ramith?

Thanks,
Akalanka.

On Tue, Jun 9, 2015 at 7:24 AM, Dharshana Warusavitharana 
dharsha...@wso2.com wrote:

 Hi Ramith,

 Yes TestNg provides the facility of running tests in parallel. Considering
 carbon servers the only possible level is in methods level
 you can achieve this by defining parallel property in testNg.xml as follows

 suite name=Test-method Suite parallel=methods thread-count=2 

 Since we are performing configuration level changes such as server startup
 and user deployment in listener level , parallel level test execution on
 Test and Suite level will not be possible.

 But you may be able to execute test methods parallel. But we have to test
 what will happen is depend on and priorities are used in method level.

 As per our experience your test suite must be matured and  100% confident
 before peeping out to this. When it come to test failure it is really hard
 to debug. So what i recommend at the moment is make the tests stable and
 confident before moving in to this.

 Thank you,
 Dharshana.






 On Tue, Jun 9, 2015 at 3:19 PM, Waruna Perera waru...@wso2.com wrote:

 Adding Krishantha

 On Tue, Jun 9, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 generally very nice to do this.
 @Krishantha,
 Can we run integration tests in parallel against a carbon server?

 On Tue, Jun 9, 2015 at 1:34 PM, Hemika Kodikara hem...@wso2.com wrote:

 Hi All,

 When executing the MB integration tests, we noticed that it takes a
 long time to get executed. I have several suggestions that could help us to
 cut down time.

 1. Running tests classes in parallel [1]. Here we have to state how
 many classes to run in parallel.

 2. Disable message receiving loggings in test cases. This can either be
 disabled or be turned into debug logs. If we are changing it to debug logs,
 we would need a way to enable debug logs(Have to look into this).

 3. Reduce the number of messages published in each test case.

 What are your thoughts on the above suggestions ?

 [1] -
 http://howtodoinjava.com/2014/12/02/testng-executing-parallel-tests/

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762




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

 E: ram...@wso2.com
 P: +94 777542851


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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




 --

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

 lean . enterprise . middleware

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




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


[Dev] APIM 1.9.0 nightly build pack - 13-06-2015

2015-06-12 Thread Roshan Wijesena
Hi,

Please find $subject from [1]

[1]http://builder1.us1.wso2.org/~apim/13-06-2015/

Thanks,
Roshan

-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com http://wso2.com/*
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Revamping MB Test Framework to cut down time.

2015-06-12 Thread Ramith Jayasinghe
+1

On Sat, Jun 13, 2015 at 1:59 AM, Akalanka Pagoda Arachchi 
darsha...@wso2.com wrote:

 Hi Hemika,

 Also I think we can use a subset of all the available test cases in the
 in-memory mode rather than running them all again in the in-memory mode.
 Since in-memory mode does not guarantee the delivery and was suggested to
 be used as a developer testing mode rather than a production deployment
 mode, this would be fine.

 WDYT Ramith?

 Thanks,
 Akalanka.

 On Tue, Jun 9, 2015 at 7:24 AM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Hi Ramith,

 Yes TestNg provides the facility of running tests in parallel.
 Considering carbon servers the only possible level is in methods level
 you can achieve this by defining parallel property in testNg.xml as
 follows

 suite name=Test-method Suite parallel=methods thread-count=2 

 Since we are performing configuration level changes such as server
 startup and user deployment in listener level , parallel level test
 execution on Test and Suite level will not be possible.

 But you may be able to execute test methods parallel. But we have to test
 what will happen is depend on and priorities are used in method level.

 As per our experience your test suite must be matured and  100% confident
 before peeping out to this. When it come to test failure it is really hard
 to debug. So what i recommend at the moment is make the tests stable and
 confident before moving in to this.

 Thank you,
 Dharshana.






 On Tue, Jun 9, 2015 at 3:19 PM, Waruna Perera waru...@wso2.com wrote:

 Adding Krishantha

 On Tue, Jun 9, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 generally very nice to do this.
 @Krishantha,
 Can we run integration tests in parallel against a carbon server?

 On Tue, Jun 9, 2015 at 1:34 PM, Hemika Kodikara hem...@wso2.com
 wrote:

 Hi All,

 When executing the MB integration tests, we noticed that it takes a
 long time to get executed. I have several suggestions that could help us 
 to
 cut down time.

 1. Running tests classes in parallel [1]. Here we have to state how
 many classes to run in parallel.

 2. Disable message receiving loggings in test cases. This can either
 be disabled or be turned into debug logs. If we are changing it to debug
 logs, we would need a way to enable debug logs(Have to look into this).

 3. Reduce the number of messages published in each test case.

 What are your thoughts on the above suggestions ?

 [1] -
 http://howtodoinjava.com/2014/12/02/testng-executing-parallel-tests/

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762




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

 E: ram...@wso2.com
 P: +94 777542851


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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




 --

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

 lean . enterprise . middleware

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




 --
 *Darshana Akalanka Pagoda Arachchi,*
 *Software Engineer*
 *078-4721791 078-4721791*




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

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


Re: [Dev] [MDM] Error occurred while issuing the access token

2015-06-12 Thread Prasad Tissera
We recreated issu with carbon-identity 4.4.0. Will update you with the
progress. Thanks.

Sent from my mobile
On Jun 11, 2015 2:14 PM, Prabath Abeysekera praba...@wso2.com wrote:

 Guys,

 I appreciate if we can get some help on this.

 Cheers,
 Prabath

 On Wed, Jun 10, 2015 at 3:02 PM, Dulitha Wijewantha duli...@wso2.com
 wrote:

 ​Hi Dulanja/Johann,
 I am getting the same error as milan when trying refresh an access token
 with refresh token. Below I have included the stacktrace of the error.

 Cheers~​


 14:58:36,538 org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO  -  Error
 while getting an Identity Persistence Store instance.
 org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error when
 storing the access token for consumer key : j9vLqqCBHwHYBJhoI4RK7uhzhwwa
 at
 org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:201)
 at
 org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.invalidateAndCreateNewToken(TokenMgtDAO.java:870)
 at
 org.wso2.carbon.identity.oauth2.token.handlers.grant.RefreshGrantHandler.issue(RefreshGrantHandler.java:210)
 at
 org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:187)
 at
 org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:176)
 at
 org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:234)
 at
 org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:108)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
 at
 org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
 at
 org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
 at
 org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
 at
 org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
 at
 org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
 at
 org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.invoke(WebappAuthenticatorFrameworkValve.java:39)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
 at
 

Re: [Dev] carbon-store-2.1.0 released to staging

2015-06-12 Thread Sameera Medagammaddegedara
Hi GREG team,

Could you please verify the product-greg build with the following repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2carbonstore-045/
http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2carbonstore-045%2Fsa=Dsntz=1usg=AFQjCNFk_sRdHSg8TJM6aZhiDhSXxy7S6w

Thank You,
Sameera

On Fri, Jun 12, 2015 at 2:08 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi Jayanga,

 The carbon-store-2.1.0 component has been released to staging.Could you
 please provide assistance in closing and releasing the said repo.

 Thank You,
 Sameera

 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




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


[Dev] Review and merge for ESBJAVA-3766 and ESBJAVA-3733

2015-06-12 Thread Maheeka Jayasuriya
Hi,

$subject please.

[2] also contains serialization tests.

[1] https://github.com/wso2/carbon-mediation/pull/214
[2] https://github.com/wso2/wso2-synapse/pull/228

Thanks,

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][ESB] Use of REST_URL_POSTFIX

2015-06-12 Thread Chamila De Alwis
Hi Malaka,

Thanks for response! Does this property only work for REST endpoints? I
know it's named REST_URL_POSTFIX, however if I want to append some params
to a SOAP endpoint do I have another option?


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Wed, Jun 10, 2015 at 9:58 PM, Malaka Silva mal...@wso2.com wrote:

 Can you try adding following to the endpoint and check

 format=rest

 eg:-
 send
endpoint
   address uri=
 http://localhost:9000/services/SimpleStockQuoteService; format=rest/
 address
/endpoint
 /send

 On Thu, Jun 11, 2015 at 1:18 AM, Chamila De Alwis chami...@wso2.com
 wrote:

 Ping! :)


 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Jun 8, 2015 at 4:14 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Update:

 I created a simple API and used the Call mediator to call the endpoint
 and appending was successful for both POST and GET. The issue is when this
 is used in a Proxy definition.

 API
 
 api xmlns=http://ws.apache.org/ns/synapse; name=Test01
 context=/test
resource methods=POST GET outSequence=main faultSequence=fault
   inSequence
  property name=REST_URL_POSTFIX value=chamila scope=axis2
 type=STRING/property
  log level=full/log
  call
 endpoint
address uri=
 http://localhost:9000/services/SimpleStockQuoteService;/address
 /endpoint
  /call
   /inSequence
/resource
 /api



 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Jun 8, 2015 at 2:19 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi,

 I'm trying to append a set of query parameters to an endpoint. For this
 I'm using the REST_URL_POSTFIX property and setting a value to it.  The
 value is successfully appended to the endpoint address when the HTTP method
 is GET, however, for POST this does not work. Have I missed any detail?

 (Using the ESB sample 1 Synapse config)

 Synapse Config
 =
 sequence xmlns=http://ws.apache.org/ns/synapse; name=main
in
   property name=HTTP_METHOD value=POST scope=axis2
 type=STRING/property
 *  property name=REST_URL_POSTFIX value=/chamila scope=axis2
 type=STRING/property*
   filter xmlns:ns=http://org.apache.synapse/xsd;
 source=get-property('To') regex=.*/StockQuote.*
  then
 send
endpoint
   address uri=
 http://localhost:9000/services/SimpleStockQuoteService;/address
/endpoint
 /send
  /then
  else/else
   /filter
/in
out
   send/send
/out
 /sequence


 Wirelog when HTTP method is *GET*
 =
 [2015-06-08 14:15:54,118] DEBUG - wire  POST /services/StockQuote
 HTTP/1.1[\r][\n]
 [2015-06-08 14:15:54,119] DEBUG - wire  Content-Type: text/xml;
 charset=UTF-8[\r][\n]
 [2015-06-08 14:15:54,119] DEBUG - wire  SOAPAction:
 urn:getQuote[\r][\n]
 [2015-06-08 14:15:54,120] DEBUG - wire  User-Agent: Axis2[\r][\n]
 [2015-06-08 14:15:54,120] DEBUG - wire  Host: localhost:8280[\r][\n]
 [2015-06-08 14:15:54,120] DEBUG - wire  Transfer-Encoding:
 chunked[\r][\n]
 [2015-06-08 14:15:54,120] DEBUG - wire  [\r][\n]
 [2015-06-08 14:15:54,121] DEBUG - wire  1d6[\r][\n]
 [2015-06-08 14:15:54,122] DEBUG - wire  ?xml version=1.0
 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header xmlns:wsa=
 http://www.w3.org/2005/08/addressing;wsa:MessageIDurn:uuid:5060be98-5fbf-4985-a05b-1e1dd3727d91/wsa:MessageIDwsa:Actionurn:getQuote/wsa:Action/soapenv:Headersoapenv:Bodym0:getQuote
 xmlns:m0=http://services.samples
 m0:requestm0:symbolIBM/m0:symbol/m0:request/m0:getQuote/soapenv:Body/soapenv:Envelope[\r][\n]
 [2015-06-08 14:15:54,122] DEBUG - wire  0[\r][\n]
 [2015-06-08 14:15:54,122] DEBUG - wire  [\r][\n]
 *[2015-06-08 14:15:54,129] DEBUG - wire  GET
 /services/SimpleStockQuoteService/chamila HTTP/1.1[\r][\n]*
 [2015-06-08 14:15:54,132] DEBUG - wire  Content-Type: text/xml;
 charset=UTF-8[\r][\n]
 [2015-06-08 14:15:54,132] DEBUG - wire  SOAPAction:
 urn:getQuote[\r][\n]
 [2015-06-08 14:15:54,132] DEBUG - wire  Host: localhost:9000[\r][\n]
 [2015-06-08 14:15:54,133] DEBUG - wire  Connection:
 Keep-Alive[\r][\n]
 [2015-06-08 14:15:54,133] DEBUG - wire  User-Agent:
 Synapse-HttpComponents-NIO[\r][\n]
 [2015-06-08 14:15:54,133] DEBUG - wire  [\r][\n]




 Wirelog when HTTP method is *POST*
 ==
 [2015-06-08 14:14:52,682] DEBUG - wire  POST /services/StockQuote
 HTTP/1.1[\r][\n]
 [2015-06-08 14:14:52,683] DEBUG - wire  Content-Type: text/xml;
 charset=UTF-8[\r][\n]
 [2015-06-08 14:14:52,683] DEBUG - wire  

Re: [Dev] Puppet setup script showing Error: Could not request certificate

2015-06-12 Thread Chamila De Alwis
Hi Rajeevan,

While you're rechecking the configs, please check the autosign.conf in the
Puppet master[1], remove old SSL certificate if this is an old Puppet agent
[2]. Furthermore, this [3] seems to be on the same error flow as yours, so
check if the time is synced between the Master and the Agent. I've
experienced some issues in the past related to the out of sync time between
the Master and the Agent.

[1] -
https://docs.puppetlabs.com/puppet/latest/reference/config_file_autosign.html
[2] - https://docs.puppetlabs.com/pe/latest/agent_cert_regen.html
[3] -
http://serverfault.com/questions/655090/new-server-unable-to-fetch-configuration-from-puppetmaster-due-to-some-ssl-error



Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Fri, Jun 12, 2015 at 2:01 AM, Aiyadurai Rajeevan rajeev...@wso2.com
wrote:

 Hi Sajith/Pubudu,

 Thanks for your inputs, Will check this two and keep you posted.

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Jun 11, 2015 at 7:14 PM, Pubudu Gunatilaka pubu...@wso2.com
 wrote:

 Hi Aiyadurai,

 Check whether puppet master and agent have configurations according to
 [1].

 [1] - http://sajithblogs.blogspot.com/2014/12/puppet-configs.html

 Thank you!

 On Thu, Jun 11, 2015 at 6:31 PM, Sajith Abeywardhana saji...@wso2.com
 wrote:

 Hi Rajeewan,

 Did you inspect tcp dump? It seems like SSL handshake fail when
 requesting a certificate.

 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com

 On Thu, Jun 11, 2015 at 3:35 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Hi All,

 I have been working on integrating Appfactory developer setup puppet
 script for Mac, When I run the the setup script i got below exception. Your
 expertise would be much appreciated to resolve this issue.

 ###
 ### Starting AppFactory Developer Setup ###
 ###

 Removing previous agent certificates...

 Setting username and password for puppet agent...
 Enter username (default username is afpuppet and press enter to
 continue with the default):
 Enter password (default password is afpuppet and press enter to
 continue with the default):
 Installing mkpasswd...
 sudo: apt-get: command not found
 # Starting mysql setup 
 /Library/Ruby/Site/puppet/defaults.rb:214: warning: Insecure world
 writable dir /usr/local/bin in PATH, mode 040777
 tee: setup-logs/puppet2015-06-11.15:26:32.log: No such file or directory
 /Library/Ruby/Site/puppet/defaults.rb:214: warning: Insecure world
 writable dir /usr/local/bin in PATH, mode 040777
 Warning: Setting templatedir is deprecated. See
 http://links.puppetlabs.com/env-settings-deprecations
(at /Library/Ruby/Site/puppet/settings.rb:1139:in
 `issue_deprecation_warning')
 Info: Creating a new SSL key for 7j4755-mysql
 Info: Caching certificate for ca
 Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml
 Info: Creating a new SSL certificate request for 7j4755-mysql
 Info: Certificate Request fingerprint (SHA256):
 A5:91:3E:BB:B1:39:4C:29:EE:99:39:E4:3D:83:57:1E:48:0D:C6:45:20:58:16:95:88:5E:70:D1:37:E3:30:B4
 Info: Caching certificate for 7j4755-mysql
 Error: Could not request certificate: SSL_connect returned=1 errno=0
 state=SSLv3 read server certificate B: certificate verify failed: [self
 signed certificate in certificate chain for /CN=Puppet CA generated on
 puppet.appfactory.private.wso2.com]

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 ___
 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




 --

 *Pubudu Gunatilaka*
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 77 4078049



 ___
 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] WSO2 ML 1.0.0 Beta-1 Released

2015-06-12 Thread CD Athuraliya
WSO2 ML 1.0.0 Beta-1 Released!

WSO2 ML team is pleased to announce the Beta-1 release of WSO2 ML 1.0.0.
The distribution is available at [1]. This release includes following bug
fixes, improvements.

Bug

   - [ML-8 https://wso2.org/jira/browse/ML-8] - [UI] Make dataset
   versions non-clickable
   - [ML-9 https://wso2.org/jira/browse/ML-9] - [UI] Step 1 of an
   Analysis generates graphs only for first 10 features
   - [ML-21 https://wso2.org/jira/browse/ML-21] - Create analysis fails
   immediately after deletion of same name
   - [ML-22 https://wso2.org/jira/browse/ML-22] - Model building fails
   when column headers of CSV are Quoted
   - [ML-28 https://wso2.org/jira/browse/ML-28] - Make Title in Scatter
   Plot (Exploration) Prominant
   - [ML-31 https://wso2.org/jira/browse/ML-31] - Exploration UI needs
   improvements
   - [ML-44 https://wso2.org/jira/browse/ML-44] - [UI] Changing feature
   type doesn't change the graph type
   - [ML-53 https://wso2.org/jira/browse/ML-53] - [PredictedVsActual
   Graph] Mix up features of different projects
   - [ML-54 https://wso2.org/jira/browse/ML-54] - Project name should be
   validated for global uniqueness within a tenant
   - [ML-55 https://wso2.org/jira/browse/ML-55] - Remove all unused JAG
   files etc. from ML Jaggery App
   - [ML-62 https://wso2.org/jira/browse/ML-62] - [Server Startup]
   logging of the ML app url dependency is confusing
   - [ML-63 https://wso2.org/jira/browse/ML-63] - Dataset explore page
   show error when column headers of CSV quoted
   - [ML-64 https://wso2.org/jira/browse/ML-64] - Number format exception
   when trying to build model
   - [ML-65 https://wso2.org/jira/browse/ML-65] - [UI] Errors in input
   validation for model prediction
   - [ML-66 https://wso2.org/jira/browse/ML-66] - Model building fails
   when one or more categorial features are not included
   - [ML-67 https://wso2.org/jira/browse/ML-67] - Summary stats charts
   are not updated with type selection
   - [ML-70 https://wso2.org/jira/browse/ML-70] - [Windows] Dataset
   upload failed

Improvement

   - [ML-24 https://wso2.org/jira/browse/ML-24] - Implement automated
   back-end tests
   - [ML-40 https://wso2.org/jira/browse/ML-40] - Suggest an appropriate
   value for the number of classes in a Decision tree etc. algorithms
   - [ML-47 https://wso2.org/jira/browse/ML-47] - Pagination support to
   ML model listing page
   - [ML-56 https://wso2.org/jira/browse/ML-56] - Support logistic
   regression with L-BFGS
   - [ML-57 https://wso2.org/jira/browse/ML-57] - Moving common
   javascript code to one place
   - [ML-68 https://wso2.org/jira/browse/ML-68] - [Spark Logs] Move spark
   logs to spark.log file and skip wso2carbon.log
   - [ML-69 https://wso2.org/jira/browse/ML-69] - [UI] Delete
   confirmations
   - [ML-71 https://wso2.org/jira/browse/ML-71] - [UI] Improvements in
   Model Comparison UI
   - [ML-72 https://wso2.org/jira/browse/ML-72] - Upload data points for
   prediction using a file
   - [ML-73 https://wso2.org/jira/browse/ML-73] - [UI] Disable Model
   Summary page for clustering algorithms
   - [ML-74 https://wso2.org/jira/browse/ML-74] - Downloaded model should
   have the same name as model name

Task

   - [ML-59 https://wso2.org/jira/browse/ML-59] - Fix critical issues
   reported by Sonar
   - [ML-60 https://wso2.org/jira/browse/ML-60] - Integrate carbon
   metrics to ML
   - [ML-61 https://wso2.org/jira/browse/ML-61] - Remove unused bam
   server url element from machine-learner.xml



The documentation for ML 1.0.0 Beta-1 can be found at [2]. Please report
any issues you may find in our JIRA [3].

[1] https://github.com/wso2/product-ml/releases/tag/1.0.0-beta1
[2] https://docs.wso2.com/display/ML100/WSO2+Machine+Learner+Documentation
[3] https://wso2.org/jira/browse/ML

- WSO2 ML Team -

-- 
*CD Athuraliya*
Software Engineer
WSO2, Inc.
lean . enterprise . middleware
Mobile: +94 716288847 94716288847
LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter
https://twitter.com/cdathuraliya | Blog http://cdathuraliya.tumblr.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF][Jaggery] Error while calling java method from jaggery

2015-06-12 Thread Mahesh Chinthaka
Hi danushka,

Thanks for the info.
I did a normal java call, not a osgi service call.

This has happened because jar was not it the server repository location.
bundle was not copied to repository/components/dropins folder. Once I
copied it, it worked.

On Fri, Jun 12, 2015 at 2:29 PM, danush...@wso2.com wrote:

  Hi Mahesh
 When we register an osgi service to a bundle, Any component can retrieve
 it. Usually we do it in Service Component where we write the scr
 references. And we keep reference to an object of the service and we use
 only inside the given component. If we need it in another component we
 retrieve same from there too. That's how its done in java components. But
 when it comes to a web application (or jiggery application) since they are
 not running in osgi framework they cannot refer to the osgi services in the
 same manner. So we retrieve it from carbon context.
 We have done this call every where in our application.

 CarbonContext.getThreadlocalCarbonContext().getOSGIService(“service
 name”)

 You have to retrieve the service in the above manner in your code.

 Hope the explanation is clear to you.

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

 *From:* Mahesh Chinthaka mahe...@wso2.com
 *Sent:* ‎Friday‎, ‎June‎ ‎12‎, ‎2015 ‎10‎:‎36‎ ‎AM
 *To:* WSO2 Developers' List dev@wso2.org

 Hi ,

 Im trying to call a java method from a jaggery module.
 We have called same method from java side like follows

 AppFactoryS4ListenersUtil.getTenantRegistryLoader().loadTenantRegistry(tenantId);

 my jaggery code is like follows

 var tenantId=getTenantId();
 var s4util =
 Packages.org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil;
 s4util.getTenantRegistryLoader().loadTenantRegistry(tenantId);

 And Im getting following error


 TID: [0] [AF] [2015-06-12 10:22:05,387] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
  org.mozilla.javascript.EcmaError: TypeError: Cannot call property
 getTenantRegistryLoader in object [JavaPackage
 org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is
 not a function, it is object. (/appmgt/modules/manager/manager.jag#331)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.EcmaError: TypeError: Cannot call property
 getTenantRegistryLoader in object [JavaPackage
 org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is
 not a function, it is object. (/appmgt/modules/manager/manager.jag#331)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
 at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)
 at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 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:379)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
 at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at