Re: [Carbon-dev] NPE while shutting down server after a large number of requests have been sent to the server
On Tue, May 24, 2011 at 1:22 PM, Afkham Azeez az...@wso2.com wrote: This needs to be definitely fixed before the release. I am consistently getting this while shutting down the server. This was fixed yesterday. Thanks, Senaka. On Fri, May 20, 2011 at 7:04 PM, Afkham Azeez az...@wso2.com wrote: [2011-05-20 19:06:31,179] ERROR {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/]} - Error while stopping Framework java.lang.NullPointerException at org.wso2.carbon.base.CarbonContextHolderBase$CarbonContextCleanupTask.cleanup(CarbonContextHolderBase.java:335) at org.wso2.carbon.base.CarbonContextHolderBase.unloadTenant(CarbonContextHolderBase.java:138) at org.wso2.carbon.utils.multitenancy.CarbonContextHolder.unloadTenant(CarbonContextHolder.java:233) at org.wso2.carbon.bridge.EquinoxFrameworkLauncher.stop(EquinoxFrameworkLauncher.java:340) at org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:755) at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:788) at org.wso2.carbon.core.init.CarbonServerManager$3.run(CarbonServerManager.java:798) -- *Afkham Azeez* Director of 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 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* -- *Afkham Azeez* Director of 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 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* -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] NPE while shutting down server after a large number of requests have been sent to the server
This needs to be definitely fixed before the release. I am consistently getting this while shutting down the server. On Fri, May 20, 2011 at 7:04 PM, Afkham Azeez az...@wso2.com wrote: [2011-05-20 19:06:31,179] ERROR {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/]} - Error while stopping Framework java.lang.NullPointerException at org.wso2.carbon.base.CarbonContextHolderBase$CarbonContextCleanupTask.cleanup(CarbonContextHolderBase.java:335) at org.wso2.carbon.base.CarbonContextHolderBase.unloadTenant(CarbonContextHolderBase.java:138) at org.wso2.carbon.utils.multitenancy.CarbonContextHolder.unloadTenant(CarbonContextHolder.java:233) at org.wso2.carbon.bridge.EquinoxFrameworkLauncher.stop(EquinoxFrameworkLauncher.java:340) at org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:755) at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:788) at org.wso2.carbon.core.init.CarbonServerManager$3.run(CarbonServerManager.java:798) -- *Afkham Azeez* Director of 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 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* -- *Afkham Azeez* Director of 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 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 Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] NPE while shutting down server after a large number of requests have been sent to the server
[2011-05-20 19:06:31,179] ERROR {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/]} - Error while stopping Framework java.lang.NullPointerException at org.wso2.carbon.base.CarbonContextHolderBase$CarbonContextCleanupTask.cleanup(CarbonContextHolderBase.java:335) at org.wso2.carbon.base.CarbonContextHolderBase.unloadTenant(CarbonContextHolderBase.java:138) at org.wso2.carbon.utils.multitenancy.CarbonContextHolder.unloadTenant(CarbonContextHolder.java:233) at org.wso2.carbon.bridge.EquinoxFrameworkLauncher.stop(EquinoxFrameworkLauncher.java:340) at org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:755) at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:788) at org.wso2.carbon.core.init.CarbonServerManager$3.run(CarbonServerManager.java:798) -- *Afkham Azeez* Director of 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 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 Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] NPE while shutting down server after a large number of requests have been sent to the server
I got this today in an ESB build. The server wasn't busy really. It was idling most of the time (I was just playing around with the UI). The server was in idle state for at least an hour straight when I shut it down. So I guess the uptime has something to do with this. Thanks, Hiranya On Fri, May 20, 2011 at 7:04 PM, Afkham Azeez az...@wso2.com wrote: [2011-05-20 19:06:31,179] ERROR {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/]} - Error while stopping Framework java.lang.NullPointerException at org.wso2.carbon.base.CarbonContextHolderBase$CarbonContextCleanupTask.cleanup(CarbonContextHolderBase.java:335) at org.wso2.carbon.base.CarbonContextHolderBase.unloadTenant(CarbonContextHolderBase.java:138) at org.wso2.carbon.utils.multitenancy.CarbonContextHolder.unloadTenant(CarbonContextHolder.java:233) at org.wso2.carbon.bridge.EquinoxFrameworkLauncher.stop(EquinoxFrameworkLauncher.java:340) at org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:755) at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:788) at org.wso2.carbon.core.init.CarbonServerManager$3.run(CarbonServerManager.java:798) -- *Afkham Azeez* Director of 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 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 Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Hiranya Jayathilaka Senior Software Engineer; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] NPE while shutting down server after a large number of requests have been sent to the server
On Fri, May 20, 2011 at 7:09 PM, Hiranya Jayathilaka hira...@wso2.comwrote: I got this today in an ESB build. The server wasn't busy really. It was idling most of the time (I was just playing around with the UI). The server was in idle state for at least an hour straight when I shut it down. So I guess the uptime has something to do with this. No. In my case, the server was running only for a short while. Looks like a recently introduced bug. Thanks, Hiranya On Fri, May 20, 2011 at 7:04 PM, Afkham Azeez az...@wso2.com wrote: [2011-05-20 19:06:31,179] ERROR {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/]} - Error while stopping Framework java.lang.NullPointerException at org.wso2.carbon.base.CarbonContextHolderBase$CarbonContextCleanupTask.cleanup(CarbonContextHolderBase.java:335) at org.wso2.carbon.base.CarbonContextHolderBase.unloadTenant(CarbonContextHolderBase.java:138) at org.wso2.carbon.utils.multitenancy.CarbonContextHolder.unloadTenant(CarbonContextHolder.java:233) at org.wso2.carbon.bridge.EquinoxFrameworkLauncher.stop(EquinoxFrameworkLauncher.java:340) at org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:755) at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:788) at org.wso2.carbon.core.init.CarbonServerManager$3.run(CarbonServerManager.java:798) -- *Afkham Azeez* Director of 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 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 Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Hiranya Jayathilaka Senior Software Engineer; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org 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: **az...@wso2.com* az...@wso2.com* 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 Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] NPE while shutting down server after a large number of requests have been sent to the server
On Fri, May 20, 2011 at 7:13 PM, Afkham Azeez az...@wso2.com wrote: On Fri, May 20, 2011 at 7:09 PM, Hiranya Jayathilaka hira...@wso2.comwrote: I got this today in an ESB build. The server wasn't busy really. It was idling most of the time (I was just playing around with the UI). The server was in idle state for at least an hour straight when I shut it down. So I guess the uptime has something to do with this. No. In my case, the server was running only for a short while. Looks like a recently introduced bug. The code in CarbonContextHolderBase has not changed since 2010-12-14. I wonder what other causes have lead to this. Here is the cleanup code. public void cleanup(int tenantId) { ArrayListWeakReferenceCarbonContextHolderBase list = contextHolderList.remove(tenantId); if (list != null) { for (WeakReferenceCarbonContextHolderBase carbonContextHolderBaseRef : list) { *CarbonContextHolderBase carbonContextHolderBase = carbonContextHolderBaseRef.get();* if (carbonContextHolderBase != null) { carbonContextHolderBase.cleanupProperties(); } } list.clear(); } } The NPE is from the line in bold. IIRC, a value of the WeakReference can be null, if the object was GC'd. But, the WeakReference itself cannot be null right? The only possibility is if something has messed up with GC or ClassLoading isn't it? Thanks, Senaka. Thanks, Hiranya On Fri, May 20, 2011 at 7:04 PM, Afkham Azeez az...@wso2.com wrote: [2011-05-20 19:06:31,179] ERROR {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/]} - Error while stopping Framework java.lang.NullPointerException at org.wso2.carbon.base.CarbonContextHolderBase$CarbonContextCleanupTask.cleanup(CarbonContextHolderBase.java:335) at org.wso2.carbon.base.CarbonContextHolderBase.unloadTenant(CarbonContextHolderBase.java:138) at org.wso2.carbon.utils.multitenancy.CarbonContextHolder.unloadTenant(CarbonContextHolder.java:233) at org.wso2.carbon.bridge.EquinoxFrameworkLauncher.stop(EquinoxFrameworkLauncher.java:340) at org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:755) at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:788) at org.wso2.carbon.core.init.CarbonServerManager$3.run(CarbonServerManager.java:798) -- *Afkham Azeez* Director of 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 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 Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Hiranya Jayathilaka Senior Software Engineer; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org 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: **az...@wso2.com* az...@wso2.com* 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 Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev