Yeah, there is no need to add redundant jars into the AAR. Perhaps we can
exclude these jars during AAR creation.

--
Afkham Azeez
Sent from my phone
On Jan 25, 2012 10:30 PM, "Subash Chaturanga" <[email protected]> wrote:

>
>
> On Wed, Jan 25, 2012 at 7:02 PM, Amila Suriarachchi <[email protected]>wrote:
>
>>
>>
>> On Fri, Jan 20, 2012 at 2:09 PM, Afkham Azeez <[email protected]> wrote:
>>
>>> It is very strange that MessageContext.getCurrentContext returns null
>>> only in G-Reg.
>>>
>>
>> this is a classloading issue. this .aar file contains an axis2 jar in the
>> lib folder and GReg has set child first class loading true.
>>
>>
> Yes, it worked fine when set child first class loading to false in greg
> axis2.xml, due to above mentioned reason. In GReg it was set to true, which
> I didn't see in other products (i.e as).
>
> Hi Azeez, isn't it suppose to include only service specific jars in the
> lib, as those other jars are available from the platform dependencies ?
>
>
>> thanks,
>> Amila.
>>
>>>
>>> On Fri, Jan 20, 2012 at 12:44 PM, Subash Chaturanga <[email protected]>wrote:
>>>
>>>> Hi all,
>>>>
>>>> I came across with this issue when running the GReg testng
>>>> SecurityVetification test case as it invokes
>>>> the org.wso2.carbon.integration.secverifier.SecurityVerifierService.
>>>> There was a NPE as axis2 MessageContext gets null.
>>>>
>>>> This can be reproduced when you manually drop a service aar  to
>>>> GREG_HOME/repository/deployments/server/axis2Services/ and try to invoke
>>>> it.
>>>> Any idea ?
>>>>
>>>> Here is the error log.
>>>>
>>>> [2012-01-20 12:41:14,321] ERROR
>>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Exception occurred
>>>> while trying to invoke service method verifyAdminServices
>>>> java.lang.reflect.InvocationTargetException
>>>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>  at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>  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:181)
>>>> at
>>>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144)
>>>>  at
>>>> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:139)
>>>> at
>>>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:837)
>>>>  at
>>>> org.wso2.carbon.core.transports.CarbonServlet.handleRestRequest(CarbonServlet.java:233)
>>>> at
>>>> org.wso2.carbon.core.transports.CarbonServlet.doGet(CarbonServlet.java:131)
>>>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>>>  at
>>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
>>>> at
>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
>>>>  at
>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>>>  at
>>>> org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>>>  at
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>  at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
>>>>  at
>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>>>>  at
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
>>>> at
>>>> org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154)
>>>>  at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:257)
>>>> at
>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
>>>>  at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>>> at
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
>>>>  at
>>>> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396)
>>>> at
>>>> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356)
>>>>  at
>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>  at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>> at java.lang.Thread.run(Thread.java:662)
>>>> Caused by: java.lang.NullPointerException
>>>> at
>>>> org.wso2.carbon.integration.secverifier.SecurityVerifierService.verifyAdminServices(SecurityVerifierService.java:42)
>>>>
>>>>
>>>> Thanks
>>>> --
>>>>
>>>> Subash Chaturanga
>>>> Software Engineer
>>>> WSO2 Inc. http://wso2.com
>>>>
>>>> email - [email protected]
>>>> phone - 077 2225922
>>>>
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> [email protected]
>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * <http://www.apache.org/>**
>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>> 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*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Amila Suriarachchi*
>>
>> Software Architect
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 71 3082805
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> Thanks
> --
>
> Subash Chaturanga
> Software Engineer
> WSO2 Inc. http://wso2.com
>
> email - [email protected]
> phone - 077 2225922
>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to