Re: [Dev] Error while Building Project for Microservice-GW

2018-06-29 Thread Bhashinee Nirmali
2)
>>> at
>>> org.wso2.apimgt.gateway.cli.oauth.OAuthServiceImpl.generateClientIdAndSecret(OAuthServiceImpl.java:94)
>>> ... 4 more
>>> Caused by: java.io.IOException: Invalid keystore format
>>> at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:650)
>>> at
>>> sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
>>> at java.security.KeyStore.load(KeyStore.java:1445)
>>> at
>>> sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(TrustManagerFactoryImpl.java:226)
>>> at
>>> sun.security.ssl.SSLContextImpl$DefaultSSLContext.getDefaultTrustManager(SSLContextImpl.java:767)
>>> at
>>> sun.security.ssl.SSLContextImpl$DefaultSSLContext.(SSLContextImpl.java:733)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>>> at java.security.Provider$Service.newInstance(Provider.java:1595)
>>> ... 16 more
>>>
>>>
>>> [+add dev]
>>
>>>
>>> --
>>> Dushan Abeyruwan | Architect
>>> 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-987-1348
>>>
>>>
>>
>>
>> --
>> Dushan Abeyruwan | Architect
>> 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-987-1348
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Bhashinee Nirmali*
*Software Engineer*
*WSO2 Lanka (Private) Limited: **http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>*
*lean.enterprise.middle-ware*


*phone: (+94) 71 21 50003*
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2-ei-6.2: unexplained FileNotFoundException opening Keystore file at startup

2018-05-22 Thread Bhashinee Nirmali
Hi Bernard,

Try giving the path without '${carbon.home}/'. For example give the
keystore location as 'repository/resources/security/wso2ei-mgmt.jks'.

Thanks,
Bhashinee

On Tue, May 22, 2018 at 9:21 PM Bernard Paris <bernard.pa...@uclouvain.be>
wrote:

> Hi,
>
> strange behavior: starting EI6.2  won't find my custom keystore file:
>
> From the unix console, no doubt, the file is there located :
> $ ls -al /opt/wso2/wso2ei/repository/resources/security/wso2ei-mgmt.jks
> -rw-r--r-- 1 wso2 wso2 4421 May 22 16:21
> /opt/wso2/wso2ei/repository/resources/security/wso2ei-mgmt.jks
>
> I can read this file with
> keytool -v -list -keystore
> /opt/wso2/wso2ei/repository/resources/security/wso2ei-mgmt.jks -alias
> wso2ei-mgmt
>
>
>
> In the logs the carbon home seems to be correctly defined at "
> /opt/wso2/wso2ei"
>
> … so why the
> ${carbon.home}/repository/resources/security/wso2ei-mgmt.jks file is not
> found ???
>
>
>
>
> *In wso2-ei6 logs at startup:*
>
> TID: [-1234] [] [2018-05-22 17:29:19,345]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
> Java HotSpot(TM) 64-Bit Server VM 25.162-b12,Oracle Corporation
> {org.wso2.carbon.core.internal.CarbonCoreActivator}
> TID: [-1234] [] [2018-05-22 17:29:19,345]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  :
> /opt/wso2/wso2ei {org.wso2.carbon.core.internal.CarbonCoreActivator}
> TID: [-1234] [] [2018-05-22 17:29:19,345]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir:
> /opt/wso2/wso2ei/wso2/tmp
> {org.wso2.carbon.core.internal.CarbonCoreActivator}
>
> bla bla bla 
>
> TID: [-1234] [] [2018-05-22 17:29:42,085] ERROR
> {org.apache.synapse.transport.nhttp.config.ClientConnFactoryBuilder} -
>  HTTPS Error opening Keystore :
> ${carbon.home}/repository/resources/security/wso2ei-mgmt.jks
> {org.apache.synapse.transport.nhttp.config.ClientConnFactoryBuilder}
> java.io.FileNotFoundException:
> ${carbon.home}/repository/resources/security/wso2ei-mgmt.jks (No such file
> or directory)
>
> bla bla bla ….
>
> TID: [-1234] [] [2018-05-22 17:29:42,127] ERROR
> {org.apache.synapse.transport.nhttp.config.ServerConnFactoryBuilder} -
>  HTTPS Error opening Key store :
> ${carbon.home}/repository/resources/security/wso2ei-mgmt.jks
> {org.apache.synapse.transport.nhttp.config.ServerConnFactoryBuilder}
> java.io.FileNotFoundException:
> ${carbon.home}/repository/resources/security/wso2ei-mgmt.jks (No such file
> or directory)
>
> bla bla bla ….
>
> TID: [-1234] [] [2018-05-22 17:29:42,130] ERROR
> {org.apache.axis2.engine.ListenerManager} -  Couldn't initialize the
> httpstransport listener {org.apache.axis2.engine.ListenerManager}
> org.apache.axis2.AxisFault: Error opening Key store :
> ${carbon.home}/repository/resources/security/wso2ei-mgmt.jks
> at
> org.apache.synapse.transport.nhttp.config.ServerConnFactoryBuilder.createSSLContext(ServerConnFactoryBuilder.java:132)
>
>
>
> Any idea on how to get out of this problem ?
>
>
>
>
> *Bernard Paris*
> *Publication programme d'études - gestion ESB*
> Informaticien SGSI/SISG
> Service général du système d'information (SGSI)
> Place des Sciences, 4 bte L6.08.01
> 1348 Louvain-la-Neuve
>
> Email: bernard.pa...@uclouvain.be <bernard.pa...@uclouvain.be>
> Tél. 32 (0)10 47 45 27
> https://uclouvain.be/fr/decouvrir/sgsi.html
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Bhashinee Nirmali*
*Software Engineer*
*WSO2 Lanka (Private) Limited: **http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>*
*lean.enterprise.middle-ware*


*phone: (+94) 71 21 50003*
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JKS with multiple keys (each with unique passwords)

2018-01-10 Thread Bhashinee Nirmali
/users/4329912/pubudu>
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950 <+1%20650-625-7950>
>>>
>>> Blog: http://blog.facilelogin.com
>>> Vlog: http://vlog.facilelogin.com
>>>
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **az...@wso2.com* <az...@wso2.com>
>> * cell: +94 77 3320919 <+94%2077%20332%200919>blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*
>> <http://twitter.com/afkham_azeez>
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Best Regards,
>
> *Pubudu Fernando*
> Software Engineer
> WSO2 (www.wso2.com)
> m: +94 77 888 2543 <+94%2077%20888%202543>
>
> <https://lk.linkedin.com/in/pubuduf>  <http://blog.pubudu.xyz/>
> <https://github.com/pubudu91>
> <http://stackoverflow.com/users/4329912/pubudu>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Bhashinee Nirmali*
*Software Engineer*
*WSO2 Lanka (Private) Limited: **http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>*
*lean.enterprise.middle-ware*


*phone: (+94) 71 21 50003*
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Correct Xpath expression to read database response.

2018-01-06 Thread Bhashinee Nirmali
>>> = http://schemas.xmlsoap.org/soap/envelope/
>>> ">http://ws.wso2.org/dataservice;>138
>>> senu...@wso2.com>> >Altoblue<
>>> ENGINE_CAPACITY>800<
>>> SUN_ROOF>YesYes>> HEATED_LEATHER_SEATS>No>> TAILGATE>NoApproved>> STATUS>Pink5T>> TIRE_SIZE>
>>> [2018-01-06 15:08:24,164] [EI-Core]  INFO - LogMediator
>>> Email =
>>> [2018-01-06 15:08:24,186] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-3 << "HTTP/1.1 202 Accepted[\r][\n]"
>>> [2018-01-06 15:08:24,189] [EI-Core] DEBUG - wire HTTP-Listener I/O
>>> dispatcher-3 << "Content-Type: text/xml; charset=UTF-8[\r][\n]"
>>>
>>>
>>>
>>>
>>> Any suggestion to for the correct Xpath Expression.
>>>
>>> Thanks.
>>>
>>> *Senuwan Withana*
>>> Software Engineer - Support Team | WSO2
>>>
>>> Email : senu...@wso2.com
>>> Mobile: 94773212853
>>> Web: http://www.wso2.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Bhashinee Nirmali*
*Software Engineer*
*WSO2 Lanka (Private) Limited: **http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>*
*lean.enterprise.middle-ware*


*phone: (+94) 71 21 50003*
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Proxy server not working

2017-11-01 Thread Bhashinee Nirmali
Hi All,

I configured a proxy server in ESB 5.0.0 as given here in [1] as [2]. I
have an API[3] deployed in ESB which calls to a backend service. I have a
ballerina service with a server connector as the backend service. I used a
squid proxy as the intermediary proxy server and configured it by giving
the http_port as 3128. When I invoke the API from a curl it shows an error
like in the attached file.
When I call the same backend with a curl command with the squid proxy as
[4], it works fine.

[1]* https://docs.wso2.com/display/ESB500/Working+with+Proxy+Servers
<https://docs.wso2.com/display/ESB500/Working+with+Proxy+Servers>*

[2]
true

127.0.0.1
3128



[3] http://ws.apache.org/ns/synapse; name="ttt" context="/b">
 
  
 

 
 

   http://localhost:9090/hello"/>

 
  
  
 

 
 
  
   


[4] curl -v http://localhost:9090/hello --proxy 127.0.0.1:3128

Please correct me if I have done something wrong.

Thanks and Regards

-- 
*Bhashinee Nirmali*
*Software Engineer*
*WSO2 Lanka (Private) Limited: **http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>*
*lean.enterprise.middle-ware*


*phone: (+94) 71 21 50003*
<http://wso2.com/signature>
*   Trying 172.17.0.1...
* Connected to 172.17.0.1 (172.17.0.1) port 8280 (#0)
> GET /b HTTP/1.1
> Host: 172.17.0.1:8280
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 400 Bad Request
< X-Cache: MISS from bhashinee-ThinkPad-X1-Carbon-5th
< X-Cache-Lookup: NONE from bhashinee-ThinkPad-X1-Carbon-5th:3128
< Vary: Accept-Language
< X-Squid-Error: ERR_INVALID_URL 0
< Mime-Version: 1.0
< Content-Language: en
< Content-Type: text/html;charset=utf-8
< Via: 1.1 bhashinee-ThinkPad-X1-Carbon-5th (squid/3.5.12)
< Date: Mon, 30 Oct 2017 15:18:21 GMT
< Transfer-Encoding: chunked
< Connection: Close
< 
http://www.w3.org/TR/html4/strict.dtd;>



ERROR: The requested URL could not be retrieved
<!-- 
 /*
 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
 *
 * Squid software is distributed under GPLv2+ license and includes
 * contributions from numerous individuals and organizations.
 * Please see the COPYING and CONTRIBUTORS files for details.
 */

/*
 Stylesheet for Squid Error pages
 Adapted from design by Free CSS Templates
 <a  rel="nofollow" href="http://www.freecsstemplates.org">http://www.freecsstemplates.org</a>
 Released for free under a Creative Commons Attribution 2.5 License
*/

/* Page basics */
* {
font-family: verdana, sans-serif;
}

html body {
margin: 0;
padding: 0;
background: #efefef;
font-size: 12px;
color: #1e1e1e;
}

/* Page displayed title area */
#titles {
margin-left: 15px;
padding: 10px;
padding-left: 100px;
background: url('/squid-internal-static/icons/SN.png') no-repeat left;
}

/* initial title */
#titles h1 {
color: #00;
}
#titles h2 {
color: #00;
}

/* special event: FTP success page titles */
#titles ftpsuccess {
background-color:#00ff00;
width:100%;
}

/* Page displayed body content area */
#content {
padding: 10px;
background: #ff;
}

/* General text */
p {
}

/* error brief description */
#error p {
}

/* some data which may have caused the problem */
#data {
}

/* the error message received from the system or other software */
#sysmsg {
}

pre {
font-family:sans-serif;
}

/* special event: FTP / Gopher directory listing */
#dirmsg {
font-family: courier;
color: black;
font-size: 10pt;
}
#dirlisting {
margin-left: 2%;
margin-right: 2%;
}
#dirlisting tr.entry td.icon,td.filename,td.size,td.date {
border-bottom: groove;
}
#dirlisting td.size {
width: 50px;
text-align: right;
padding-right: 5px;
}

/* horizontal lines */
hr {
margin: 0;
}

/* page displayed footer area */
#footer {
font-size: 9px;
padding-left: 10px;
}


body
:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, 
sans-serif; float: right; }
:lang(he) { direction: rtl; }
 -->


ERROR
The requested URL could not be retrieved




The following error was encountered while trying to retrieve the URL: /hello


Invalid URL


Some aspect of the requested URL is incorrect.

Some possible problems are:

Missing or incorrect access protocol (should be http:// or 
similar)
Missing hostname
Illegal double-escape in the URL-Path
Illegal character in hostname; underscores are not allowed.


Your cache administrator is mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_INVALID_URLbody=CacheHost%3A%20bhashinee-ThinkPad-X1-Carbon-5th%0D%0AErrPage%3A%20ERR_INVALID_URL%0D%0AErr%3A%20%5Bnon

Re: [Dev] [Siddhi] [Markov Models Extension] What is the stored location of trained Markov matrices?

2017-03-06 Thread Bhashinee Nirmali
Hi All,

We are using this Markov extension in our final year project. I would like
to improve this extension in a way that it stores the generated Markov
model in a database and to use it after restarting the server. Any
suggestions are appreciated.

Thanks and Regards
Bhashinee

On Wed, Oct 19, 2016 at 3:21 PM, Ashen Weerathunga <as...@wso2.com> wrote:

> Hi Bhashinee,
>
> You can find the source code from here[1].
>
> [1]https://github.com/wso2/siddhi/tree/master/modules/
> siddhi-extensions/markov-models
>
> Best Regards,
> Ashen
>
> On Wed, Oct 19, 2016 at 3:09 PM, Bhashinee Nirmali <bhashin...@gmail.com>
> wrote:
>
>> Hi All,
>>
>> Thank you for the information. I would like to study more about this. Can
>> you please point me to the source code of Markov model extension?
>>
>> Thanks
>>
>> On Tue, Oct 18, 2016 at 1:47 AM, Ashen Weerathunga <as...@wso2.com>
>> wrote:
>>
>>> Hi Tishan,
>>>
>>> We don't have any non-serializable objects and we are currently
>>> using CEP persistence option to persist the state of Markov extension. But
>>> currently, we cannot export the Markov matrix separately as a csv.
>>> Therefore the Markov matrix generated by the extension cannot be used
>>> externally IMO.
>>>
>>> Thanks,
>>> Ashen
>>>
>>> On Tue, Oct 18, 2016 at 12:45 PM, Tishan Dahanayakage <tis...@wso2.com>
>>> wrote:
>>>
>>>> Ashen,
>>>>
>>>> Can't we use CEP persistence option to persist the state of Markov
>>>> extension to file system and re-use? Do we have any non-serializable
>>>> objects?
>>>>
>>>> /Tishan
>>>>
>>>> On Tue, Oct 18, 2016 at 12:28 PM, Ashen Weerathunga <as...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Bhashinee,
>>>>>
>>>>> In the current implementation, we are storing the Markov matrix using
>>>>> a hashmap. Therefore if you shut down the server it won't be persisted. 
>>>>> But
>>>>> we have provided a facility to input an already built Markov matrix as a
>>>>> CSV file. So in such case, you can use that option to input the matrix
>>>>> again and start training. Please refer docs[1] for more details.
>>>>>
>>>>> [1]https://docs.wso2.com/pages/viewpage.action?pageId=56993859
>>>>>
>>>>> Best regards,
>>>>> Ashen
>>>>>
>>>>>
>>>>> On Tue, Oct 18, 2016 at 10:08 AM, Bhashinee Nirmali <
>>>>> bhashin...@gmail.com> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I'm trying the Markov Models Extension of WSO2 CEP. I need to know
>>>>>> the location where the newly built matrices are stored in. And do I need 
>>>>>> to
>>>>>> built the matrix again after shutting down the CEP or is the created 
>>>>>> matrix
>>>>>> still there in the memory?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Undergraduate
>>>>>> Faculty of Information Technology
>>>>>> University of Moratuwa
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Ashen Weerathunga*
>>>>> Software Engineer
>>>>> WSO2 Inc.: http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> Email: as...@wso2.com
>>>>> Mobile: tel:94716042995 <94716042995>
>>>>> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
>>>>> <http://lk.linkedin.com/in/ashenweerathunga>*
>>>>> <http://wso2.com/signature>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Tishan Dahanayakage
>>>> Senior Software Engineer
>>>> WSO2, Inc.
>>>> Mobile:+94 716481328
>>>>
>>&

Re: [Dev] [Siddhi] [Markov Models Extension] What is the stored location of trained Markov matrices?

2016-10-19 Thread Bhashinee Nirmali
Hi All,

Thank you for the information. I would like to study more about this. Can
you please point me to the source code of Markov model extension?

Thanks

On Tue, Oct 18, 2016 at 1:47 AM, Ashen Weerathunga <as...@wso2.com> wrote:

> Hi Tishan,
>
> We don't have any non-serializable objects and we are currently using CEP
> persistence option to persist the state of Markov extension. But currently,
> we cannot export the Markov matrix separately as a csv. Therefore the
> Markov matrix generated by the extension cannot be used externally IMO.
>
> Thanks,
> Ashen
>
> On Tue, Oct 18, 2016 at 12:45 PM, Tishan Dahanayakage <tis...@wso2.com>
> wrote:
>
>> Ashen,
>>
>> Can't we use CEP persistence option to persist the state of Markov
>> extension to file system and re-use? Do we have any non-serializable
>> objects?
>>
>> /Tishan
>>
>> On Tue, Oct 18, 2016 at 12:28 PM, Ashen Weerathunga <as...@wso2.com>
>> wrote:
>>
>>> Hi Bhashinee,
>>>
>>> In the current implementation, we are storing the Markov matrix using a
>>> hashmap. Therefore if you shut down the server it won't be persisted. But
>>> we have provided a facility to input an already built Markov matrix as a
>>> CSV file. So in such case, you can use that option to input the matrix
>>> again and start training. Please refer docs[1] for more details.
>>>
>>> [1]https://docs.wso2.com/pages/viewpage.action?pageId=56993859
>>>
>>> Best regards,
>>> Ashen
>>>
>>>
>>> On Tue, Oct 18, 2016 at 10:08 AM, Bhashinee Nirmali <
>>> bhashin...@gmail.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I'm trying the Markov Models Extension of WSO2 CEP. I need to know the
>>>> location where the newly built matrices are stored in. And do I need to
>>>> built the matrix again after shutting down the CEP or is the created matrix
>>>> still there in the memory?
>>>>
>>>> Thanks
>>>>
>>>> Undergraduate
>>>> Faculty of Information Technology
>>>> University of Moratuwa
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Ashen Weerathunga*
>>> Software Engineer
>>> WSO2 Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Email: as...@wso2.com
>>> Mobile: tel:94716042995 <94716042995>
>>> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
>>> <http://lk.linkedin.com/in/ashenweerathunga>*
>>> <http://wso2.com/signature>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> *Ashen Weerathunga*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> Email: as...@wso2.com
> Mobile: tel:94716042995 <94716042995>
> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
> <http://lk.linkedin.com/in/ashenweerathunga>*
> <http://wso2.com/signature>
>



-- 
Undergraduate
Faculty of Information Technology
University of Moratuwa
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Siddhi] [Markov Models Extension] What is the stored location of trained Markov matrices?

2016-10-17 Thread Bhashinee Nirmali
Hi All,

I'm trying the Markov Models Extension of WSO2 CEP. I need to know the
location where the newly built matrices are stored in. And do I need to
built the matrix again after shutting down the CEP or is the created matrix
still there in the memory?

Thanks

Undergraduate
Faculty of Information Technology
University of Moratuwa
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification regarding JIRA connector.

2016-06-27 Thread Bhashinee Nirmali
Thank you all.

On Mon, Jun 27, 2016 at 6:22 PM, Kathees Rajendram <kath...@wso2.com> wrote:

> Hi Bhashinee,
>
> Now we have the jira connector code in the location [1]. All connectors
> from esb-connectors repo [2] are moved to wso2-extensions location [3].
>
> [1] - https://github.com/wso2-extensions/esb-connector-jira
> [2] - https://github.com/wso2-attic/esb-connectors <http:///>
> [3] - https://github.com/wso2-extensions
>
> Thanks,
> Kathees
>
> On Mon, Jun 27, 2016 at 6:10 PM, Bhashinee Nirmali <bhashi...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> There is a mismatch between the create issue in JIRA connector
>> documentation[1] and the createIssue.xml in github[2]. There is no such
>> parameter named "issueFields" in createIssue.xml. Kindly someone point me
>> to the latest code?
>>
>> [1]
>> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Issues+in+JIRA#WorkingwithIssuesinJIRA-createIssue
>>
>> [2]
>> https://github.com/wso2-attic/esb-connectors/blob/master/jira/jira-connector/jira-connector-2.0.0/org.wso2.carbon.connector/src/main/resources/jira_issue/createIssue.xml
>>
>>
>> Thanks
>> --
>> *Bhashinee Nirmali*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
>>
>> _______
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



-- 
*Bhashinee Nirmali*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clarification regarding JIRA connector.

2016-06-27 Thread Bhashinee Nirmali
Hi All,

There is a mismatch between the create issue in JIRA connector
documentation[1] and the createIssue.xml in github[2]. There is no such
parameter named "issueFields" in createIssue.xml. Kindly someone point me
to the latest code?

[1]
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Issues+in+JIRA#WorkingwithIssuesinJIRA-createIssue

[2]
https://github.com/wso2-attic/esb-connectors/blob/master/jira/jira-connector/jira-connector-2.0.0/org.wso2.carbon.connector/src/main/resources/jira_issue/createIssue.xml


Thanks
-- 
*Bhashinee Nirmali*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting up SSO with IS for a jaggery web app.

2016-06-18 Thread Bhashinee Nirmali
CreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call
property encode in object [JavaPackage
org.jaggeryjs.modules.sso.common.util.Util]. It is not a function, it is
"object". (/scripts/sso.client.js#77)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
at org.mozilla.javascript.ScriptRuntime.typeError3(ScriptRuntime.java:3719)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3786)
at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2269)
at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2251)
at
org.jaggeryjs.rhino..scripts.c0._c_anonymous_6(/scripts/sso.client.js:77)
at org.jaggeryjs.rhino..scripts.c0.call(/scripts/sso.client.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.jaggeryjs.rhino.web.c0._c_script_0(/web//index.jag:10)
at org.jaggeryjs.rhino.web.c0.call(/web//index.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.jaggeryjs.rhino.web.c0.call(/web//index.jag)
at org.jaggeryjs.rhino.web.c0.exec(/web//index.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
... 41 more

Thanks

On Fri, Jun 17, 2016 at 9:42 AM, Thilini Cooray <thili...@wso2.com> wrote:

> [+Madhawa]
>
> Hi Bhashinee,
>
> You can also try importing the SSO module of underlying Application Server
> from your jaggery app and call its functions.
> /modules/sso/scripts/sso.client.js contains all
> the SSO request and response related basic fuctions.
>
> You should have a configuration file in the jaggery side which consists of
> SP details you created in IS and Identity Server's SAML SSO endpoint URL.
>
> Thanks.
>
>
> On Fri, Jun 17, 2016 at 9:03 AM, Megala Uthayakumar <meg...@wso2.com>
> wrote:
>
>> Hi Bhashinee,
>>
>> I think u need to use the module from jaggery-extensions[1].
>>
>> Thanks.
>>
>> Regards,
>> Megala
>>
>> [1]
>> https://github.com/wso2/jaggery-extensions/tree/master/sso/resources/org.jaggeryjs.modules.sso/src/main/java/org/jaggeryjs/modules/sso
>>
>> On Fri, Jun 17, 2016 at 8:22 AM, Bhashinee Nirmali <bhashi...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I have a jaggery web application deployed in WSO2 application
>>> server(5.3.0). I want to configure SSO with IS(5.1.0). Is there any
>>> existing modules which I can use in jaggery level?
>>>
>>>
>>> Thank you
>>> --
>>> *Bhashinee Nirmali*
>>> Software Engineering Intern
>>> WSO2 Inc.; http://wso2.com
>>> Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Megala Uthayakumar
>>
>> Software Engineer
>> Mobile : 0779967122
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



-- 
*Bhashinee Nirmali*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Setting up SSO with IS for a jaggery web app.

2016-06-16 Thread Bhashinee Nirmali
Hi All,

I have a jaggery web application deployed in WSO2 application
server(5.3.0). I want to configure SSO with IS(5.1.0). Is there any
existing modules which I can use in jaggery level?


Thank you
-- 
*Bhashinee Nirmali*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][Connector Redmine] "401 Authorization Required" error when using Redmine connector

2016-03-15 Thread Bhashinee Nirmali
 I was able to resolve it along with the above suggestion. Thanks Keerthika.

On Tue, Mar 15, 2016 at 12:10 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Bhashinee,
> It seems you haven't enable the REST web service for your account. Follow
> the following steps to configure:
>
>1. Create a fresh account in Redmine using the URL
>http://m.redmine.org/ with the web browser.
>2. Login to the administrations panel of the account created using the
>login credentials with the specific API URL.
>3. Go to Administration -> Settings -> Authentication and enable the
>check box in "Enable REST web service".
>4. Go to /my/account URL of your Redmine demo site and copy the API
>Key from the right hand side of the screen to apiKey
>
> Thanks,
>
> On Tue, Mar 15, 2016 at 10:44 AM, Bhashinee Nirmali <bhashi...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I tried adding the Redmine connector of WSO2 ESB. First I created a
>> Redmine account and got the key. The url and the key I used to create the
>> proxy service are listed below.
>>
>> apiURL - http://connector.m.redmine.org
>> apiKey - 3bed7029a2e5b8cb6978d81676fc9d3dab74398a
>>
>>
>> I got an error when trying to send a request. Here I have attached the
>> error I got and the proxy service.
>> Kindly appreciate your help on this.
>>
>> Thank you.
>>
>> --
>> *Bhashinee Nirmali*
>> Software Engineer Intern
>> WSO2 Inc.; http://wso2.com
>> Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> <dev-requ...@wso2.org>
> Keerthika Mahendralingam
> Associate Software Engineer
> Mobile :+94 (0) 776 121144
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 
*Bhashinee Nirmali*
Software Engineer Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB][Connector Redmine] "401 Authorization Required" error when using Redmine connector

2016-03-14 Thread Bhashinee Nirmali
Hi All,

I tried adding the Redmine connector of WSO2 ESB. First I created a Redmine
account and got the key. The url and the key I used to create the proxy
service are listed below.

apiURL - http://connector.m.redmine.org
apiKey - 3bed7029a2e5b8cb6978d81676fc9d3dab74398a


I got an error when trying to send a request. Here I have attached the
error I got and the proxy service.
Kindly appreciate your help on this.

Thank you.

-- 
*Bhashinee Nirmali*
Software Engineer Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>


wirelog
Description: Binary data

http://ws.apache.org/ns/synapse;
   name="Redmine"
   transports="https http"
   startOnLoad="true"
   trace="disable">
   
   
  
 http://connector.m.redmine.org;
   scope="default"
   type="STRING"/>
 
 
 
 
 
 
{$ctx:apiUrl}
{$ctx:apiKey}
{$ctx:responseType}
 
 
 
{$ctx:description}
{$ctx:name}
{$ctx:identifier}
 
 
  
   

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


[Dev] [CEP] Interested in Contributing to WSO2 CEP Product.

2015-07-06 Thread Bhashinee Nirmali
Hi All,

I am Bhashinee Nirmali from Faculty of Information Technology, University
of Moratuwa. I have done a traffic analysis project as my second year group
project, based on WSO2 CEP. Further I am interested in contributing to CEP
product. As a beginner how should I start?

Thank You

Bhashinee Nirmali
Faculty of Information Technology
University of Moratuwa.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] Getting errors when deploying an execution plan in CEP.

2015-05-24 Thread Bhashinee Nirmali
Hi Mohandarshan,

That solved the problem. Thank you.

On Sun, May 24, 2015 at 1:46 AM, Mohanadarshan Vivekanandalingam 
mo...@wso2.com wrote:

 Hi Bhashinee,

 You are sending a XML element as a parameter. Then you need to escape it
 properly.. See [1]. Try below request,

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:adm=http://admin.processor.event.carbon.wso2.org;
soapenv:Header/
soapenv:Body
   adm:deployExecutionPlanConfigurationFromConfigXml
  !--Optional:--
  adm:executionPlanConfigurationXml
 ![CDATA[
  executionPlan name=execution statistics=disable
 trace=disable xmlns=http://wso2.org/carbon/eventprocessor;
   description/
   siddhiConfiguration
 property
 name=siddhi.persistence.snapshot.time.interval.minutes0/property
 property name=siddhi.enable.distributed.processingfalse/property
   /siddhiConfiguration
   importedStreams
 stream as=input name=input version=1.0.0/
   /importedStreams
   queryExpressionsfrom input
 select *
 insert into output1 /queryExpressions
   exportedStreams
 stream name=output1 valueOf=output1 version=1.0.0/
   /exportedStreams
 /executionPlan
 ]]
  /adm:executionPlanConfigurationXml
   /adm:deployExecutionPlanConfigurationFromConfigXml
/soapenv:Body
 /soapenv:Envelope


 [1]
 http://stackoverflow.com/questions/5715404/soap-ui-how-to-pass-xml-inside-parameter


 Thanks,
 Mohan


 On Sun, May 24, 2015 at 11:34 AM, Bhashinee Nirmali bhashin...@gmail.com
 wrote:

 Hi All,

 I'm trying to deploy an execution plan in CEP using SoapUI. It was not
 successful and I'm getting errors.
 I have attached Request payload [1], Request headers[2], Response
 payload[3],Response headers[4] and CEP Error[5].
 I have used basic authentication with user name - admin and password -
 admin.

 Can anyone please help me with this?

 Thank You

 Bhashinee Nirmali
 Faculty of Information Technology
 University of Moratuwa.


 [1] Request payload

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:adm=
 http://admin.processor.event.carbon.wso2.org;
soapenv:Header/
soapenv:Body
   adm:deployExecutionPlanConfigurationFromConfigXml

  adm:executionPlanConfigurationXml
 executionPlan name=execution statistics=disable trace=disable
 xmlns=http://wso2.org/carbon/eventprocessor;
   description/
   siddhiConfiguration
 property
 name=siddhi.persistence.snapshot.time.interval.minutes0/property
 property name=siddhi.enable.distributed.processingfalse/property
   /siddhiConfiguration
   importedStreams
 stream as=input name=input version=1.0.0/
   /importedStreams
   queryExpressions![CDATA[from input
 select *
 insert into output1 ]]/queryExpressions
   exportedStreams
 stream name=output1 valueOf=output1 version=1.0.0/
   /exportedStreams
 /executionPlan
 /adm:executionPlanConfigurationXml
   /adm:deployExecutionPlanConfigurationFromConfigXml
/soapenv:Body
 /soapenv:Envelope

 [2] Request headers

 POST
 https://192.168.1.100:9443/services/EventProcessorAdminService.EventProcessorAdminServiceHttpsSoap12Endpoint/
 HTTP/1.1
 Accept-Encoding: gzip,deflate
 Content-Type: text/xml;charset=UTF-8
 SOAPAction: urn:deployExecutionPlanConfigurationFromConfigXml
 Authorization: Basic YWRtaW46YWRtaW4=
 Content-Length: 1112
 Host: 192.168.1.100:9443
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


 [3] Response payload

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
soapenv:Body
   soapenv:Fault
  faultcodesoapenv:Server/faultcode
  faultstringjavax.xml.stream.XMLStreamException: ParseError at
 [row,col]:[3,37]
 Message: Premature end of file./faultstring
  detail/
   /soapenv:Fault
/soapenv:Body
 /soapenv:Envelope

 [4] Response headers

 HTTP/1.1 500 Internal Server Error
 Set-Cookie: JSESSIONID=EE44325408E903BEB0B8D091EAA41440; Path=/; Secure;
 HttpOnly
 Content-Type: text/xml;charset=UTF-8
 Transfer-Encoding: chunked
 Date: Sun, 24 May 2015 18:28:11 GMT
 Connection: close
 Server: WSO2 Carbon Server



 [5] CEP error

 [2015-05-24 11:28:11,094] ERROR - {RPCMessageReceiver}
  javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37]
 Message: Premature end of file.
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2

[Dev] [CEP] Getting errors when deploying an execution plan in CEP.

2015-05-24 Thread Bhashinee Nirmali
Hi All,

I'm trying to deploy an execution plan in CEP using SoapUI. It was not
successful and I'm getting errors.
I have attached Request payload [1], Request headers[2], Response
payload[3],Response headers[4] and CEP Error[5].
I have used basic authentication with user name - admin and password -
admin.

Can anyone please help me with this?

Thank You

Bhashinee Nirmali
Faculty of Information Technology
University of Moratuwa.


[1] Request payload

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:adm=http://admin.processor.event.carbon.wso2.org;
   soapenv:Header/
   soapenv:Body
  adm:deployExecutionPlanConfigurationFromConfigXml

 adm:executionPlanConfigurationXml
executionPlan name=execution statistics=disable trace=disable xmlns=
http://wso2.org/carbon/eventprocessor;
  description/
  siddhiConfiguration
property
name=siddhi.persistence.snapshot.time.interval.minutes0/property
property name=siddhi.enable.distributed.processingfalse/property
  /siddhiConfiguration
  importedStreams
stream as=input name=input version=1.0.0/
  /importedStreams
  queryExpressions![CDATA[from input
select *
insert into output1 ]]/queryExpressions
  exportedStreams
stream name=output1 valueOf=output1 version=1.0.0/
  /exportedStreams
/executionPlan
/adm:executionPlanConfigurationXml
  /adm:deployExecutionPlanConfigurationFromConfigXml
   /soapenv:Body
/soapenv:Envelope

[2] Request headers

POST
https://192.168.1.100:9443/services/EventProcessorAdminService.EventProcessorAdminServiceHttpsSoap12Endpoint/
HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: urn:deployExecutionPlanConfigurationFromConfigXml
Authorization: Basic YWRtaW46YWRtaW4=
Content-Length: 1112
Host: 192.168.1.100:9443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


[3] Response payload

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
  soapenv:Fault
 faultcodesoapenv:Server/faultcode
 faultstringjavax.xml.stream.XMLStreamException: ParseError at
[row,col]:[3,37]
Message: Premature end of file./faultstring
 detail/
  /soapenv:Fault
   /soapenv:Body
/soapenv:Envelope

[4] Response headers

HTTP/1.1 500 Internal Server Error
Set-Cookie: JSESSIONID=EE44325408E903BEB0B8D091EAA41440; Path=/; Secure;
HttpOnly
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Sun, 24 May 2015 18:28:11 GMT
Connection: close
Server: WSO2 Carbon Server



[5] CEP error

[2015-05-24 11:28:11,094] ERROR - {RPCMessageReceiver}
 javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37]
Message: Premature end of file.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243

Re: [Dev] [CEP] Error in running Geo Spacial Data Analysis-GeoIsWithin sample

2015-02-21 Thread Bhashinee Nirmali
Hi,

By renaming the version to 12.2 I was able to built geo-proximity-operation.
By adding it's jar to the lib solved the issue and validated the query.

Thanks everyone for the help

On Sat, Feb 21, 2015 at 6:09 AM, Bhashinee Nirmali bhashin...@gmail.com
wrote:

 Hi,

 Problem could be solved. Thanks for the support.

 On Thu, Feb 19, 2015 at 10:57 PM, Isuru Fernando dilan...@wso2.com
 wrote:

 Hi,

 12-SNAPSHOT version of the geo tools jars have been removed the maven
 repo. Change the version to 12.2 (or 13-RC1) and try building again.

 Thanks,
 Isuru

 On Fri, Feb 20, 2015 at 12:21 PM, Bhashinee Nirmali bhashin...@gmail.com
  wrote:

 Hi,

 I tried to build the geo-proximity-operation. But got the following
 error [1].


 Thank you.

 [1]

 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective
 model for
 org.wso2.cep:geo-proximity:bundle:0.0.1-SNAPSHOT
 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugi
 n is missing. @ line 76, column 21
 [WARNING]
 [WARNING] It is highly recommended to fix these problems because they
 threaten t
 he stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer support
 buildin
 g such malformed projects.
 [WARNING]
 [INFO]
 [INFO]
 
 [INFO] Building Siddhi Extension - Geo Proximity operation 0.0.1-SNAPSHOT
 [INFO]
 
 [WARNING] The POM for org.geotools:gt-shapefile:jar:12-SNAPSHOT is
 missing, no d
 ependency information available
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 2.717 s
 [INFO] Finished at: 2015-02-20T12:13:44-08:00
 [INFO] Final Memory: 9M/111M
 [INFO]
 
 [ERROR] Failed to execute goal on project geo-proximity: Could not
 resolve depen
 dencies for project org.wso2.cep:geo-proximity:bundle:0.0.1-SNAPSHOT:
 Failure to
  find org.geotools:gt-shapefile:jar:12-SNAPSHOT in
 http://dist.wso2.org/maven2 w
 as cached in the local repository, resolution will not be reattempted
 until the
 update interval of wso2-maven2-repository has elapsed or updates are
 forced - [
 Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e swit
 ch.
 [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 rea
 d the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
 lutionException


 On Thu, Feb 19, 2015 at 10:43 PM, Rajeev Sampath raje...@wso2.com
 wrote:

 This extension is built as an osgi bundle. So place it in
 repository/components/dropins (remove it from lib and also the existing
 osgi copy which is added by cep from dropins)
 Also if the extension jar doesn't include the relevant dependencies for 
 com.vividsolutions.jts.geom.*
 etc you'll have to copy those libs separately to lib directory.

 Thanks
 Rajeev

 On Fri, Feb 20, 2015 at 11:44 AM, Bhashinee Nirmali 
 bhashin...@gmail.com wrote:

 Hi All,

 I am trying to run the Geo Spacial Data Analysis using WSO2 CEP[1]
 GeoIsWithin sample. I have done the following.

 1. Downloaded the siddhi extention from the repo[2]
 2. Built the GeoIsWithin extention using mvn install and built the
 geo-within-1.0-SNAPSHOT.jar
 3. Copied the jar file to the \repository\components\lib
 4. Added the fully qualified class name to the siddhi.extension file
 located at \repository\conf\siddhi
 5. Started the WSO2 CEP server
 6. Created the relevant input/output streams and added the following
 query as an execution plan.

 from
 dataIn[geo:iswithin(meta_longitude,meta_latitude,{'type':'Polygon','coordinates':[[[79.8564863204956,6.947045831920686],[79.85642194747923,6.946747629898817],[79.8564863204956,6.947045831920686]]]})==true]#transform.geo:subscribeExecutionPlan()
 select meta_phoneID , meta_latitude, meta_longitude,meta_speed
 insert into dataOut;

 But when I validate the query expression, it doesn't get added and
 following error[3] could be seen in the terminal.

 Can anyone please tell me where am I doing wrong?

 Thank you.

 Bhashinee Nirmali
 Faculty of Information Technology
 University of Moratuwa.


 [1]
 http://wso2.com/library/articles/2015/01/article-geo-spatial-data-analysis-using-wso2-complex-event-processor-0/
 [2]
 https://github.com/wso2-gpl/siddhi/tree/master/siddhi-extensions/geo
 [3]

 [2015-02-20 11:22:04,748] ERROR - {RPCMessageReceiver}
  com/vividsolutions/jts/geom/Geometry
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

Re: [Dev] [CEP] Error in running Geo Spacial Data Analysis-GeoIsWithin sample

2015-02-19 Thread Bhashinee Nirmali
Hi,

I tried to build the geo-proximity-operation. But got the following error
[1].


Thank you.

[1]

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for
org.wso2.cep:geo-proximity:bundle:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for
org.apache.felix:maven-bundle-plugi
n is missing. @ line 76, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO]

[INFO] Building Siddhi Extension - Geo Proximity operation 0.0.1-SNAPSHOT
[INFO]

[WARNING] The POM for org.geotools:gt-shapefile:jar:12-SNAPSHOT is missing,
no d
ependency information available
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2.717 s
[INFO] Finished at: 2015-02-20T12:13:44-08:00
[INFO] Final Memory: 9M/111M
[INFO]

[ERROR] Failed to execute goal on project geo-proximity: Could not resolve
depen
dencies for project org.wso2.cep:geo-proximity:bundle:0.0.1-SNAPSHOT:
Failure to
 find org.geotools:gt-shapefile:jar:12-SNAPSHOT in
http://dist.wso2.org/maven2 w
as cached in the local repository, resolution will not be reattempted until
the
update interval of wso2-maven2-repository has elapsed or updates are forced
- [
Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException


On Thu, Feb 19, 2015 at 10:43 PM, Rajeev Sampath raje...@wso2.com wrote:

 This extension is built as an osgi bundle. So place it in
 repository/components/dropins (remove it from lib and also the existing
 osgi copy which is added by cep from dropins)
 Also if the extension jar doesn't include the relevant dependencies for 
 com.vividsolutions.jts.geom.*
 etc you'll have to copy those libs separately to lib directory.

 Thanks
 Rajeev

 On Fri, Feb 20, 2015 at 11:44 AM, Bhashinee Nirmali bhashin...@gmail.com
 wrote:

 Hi All,

 I am trying to run the Geo Spacial Data Analysis using WSO2 CEP[1]
 GeoIsWithin sample. I have done the following.

 1. Downloaded the siddhi extention from the repo[2]
 2. Built the GeoIsWithin extention using mvn install and built the
 geo-within-1.0-SNAPSHOT.jar
 3. Copied the jar file to the \repository\components\lib
 4. Added the fully qualified class name to the siddhi.extension file
 located at \repository\conf\siddhi
 5. Started the WSO2 CEP server
 6. Created the relevant input/output streams and added the following
 query as an execution plan.

 from
 dataIn[geo:iswithin(meta_longitude,meta_latitude,{'type':'Polygon','coordinates':[[[79.8564863204956,6.947045831920686],[79.85642194747923,6.946747629898817],[79.8564863204956,6.947045831920686]]]})==true]#transform.geo:subscribeExecutionPlan()
 select meta_phoneID , meta_latitude, meta_longitude,meta_speed
 insert into dataOut;

 But when I validate the query expression, it doesn't get added and
 following error[3] could be seen in the terminal.

 Can anyone please tell me where am I doing wrong?

 Thank you.

 Bhashinee Nirmali
 Faculty of Information Technology
 University of Moratuwa.


 [1]
 http://wso2.com/library/articles/2015/01/article-geo-spatial-data-analysis-using-wso2-complex-event-processor-0/
 [2] https://github.com/wso2-gpl/siddhi/tree/master/siddhi-extensions/geo
 [3]

 [2015-02-20 11:22:04,748] ERROR - {RPCMessageReceiver}
  com/vividsolutions/jts/geom/Geometry
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive