Re: [Dev] [MSF4J] Issue with registering ExceptionMappers.

2016-06-20 Thread Hemika Kodikara
Hi Azeez, I was not able to get it reproduced in the fatjar so far. It comes intermittently in my tests as well. After all 3 of my exception mappers are registered, the map will have the following : [org.wso2.msf4j.internal.MicroservicesRegistry] : EXCEPTION MAPPERS : {class

Re: [Dev] [MSF4J] Issue with registering ExceptionMappers.

2016-06-20 Thread Afkham Azeez
Can this be reproduced in the standalone (fatjar) mode as well? On Mon, Jun 20, 2016 at 7:53 PM, Afkham Azeez wrote: > So what has happened in the wrong exception mapper for an exception has > got registered? > > On Mon, Jun 20, 2016 at 7:03 PM, Hemika Kodikara

Re: [Dev] [MSF4J] Issue with registering ExceptionMappers.

2016-06-20 Thread Afkham Azeez
So what has happened in the wrong exception mapper for an exception has got registered? On Mon, Jun 20, 2016 at 7:03 PM, Hemika Kodikara wrote: > Hi All, > > I am currently writing unit test cases where exception mappers are being > used in my service. Intermittently I get the

[Dev] [MSF4J] Issue with registering ExceptionMappers.

2016-06-20 Thread Hemika Kodikara
Hi All, I am currently writing unit test cases where exception mappers are being used in my service. Intermittently I get the following error when running my tests : == java.lang.ClassCastException: org.wso2.carbon.andes.service.exceptions.InternalServerException cannot be cast to