Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-11 Thread Afkham Azeez
BTW, AS sample having a sample parent pom is wrong. Samples are there to
guide the user how to write his own stuff. The user will not extend a
sample parent pom from AS, so IMO it is wrong to have it in that manner in
AS.

On Wed, Nov 11, 2015 at 12:49 AM, Aruna Karunarathna  wrote:

>
>
> On Wed, Nov 11, 2015 at 1:10 PM, Afkham Azeez  wrote:
>
>> Can we push that pom to Maven central?
>>
>
> Will that solve the problem?. AFAIU pushing mss-service-parent pom to
> maven central won't solve the problem, as per the inheritance tree we have
> to push the
> org.wso2.carbon.mss.parent pom to the maven central also.
>
> Shall we follow the pom structure as in product-as [1], having a root pom
> for samples and adding the repository there, so we can pack the samples to
> the distribution?
>
> [1].
> https://github.com/wso2/product-as/blob/master/modules/samples/pom.xml
>
>>
>> On Tue, Nov 10, 2015 at 11:31 PM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:
>>>
 sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom

 So, sample pom should inherit the WSO2 repo right?

>>>
>>> Yes. the above inheritance is correct.
>>>
>>> But when building the sample, AFAIU the following artifact is searched
>>> in the maven central repo. So the sample pom has no idea about the
>>> mss-service parent?
>>>
>>> 
>>> mss-service-parent
>>> org.wso2.carbon.mss
>>> 1.0.0-alpha
>>> 
>>>
>>>
 On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
 wrote:

>
>
> On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:
>
>> Since we are extending from the wso2 pom, don't we automatically
>> inherit the repo?
>>
> Yes, for the git repository it does. But the sample inside the
> distribution there is no inheritance.
>
>
>> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Without building the product-mss repo, can't build the helloworld
>>> sample. [1]
>>>
>>> After adding the wso2-nexus repo was able to build. I think we need
>>> to mention in the docs for alpha release and fix this properly in next
>>> release.
>>>
>>> Following changes required to build in clean repo.
>>>
>>> 1. Remove the relative path in the pom.xml.
>>> 2. add the wso2-nexus repository.
>>> 
>>> 
>>> wso2-nexus
>>> WSO2 internal Repository
>>> http://maven.wso2.org/nexus/content/groups/wso2-public/
>>> 
>>>
>>> true
>>> daily
>>> ignore
>>> 
>>> 
>>> 
>>>
>>>
>>> [1].
>>> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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

 *Lean . Enterprise . Middleware*

>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> 

[Dev] Base64 encoding in jaggery

2015-11-11 Thread Kalpa Welivitigoda
Hi all,

Is the $subject possible?

My requirement is to encode username/password in Base64 to be used to call
a REST API.

-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-11 Thread Nirmal Fernando
Do sample poms need a parent at all (if everything is in the maven
central)? IMO they should be self contained.

On a related note; License year is missing
https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml#L3

On Wed, Nov 11, 2015 at 3:07 PM, Afkham Azeez  wrote:

> BTW, AS sample having a sample parent pom is wrong. Samples are there to
> guide the user how to write his own stuff. The user will not extend a
> sample parent pom from AS, so IMO it is wrong to have it in that manner in
> AS.
>
> On Wed, Nov 11, 2015 at 12:49 AM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Wed, Nov 11, 2015 at 1:10 PM, Afkham Azeez  wrote:
>>
>>> Can we push that pom to Maven central?
>>>
>>
>> Will that solve the problem?. AFAIU pushing mss-service-parent pom to
>> maven central won't solve the problem, as per the inheritance tree we have
>> to push the
>> org.wso2.carbon.mss.parent pom to the maven central also.
>>
>> Shall we follow the pom structure as in product-as [1], having a root pom
>> for samples and adding the repository there, so we can pack the samples to
>> the distribution?
>>
>> [1].
>> https://github.com/wso2/product-as/blob/master/modules/samples/pom.xml
>>
>>>
>>> On Tue, Nov 10, 2015 at 11:31 PM, Aruna Karunarathna 
>>> wrote:
>>>


 On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:

> sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom
>
> So, sample pom should inherit the WSO2 repo right?
>

 Yes. the above inheritance is correct.

 But when building the sample, AFAIU the following artifact is searched
 in the maven central repo. So the sample pom has no idea about the
 mss-service parent?

 
 mss-service-parent
 org.wso2.carbon.mss
 1.0.0-alpha
 


> On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez 
>> wrote:
>>
>>> Since we are extending from the wso2 pom, don't we automatically
>>> inherit the repo?
>>>
>> Yes, for the git repository it does. But the sample inside the
>> distribution there is no inheritance.
>>
>>
>>> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna >> > wrote:
>>>
 Without building the product-mss repo, can't build the helloworld
 sample. [1]

 After adding the wso2-nexus repo was able to build. I think we need
 to mention in the docs for alpha release and fix this properly in next
 release.

 Following changes required to build in clean repo.

 1. Remove the relative path in the pom.xml.
 2. add the wso2-nexus repository.
 
 
 wso2-nexus
 WSO2 internal Repository
 
 http://maven.wso2.org/nexus/content/groups/wso2-public/

 true
 daily
 ignore
 
 
 


 [1].
 https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml



 --

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


>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> 

[Dev] Findbugs error on product-gw build

2015-11-11 Thread Kishanthan Thangarajah
Build is failing on MacOS with maven 3.3.3.

[INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
org.wso2.carbon.gateway ---
[INFO] BugInstance size is 1
[INFO] Error size is 0
[INFO] Total bugs: 1
*[INFO] Dead store to wait in
org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
HttpRoute)
[org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
ChannelUtils.java:[line 95]*
[INFO]

To see bug detail using the Findbugs GUI, use the following command "mvn
findbugs:gui"

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] org.wso2.carbon.gateway.parent . SUCCESS [
 3.126 s]
[INFO] org.wso2.carbon.gateway  FAILURE [
10.700 s]
[INFO] WSO2 Carbon - Gateway Feature .. SKIPPED
[INFO] WSO2 Gateway Server - Distribution . SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 14.602 s
[INFO] Finished at: 2015-11-11T15:30:02+05:30
[INFO] Final Memory: 55M/482M
[INFO]

[ERROR] Failed to execute goal
org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 1]


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-11 Thread Afkham Azeez
proxy host name

On Wed, Nov 11, 2015 at 12:28 AM, Chamara Ariyarathne 
wrote:

> Hi All,
>
> When a new user is added to EMM, the user will be notified with an email
> to subscribe a device to MDM domain. The email contains the server url to
> be accessed from the device.
>
> https://localhost:9443/mdm/enrollment
>
> In a usual deployment when a EMM cluster is fronted by a LB, this url
> should be changed to the particular gateway host of the deployment. Now a
> doubt arose whether to create this url by taking the value in HostName
> element in carbon.xml or somewhere else.
>
> So the real doubt here is what is the correct way to configure the
> HostName attribute in the carbon.xml in a carbon server. Is it going to be
> the LB host's url which the deployment is exposed with or is it some local
> host name internal to the deployment?
>
> --
> *Chamara Ariyarathne*
> Associate Technical Lead - QA
> WSO2 Inc; http://www.wso2.com/
> Mobile; *+94772786766 <%2B94772786766>*
>



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

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

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

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


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-11 Thread Aruna Karunarathna
On Wed, Nov 11, 2015 at 1:10 PM, Afkham Azeez  wrote:

> Can we push that pom to Maven central?
>

Will that solve the problem?. AFAIU pushing mss-service-parent pom to maven
central won't solve the problem, as per the inheritance tree we have to
push the
org.wso2.carbon.mss.parent pom to the maven central also.

Shall we follow the pom structure as in product-as [1], having a root pom
for samples and adding the repository there, so we can pack the samples to
the distribution?

[1]. https://github.com/wso2/product-as/blob/master/modules/samples/pom.xml

>
> On Tue, Nov 10, 2015 at 11:31 PM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:
>>
>>> sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom
>>>
>>> So, sample pom should inherit the WSO2 repo right?
>>>
>>
>> Yes. the above inheritance is correct.
>>
>> But when building the sample, AFAIU the following artifact is searched in
>> the maven central repo. So the sample pom has no idea about the mss-service
>> parent?
>>
>> 
>> mss-service-parent
>> org.wso2.carbon.mss
>> 1.0.0-alpha
>> 
>>
>>
>>> On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
>>> wrote:
>>>


 On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:

> Since we are extending from the wso2 pom, don't we automatically
> inherit the repo?
>
 Yes, for the git repository it does. But the sample inside the
 distribution there is no inheritance.


> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
> wrote:
>
>> Without building the product-mss repo, can't build the helloworld
>> sample. [1]
>>
>> After adding the wso2-nexus repo was able to build. I think we need
>> to mention in the docs for alpha release and fix this properly in next
>> release.
>>
>> Following changes required to build in clean repo.
>>
>> 1. Remove the relative path in the pom.xml.
>> 2. add the wso2-nexus repository.
>> 
>> 
>> wso2-nexus
>> WSO2 internal Repository
>> http://maven.wso2.org/nexus/content/groups/wso2-public/
>> 
>>
>> true
>> daily
>> ignore
>> 
>> 
>> 
>>
>>
>> [1].
>> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



 --

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


>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: 

[Dev] [CARBON] Parameterizing the Maven bundle plugin and moving plugin configuration inside carbon-parent pom

2015-11-11 Thread Manuri Amaya Perera
Hi,

Currently for each carbon component's pom file we need to include the maven
bundle plugin. Some of the bundle plugin configuration values such as group
id, artifact id and version are repetitively used in each of these
components(eg: [1])

We can avoid this repetition by including the bundle plugin inside
carbon-parent pom[2] instead of having it inside each component.
Here we have to include bundle plugin inside build/plugins[3] section of
carbon-parent pom and then the plugin configuration will be inherited by
child modules and any configuration that needs to be overridden could be
mentioned as properties inside child poms.
This will make maintenance easier and reduce code.

There is also a disadvantage with parameterizing the bundle plugin. That
is, some headers such as Bundle-NativeCode must have a value if that
element is put in the plugin configuration[4], otherwise the build
fails.Therefore we cannot have this inside carbon-parent pom's bundle
plugin configuration as child modules may not have a value for it.
This is the only header we've found out which causes this problem. And I
could not find any usage of this header in a WSO2 repository. Therefore if
this header is not going to be used we can safely remove it from
carbon-parent pom and proceed with parameterizing the bundle plugin.

