Re: [Dev] Mutual SSL work with java 7 and open jdk 6 but not with sun java 6

2014-08-31 Thread Waruna Perera
Hi Janaka,

Can you try running ESB with -Djavax.net.debug=ssl ? So that it will show
more info regarding SSL connection setup.

Thanks,


On Mon, Sep 1, 2014 at 11:46 AM, Jay  wrote:

> Hi Varuna,
>
> I tired with your solution but problem still remain as same. Using SSLv3
> instead of TLS is working fine with direct call but not for connector.  And
> also above mentioned code is a part of BrainTree SDK, not a  connector
> code.
>
> Thnaks.
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Mutual-SSL-work-with-java-7-and-open-jdk-6-but-not-with-sun-java-6-tp102060p102075.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> 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


Re: [Dev] Adding user to a tenant using admin services

2014-08-31 Thread Chamila Adhikarinayake
Hi Shariq,

I debuged the addUser method in
org.wso2.carbon.identity.user.registration.UserRegistrationService class
and found the code snippet that causes the error.

 if (tenantConfig != null && tenantConfig.getSignUpDomain() != "") {
int index =
userName.indexOf(UserCoreConstants.DOMAIN_SEPARATOR);
if (index > 0) {
userName = tenantConfig.getSignUpDomain().toUpperCase()
+ UserCoreConstants.DOMAIN_SEPARATOR + userName.substring(index + 1);
} else {
userName = tenantConfig.getSignUpDomain().toUpperCase()
+ UserCoreConstants.DOMAIN_SEPARATOR + userName;
}
 }

>From this part the username is changed from 'chamila' to 'T2.COM/chamila'
and this causes the 'Invalid Domain Name' error when adding a user. I was
able to create users for tenants (using roles in the registry entry) by
removing this part. Is there any reason for having this part? (any other
places that might fail) or is it ok to remove this?

Thanks,
Chamila.


On Fri, Aug 29, 2014 at 2:48 PM, Chamila Adhikarinayake 
wrote:

> Hi Shariq,
> I modified according to the way you mentioned and was able to create users
> for tenants with default configuration (Internal/identity). But when I
> created the registry entry for tenants as the way you described in the
> architecture thread, I get the following error. My registry entry in
> '/_system/governance/repository/identity/sign-up-config' for domain T2.com
> is
>
> 
>T2.COM
>
>   test
>   false
>
> 
>
> Username passed for this is cham...@t2.com. I created a separate internal
> role 'test' with some permission. I did not do any other configuration in
> the API manager. Can you point out my mistake. I can create users with
> roles by adding following to the identity.xml
>
> 
> 
> subscriber
> false
> 
> 
>
> following is the error log.
>
> org.wso2.carbon.identity.base.IdentityException: Error occurred while
> adding user : T2.COM/chamila
> at
> org.wso2.carbon.identity.user.registration.UserRegistrationService.addUser(UserRegistrationService.java:268)
> at
> org.wso2.carbon.identity.user.registration.UserRegistrationService.addUser(UserRegistrationService.java:162)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
> at
> org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
> at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
> at
> o

Re: [Dev] Please commit CARBON-14929

2014-08-31 Thread Chamil Jeewantha
Hi Sameera,

Can you please commit the [1]

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


On Mon, Sep 1, 2014 at 10:44 AM, Chamil Jeewantha  wrote:

> Hi Geeth,
>
> Supun ran the build & tests successfully in his local environment. Can you
> please commit this patch since he is not available.
>
> Regards,
> Chamil
>
>
> On Mon, Sep 1, 2014 at 10:23 AM, Chamil Jeewantha  wrote:
>
>> Hi Supun,
>>
>> Any update on this?
>>
>>
>>
>> On Fri, Aug 29, 2014 at 3:12 PM, Chamil Jeewantha 
>> wrote:
>>
>>> Hi Supun,
>>>
>>> I have re-attached the patch to the issue. Please proceed.
>>>
>>> Regards,
>>> Chamil
>>>
>>>
>>> On Fri, Aug 29, 2014 at 2:57 PM, Supun Malinga  wrote:
>>>
 Hi Chamil,

 I had a chat with Sameera as well. Let's go ahead with the above
 approach.

 thanks,


 On Fri, Aug 29, 2014 at 2:37 PM, Chamil Jeewantha 
 wrote:

> Hi All,
>
> I'm adding org.wso2.carbon.bootstrap*.jar into patch0009. This jar
> should go into /bin
>
> So I think we can add a bin folder to the patch.zip and copy this jar
> to that folder. Theadd a step in README to copy it manually to
> /bin
>
> WDYT? Is there a better way of doing that?
>
>
> On Fri, Aug 29, 2014 at 1:49 PM, Chamil Jeewantha 
> wrote:
>
>> Hi Supun,
>>
>> org.wso2.carbon.bootstrap*.jar does not go into the plugin directory.
>> it goes to the /bin directory. Do we still need to add it to
>> the patch zip?
>>
>> Regards,
>> Chamil
>>
>>
>> On Fri, Aug 29, 2014 at 12:34 PM, Supun Malinga 
>> wrote:
>>
>>> Hi Chamil,
>>>
>>> As discussed let's add the entries to include the built jar into
>>> patch zip as well.
>>>
>>> thanks,
>>>
>>>
>>> On Fri, Aug 29, 2014 at 12:29 PM, Chamil Jeewantha 
>>> wrote:
>>>
 $subject.

  https://wso2.org/jira/browse/CARBON-14929

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


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> K.D. Chamil Jeewantha
>> Associate Technical Lead
>> WSO2, Inc.;  http://wso2.com
>> http://kdchamil.blogspot.com
>> Mobile: +94716813892
>>
>>
>
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> http://kdchamil.blogspot.com
> Mobile: +94716813892
>
>


 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com 
 mobile: +94 (0)71 56 91 321

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


-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
http://kdchamil.blogspot.com
Mobile: +94716813892
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Mutual SSL work with java 7 and open jdk 6 but not with sun java 6

2014-08-31 Thread Jay
Hi Varuna,

I tired with your solution but problem still remain as same. Using SSLv3
instead of TLS is working fine with direct call but not for connector.  And
also above mentioned code is a part of BrainTree SDK, not a  connector code. 

Thnaks.



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/Mutual-SSL-work-with-java-7-and-open-jdk-6-but-not-with-sun-java-6-tp102060p102075.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Mutual SSL work with java 7 and open jdk 6 but not with sun java 6

2014-08-31 Thread Waruna Perera
Hi,

Can you try to create SSLContext using SSLv3 instead of TLS? I had a
similar problem with mutual SSL and found out that SSLv2 and TLS have
compatibility issue in some forums. SSLv3 worked for me.

Thanks,


On Mon, Sep 1, 2014 at 10:21 AM, Jay  wrote:

