Re: [Dev] GSoC 2017

2017-02-25 Thread Vihanga Liyanage
Ah, I see your point. I'll do some more digging to see if there's anything
we could do about this.

Regards,

Vihanga Liyanage,
Undergraduate,
University of Colombo School of Computing.
M: +94 71 012 4103





On Sat, Feb 25, 2017 at 10:54 PM, Tishan Dahanayakage 
wrote:

> Hi Vihanga,
>
> Yes. We need to make corresponding xtext if we are to use this approach.
> Problem is If we can't automatically convert antlr to xtext, then everytime
> there is a grammar level change we will have to manually update xtext
> grammar which is not scalable. We can't maintain two grammar definitions.
> Anyway that is my view. Let's see what others have to say.
>
> Thanks
> /Tishan
>
> On Sat, Feb 25, 2017 at 10:59 AM, Vihanga Liyanage <
> vihangaliyanage...@gmail.com> wrote:
>
>> Hi Tishan,
>>
>> Well yes, I also read that xtext grammar is based on Antlr. But in my
>> opinion, if we can use xtext for this project, all we need to do is create
>> the xtext grammar corresponds to the existing Antlr grammar of Siddhi and
>> that's it right? Please correct me if I'm wrong.
>>
>> Thanks,
>>
>> Vihanga Liyanage,
>> Undergraduate,
>> University of Colombo School of Computing.
>> M: +94 71 012 4103 <+94%2071%20012%204103>
>>
>> 
>> 
>> 
>>
>> On Fri, Feb 24, 2017 at 2:29 PM, Tishan Dahanayakage 
>> wrote:
>>
>>> Hi Vihanga,
>>>
>>> Thanks for the research and samples. Good progress!!  I also read a bit
>>> about Xtext. It is also using Antlr internally. But according to the
>>> material I came across we cannot convert antlr grammar automatically to
>>> Xtext. So since Siddhi grammar is based on antlr and we are not going to
>>> move the grammar to Xtext can you please try the same with a simple Antlr
>>> v4 grammar file.
>>>
>>> Thanks
>>> /Tishan
>>>
>>> On Fri, Feb 24, 2017 at 11:59 AM, Vihanga Liyanage <
>>> vihangaliyanage...@gmail.com> wrote:
>>>
 Hi all,

 I hope you read my reply to the other mail tread, "Eclipse plugin for
 Siddhi". As I said in there, we can use same Xtext[1] framework to develop
 Siddhi plugins for both eclipse and Intellij IDEA editors. Here are my
 example idea plugin project details. You can find the code in here[2].

 This is the sample xtext grammar I used.



 Syntax highlighting and error detection.


 ​
 Code completion


 ​
 I'd love to know your ideas about this.

 [1] https://eclipse.org/Xtext/index.html
 [2] https://github.com/vihanga-liyanage/IDEA-Plug-Ins

 Regards,
 

 Vihanga Liyanage,
 Undergraduate,
 University of Colombo School of Computing.
 M: +94 71 012 4103 <+94%2071%20012%204103>

 
 
 

 On Mon, Feb 13, 2017 at 11:50 AM, Vihanga Liyanage <
 vihangaliyanage...@gmail.com> wrote:

> Thank you for your reply. I'll look into those things and will get
> back to you.
>
> Regards
>
>
> On Feb 13, 2017 10:35 AM, "Tishan Dahanayakage" 
> wrote:
>
> Hi Vihanga,
>
> Thanks for your interest in WSO2 and this project. I have improved
> idea page with more details. I would suggest you to start off with getting
> bit familiar with Siddhi grammar. Then you can look into idea plugin
> creation to support different languages. Then you can look into antlr 
> based
> programming languages and how antlr can be used to generate parsers,
> lexers, etc. Above will provide you enough context information on how to
> proceed through with the idea.
> Feel free to revert back if you don't understand the requirement or
> have any other clarification.
>
> Thanks,
> Tishan
>
> On Sat, Feb 11, 2017 at 12:54 PM, Vihanga Liyanage <
> vihangaliyanage...@gmail.com> wrote:
>
>> Hi Tishan,
>>
>> I read through your project proposals for GSoC 2017 and particularly
>> interested in the project Proposal 4: Idea Plugin for Siddhi
>> 
>> , which lists you as the possible mentor. I'd really like to work on
>> this idea further, hoping to get selected for GSoC and complete the 
>> project
>> at the end.
>> It'll be really great if you could point me in a direction where I
>> could do some more background work on this.
>>
>> Best Regards,
>> Vihanga Liyanage,
>> Undergraduate,
>> University of Colombo School of Computing.
>> M: +94 

Re: [Dev] GSoC 2017 - Real-Time Machine Learning Toolkit for Siddhi

2017-02-25 Thread Satyarth Praveen
Hi,
I am also getting an error trying to build the WSO2 CEP project
.
The last few line of the terminal output while building the project are:-

===
[INFO]

[INFO] Building WSO2 CEP - UI Integration Test Module 4.2.1-SNAPSHOT
[INFO]

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 CEP - Parent .. SUCCESS [
 0.737 s]
[INFO] WSO2 CEP - Style Parent  SUCCESS [
 0.037 s]
[INFO] WSO2 CEP - Styles .. SUCCESS [
 1.084 s]
[INFO] WSO2 Stratos CEP - Styles .. SUCCESS [
 0.215 s]
[INFO] WSO2 CEP - Samples Parent .. SUCCESS [
 0.050 s]
[INFO] WSO2 CEP - Samples Producers ... SUCCESS [
 0.016 s]
[INFO] WSO2 CEP - Producer - WSO2 Event Client  SUCCESS [
 3.029 s]
[INFO] WSO2 CEP - Publisher - HTTP Client . SUCCESS [
 0.326 s]
[INFO] WSO2 CEP - Publisher - JMS Client .. SUCCESS [
 0.374 s]
[INFO] WSO2 CEP - Publisher - MQTT Client . SUCCESS [
 0.204 s]
[INFO] WSO2 CEP - Publisher - Kafka Client  SUCCESS [
 0.255 s]
[INFO] WSO2 CEP - Publisher - SOAP Client . SUCCESS [
 0.682 s]
[INFO] WSO2 CEP - Producer - Websocket Publisher .. SUCCESS [
 1.113 s]
[INFO] WSO2 CEP - Producer - Performance Test . SUCCESS [
 0.554 s]
[INFO] WSO2 CEP - Publisher - HTTP Performance Client . SUCCESS [
 0.232 s]
[INFO] WSO2 CEP - Publisher - Kafka Producer .. SUCCESS [
 0.129 s]
[INFO] WSO2 CEP - Publisher - JMS Performance Client .. SUCCESS [
 0.197 s]
[INFO] WSO2 CEP - Sample Consumers  SUCCESS [
 0.016 s]
[INFO] WSO2 CEP - Consumer - WSO2 Event Server  SUCCESS [
 0.895 s]
[INFO] WSO2 CEP - Consumer - JMS Consumer . SUCCESS [
 0.121 s]
[INFO] WSO2 CEP - Consumer - MQTT Consumer  SUCCESS [
 0.102 s]
[INFO] WSO2 CEP - Consumer - Axis2 Log Service  SUCCESS [
 0.061 s]
[INFO] WSO2 CEP - Consumer - Generic Log Service .. SUCCESS [
 0.515 s]
[INFO] WSO2 CEP - Consumer - Dashboard Service  SUCCESS [
 0.127 s]
[INFO] WSO2 CEP - Consumer - Websocket Consumer ... SUCCESS [
 0.269 s]
[INFO] WSO2 CEP - Consumer - WSO2 Event Server  SUCCESS [
 0.594 s]
[INFO] WSO2 CEP - Consumer - HTTP Performance Service . SUCCESS [
 0.222 s]
[INFO] WSO2 CEP - Consumer - Kafka Consumer ... SUCCESS [
 0.133 s]
[INFO] WSO2 CEP - Consumer - JMS Performance Consumer . SUCCESS [
 0.114 s]
[INFO] Siddhi Extension - Geo Event Fuser . SUCCESS [
 0.439 s]
[INFO] Siddhi Extension - Geo Event Notifier .. SUCCESS [
 0.203 s]
[INFO] WSO2 CEP - Feature Parent .. SUCCESS [
 0.050 s]
[INFO] WSO2 CEP - Features  SUCCESS [
 0.013 s]
[INFO] WSO2 CEP - Styles Features . SUCCESS [
 0.340 s]
[INFO] WSO2 Stratos CEP - Features  SUCCESS [
 0.022 s]
[INFO] WSO2 Stratos CEP - Styles Features . SUCCESS [
 0.041 s]
[INFO] WSO2 Stratos CEP - Dashboard UI  SUCCESS [
 1.249 s]
[INFO] WSO2 Stratos CEP - Dashboard UI Features ... SUCCESS [
 0.830 s]
[INFO] WSO2 CEP - P2 Profile Generation ... SUCCESS [
47.722 s]
[INFO] WSO2 Stratos CEP - Login User Interface  SUCCESS [
 0.931 s]
[INFO] WSO2 CEP - Storm Dependencies Jar .. SUCCESS [
 5.659 s]
[INFO] WSO2 CEP - Distribution  SUCCESS [
36.969 s]
[INFO] WSO2 CEP - Samples Distribution  SUCCESS [
 1.606 s]
[INFO] WSO2 CEP - Integration Tests ... SUCCESS [
 0.035 s]
[INFO] WSO2 CEP - Integration Admin Client Module . SUCCESS [
 0.675 s]
[INFO] CEP Integration Test UI Pages .. SUCCESS [
 0.517 s]
[INFO] WSO2 CEP - Integration Test Utils Module ... SUCCESS [
 3.055 s]
[INFO] WSO2 CEP - Integration Test Artifacts Module ... SUCCESS [
 0.565 s]
[INFO] WSO2 CEP - Integration Test Module . SUCCESS [
 5.609 s]