Your ideas on moving the bundle-plugin configuration to carbon-parent pom
and parameterization will be highly appreciated.


​[1] https://github.com/wso2/carbon-kernel/blob/5.0.x/core/pom.xml​
​[2] ​https://github.com/wso2/carbon-parent/blob/master/pom.xml
[3] https://maven.apache.org/pom.html#Plugins
[4] http://bnd.bndtools.org/heads/bundle_nativecode.html


​Thank you.​

-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

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


Re: [Dev] http/https ports and hostname in carbon

2015-11-11 Thread Waruna Jayaweera
Thanks Kalpa

On Wed, Nov 11, 2015 at 3:29 AM, Kalpa Welivitigoda  wrote:

> Hi Waruna,
>
> You can try getLocalHostname() and getMgtHostName() in
> org.wso2.carbon.utils.NetworkUtils.
>
> On Tue, Nov 10, 2015 at 11:07 PM, Waruna Jayaweera 
> wrote:
>
>> Hi Kalpa,
>> Did you able to find a solution for $subject. I am also looking for an 
>> approach
>> to get the host name
>>
>> Thanks,
>> Waruna
>>
>>
>>
>> On Wed, Feb 11, 2015 at 6:59 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi,
>>>
>>> I want to get the $subject.
>>>
>>> An option to get the http port would be to use
>>> "CarbonUtils.getPortFromServerConfig("Ports.Offset") + 1". For https port,
>>> we can use the same method passing the default https port. Is there a
>>> better way?
>>>
>>> What would be the preferred approach to get the host name?
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Waruna Lakshitha Jayaweera
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +94713255198
>>
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] setting up cluster without using -Dprofile - with puppet scripts

2015-11-11 Thread Suhan Dharmasuriya
Hi,

When we try to deploy the cluster with APIM 1.10.x with profiles, following
error [1] is observed in wso2carbon.log.
Full log for gateway manager also attached.

We have tried with default configurations as well as cluster
configurations. In both cases the error occurs when trying with profiles.

It would be great if you can guide us to overcome this issue.

Following is the diff between a APIM 1.10.0-SNAPSHOT build pack
wso2server.sh and our gateway node wso2server.sh file.

$ diff 110wso2server.sh gwwso2server.sh
303a304
> -Dprofile=gateway-manager \

[1]
TID: [-1] [] [2015-11-11 09:05:40,614] ERROR
{org.apache.tomcat.util.digester.Digester} -  Begin event threw exception
{org.apache.tomcat.util.digester.Digester}
java.lang.ClassNotFoundException:
org.wso2.carbon.webapp.mgt.loader.CarbonWebappLoader cannot be found by
org.wso2.carbon.tomcat_4.4.2
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:144)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1288)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at
org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:649)
at
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:592)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:850)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:397)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
TID: [-1] [] [2015-11-11 09:05:40,616] ERROR
{org.apache.catalina.startup.ContextConfig} -  Parse error in context.xml
for / {org.apache.catalina.startup.ContextConfig}
org.xml.sax.SAXParseException; systemId: file:/mnt/
192.168.57.131/gateway/wso2am-1.10.0-SNAPSHOT/repository/conf/tomcat/context.xml;
lineNumber: 24; columnNumber: 86; Error at (24, 86) :
org.wso2.carbon.webapp.mgt.loader.CarbonWebappLoader cannot be found by
org.wso2.carbon.tomcat_4.4.2
at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2711)
at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2743)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1291)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at 

Re: [Dev] Findbugs error on product-gw build

2015-11-11 Thread Chanaka Fernando
Madhuranga will look into this.

On Wed, Nov 11, 2015 at 4:06 PM, Kishanthan Thangarajah  wrote:

> Build is failing on MacOS with maven 3.3.3.
>
> [INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
> org.wso2.carbon.gateway ---
> [INFO] BugInstance size is 1
> [INFO] Error size is 0
> [INFO] Total bugs: 1
> *[INFO] Dead store to wait in
> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
> HttpRoute)
> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
> ChannelUtils.java:[line 95]*
> [INFO]
>
> To see bug detail using the Findbugs GUI, use the following command "mvn
> findbugs:gui"
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] org.wso2.carbon.gateway.parent . SUCCESS [
>  3.126 s]
> [INFO] org.wso2.carbon.gateway  FAILURE [
> 10.700 s]
> [INFO] WSO2 Carbon - Gateway Feature .. SKIPPED
> [INFO] WSO2 Gateway Server - Distribution . SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 14.602 s
> [INFO] Finished at: 2015-11-11T15:30:02+05:30
> [INFO] Final Memory: 55M/482M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
> project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 1]
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [carbon] Execute a dbscript after feature installation using carbon console

2015-11-11 Thread Charitha Goonetilleke
Hi All,

Is it possible to do $subject?

My feature has a specific db script to generate a database, which required
to feature functionality. So I need to execute that script after successful
feature installation. I'm copying required db scripts to
$CARBON_HOME/dbscript directory using a touch point in p2.inf.

Please let me know if there any specific way to do that.

Thanks & Regards,
/charithag
-- 
*Charitha Goonetilleke*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 751 3669 <%2B94777513669>
Twitter:@CharithaWs , fb: charithag
, linkedin: charithag

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


[Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-11 Thread Chamara Ariyarathne
Hi All,

When a new user is added to EMM, the user will be notified with an email to
subscribe a device to MDM domain. The email contains the server url to be
accessed from the device.

https://localhost:9443/mdm/enrollment

In a usual deployment when a EMM cluster is fronted by a LB, this url
should be changed to the particular gateway host of the deployment. Now a
doubt arose whether to create this url by taking the value in HostName
element in carbon.xml or somewhere else.

So the real doubt here is what is the correct way to configure the HostName
attribute in the carbon.xml in a carbon server. Is it going to be the LB
host's url which the deployment is exposed with or is it some local host
name internal to the deployment?

-- 
*Chamara Ariyarathne*
Associate Technical Lead - QA
WSO2 Inc; http://www.wso2.com/
Mobile; *+94772786766*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Unable to build Released Docker base image Pack

2015-11-11 Thread Reka Thirunavukkarasu
Thanks Gayan for the confirmation. That would be good..

Thanks,
Reka

On Wed, Nov 11, 2015 at 10:41 AM, Gayan Gunarathne  wrote:

> Hi Reka,
>
> On Wed, Nov 11, 2015 at 10:28 AM, Reka Thirunavukkarasu 
> wrote:
>
>> Hi
>>
>> Due to the docker base image pack[1] is referred to relative path from
>> the product distribution for such as configurator and etc, we can't build
>> and get the docker base image.
>>
>
>
>> Can we fix this for 4.1.2 cartridges release? Also, it would be better,
>> if the docker image could be built even without phython agent as in
>> standalone, python agent is not needed. So, it is an additional step to
>> download python agent and locate it in the docker image for a standalone
>> docker image user. WDYT?
>>
>> [1]
>> http://product-dist.wso2.com/downloads/private-paas/4.1.0/cartridges/common/wso2ppaas-cartridges-docker-base-image-4.1.1.zip
>>
>
> In 4.1.2 , user need to put the configurator in the packages folder. If
> user needs to build it from the already build one from the same repo, he
> needs to pass additional input parameter -b.[1]
>
> [1]
> https://github.com/wso2/private-paas-cartridges/tree/master/common/docker/base-image
>
> Thanks,
> Gayan
>
>
>>
>>
>> Thanks,
>> Reka
>>
>> --
>> Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CARBON] Parameterizing the Maven bundle plugin and moving plugin configuration inside carbon-parent pom

2015-11-11 Thread Manuri Amaya Perera
+ architecture@

On Wed, Nov 11, 2015 at 2:46 PM, Manuri Amaya Perera 
wrote:

> Hi,
>
> Currently for each carbon component's pom file we need to include the
> maven bundle plugin. Some of the bundle plugin configuration values such as
> group id, artifact id and version are repetitively used in each of these
> components(eg: [1])
>
> We can avoid this repetition by including the bundle plugin inside
> carbon-parent pom[2] instead of having it inside each component.
> Here we have to include bundle plugin inside build/plugins[3] section of
> carbon-parent pom and then the plugin configuration will be inherited by
> child modules and any configuration that needs to be overridden could be
> mentioned as properties inside child poms.
> This will make maintenance easier and reduce code.
>
> There is also a disadvantage with parameterizing the bundle plugin. That
> is, some headers such as Bundle-NativeCode must have a value if that
> element is put in the plugin configuration[4], otherwise the build
> fails.Therefore we cannot have this inside carbon-parent pom's bundle
> plugin configuration as child modules may not have a value for it.
> This is the only header we've found out which causes this problem. And I
> could not find any usage of this header in a WSO2 repository. Therefore if
> this header is not going to be used we can safely remove it from
> carbon-parent pom and proceed with parameterizing the bundle plugin.
>
> Your ideas on moving the bundle-plugin configuration to carbon-parent pom
> and parameterization will be highly appreciated.
>
>
> ​[1] https://github.com/wso2/carbon-kernel/blob/5.0.x/core/pom.xml​
> ​[2] ​https://github.com/wso2/carbon-parent/blob/master/pom.xml
> [3] https://maven.apache.org/pom.html#Plugins
> [4] http://bnd.bndtools.org/heads/bundle_nativecode.html
>
>
> ​Thank you.​
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

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


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-11 Thread Samiyuru Senarathne
Then, can we add the repository to the mss-service-parent and push it to the
Maven central?

On Wed, Nov 11, 2015 at 2:19 PM, Aruna Karunarathna  wrote:

>
>
> On Wed, Nov 11, 2015 at 1:10 PM, Afkham Azeez  wrote:
>
>> Can we push that pom to Maven central?
>>
>
> Will that solve the problem?. AFAIU pushing mss-service-parent pom to
> maven central won't solve the problem, as per the inheritance tree we have
> to push the
> org.wso2.carbon.mss.parent pom to the maven central also.
>
> Shall we follow the pom structure as in product-as [1], having a root pom
> for samples and adding the repository there, so we can pack the samples to
> the distribution?
>
> [1].
> https://github.com/wso2/product-as/blob/master/modules/samples/pom.xml
>
>>
>> On Tue, Nov 10, 2015 at 11:31 PM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:
>>>
 sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom

 So, sample pom should inherit the WSO2 repo right?

>>>
>>> Yes. the above inheritance is correct.
>>>
>>> But when building the sample, AFAIU the following artifact is searched
>>> in the maven central repo. So the sample pom has no idea about the
>>> mss-service parent?
>>>
>>> 
>>> mss-service-parent
>>> org.wso2.carbon.mss
>>> 1.0.0-alpha
>>> 
>>>
>>>
 On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
 wrote:

>
>
> On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:
>
>> Since we are extending from the wso2 pom, don't we automatically
>> inherit the repo?
>>
> Yes, for the git repository it does. But the sample inside the
> distribution there is no inheritance.
>
>
>> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Without building the product-mss repo, can't build the helloworld
>>> sample. [1]
>>>
>>> After adding the wso2-nexus repo was able to build. I think we need
>>> to mention in the docs for alpha release and fix this properly in next
>>> release.
>>>
>>> Following changes required to build in clean repo.
>>>
>>> 1. Remove the relative path in the pom.xml.
>>> 2. add the wso2-nexus repository.
>>> 
>>> 
>>> wso2-nexus
>>> WSO2 internal Repository
>>> http://maven.wso2.org/nexus/content/groups/wso2-public/
>>> 
>>>
>>> true
>>> daily
>>> ignore
>>> 
>>> 
>>> 
>>>
>>>
>>> [1].
>>> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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

 *Lean . Enterprise . Middleware*

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

Re: [Dev] Base64 encoding in jaggery

2015-11-11 Thread Nipuna Chandradasa
Hi,

Sorry for the typing mistake ...

you can import the java method for Base64 encoding inside the jaggery and
use it ...

Regards,

On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa 
wrote:

> Hi,
>
> As far as i know there is no inbuilt method for jaggery   but u import
> the java method for Base64 encoding inside the jaggery and use it
>
> Regards,
>
> On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda 
> wrote:
>
>> Hi all,
>>
>> Is the $subject possible?
>>
>> My requirement is to encode username/password in Base64 to be used to
>> call a REST API.
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>



-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Base64 encoding in jaggery

2015-11-11 Thread Milinda Perera
We do base64 encoding by our implementation in bpmn-explorer. refer [1]

[1]
https://github.com/wso2/carbon-business-process/blob/master/components/bpmn/bpmn-explorer-web/src/web/assets/encoder.js

On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasa 
wrote:

> Hi,
>
> Sorry for the typing mistake ...
>
> you can import the java method for Base64 encoding inside the jaggery and
> use it ...
>
> Regards,
>
> On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa 
> wrote:
>
>> Hi,
>>
>> As far as i know there is no inbuilt method for jaggery   but u
>> import the java method for Base64 encoding inside the jaggery and use it
>>
>> Regards,
>>
>> On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi all,
>>>
>>> Is the $subject possible?
>>>
>>> My requirement is to encode username/password in Base64 to be used to
>>> call a REST API.
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Base64 encoding in jaggery

2015-11-11 Thread Inshaf Mahath
Hi Kalpa,

You can try on JavaScript to encode and decode base64 string. You can have
a look on [1].

[1]
http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript


Thanks with best regards,
Inshaf

On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasa 
wrote:

> Hi,
>
> Sorry for the typing mistake ...
>
> you can import the java method for Base64 encoding inside the jaggery and
> use it ...
>
> Regards,
>
> On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa 
> wrote:
>
>> Hi,
>>
>> As far as i know there is no inbuilt method for jaggery   but u
>> import the java method for Base64 encoding inside the jaggery and use it
>>
>> Regards,
>>
>> On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi all,
>>>
>>> Is the $subject possible?
>>>
>>> My requirement is to encode username/password in Base64 to be used to
>>> call a REST API.
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Base64 encoding in jaggery

2015-11-11 Thread Kalpa Welivitigoda
Thanks all.

On Wed, Nov 11, 2015 at 3:32 PM, Inshaf Mahath  wrote:

> Hi Kalpa,
>
> You can try on JavaScript to encode and decode base64 string. You can have
> a look on [1].
>
> [1]
> http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript
>
>
> Thanks with best regards,
> Inshaf
>
> On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasa 
> wrote:
>
>> Hi,
>>
>> Sorry for the typing mistake ...
>>
>> you can import the java method for Base64 encoding inside the jaggery and
>> use it ...
>>
>> Regards,
>>
>> On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa 
>> wrote:
>>
>>> Hi,
>>>
>>> As far as i know there is no inbuilt method for jaggery   but u
>>> import the java method for Base64 encoding inside the jaggery and use it
>>>
>>> Regards,
>>>
>>> On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Hi all,

 Is the $subject possible?

 My requirement is to encode username/password in Base64 to be used to
 call a REST API.

 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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


>>>
>>>
>>> --
>>> Nipuna Marcus
>>> *Software Engineer*
>>> WSO2 Inc.
>>> http://wso2.com/ - "lean . enterprise . middleware"
>>> Mobile : +94 (0) 713 667906
>>> nipu...@wso2.com
>>>
>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Inshaf Mahath
>
>


-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Base64 encoding in jaggery

2015-11-11 Thread Nipuna Chandradasa
Hi,

As far as i know there is no inbuilt method for jaggery   but u import
the java method for Base64 encoding inside the jaggery and use it

Regards,

On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda  wrote:

> Hi all,
>
> Is the $subject possible?
>
> My requirement is to encode username/password in Base64 to be used to call
> a REST API.
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Findbugs error on product-gw build

2015-11-11 Thread Madhuranga Bandara
Hi,

I have tried same on MAC OS with mvn 3.3.3 and findbugs-maven-plugin:3.0.2.
I could build the product without any issue.
i'm using java 8.


*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Wed, Nov 11, 2015 at 4:22 PM, Chanaka Fernando  wrote:

> Madhuranga will look into this.
>
> On Wed, Nov 11, 2015 at 4:06 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Build is failing on MacOS with maven 3.3.3.
>>
>> [INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
>> org.wso2.carbon.gateway ---
>> [INFO] BugInstance size is 1
>> [INFO] Error size is 0
>> [INFO] Total bugs: 1
>> *[INFO] Dead store to wait in
>> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
>> HttpRoute)
>> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
>> ChannelUtils.java:[line 95]*
>> [INFO]
>>
>> To see bug detail using the Findbugs GUI, use the following command "mvn
>> findbugs:gui"
>>
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] org.wso2.carbon.gateway.parent . SUCCESS [
>>  3.126 s]
>> [INFO] org.wso2.carbon.gateway  FAILURE [
>> 10.700 s]
>> [INFO] WSO2 Carbon - Gateway Feature .. SKIPPED
>> [INFO] WSO2 Gateway Server - Distribution . SKIPPED
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 14.602 s
>> [INFO] Finished at: 2015-11-11T15:30:02+05:30
>> [INFO] Final Memory: 55M/482M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
>> project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 1]
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Typo in "Deployment Synchronizer" section in carbon.xml file

2015-11-11 Thread Malintha Adikari
Hi,

There is a typo[1] in $subject. Found this in APIM 1.10.x pack.

 [1]  

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

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
Page:   http://about.me/malintha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-11 Thread Afkham Azeez
On Wed, Nov 11, 2015 at 1:46 AM, Nirmal Fernando  wrote:

> Do sample poms need a parent at all (if everything is in the maven
> central)? IMO they should be self contained.
>

+1 . Kernel team can you please push the released POMs to Maven central?

>
> On a related note; License year is missing
> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml#L3
>

The year is not required. I think we have already discussed this somewhere.


>
> On Wed, Nov 11, 2015 at 3:07 PM, Afkham Azeez  wrote:
>
>> BTW, AS sample having a sample parent pom is wrong. Samples are there to
>> guide the user how to write his own stuff. The user will not extend a
>> sample parent pom from AS, so IMO it is wrong to have it in that manner in
>> AS.
>>
>> On Wed, Nov 11, 2015 at 12:49 AM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Wed, Nov 11, 2015 at 1:10 PM, Afkham Azeez  wrote:
>>>
 Can we push that pom to Maven central?

>>>
>>> Will that solve the problem?. AFAIU pushing mss-service-parent pom to
>>> maven central won't solve the problem, as per the inheritance tree we have
>>> to push the
>>> org.wso2.carbon.mss.parent pom to the maven central also.
>>>
>>> Shall we follow the pom structure as in product-as [1], having a root
>>> pom for samples and adding the repository there, so we can pack the samples
>>> to the distribution?
>>>
>>> [1].
>>> https://github.com/wso2/product-as/blob/master/modules/samples/pom.xml
>>>

 On Tue, Nov 10, 2015 at 11:31 PM, Aruna Karunarathna 
 wrote:

>
>
> On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:
>
>> sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom
>>
>> So, sample pom should inherit the WSO2 repo right?
>>
>
> Yes. the above inheritance is correct.
>
> But when building the sample, AFAIU the following artifact is searched
> in the maven central repo. So the sample pom has no idea about the
> mss-service parent?
>
> 
> mss-service-parent
> org.wso2.carbon.mss
> 1.0.0-alpha
> 
>
>
>> On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez 
>>> wrote:
>>>
 Since we are extending from the wso2 pom, don't we automatically
 inherit the repo?

>>> Yes, for the git repository it does. But the sample inside the
>>> distribution there is no inheritance.
>>>
>>>
 On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna <
 ar...@wso2.com> wrote:

> Without building the product-mss repo, can't build the helloworld
> sample. [1]
>
> After adding the wso2-nexus repo was able to build. I think we
> need to mention in the docs for alpha release and fix this properly 
> in next
> release.
>
> Following changes required to build in clean repo.
>
> 1. Remove the relative path in the pom.xml.
> 2. add the wso2-nexus repository.
> 
> 
> wso2-nexus
> WSO2 internal Repository
> 
> http://maven.wso2.org/nexus/content/groups/wso2-public/
>
> true
> daily
> ignore
> 
> 
> 
>
>
> [1].
> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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

 *Lean . Enterprise . Middleware*

>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> 

[Dev] Carbon-mediation-4.4.11 released

2015-11-11 Thread Jagath Sisirakumara Ariyarathne
Hi,

Carbon-mediation-4.4.11 released.

org.wso2.carbon.mediation
carbon-mediation
4.4.11

Thanks.
-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM-200] Clustering documentation is not available

2015-11-11 Thread Chathurika De Silva
Hi

We have to start testing with the deployment once the Alpha is out (the
predicted date of release 13.10.2015). Can we please get the deployment
guide updated asap?

Thank You
Erandi

On Fri, Nov 6, 2015 at 8:59 AM, Prabath Abeysekera 
wrote:

> Ack! Will share the relevant details ASAP.
>
> Cheers,
> Prabath
>
> On Thu, Nov 5, 2015 at 11:37 AM, Chathurika De Silva  > wrote:
>
>> Hi
>>
>> Any update on this please, as we need to go for deployment soon.
>>
>> Thank You
>> Erandi
>>
>> On Thu, Oct 29, 2015 at 11:06 AM, Samuel Gnaniah  wrote:
>>
>>> Hi EMM team,
>>>
>>> Please provide some content for this.
>>>
>>> Thanks,
>>>
>>> *Samuel Gnaniah*
>>> Lead Technical Writer
>>>
>>> WSO2 (pvt.) Ltd.
>>> Colombo, Sri Lanka
>>> (+94) 773131798
>>>
>>> On Thu, Oct 29, 2015 at 10:25 AM, Chathurika De Silva <
>>> chathuri...@wso2.com> wrote:
>>>
 Hi

 The clustering guide in [1] is not currently available. Can you please
 provide us documentation on this as this is currently blocking our testing
 process.

 Please find the jira reported on this [2]

 [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+WSO2+Products
 [2] https://wso2.org/jira/browse/DOCUMENTATION-2626

 Thank You
 Erandi
 --
 *Chathurika Erandi*
 Software Engineer,
 WSO2 Inc.

 *E-mail:* chathuri...@wso2.com
 *Mobile: *+94714 328 612
 *Blog*: chathurikaerandi.blogspot.com

 --
 You received this message because you are subscribed to the Google
 Groups "WSO2 Techcontent Group" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to techcontent-group+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.

>>>
>>>
>>
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 
*Chathurika Erandi*
Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSS helloworld sample can't build in clean repo

2015-11-11 Thread Afkham Azeez
In the samples, we are showing the user how to write their own
microservice. We can't show them a sample pom that extends a sample parent.
Then we are asking users to write microservices one way and we are writing
them another way. Push all the relevant poms to maven central.

2 objectives,
1. Show users HOW exactly to write an MSS microservice
2. Keep the pom the user has to write super simple. Having to add a repo to
their microservice pom in addition to defining the parent, defeats that
purpose.

On Wed, Nov 11, 2015 at 12:49 AM, Aruna Karunarathna  wrote:

>
>
> On Wed, Nov 11, 2015 at 1:10 PM, Afkham Azeez  wrote:
>
>> Can we push that pom to Maven central?
>>
>
> Will that solve the problem?. AFAIU pushing mss-service-parent pom to
> maven central won't solve the problem, as per the inheritance tree we have
> to push the
> org.wso2.carbon.mss.parent pom to the maven central also.
>
> Shall we follow the pom structure as in product-as [1], having a root pom
> for samples and adding the repository there, so we can pack the samples to
> the distribution?
>
> [1].
> https://github.com/wso2/product-as/blob/master/modules/samples/pom.xml
>
>>
>> On Tue, Nov 10, 2015 at 11:31 PM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:
>>>
 sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom

 So, sample pom should inherit the WSO2 repo right?

>>>
>>> Yes. the above inheritance is correct.
>>>
>>> But when building the sample, AFAIU the following artifact is searched
>>> in the maven central repo. So the sample pom has no idea about the
>>> mss-service parent?
>>>
>>> 
>>> mss-service-parent
>>> org.wso2.carbon.mss
>>> 1.0.0-alpha
>>> 
>>>
>>>
 On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
 wrote:

>
>
> On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:
>
>> Since we are extending from the wso2 pom, don't we automatically
>> inherit the repo?
>>
> Yes, for the git repository it does. But the sample inside the
> distribution there is no inheritance.
>
>
>> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Without building the product-mss repo, can't build the helloworld
>>> sample. [1]
>>>
>>> After adding the wso2-nexus repo was able to build. I think we need
>>> to mention in the docs for alpha release and fix this properly in next
>>> release.
>>>
>>> Following changes required to build in clean repo.
>>>
>>> 1. Remove the relative path in the pom.xml.
>>> 2. add the wso2-nexus repository.
>>> 
>>> 
>>> wso2-nexus
>>> WSO2 internal Repository
>>> http://maven.wso2.org/nexus/content/groups/wso2-public/
>>> 
>>>
>>> true
>>> daily
>>> ignore
>>> 
>>> 
>>> 
>>>
>>>
>>> [1].
>>> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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

Re: [Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-11 Thread Roshan Deniyage
Hi All,
Thank for the comments. Once I reconfigured our puppet master and setup
the devsetup again, I worked fine. May be due to some issue in puppet
configuration. If the issue comes again I'll update the thread.

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

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


On Tue, Nov 10, 2015 at 5:44 PM, Pubudu Gunatilaka  wrote:

> Hi,
>
> Restarting the cartridge agent will not work and it will halt at the
> instance initialization. If the application went from Active to  Deploy
> state, then most probably faulty member has detected and a new docker
> instance has spawned.
>
> Can you attach the agent log in one of the docker containers?
>
> Thank you!
>
> On Tue, Nov 10, 2015 at 5:24 PM, Anuruddha Premalal 
> wrote:
>
>> Hi Roshan,
>>
>> Can you check whether your teant is subscribed to the cartridge? (you
>> could use stratos rest api).
>>
>> Try with a new tenant. This might probably be due to a subscription issue.
>>
>> On Tue, Nov 10, 2015 at 5:15 PM, Roshan Deniyage 
>> wrote:
>>
>>> Hi All,
>>> I'm working with new appfactory dev setup with kubenetes and docker.
>>> In appfactory side the setup works fine and when app is created it
>>> successfully get commit to s2git (git server which cartridge agent get
>>> artifact from).
>>>
>>> But, I'm facing an issue getting the artifact deployed to the cartridge.
>>> The trouble shooting steps are as follows,
>>>
>>> * After the dev setup is completed I restarted mq, activemq, stratos, 3
>>> greg servers, jenkins and appfactory in the given order.
>>> * Then executed the "executor.sh" script which is inside the ppass to
>>> subscribe to stratos since the setup is not executing it successfully.
>>> * Then 3 applications in the stratos for dev, test and prod env, show
>>> the applications are in "deployed" state but never becomes "active".
>>> * Hence, I logged into 3 docker instances and restated the wso2app
>>> servers. (cartridge)
>>> * Then, 3 applications became active.
>>> * But, once I create a new application, it goes upto s2git but not
>>> deploying in the cartridge.
>>> * Then, I restarted the cartridge agents in 3 docker instance but it
>>> cause to become 3 stratos applications to "deployed" state from "active"
>>> stage.
>>> * The agent logs doesn't show any error messages.
>>>
>>> I have no clue what's going on. If someone has any idea how to find the
>>> root cause, that  would be great.
>>>
>>>
>>> Thanks,
>>> Roshan Deniyage
>>> Associate Technical Lead
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile:  +94 777636406 / +1 408 667 6254
>>> Twitter:  *https://twitter.com/roshku *
>>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94717213122
>> Web site : www.anuruddha.org
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774079049 <%2B94772207163>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-11 Thread Geeth Munasinghe
Hi Azeez,

In case of URL rewrite by LB, can we handle that by the proxy settings on
catalina-server.xml ?

Thanks
Geeth






*G. K. S. Munasinghe*
*Senior Software Engineer,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ge...@wso2.com
phone:(+94) 777911226

On Wed, Nov 11, 2015 at 2:10 PM, Afkham Azeez  wrote:

> proxy host name
>
> On Wed, Nov 11, 2015 at 12:28 AM, Chamara Ariyarathne 
> wrote:
>
>> Hi All,
>>
>> When a new user is added to EMM, the user will be notified with an email
>> to subscribe a device to MDM domain. The email contains the server url to
>> be accessed from the device.
>>
>> https://localhost:9443/mdm/enrollment
>>
>> In a usual deployment when a EMM cluster is fronted by a LB, this url
>> should be changed to the particular gateway host of the deployment. Now a
>> doubt arose whether to create this url by taking the value in HostName
>> element in carbon.xml or somewhere else.
>>
>> So the real doubt here is what is the correct way to configure the
>> HostName attribute in the carbon.xml in a carbon server. Is it going to be
>> the LB host's url which the deployment is exposed with or is it some local
>> host name internal to the deployment?
>>
>> --
>> *Chamara Ariyarathne*
>> Associate Technical Lead - QA
>> WSO2 Inc; http://www.wso2.com/
>> Mobile; *+94772786766 <%2B94772786766>*
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 DAS 3.0.0 issue: failed to get records from table

2015-11-11 Thread Jorge Infante
Hi Nayomi.

In my SO, windows8, I have not installed hadoop. The Hadoop binary installation 
is a requirement for DAS 3.0.0?

Thanks for your answer,
 Jorge.

-Mensaje original-
De: Nayomi Dayarathne [mailto:nay...@wso2.com] 
Enviado el: lunes, 9 de noviembre de 2015 9:45
Para: Jorge 
CC: Niranda Perera ; WSO2 Developers' List 
Asunto: Re: [Dev] WSO2 DAS 3.0.0 issue: failed to get records from table

Hi Jorge,

I would like to add a comment about one of the errors[1] you have mentioned in 
your mail.

[1] TID: [-1234] [] [2015-11-03 18:36:55,956] ERROR 
{org.apache.hadoop.util.Shell} -  Failed to locate the winutils binary in the 
hadoop binary path {org.apache.hadoop.util.Shell}
java.io.IOException: Could not locate executable null\bin\winutils.exe in the 
Hadoop binaries.

Above error is related to Hadoop.The error says some files that required for 
hadoop to run on your OS are missing.According to what i have found out about 
this, if you are using binary distribution of Apache Hadoop 2.2.0 on windows 
environment, this issue arises.
Please go through the below post[2] to find out more about this error.

[2]http://blog.intelligencecomputing.io/big_data/13878/repost-error-util-shell-failed-to-locate-the-winutils-binary-in-the-hadoop-binary-path


Regards,
Nayomi
Nayomi Dayarathne
Software Engineer-QA
Mobile : +94 (0) 775246619
nay...@wso2.com


On Mon, Nov 9, 2015 at 6:57 PM, Jorge  wrote:
> Hi Niranda, any idea about this issue?
>
> Regards,
>Jorge.
>
> 2015-11-03 19:43 GMT-05:00 Jorge :
>>
>> Hi Niranda,
>> I try with this query:  SELECT COUNT(temp) FROM 
>> temperaturasfechadesagregada
>>
>> And the result = 20596
>>
>> Attached the log with the errors and warnings, the main issues:
>>
>> The errors:
>>
>> TID: [-1234] [] [2015-11-03 18:36:55,956] ERROR 
>> {org.apache.hadoop.util.Shell} -  Failed to locate the winutils 
>> binary in the hadoop binary path {org.apache.hadoop.util.Shell}
>> java.io.IOException: Could not locate executable 
>> null\bin\winutils.exe in the Hadoop binaries.
>>
>> TID: [-1234] [] [2015-11-03 18:40:15,960]  INFO 
>> {org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost 
>> to url[https://169.254.56.94:9443/services/AnalyticsWebService]
>> {org.apache.axis2.transport.http.HTTPSender}
>> java.net.SocketTimeoutException: Read timed out
>> at java.net.SocketInputStream.socketRead0(Native Method)
>> at java.net.SocketInputStream.read(SocketInputStream.java:150)
>> at java.net.SocketInputStream.read(SocketInputStream.java:121)
>> at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
>> at sun.security.ssl.InputRecord.read(InputRecord.java:480)
>> at
>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
>> at
>> sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
>> at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
>> at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
>> at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
>> at
>> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
>> at
>> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
>> at
>> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
>> at
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
>> at
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
>> at
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>> at
>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:630)
>> at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
>> at
>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> 

Re: [Dev] Findbugs error on product-gw build

2015-11-11 Thread Kishanthan Thangarajah
Not sure if this is environment specific, but there is actually a unused
variable at
[org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
ChannelUtils.java:[line 95]

boolean wait =
channelLatch.await(bootstrapConfiguration.getConnectTimeOut(),
TimeUnit.MILLISECONDS);

The above variable "*wait*" is never used. This is what reported by
findbugs. Please fix this.

On Wed, Nov 11, 2015 at 5:42 PM, Madhuranga Bandara 
wrote:

> Hi,
>
> I have tried same on MAC OS with mvn 3.3.3 and
> findbugs-maven-plugin:3.0.2.
> I could build the product without any issue.
> i'm using java 8.
>
>
> *Madhuranga Sampath Bandara*
> Software Engineer
>
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
> Mobile: +94722241065
>
> On Wed, Nov 11, 2015 at 4:22 PM, Chanaka Fernando 
> wrote:
>
>> Madhuranga will look into this.
>>
>> On Wed, Nov 11, 2015 at 4:06 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Build is failing on MacOS with maven 3.3.3.
>>>
>>> [INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
>>> org.wso2.carbon.gateway ---
>>> [INFO] BugInstance size is 1
>>> [INFO] Error size is 0
>>> [INFO] Total bugs: 1
>>> *[INFO] Dead store to wait in
>>> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
>>> HttpRoute)
>>> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
>>> ChannelUtils.java:[line 95]*
>>> [INFO]
>>>
>>> To see bug detail using the Findbugs GUI, use the following command "mvn
>>> findbugs:gui"
>>>
>>> [INFO]
>>> 
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] org.wso2.carbon.gateway.parent . SUCCESS [
>>>  3.126 s]
>>> [INFO] org.wso2.carbon.gateway  FAILURE [
>>> 10.700 s]
>>> [INFO] WSO2 Carbon - Gateway Feature .. SKIPPED
>>> [INFO] WSO2 Gateway Server - Distribution . SKIPPED
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time: 14.602 s
>>> [INFO] Finished at: 2015-11-11T15:30:02+05:30
>>> [INFO] Final Memory: 55M/482M
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal
>>> org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
>>> project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 1]
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>> Thank you and Best Regards,
>> Chanaka Fernando
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>>
>>
>>
>>
>>
>


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-11 Thread Afkham Azeez
This is for information purposes only. The mail says the URL we send to the
users in the email contains local host. May be you can get the IP
address/host from the incoming request and use that.

On Wed, Nov 11, 2015 at 3:59 AM, Geeth Munasinghe  wrote:

> Hi Azeez,
>
> In case of URL rewrite by LB, can we handle that by the proxy settings on
> catalina-server.xml ?
>
> Thanks
> Geeth
>
>
>
>
>
>
> *G. K. S. Munasinghe*
> *Senior Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
> On Wed, Nov 11, 2015 at 2:10 PM, Afkham Azeez  wrote:
>
>> proxy host name
>>
>> On Wed, Nov 11, 2015 at 12:28 AM, Chamara Ariyarathne 
>> wrote:
>>
>>> Hi All,
>>>
>>> When a new user is added to EMM, the user will be notified with an email
>>> to subscribe a device to MDM domain. The email contains the server url to
>>> be accessed from the device.
>>>
>>> https://localhost:9443/mdm/enrollment
>>>
>>> In a usual deployment when a EMM cluster is fronted by a LB, this url
>>> should be changed to the particular gateway host of the deployment. Now a
>>> doubt arose whether to create this url by taking the value in HostName
>>> element in carbon.xml or somewhere else.
>>>
>>> So the real doubt here is what is the correct way to configure the
>>> HostName attribute in the carbon.xml in a carbon server. Is it going to be
>>> the LB host's url which the deployment is exposed with or is it some local
>>> host name internal to the deployment?
>>>
>>> --
>>> *Chamara Ariyarathne*
>>> Associate Technical Lead - QA
>>> WSO2 Inc; http://www.wso2.com/
>>> Mobile; *+94772786766 <%2B94772786766>*
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>


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

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

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

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


[Dev] Deadlock when updating permissions of a user-role in secondary user-store

2015-11-11 Thread Harshan Liyanage
Hi,

I'm getting the below exception (intermittent) when trying to update the
permissions of a user-role in a secondary user-store (Oracle JDBC
userstore). Found a similar bug [1] in Carbon 4.2.0.

[2015-11-11 19:17:32,508]  WARN
{org.wso2.carbon.registry.core.secure.AuthorizeRoleListener} -  Unable to
clear role authorization
org.wso2.carbon.user.core.UserStoreException: Using sql : DELETE FROM
UM_ROLE_PERMISSION WHERE UM_ROLE_NAME=? AND UM_PERMISSION_ID = (SELECT
UM_ID FROM UM_PERMISSION WHERE UM_RESOURCE_ID = ? AND UM_ACTION = ? AND
UM_TENANT_ID=?) AND UM_TENANT_ID=? AND UM_DOMAIN_ID=(SELECT UM_DOMAIN_ID
FROM UM_DOMAIN WHERE UM_TENANT_ID=? AND UM_DOMAIN_NAME=?) Deadlock
detected. The current transaction was rolled back. Details: "
Session #39 (user: WSO2CARBON) is waiting to lock PUBLIC.UM_ROLE_PERMISSION
while locking PUBLIC.UM_PERMISSION (exclusive).
Session #43 (user: WSO2CARBON) is waiting to lock PUBLIC.UM_PERMISSION
while locking PUBLIC.UM_ROLE_PERMISSION (exclusive)."; SQL statement:
DELETE FROM UM_ROLE_PERMISSION WHERE UM_ROLE_NAME=? AND UM_PERMISSION_ID =
(SELECT UM_ID FROM UM_PERMISSION WHERE UM_RESOURCE_ID = ? AND UM_ACTION = ?
AND UM_TENANT_ID=?) AND UM_TENANT_ID=? AND UM_DOMAIN_ID=(SELECT
UM_DOMAIN_ID FROM UM_DOMAIN WHERE UM_TENANT_ID=? AND UM_DOMAIN_NAME=?)
[40001-140]
at
org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:547)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.clearRoleAuthorization(JDBCAuthorizationManager.java:519)
at
org.wso2.carbon.registry.core.secure.AuthorizeRoleListener.clearRoleActionOnAllResources(AuthorizeRoleListener.java:126)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.clearRoleActionOnAllResources(JDBCAuthorizationManager.java:579)
at
org.wso2.carbon.registry.core.secure.AuthorizeRoleListener.clearRoleActionOnAllResources(AuthorizeRoleListener.java:113)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.clearRoleActionOnAllResources(JDBCAuthorizationManager.java:579)
at
org.wso2.carbon.user.mgt.UserRealmProxy.setRoleUIPermission(UserRealmProxy.java:2083)
at
org.wso2.carbon.user.mgt.UserAdmin.setRoleUIPermission(UserAdmin.java:511)
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.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.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.wso2.carbon.user.mgt.stub.UserAdminStub.setRoleUIPermission(UserAdminStub.java:878)
at
org.wso2.carbon.user.mgt.ui.UserAdminClient.setRoleUIPermission(UserAdminClient.java:209)
at
org.apache.jsp.role.edit_002dpermissions_002dfinish_jsp._jspService(edit_002dpermissions_002dfinish_jsp.java:114)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at

[Dev] [DSS] Removing the timezone information from the response

2015-11-11 Thread Niranda Perera
Hi all,
DSS (v 3.2.2) adds hosted server timezone to the time data types of
response.
Eg : 2014-01-11T06:00:00.000 will be converted in to
2014-01-11T06:00:00.000+05:30
Is there a way to avoid this when data does not contains timezone?

I tried setting the system variable -Duser.timezone=UTC, but that will
result in something like below.
2015-10-26T08:36:33.000+00:00

So the consumer will always see it as UTC/GMT time. In a scenario where DBs
are in different timezones, it will not be reflected in the service
response.

I found this public jira [1], and I wonder if this serves my purpose.

cheers

[1] https://wso2.org/jira/browse/DS-1069

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


[Dev] [IS][APPM] Identity version update from 4.5.6 to 5.0.2 in AppM

2015-11-11 Thread Sajith Abeywardhana
Hi IS team,

When I'm doing $subject I got below build failure message due to identity
version of the *org.wso2.carbon.identity.core* is 5.0.2.


​

So I try to update *org.wso2.carbon.identity.self.registration.server* feature
to version 5.0.2. But I couldn't find any greater version than 4.5.6. When
I inspect the commit history in IS repo[1] I found that
*org.wso2.carbon.identity.self.registration.server.feature* has been
renamed as* org.wso2.carbon.identity.user.registration.server.feature *in
several occasions. So instead of using
*org.wso2.carbon.identity.self.registration.server
*feature in AppM I update it as
*org.wso2.carbon.identity.user.registration.server
*feature. Please confirm is this correct or wrong. If it is wrong how could
I solve this?

[1].
https://github.com/wso2/carbon-identity/commit/eaade1ed135a5f13e91046417510fdd290b8f1f0


*Sajith Abeywardhana* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka.
Mobile: +94772260485
Email: saji...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Findbugs error on product-gw build

2015-11-11 Thread Afkham Azeez
Something wrong in the code. Handle the return boolean value.

On Wed, Nov 11, 2015 at 9:28 PM, Madhuranga Bandara 
wrote:

> Seems like this is a system dependant issue in findbugs.
> if i remove boolean wait. then it wont compile saying.
>
> [INFO] Return value of java.util.concurrent.CountDownLatch.await(long,
> TimeUnit) ignored in
> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
> HttpRoute)
> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
> ChannelUtils.java:[line 95]
>
>
>
> *Madhuranga Sampath Bandara*
> Software Engineer
>
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
> Mobile: +94722241065
>
> On Wed, Nov 11, 2015 at 6:50 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Not sure if this is environment specific, but there is actually a unused
>> variable at
>> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils]
>> At ChannelUtils.java:[line 95]
>>
>> boolean wait =
>> channelLatch.await(bootstrapConfiguration.getConnectTimeOut(),
>> TimeUnit.MILLISECONDS);
>>
>> The above variable "*wait*" is never used. This is what reported by
>> findbugs. Please fix this.
>>
>> On Wed, Nov 11, 2015 at 5:42 PM, Madhuranga Bandara 
>> wrote:
>>
>>> Hi,
>>>
>>> I have tried same on MAC OS with mvn 3.3.3 and
>>> findbugs-maven-plugin:3.0.2.
>>> I could build the product without any issue.
>>> i'm using java 8.
>>>
>>>
>>> *Madhuranga Sampath Bandara*
>>> Software Engineer
>>>
>>> WSO2, Inc.;http://wso2.com/
>>> 
>>> lean.enterprise.middleware
>>> Mobile: +94722241065
>>>
>>> On Wed, Nov 11, 2015 at 4:22 PM, Chanaka Fernando 
>>> wrote:
>>>
 Madhuranga will look into this.

 On Wed, Nov 11, 2015 at 4:06 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Build is failing on MacOS with maven 3.3.3.