> Dear All,
>
> When Braintree connector was tested on ESB with Java SDK 1.6.0_22 all the
> methods threw the following exception trace and failed.
>
> [2014-08-29 16:42:09,415] ERROR - CreateTransaction java.io.IOException:
> subject key, java.lang.NullPointerException
> com.braintreegateway.exceptions.UnexpectedException: java.io.IOException:
> subject key, java.lang.NullPointerException
> at com.braintreegateway.util.Http.getSSLSocketFactory(Http.java:156)
> at com.braintreegateway.util.Http.httpRequest(Http.java:80)
> at com.braintreegateway.util.Http.post(Http.java:60)
> at
> com.braintreegateway.TransactionGateway.sale(TransactionGateway.java:105)
> at
>
> org.wso2.carbon.connector.braintree.CreateTransaction.createTransaction(CreateTransaction.java:401)
> at
>
> org.wso2.carbon.connector.braintree.CreateTransaction.connect(CreateTransaction.java:75)
> at
>
> org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
> at
>
> org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
> at
>
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
>
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
>
> org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:77)
> at
>
> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
> at
>
> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
> at
>
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
>
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
>
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
> at
>
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
>
> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344
> )
> at
>
> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385)
> at
>
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
> at
>
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.security.cert.CertificateParsingException:
> java.io.IOException: subject key, java.lang.NullPointerException
>
> However the methods work perfectly fine when using Java SDK 1.7 and Open
> JDK
> 1.6 (on Linux machines).
>
> It was also observed that the Braintree SDK works fine with direct calls
> when using all Java 6 and 7 even 5.
>
> The following method in the Braintree SDK is where the exception is being
> thrown from.
>
> Class com.braintreegateway.util.Http -
>
> private SSLSocketFactory getSSLSocketFactory() {
> try {
> KeyStore keyStore =
> KeyStore.getInstance(KeyStore.getDefaultType());
> keyStore.load(null);
>
> for (String certificateFilename : certificateFilenames) {
> CertificateFactory cf =
> CertificateFactory.getInstance("X.509");
> InputStream certStream =
> Http.class.getClassLoader().getResourceAsStream(certificateFilename);
>
> Collection coll =
> cf.generateCertificates(certStream); // This is the line which throws the
> Exception
> for (Certificate cert : coll) {
> if (cert instanceof X509Certificate) {
>   X509Certificate x509cert = (X509Certificate) cert;
>   Principal principal = x509cert.getSubjectDN();
>   String subject = principal.getName();
>   keyStore.setCertificateEntry(subject, cert);
> }
> }
> }
>
> KeyManagerFactory kmf =
> KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
> kmf.init(keyStore, null);
> TrustManagerFactory tmf =
> TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
> tmf.init(keyStore);
>
> SSLContext sslContext = SSLContext.getInstance("TLS");
> sslContext.init((KeyManager[]) kmf.getKeyManagers(),
> tmf.getTrustManagers(), SecureRandom.getInstance("SHA1PRNG"));
>
> return sslContext.getSocketFactory();
>   

[Dev] Cross browser test execution - UI tests using sauce labs

2014-08-31 Thread Dimuthu De Lanerolle
I have started seeking the possibility of the $Subject and will update the
progress in due course.

Regards

-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge AS UI test pull request

2014-08-31 Thread Dimuthu De Lanerolle
Reminder !

Regards
Dimuthu


On Thu, Aug 21, 2014 at 8:35 PM, Dimuthu De Lanerolle 
wrote:

> Hi AS Team,
>
> Pls merge the pull request for AS UI Tests :
> https://github.com/wso2-dev/product-as/pull/22
>
> Regards
>
> --
> Dimuthu De Lanerolle
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://wso2.com/
> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>
>


-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OSGI bundle conflict when starting up APIM GIT latest.

2014-08-31 Thread Roshan Wijesena
Hi Ruwan,

As we discussed offline , I have done bit of changes to pull request and
herewith sent it again.

https://github.com/wso2-dev/carbon-apimgt/pull/6

Regards
Roshan


On Thu, Aug 28, 2014 at 10:32 AM, Roshan Wijesena  wrote:

> Hi Ruwan,
>
> Please merge below pull request, this will help to resolve above osgi
> conflict.
>
> https://github.com/wso2-dev/carbon-apimgt/pull/5
>
> Regards
> Roshan
>
>
>
> On Thu, Aug 21, 2014 at 11:35 AM, Roshan Wijesena  wrote:
>
>> Hi Krishantha,
>>
>> We are working on a it. Still could  not find the root cause for this.
>> will update you guys ASAP.
>>
>> Regards
>> Roshan.
>>
>>
>> On Thu, Aug 21, 2014 at 11:31 AM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> Is this startup problem sorted out. We gonna start writing auto tests
>>> for APIM. But this is a blocker at the moment.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Sat, Aug 16, 2014 at 9:17 AM, Aruna Karunarathna 
>>> wrote:
>>>
 Hi Roshan,

 Can you check whether the same imported package version are being
 imported?.
 This looks like a osgi import-export version conflict or resolution
 error.

 Regards,
 Aruna


 On Fri, Aug 15, 2014 at 9:39 PM, Roshan Wijesena 
 wrote:

> Hi Devs,
>
> I am trying to start up APIM GIT build , that i have built recently.
> While doing that, I am getting following OSGI conflicts,
>
> osgi> ss apim
> "Framework is launched."
>
> id State   Bundle
> 161 ACTIVE  org.wso2.carbon.apimgt.api_4.3.0.SNAPSHOT
> 162 INSTALLED   org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT
> 163 INSTALLED   org.wso2.carbon.apimgt.gateway_4.3.0.SNAPSHOT
> 164 ACTIVE
>  org.wso2.carbon.apimgt.handlers.security.stub_4.3.0.SNAPSHOT
> 165 ACTIVE  org.wso2.carbon.apimgt.hostobjects_4.3.0.SNAPSHOT
> 166 ACTIVE  org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT
> 167 ACTIVE  org.wso2.carbon.apimgt.keymgt_4.3.0.SNAPSHOT
> 168 ACTIVE  org.wso2.carbon.apimgt.keymgt.client_4.3.0.SNAPSHOT
> 169 ACTIVE  org.wso2.carbon.apimgt.keymgt.stub_4.3.0.SNAPSHOT
> 170 ACTIVE
>  org.wso2.carbon.apimgt.startup.publisher_4.3.0.SNAPSHOT
> 171 ACTIVE  org.wso2.carbon.apimgt.usage.client_4.3.0.SNAPSHOT
> 172 ACTIVE  org.wso2.carbon.apimgt.usage.publisher_4.3.0.SNAPSHOT
>
> osgi> diag 163
> reference:file:../plugins/org.wso2.carbon.apimgt.gateway_4.3.0.SNAPSHOT.jar
> [163]
>   *Package uses conflict: Import-Package:
> org.wso2.carbon.apimgt.impl; version="0.0.0"*
> *  Package uses conflict: Import-Package:
> org.wso2.carbon.apimgt.impl.utils; version="0.0.0"*
>   Direct constraints which are unresolved:
> Missing optionally imported package javax.activation_1.1.0.
> Missing optionally imported package
> org.apache.http.client_4.1.1.wso2v1.
> Missing optionally imported package
> org.apache.http.conn_4.1.1.wso2v1.
> Missing optionally imported package
> org.apache.http.conn.scheme_4.1.1.wso2v1.
> Missing optionally imported package
> org.apache.http.conn.ssl_4.1.1.wso2v1.
> Missing optionally imported package
> org.apache.http.impl.client_4.1.1.wso2v1.
> Missing optionally imported package
> org.apache.http.impl.conn_4.1.1.wso2v1.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers.common_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers.ext_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers.security_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers.security.keys_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers.security.oauth_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers.security.service_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers.security.thrift_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.handlers.throttling_0.0.0.
> Missing optionally imported package
> org.wso2.carbon.apimgt.gateway.mediators_0.0.0.
>
>
> what's wrong here?
>
> --
>  Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94752126789*
> Email: ros...@wso2.com
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. e

Re: [Dev] Changing port values outside carbon.xml with port offset value

2014-08-31 Thread Nipuni Perera
Hi,

I could reproduce bind exceptions in jira issue [1] (for port 8200) with
dual channel invocation (tested with ESB sample 13) with two ESB servers
started with port offset. Port 8200 is used as the Reply-To address in both
servers and does not update with the port offset. Value for port
"localMemberPort" (defined in axis2.xml and used in cluster setup) is set
by user [2]. Does the port offset value should update ports in
axis2_client.xml (eg: transportReceiver port value) and axis2.xml (eg:
"localMemberPort")?

[1] https://wso2.org/jira/browse/CARBON-13603
[2] https://wso2.org/jira/browse/CARBON-14406

Thanks,
Nipuni


On Fri, Aug 22, 2014 at 11:57 AM, Danushka Fernando 
wrote:

> Is it a real requirement to set carbon port offset to axis2 ports as well?
> Then it will no longer be a carbon offset AFAIU.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Fri, Aug 22, 2014 at 9:04 AM, Nipuni Perera  wrote:
>
>> Hi,
>>
>> I am working on issues[1] and [2]. Does the port offset defined in
>> carbon.xml, should affect to ports in axis2_client.xml and localMemberPort?.
>> Port values defined in carbon.xml inside  tag (eg: LDAPServerPort)
>> get updated with the offset value.
>>
>> CarbonUtils.getPortFromServerConfig("portName")
>>
>> Port values inside axis2_client.xml (eg: transportReceiver port value)
>> and port "localMemberPort" (defined in axis2.xml and used in cluster setup)
>> does not update with the offset value in carbon.xml.
>>
>> [1] https://wso2.org/jira/browse/CARBON-13603
>> [2] https://wso2.org/jira/browse/CARBON-14406
>>
>> Thanks,
>> Nipuni
>> --
>> Nipuni Perera
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> Email: nip...@wso2.com
>> Git hub profile: https://github.com/nipuni
>> Mobile: +94 (71) 5626680
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Mobile: +94 (71) 5626680

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


Re: [Dev] Please commit CARBON-14929

2014-08-31 Thread Chamil Jeewantha
Hi Geeth,

Supun ran the build & tests successfully in his local environment. Can you
please commit this patch since he is not available.

Regards,
Chamil


On Mon, Sep 1, 2014 at 10:23 AM, Chamil Jeewantha  wrote:

> Hi Supun,
>
> Any update on this?
>
>
>
> On Fri, Aug 29, 2014 at 3:12 PM, Chamil Jeewantha  wrote:
>
>> Hi Supun,
>>
>> I have re-attached the patch to the issue. Please proceed.
>>
>> Regards,
>> Chamil
>>
>>
>> On Fri, Aug 29, 2014 at 2:57 PM, Supun Malinga  wrote:
>>
>>> Hi Chamil,
>>>
>>> I had a chat with Sameera as well. Let's go ahead with the above
>>> approach.
>>>
>>> thanks,
>>>
>>>
>>> On Fri, Aug 29, 2014 at 2:37 PM, Chamil Jeewantha 
>>> wrote:
>>>
 Hi All,

 I'm adding org.wso2.carbon.bootstrap*.jar into patch0009. This jar
 should go into /bin

 So I think we can add a bin folder to the patch.zip and copy this jar
 to that folder. Theadd a step in README to copy it manually to
 /bin

 WDYT? Is there a better way of doing that?


 On Fri, Aug 29, 2014 at 1:49 PM, Chamil Jeewantha 
 wrote:

> Hi Supun,
>
> org.wso2.carbon.bootstrap*.jar does not go into the plugin directory.
> it goes to the /bin directory. Do we still need to add it to
> the patch zip?
>
> Regards,
> Chamil
>
>
> On Fri, Aug 29, 2014 at 12:34 PM, Supun Malinga 
> wrote:
>
>> Hi Chamil,
>>
>> As discussed let's add the entries to include the built jar into
>> patch zip as well.
>>
>> thanks,
>>
>>
>> On Fri, Aug 29, 2014 at 12:29 PM, Chamil Jeewantha 
>> wrote:
>>
>>> $subject.
>>>
>>>  https://wso2.org/jira/browse/CARBON-14929
>>>
>>> --
>>> K.D. Chamil Jeewantha
>>> Associate Technical Lead
>>> WSO2, Inc.;  http://wso2.com
>>> http://kdchamil.blogspot.com
>>> Mobile: +94716813892
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> http://kdchamil.blogspot.com
> Mobile: +94716813892
>
>


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


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> K.D. Chamil Jeewantha
>> Associate Technical Lead
>> WSO2, Inc.;  http://wso2.com
>> http://kdchamil.blogspot.com
>> Mobile: +94716813892
>>
>>
>
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> http://kdchamil.blogspot.com
> Mobile: +94716813892
>
>


-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
http://kdchamil.blogspot.com
Mobile: +94716813892
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge pull request #3 for product-bps

2014-08-31 Thread Hasitha Aravinda
Hi Frizan,

We need to fix the following features for NDatasource.

   - org.wso2.carbon.attachment.mgt.server.feature
   - org.wso2.carbon.bpel.server.feature
   - org.wso2.carbon.humantask.server.feature

Also we need to remove old data-source dependencies from BPEL and Humantask
component as well.

Could you send the pull request to carbon-business-process after fixing
above tasks.
Thanks,
Hasitha.


On Sun, Aug 31, 2014 at 10:50 PM, Firzhan Naqash  wrote:

>
> Hi,
>
> Please review and merge the pull request[1], which is a fix for issue[2]
>
>
>
>
> [1] https://github.com/wso2-dev/product-bps/pull/3
> [2] https://wso2.org/jira/browse/BPS-185
>
> Thanks,
>
> Regards,
> Firzhan
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Hasitha Aravinda,
Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile: +94 71 8 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Manula Chathurika Thantriwatte
Congratulations !!!


On Mon, Sep 1, 2014 at 10:22 AM, Tharindu Edirisinghe 
wrote:

> Congratulations Rajith !!!
>
>
> On Mon, Sep 1, 2014 at 10:05 AM, Pubudu Dissanayake 
> wrote:
>
>> Congratulations Rajith
>>
>>
>> On Mon, Sep 1, 2014 at 10:01 AM, Thushara Ranawaka 
>> wrote:
>>
>>> Congrats Rajith Aiya!
>>>
>>>
>>> On Mon, Sep 1, 2014 at 9:44 AM, Praneesha Chandrasiri <
>>> pranee...@wso2.com> wrote:
>>>
 Congrats!!!


 On Mon, Sep 1, 2014 at 9:38 AM, Suhan Dharmasuriya 
 wrote:

> Congrats Rajith!
>
>
> On Mon, Sep 1, 2014 at 9:25 AM, Dumidu Handakumbura 
> wrote:
>
>> Congrats Rajith..
>>
>>
>> On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake > > wrote:
>>
>>> Congrats Rajith!!!
>>>
>>>
>>> On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran <
>>> jenanant...@wso2.com> wrote:
>>>
 congrats Rajith


 On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan <
 abima...@wso2.com> wrote:

> Congrats Rajith!
>
>
> On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> congratulations rajith...!!
>>
>>
>> On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera > > wrote:
>>
>>> Congrats Rajith!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara 
>>> wrote:
>>>
 Congratulations Rajith !!!


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


 On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
 daksh...@wso2.com> wrote:

> Congratulations Rajith...!!!
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
>
> On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera <
> sewwa...@wso2.com> wrote:
>
>> Congratulations Rajith...!!!
>>
>>
>> On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne <
>> is...@wso2.com> wrote:
>>
>>> Congratz Rajith !!
>>>
>>>
>>> On Thursday, August 28, 2014, Gimantha Bandara <
>>> giman...@wso2.com> wrote:
>>>
 Congratz Rajith!


 On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara <
 hars...@wso2.com> wrote:

> Congratz Rajith!
>
>
> On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
> than...@wso2.com> wrote:
>
>> Congratz rajith.!!!
>> On 28 Aug 2014 22:24, "Anjana Fernando" 
>> wrote:
>>
>>>  Hi,
>>>
>>> It's my pleasure to announce Rajith Vitharana as a WSO2
>>> committer. Rajith has done many valuable contributions to 
>>> BAM and the DSS
>>> products. Welcome aboard and keep up the good work! ..
>>>
>>> Cheers,
>>> Anjana.
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Gimantha Bandara
 Software Engineer
 WSO2. Inc : http://wso2.com
 Mobile : +94714961919

>>>

Re: [Dev] Please commit CARBON-14929

2014-08-31 Thread Chamil Jeewantha
Hi Supun,

Any update on this?



On Fri, Aug 29, 2014 at 3:12 PM, Chamil Jeewantha  wrote:

> Hi Supun,
>
> I have re-attached the patch to the issue. Please proceed.
>
> Regards,
> Chamil
>
>
> On Fri, Aug 29, 2014 at 2:57 PM, Supun Malinga  wrote:
>
>> Hi Chamil,
>>
>> I had a chat with Sameera as well. Let's go ahead with the above
>> approach.
>>
>> thanks,
>>
>>
>> On Fri, Aug 29, 2014 at 2:37 PM, Chamil Jeewantha 
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm adding org.wso2.carbon.bootstrap*.jar into patch0009. This jar
>>> should go into /bin
>>>
>>> So I think we can add a bin folder to the patch.zip and copy this jar to
>>> that folder. Theadd a step in README to copy it manually to
>>> /bin
>>>
>>> WDYT? Is there a better way of doing that?
>>>
>>>
>>> On Fri, Aug 29, 2014 at 1:49 PM, Chamil Jeewantha 
>>> wrote:
>>>
 Hi Supun,

 org.wso2.carbon.bootstrap*.jar does not go into the plugin directory.
 it goes to the /bin directory. Do we still need to add it to
 the patch zip?

 Regards,
 Chamil


 On Fri, Aug 29, 2014 at 12:34 PM, Supun Malinga 
 wrote:

> Hi Chamil,
>
> As discussed let's add the entries to include the built jar into patch
> zip as well.
>
> thanks,
>
>
> On Fri, Aug 29, 2014 at 12:29 PM, Chamil Jeewantha 
> wrote:
>
>> $subject.
>>
>>  https://wso2.org/jira/browse/CARBON-14929
>>
>> --
>> K.D. Chamil Jeewantha
>> Associate Technical Lead
>> WSO2, Inc.;  http://wso2.com
>> http://kdchamil.blogspot.com
>> Mobile: +94716813892
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



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


>>>
>>>
>>> --
>>> K.D. Chamil Jeewantha
>>> Associate Technical Lead
>>> WSO2, Inc.;  http://wso2.com
>>> http://kdchamil.blogspot.com
>>> Mobile: +94716813892
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> http://kdchamil.blogspot.com
> Mobile: +94716813892
>
>


-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
http://kdchamil.blogspot.com
Mobile: +94716813892
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Tharindu Edirisinghe
Congratulations Rajith !!!


On Mon, Sep 1, 2014 at 10:05 AM, Pubudu Dissanayake 
wrote:

> Congratulations Rajith
>
>
> On Mon, Sep 1, 2014 at 10:01 AM, Thushara Ranawaka 
> wrote:
>
>> Congrats Rajith Aiya!
>>
>>
>> On Mon, Sep 1, 2014 at 9:44 AM, Praneesha Chandrasiri > > wrote:
>>
>>> Congrats!!!
>>>
>>>
>>> On Mon, Sep 1, 2014 at 9:38 AM, Suhan Dharmasuriya 
>>> wrote:
>>>
 Congrats Rajith!


 On Mon, Sep 1, 2014 at 9:25 AM, Dumidu Handakumbura 
 wrote:

> Congrats Rajith..
>
>
> On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake 
> wrote:
>
>> Congrats Rajith!!!
>>
>>
>> On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>> congrats Rajith
>>>
>>>
>>> On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan <
>>> abima...@wso2.com> wrote:
>>>
 Congrats Rajith!


 On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> congratulations rajith...!!
>
>
> On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera 
> wrote:
>
>> Congrats Rajith!
>>
>>
>> On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara 
>> wrote:
>>
>>> Congratulations Rajith !!!
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>>
>>> On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
>>> daksh...@wso2.com> wrote:
>>>
 Congratulations Rajith...!!!

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


 On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera <
 sewwa...@wso2.com> wrote:

> Congratulations Rajith...!!!
>
>
> On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne <
> is...@wso2.com> wrote:
>
>> Congratz Rajith !!
>>
>>
>> On Thursday, August 28, 2014, Gimantha Bandara <
>> giman...@wso2.com> wrote:
>>
>>> Congratz Rajith!
>>>
>>>
>>> On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara <
>>> hars...@wso2.com> wrote:
>>>
 Congratz Rajith!


 On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
 than...@wso2.com> wrote:

> Congratz rajith.!!!
> On 28 Aug 2014 22:24, "Anjana Fernando" 
> wrote:
>
>>  Hi,
>>
>> It's my pleasure to announce Rajith Vitharana as a WSO2
>> committer. Rajith has done many valuable contributions to 
>> BAM and the DSS
>> products. Welcome aboard and keep up the good work! ..
>>
>> Cheers,
>> Anjana.
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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


>>>
>>>
>>> --
>>> Gimantha Bandara
>>> Software Engineer
>>> WSO2. Inc : http://wso2.com
>>> Mobile : +94714961919
>>>
>>
>>
>> --
>> Isura Dilhara Karunaratne
>> Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>>
>> ___
>> Dev ma

[Dev] Mutual SSL work with java 7 and open jdk 6 but not with sun java 6

2014-08-31 Thread Jay
Dear All,

When Braintree connector was tested on ESB with Java SDK 1.6.0_22 all the
methods threw the following exception trace and failed.

[2014-08-29 16:42:09,415] ERROR - CreateTransaction java.io.IOException:
subject key, java.lang.NullPointerException
com.braintreegateway.exceptions.UnexpectedException: java.io.IOException:
subject key, java.lang.NullPointerException
at com.braintreegateway.util.Http.getSSLSocketFactory(Http.java:156)
at com.braintreegateway.util.Http.httpRequest(Http.java:80)
at com.braintreegateway.util.Http.post(Http.java:60)
at com.braintreegateway.TransactionGateway.sale(TransactionGateway.java:105)
at
org.wso2.carbon.connector.braintree.CreateTransaction.createTransaction(CreateTransaction.java:401)
at
org.wso2.carbon.connector.braintree.CreateTransaction.connect(CreateTransaction.java:75)
at
org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
at
org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:77)
at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344
)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.security.cert.CertificateParsingException:
java.io.IOException: subject key, java.lang.NullPointerException