[INFO] WSO2 CEP - UI Integration Test Module .. FAILURE [
 0.047 s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 02:00 min
[INFO] Finished at: 2017-02-26T01:04:34+05:30
[INFO] Final Memory: 132M/1991M
[INFO]

Re: [Dev] GSoC 2017

2017-02-25 Thread Tishan Dahanayakage
Hi Vihanga,

Yes. We need to make corresponding xtext if we are to use this approach.
Problem is If we can't automatically convert antlr to xtext, then everytime
there is a grammar level change we will have to manually update xtext
grammar which is not scalable. We can't maintain two grammar definitions.
Anyway that is my view. Let's see what others have to say.

Thanks
/Tishan

On Sat, Feb 25, 2017 at 10:59 AM, Vihanga Liyanage <
vihangaliyanage...@gmail.com> wrote:

> Hi Tishan,
>
> Well yes, I also read that xtext grammar is based on Antlr. But in my
> opinion, if we can use xtext for this project, all we need to do is create
> the xtext grammar corresponds to the existing Antlr grammar of Siddhi and
> that's it right? Please correct me if I'm wrong.
>
> Thanks,
>
> Vihanga Liyanage,
> Undergraduate,
> University of Colombo School of Computing.
> M: +94 71 012 4103 <+94%2071%20012%204103>
>
> 
> 
> 
>
> On Fri, Feb 24, 2017 at 2:29 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Vihanga,
>>
>> Thanks for the research and samples. Good progress!!  I also read a bit
>> about Xtext. It is also using Antlr internally. But according to the
>> material I came across we cannot convert antlr grammar automatically to
>> Xtext. So since Siddhi grammar is based on antlr and we are not going to
>> move the grammar to Xtext can you please try the same with a simple Antlr
>> v4 grammar file.
>>
>> Thanks
>> /Tishan
>>
>> On Fri, Feb 24, 2017 at 11:59 AM, Vihanga Liyanage <
>> vihangaliyanage...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I hope you read my reply to the other mail tread, "Eclipse plugin for
>>> Siddhi". As I said in there, we can use same Xtext[1] framework to develop
>>> Siddhi plugins for both eclipse and Intellij IDEA editors. Here are my
>>> example idea plugin project details. You can find the code in here[2].
>>>
>>> This is the sample xtext grammar I used.
>>>
>>>
>>>
>>> Syntax highlighting and error detection.
>>>
>>>
>>> ​
>>> Code completion
>>>
>>>
>>> ​
>>> I'd love to know your ideas about this.
>>>
>>> [1] https://eclipse.org/Xtext/index.html
>>> [2] https://github.com/vihanga-liyanage/IDEA-Plug-Ins
>>>
>>> Regards,
>>> 
>>>
>>> Vihanga Liyanage,
>>> Undergraduate,
>>> University of Colombo School of Computing.
>>> M: +94 71 012 4103 <+94%2071%20012%204103>
>>>
>>> 
>>> 
>>> 
>>>
>>> On Mon, Feb 13, 2017 at 11:50 AM, Vihanga Liyanage <
>>> vihangaliyanage...@gmail.com> wrote:
>>>
 Thank you for your reply. I'll look into those things and will get back
 to you.

 Regards


 On Feb 13, 2017 10:35 AM, "Tishan Dahanayakage" 
 wrote:

 Hi Vihanga,

 Thanks for your interest in WSO2 and this project. I have improved idea
 page with more details. I would suggest you to start off with getting bit
 familiar with Siddhi grammar. Then you can look into idea plugin creation
 to support different languages. Then you can look into antlr based
 programming languages and how antlr can be used to generate parsers,
 lexers, etc. Above will provide you enough context information on how to
 proceed through with the idea.
 Feel free to revert back if you don't understand the requirement or
 have any other clarification.

 Thanks,
 Tishan

 On Sat, Feb 11, 2017 at 12:54 PM, Vihanga Liyanage <
 vihangaliyanage...@gmail.com> wrote:

> Hi Tishan,
>
> I read through your project proposals for GSoC 2017 and particularly
> interested in the project Proposal 4: Idea Plugin for Siddhi
> 
> , which lists you as the possible mentor. I'd really like to work on
> this idea further, hoping to get selected for GSoC and complete the 
> project
> at the end.
> It'll be really great if you could point me in a direction where I
> could do some more background work on this.
>
> Best Regards,
> Vihanga Liyanage,
> Undergraduate,
> University of Colombo School of Computing.
> M: +94 71 012 4103 <+94%2071%20012%204103>
>
> 
> 
> 
>



 --
 Tishan Dahanayakage
 Senior Software Engineer
 WSO2, Inc.
 Mobile:+94 716481328 <071%20648%201328>

 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
 

Re: [Dev] Error while initiating response builder

2017-02-25 Thread Hasintha Indrajee
@KasunG : We cannot exclude this dependency since it's required to build up
osgi environment for tests. I checked and removed all other transitive ways
of inheriting this dependency. But still the issue is there.

@Thusitha : This is not due to picking two bundles. Rather picking a bundle
and a maven dependency I guess. So we need to to find a way to exclude this
maven dependency from test run time. I checked adding different scopes (ex
- test, compile) But still couldn't get it solved.

On Sat, Feb 25, 2017 at 5:17 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Hasintha,
>
> According to the stacktrace, it seems that RuntimeDelegate class is
> loaded from 2 bundles. Can you check if you have 2 dependecnies which
> provided this class ?
>
> Thanks
> Thusitha
>
> On Sat, Feb 25, 2017 at 5:10 PM, Hasintha Indrajee 
> wrote:
>
>>
>> Hi all,
>>
>> I am getting the following class cast exception while initiating a
>> Response builder. Following is the line of code causing this issue. Note
>> that I am only getting this while running tests. Any Idea about the cause
>> of this issue ?
>>
>> Response.ResponseBuilder builder = Response.noContent();
>>
>>
>> msf4j-core[org.wso2.msf4j.internal.MSF4JMessageProcessor] : Unmapped
>> exception
>> java.lang.LinkageError: ClassCastException: attempting to
>> castjar:file:/home/hasinthaindrajee/.m2/repository/javax/ws/
>> rs/javax.ws.rs-api/2.0/javax.ws.rs-api-2.0.jar!/javax/ws/rs/ext/RuntimeDelegate.class
>> to bundleresource://53.fwk689654773/javax/ws/rs/ext/RuntimeDelegate.class
>> at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146)
>> at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
>> at javax.ws.rs.core.Response$ResponseBuilder.newInstance(Respon
>> se.java:848)
>> at javax.ws.rs.core.Response.status(Response.java:590)
>> at javax.ws.rs.core.Response.status(Response.java:601)
>> at javax.ws.rs.core.Response.accepted(Response.java:709)
>> at org.wso2.carbon.identity.sample.outbound.response.ACSRequest
>> ResponseBuilderFactory.createBuilder(ACSRequestRespon
>> seBuilderFactory.java:16)
>> at org.wso2.carbon.identity.gateway.resource.GatewayManager.
>> execute(GatewayManager.java:86)
>> at org.wso2.carbon.identity.gateway.resource.GatewayResource.
>> processGet(GatewayResource.java:59)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMet
>> hodInfo.java:132)
>> at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod
>> (MSF4JMessageProcessor.java:130)
>> at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JM
>> essageProcessor.java:72)
>> at org.wso2.carbon.transport.http.netty.listener.WorkerPoolDisp
>> atchingSourceHandler.lambda$publishToWorkerPool$12(WorkerPoo
>> lDispatchingSourceHandler.java:125)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>>
>> --
>> Hasintha Indrajee
>> WSO2, Inc.
>> Mobile:+94 771892453 <+94%2077%20189%202453>
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> 
>
>


-- 
Hasintha Indrajee
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Re: GSOC 2017 - Test Automation Tool

2017-02-25 Thread Uditha Kasun

Adding WSO2 Dev List

Get Outlook for Android


From: Uditha Kasun
Sent: Saturday, February 25, 11:57 AM
Subject: Re: [Dev] GSOC 2017 - Test Automation Tool
To: Dharshana Warusavitharana, Nuwan Silva
Cc: Inthiquab Haddard, WSO2 Developers' List

As far as I understood this project is to implement a test automation tool 
which will process the documentation provided by the user which is written in 
plain english. Then the application will convert the document into an 
understandable format for the application using NLP to a format like JSON or 
XML. So the application can execute its operations using json or xml data. Can 
you please review the above approach ? Where can i find documents to be tested 
using the tool and also applications which are to be automated using the test 
scripts?

From: Dharshana Warusavitharana 
Sent: Friday, February 24, 2017 9:55:42 PM
To: Nuwan Silva
Cc: Uditha Kasun; Inthiquab Haddard; WSO2 Developers' List
Subject: Re: [Dev] GSOC 2017 - Test Automation Tool



Hi Uditha,

Thank you for the interest in this project.

This project mainly focuses on automatic test case generation based on given 
instruction set. In this case, its implementation is on steps provided in a 
document.

You have to use NLP to derive a common medium something like XML/JSON to 
interpret steps in an understandable format and derive test cases based on that 
derivation.

We are mainly focused on  Java, TestNG and maven based test cases and ability 
to evaluate documented steps against the same type of deployment (may be 
docker) and verify whether the document is still valid or not.

There is a old GSOC project dome by Ruskshan for NLP and test case generation 
based on WSO2 admin services [1].

This is just high level of the project , if you have any more issues please 
feel free to ask.

[1]. 
https://github.com/ruks/Automated-test-case-generation-tool/tree/991e6e21927288d237c0a8d1985b7d2787f91a9b/Auto-TAF

Thank you,

Dharshana

On Fri, Feb 24, 2017 at 7:57 PM, Nuwan Silva 
@wso2.com>
 wrote:

Adding DharshanaW + Inthiquab

On Thu, Feb 23, 2017 at 8:20 PM, Uditha Kasun 
> wrote:

Hi All,

I am Uditha Kasun Senavirathna, a 3rd year Software Engineering undergraduate 
student from Sri Lanka Institute Of Information Technology. I am interested in 
implementing your GSOC 2017 proposal for  a Test Automation Tool. I currently 
have some experience with test automation using frameworks like Selenium, 
Sikuli using java. It would be much appreciated if you could provide more 
information regarding the test automation tool to be implemented.


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



--

Nuwan Silva

Senior Software Engineer

Mobile: +9477 980 4543

WSO2 Inc.
lean . enterprise . middlewear.
http://www.wso2.com



--

Dharshana Warusavitharana

Associate Technical Lead

WSO2 Inc. http://wso2.com
email :  
dharshanaw@wso2.com

Tel  : +94 11 214 5345

Fax :+94 11 2145300

cell : +94770342233

blog : http://dharshanaw.blogspot.com

lean . enterprise . middleware

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


Re: [Dev] Error while initiating response builder

2017-02-25 Thread Thusitha Thilina Dayaratne
Hi Hasintha,

According to the stacktrace, it seems that RuntimeDelegate class is loaded
from 2 bundles. Can you check if you have 2 dependecnies which provided
this class ?

Thanks
Thusitha

On Sat, Feb 25, 2017 at 5:10 PM, Hasintha Indrajee 
wrote:

>
> Hi all,
>
> I am getting the following class cast exception while initiating a
> Response builder. Following is the line of code causing this issue. Note
> that I am only getting this while running tests. Any Idea about the cause
> of this issue ?
>
> Response.ResponseBuilder builder = Response.noContent();
>
>
> msf4j-core[org.wso2.msf4j.internal.MSF4JMessageProcessor] : Unmapped
> exception
> java.lang.LinkageError: ClassCastException: attempting to
> castjar:file:/home/hasinthaindrajee/.m2/repository/javax/ws/rs/javax.
> ws.rs-api/2.0/javax.ws.rs-api-2.0.jar!/javax/ws/rs/ext/RuntimeDelegate.class
> to bundleresource://53.fwk689654773/javax/ws/rs/ext/RuntimeDelegate.class
> at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146)
> at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
> at javax.ws.rs.core.Response$ResponseBuilder.newInstance(
> Response.java:848)
> at javax.ws.rs.core.Response.status(Response.java:590)
> at javax.ws.rs.core.Response.status(Response.java:601)
> at javax.ws.rs.core.Response.accepted(Response.java:709)
> at org.wso2.carbon.identity.sample.outbound.response.
> ACSRequestResponseBuilderFactory.createBuilder(
> ACSRequestResponseBuilderFactory.java:16)
> at org.wso2.carbon.identity.gateway.resource.GatewayManager.execute(
> GatewayManager.java:86)
> at org.wso2.carbon.identity.gateway.resource.GatewayResource.processGet(
> GatewayResource.java:59)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(
> HttpMethodInfo.java:132)
> at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(
> MSF4JMessageProcessor.java:130)
> at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(
> MSF4JMessageProcessor.java:72)
> at org.wso2.carbon.transport.http.netty.listener.
> WorkerPoolDispatchingSourceHandler.lambda$publishToWorkerPool$12(
> WorkerPoolDispatchingSourceHandler.java:125)
> 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)
>
> --
> Hasintha Indrajee
> WSO2, Inc.
> Mobile:+94 771892453 <+94%2077%20189%202453>
>
>


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

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

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


Re: [Dev] Error while initiating response builder

2017-02-25 Thread KasunG Gajasinghe
I think this is caused by this dependency: javax/ws/rs/javax.
ws.rs-api/2.0/javax.ws.rs-api-2.0.jar
You might want to exclude it.

On Sat, Feb 25, 2017 at 5:10 PM, Hasintha Indrajee 
wrote:

>
> Hi all,
>
> I am getting the following class cast exception while initiating a
> Response builder. Following is the line of code causing this issue. Note
> that I am only getting this while running tests. Any Idea about the cause
> of this issue ?
>
> Response.ResponseBuilder builder = Response.noContent();
>
>
> msf4j-core[org.wso2.msf4j.internal.MSF4JMessageProcessor] : Unmapped
> exception
> java.lang.LinkageError: ClassCastException: attempting to
> castjar:file:/home/hasinthaindrajee/.m2/repository/javax/ws/rs/javax.
> ws.rs-api/2.0/javax.ws.rs-api-2.0.jar!/javax/ws/rs/ext/RuntimeDelegate.class
> to bundleresource://53.fwk689654773/javax/ws/rs/ext/RuntimeDelegate.class
> at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146)
> at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
> at javax.ws.rs.core.Response$ResponseBuilder.newInstance(
> Response.java:848)
> at javax.ws.rs.core.Response.status(Response.java:590)
> at javax.ws.rs.core.Response.status(Response.java:601)
> at javax.ws.rs.core.Response.accepted(Response.java:709)
> at org.wso2.carbon.identity.sample.outbound.response.
> ACSRequestResponseBuilderFactory.createBuilder(
> ACSRequestResponseBuilderFactory.java:16)
> at org.wso2.carbon.identity.gateway.resource.GatewayManager.execute(
> GatewayManager.java:86)
> at org.wso2.carbon.identity.gateway.resource.GatewayResource.processGet(
> GatewayResource.java:59)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(
> HttpMethodInfo.java:132)
> at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(
> MSF4JMessageProcessor.java:130)
> at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(
> MSF4JMessageProcessor.java:72)
> at org.wso2.carbon.transport.http.netty.listener.
> WorkerPoolDispatchingSourceHandler.lambda$publishToWorkerPool$12(
> WorkerPoolDispatchingSourceHandler.java:125)
> 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)
>
> --
> Hasintha Indrajee
> WSO2, Inc.
> Mobile:+94 771892453 <077%20189%202453>
>
>


-- 

*Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
phone: +1 650-745-4499, 77 678 0813
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while initiating response builder

2017-02-25 Thread Hasintha Indrajee
Hi all,

I am getting the following class cast exception while initiating a Response
builder. Following is the line of code causing this issue. Note that I am
only getting this while running tests. Any Idea about the cause of this
issue ?

Response.ResponseBuilder builder = Response.noContent();


msf4j-core[org.wso2.msf4j.internal.MSF4JMessageProcessor] : Unmapped
exception
java.lang.LinkageError: ClassCastException: attempting to
castjar:file:/home/hasinthaindrajee/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0/javax.ws.rs-api-2.0.jar!/javax/ws/rs/ext/RuntimeDelegate.class
to bundleresource://53.fwk689654773/javax/ws/rs/ext/RuntimeDelegate.class
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146)
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
at javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:848)
at javax.ws.rs.core.Response.status(Response.java:590)
at javax.ws.rs.core.Response.status(Response.java:601)
at javax.ws.rs.core.Response.accepted(Response.java:709)
at
org.wso2.carbon.identity.sample.outbound.response.ACSRequestResponseBuilderFactory.createBuilder(ACSRequestResponseBuilderFactory.java:16)
at
org.wso2.carbon.identity.gateway.resource.GatewayManager.execute(GatewayManager.java:86)
at
org.wso2.carbon.identity.gateway.resource.GatewayResource.processGet(GatewayResource.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:132)
at
org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(MSF4JMessageProcessor.java:130)
at
org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:72)
at
org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler.lambda$publishToWorkerPool$12(WorkerPoolDispatchingSourceHandler.java:125)
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)

-- 
Hasintha Indrajee
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev