Re: [Dev] [VOTE] Release of WSO2 IoT Server 3.1.0 RC version 4

2017-08-12 Thread ayyoob hamza
Hi,

I have tested following functionalities

   - Create Device Type with HTTP transport
   - Create Device Type with MQTT transport
   - Create device instances for above device types
   - Publish device events
   - Device operation flow.
   - Sample installation and virtual firealarm flow.
   - Android enrollment
   - Connected cup flow.

Found no issues.

[+] Stable - go ahead and release.

On Fri, Aug 11, 2017 at 11:36 PM, Milan Perera  wrote:

> Hi Devs,
>
> We are pleased to announce the release candidate version 4 of WSO2 IoT Server
> 3.1.0.
>
> Please download, test the product and vote. Vote will be open for 72 hours
> or as needed.
>
> Known issues : https://github.com/wso2/product-iots/issues-RC4
> 
>
> Source and binary distribution files:
> https://github.com/wso2/product-iots/releases/tag/v3.1.0-RC4
>
> The tag to be voted upon:
> https://github.com/wso2/product-iots/tree/v3.1.0-RC4
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
> Thank you
>
> Regards,
> --
> *Milan Perera *| Senior Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
> Email: mi...@wso2.com  | Web: www.wso2.com
> 
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IoTS] how to enable CORS in IOTS (for example: alpha version)

2017-06-19 Thread Ayyoob Hamza
> Thank you very much. Can I change the tomcat web.xml file and add the CORS
> filter to implement this requirement as a workaround?
>
Yes, You can find the code in [1]

[1]
https://github.com/wso2/carbon-device-mgt/tree/v1.1.0/components/identity-extensions/dynamic-client-registration
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IoTS] how to enable CORS in IOTS (for example: alpha version)

2017-06-19 Thread Ayyoob Hamza
Hi Zhanwen,

The CORS configuration in api-manager.xml is related to the synapse gateway
(default port 8243/8280). But the API invocation through port 9443 goes
through tomcat gateway(valve). Therefore the configuration change that you
did won't work on the alpha pack. However, this should work if you access
it through 8243 but you need to try this on the IoTS 3.0.0 pack since
synapse gateway was not supported during the alpha release. In addition app
creation endpoint https://:9443/dynamic-client-web/register/ is
not supported from IoTS 3.0.0 RC, instead of "dynamic-client-web/register/"
we have to use the endpoint given in the below curl command to create
application.

curl -k -X POST https://localhost:8243/api-application-registration/register
-H 'authorization: Basic YWRtaW46YWRtaW4=' -H 'content-type:
application/json' -d '{ "applicationName":"appName",
"tags":["device_management"]}'

Thanks

*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Tue, Jun 20, 2017 at 7:33 AM, 云展智创 <i...@smartcloudex.com> wrote:

> Hi team,
>
> I had changed the api-manager.xml with the following setting, but I still
> got the errors below:
>
>
> XMLHttpRequest cannot load 
> https://:9443/dynamic-client-web/register/.
> Response to preflight request doesn't pass access control check: No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> Origin 'http://localhost:63342' is therefore not allowed access. The
> response had HTTP status code 500.
>
> I want to use the api https://:9443/dynamic-client-web/register/
> to get the client secret and client id and then to get access token with
> oauth2/token
>
> Could you tell me how to setup CORS in IOTS?
>
> Thanks.
> --
> Zhanwen Zhou (Jason)
> +86 13922218435 <+86%20139%202221%208435>
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: IOT, API Management
>
>
> ___
> 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] [IOTS] MQTTAdapterListener Failed to create an https connection after change the SSL certificate in wso2carbon.jks in IOTS alpha version

2017-05-26 Thread Ayyoob Hamza
Hi Jason,

It seems like there is a configuration issue. Could you please make sure to
follow below steps to ensure the configs are in order.

Once you create the new keys you can follow [1] to configure it. If you
have created a new hostname in the process of generating the new keys then
you might need to follow [2] as well.

In addition to above, if you have changed the IP and the keys then you
might need to check below configs as well.

1) If you have changed the alias of the default cert from wso2carbon then
make sure to enter the new values to the files listed in [1]. In addition,
make sure to change the "wso2carbon" alias to the new alias in the below
files.

core/repository/deployment/server/jaggeryapps/portal/configs/designer.json
(identityAlias)
core/repository/deployment/server/jaggeryapps/devicemgt/app/conf/app-conf.json
(identityAlias)
core/repository/conf/etc/webapp-authenticator-config.xml (there would be 3
entries)

2) wso2 IoT server uses JWT token for the server to server communication.
If you have changed the cert then could it be possible to update the
identity provider(IDP) with the new cert?. please follow below steps to
update the IDP.

2.1) export the public cert to pem format (if it is not already in the pem
format)

openssl x509 -inform DER -outform PEM -in mycert.cert -out server.crt.pem

2.2) Open server.crt.pem and copy the content between BEGIN CERTIFICATE and
END CERTIFICATE and replace the  element in the file based
IDP, which can be found in "core/repository/conf/
identity/identity-providers/iot_default.xml"

3) replace localhost for below entries in core/bin/wso2server.sh

-Diot.keymanager.host="wso2.exterminator.com" \

-Diot.gateway.host="wso2.exterminator.com" \

-Diot.core.host="wso2.exterminator.com" \

4) Set "true" to "EnabledUpdateApi"  in the file -
"core/repository/conf/etc/webapp-publisher-config.xml". This will republish
all the APIs with the new host.

5) In the 
"core/repository/deployment/server/jaggeryapps/portal/configs/designer.json",
Replace localhost to wso2.prokino.nl in the below json entry.

"host": {
"hostname": "wso2.prokino.nl",
"port": "",
"protocol": ""
  }

[1] https://docs.wso2.com/display/IoTS300/Configuring+Keystores+
in+WSO2+Products

[2] https://docs.wso2.com/display/IoTS300/Configuring+WSO2+IoT+
Server+with+the+IP

*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IOTS] MQTTAdapterListener Failed to create an https connection after change the SSL certificate in wso2carbon.jks in IOTS alpha version

2017-05-12 Thread Ayyoob Hamza
Hi Jason,

After IoTS alpha, we have changed a lot in the configurations and we have
streamlined the configs for the endpoints to environment variables which
are in the startup script. In addition, we have few configuration that is
been documented in [1].

However for the second issue that you have raised is due to not updating
the identity provider for the new cert. You need to add the new cert to the
default IoT identity provider config that is available in
conf/identity/identity-providers

[1] https://docs.wso2.com/display/IoTS300/Configuring+
WSO2+IoT+Server+with+the+IP

Thanks,
Ayyoob

*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Tenant specific receiver deploys before the streams and becomes inactive

2017-05-11 Thread Ayyoob Hamza
I was able to reproduce this on DAS-3.1.0, I'll further analyze this and
will update about this.

*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Thu, May 11, 2017 at 4:10 PM, Ayyoob Hamza <ayy...@wso2.com> wrote:

> Hi Damith,
>
> Tried in cep 4.2.0 and couldn't reproduce it. May I know the version ? I
>> believe after creating the artifacts you just restarted the server and
>> tried to logged into the tenant ?
>>
>
> We are trying to load the tenant from the tenant specific reciever in
> super tenant space with the fix suggested from the email [1]. However the
> behaviour would similar to what you have mentioned. I can reproduce the
> issue through the login as well.
>
> We are using the analytics commons version 5.1.17.
>
> [1] tenant specific MQTT receivers in DAS , not listening to topics once
> tenant get unloaded
>
> Thanks,
> Ayyoob
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Tenant specific receiver deploys before the streams and becomes inactive

2017-05-11 Thread Ayyoob Hamza
Hi Damith,

Tried in cep 4.2.0 and couldn't reproduce it. May I know the version ? I
> believe after creating the artifacts you just restarted the server and
> tried to logged into the tenant ?
>

We are trying to load the tenant from the tenant specific reciever in super
tenant space with the fix suggested from the email [1]. However the
behaviour would similar to what you have mentioned. I can reproduce the
issue through the login as well.

We are using the analytics commons version 5.1.17.

[1] tenant specific MQTT receivers in DAS , not listening to topics once
tenant get unloaded

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


[Dev] Tenant specific receiver deploys before the streams and becomes inactive

2017-05-10 Thread Ayyoob Hamza
Hi All,

In a multi-tenant flow when a tenant loads up then It deploys event
receiver artifacts before deploying the stream, because of this the
receiver becomes inactive.  however, the receiver deploys if we manually
activate it after the stream is loaded.

Could it be possible to load the inactive receivers after the streams are
deployed through the code?. Have we come across this scenario in a
multi-tenant environment, if so is there any alternative solution.

Thanks
*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] ValueEvent exception occurred on disruptor for MQTT

2017-04-27 Thread Ayyoob Hamza
Hi Pamod,

I'll enable those logs and will do another run, But it might take couple of
weeks to reproduce this.

Thanks,
Ayyoob

*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Thu, Apr 27, 2017 at 8:18 PM, Pamod Sylvester <pa...@wso2.com> wrote:

> We've not come across this issue before.
>
> it seems, this has occurred in one of the disruptor handlers in Moquette.
> Shall we enable debug/tracing logs in Moquette side to further drill down
> the issue,
>
> The following logs will be useful,
>
>  1. org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging
>  2. org.dna.mqtt.moquette.messaging.spi.impl.ProtocolProcessor
>
> Thanks,
> Pamod
>
> On Thu, Apr 27, 2017 at 6:59 PM, Sumedha Rubasinghe <sume...@wso2.com>
> wrote:
>
>> MB guys,
>> You can consider this as a real production issue. We have been running
>> the server for few weeks now.
>>
>> On Thu, Apr 27, 2017 at 4:22 PM, Ayyoob Hamza <ayy...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> We did a long running test for a couple of weeks and in MB we see
>>> following logs getting printed continuously and devices are failing to
>>> publish data. Is this a known issue?
>>>
>>> TID: [] [] [2017-04-27 16:03:21,390] ERROR 
>>> {org.dna.mqtt.wso2.MQTTLogExceptionHandler}
>>> -  ValueEvent exception occurred on disruptor.
>>> {org.dna.mqtt.wso2.MQTTLogExceptionHandler}
>>> java.lang.NullPointerException
>>>
>>>
>>> Thanks,
>>> *Ayyoob Hamza*
>>> *Senior Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> /sumedha
>> m: +94 773017743 <077%20301%207743>
>> b :  bit.ly/sumedha
>>
>
>
>
> --
> *Pamod Sylvester *
>
> *WSO2 Inc.; http://wso2.com <http://wso2.com>*
> cell: +94 77 7779495 <+94%2077%20777%209495>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] ValueEvent exception occurred on disruptor for MQTT

2017-04-27 Thread Ayyoob Hamza
Hi All,

We did a long running test for a couple of weeks and in MB we see following
logs getting printed continuously and devices are failing to publish data.
Is this a known issue?

TID: [] [] [2017-04-27 16:03:21,390] ERROR
{org.dna.mqtt.wso2.MQTTLogExceptionHandler}
-  ValueEvent exception occurred on disruptor. {org.dna.mqtt.wso2.
MQTTLogExceptionHandler}
java.lang.NullPointerException


Thanks,
*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] ValueEvent exception occurred on disruptor for MQTT

2017-04-27 Thread Ayyoob Hamza
Please note this works after restarting the server.

*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Thu, Apr 27, 2017 at 4:22 PM, Ayyoob Hamza <ayy...@wso2.com> wrote:

> Hi All,
>
> We did a long running test for a couple of weeks and in MB we see
> following logs getting printed continuously and devices are failing to
> publish data. Is this a known issue?
>
> TID: [] [] [2017-04-27 16:03:21,390] ERROR 
> {org.dna.mqtt.wso2.MQTTLogExceptionHandler}
> -  ValueEvent exception occurred on disruptor.
> {org.dna.mqtt.wso2.MQTTLogExceptionHandler}
> java.lang.NullPointerException
>
>
> Thanks,
> *Ayyoob Hamza*
> *Senior Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Incorrect resource mapping during api invokation when a resource with "/*" exists.

2017-04-25 Thread Ayyoob Hamza
Thanks, Nuwan.

Ayoob, both these resources are valid for the request you are sending. You
> can't say one is wrong and the other is right. What you're expecting is
> like a best match scenario, which synapse doesn't support at the moment. It
> should be possible to implement it using a scoring mechanism or something
> like that, but it'll definitely impact performance.
>
> From a REST point of view, its an invalid design. So my question is why
> bother anyway? Do you really have resource paths that are impossible to
> determine at design time?
>
We do have a root resource name which is binded to the api endpoint
context.

I think since we have a restriction to support the best matching, its best
for us to go through our api design to cater the way that synapse is
supporting.

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


[Dev] [APIM] Incorrect resource mapping during api invokation when a resource with "/*" exists.

2017-04-24 Thread Ayyoob Hamza
Hi All,

In IoTS, We have exposed all the APIs through the API manager. In a
particular API, we have 2 API resources

1) POST /* with a scope X1
2) POST /{type}/operations with a scope X2.

When we invoke the second resource, API call ends up going to the first one
in the synapse layer. However after synapse forwards it to the backend, it
ends up to the correct resource in the Jax-rs.
The issue we are facing in here is that during scope validation it picks up
the wrong resource.

So this made me wondered why is the mapping is correctly evaluated in the
tomcat but not in the synapse layer. Do we have a bug here? or was it an
architecture decision to go with the first matching resource.

Are there any solutions to pick the best possible matching resource in the
synapse layer?

Thanks
*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSF4J Websocket security token transmit

2017-04-21 Thread Ayyoob Hamza
Hi
What would be solution if we are to initiate the connection from the
browser itself, AFAIK websocket library for browsers does not support
adding headers.

Thanks,

*Ayyoob Hamza*
*Senior Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Fri, Apr 21, 2017 at 11:32 AM, Irunika Weeraratne <irun...@wso2.com>
wrote:

> Hi Godwin,
> IMHO the best way to do it using HTTP header. Are you using netty
> directly? If that so there is a way to add necessary headers for the
> initial handshake and we can check them in the server side.
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
> *Email : irun...@wso2.com <irun...@wso2.com>*
> *LinkedIn : https://lk.linkedin.com/in/irunika
> <https://lk.linkedin.com/in/irunika>*
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Fri, Apr 21, 2017 at 11:27 AM, Arshardh Ifthikar <arsha...@wso2.com>
> wrote:
>
>> You can find it here: https://docs.wso2.com/display/
>> AM210/Create+a+WebSocket+API
>>
>> Thanks
>>
>> On Fri, Apr 21, 2017 at 11:24 AM, Godwin Shrimal <god...@wso2.com> wrote:
>>
>>> Can you please share the relevant API Manager source ?
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Fri, Apr 21, 2017 at 11:22 AM, Arshardh Ifthikar <arsha...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> IMHO the best approach would be to send it via a header in the initial
>>>> HTTP request used to establish the connection. This is the method we follow
>>>> to send the access token for websocket APIs in the API Manager.
>>>>
>>>> Thanks
>>>> Arshardh
>>>>
>>>> On Fri, Apr 21, 2017 at 11:11 AM, Godwin Shrimal <god...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> What is the best way to transmit a security token in web socket while
>>>>> establishing a connection ? Currently we are passing through path 
>>>>> parameter
>>>>> such as wss://localhost:8080/server/
>>>>>
>>>>> Is it secure to sent it via path parameter ? If not what is the
>>>>> correct approach ?
>>>>>
>>>>>
>>>>> Thanks
>>>>> Godwin
>>>>>
>>>>> --
>>>>> *Godwin Amila Shrimal*
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> mobile: *+94772264165*
>>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>>> twitter: https://twitter.com/godwinamila
>>>>> <http://wso2.com/signature>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Arshardh Ifthikar*
>>>> Trainee Software Engineer
>>>> WSO2, Inc.
>>>> Mobile: +94719806525 <+94%2071%20980%206525>
>>>>
>>>
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>> twitter: https://twitter.com/godwinamila
>>> <http://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> *Arshardh Ifthikar*
>> Trainee Software Engineer
>> WSO2, Inc.
>> Mobile: +94719806525 <+94%2071%20980%206525>
>>
>
>
> ___
> 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] [IoTS] Can not open management console of broker server with the port 9446 in IoTS 3.0.0 release

2017-02-03 Thread Ayyoob Hamza
Hi Zhanwen,

we blocked broker console UI intentionally since there are no use of
exposing broker carbon console. In the current released version we don't
have any UI for mqtt.

Thanks.

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Fri, Feb 3, 2017 at 2:41 PM, 云展智创 <i...@smartcloudex.com> wrote:

> Hi team,
>
> After I started the broker server of IoTS, I opened the management console
> of it and got the following errors. Is that right?
> https://localhost:9446/carbon/
>
>
> btw, I could successfully open and login the management console of core
> and analytics server.
>
> Thanks.
>
> --
> Zhanwen Zhou (Jason),
> +86 13922218435 <+86%20139%202221%208435>
> zhanwen.z...@smartcloudex.com
> Business: IOT, API
>
>
>
> ___
> 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] Error while validating the signature in SAML Grant Type

2017-01-22 Thread Ayyoob Hamza
After having a offline discussion with Johann, decided to go with a custom
grant type approach by extending the saml grant type impl.


*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Tue, Jan 17, 2017 at 9:45 AM, Ayyoob Hamza <ayy...@wso2.com> wrote:

> Hi All,
>
> This is an update to provide more context to the problem.
>
> Currently in IoT Server we have device type apis for each tenants that are
> exposed through api manager. In order to access it we create an AM
> Application and then we subscribe to the tenants apis. This works fine when
> we use the password grant type.
>
> Now when we tried to integrate with sso, we login to the service provider
> (configured for sso with SAAS enabled) and it generates saml token that is
> signed with super tenants key store. Then we use this saml token along with
> the tenants specific app to generate oauth token. In this case it tries to
> verify the signature using the tenants key store and it fails.
>
> After having a offline discussion with Farasath, figured that there could
> be two possible solution:
> 1) create an IDP with super tenants public cert for each tenant. The
> problem in this is if we are to update the key store of super tenants then
> we have to update the IDP of all the tenants.
>
> 2) Create a custom grant type that verifies using super tenants key store.
> the downside is to maintain a separate grant type handler.
>
> Is it okay to create a custom grant type or is there any solutions for
> this ?.
>
> Thanks,
> Ayyoob
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Sun, Jan 15, 2017 at 9:53 PM, Ayyoob Hamza <ayy...@wso2.com> wrote:
>
>>
>> Is the service provider created in super tenant and the rest of tenants
>>> access it as a SaaS app?
>>>
>> Yes.
>>
>>>
>>> Also what is oauth component version used in IoT server?
>>>
>> 5.1.2
>>
>> Is there any solution other than writing a custom grant type for this
>> since in the current grant type implementation it looks up for the IDP in
>> the tenant space
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 IoT Server 3.0.0 RC2

2017-01-20 Thread Ayyoob Hamza
Hi All,

I have tested following:

   - Tested below flows using the reference device types
   implementation(Virtual firealarm, Connected cup, Raspberry pi).
   - Operation flow
  - Policy
  - Batch Analytics
  - Real time analytics
   - Tested Android Device Management APIs
   - Tested maven archtype for tooling
   - Created a new device type by generating through the the maven arch
   type.
   - Tested Operation flow
  - Batch Analytics
  - Realtime analytics
   - Tested the distributed setup (Mqtt Gateway, Http Gateway, Device Type
   Publisher, Key Manager, Analytics, Mysql).
   - Tested Android Apis in a distributed environment.
  - Virtual firealarm Enrollment and operation flow
   - Role Management.

[+] Stable-go ahead and release.

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


Re: [Dev] Error while validating the signature in SAML Grant Type

2017-01-16 Thread Ayyoob Hamza
Hi All,

This is an update to provide more context to the problem.

Currently in IoT Server we have device type apis for each tenants that are
exposed through api manager. In order to access it we create an AM
Application and then we subscribe to the tenants apis. This works fine when
we use the password grant type.

Now when we tried to integrate with sso, we login to the service provider
(configured for sso with SAAS enabled) and it generates saml token that is
signed with super tenants key store. Then we use this saml token along with
the tenants specific app to generate oauth token. In this case it tries to
verify the signature using the tenants key store and it fails.

After having a offline discussion with Farasath, figured that there could
be two possible solution:
1) create an IDP with super tenants public cert for each tenant. The
problem in this is if we are to update the key store of super tenants then
we have to update the IDP of all the tenants.

2) Create a custom grant type that verifies using super tenants key store.
the downside is to maintain a separate grant type handler.

Is it okay to create a custom grant type or is there any solutions for this
?.

Thanks,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Sun, Jan 15, 2017 at 9:53 PM, Ayyoob Hamza <ayy...@wso2.com> wrote:

>
> Is the service provider created in super tenant and the rest of tenants
>> access it as a SaaS app?
>>
> Yes.
>
>>
>> Also what is oauth component version used in IoT server?
>>
> 5.1.2
>
> Is there any solution other than writing a custom grant type for this
> since in the current grant type implementation it looks up for the IDP in
> the tenant space
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while validating the signature in SAML Grant Type

2017-01-15 Thread Ayyoob Hamza
> Is the service provider created in super tenant and the rest of tenants
> access it as a SaaS app?
>
Yes.

>
> Also what is oauth component version used in IoT server?
>
5.1.2

Is there any solution other than writing a custom grant type for this since
in the current grant type implementation it looks up for the IDP in the
tenant space
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IoTS] what's the complete steps to change the admin password in IoTS alpha version

2016-12-24 Thread Ayyoob Hamza
Hi Zhanwen,

The issue seems to be in the broker configuration. If you are using
IoTS-Alpha, there is a configuration issue which was fixed in the later
release[1]. The issue was username and password field for mqtt
configuration in broker.xml is been read as password and username
respectively.

[1] https://wso2.org/jira/browse/MB-1715

Thanks,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Fri, Dec 23, 2016 at 11:45 AM, 云展智创 <i...@smartcloudex.com> wrote:

> Hi all,
>
> Could you tell me what’s the complete steps to change the admin password
> in IoTS alpha version? I had changed almost all the default admin password
> in configuration files but still got lots of following errors (for example,
> I change the password to smart):
>
> [2016-12-23 14:13:55,169]  WARN - CarbonAuthenticationUtil Failed
> Administrator login attempt 'smart[-1234]' at [2016-12-23 14:13:55,169+0800]
> [2016-12-23 14:13:55,169]  WARN - AuthenticationHandler Illegal access
> attempt at [2016-12-23 14:13:55,0169] from IP address 127.0.0.1 while
> trying to authenticate access to service OAuth2TokenValidationService
> [2016-12-23 14:13:55,170] ERROR - OAuth2BasedMQTTAuthenticator Error on
> connecting with the validation endpoint.
> org.apache.axis2.AxisFault: Access Denied. Authentication failed - Invalid
> credentials provided.
> at org.apache.axis2.util.Utils.getInboundFaultFromMessageCont
> ext(Utils.java:531)
> at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:370)
> at org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:445)
> at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:225)
> at org.apache.axis2.client.OperationClient.execute(
> OperationClient.java:149)
> at org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceSt
> ub.validate(OAuth2TokenValidationServiceStub.java:461)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.getAuthenticationInfo(
> OAuth2BasedMQTTAuthenticator.java:126)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.validateToken(OAuth2BasedMQTTAuthenticator.
> java:82)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.checkValid(OAuth2BasedMQTTAuthenticator.
> java:62)
> at org.dna.mqtt.moquette.messaging.spi.impl.ProtocolProcessor.
> processConnect(ProtocolProcessor.java:256)
> at org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging.onEvent(
> SimpleMessaging.java:160)
> at org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging.onEvent(
> SimpleMessaging.java:47)
> at com.lmax.disruptor.BatchEventProcessor.run(
> BatchEventProcessor.java:128)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> [2016-12-23 14:13:55,170]  INFO - ProtocolProcessor Lost connection with
> client paho6643675267853545
> [2016-12-23 14:13:55,171]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho6643675267853545 is not removed
> since the entry does not exist
> [2016-12-23 14:13:55,171]  INFO - ProtocolProcessor Lost connection with
> client paho6643673511277781
> [2016-12-23 14:13:55,171]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho6643673511277781 is not removed
> since the entry does not exist
> [2016-12-23 14:13:55,172]  INFO - ProtocolProcessor Lost connection with
> client paho6643673893486011
> [2016-12-23 14:13:55,172]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho6643673893486011 is not removed
> since the entry does not exist
> [2016-12-23 14:13:55,172] ERROR - MQTTAdapterListener MQTT Exception
> occurred when starting listener
> Bad user name or password (4)
> at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.
> createMqttException(ExceptionHelper.java:28)
> at org.eclipse.paho.client.mqttv3.internal.ClientState.
> notifyReceivedAck(ClientState.java:885)
> at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.
> run(CommsReceiver.java:118)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
>
> Thanks!
>
> --
> Zhanwen Zhou (Jason),
> +86 13922218435 <+86%20139%202221%208435>
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: IOT, API
>
>
> ___
> 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] [IoTS] Errors after change the admin password and restart the IoTS server - No routes in cluster. Ignoring Message

2016-10-07 Thread Ayyoob Hamza
Hi Jason,

If you change the default password then you have to change the password in
set of other configuration files(given below).
repository/conf/broker.xml,
repository/conf/api-manager.xml,
repository/conf/analytics/analytics-data-config.xml
repository/conf/etc/webapp-authenticator-config.xml

Please find the comments inline for the other issues.

On Fri, Oct 7, 2016 at 1:45 PM, 云展智创  wrote:

> Hi all,
>
> I got lots of the following errors when startup. I don’t know if it is the
> cause of the problem:
>
> [2016-10-07 16:07:26,944] ERROR - OAuth2BasedMQTTAuthenticator Error on
> connecting with the validation endpoint.
> org.apache.axis2.AxisFault: Connection refused
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
> HTTPSender.java:199)
> 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 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.identity.oauth2.stub.OAuth2TokenValidationServiceSt
> ub.validate(OAuth2TokenValidationServiceStub.java:461)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.getAuthenticationInfo(
> OAuth2BasedMQTTAuthenticator.java:126)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.validateToken(OAuth2BasedMQTTAuthenticator.
> java:82)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.checkValid(OAuth2BasedMQTTAuthenticator.
> java:62)
> at org.dna.mqtt.moquette.messaging.spi.impl.ProtocolProcessor.
> processConnect(ProtocolProcessor.java:256)
> at org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging.onEvent(
> SimpleMessaging.java:160)
> at org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging.onEvent(
> SimpleMessaging.java:47)
> at com.lmax.disruptor.BatchEventProcessor.run(
> BatchEventProcessor.java:128)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.AbstractPlainSocketImpl.doConnect(
> AbstractPlainSocketImpl.java:350)
> at java.net.AbstractPlainSocketImpl.connectToAddress(
> AbstractPlainSocketImpl.java:206)
> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:
> 188)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:589)
> at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
> at org.apache.commons.ssl.Java14.connectSocket(Java14.java:178)
> at org.apache.commons.ssl.Java14.buildSocket(Java14.java:157)
> at org.apache.commons.ssl.JavaImpl.createSocket(JavaImpl.java:204)
> at org.apache.commons.ssl.SSL.createSocket(SSL.java:580)
> at org.apache.commons.ssl.SSLClient.createSocket(SSLClient.java:224)
> at org.apache.commons.ssl.HttpSecureProtocol.createSocket(
> HttpSecureProtocol.java:90)
> at org.apache.commons.httpclient.HttpConnection.open(
> HttpConnection.java:707)
> at org.apache.commons.httpclient.MultiThreadedHttpConnectionMan
> ager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionMan
> ager.java:1361)
> at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(
> HttpMethodDirector.java:387)
> 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)
> ... 18 more
>

This error pops up because it is failing to connect to the authentication
server. If you are trying this with a cluster then make sure to update the
relevant configuration in the broker.xml, However if you are trying this
with a single instance then there is a known *intermittent issue* in alpha
pack which was resolved after the alpha release. So this might work after a
restart.


> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: IOT, API Management
>
> On Oct 7, 2016, at 3:36 PM, 云展智创  wrote:
>
> Hi,
>
> Do you know how to 

Re: [Dev] [IoTS] Failed to connect to the MQTT topic again after disconnect for a while in 1.0.0 alpha

2016-08-04 Thread Ayyoob Hamza
Hi Jason,

Device does not require a username/password to refresh the token rather it
requires a client Id and client secret[1]. For our sample use cases we can
either create a clientId and client secret per device or per device type.
In the raspberry pi example the client information will be embedded in the
script. Therefore the access token for device can renewed with the client
information and refresh token.

[1] https://docs.wso2.com/display/IS510/Refresh+Token+Grant

Thanks,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Fri, Aug 5, 2016 at 8:07 AM, 云展智创 <i...@smartcloudex.com> wrote:

> Hi Ayyoob,
>
> Thanks. I am testing to change the AccessTokenDefaultValidityPeriod to
> 84600 seconds (about one day). I want to confirm with you whether my
> understanding of the following configuration attributes is correct.
>
>  is used when user login in the
> application and get the client_id and client_secret, the application need
> to request for Refresh token and Access token in 300 seconds.
>
>  is used for setting up the validity
> period for device agent access token. After 3600 seconds, the device agent
> CAN NOT access IoTS with the old Access token.
>
>  is used for setting up the
> validity period for user access token from UI.
>
>  is used for setting up the validity period
> for Refresh token. That’s means, after 84600 seconds, users need to login
> again to get the new refresh token. *But how does the device get the new
> Refresh token as it can not login with username/password and the old
> refresh token is expired?*
>
> =
> 
> 300 AuthorizationCodeDefaultValidityPeriod>
> 
> 3600 AccessTokenDefaultValidityPeriod>
> 
> 3600 UserAccessTokenDefaultValidityPeriod>
> 
> 84600
> 
>
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IoT
>
> On Aug 5, 2016, at 9:39 AM, Ayyoob Hamza <ayy...@wso2.com> wrote:
>
> Hi Jason,
>
> This happens when the OAuth token is expired for the device. In the IoTS
> alpha we have not implemented the renewing the token with refresh token
> part, however this has been implemented in the master. One way of having a
> continuous connection for the samples in alpha pack would be to increase
> the expiration time in identity.xml (repository/conf/identity/
> identity.xml).
>
> Thanks,
> Ayyoob
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Fri, Aug 5, 2016 at 6:45 AM, 云展智创 <i...@smartcloudex.com> wrote:
>
>> I got the following error logs from IoTS:
>>
>> ==
>> [2016-08-05 08:57:06,466] ERROR - MessageMetricsHandler Connection reset
>> by peer
>> java.io.IOException: Connection reset by peer
>> at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
>> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
>> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
>> at sun.nio.ch.IOUtil.read(IOUtil.java:192)
>> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
>> at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(Unpoole
>> dUnsafeDirectByteBuf.java:446)
>> at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
>> at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(Nio
>> SocketChannel.java:225)
>> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.
>> read(AbstractNioByteChannel.java:119)
>> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEven
>> tLoop.java:511)
>> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimiz
>> ed(NioEventLoop.java:468)
>> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEve
>> ntLoop.java:382)
>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
>> at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(
>> SingleThreadEventExecutor.java:116)
>> at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnabl
>> eDecorator.run(DefaultThreadFactory.java:137)
>> at java.lang.Thread.run(Thread.java:745)
>> [2016-08-05 08:57:06,480]  INFO - ProtocolProcessor Lost connection with
>> client paho/551D5528F7972AE4CD
>> [2016-08-05 08:57:06,484]  INFO - MQTTopicManager Disconnecting channel
>> for clientID: paho/551D5528F7972AE4CD
>> [2016-08-05 08:57:06,529]  INFO - SubscriptionEngine Local Subscription
>> DELETED [carbo

Re: [Dev] [IoTS] Failed to connect to the MQTT topic again after disconnect for a while in 1.0.0 alpha

2016-08-04 Thread Ayyoob Hamza
Hi Jason,

This happens when the OAuth token is expired for the device. In the IoTS
alpha we have not implemented the renewing the token with refresh token
part, however this has been implemented in the master. One way of having a
continuous connection for the samples in alpha pack would be to increase
the expiration time in identity.xml (repository/conf/identity/identity.xml).

Thanks,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Fri, Aug 5, 2016 at 6:45 AM, 云展智创 <i...@smartcloudex.com> wrote:

> I got the following error logs from IoTS:
>
> ==
> [2016-08-05 08:57:06,466] ERROR - MessageMetricsHandler Connection reset
> by peer
> java.io.IOException: Connection reset by peer
> at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
> at sun.nio.ch.IOUtil.read(IOUtil.java:192)
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
> at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(
> UnpooledUnsafeDirectByteBuf.java:446)
> at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
> at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(
> NioSocketChannel.java:225)
> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(
> AbstractNioByteChannel.java:119)
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(
> NioEventLoop.java:511)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(
> NioEventLoop.java:468)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(
> NioEventLoop.java:382)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
> at io.netty.util.concurrent.SingleThreadEventExecutor$2.
> run(SingleThreadEventExecutor.java:116)
> at io.netty.util.concurrent.DefaultThreadFactory$
> DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
> at java.lang.Thread.run(Thread.java:745)
> [2016-08-05 08:57:06,480]  INFO - ProtocolProcessor Lost connection with
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:06,484]  INFO - MQTTopicManager Disconnecting channel
> for clientID: paho/551D5528F7972AE4CD
> [2016-08-05 08:57:06,529]  INFO - SubscriptionEngine Local Subscription
> DELETED [carbon.super/raspberrypi/s4mbetlzspyc]ID=carbon:paho/
> 551D5528F7972AE4CD:carbon.super/raspberrypi/s4mbetlzspyc@
> NODEZhanwendeMacBook-Air.local/192.168.0.102/T=
> 1470358626484/D=false/X=true/O=/E=amq.topic/ET=/EUD=1/S=false
> [2016-08-05 08:57:06,529]  INFO - OrphanedMessageHandler Purging messages
> of this node persisted under carbon.super/raspberrypi/s4mbetlzspyc
> [2016-08-05 08:57:06,540]  INFO - MessagingEngine Purged messages of
> destination carbon.super/raspberrypi/s4mbetlzspyc
> [2016-08-05 08:57:07,775]  INFO - ProtocolProcessor Lost connection with
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:07,776]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho/551D5528F7972AE4CD is not
> removed since the entry does not exist
> [2016-08-05 08:57:08,795]  INFO - ProtocolProcessor Lost connection with
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:08,795]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho/551D5528F7972AE4CD is not
> removed since the entry does not exist
> [2016-08-05 08:57:09,810]  INFO - ProtocolProcessor Lost connection with
> client paho/551D5528F7972AE4CD
> ……
> ==
>
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IOT
>
> On Aug 4, 2016, at 10:23 AM, 云展智创 <i...@smartcloudex.com> wrote:
>
> Hi all,
>
> I downloaded a raspberry pi agent from IoTS 1.0.0 alpha, ran the raspberry
> pi agent and uploaded the temperature data successfully. But after I
> disconnected the agent for a while, the MQTT connection could not be setup
> again. Can anyone help me for this? Thanks.
>
> 
> MQTT_LISTENER: Connected with result code 4
> MQTT_LISTENER: Subscribing with topic carbon.super/raspberrypi/
> rkwrklcphsmu
> 
>
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IOT
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Authentication Failed for IOT Server

2016-07-01 Thread Ayyoob Hamza
Hi Lakshitha,

Did you point the URL to the correct endpoint(Server URL)?. It should be in
the form of
https://:9443

Regards,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Sat, Jul 2, 2016 at 12:36 AM, Lakshitha Warnakulasuriya <
lakshitha...@gmail.com> wrote:

> Hi All,
>
> I'm using alpha version of WSO2 IOT server. I'm trying connecting my
> android device with IOT server using Android Sense app. Authentication
> Failed when I try to register for the app.
>
> Username - admin
> Password - admin
> URL - https://localhost:9443
>
> Any help can be really appreciated.
>
> Thanks and Regards,
> Lakshitha.
>
> ___
> 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] [IOT] [wso2iots-1.0.0-alpha] Continues errors getting print after sometimes without valid reason

2016-06-08 Thread Ayyoob Hamza
HI Dushan,
These logs gets printed when an unauthorized device tries to connect to the
mqtt broker and server rejects the connection. Therefore could you please
check whether there any android device which runs the android sense
application trying to connect to the server.

In addition the logs are not meaningful here therefore we will fix that.

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Thu, Jun 9, 2016 at 12:28 AM, Dushan Abeyruwan <dus...@wso2.com> wrote:

> Hi Devs,
>$subject
>
> [2016-06-08 11:55:49,431]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:49,431]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:49,443]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:49,457]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:49,458]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:49,893]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:49,900]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:49,900]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:49,917]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:49,924]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:49,924]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:50,031]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:50,041]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:50,041]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:50,058]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:50,068]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:50,069]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:50,395]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:50,403]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:50,403]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:50,411]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:50,419]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
>
> https://github.com/wso2/product-iots/releases/tag/v1.0.0-alpha
> --
> Dushan Abeyruwan | Senior Technical Lead
> Technical Support,MV
> PMC Member Apache Synpase
> WSO2 Inc. http://wso2.com/
> Blog:*http://www.dushantech.com/ <http://www.dushantech.com/>*
> LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
> <https://www.linkedin.com/in/dushanabeyruwan>*
> Mobile:(001)408-791-9312
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IoT Server - Andriod agent is not publishing light measurements correctly

2016-06-04 Thread Ayyoob Hamza
Hi Sinthuja,
Wanted to know whether you are trying this with the alpha pack or a nightly
build?. If it is the nightly build that you are trying it with then could
it be possible to try this with the alpha pack[1] since with the latest
changes in the master having an issue with the agent. If the issue still
persists then could it be possible to let us know the android OS version.

[1] https://github.com/wso2/product-iots/releases/tag/v1.0.0-alpha

Regards,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IoTS]Error when downloading virtual fire alarm on IoT Server in Windows

2016-05-23 Thread Ayyoob Hamza
Hi Dakshitha,
In our sample implementation we delete the sketch from the temporary folder
once the device agent zip is created. In windows it does not allow todo
when the pack is in the C Drive since it requires admin permission. Could
it be possible to try this out in another drive.

Thanks
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] WSO2 IoT Server 1.0.0-alpha Released

2016-05-22 Thread Ayyoob Hamza
Hi Dulitha,
It seems that hadoop.home.dir not set in windows. This error get triggered
when the spark context initialise. However It seems like hadoop is not
needed and has been crept into the pack with the installation of analytics
datasource feature. We can remove hbase feature from this, thanks for
pointing out, could you please raise a JIRA on this[1].

[1] https://wso2.org/jira/browse/IOTS

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [IOTS] Creating a New Device Type - device-deployer build failed

2016-05-22 Thread Ayyoob Hamza
Hi Yasith,
It seems that the feature that you have mentioned in the feature
installation pom does not match with your device type feature. Could you
please cross check the feature name and the version in your device type
feature and with the installation pom.

Thanks


*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Sun, May 22, 2016 at 12:05 PM, Yasith Lokuge <yas...@wso2telco.com>
wrote:

> Hi,
>
> I followed the documentation  [1]  for creating a new device type in IoT
> server 1.0.0-Alpha
> I received the following error when tried to execute
> mvn clean install -f device-deployer.xml
>
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on
> project devicetype-feature-installation: Error occured when processing the
> Feature Artifact:
> org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:1.0.0-SNAPSHOT:
> ERROR: Failure to find
> org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:zip:1.0.0-SNAPSHOT
> in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
> the local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR]
> [ERROR] Then, install it using the command:
> [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
> -DartifactId=org.wso2.carbon.org.wso2.carbon.helloworld.feature
> -Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file
> [ERROR]
> [ERROR] Alternatively, if you host your own repository you can deploy the
> file there:
> [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
> -DartifactId=org.wso2.carbon.org.wso2.carbon.helloworld.feature
> -Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
> [ERROR]
> [ERROR]
> [ERROR]
> org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:zip:1.0.0-SNAPSHOT
> [ERROR]
> [ERROR] from the specified remote repositories:
> [ERROR] wso2-nexus (
> http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
> snapshots=true),
> [ERROR] wso2.releases (
> http://maven.wso2.org/nexus/content/repositories/releases/,
> releases=true, snapshots=true),
> [ERROR] wso2.snapshots (
> http://maven.wso2.org/nexus/content/repositories/snapshots/,
> releases=false, snapshots=true),
> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :devicetype-feature-installation
>
>
>
> [1] https://docs.wso2.com/display/IoTS100/Creating+a+New+Device+Type
>
>
> Regards,
>
> --
> Yasith Lokuge
>
> Software Engineer
> M: +94 7713 53682 | E: yas...@wso2telco.com
> W: www.yasith.me
>
> WSO2.Telco Inc.
> Level 4,
> 20, Palm Grove, Colombo 03
> Sri Lanka.
> www.wso2telco.com
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 IoT Server 1.0.0-alpha Released

2016-05-20 Thread Ayyoob Hamza
*WSO2 IoT Server 1.0.0 Alpha Released*
We are pleased to announce WSO2 IoT Server 1.0.0 alpha release. It can be
downloaded from
https://github.com/wso2/product-iots/releases/tag/v1.0.0-alpha

WSO2 IoT Server is an extensible, open-source, multi tenant, Internet of
Things Platform for implementing server-side of IoT Reference Architecture.
It comes with a reference implementations for the device layer.


WSO2 IoT Server supports:



   -

   Device Management
   -

  Extensions for registering device types
  -

  Self-service enrolment and management of connected devices
  -

  Group, manage and monitor connected devices
  -

  Share device operations / data with other users
  -

  Distribution and management of applications and firmware to devices
  -

  OOTB support for some known device types such as Raspberry Pi,
  Arduino Uno, Android


   -

   IoT Protocol Support
   -

  Leverage MQTT, HTTP, Websockets and XMPP protocols for device
  communications with IoT Server
  -

  Framework extension for adding more protocols and data formats
  -

   Analytics
   -

  Support for batch, interactive, real-time and predictive analytics
  through WSO2 DAS
  -

   Pre-built visualisation support for sensor readings
   -

  View instant, visualised statistics of individual or multiple devices
  -

  Traverse through, analyse and zoom in/out of filtered data
  -

  Stats-API to write your own visualisation
  -

  Pre-built graphs for common sensor reading types like temperature,
  velocity
  -

   API Management for App Development
   -

  Devices are represented as REST APIs
  -

  Develop applications using Device APIs
  -

   Identity and Access Management
   -

  Identity Management for devices
  -

  Token based access control for devices & operations (protect back end
  services via exposing device type APIs)
  - Support for SCEP protocol (encryption and authenticity)



List of known issues

- https://wso2.org/jira/issues/?filter=13055

Bug Fixes

   - [IOTS-17 ] - MQTT endpoints are
   not secured for agent communication
   - [IOTS-19 ] - XMPP sessions not
   closed before server shutdown
   - [IOTS-21 ] - Jaggery API calls
   are not secured
   - [IOTS-34 ] - Backend Service
   Invoker Fails Intermittently with Unexpected token: <
   - [IOTS-37 ] - Could not generate
   a new access token (using refresh token) by using the current token endpoint
   - [IOTS-47 ] - Update the release
   note in the release packs as it is about EMM
   - [IOTS-50 ] - users whos
   iot-admin role is removed is shown all options for enrol devices as users
   with iot-admin role
   - [IOTS-55 ] - Considerable delay
   in server startup
   - [IOTS-57 ] - Error when starting
   the IOT pack after pointing to the mysql database
   - [IOTS-64 ] - The wso2carbon log
   file is growing rapidly
   - [IOTS-68 ] - when a tenant is
   created with the same user name as super tenant seems the super tenant data
   are shown
   - [IOTS-69 ] - until device admin
   was disabled the camera policy was in effect preventing the use of camera
   on android device
   - [IOTS-75 ] - view API throws a
   Caused by: java.lang.NullPointerException: Tenant domain has not been set
   in CarbonContext
   - [IOTS-81 ] - IOT devices are
   allways in active status
   - [IOTS-92 ] - Error in executing
   task: Table Not Found: X1234_DeviceBatterySummaryData
   java.lang.RuntimeException: Table Not Found: X1234_DeviceBatterySummaryData
   is thown when pointing to mysql
   - [IOTS-93 ] - XMPP server details
   are hardcoded in virtual fire alarm and devicemgt-config.xml file
   - [IOTS-94 ] - Virtual firealarms
   that were downloaded before xmpp was enabled can not connect to xmpp
   protocol after enabling.
   - [IOTS-100 ] - When integrating
   ActiveMQ as an external message broker IOTS fails to start
   - [IOTS-102 ] - Device analytic
   line graph does not get generated when the device type has a capital letter
   - [IOTS-104 ] - Remove the device
   type configs that is used for UI from conf directory
   - [IOTS-105 

Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-18 Thread Ayyoob Hamza
Hi All,
We also got the same error in the IoT Server from yesterday hope we can
have a fix for this.

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Wed, May 18, 2016 at 11:16 AM, Ruwan Abeykoon <ruw...@wso2.com> wrote:

> Hi DS team,
> I am getting the following error in APIM 2.0.0-SNAPSHOT which integrate DS
> features. Any Idea why? can we not print those errors due to outside
> dependencies?
>
> ---
>
> achines/jdk1.8.0_31.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of
> the two will be used. Which one is undefined.
>
> [2016-05-17 17:35:49,176]  INFO - FeatureRegistry Resources from
> res:features/features.txt are loading.
>
> [2016-05-17 17:35:49,186]  INFO - XmlUtil The XML processor being used
> does not support secure parsing.
>
> [2016-05-17 17:35:49,187]  INFO - XmlUtil Document builders are being
> reused.
>
> [2016-05-17 17:35:49,396]  INFO - FeatureRegistry Resources from
> res:features-extras/features.txt are loading.
>
> [2016-05-17 17:36:11,707]  INFO - CarbonEventManagementService Starting
> polling event receivers
>
> [2016-05-17 17:36:19,510]  INFO - BasicHttpFetcher The following exception
> occurred when fetching http://www.google-analytics.com/urchin.js: 30,103
> ms elapsed.
>
> [2016-05-17 17:36:19,511]  INFO - BasicHttpFetcher
>
> org.apache.http.conn.ConnectTimeoutException: Connect to
> www.google-analytics.com:80 timed out
>
> at
> org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
>
> at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
>
> at
> org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
>
> at
> org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
>
> at
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
>
> at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
>
> at
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
>
> at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115)
>
> at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
>
> at
> org.apache.shindig.gadgets.http.BasicHttpFetcher.fetch(BasicHttpFetcher.java:359)
>
> at
> org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.getContent(FeatureResourceLoader.java:291)
>
> at
> org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.(FeatureResourceLoader.java:270)
>
> at
> org.apache.shindig.gadgets.features.FeatureResourceLoader$UriResource.(FeatureResourceLoader.java:256)
>
> at
> org.apache.shindig.gadgets.features.FeatureResourceLoader.loadUri(FeatureResourceLoader.java:135)
>
> at
> org.apache.shindig.gadgets.features.FeatureResourceLoader.load(FeatureResourceLoader.java:88)
>
> at
> org.apache.shindig.gadgets.features.FeatureRegistry.loadFeature(FeatureRegistry.java:486)
>
> at
> org.apache.shindig.gadgets.features.FeatureRegistry.loadResources(FeatureRegistry.java:425)
>
> at
> org.apache.shindig.gadgets.features.FeatureRegistry.register(FeatureRegistry.java:180)
>
> at
> org.apache.shindig.gadgets.features.FeatureRegistry.(FeatureRegistry.java:112)
>
> at
> org.apache.shindig.gadgets.features.FeatureRegistry.(FeatureRegistry.java:99)
>
> at
> org.apache.shindig.gadgets.features.FeatureRegistry$$FastClassByGuice$$536f6a5.newInstance()
>
> at
> com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
>
> at
> com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
>
> at
> com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
>
> at
> com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>
> at
> com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
>
> at
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
>
> at
> com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
>
> at com.google.inject.Scopes$1$1.get(Scopes.java:65)
>
> at
> com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
>
> at
> com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjec

Re: [Dev] IoTServer taking much longer time to start

2016-04-02 Thread Ayyoob Hamza
Hi,
This issue is sorted, The fixes are in the carbon-analytics-common
and carbon-event-processing components. We can add this once the components
are released.

Regards,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Wed, Mar 9, 2016 at 10:26 AM, Prabath Abeysekera <praba...@wso2.com>
wrote:

> @Ayyoob, Excellent work figuring out the root cause!
>
> Well, excessive start-up time can be a nasty user experience killer
> particularly when it comes to releasing something fresh as IoTS 1.0.0. Cz,
> when the maiden release of anything goes out, we need to make sure that it
> creates a good impression on the user at least as part of the first few
> things that the user would do after downloading the product i.e. Spinning
> up the server, etc. So, let's further dig in and see if we can figure out
> any workaround that would potentially fix this. I would suggest we fix this
> now itself rather than pushing it to the next version of the product.
>
> Cheers,
> Prabath
>
> On Mon, Mar 7, 2016 at 8:44 AM, Ruwan Yatawara <ruw...@wso2.com> wrote:
>
>> --dev
>>
>> Guys I think this is a bit of a significant change. Since the start up
>> delay is the only problem in the foreseeable future this will fix.. shall
>> we not focus a lot on this.. ? WDYT?
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>> www: :http://wso2.com
>>
>>
>> On Mon, Mar 7, 2016 at 8:42 AM, Ruwan Yatawara <ruw...@wso2.com> wrote:
>>
>>> Hi Ayyoob,
>>>
>>> I had a chat with Ramith once before on why they went with the latest
>>> release of lib thrift. I was told that this fixes a bunch of issues
>>> prevalent in the previous version.
>>>
>>> So i guess this upgrade should happen at some point in the future.
>>> However, when upgrading we will have to change a whole bunch of other
>>> components as well as analytics-common. Since this also involves API
>>> changes, there would be a testing effort involved as well.
>>>
>>>
>>> [1] - https://github.com/apache/thrift/blob/0.9.2/CHANGES
>>>
>>> Thanks and Regards,
>>>
>>> Ruwan Yatawara
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>>
>>> email : ruw...@wso2.com
>>> mobile : +94 77 9110413
>>> blog : http://ruwansrants.blogspot.com/
>>> www: :http://wso2.com
>>>
>>>
>>> On Mon, Mar 7, 2016 at 2:43 AM, Ayyoob Hamza <ayy...@wso2.com> wrote:
>>>
>>>> Hi,
>>>> Went through the version conflicted dependencies in the pack and found
>>>> that this is caused due to libthrift dependency. libthrift v0.8.0.wso2v1
>>>> and v0.9.2.wso2v1 are both within the pack, In which analytics-commons and
>>>> event-messaging-processor depends on the lesser and andes(mb) depend on the
>>>> greater version. Since there are lot to change in the lesser version
>>>> depended libraries, I had to test this premise by downgrading the version
>>>> of andes libthrift version and with this change the pack started quickly.
>>>> Need analyze the reason on why this 2 version affect the start up delay.
>>>> However I think we might need to upgrade the libthrift library in
>>>> analytics-commons and event-messaging-processor dependencies to solve this
>>>> issue.
>>>>
>>>> *Ayyoob Hamza*
>>>> *Software Engineer*
>>>> WSO2 Inc.; http://wso2.com
>>>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>>>
>>>> On Thu, Jan 28, 2016 at 10:51 AM, Sumedha Rubasinghe <sume...@wso2.com>
>>>> wrote:
>>>>
>>>>> But this does not seem to be noticeable on Macs.
>>>>>
>>>>> On Thu, Jan 28, 2016 at 12:04 AM, Charitha Goonetilleke <
>>>>> charit...@wso2.com> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> After looking into server startup with RuwanA, found that 
>>>>>> *org.eclipse.osgi.internal.resolver.VersionConstraintImpl
>>>>>> *class getting much more CPU time by causing the $subject. Also
>>>>>> HashMap get() method invoking too many times from above class. This is
>>>>>> happening when 

Re: [Dev] Can we get following folders removed from IoT Server pack?

2016-04-02 Thread Ayyoob Hamza
okay ayya will do the changes and was bit curious whether we need to
install AppMgt features?, We need it for EMM use case and if we can deploy
IoT based application with AppMgt(I think its not supported yet) then i
guess it would help our story if not do we need the features in the pack?
or we can have it and then when we do profiling stuff we remove those
features in a devicemgt profile.

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Sat, Apr 2, 2016 at 2:39 PM, Sumedha Rubasinghe <sume...@wso2.com> wrote:

> IMO, removing following won't impact IoTS perspective.
>
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/publisher/themes
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/store/themes/
>
> Rename wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/
> *publisher*/
> to wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/
> *app-publisher*/
>
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-publisher/site/themes
>
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/site/themes/fancy/
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/site/themes/responsive/
>
>
> wso2iots-1.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/api-store/tests
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Proposal 28: [CDMF] [IOT] IOT SDK for creating Device Agents

2016-03-25 Thread Ayyoob Hamza
Hi Harshani,
Could you please try to contact the GSOC through their mailing list
regarding this. Since we cannot accept a proposal directly. Further, In the
Box 2 Your proposal should say in blue letters "Final Proposal submitted"
to make sure that proposal has been submitted properly.

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Sat, Mar 26, 2016 at 1:30 AM, Harshani Perera <
ireshaharshani...@cse.mrt.ac.lk> wrote:

> Hi all,
> When I was submitting due to network error I lose the connection.
> When I try to Share the link it suddenly appears page not found. therefore
> I was unable to complete my submission. now in my account it displays in
> the proposal list an 'Incomplete proposal'. Could you please tell me will
> it be an issue for my submission?
>
> --
> *Iresha Perera*
> Department of Computer Science Engineering
> University of Moratuwa
> Mobile : +94777863874
> <https://lk.linkedin.com/in/ireshaharshani>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Gsoc 2016] [CDMF] Calculate Device Health Status using Analytics and API Calls

2016-03-02 Thread Ayyoob Hamza
Hi Geethika,
Thank you for your interest in this project. CDMF is a framework that is
used for device management and one of the requirement is for the user to
monitor the device status. There are two ways to check the status of a
device
1) Send a device health check ping to the device and then depict the status.
2) Get the device to server communication data and then co relate with past
communication to find the status of the device.

In here we are focusing with a generalised solution that incorporates the
idea from the second approach. In the first approach we are limiting the
capability by asking the device manufacture to incorporate the capability.

You can find the source code for CDMF in
https://github.com/wso2/carbon-device-mgt

You can find the source code for device type implementation such as
android, windows and few IoT device samples in :
https://github.com/wso2/carbon-device-mgt-plugins

We have two products that are built on CDMF
1) EMM -
https://docs.wso2.com/display/EMM200/WSO2+Enterprise+Mobility+Manager
https://github.com/wso2/product-mdm - You can find the official release EMM
2.0.0 in the product listing page

2) IoT Server - https://docs.wso2.com/display/IoTS100/About+IoT+Server
https://github.com/wso2-incubator/product-iot-server - This is still under
development.

Please go through the documentation and try to build EMM to understand the
behaviour of the product.

Thanks


*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Wed, Mar 2, 2016 at 11:38 PM, Geethika Kumari <geethika@gmail.com>
wrote:

> Dear sir,
>
> I am Geethika Kumari Abeysinghe third year student of University of
> Moratuwa. I am interestig with this project.
> I have knowledge and hand on experiences on java programming, restful web
> services and maven project implementations.
> Please let me to be clarified about the objectives and the exact
> deliverables you are expecting from GSOC interns.
> Let me know how to get started with this project.
>
> Thanks and Regards.
> Geethika Abeysinghe.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Publish data set in DAS

2016-03-01 Thread Ayyoob Hamza
Hi Lakshitha,
WSO2 DAS has different event receivers[1] to receive events and there is
one for soap[2]. Please refer the sample give in [2] which receive xml
based events.

[1] https://docs.wso2.com/display/DAS300/Configuring+Event+Receivers
[2] https://docs.wso2.com/display/DAS300/SOAP+Event+Receiver

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Tue, Mar 1, 2016 at 1:01 PM, Lakshitha Warnakulasuriya <
lakshitha...@gmail.com> wrote:

> I'll get some backend data set using soap service. I want to publish that
> data set in WSO2 DAS. How can i do this?
> Any help can be really appreciated.
>
> Thanks and Regards,
> Lakshitha.
>
> ___
> 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] [GSoC 2016][CDMF][IOT] IOT SDK for creating device agents.

2016-02-22 Thread Ayyoob Hamza
Hi Menaka,
The main idea is to provide SDKs that are catered for different languages,
which can be used to design a device type agent/firmware to quickly and
easily connect with IoT Server. This should hide the complexities of
communicating  authentication, encryption with the IoT Server. This SDK
should also have the capability to pick the desired transport protocols.
The expected deliverable are auto-generated code, abstract the protocol
complexities and should be easily portable for different hardware.

It would be great if you could go through the existing agent code and study
on how we can improve[1].

[1] https://github.com/wso2/carbon-device-mgt-plugins/tree/IoTS-1.0.0-M4

Thanks,

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Sun, Feb 21, 2016 at 3:07 PM, Menaka Jayawardena <men...@wso2.com> wrote:

> Hello,
>
> I'm Menaka Madushanka Jayawardena, a Final year undergraduate at Faculty
> of Engineering, University of Peradeniya. I'm very much interested in doing
> the above project. I have some experience with WSO2 IOT server and the
> device types.
>
> I'd like to know more information about the project.
> Also deliverable is not very clear to me, so I prefer some more
> information about it.
>
> Thanks and regards
> Menaka Madushanka
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> <https://lk.linkedin.com/in/menakajayawardena>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] java.lang.VerifyError after adding few features

2015-11-19 Thread Ayyoob Hamza
Hi Charitha,
We got the same issue on IoT Server and I sent a email regarding
this([DEV][DAS][ESB] Failed to initialise synapse after installing DAS
features). This issue was raised due to a bundle that has packed with the
DAS feature.

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Thu, Nov 19, 2015 at 6:56 PM, Charitha Goonetilleke <charit...@wso2.com>
wrote:

> Hi All,
>
> I'm getting following error on MDM-2.0.0-SNAPSHOT after adding
> *org.wso2.carbon.analytics.core.server.feature* (1.0.4),
> *org.wso2.carbon.analytics.api.feature* (1.0.4) and
> *org.wso2.carbon.databridge.core.server.feature* (5.0.7-SNAPSHOT) along
> with *org.wso2.carbon.device.mgt.analytics.server.feature[1]* which we
> used in IoT-Server previously.(In IoT server we were used *carbon
> analytics* 1.0.4 and *carbon analytics common* 5.0.6 and didn't
> experienced such issue).
>
> I found quite similar issues in stackoverflow[2] and OpenJDK Jiras[3]. But
> those were not helped to fix that problem. So is there any workaround to
> overcome this issue?
>
>
> Operating System : Linux 4.2.5-201.fc22.x86_64, amd64
> Java Home: /usr/java/jdk1.7.0_79/jre
> Java Version : 1.7.0_79
> Java VM  : Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle
> Corporation
>
>
> --
>
> [2015-11-19 18:27:45,666]  INFO
> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Starting
> ESB...
> [2015-11-19 18:27:45,693]  INFO
> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -
>  Initializing Apache Synapse...
> [2015-11-19 18:27:45,738] FATAL
> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Failed to
> initialize ESB due to a fatal error
> java.lang.VerifyError: Bad type on operand stack
> Exception Details:
>   Location:
>
> org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection;
> @289: invokevirtual
>   Reason:
> Type 'java/lang/Object' (current frame, stack[0]) is not assignable to
> 'java/net/URLConnection'
>   Current Frame:
> bci: @289
> flags: { }
> locals: { 'java/net/URL', 'java/lang/Object', 'java/util/Properties',
> 'java/lang/String', 'java/lang/String', 'java/util/List',
> 'java/lang/String', 'java/lang/String', 'java/lang/String', '[B',
> 'java/lang/String' }
> stack: { 'java/lang/Object', 'java/lang/String', 'java/lang/String' }
>   Bytecode:
> 000: 2ac7 001a b200 01b9 0020 0100 9900 0db2
> 010: 0001 1292 b900 2602 0001 b02a b600 1d12
> 020: 52b6 0053 9a00 0f2a b600 1d12 54b6 0053
> 030: 9900 f7b8 0093 4d2c 1294 b600 954e 2c12
> 040: 96b6 0095 3a04 2cb8 0097 3a05 2dc6 0051
> 050: 1904 c600 4c19 052d b900 9802 009a 0041
> 060: bb00 9959 2d19 04b8 009a b700 9b3a 06bb
> 070: 009c 59b2 009d 1906 b700 9e3a 072a b600
> 080: 1d12 54b6 0053 9900 0e2a 2c19 07b8 009f
> 090: 4ca7 000a 2a19 07b6 007d 4ca7 001e 2ab6
> 0a0: 001d 1254 b600 5399 000d 2a2c 01b8 009f
> 0b0: 4ca7 0008 2ab6 007f 4c2c 12a0 b600 953a
> 0c0: 062c 12a1 b600 953a 0719 06c6 0059 1907
> 0d0: c600 54bb 0021 59b7 0022 1906 b600 2412
> 0e0: 30b6 0024 1907 b600 24b6 0025 3a08 bb00
> 0f0: 5959 b700 5a19 08b6 005b b600 5c3a 09bb
> 100: 0029 5919 09b7 005d 3a0a 2b12 a2bb 0021
> 110: 59b7 0022 125f b600 2419 0ab6 0024 b600
> 120: 25b6 0060 a700 082a b600 7f4c 2bb8 00a3
> 130: b600 a42b b800 a5b6 00a6 2b12 a712 a8b6
> 140: 0060 2bb0 4cbb 0021 59b7 0022 12a9 b600
> 150: 242a b600 3412 aab6 0024 b600 252b b800
> 160: 1001 b0
>   Exception Handler Table:
> bci [0, 26] => handler: 324
> bci [27, 323] => handler: 324
>   Stackmap Table:
> same_frame(@25)
> same_frame(@27)
> same_frame(@51)
>
> full_frame(@148,{Object[#47],Top,Object[#345],Object[#41],Object[#41],Object[#432],Object[#153],Object[#156]},{})
>
> full_frame(@155,{Object[#47],Object[#281],Object[#345],Object[#41],Object[#41],Object[#432],Object[#153],Object[#156]},{})
>
> full_frame(@158,{Object[#47],Top,Object[#345],Object[#41],Object[#41],Object[#432]},{})
> same_frame(@180)
>
> full_frame(@185,{Object[#47],Object[#281],Object[#345],Object[#41],Object[#41],Object[#432]},{})
> append_frame(@292,Object[#41],Object[#41])
> full_frame(@295,{Object[#47]},{})
> append_frame(@300,Object[#281])
> full_frame(@324,{Object[#47]},{Object[#21]})
>
> at
> org.apache.synapse.Synapse

Re: [Dev] IOT-Server does not start-up correctly

2015-11-04 Thread Ayyoob Hamza
Hi Menaka,
Have raised this issue while back on https://wso2.org/jira/browse/CEP-1375.
Will send a pull request to merge the changes.

Thanks
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Wed, Nov 4, 2015 at 2:57 PM, Menaka Jayawardena <men...@wso2.com> wrote:

> Thank you Charitha
>
>
>
> On Wed, Nov 4, 2015 at 2:54 PM, Charitha Goonetilleke <charit...@wso2.com>
> wrote:
>
>> Hi Menaka,
>>
>> I found that, there are two versions of axis2 bundles available in the
>> pack and seems they are conflicting with each other. So need to figure out
>> what are the components that exporting those two different versions. I'll
>> fix them and update the thread.
>>
>>
>> Thanks & regards,
>> /charithag
>>
>> On Wed, Nov 4, 2015 at 2:48 PM, Menaka Jayawardena <men...@wso2.com>
>> wrote:
>>
>>> Thank you very much Aruna.
>>>
>>> I'll try it.
>>>
>>> On Wed, Nov 4, 2015 at 2:27 PM, Aruna Karunarathna <ar...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Nov 4, 2015 at 2:21 PM, Menaka Jayawardena <men...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I cloned the repositories for the iot-server project and built it.
>>>>>
>>>>> Build order:
>>>>>
>>>>> 1. https://github.com/ayyoob/carbon-identity (git checkout master)
>>>>>
>>>>> 2. https://github.com/ruwany/carbon-apimgt (git checkout
>>>>> release-1.10.x)
>>>>>
>>>>> 3. https://github.com/ayyoob/carbon-store (git checkout build-pack)
>>>>>
>>>>> 4. https://github.com/ayyoob/carbon-device-mgt (git checkout
>>>>> build-pack)
>>>>>
>>>>> 5. https://github.com/wso2-incubator/iot-server-extensions (git
>>>>> checkout wso2con-sf)
>>>>>
>>>>> 6. https://github.com/ayyoob/carbon-event-processing (git checkout
>>>>> buildpack4)
>>>>>
>>>>> 7.  https://github.com/wso2-incubator/product-iot-server (git
>>>>> checkout master)
>>>>>
>>>>> Building was completed successfully.
>>>>>
>>>>> But when starting the iot-server, it starts-up and keep giving the
>>>>> following message.
>>>>>
>>>>> [2015-11-04 14:07:13,794]  WARN
>>>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
>>>>> is
>>>>> delayed due to the following unsatisfied items:
>>>>> [2015-11-04 14:07:13,795]  WARN
>>>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
>>>>> required OSGiAxis2Service: org.wso2.carbon.event.processor.admin-2.0.9
>>>>>
>>>>> What would be the solution for this issue?
>>>>>
>>>>
>>>> Not sure about the repos and the order of the repos you have built.
>>>> Seems like some required services are not present. You can get more
>>>> insight running the server with -DosgiConsole and do some osgi service
>>>> level debugging.
>>>>
>>>>>
>>>>> Thank you very much.
>>>>> Best Redards
>>>>>
>>>>> Menaka Madushanka
>>>>>
>>>>> --
>>>>> Menaka Madushanka Jayawardena
>>>>> Software Engineering Intern
>>>>> men...@wso2.com
>>>>> Mobile:- +94 71 8851183/ +94 71 3505470
>>>>> LinkedIn - Menaka Jayawardena
>>>>> <https://lk.linkedin.com/in/menakajayawardena>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Aruna Sujith Karunarathna *| Software Engineer
>>>> WSO2, Inc | lean. enterprise. middleware.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Menaka Madushanka Jayawardena
>>> Software Engineering Intern
>>> men...@wso2.com
>>> Mobile:- +94 71 8851183/ +94 71 3505470
>>> LinkedIn - Menaka Jayawardena
>>> <https://lk.linkedin.com/in/menakajayawardena>
>>>
>>
>>
>>
>> --
>> *Charitha Goonetilleke*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 751 3669 <%2B94777513669>
>> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag
>> <https://www.facebook.com/charithag>, linkedin: charithag
>> <http://www.linkedin.com/in/charithag>
>>
>
>
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> <https://lk.linkedin.com/in/menakajayawardena>
>
> ___
> 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] [IS] Table "IDP_METADATA" not found

2015-10-21 Thread Ayyoob Hamza
Hi Charitha,
You have to update APIMGT Schema with the latest IS schema changes.

[1]
https://github.com/wso2/carbon-apimgt/tree/release-1.10.x/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql
[2]
https://github.com/wso2/carbon-identity/blob/v5.0.0/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/h2.sql#L386

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Wed, Oct 21, 2015 at 11:51 AM, Charitha Goonetilleke <charit...@wso2.com>
wrote:

> Hi All,
>
> I'm using carbon-identity 4.6.0-SNAPSHOT for IoT-Server. In
> my application-authentication.xml and identity.xml, I used WSO2AM_DB as
> data source. But when H2 console doesn't showing any table named
> IDP_METADATA under WSO2AM_DB.
>
> I'm getting following error on server startup and when try to login with
> sso.
>
> org.wso2.carbon.idp.mgt.IdentityProviderManagementException: Error
> occurred while retrieving registered Identity Provider Entity IDs for
> tenant carbon.super
> at
> org.wso2.carbon.idp.mgt.dao.IdPManagementDAO.getIdPs(IdPManagementDAO.java:139)
> at
> org.wso2.carbon.idp.mgt.dao.CacheBackedIdPMgtDAO.getIdPs(CacheBackedIdPMgtDAO.java:73)
> at
> org.wso2.carbon.idp.mgt.IdentityProviderManager.getIdPs(IdentityProviderManager.java:675)
> at
> org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent.cleanUpRemovedIdps(IdPManagementServiceComponent.java:221)
> at
> org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent.activate(IdPManagementServiceComponent.java:147)
> 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:107)
> 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.ser

[Dev] Waffle Orbit bundle export packages.

2015-10-05 Thread Ayyoob Hamza
Hi,
I was planning to update orbit waffle bundle[1] due to [2]. And found that
JNA package is exported along with the waffle[3]. Further studying it found
that waffle apis requires JNA objects as parameters[4]. So Wondering
whether is it a good practice to bundle two separate orbit bundles or
export both together in on same bundle with its correct version or leave
the same version as it is on [3].

[1] https://github.com/wso2/orbit/blob/master/waffle/1.6.wso2v2/pom.xml
[2] https://wso2.org/jira/browse/IDENTITY-3574
[3] https://github.com/wso2/orbit/blob/master/waffle/1.6.wso2v2/pom.xml#L87
[4]
https://github.com/wso2/carbon-identity/blob/master/components/oauth/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/token/handlers/grant/iwa/ntlm/NTLMAuthenticationGrantHandler.java#L120-L122

Thanks
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][IS] slf4j version conflict with 1.6.x and 1.7.x

2015-10-01 Thread Ayyoob Hamza
Had an offline chat with @Hasintha and @Maduranga  and decided to update
the slf4j range. Will be sending a pull request after testing it.
Jira - https://wso2.org/jira/browse/IDENTITY-3574

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Tue, Sep 29, 2015 at 11:35 AM, Ayyoob Hamza <ayy...@wso2.com> wrote:

> Hi All,
>
> In CDMF, When we install DAS feature with along the IS (4.6.0-M2)
> features. Then we found IS features doesn't get activated. When we track
> the issue we were able find that IS depends on slf4j version from 1.6.0 to
> 1.7.0 and DAS depends on version from 1.7.0 to 1.8.0 Further we have both
> the slf4j 1.7.10 and 1.6.1 libraries within our pack. Yet only slf4j 1.7.10
> gets activated. The reason for this problem was:
>
> slf4j 1.6.1 imports a package "org.slf4j.impl" and when slf4j 1.7.10 and
> 1.6.1 both has been used on the same product, then on slf4j- version 1.6.1
> imports ("org.slf4j.impl" ) gets wired with 1.7.10 because the version has
> been given as a single value rather a range.  Due to this it doesn't get
> activated. Therefore we have to increase the range of slf4j from
> [1.6.1,1.7) to [1.6.1,1.8) . The change wont have any effect because [1],
> slf4j is compatible between 1.6.x and 1.7.x
>
> Therefore I believe we have to only depend on latest slf4j version. where
> having both causes the problem on wiring. So I think we have to update the
> slf4j version on IS. This will arise a problem where IS dependent library
> also needs to use the slf4j 1.7 range.
>
> If there is any other solution please let know.
>
> [1] http://www.slf4j.org/manual.html
>
> Thanks
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][DAS][ESB] Failed to initialise synapse after installing DAS features

2015-09-30 Thread Ayyoob Hamza
Hi All,
When we install DAS features to CDMF(This already have the APIM features),
found a weird fatal exception which failed to start the synapse.

[2015-09-30 18:23:51,439]  INFO
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Starting
ESB...
[2015-09-30 18:23:51,459]  INFO
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -
 Initializing Apache Synapse...
[2015-09-30 18:23:51,474] FATAL
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Failed to
initialize ESB due to a fatal error
java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:

org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection;
@289: invokevirtual
  Reason:
Type 'java/lang/Object' (current frame, stack[0]) is not assignable to
'java/net/URLConnection'
  Current Frame:
bci: @289
flags: { }
locals: { 'java/net/URL', 'java/lang/Object', 'java/util/Properties',
'java/lang/String', 'java/lang/String', 'java/util/List',
'java/lang/String', 'java/lang/String', 'java/lang/String', '[B',
'java/lang/String' }
stack: { 'java/lang/Object', 'java/lang/String', 'java/lang/String' }
  Bytecode:
000: 2ac7 001a b200 01b9 0020 0100 9900 0db2

So when digged through the cause of this exception, I was able re-produce
this error by only installing the analytics-core feature[1]. Further I was
able find that the below bundle caused this exception.
org.wso2.orbit.org.ow2.asm:asm-all[2]

This can also be produced on the ESB 4.9.0 by installing the analytics-core
feature.

The above exception was solved  by deleting the above (asm-all) dependency
on the pack.

I wonder why this dependency is causing the synapse failure ?. Any thoughts
on this would be helpful.

[1]
https://github.com/wso2/carbon-analytics/blob/master/features/analytics-core/org.wso2.carbon.analytics.core.server.feature/pom.xml
[2] https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml


Thanks
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][IS] slf4j version conflict with 1.6.x and 1.7.x

2015-09-29 Thread Ayyoob Hamza
Hi All,

In CDMF, When we install DAS feature with along the IS (4.6.0-M2) features.
Then we found IS features doesn't get activated. When we track the issue we
were able find that IS depends on slf4j version from 1.6.0 to 1.7.0 and DAS
depends on version from 1.7.0 to 1.8.0 Further we have both the slf4j
1.7.10 and 1.6.1 libraries within our pack. Yet only slf4j 1.7.10 gets
activated. The reason for this problem was:

slf4j 1.6.1 imports a package "org.slf4j.impl" and when slf4j 1.7.10 and
1.6.1 both has been used on the same product, then on slf4j- version 1.6.1
imports ("org.slf4j.impl" ) gets wired with 1.7.10 because the version has
been given as a single value rather a range.  Due to this it doesn't get
activated. Therefore we have to increase the range of slf4j from
[1.6.1,1.7) to [1.6.1,1.8) . The change wont have any effect because [1],
slf4j is compatible between 1.6.x and 1.7.x

Therefore I believe we have to only depend on latest slf4j version. where
having both causes the problem on wiring. So I think we have to update the
slf4j version on IS. This will arise a problem where IS dependent library
also needs to use the slf4j 1.7 range.

If there is any other solution please let know.

[1] http://www.slf4j.org/manual.html

Thanks
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Migrate to data publisher agent on carbon-analytics-common

2015-09-13 Thread Ayyoob Hamza
Hi All,
We are trying to integrate DAS Features to CDMF and we found that DAS uses
the latest data publisher agent[1]. Wherein APIM and ES has used the one on
carbon-commons[2]. This is raised a conflict on feature installation.
Furthermore we have found that APIM is also dependent on a osgi service[3]
which available on carbon-deployment, and this also requires the
carbon-common publisher agent. So I believe we have to migrate from the
carbon-common data publisher to the new one on all 3 components since the
old one will not have any support anymore. WDYT ?.

eg:
Cannot complete the install because of a conflicting dependency.
 Software being installed: WSO2 Carbon - Data Bridge - Data Publisher
Aggregate Feature 4.4.7
(org.wso2.carbon.databridge.datapublisher.feature.group 4.4.7) - Data
Publisher under carbon commons

 Software being installed: WSO2 Carbon - Data Bridge - Data Publisher
Aggregate Feature 5.0.1
(org.wso2.carbon.databridge.datapublisher.feature.group 5.0.1) - Data
Publisher under carbon analytics commons

Currently in order to work on the pack, did a small work around by
including the thrift data publisher as a bundle within the feature. So that
we can test the DAS features. But this is just for testing purposes.

[1]
https://github.com/wso2/carbon-analytics-common/tree/master/components/data-bridge
[2] https://github.com/wso2/carbon-commons/tree/4.4.x/components/data-bridge
[3]
https://github.com/wso2/carbon-deployment/tree/v4.5.0/components/service-mgt/bam-data-agents/org.wso2.carbon.bam.service.data.publisher/src/main/java/org/wso2/carbon/bam/service/data/publisher

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DAS] Aggregated feature for DAS capabilities

2015-09-07 Thread Ayyoob Hamza
Hi all,
We are planing to have DAS capabilities within the IoT-Server and EMM. And
our main idea is to be able to use DAS as an internal entity within the
IoT-Server/EMM or an external entity(ie. IoT server without analytics) by
switching through profiles. So wanted to know whether there is an
aggregated feature that does the task of providing DAS capabilities. if
there isn't any aggregated feature would it be feasible to create one ?.


Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Aggregated feature for DAS capabilities

2015-09-07 Thread Ayyoob Hamza
Had a offline discussion with Anjana, and decided to use
analytics-lite-feature.


*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Mon, Sep 7, 2015 at 1:04 PM, Sumedha Rubasinghe <sume...@wso2.com> wrote:

> DAS combines many things. So getting everything into a single feature
> could be complicated.
> Shall we try to redefine what we need @ the CDMF level and then try to get
> them from DAS side.
>
> This effort is needed by many other teams like API Manager, App Manager.
> So please get all those teams to agree on the feature list.
>
> For example some of the features we may require could include:
> - Event Listener (Receiver)
> - Data Storage
> - CEP Engine
> - Summarisation
>
>
>
> On Mon, Sep 7, 2015 at 12:13 PM, Ayyoob Hamza <ayy...@wso2.com> wrote:
>
>> Hi all,
>> We are planing to have DAS capabilities within the IoT-Server and EMM.
>> And our main idea is to be able to use DAS as an internal entity within the
>> IoT-Server/EMM or an external entity(ie. IoT server without analytics) by
>> switching through profiles. So wanted to know whether there is an
>> aggregated feature that does the task of providing DAS capabilities. if
>> there isn't any aggregated feature would it be feasible to create one ?.
>>
>>
>> Thanks,
>> *Ayyoob Hamza*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Install ES features into IoTServer

2015-08-25 Thread Ayyoob Hamza
Hi,
As the discussion on moving the web app layer to CDMF. We tried to install
the features but ES requires carbon common version 4.4.4. However CDMF is
on carbon common version 4.4.0.  which is needed for api.mgt 1.4.0, So is
it okay if we fork and continue the development with the latest versions,
so that it wont be a bottleneck for EMM release. ?

Thanks
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDMF] Add Tenant Specific Device Type to CDMF

2015-08-20 Thread Ayyoob Hamza
Hi All,
In IoT multi tenancy use case, we have to add a device type in a tenant
specific manner. So it would be great that when we register the device
type, the tenant information should also be captured and be reflected on
device type DTO.

for an example  :
firealarm device type can either be viewed to a set of tenants or it can be
viewed by only one.


Thanks
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CDMF] Add Tenant Specific Device Type to CDMF

2015-08-20 Thread Ayyoob Hamza
Hi All,
I make a patch on this and send an update.

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Thu, Aug 20, 2015 at 12:17 PM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi All,
 In IoT multi tenancy use case, we have to add a device type in a tenant
 specific manner. So it would be great that when we register the device
 type, the tenant information should also be captured and be reflected on
 device type DTO.

 for an example  :
 firealarm device type can either be viewed to a set of tenants or it can
 be viewed by only one.


 Thanks
 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

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


[Dev] How to specify timezone on user registration

2015-08-05 Thread Ayyoob Hamza
Hi,
When a new user is registered is there a standard way to define the
timezone of the user. So that we can display user specific timestamp data
related to their timezone.

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDMF] What is meant by the term features in CDMF

2015-08-05 Thread Ayyoob Hamza
Hi All,
What is meant by the term features(feature manager) in CDMF ?.

When considering a device, it has a set of sensors or actuators. So in here
does features are considered  as a collection of actuators or sensors or
both ?.

This is just a thought I got,  In CDMF, we have considered the control of
 actuators by operations and policies. likewise I found that it would be
great if we could bring sensor management into CDMF. This will help us to
identify and keep track of sensors that a device has got. This might also
help us to provide a common API for data extraction for a specific device
and also ease the process on defining the stream definition for a data
publisher.

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Insufficient Privileges after changing the admin password.

2015-08-04 Thread Ayyoob Hamza
Thanks Nuwan, for pointing out that changing only user-mgt.xml is
sufficient.


 We need the admin credentials to talk to admin services residing in other
 VMs. Is there a way to derive the admin password from the carbon runtime if
 its updated by the UI?


If user store are shared between systems and editing the password on
console other than the central console(eg: API manager which relies on
other systems) does not have a direct solution. However if its changed on
 a central managed(APIM itself) console then I think that if marshalling is
implemented on the carbon level then this would ease the configuration.

So i have a doubt here, If there is a feature in the console UI to update
the admin password then shouldn't it get marshalled and reflected on
user-mgt.xml. because for a simple password change on admin we have to
change few configurations and also restart the server if needed.

Please correct me if I am wrong here.

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.comi
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Insufficient Privileges after changing the admin password.

2015-08-03 Thread Ayyoob Hamza
Hi All,
I have shared the WSO2 API manager 1.9.0 user datasource with the CDMF user
datastore. I am getting insufficient privileges as a error message when I
access the api manager  store with the admin credential.  This behaviour
appeared after changing the password for admin user from the cdmf carbon
console.

I wanted to know whether I need to change the password details on the
api-manager.xml from api manager configuration ?. Is this the expected
behaviour of api manager ?. If so wanted to know whether is there a
specific reason for editing the password fields on these configuration
files.

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Insufficient Privileges after changing the admin password.

2015-08-03 Thread Ayyoob Hamza
Found the reason for having to change the password fields on api manager
config[1]. However I wonder why cant we have a default behaviour on api
manager to be able to adapt and work for default admin credentials And
 then be able to adapt other configurations only if its specified ?.

[1]https://docs.wso2.com/display/AM190/Maintaining+Logins+and+passwords

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Mon, Aug 3, 2015 at 10:46 PM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi All,
 I have shared the WSO2 API manager 1.9.0 user datasource with the CDMF
 user datastore. I am getting insufficient privileges as a error message
 when I access the api manager  store with the admin credential.  This
 behaviour appeared after changing the password for admin user from the cdmf
 carbon console.

 I wanted to know whether I need to change the password details on the
 api-manager.xml from api manager configuration ?. Is this the expected
 behaviour of api manager ?. If so wanted to know whether is there a
 specific reason for editing the password fields on these configuration
 files.

 Thanks,
 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

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


Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-28 Thread Ayyoob Hamza
Hi Ruwan,
Thanks for your suggestions, This makes sense because, with the offline
chat I had with kasunG; Classes are resolved initially before osgis' are
activated. Therefore there should be some duplicate packages. I ll try to
look into it and resolve it.

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Mon, Jul 27, 2015 at 10:00 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi Ayoob,
 There might be some other duplicate package exports in the pack which
 causes the CNF exception.

 Yes, I also second your observation (in carbon 4.4.0), that the Webapp
 Deployment occurs once the carbon-deployer bundle is activated. It will
 then make sure tomcat bundle is activated. However none of the other user
 bundles are not guaranteed to be activated at this time.

 @Thilini
 This is contrary to the document [1], which is for carbon 4.2.0 based.

 Also I have seen this error when Tomcat sees the offending class(package)
 in BundleA while other user bundle sees this class in BundleB. This is most
 probably what you are experiencing. Thats why it is important that no too
 bundles should export same package name.

 Cheers,
 Ruwan

 [1]
 http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/


 On Mon, Jul 27, 2015 at 12:50 AM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi Thilini
 As in this link (Under How tomcat works) it suggest that the war
 deployment happens after the tomcat bundle get activated, not the end of
 all osgi bundle activated.

 If thats the case how can we guarantee that the web deployment can only
 be happen after the osgi bundle activation ?.
 [ 1 ]
 http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/

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




 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

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


Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2015-07-28 Thread Ayyoob Hamza
Hi Ruwan,
Thanks for the tool, this will ease up the process on finding the duplicate
packages which I am being stalled on.

Cheers,

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Tue, Jul 28, 2015 at 8:08 PM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi All,
 I created small program to inspect a Carbon based pack for duplicate class
 exports.
 This will help to resolve intermittent NoClassDefFoundException.
 I have put it into [1] hoping that anyone facing the same issue as I did,
 can save few days of trouble. You need to checkout and build it.
 Instructions are provided in the README file.

 Please let me know of any improvements or issues.

 [1]https://github.com/ruwanta/CarbonOSGI-Bundle-Verifier


 Cheers
 Ruwan

 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

 ___
 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] Web-Deployment order in an OSGI execution flow

2015-07-26 Thread Ayyoob Hamza
Hi Thilini
As in this link (Under How tomcat works) it suggest that the war deployment
happens after the tomcat bundle get activated, not the end of all osgi
bundle activated.

If thats the case how can we guarantee that the web deployment can only be
happen after the osgi bundle activation ?.
[ 1 ]
http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Web-Deployment order in an OSGI execution flow

2015-07-26 Thread Ayyoob Hamza
Hi Ruwan,
Thanks for pointing out the duplications. I tried it and I am still getting
the No class def found on the referred bundle classes. And this behaviour
is random. This is why, it made me think to know whether is it always
guaranteed that the war deployment happens after the osgi bundle activation.

Thanks
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Sat, Jul 25, 2015 at 1:45 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi Ayoob,

 I am not sure this answers your question.
 However I observed following duplicate exports in your bundle. Please try
 to remove one of them manually and check.

 javax.xml.soap; version=0.0.0org.eclipse.osgi_3.9.1.v20130814-1242 [0]
 javax.xml.soap; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38]

 org.apache.ws.security.handler;
 version=1.5.11.wso2v9wss4j_1.5.11.wso2v10 [401]
 org.apache.ws.security.handler;
 version=1.5.11.wso2v9wss4j_1.5.11.wso2v9 [402]


 osgi
 osgi p javax.xml.soap
 javax.xml.soap; version=0.0.0org.eclipse.osgi_3.9.1.v20130814-1242 [0]
   org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
   org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports
   org.wso2.carbon.p2.touchpoint_4.4.0 [290] imports
   tomcat_7.0.59.wso2v1 [390] imports
 javax.xml.soap; version=1.0.0geronimo-saaj_1.3_spec_1.0.0.wso2v3 [38]
   axis2_1.6.1.wso2v12 [14] imports
   org.wso2.carbon.apimgt.core_1.4.0 [154] imports
   spring.framework_3.2.9.wso2v1 [387] imports
   wss4j_1.5.11.wso2v10 [401] imports
   wss4j_1.5.11.wso2v9 [402] imports
 osgi
 osgi
 osgi
 osgi p org.apache.ws.security.handler
 org.apache.ws.security.handler;
 version=1.5.11.wso2v9wss4j_1.5.11.wso2v10 [401]
   org.wso2.carbon.security.mgt_4.4.0 [331] imports
   rampart-core_1.6.1.wso2v14 [377] imports
   rampart-trust_1.6.1.wso2v14 [379] imports
 org.apache.ws.security.handler;
 version=1.5.11.wso2v9wss4j_1.5.11.wso2v9 [402]
 osgi

 Cheers,
 Ruwan

 On Fri, Jul 24, 2015 at 3:22 PM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi All,
 In Carbon, when the webdeployer features are installed, will the web apps
 be deployed after all the osgi's are activated or will they run soon after
 the tomcat is activated ?.
 Is there a such a order ?

 Thanks,
 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

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




 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

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


[Dev] Web-Deployment order in an OSGI execution flow

2015-07-24 Thread Ayyoob Hamza
Hi All,
In Carbon, when the webdeployer features are installed, will the web apps
be deployed after all the osgi's are activated or will they run soon after
the tomcat is activated ?.
Is there a such a order ?

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM][CDM] EMM url prints from cdmf

2015-07-22 Thread Ayyoob Hamza
Hi,
What is the  reason for printing emm url from CDMF[1][2]. because this
 block will be executed even if we are running only cdmf without the emm. I
believe this needs to be moved into cdmf-plugins for emm.

[1]
https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/startup/handler/URLPrinterStartupHandler.java
https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fcarbon-device-mgt%2Fblob%2Fmaster%2Fcomponents%2Fdevice-mgt%2Forg.wso2.carbon.device.mgt.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fdevice%2Fmgt%2Fcore%2Fstartup%2Fhandler%2FURLPrinterStartupHandler.javasa=Dsntz=1usg=AFQjCNGtwmG8FXfXpbA6813Scdtt14lfQw
[2]
https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/internal/DeviceManagementServiceComponent.java


Thanks,


*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDM] Device attribute within the Enrolment Class

2015-07-21 Thread Ayyoob Hamza
Hi,
In CDM, Device class[1] has an attribute called EnrolmentInfo[2]. What is
the reason for having a Device attribute once again within the
EnrolmentInfo class ?.


[1]
https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/Device.java
[2]
https://github.com/wso2/carbon-device-mgt/blob/a5a9d02deec97dfd69d04c3b5c747fd3215a1323/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/EnrolmentInfo.java

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BAM] Minimom Memory for BAM

2015-07-19 Thread Ayyoob Hamza
Found the reason for bam not able to execute the summarisation script. this was
due to less disk space on server. Even though there was 7GB disk space
available on the server, it had only 700 inode for filesystem. I deleted
the files that not needed.

This solved the issue.

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Sun, Jul 19, 2015 at 10:37 AM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi,
 We are working on pushing sensor data into the BAM. Suddenly bam
 summarisation stopped working after a while, however still the sensor
 events are being pushed into Cassandra. I just wanted to know, if the
 number of data points increases then does it requires more of a reasonable
 amount of memory(RAM) to summarise. is that the default behaviour of BAM ?.
 If that is the case, what is the minimum requirement for the memory needed
 for an instance to be run on a production environment.

 Or wanted to know having a machine more than the pre requisite[1] is
 sufficient ?

 https://docs.wso2.com/display/BAM250/Installation+Prerequisites

 Thanks,
 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

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


[Dev] [BAM] Minimom Memory for BAM

2015-07-18 Thread Ayyoob Hamza
Hi,
We are working on pushing sensor data into the BAM. Suddenly bam
summarisation stopped working after a while, however still the sensor
events are being pushed into Cassandra. I just wanted to know, if the
number of data points increases then does it requires more of a reasonable
amount of memory(RAM) to summarise. is that the default behaviour of BAM ?.
If that is the case, what is the minimum requirement for the memory needed
for an instance to be run on a production environment.

Or wanted to know having a machine more than the pre requisite[1] is
sufficient ?

https://docs.wso2.com/display/BAM250/Installation+Prerequisites

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Performance Issue with Jaggery App inspired by Unified UI Framework

2015-07-16 Thread Ayyoob Hamza
Hi,
I believe that implementing zero copy[1] to transfer static files would
improve the performance significantly rather than copying it through the
user space.

[1]http://www.ibm.com/developerworks/library/j-zerocopy/

http://www.ibm.com/developerworks/library/j-zerocopy/

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Thu, Jul 16, 2015 at 3:57 PM, Manuranga Perera m...@wso2.com wrote:

 one more improved we can easily do, is to respond to If-Modified-Since.
 this will reduce the size of requests we have to send to subsequent calls.

 On Thu, Jul 16, 2015 at 1:18 PM, Rasika Perera rasi...@wso2.com wrote:

 ​Hi,

 Please review and merge fix[1] for public jira[2]. Did a load balance
 test using 10 threads; issue is still seems to exist even though the fix[1]
 improved the performance of the stream out (average server response time is
 still growing).

 IMO unified UI framework should not serve static type files(eg. images,
 js, css ..etc); instead the container itself must be optimized to do the
 job. Since we are using virtual paths here; simply escaping static file
 serving from the framework would not be possible.

 Virtual Path: {context}/public/{unit-name}/{resource-path}
 Real Path: {context}/units/{unit-name}/public/{resources-path}

 Virtual Path:
 https://localhost:9443/iotserver/public/arduino/images/arduino.png
 Real Path: https://localhost:9443/iotserver
 /units/arduino/public/images/arduino.png

 As per offline discussion, in order to solve this Manuranga is writing a
 front layer in java for the UUI framework.

 Thank you

 [1] https://github.com/wso2/jaggery/pull/130
 [2] https://wso2.org/jira/browse/JAGGERY-408

 On Wed, Jul 15, 2015 at 12:13 PM, Manuranga Perera m...@wso2.com wrote:

 as per our off-line debugging session, issues seems to be in Jaggery
 Stream print [1] function. Rasika will look into improving scream copy java
 method and check.


 [1]
 https://github.com/wso2/jaggery/blob/master/components/jaggery-core/org.jaggeryjs.jaggery.core/src/main/java/org/jaggeryjs/jaggery/core/manager/CommonManager.java

 On Wed, Jul 15, 2015 at 3:40 AM, Manuranga Perera m...@wso2.com wrote:

 Let's take a JFR snapshot and see what's really taking time. I am
 guessing its reading of the definition files. We can cache the unit
 definitions if that's the case.
 On 15 Jul 2015 00:24, Rasika Perera rasi...@wso2.com wrote:

 Hi All,

 We have setup a Jaggery App written using Unified UI sharable
 components framework on top of a WSO2 server pack.

 When increasing the number of concurrent users we are experiencing a
 huge performance drop in the server. In the middle of an internal training
 session we tried to access the Jaggery Application using 9-10 concurrent
 browser terminals. Server tends to hits 100% CPU usage when trying to
 accessing webapp.

 At the server side we are getting following error intermittently;

 [2015-07-14 23:31:58,270] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.apache.catalina.connector.ClientAbortException: java.io.IOException:
 Broken pipe (/iotserver/lib/fuse-router.js#92)
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.apache.catalina.connector.ClientAbortException: java.io.IOException:
 Broken pipe (/iotserver/lib/fuse-router.js#92)


 The thread dump of the server is attached[1]. Most of active threads
 are executing fuse.js and rhino This issue is reproducible at the 
 local
 machine when accessing concurrently.

 http-nio-9443-exec-14 daemon prio=10 tid=0x7fc330057000
 nid=0x14eb runnable [0x7fc30ae26000]
java.lang.Thread.State: RUNNABLE
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.iotserver.lib.c0._c_anonymous_1(/iotserver/lib/fuse.jag:6)
 at org.jaggeryjs.rhino.iotserver.lib.c0.call(/iotserver/lib/fuse.jag)
 at
 org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at
 org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at
 org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.iotserver.lib.c0._c_anonymous_1(/iotserver/lib/fuse.jag:5)
 at org.jaggeryjs.rhino.iotserver.lib.c0.call(/iotserver/lib/fuse.jag)
 at
 org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at
 org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at
 org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.iotserver.lib.c0._c_anonymous_1(/iotserver/lib/fuse.jag:5

Re: [Dev] wso2server.sh start/stop not working with space in

2015-06-22 Thread Ayyoob Hamza
Hi John,
I had the same problem when i checked and I was able to sort it out by
adding double-quote to the string $CARBON_HOME wherever its been opted out.

$CARBON_HOME - $CARBON_HOME


*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Mon, Jun 22, 2015 at 7:40 PM, John Hawkins jo...@wso2.com wrote:

 Yes - exactly :-)


 John Hawkins
 Director Solutions Architecture

 On 22 Jun 2015, at 14:01, Jason De Silva jas...@wso2.com wrote:

 Hi John,

 If I understood correctly now your concern is to run APIM in background
 mode right? If so what Rajith suggested is not the solution as I believe,
 hope I am not missing some thing. Also in the initial mail I missed out
 what you meant by space which made me suggest the previous solution.

 How ever I  got APIM 1.8.0 to run wso2server.sh start out of the box
 which resided in a folder which did not have a space in between the folder
 name. But when I tried to do the same where the APIM was in a folder which
 had a name with space in between it did not start successfully.

 Is this what you are facing too?

 Regards
 Jason

 On Mon, Jun 22, 2015 at 6:22 PM, John Hawkins jo...@wso2.com wrote:

 Hi Rajith,
 Sure, I understand that is the workaround. But this a bug in the script -
 and if I found it then so will others?
 As I'm a newbie - What's the best way to raise this as a bug ?


 On Monday, June 22, 2015, Rajith Roshan raji...@wso2.com wrote:

 Hi John,
 Change the directory to the  bin  folder inside the wso2am-1.8.0
 directory in command line .
 Then enter ./wso2server.sh to start the server
 and press ctrl+c to stop the server.

 Thanks.
 Rajith



 On Mon, Jun 22, 2015 at 5:21 PM, John Hawkins jo...@wso2.com wrote:

 HI Jason,

 this isn't the same problem as I'm seeing is it?
 My scenario is this...

 UNZIP e.g. APIM into directory with a space in the path e.g. /my
 spaced path/APIM

 wso2server.sh start - doesn't appear to work. Pid file is created but I
 can't see a running process
 wso2server.sh stop - fails because the cmd line produced needs quoting.
 Presumably this is why the above fails as well.

 cheers,
 John.


 On Monday, June 22, 2015, Jason De Silva jas...@wso2.com wrote:

 Hi John,

 I did try it with Application Server 5.2.1 and it seems to not work
 out the box. However I found out a jira issue raised for carbon [1]. And I
 did the relevant change [2] to the wso2server.sh file and ran the commands
 wso2server.sh start
 wso2server.sh stop

 After the change made, I observed that it works fine and you can start
 / stop the server. Hope this helps


 Regards
 Jason


 1. https://wso2.org/jira/browse/CARBON-14477
 2. https://wso2.org/jira/secure/attachment/32361/CARBON-14477.diff

 On Mon, Jun 22, 2015 at 2:37 PM, John Hawkins jo...@wso2.com wrote:

 HI Folks,

 Possibly a newbie error but when I’ve unzipped wso2 server (API
 manager in this case if that makes a difference) into a directory with a
 space in it e.g.

 /wso2 servers/wso2am-1.8.0

 then starting and stopping the server seems to fail using the syntax

 wso2server.sh start
 wso2server.sh stop

 I can see when I try the stop that it can’t find the pid file as it
 interprets the file tree wrongly however I don’t think the start is 
 working
 anyhow so it wouldn’t find anything to stop :-)

 Any thoughts ?


 many thanks,
 John.

 John Hawkins
 Director Solutions Architecture



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




 --
 Jason De Silva
 *Software Engineer - QA*
 Mobile: +94 (0) 772 097 678
 Email: jas...@wso2.com
 WSO2 Inc. www.wso2.com



 --
 John Hawkins
 Director: Solutions Architecture



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




 --
 Rajith Roshan
 Software Engineer, WSO2 Inc.
 Mobile: +94-72-642-8350 %2B94-71-554-8430



 --
 John Hawkins
 Director: Solutions Architecture





 --
 Jason De Silva
 *Software Engineer - QA*
 Mobile: +94 (0) 772 097 678
 Email: jas...@wso2.com
 WSO2 Inc. www.wso2.com



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


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


[Dev] [CDMF] Connect IOT Devices with CDMF

2015-05-07 Thread Ayyoob Hamza
Hi all,
We are intending to enroll and manage iot devices with the cdmf. For this
purpose we couldn't find a web service that could perform this task
on[1].Therefore we thought of creating a patch to expose a secured JAX-RS
service with basic authentication for device management.

What are your thoughts on this ?

[1]https://github.com/wso2/carbon-device-mgt

Best Regards,

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CDMF] Connect IOT Devices with CDMF

2015-05-07 Thread Ayyoob Hamza
Thanks for the info Milan

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Thu, May 7, 2015 at 12:39 PM, Milan Perera mi...@wso2.com wrote:

 Hi Ayyoob,

 In order to enroll and manage devices, first you have to create a plugin
 (OSGI service) which should contain the device specific operations,
 policies and etc. Then you can register that plugin in the core[1]. So then
 you will have to implement JAX-RS service that should communicate with that
 plugin and get the things done.

 [1]https://github.com/wso2/carbon-device-mgt

 Thanks,

 On Thu, May 7, 2015 at 12:27 PM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi all,
 We are intending to enroll and manage iot devices with the cdmf. For this
 purpose we couldn't find a web service that could perform this task
 on[1].Therefore we thought of creating a patch to expose a secured JAX-RS
 service with basic authentication for device management.

 What are your thoughts on this ?

 [1]https://github.com/wso2/carbon-device-mgt

 Best Regards,

 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

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




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera

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


Re: [Dev] [CDMF] Connect IOT Devices with CDMF

2015-05-07 Thread Ayyoob Hamza
Thanks Dulitha,
I will look into it and let you know

Regards,

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Fri, May 8, 2015 at 7:36 AM, Dulitha Wijewantha duli...@wso2.com wrote:

 Hi Ayyob,
 So below are the things you need to do to get things started -

- You'll have to write an IoT device-mgt plugin -
https://github.com/wso2/carbon-device-mgt-plugins
- You'll need to write a JAX-RS layer where the IOT agent communicates
- I started some work on a python based agent -
https://github.com/dulichan/iot-ref-arch/tree/master/python-agent/agent.
I think we can start from there.

 Please meet me to talk further on this.

 Cheers~

 On Thu, May 7, 2015 at 4:52 PM, Ayyoob Hamza ayy...@wso2.com wrote:

 Thanks for the info Milan

 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

 On Thu, May 7, 2015 at 12:39 PM, Milan Perera mi...@wso2.com wrote:

 Hi Ayyoob,

 In order to enroll and manage devices, first you have to create a plugin
 (OSGI service) which should contain the device specific operations,
 policies and etc. Then you can register that plugin in the core[1]. So then
 you will have to implement JAX-RS service that should communicate with that
 plugin and get the things done.

 [1]https://github.com/wso2/carbon-device-mgt

 Thanks,

 On Thu, May 7, 2015 at 12:27 PM, Ayyoob Hamza ayy...@wso2.com wrote:

 Hi all,
 We are intending to enroll and manage iot devices with the cdmf. For
 this purpose we couldn't find a web service that could perform this task
 on[1].Therefore we thought of creating a patch to expose a secured JAX-RS
 service with basic authentication for device management.

 What are your thoughts on this ?

 [1]https://github.com/wso2/carbon-device-mgt

 Best Regards,

 *Ayyoob Hamza*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

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




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera



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




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

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


Re: [Dev] WSO2 Committers += Irham Iqbal

2015-03-10 Thread Ayyoob Hamza
Congrats Irham

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495

On Tue, Mar 10, 2015 at 1:53 PM, Milan Perera mi...@wso2.com wrote:

 Congratz Irham..!

 On Tue, Mar 10, 2015 at 1:45 PM, Tharik Kanaka tha...@wso2.com wrote:

 congratulations Irham

 On Tue, Mar 10, 2015 at 1:40 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulation Irham.

 On Tue, Mar 10, 2015 at 1:38 PM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Congratulation Irham.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Tue, Mar 10, 2015 at 1:35 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Congratulations Irham

 On Tue, Mar 10, 2015 at 1:29 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Congratz Irham !!!

 On Tue, Mar 10, 2015 at 1:27 PM, Saneth Dharmakeerthi 
 sane...@wso2.com wrote:

 Congratulations Irham...

 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

 On Tue, Mar 10, 2015 at 1:23 PM, Malintha Adikari malin...@wso2.com
  wrote:

 Congratulations Irham!

 On Tue, Mar 10, 2015 at 7:51 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi all,

 It's my pleasure to welcome Irham Iqbal as a WSO2 Committer.

 Irham, welcome aboard and keep up the good work!

 Thanks,
 Krishantha.

 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




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



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




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email :
 dimut...@wso2.com


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




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



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




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

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




 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera

 ___
 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