However the methods work perfectly fine when using Java SDK 1.7 and Open JDK
1.6 (on Linux machines).

It was also observed that the Braintree SDK works fine with direct calls
when using all Java 6 and 7 even 5.

The following method in the Braintree SDK is where the exception is being
thrown from.

Class com.braintreegateway.util.Http - 

private SSLSocketFactory getSSLSocketFactory() {
try {
KeyStore keyStore =
KeyStore.getInstance(KeyStore.getDefaultType());
keyStore.load(null);

for (String certificateFilename : certificateFilenames) {
CertificateFactory cf =
CertificateFactory.getInstance("X.509");
InputStream certStream =
Http.class.getClassLoader().getResourceAsStream(certificateFilename);

Collection coll =
cf.generateCertificates(certStream); // This is the line which throws the
Exception
for (Certificate cert : coll) {
if (cert instanceof X509Certificate) {
  X509Certificate x509cert = (X509Certificate) cert;
  Principal principal = x509cert.getSubjectDN();
  String subject = principal.getName();
  keyStore.setCertificateEntry(subject, cert);
}
}
}

KeyManagerFactory kmf =
KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
kmf.init(keyStore, null);
TrustManagerFactory tmf =
TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
tmf.init(keyStore);

SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init((KeyManager[]) kmf.getKeyManagers(),
tmf.getTrustManagers(), SecureRandom.getInstance("SHA1PRNG"));

return sslContext.getSocketFactory();
} catch (Exception e) {
throw new UnexpectedException(e.getMessage(), e);
}
}

The following approaches were tried to resolve the issue which apparently
proved useless.
1.  Imported the Braintree API X509 certificate into wso2carbon.jks and to
client-truststore.jks.
2.  Imported the same into cacerts (jre\lib\security\cacerts)file when using
Java SDK 1.6.
3.  Tried installing OpenJDK 1.6 and ran the ESB using it. The connector
worked fine.
4.  Tried extracting the 

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Pubudu Dissanayake
Congratulations Rajith


On Mon, Sep 1, 2014 at 10:01 AM, Thushara Ranawaka 
wrote:

> Congrats Rajith Aiya!
>
>
> On Mon, Sep 1, 2014 at 9:44 AM, Praneesha Chandrasiri 
> wrote:
>
>> Congrats!!!
>>
>>
>> On Mon, Sep 1, 2014 at 9:38 AM, Suhan Dharmasuriya 
>> wrote:
>>
>>> Congrats Rajith!
>>>
>>>
>>> On Mon, Sep 1, 2014 at 9:25 AM, Dumidu Handakumbura 
>>> wrote:
>>>
 Congrats Rajith..


 On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake 
 wrote:

> Congrats Rajith!!!
>
>
> On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran <
> jenanant...@wso2.com> wrote:
>
>> congrats Rajith
>>
>>
>> On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan <
>> abima...@wso2.com> wrote:
>>
>>> Congrats Rajith!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 congratulations rajith...!!


 On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera 
 wrote:

> Congrats Rajith!
>
>
> On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara 
> wrote:
>
>> Congratulations Rajith !!!
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>>
>> On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
>> daksh...@wso2.com> wrote:
>>
>>> Congratulations Rajith...!!!
>>>
>>> *Dakshika Jayathilaka*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>>
>>> On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera <
>>> sewwa...@wso2.com> wrote:
>>>
 Congratulations Rajith...!!!


 On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne <
 is...@wso2.com> wrote:

> Congratz Rajith !!
>
>
> On Thursday, August 28, 2014, Gimantha Bandara <
> giman...@wso2.com> wrote:
>
>> Congratz Rajith!
>>
>>
>> On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara <
>> hars...@wso2.com> wrote:
>>
>>> Congratz Rajith!
>>>
>>>
>>> On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
>>> than...@wso2.com> wrote:
>>>
 Congratz rajith.!!!
 On 28 Aug 2014 22:24, "Anjana Fernando" 
 wrote:

>  Hi,
>
> It's my pleasure to announce Rajith Vitharana as a WSO2
> committer. Rajith has done many valuable contributions to BAM 
> and the DSS
> products. Welcome aboard and keep up the good work! ..
>
> Cheers,
> Anjana.
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94775505618
>>> Blog:harshcreationz.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Gimantha Bandara
>> Software Engineer
>> WSO2. Inc : http://wso2.com
>> Mobile : +94714961919
>>
>
>
> --
> Isura Dilhara Karunaratne
> Software Engineer
>
> Mob +94 772 254 810
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sewwandi Perera
 Software Engineer

 WSO2 Inc.; htt

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Thushara Ranawaka
Congrats Rajith Aiya!


On Mon, Sep 1, 2014 at 9:44 AM, Praneesha Chandrasiri 
wrote:

> Congrats!!!
>
>
> On Mon, Sep 1, 2014 at 9:38 AM, Suhan Dharmasuriya 
> wrote:
>
>> Congrats Rajith!
>>
>>
>> On Mon, Sep 1, 2014 at 9:25 AM, Dumidu Handakumbura 
>> wrote:
>>
>>> Congrats Rajith..
>>>
>>>
>>> On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake 
>>> wrote:
>>>
 Congrats Rajith!!!


 On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran <
 jenanant...@wso2.com> wrote:

> congrats Rajith
>
>
> On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan <
> abima...@wso2.com> wrote:
>
>> Congrats Rajith!
>>
>>
>> On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> congratulations rajith...!!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera 
>>> wrote:
>>>
 Congrats Rajith!


 On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara 
 wrote:

> Congratulations Rajith !!!
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
> daksh...@wso2.com> wrote:
>
>> Congratulations Rajith...!!!
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>>
>> On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera <
>> sewwa...@wso2.com> wrote:
>>
>>> Congratulations Rajith...!!!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne <
>>> is...@wso2.com> wrote:
>>>
 Congratz Rajith !!


 On Thursday, August 28, 2014, Gimantha Bandara <
 giman...@wso2.com> wrote:

> Congratz Rajith!
>
>
> On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara <
> hars...@wso2.com> wrote:
>
>> Congratz Rajith!
>>
>>
>> On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
>> than...@wso2.com> wrote:
>>
>>> Congratz rajith.!!!
>>> On 28 Aug 2014 22:24, "Anjana Fernando" 
>>> wrote:
>>>
  Hi,

 It's my pleasure to announce Rajith Vitharana as a WSO2
 committer. Rajith has done many valuable contributions to BAM 
 and the DSS
 products. Welcome aboard and keep up the good work! ..

 Cheers,
 Anjana.
 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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


>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>


 --
 Isura Dilhara Karunaratne
 Software Engineer

 Mob +94 772 254 810



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


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

[Dev] BrainTree Connector Issue with JDK 1.6

2014-08-31 Thread Jay
Hi,

When Braintree connector was tested on ESB with Java SDK 1.6.0_22 all the
methods threw the following exception trace and failed.

[2014-08-29 16:42:09,415] ERROR - CreateTransaction java.io.IOException:
subject key, java.lang.NullPointerException
com.braintreegateway.exceptions.UnexpectedException: java.io.IOException:
subject key, java.lang.NullPointerException
at com.braintreegateway.util.Http.getSSLSocketFactory(Http.java:156)
at com.braintreegateway.util.Http.httpRequest(Http.java:80)
at com.braintreegateway.util.Http.post(Http.java:60)
at com.braintreegateway.TransactionGateway.sale(TransactionGateway.java:105)
at
org.wso2.carbon.connector.braintree.CreateTransaction.createTransaction(CreateTransaction.java:401)
at
org.wso2.carbon.connector.braintree.CreateTransaction.connect(CreateTransaction.java:75)
at
org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
at
org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:77)
at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344
)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.security.cert.CertificateParsingException:
java.io.IOException: subject key, java.lang.NullPointerException

However the methods work perfectly fine when using Java SDK 1.7 and Open JDK
1.6 (on Linux machines).

It was also observed that the Braintree SDK works fine with direct calls
when using all Java 6 and 7.

The following method in the Braintree SDK is where the exception is being
thrown from.

Class com.braintreegateway.util.Http - 

private SSLSocketFactory getSSLSocketFactory() {
try {
KeyStore keyStore =
KeyStore.getInstance(KeyStore.getDefaultType());
keyStore.load(null);

for (String certificateFilename : certificateFilenames) {
CertificateFactory cf =
CertificateFactory.getInstance("X.509");
InputStream certStream =
Http.class.getClassLoader().getResourceAsStream(certificateFilename);

Collection coll =
cf.generateCertificates(certStream); // This is the line which throws the
Exception
for (Certificate cert : coll) {
if (cert instanceof X509Certificate) {
  X509Certificate x509cert = (X509Certificate) cert;
  Principal principal = x509cert.getSubjectDN();
  String subject = principal.getName();
  keyStore.setCertificateEntry(subject, cert);
}
}
}

KeyManagerFactory kmf =
KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
kmf.init(keyStore, null);
TrustManagerFactory tmf =
TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
tmf.init(keyStore);

SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init((KeyManager[]) kmf.getKeyManagers(),
tmf.getTrustManagers(), SecureRandom.getInstance("SHA1PRNG"));

return sslContext.getSocketFactory();
} catch (Exception e) {
throw new UnexpectedException(e.getMessage(), e);
}
}

The following approaches were tried to resolve the issue which apparently
proved useless.
1.  Imported the Braintree API X509 certificate into wso2carbon.jks and to
client-truststore.jks.
2.  Imported the same into cacerts (jre\lib\security\cacerts)file when using
Java SDK 1.6.
3.  Tried installing OpenJDK 1.6 and ran the ESB using it. The connector
worked fine.
4.  Tried extracting the downloaded JC

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Praneesha Chandrasiri
Congrats!!!


On Mon, Sep 1, 2014 at 9:38 AM, Suhan Dharmasuriya  wrote:

> Congrats Rajith!
>
>
> On Mon, Sep 1, 2014 at 9:25 AM, Dumidu Handakumbura 
> wrote:
>
>> Congrats Rajith..
>>
>>
>> On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake 
>> wrote:
>>
>>> Congrats Rajith!!!
>>>
>>>
>>> On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran <
>>> jenanant...@wso2.com> wrote:
>>>
 congrats Rajith


 On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan >>> > wrote:

> Congrats Rajith!
>
>
> On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> congratulations rajith...!!
>>
>>
>> On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera 
>> wrote:
>>
>>> Congrats Rajith!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara 
>>> wrote:
>>>
 Congratulations Rajith !!!


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


 On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
 daksh...@wso2.com> wrote:

> Congratulations Rajith...!!!
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
>
> On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera <
> sewwa...@wso2.com> wrote:
>
>> Congratulations Rajith...!!!
>>
>>
>> On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne <
>> is...@wso2.com> wrote:
>>
>>> Congratz Rajith !!
>>>
>>>
>>> On Thursday, August 28, 2014, Gimantha Bandara <
>>> giman...@wso2.com> wrote:
>>>
 Congratz Rajith!


 On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara <
 hars...@wso2.com> wrote:

> Congratz Rajith!
>
>
> On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
> than...@wso2.com> wrote:
>
>> Congratz rajith.!!!
>> On 28 Aug 2014 22:24, "Anjana Fernando" 
>> wrote:
>>
>>>  Hi,
>>>
>>> It's my pleasure to announce Rajith Vitharana as a WSO2
>>> committer. Rajith has done many valuable contributions to BAM 
>>> and the DSS
>>> products. Welcome aboard and keep up the good work! ..
>>>
>>> Cheers,
>>> Anjana.
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Gimantha Bandara
 Software Engineer
 WSO2. Inc : http://wso2.com
 Mobile : +94714961919

>>>
>>>
>>> --
>>> Isura Dilhara Karunaratne
>>> Software Engineer
>>>
>>> Mob +94 772 254 810
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sewwandi Perera
>> Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

 ___
 Dev mailing list
 Dev@w

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Suhan Dharmasuriya
Congrats Rajith!


On Mon, Sep 1, 2014 at 9:25 AM, Dumidu Handakumbura  wrote:

> Congrats Rajith..
>
>
> On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake 
> wrote:
>
>> Congrats Rajith!!!
>>
>>
>> On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>> congrats Rajith
>>>
>>>
>>> On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan 
>>> wrote:
>>>
 Congrats Rajith!


 On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> congratulations rajith...!!
>
>
> On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera 
> wrote:
>
>> Congrats Rajith!
>>
>>
>> On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara  wrote:
>>
>>> Congratulations Rajith !!!
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>>
>>> On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
>>> daksh...@wso2.com> wrote:
>>>
 Congratulations Rajith...!!!

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


 On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera >>> > wrote:

> Congratulations Rajith...!!!
>
>
> On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne  > wrote:
>
>> Congratz Rajith !!
>>
>>
>> On Thursday, August 28, 2014, Gimantha Bandara 
>> wrote:
>>
>>> Congratz Rajith!
>>>
>>>
>>> On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara <
>>> hars...@wso2.com> wrote:
>>>
 Congratz Rajith!


 On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
 than...@wso2.com> wrote:

> Congratz rajith.!!!
> On 28 Aug 2014 22:24, "Anjana Fernando" 
> wrote:
>
>>  Hi,
>>
>> It's my pleasure to announce Rajith Vitharana as a WSO2
>> committer. Rajith has done many valuable contributions to BAM 
>> and the DSS
>> products. Welcome aboard and keep up the good work! ..
>>
>> Cheers,
>> Anjana.
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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


>>>
>>>
>>> --
>>> Gimantha Bandara
>>> Software Engineer
>>> WSO2. Inc : http://wso2.com
>>> Mobile : +94714961919
>>>
>>
>>
>> --
>> Isura Dilhara Karunaratne
>> Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sewwandi Perera
> Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>>
>> ___
>> Dev mailing lis

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Aruna Karunarathna
Congratzz Rajith...!!!


On Mon, Sep 1, 2014 at 9:25 AM, Dumidu Handakumbura  wrote:

> Congrats Rajith..
>
>
> On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake 
> wrote:
>
>> Congrats Rajith!!!
>>
>>
>> On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>> congrats Rajith
>>>
>>>
>>> On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan 
>>> wrote:
>>>
 Congrats Rajith!


 On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> congratulations rajith...!!
>
>
> On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera 
> wrote:
>
>> Congrats Rajith!
>>
>>
>> On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara  wrote:
>>
>>> Congratulations Rajith !!!
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>>
>>> On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
>>> daksh...@wso2.com> wrote:
>>>
 Congratulations Rajith...!!!

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


 On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera >>> > wrote:

> Congratulations Rajith...!!!
>
>
> On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne  > wrote:
>
>> Congratz Rajith !!
>>
>>
>> On Thursday, August 28, 2014, Gimantha Bandara 
>> wrote:
>>
>>> Congratz Rajith!
>>>
>>>
>>> On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara <
>>> hars...@wso2.com> wrote:
>>>
 Congratz Rajith!


 On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
 than...@wso2.com> wrote:

> Congratz rajith.!!!
> On 28 Aug 2014 22:24, "Anjana Fernando" 
> wrote:
>
>>  Hi,
>>
>> It's my pleasure to announce Rajith Vitharana as a WSO2
>> committer. Rajith has done many valuable contributions to BAM 
>> and the DSS
>> products. Welcome aboard and keep up the good work! ..
>>
>> Cheers,
>> Anjana.
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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


>>>
>>>
>>> --
>>> Gimantha Bandara
>>> Software Engineer
>>> WSO2. Inc : http://wso2.com
>>> Mobile : +94714961919
>>>
>>
>>
>> --
>> Isura Dilhara Karunaratne
>> Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sewwandi Perera
> Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>>
>> ___
>> Dev maili

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Dumidu Handakumbura
Congrats Rajith..


On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake 
wrote:

> Congrats Rajith!!!
>
>
> On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran <
> jenanant...@wso2.com> wrote:
>
>> congrats Rajith
>>
>>
>> On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Congrats Rajith!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 congratulations rajith...!!


 On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera 
 wrote:

> Congrats Rajith!
>
>
> On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara  wrote:
>
>> Congratulations Rajith !!!
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>>
>> On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
>> daksh...@wso2.com> wrote:
>>
>>> Congratulations Rajith...!!!
>>>
>>> *Dakshika Jayathilaka*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>>
>>> On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera 
>>> wrote:
>>>
 Congratulations Rajith...!!!


 On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne 
 wrote:

> Congratz Rajith !!
>
>
> On Thursday, August 28, 2014, Gimantha Bandara 
> wrote:
>
>> Congratz Rajith!
>>
>>
>> On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara > > wrote:
>>
>>> Congratz Rajith!
>>>
>>>
>>> On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
>>> than...@wso2.com> wrote:
>>>
 Congratz rajith.!!!
 On 28 Aug 2014 22:24, "Anjana Fernando" 
 wrote:

>  Hi,
>
> It's my pleasure to announce Rajith Vitharana as a WSO2
> committer. Rajith has done many valuable contributions to BAM and 
> the DSS
> products. Welcome aboard and keep up the good work! ..
>
> Cheers,
> Anjana.
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94775505618
>>> Blog:harshcreationz.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Gimantha Bandara
>> Software Engineer
>> WSO2. Inc : http://wso2.com
>> Mobile : +94714961919
>>
>
>
> --
> Isura Dilhara Karunaratne
> Software Engineer
>
> Mob +94 772 254 810
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sewwandi Perera
 Software Engineer

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

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

 *lakshm...@wso2.com  *


 ___
 Dev mailin

Re: [Dev] [Issue] Jaggery post() method

2014-08-31 Thread Jerad Rutnam
Hi Tishan,

Thanks a lot for your reply, I will sure try that out. and I will report
the documentation issue on JIRA as well.

Regards,
Jerad


On Fri, Aug 29, 2014 at 5:41 PM, Tishan Dahanayakage 
wrote:

> Hi Jerad,
> Does your end point URL has a service to serve your HTTP post? Since
> Jaggery post is a wrapper for XMLHTTPRequest post as per jaggery
> documentation, make sure your URL (http://localhost:8280/) can handle
> your post and return a response.
> And I think your JSON data does not need apostrophe at beginning and end.
> Also please note that in this particular request you are setting HTTP
> headers. (var res = post(url,[ data],[ headers],[ type]))
> For the issue of documentation try out not working please raise a JIRA at
> [1].
>
> [1] https://wso2.org/jira/browse/JAGGERY
>
>
> On Thu, Aug 28, 2014 at 5:19 PM, Jerad Rutnam  wrote:
>
>> Hi Milinda,
>>
>> Thanks for the reply. Yes, I too noticed that. I think we better get this
>> fix right? I'm not sure whom to inform. :)
>> Anyway my actual requirement is to post() a json string with an array to
>> esb and get the response. Here is the code I used. But it throws an
>> exception. Any idea where I did wrong? Help will be appreciate.
>>
>> <%
>>
>>   var url = 'http://localhost:8280/';
>>   var result = post(url, 'Jaggery HTTP POST', {'"newbies" :
>> [{"name":"Dinesh"}, {"name":"Dilan"}, {"name":"Jerad"}]'},
>> 'application/json');
>>   print(result.data);
>>
>> %>
>>
>>
>> Thanks,
>> Jerad
>>
>>
>> On Thu, Aug 28, 2014 at 4:12 PM, Milinda Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> Seems 'http://jaggeryjs.org/apidocs/resources/data.jag' resource is not
>>> available.
>>>
>>> Thanks,
>>> Milinda
>>>
>>>
>>>
>>>
>>> On Thu, Aug 28, 2014 at 3:39 PM, Jerad Rutnam  wrote:
>>>
 Hi,

 Tried to use Jaggery post() method. And it's not working as expected.
 getting an error on the documentation try out feature.


 *Sample*
 <%
 var url = 'http://jaggeryjs.org/apidocs/resources/data.jag';
 var result = post(url, 'Jaggery HTTP POST', {
 "User-Agent" : "Jaggery-XHR",
 "Country" : "LK"
 }, 'json');
 print(result.data);
 %>

 *On the local jaggery server*
 *com.google.gson.JsonSyntaxException:
 com.google.gson.stream.MalformedJsonException: Expected EOF at line 1
 column 27 at line #3*

 * On the "jaggeryjs.org " **website*
 *org.jaggeryjs.scriptengine.exceptions.ScriptException:
 java.net.ConnectException: Connection timed out at line #3*

 *http://jaggeryjs.org/documentation.jag?api=post
 *


 Any feedback appreciate

 *Regards,*

 *Jerad*

 --
 *Jerad Rutnam | **Software Engineer - UI*
 WSO2, Inc. www.wso2.com

 *Email: je...@wso2.com *

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


>>>
>>>
>>> --
>>> Milinda Perera
>>> Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032
>>>
>>>
>>
>>
>> --
>> *Jerad Rutnam | **Software Engineer - UI*
>> WSO2, Inc. www.wso2.com
>>
>> *Email: je...@wso2.com *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



-- 
*Jerad Rutnam | **Software Engineer - UI*
WSO2, Inc. www.wso2.com

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


Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Yasassri Ratnayake
Congrats Rajith!!!


On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran 
wrote:

> congrats Rajith
>
>
> On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan 
> wrote:
>
>> Congrats Rajith!
>>
>>
>> On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha > > wrote:
>>
>>> congratulations rajith...!!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera 
>>> wrote:
>>>
 Congrats Rajith!


 On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara  wrote:

> Congratulations Rajith !!!
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
> daksh...@wso2.com> wrote:
>
>> Congratulations Rajith...!!!
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>>
>> On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera 
>> wrote:
>>
>>> Congratulations Rajith...!!!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne 
>>> wrote:
>>>
 Congratz Rajith !!


 On Thursday, August 28, 2014, Gimantha Bandara 
 wrote:

> Congratz Rajith!
>
>
> On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara 
> wrote:
>
>> Congratz Rajith!
>>
>>
>> On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
>> than...@wso2.com> wrote:
>>
>>> Congratz rajith.!!!
>>> On 28 Aug 2014 22:24, "Anjana Fernando"  wrote:
>>>
  Hi,

 It's my pleasure to announce Rajith Vitharana as a WSO2
 committer. Rajith has done many valuable contributions to BAM and 
 the DSS
 products. Welcome aboard and keep up the good work! ..

 Cheers,
 Anjana.
 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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


>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>


 --
 Isura Dilhara Karunaratne
 Software Engineer

 Mob +94 772 254 810



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


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


 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 

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


>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> Software Engineer, WSO2
>>> Mobile: *0711241005*
>>>
>>> *lakshm...@wso2.com  *
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 77 1708229
>>
>> 
>> 
>> 

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Jenananthan Yogendran
congrats Rajith


On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan 
wrote:

> Congrats Rajith!
>
>
> On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha 
> wrote:
>
>> congratulations rajith...!!
>>
>>
>> On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera  wrote:
>>
>>> Congrats Rajith!
>>>
>>>
>>> On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara  wrote:
>>>
 Congratulations Rajith !!!


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


 On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka <
 daksh...@wso2.com> wrote:

> Congratulations Rajith...!!!
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
>
> On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera 
> wrote:
>
>> Congratulations Rajith...!!!
>>
>>
>> On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne 
>> wrote:
>>
>>> Congratz Rajith !!
>>>
>>>
>>> On Thursday, August 28, 2014, Gimantha Bandara 
>>> wrote:
>>>
 Congratz Rajith!


 On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara 
 wrote:

> Congratz Rajith!
>
>
> On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe <
> than...@wso2.com> wrote:
>
>> Congratz rajith.!!!
>> On 28 Aug 2014 22:24, "Anjana Fernando"  wrote:
>>
>>>  Hi,
>>>
>>> It's my pleasure to announce Rajith Vitharana as a WSO2
>>> committer. Rajith has done many valuable contributions to BAM and 
>>> the DSS
>>> products. Welcome aboard and keep up the good work! ..
>>>
>>> Cheers,
>>> Anjana.
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Gimantha Bandara
 Software Engineer
 WSO2. Inc : http://wso2.com
 Mobile : +94714961919

>>>
>>>
>>> --
>>> Isura Dilhara Karunaratne
>>> Software Engineer
>>>
>>> Mob +94 772 254 810
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sewwandi Perera
>> Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> Software Engineer, WSO2
>> Mobile: *0711241005*
>>
>> *lakshm...@wso2.com  *
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 77 1708229
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Jenananthan Yogendran
*Software Engineer,*
*WSO2 inc., http://wso2.com 

[Dev] Please merge pull request #3 for product-bps

2014-08-31 Thread Firzhan Naqash
Hi,

Please review and merge the pull request[1], which is a fix for issue[2]




[1] https://github.com/wso2-dev/product-bps/pull/3
[2] https://wso2.org/jira/browse/BPS-185

Thanks,

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


Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-31 Thread Firzhan Naqash
Hi,

Thanks for pointing out. Although the error occurs in difference mode, root
cause seems to be the same reason.

I think this is not a carbon issue and this is a registry issue.

Thanks

Regards,
Firzhan


On Sun, Aug 31, 2014 at 4:36 PM, Pulasthi Mahawithana 
wrote:

> Hi,
>
> There is already a carbon JIRA[1] for this issue.
>
> [1] https://wso2.org/jira/browse/CARBON-14904
>
>
> On Sun, Aug 31, 2014 at 10:52 AM, Firzhan Naqash  wrote:
>
>> Hi,
>>
>> Thanks Ajith for the detailed explanation. I have created following
>> JIRA[1]
>>
>> [1] https://wso2.org/jira/browse/REGISTRY-2291
>>
>>
>>
>>
>> Regards,
>> Firzhan
>>
>>
>> On Sun, Aug 31, 2014 at 7:53 AM, Ajith Vitharana  wrote:
>>
>>>
>>> If your product is using the registry search feature, this bundle will
>>> include to the product. If so it is must to add this configuration to the
>>> registry.xml.
>>> Anyway we need handle this NPE for the products which don't use the
>>> indexing based registry search.
>>>
>>> Please report a JIRA to handle this NPE.
>>>
>>> Thanks
>>> Ajith.
>>>
>>>
>>> On Sun, Aug 31, 2014 at 2:34 AM, Firzhan Naqash 
>>> wrote:
>>>
 Hi,

 I debugged the code and the code seems to be throwing exception in the
 GREG's org.wso2.carbon.registry.indexing.RegistryConfigLoader class.

 This exception occurred because of missing XML elements in
 registry.xml. After I added the "indexingConfiguration" it worked fine.

  if the  file doesn't have the 
  tags.



 
 300
 60
 10
 10
 

 /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime
 
 >>> class="org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer"
 mediaTypeRegEx="application/vnd.ms-excel"/>
 >>> class="org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer"
 mediaTypeRegEx="application/vnd.ms-powerpoint"/>
 >>> class="org.wso2.carbon.registry.indexing.indexer.MSWordIndexer"
 mediaTypeRegEx="application/msword"/>
 >>> class="org.wso2.carbon.registry.indexing.indexer.PDFIndexer"
 mediaTypeRegEx="application/pdf"/>
 >>> class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer"
 mediaTypeRegEx="application/xml"/>
 >>> class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer"
 mediaTypeRegEx="application/(.)+\+xml"/>
 >>> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
 mediaTypeRegEx="text/(.)+"/>
 >>> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
 mediaTypeRegEx="application/x-javascript"/>
 
 
 >>> pathRegEx="/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html"/>
 >>> pathRegEx="/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*"/>
 
 



 @subash:- Do we have to add this part to the registry.xml file in each
 product or am I missing some thing in initial configuration which is
 forcing me to add this xml tag ?




 Regards,
 Firzhan


 On Sat, Aug 30, 2014 at 11:24 PM, Kasun Gajasinghe 
 wrote:

>
> Please raise a jira on this.
>
> Thanks.
>
>
> On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash 
> wrote:
>
>> Hi Malinga,
>>
>> I am also encountering the same error when I tried to shut down the
>>  BPSserver.
>>
>> Any luck with the above error ? Can you share your findings ?
>>
>> Regards,
>> Firzhan
>>
>>
>> On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga 
>> wrote:
>>
>>> Hi,
>>>
>>> Any idea about the following,
>>>
>>> TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
>>> {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have 
>>> been
>>> completed. {org.wso2.carbon.core.ServerManagement}
>>> TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
>>> {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
>>> completion... {org.wso2.carbon.core.ServerManagement}
>>> TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
>>> into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
>>> java.lang.NullPointerException
>>> at
>>> org.wso2.carbon.registry.indexing.RegistryConfigLoader.(RegistryConfigLoader.java:88)
>>> at
>>> org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:68)
>>>  at
>>> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
>>> at
>>> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
>>>  at
>>> or

[Dev] NoClassDefFoundError at Server startup from tracer module

2014-08-31 Thread Pulasthi Mahawithana
Hi,

I'm getting the following at server startup,

java.lang.NoClassDefFoundError:
org/wso2/carbon/logging/appenders/CircularBuffer
at
org.wso2.carbon.tracer.module.MemoryBasedTracePersister.(MemoryBasedTracePersister.java:36)
 at org.wso2.carbon.tracer.module.TracerModule.init(TracerModule.java:83)
at
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:252)
 at
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:230)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:93)
 at
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
 at
org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)


After having a look at the code, I noticed that CircularBuffer class has
been moved to org.wso2.carbon.utils from org.wso2.carbon.logging and the
pull request for carbon-utils related to those changes[1] is not merged due
to a failure at pr-builder.

Can you please review and merge the pull request [1] to fix the $subject?

[1] https://github.com/wso2/carbon-utils/pull/6
-- 
*Pulasthi Mahawithana*
Software Engineer
WSO2 Inc., http://wso2.com/
Mobile: +94-71-5179022
Blog: http://blog.pulasthi.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-31 Thread Pulasthi Mahawithana
Hi,

There is already a carbon JIRA[1] for this issue.

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


On Sun, Aug 31, 2014 at 10:52 AM, Firzhan Naqash  wrote:

> Hi,
>
> Thanks Ajith for the detailed explanation. I have created following JIRA[1]
>
> [1] https://wso2.org/jira/browse/REGISTRY-2291
>
>
>
>
> Regards,
> Firzhan
>
>
> On Sun, Aug 31, 2014 at 7:53 AM, Ajith Vitharana  wrote:
>
>>
>> If your product is using the registry search feature, this bundle will
>> include to the product. If so it is must to add this configuration to the
>> registry.xml.
>> Anyway we need handle this NPE for the products which don't use the
>> indexing based registry search.
>>
>> Please report a JIRA to handle this NPE.
>>
>> Thanks
>> Ajith.
>>
>>
>> On Sun, Aug 31, 2014 at 2:34 AM, Firzhan Naqash  wrote:
>>
>>> Hi,
>>>
>>> I debugged the code and the code seems to be throwing exception in the
>>> GREG's org.wso2.carbon.registry.indexing.RegistryConfigLoader class.
>>>
>>> This exception occurred because of missing XML elements in registry.xml.
>>> After I added the "indexingConfiguration" it worked fine.
>>>
>>>  if the  file doesn't have the 
>>>  tags.
>>>
>>>
>>>
>>> 
>>> 300
>>> 60
>>> 10
>>> 10
>>> 
>>>
>>> /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime
>>> 
>>> >> class="org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer"
>>> mediaTypeRegEx="application/vnd.ms-excel"/>
>>> >> class="org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer"
>>> mediaTypeRegEx="application/vnd.ms-powerpoint"/>
>>> >> class="org.wso2.carbon.registry.indexing.indexer.MSWordIndexer"
>>> mediaTypeRegEx="application/msword"/>
>>> >> class="org.wso2.carbon.registry.indexing.indexer.PDFIndexer"
>>> mediaTypeRegEx="application/pdf"/>
>>> >> class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer"
>>> mediaTypeRegEx="application/xml"/>
>>> >> class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer"
>>> mediaTypeRegEx="application/(.)+\+xml"/>
>>> >> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
>>> mediaTypeRegEx="text/(.)+"/>
>>> >> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
>>> mediaTypeRegEx="application/x-javascript"/>
>>> 
>>> 
>>> >> pathRegEx="/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html"/>
>>> >> pathRegEx="/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*"/>
>>> 
>>> 
>>>
>>>
>>>
>>> @subash:- Do we have to add this part to the registry.xml file in each
>>> product or am I missing some thing in initial configuration which is
>>> forcing me to add this xml tag ?
>>>
>>>
>>>
>>>
>>> Regards,
>>> Firzhan
>>>
>>>
>>> On Sat, Aug 30, 2014 at 11:24 PM, Kasun Gajasinghe 
>>> wrote:
>>>

 Please raise a jira on this.

 Thanks.


 On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash 
 wrote:

> Hi Malinga,
>
> I am also encountering the same error when I tried to shut down the
>  BPSserver.
>
> Any luck with the above error ? Can you share your findings ?
>
> Regards,
> Firzhan
>
>
> On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga  wrote:
>
>> Hi,
>>
>> Any idea about the following,
>>
>> TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
>> {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
>> completed. {org.wso2.carbon.core.ServerManagement}
>> TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
>> {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
>> completion... {org.wso2.carbon.core.ServerManagement}
>> TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
>> into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
>> java.lang.NullPointerException
>> at
>> org.wso2.carbon.registry.indexing.RegistryConfigLoader.(RegistryConfigLoader.java:88)
>> at
>> org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:68)
>>  at
>> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
>> at
>> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
>>  at
>> org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
>> at
>> org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
>>  at
>> org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
>> at
>> org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)
>>
>> thanks,
>> --
>> Supun