>
> [INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
> org.wso2.carbon.gateway ---
> [INFO] BugInstance size is 1
> [INFO] Error size is 0
> [INFO] Total bugs: 1
> *[INFO] Dead store to wait in
> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
> HttpRoute)
> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] 
> At
> ChannelUtils.java:[line 95]*
> [INFO]
>
> To see bug detail using the Findbugs GUI, use the following command
> "mvn findbugs:gui"
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] org.wso2.carbon.gateway.parent . SUCCESS [
>  3.126 s]
> [INFO] org.wso2.carbon.gateway  FAILURE [
> 10.700 s]
> [INFO] WSO2 Carbon - Gateway Feature .. SKIPPED
> [INFO] WSO2 Gateway Server - Distribution . SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 14.602 s
> [INFO] Finished at: 2015-11-11T15:30:02+05:30
> [INFO] Final Memory: 55M/482M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
> project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 
> 1]
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com
> *
> Twitter - *http://twitter.com/kishanthan
> *
>



 --
 Thank you and Best Regards,
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya





>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, 

Re: [Dev] WSO2 DAS 3.0.0 issue: failed to get records from table

2015-11-11 Thread Nayomi Dayarathne
Hi Jorge,

DAS does not require hadoop binary installation.But it's analytics
framework depends on apache hadoop.Please go through the following link [1]
for DAS installation on windows.So that you can make sure that the cause of
the error is due to your configuration issues or not.Also, make sure you
have downloaded the product without missing any files too.

[1].https://docs.wso2.com/display/DAS300/Installing+on+Windows

Thanks.


Nayomi Dayarathne

*Software Engineer-QA*
Mobile : +94 (0) 775246619 <+94+(0)+775246619>

*nay...@wso2.com *

On Wed, Nov 11, 2015 at 7:56 PM, Jorge Infante  wrote:

> Hi Nayomi.
>
> In my SO, windows8, I have not installed hadoop. The Hadoop binary
> installation is a requirement for DAS 3.0.0?
>
> Thanks for your answer,
>  Jorge.
>
> -Mensaje original-
> De: Nayomi Dayarathne [mailto:nay...@wso2.com]
> Enviado el: lunes, 9 de noviembre de 2015 9:45
> Para: Jorge 
> CC: Niranda Perera ; WSO2 Developers' List  >
> Asunto: Re: [Dev] WSO2 DAS 3.0.0 issue: failed to get records from table
>
> Hi Jorge,
>
> I would like to add a comment about one of the errors[1] you have
> mentioned in your mail.
>
> [1] TID: [-1234] [] [2015-11-03 18:36:55,956] ERROR
> {org.apache.hadoop.util.Shell} -  Failed to locate the winutils binary in
> the hadoop binary path {org.apache.hadoop.util.Shell}
> java.io.IOException: Could not locate executable null\bin\winutils.exe in
> the Hadoop binaries.
>
> Above error is related to Hadoop.The error says some files that required
> for hadoop to run on your OS are missing.According to what i have found out
> about this, if you are using binary distribution of Apache Hadoop 2.2.0 on
> windows environment, this issue arises.
> Please go through the below post[2] to find out more about this error.
>
> [2]
> http://blog.intelligencecomputing.io/big_data/13878/repost-error-util-shell-failed-to-locate-the-winutils-binary-in-the-hadoop-binary-path
>
>
> Regards,
> Nayomi
> Nayomi Dayarathne
> Software Engineer-QA
> Mobile : +94 (0) 775246619
> nay...@wso2.com
>
>
> On Mon, Nov 9, 2015 at 6:57 PM, Jorge  wrote:
> > Hi Niranda, any idea about this issue?
> >
> > Regards,
> >Jorge.
> >
> > 2015-11-03 19:43 GMT-05:00 Jorge :
> >>
> >> Hi Niranda,
> >> I try with this query:  SELECT COUNT(temp) FROM
> >> temperaturasfechadesagregada
> >>
> >> And the result = 20596
> >>
> >> Attached the log with the errors and warnings, the main issues:
> >>
> >> The errors:
> >>
> >> TID: [-1234] [] [2015-11-03 18:36:55,956] ERROR
> >> {org.apache.hadoop.util.Shell} -  Failed to locate the winutils
> >> binary in the hadoop binary path {org.apache.hadoop.util.Shell}
> >> java.io.IOException: Could not locate executable
> >> null\bin\winutils.exe in the Hadoop binaries.
> >>
> >> TID: [-1234] [] [2015-11-03 18:40:15,960]  INFO
> >> {org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost
> >> to url[https://169.254.56.94:9443/services/AnalyticsWebService]
> >> {org.apache.axis2.transport.http.HTTPSender}
> >> java.net.SocketTimeoutException: Read timed out
> >> at java.net.SocketInputStream.socketRead0(Native Method)
> >> at java.net.SocketInputStream.read(SocketInputStream.java:150)
> >> at java.net.SocketInputStream.read(SocketInputStream.java:121)
> >> at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
> >> at sun.security.ssl.InputRecord.read(InputRecord.java:480)
> >> at
> >> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
> >> at
> >> sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
> >> at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
> >> at
> java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
> >> at
> java.io.BufferedInputStream.read(BufferedInputStream.java:254)
> >> at
> >> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
> >> at
> >> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
> >> at
> >>
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
> >> at
> >>
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
> >> at
> >>
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
> >> at
> >>
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
> >> at
> >>
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
> >> at
> >>
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
> >> at
> >>
> 

Re: [Dev] Findbugs error on product-gw build

2015-11-11 Thread Madhuranga Bandara
Seems like this is a system dependant issue in findbugs.
if i remove boolean wait. then it wont compile saying.

[INFO] Return value of java.util.concurrent.CountDownLatch.await(long,
TimeUnit) ignored in
org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
HttpRoute)
[org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
ChannelUtils.java:[line 95]



*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Wed, Nov 11, 2015 at 6:50 PM, Kishanthan Thangarajah  wrote:

> Not sure if this is environment specific, but there is actually a unused
> variable at
> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils]
> At ChannelUtils.java:[line 95]
>
> boolean wait =
> channelLatch.await(bootstrapConfiguration.getConnectTimeOut(),
> TimeUnit.MILLISECONDS);
>
> The above variable "*wait*" is never used. This is what reported by
> findbugs. Please fix this.
>
> On Wed, Nov 11, 2015 at 5:42 PM, Madhuranga Bandara 
> wrote:
>
>> Hi,
>>
>> I have tried same on MAC OS with mvn 3.3.3 and
>> findbugs-maven-plugin:3.0.2.
>> I could build the product without any issue.
>> i'm using java 8.
>>
>>
>> *Madhuranga Sampath Bandara*
>> Software Engineer
>>
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>> Mobile: +94722241065
>>
>> On Wed, Nov 11, 2015 at 4:22 PM, Chanaka Fernando 
>> wrote:
>>
>>> Madhuranga will look into this.
>>>
>>> On Wed, Nov 11, 2015 at 4:06 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Build is failing on MacOS with maven 3.3.3.

 [INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
 org.wso2.carbon.gateway ---
 [INFO] BugInstance size is 1
 [INFO] Error size is 0
 [INFO] Total bugs: 1
 *[INFO] Dead store to wait in
 org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
 HttpRoute)
 [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
 ChannelUtils.java:[line 95]*
 [INFO]

 To see bug detail using the Findbugs GUI, use the following command
 "mvn findbugs:gui"

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] org.wso2.carbon.gateway.parent . SUCCESS [
  3.126 s]
 [INFO] org.wso2.carbon.gateway  FAILURE [
 10.700 s]
 [INFO] WSO2 Carbon - Gateway Feature .. SKIPPED
 [INFO] WSO2 Gateway Server - Distribution . SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 14.602 s
 [INFO] Finished at: 2015-11-11T15:30:02+05:30
 [INFO] Final Memory: 55M/482M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
 project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 
 1]


 --
 *Kishanthan Thangarajah*
 Associate Technical Lead,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 *
 Twitter - *http://twitter.com/kishanthan
 *

>>>
>>>
>>>
>>> --
>>> Thank you and Best Regards,
>>> Chanaka Fernando
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 773337238
>>> Blog : http://soatutorials.blogspot.com
>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>> Twitter:https://twitter.com/chanakaudaya
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Blocker in IS authenticator

2015-11-11 Thread Shakila Sivagnanarajah
Hi all,

The NullPointerException that I mentioned in the first mail caused due to
empty authenticated user. Now I create an authenticated user like [1]. For
my case, I don't have any claims.

Here I used the tiqr user id as the authenticatedUserId.

Still this get failed. I enabled the debug mode log and get the following
log. And you can find the authenticator code in [3]. There is no
entry/association for this user id. Is this caused due to that? Can anyone
guide me to resolve this?

[1] AuthenticatedUser authenticatedUser =


AuthenticatedUser.createFederateAuthenticatedUserFromSubjectIdentifier(authenticatedUserId);

[2] log:

[2015-11-12 11:52:03,161] DEBUG
{org.wso2.carbon.identity.authenticator.TiqrAuthenticator} -
Authentication pending...

[2015-11-12 11:52:04,175] DEBUG
{org.wso2.carbon.identity.authenticator.TiqrAuthenticator} -  Successfully
authenticated the user associated with the User ID:shaki2

[2015-11-12 11:52:24,269] DEBUG
{org.wso2.carbon.identity.authenticator.TiqrAuthenticator} -  The
authenticated subject identifier :shaki2

[2015-11-12 11:52:35,072]  INFO
{org.wso2.carbon.identity.authenticator.TiqrAuthenticator} -
authentication success

[2015-11-12 11:52:43,128] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
-  Tiqr returned: SUCCESS_COMPLETED

[2015-11-12 11:53:41,323] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Step 2 is completed. Going to get the next one.

[2015-11-12 11:53:41,323] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  There are no more steps to execute

[2015-11-12 11:53:41,323] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Request is successfully authenticated

[2015-11-12 11:53:41,324] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Handling Post Authentication tasks

[2015-11-12 11:53:41,324] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Authenticated User: admin

[2015-11-12 11:53:41,324] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Authenticated User Tenant Domain: carbon.super

[2015-11-12 11:53:41,324] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler}
-  Executing claim handler. isFederatedClaims = false and remote claims = []

[2015-11-12 11:53:41,324] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
for user admin

[2015-11-12 11:53:41,325] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  value
after escaping special characters in admin : admin

[2015-11-12 11:53:41,328] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
for user with SearchFilter: (&(objectClass=person)(uid=admin)) in
SearchBase:

[2015-11-12 11:53:41,330] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Name in
space for admin is uid=admin,ou=Users,dc=WSO2,dc=ORG

[2015-11-12 11:53:41,331] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
admin exist: true

[2015-11-12 11:53:41,335] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
for user with SearchFilter: (&(objectClass=person)(uid=admin)) in
SearchBase:

[2015-11-12 11:53:41,335] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :uid

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :dateOfBirth

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :streetAddress

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :region

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :postalcode

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :localityName

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :organizationName

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :otherPhone

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :givenName

[2015-11-12 11:53:41,336] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :stateOrProvinceName

[2015-11-12 

Re: [Dev] Base64 encoding in jaggery

2015-11-11 Thread Dakshika Jayathilaka
Hi,

If your using jaggery sso module[1] you can use sso.client.b64encode() as
wel.

[1] https://github.com/wso2/jaggery-extensions/tree/master/sso

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Wed, Nov 11, 2015 at 4:38 PM, Kalpa Welivitigoda  wrote:

> Thanks all.
>
> On Wed, Nov 11, 2015 at 3:32 PM, Inshaf Mahath  wrote:
>
>> Hi Kalpa,
>>
>> You can try on JavaScript to encode and decode base64 string. You can
>> have a look on [1].
>>
>> [1]
>> http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript
>>
>>
>> Thanks with best regards,
>> Inshaf
>>
>> On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasa 
>> wrote:
>>
>>> Hi,
>>>
>>> Sorry for the typing mistake ...
>>>
>>> you can import the java method for Base64 encoding inside the jaggery
>>> and use it ...
>>>
>>> Regards,
>>>
>>> On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa 
>>> wrote:
>>>
 Hi,

 As far as i know there is no inbuilt method for jaggery   but u
 import the java method for Base64 encoding inside the jaggery and use 
 it

 Regards,

 On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda 
 wrote:

> Hi all,
>
> Is the $subject possible?
>
> My requirement is to encode username/password in Base64 to be used to
> call a REST API.
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Nipuna Marcus
 *Software Engineer*
 WSO2 Inc.
 http://wso2.com/ - "lean . enterprise . middleware"
 Mobile : +94 (0) 713 667906
 nipu...@wso2.com

>>>
>>>
>>>
>>> --
>>> Nipuna Marcus
>>> *Software Engineer*
>>> WSO2 Inc.
>>> http://wso2.com/ - "lean . enterprise . middleware"
>>> Mobile : +94 (0) 713 667906
>>> nipu...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inshaf Mahath
>>
>>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> ___
> 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


Re: [Dev] WSO2 DAS 3.0.0 issue: failed to get records from table

2015-11-11 Thread Sinthuja Ragendran
Hi all,

The installation guide seems bit outdated, we will update the
documentation, and the public JIRA reported [1] to track this.

@Jorge, actually you don't need hadoop or cygwin to run DAS in windows. Can
you please elaborate your setup? What is your record store, is it RDBMS (by
default H2 database) or HBase? If it's HBase then you may require to use
cygwin because it used the hadoop libraries as explained in [2], otherwise
it's not required to use cygwin.


[1] https://wso2.org/jira/browse/DOCUMENTATION-2700

[2] https://hbase.apache.org/cygwin.html

Thanks,
Sinthuja.

On Thu, Nov 12, 2015 at 11:12 AM, Nayomi Dayarathne  wrote:

> Hi Jorge,
>
> DAS does not require hadoop binary installation.But it's analytics
> framework depends on apache hadoop.Please go through the following link [1]
> for DAS installation on windows.So that you can make sure that the cause of
> the error is due to your configuration issues or not.Also, make sure you
> have downloaded the product without missing any files too.
>
> [1].https://docs.wso2.com/display/DAS300/Installing+on+Windows
>
> Thanks.
>
>
> Nayomi Dayarathne
>
> *Software Engineer-QA*
> Mobile : +94 (0) 775246619 <+94+(0)+775246619>
>
> *nay...@wso2.com *
>
> On Wed, Nov 11, 2015 at 7:56 PM, Jorge Infante 
> wrote:
>
>> Hi Nayomi.
>>
>> In my SO, windows8, I have not installed hadoop. The Hadoop binary
>> installation is a requirement for DAS 3.0.0?
>>
>> Thanks for your answer,
>>  Jorge.
>>
>> -Mensaje original-
>> De: Nayomi Dayarathne [mailto:nay...@wso2.com]
>> Enviado el: lunes, 9 de noviembre de 2015 9:45
>> Para: Jorge 
>> CC: Niranda Perera ; WSO2 Developers' List <
>> dev@wso2.org>
>> Asunto: Re: [Dev] WSO2 DAS 3.0.0 issue: failed to get records from table
>>
>> Hi Jorge,
>>
>> I would like to add a comment about one of the errors[1] you have
>> mentioned in your mail.
>>
>> [1] TID: [-1234] [] [2015-11-03 18:36:55,956] ERROR
>> {org.apache.hadoop.util.Shell} -  Failed to locate the winutils binary in
>> the hadoop binary path {org.apache.hadoop.util.Shell}
>> java.io.IOException: Could not locate executable null\bin\winutils.exe in
>> the Hadoop binaries.
>>
>> Above error is related to Hadoop.The error says some files that required
>> for hadoop to run on your OS are missing.According to what i have found out
>> about this, if you are using binary distribution of Apache Hadoop 2.2.0 on
>> windows environment, this issue arises.
>> Please go through the below post[2] to find out more about this error.
>>
>> [2]
>> http://blog.intelligencecomputing.io/big_data/13878/repost-error-util-shell-failed-to-locate-the-winutils-binary-in-the-hadoop-binary-path
>>
>>
>> Regards,
>> Nayomi
>> Nayomi Dayarathne
>> Software Engineer-QA
>> Mobile : +94 (0) 775246619
>> nay...@wso2.com
>>
>>
>> On Mon, Nov 9, 2015 at 6:57 PM, Jorge  wrote:
>> > Hi Niranda, any idea about this issue?
>> >
>> > Regards,
>> >Jorge.
>> >
>> > 2015-11-03 19:43 GMT-05:00 Jorge :
>> >>
>> >> Hi Niranda,
>> >> I try with this query:  SELECT COUNT(temp) FROM
>> >> temperaturasfechadesagregada
>> >>
>> >> And the result = 20596
>> >>
>> >> Attached the log with the errors and warnings, the main issues:
>> >>
>> >> The errors:
>> >>
>> >> TID: [-1234] [] [2015-11-03 18:36:55,956] ERROR
>> >> {org.apache.hadoop.util.Shell} -  Failed to locate the winutils
>> >> binary in the hadoop binary path {org.apache.hadoop.util.Shell}
>> >> java.io.IOException: Could not locate executable
>> >> null\bin\winutils.exe in the Hadoop binaries.
>> >>
>> >> TID: [-1234] [] [2015-11-03 18:40:15,960]  INFO
>> >> {org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost
>> >> to url[https://169.254.56.94:9443/services/AnalyticsWebService]
>> >> {org.apache.axis2.transport.http.HTTPSender}
>> >> java.net.SocketTimeoutException: Read timed out
>> >> at java.net.SocketInputStream.socketRead0(Native Method)
>> >> at java.net.SocketInputStream.read(SocketInputStream.java:150)
>> >> at java.net.SocketInputStream.read(SocketInputStream.java:121)
>> >> at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
>> >> at sun.security.ssl.InputRecord.read(InputRecord.java:480)
>> >> at
>> >> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
>> >> at
>> >> sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
>> >> at
>> sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
>> >> at
>> java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
>> >> at
>> java.io.BufferedInputStream.read(BufferedInputStream.java:254)
>> >> at
>> >>
>> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
>> >> at
>> >> 

[Dev] [BAM 2.5.0] BAM error when wifi connected (seems IPV6 issue)

2015-11-11 Thread Dushan Abeyruwan
Hi
  Any idea how to resolve this, as soon as wi-fi stopped its working, don't
have control to disable IPV6 in my local PC

I mean how we could instruct HBase not to look up IPV6 address?

r of reduce tasks not specified. Estimated from input data size: 1
In order to change the average load for a reducer (in bytes):
  set hive.exec.reducers.bytes.per.reducer=
In order to limit the maximum number of reducers:
  set hive.exec.reducers.max=
In order to set a constant number of reducers:
  set mapred.reduce.tasks=
log4j:WARN No appenders could be found for logger
(org.apache.axiom.util.stax.dialect.StAXDialectDetector).
log4j:WARN Please initialize the log4j system properly.
Execution log at:
/Users/xx/workspace/xxx/APIM/APIM19BAM/wso2bam-2.5.0/repository/logs//wso2carbon.log
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:199)
at
org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:168)
at
org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:227)
at
org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:453)
at
org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:431)
at org.apache.hadoop.fs.FileSystem$Cache$Key.(FileSystem.java:1420)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1319)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:226)
at org.apache.hadoop.fs.FileSystem.getLocal(FileSystem.java:197)
at org.apache.hadoop.hive.ql.exec.ExecDriver.main(ExecDriver.java:692)
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.hadoop.util.RunJar.main(RunJar.java:156)*
*Caused by: java.lang.NumberFormatException: For input string:
"558:feed::1"*
* at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)*
* at java.lang.Integer.parseInt(Integer.java:492)*
* at java.lang.Integer.parseInt(Integer.java:527)*
* at com.sun.jndi.dns.DnsClient.(DnsClient.java:125)*
* at com.sun.jndi.dns.Resolver.(Resolver.java:61)*
* at com.sun.jndi.dns.DnsContext.getResolver(DnsContext.java:570)*
* at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:430)*
* at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirC*
ontext.java:231)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:139)
at
com.sun.jndi.toolkit.url.GenericURLDirContext.getAttributes(GenericURLDirContext.java:103)
at
sun.security.krb5.KrbServiceLocator.getKerberosService(KrbServiceLocator.java:87)
at sun.security.krb5.Config.checkRealm(Config.java:1295)
at sun.security.krb5.Config.getRealmFromDNS(Config.java:1268)
at sun.security.krb5.Config.getDefaultRealm(Config.java:1162)
at org.apache.hadoop.security.KerberosName.(KerberosName.java:81)
... 15 more
Execution failed with exit status: 1
[2015-11-11 14:58:27,674] ERROR {org.apache.hadoop.hive.ql.exec.Task} -
 Execution failed with exit status: 1
Obtaining error information
[2015-11-11 14:58:27,675] ERROR {org.apache.hadoop.hive.ql.exec.Task} -
 Obtaining error information

Task failed!
Task ID:
  Stage-0

Logs:

-- 
Dushan Abeyruwan | Technical Lead

PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:*http://www.dushantech.com/ *
Mobile:(001)408-791-9312
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BAM 2.5.0] BAM error when wifi connected (seems IPV6 issue)

2015-11-11 Thread Dushan Abeyruwan
Already reported issue [1]

JDK bug seems.

I did start BAM 2.5.0 with JDK8v65 [2], then issue resolved, but we never
recommend CARBON 4.2.0 to start on JDK 8

[1] https://issues.apache.org/jira/browse/HADOOP-11582
[2] http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8086893

On Wed, Nov 11, 2015 at 3:06 PM, Dushan Abeyruwan  wrote:

> Hi
>   Any idea how to resolve this, as soon as wi-fi stopped its working,
> don't have control to disable IPV6 in my local PC
>
> I mean how we could instruct HBase not to look up IPV6 address?
>
> r of reduce tasks not specified. Estimated from input data size: 1
> In order to change the average load for a reducer (in bytes):
>   set hive.exec.reducers.bytes.per.reducer=
> In order to limit the maximum number of reducers:
>   set hive.exec.reducers.max=
> In order to set a constant number of reducers:
>   set mapred.reduce.tasks=
> log4j:WARN No appenders could be found for logger
> (org.apache.axiom.util.stax.dialect.StAXDialectDetector).
> log4j:WARN Please initialize the log4j system properly.
> Execution log at:
> /Users/xx/workspace/xxx/APIM/APIM19BAM/wso2bam-2.5.0/repository/logs//wso2carbon.log
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:199)
> at
> org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:168)
> at
> org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:227)
> at
> org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:453)
> at
> org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:431)
> at org.apache.hadoop.fs.FileSystem$Cache$Key.(FileSystem.java:1420)
> at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1319)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:226)
> at org.apache.hadoop.fs.FileSystem.getLocal(FileSystem.java:197)
> at org.apache.hadoop.hive.ql.exec.ExecDriver.main(ExecDriver.java:692)
> 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.hadoop.util.RunJar.main(RunJar.java:156)*
> *Caused by: java.lang.NumberFormatException: For input string:
> "558:feed::1"*
> * at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)*
> * at java.lang.Integer.parseInt(Integer.java:492)*
> * at java.lang.Integer.parseInt(Integer.java:527)*
> * at com.sun.jndi.dns.DnsClient.(DnsClient.java:125)*
> * at com.sun.jndi.dns.Resolver.(Resolver.java:61)*
> * at com.sun.jndi.dns.DnsContext.getResolver(DnsContext.java:570)*
> * at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:430)*
> * at
> com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirC*
> ontext.java:231)
> at
> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:139)
> at
> com.sun.jndi.toolkit.url.GenericURLDirContext.getAttributes(GenericURLDirContext.java:103)
> at
> sun.security.krb5.KrbServiceLocator.getKerberosService(KrbServiceLocator.java:87)
> at sun.security.krb5.Config.checkRealm(Config.java:1295)
> at sun.security.krb5.Config.getRealmFromDNS(Config.java:1268)
> at sun.security.krb5.Config.getDefaultRealm(Config.java:1162)
> at org.apache.hadoop.security.KerberosName.(KerberosName.java:81)
> ... 15 more
> Execution failed with exit status: 1
> [2015-11-11 14:58:27,674] ERROR {org.apache.hadoop.hive.ql.exec.Task} -
>  Execution failed with exit status: 1
> Obtaining error information
> [2015-11-11 14:58:27,675] ERROR {org.apache.hadoop.hive.ql.exec.Task} -
>  Obtaining error information
>
> Task failed!
> Task ID:
>   Stage-0
>
> Logs:
>
> --
> Dushan Abeyruwan | Technical Lead
>
> PMC Member Apache Synpase
> WSO2 Inc. http://wso2.com/
> Blog:*http://www.dushantech.com/ *
> Mobile:(001)408-791-9312
>
>


-- 
Dushan Abeyruwan | Technical Lead

PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:*http://www.dushantech.com/ *
Mobile:(001)408-791-9312
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] Unable to build Released Docker base image Pack

2015-11-11 Thread Imesh Gunaratne
On Tue, Nov 10, 2015 at 10:58 PM, Reka Thirunavukkarasu 
wrote:


> Also, it would be better, if the docker image could be built even without
> phython agent as in standalone, python agent is not needed. So, it is an
> additional step to download python agent and locate it in the docker image
> for a standalone docker image user. WDYT?
>
> Currently this is not possible. If needed user needs to update the
Dockerfile and remove commands related to PCA. What Private PaaS ships is a
Dockerfile which would work with both Private PaaS and standalone Docker.
That's why we have included PCA by default.

Thanks


> [1]
> http://product-dist.wso2.com/downloads/private-paas/4.1.0/cartridges/common/wso2ppaas-cartridges-docker-base-image-4.1.1.zip
>
> Thanks,
> Reka
>
> --
> Reka Thirunavukkarasu
> Senior Software Engineer,
> WSO2, Inc.:http://wso2.com,
> Mobile: +94776442007
>
>
>


-- 
*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] MSS helloworld sample can't build in clean repo

2015-11-11 Thread Samiyuru Senarathne
+1 for pushing the pom to Maven central. That will provide transparent
access to all required artifacts and make the MSS project building very
easy.

On Wed, Nov 11, 2015 at 1:10 PM, Afkham Azeez  wrote:

> Can we push that pom to Maven central?
>
> On Tue, Nov 10, 2015 at 11:31 PM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Wed, Nov 11, 2015 at 12:46 PM, Afkham Azeez  wrote:
>>
>>> sample pom --> mss-service-parent-pom --> mss-parent-pom -> wso2-pom
>>>
>>> So, sample pom should inherit the WSO2 repo right?
>>>
>>
>> Yes. the above inheritance is correct.
>>
>> But when building the sample, AFAIU the following artifact is searched in
>> the maven central repo. So the sample pom has no idea about the mss-service
>> parent?
>>
>> 
>> mss-service-parent
>> org.wso2.carbon.mss
>> 1.0.0-alpha
>> 
>>
>>
>>> On Tue, Nov 10, 2015 at 11:13 PM, Aruna Karunarathna 
>>> wrote:
>>>


 On Wed, Nov 11, 2015 at 12:40 PM, Afkham Azeez  wrote:

> Since we are extending from the wso2 pom, don't we automatically
> inherit the repo?
>
 Yes, for the git repository it does. But the sample inside the
 distribution there is no inheritance.


> On Tue, Nov 10, 2015 at 11:06 PM, Aruna Karunarathna 
> wrote:
>
>> Without building the product-mss repo, can't build the helloworld
>> sample. [1]
>>
>> After adding the wso2-nexus repo was able to build. I think we need
>> to mention in the docs for alpha release and fix this properly in next
>> release.
>>
>> Following changes required to build in clean repo.
>>
>> 1. Remove the relative path in the pom.xml.
>> 2. add the wso2-nexus repository.
>> 
>> 
>> wso2-nexus
>> WSO2 internal Repository
>> http://maven.wso2.org/nexus/content/groups/wso2-public/
>> 
>>
>> true
>> daily
>> ignore
>> 
>> 
>> 
>>
>>
>> [1].
>> https://github.com/wso2/product-mss/blob/release-1.0.0-alpha/samples/helloworld/pom.xml
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



 --

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


>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Samiyuru Senarathne
*Software Engineer*
Mobile :