felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Forsman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3763) Add exception context information for java.lang.NullPointerException at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
Date Mon, 03 Dec 2012 13:26:00 GMT

    [ https://issues.apache.org/jira/browse/FELIX-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508716#comment-13508716
] 

Tomas Forsman commented on FELIX-3763:
--------------------------------------

Related to https://issues.apache.org/jira/browse/FELIX-3477
                
> Add exception context information for java.lang.NullPointerException at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3763
>                 URL: https://issues.apache.org/jira/browse/FELIX-3763
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.0.3
>         Environment: Karaf
>   Karaf version               2.3.0
>   Karaf home                  /home/ceefour/git/bippo-commerce5/karaf
>   Karaf base                  /home/ceefour/git/bippo-commerce5/karaf
>   OSGi Framework              org.apache.felix.framework - 4.0.3
> JVM
>   Java Virtual Machine        OpenJDK 64-Bit Server VM version 23.2-b09
>   Version                     1.7.0_07
>   Vendor                      Oracle Corporation
>   Uptime                      7 minutes
>   Total compile time          41.656 seconds
> Threads
>   Live threads                130
>   Daemon threads              115
>   Peak                        140
>   Total started               311
> Memory
>   Current heap size           145,684 kbytes
>   Maximum heap size           466,048 kbytes
>   Committed heap size         298,496 kbytes
>   Pending objects             0
>   Garbage collector           Name = 'PS Scavenge', Collections = 67, Time = 0.539 seconds
>   Garbage collector           Name = 'PS MarkSweep', Collections = 2, Time = 0.347 seconds
> Classes
>   Current classes loaded      13,475
>   Total classes loaded        13,477
>   Total classes unloaded      2
> Operating system
>   Name                        Linux version 3.2.0-32-generic
>   Architecture                amd64
>   Processors                  8
>            Reporter: Hendy Irawan
>
> Sometimes it's possible to get Felix into an inconsistent state so that "restart"-ing
a bundle will cause this Exception.
> Asking for a fix might be far and difficult, so if Felix can check for null and provide
more detailed context information around this exception, it would be more helpful for app
developers and also for future bug report in Felix.
> {code}
> 2012-11-16 17:09:33,546 | DEBUG | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker  140 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Removing 2 EObjects provided by org.soluvas.web.nav.ui [2605]
> 2012-11-16 17:09:33,546 | DEBUG | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker  161 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Removing Contributor org.soluvas.web.bootstrap.BootstrapPage/sidebarColumn:sidebarBlocks from
org.soluvas.web.nav.ui [2605]
> 2012-11-16 17:09:33,546 | DEBUG | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker  161 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Removing Contributor org.soluvas.web.bootstrap.BootstrapPage/navbar:navbarChild from org.soluvas.web.nav.ui
[2605]
> 2012-11-16 17:09:33,546 | INFO  | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker  169 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Removed 2 EObjects from org.soluvas.web.nav.ui [2605]
> 2012-11-16 17:09:33,547 | DEBUG | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker  172 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Notifying 12 contributors that bundle org.soluvas.web.nav.ui [2605] is removed
> 2012-11-16 17:09:33,547 | DEBUG | lixDispatchQueue | ui                             
 | ?                                   ? | 2605 - org.soluvas.web.nav.ui - 1.0.0.SNAPSHOT
| BundleEvent STOPPED - org.soluvas.web.nav.ui
> 2012-11-16 17:09:33,547 | INFO  | l Console Thread | PaxWicketBundleListener        
 | extender.PaxWicketBundleListener   40 | 2734 - org.ops4j.pax.wicket.service - 1.1.1 | org.soluvas.web.nav.ui
is STARTED and relevant for pax wicket
> 2012-11-16 17:09:33,549 | DEBUG | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker   65 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Getting org.soluvas.web.site.compose.ComposeCatalog from bundle://2605.129:0/org/soluvas/web/nav/ui/nav-ui.ComposeCatalog.xmi
> 2012-11-16 17:09:33,549 | DEBUG | l Console Thread | XmiObjectLoader                
 | .soluvas.commons.XmiObjectLoader   87 | 2882 - org.soluvas.commons - 2.0.0.SNAPSHOT | Loading
XMI from URI: bundle://2605.129:0/org/soluvas/web/nav/ui/nav-ui.ComposeCatalog.xmi
> 2012-11-16 17:09:33,551 | ERROR | rint Extender: 3 | BlueprintContainerImpl         
 | container.BlueprintContainerImpl  375 | 7 - org.apache.aries.blueprint.core - 1.0.1 | Unable
to start blueprint container for bundle org.soluvas.web.nav.ui
> org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.NullPointerException
>         at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:116)[7:org.apache.aries.blueprint.core:1.0.1]
>         at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[7:org.apache.aries.blueprint.core:1.0.1]
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_07]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_07]
>         at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[7:org.apache.aries.blueprint.core:1.0.1]
>         at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)[7:org.apache.aries.blueprint.core:1.0.1]
>         at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[7:org.apache.aries.blueprint.core:1.0.1]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:646)[7:org.apache.aries.blueprint.core:1.0.1]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:353)[7:org.apache.aries.blueprint.core:1.0.1]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:252)[7:org.apache.aries.blueprint.core:1.0.1]
>         at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[7:org.apache.aries.blueprint.core:1.0.1]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_07]
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_07]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_07]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_07]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_07]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_07]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_07]
>         at java.lang.Thread.run(Thread.java:722)[:1.7.0_07]
> Caused by: java.lang.NullPointerException
>         at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
>         at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
>         at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:410)[:1.7.0_07]
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_07]
>         at java.lang.Class.forName0(Native Method)[:1.7.0_07]
>         at java.lang.Class.forName(Class.java:264)[:1.7.0_07]
>         at org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.isInvalid(ProxyClassLoader.java:109)[12:org.apache.aries.proxy.impl:1.0.0]
>         at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:84)[12:org.apache.aries.proxy.impl:1.0.0]
>         at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:72)[12:org.apache.aries.proxy.impl:1.0.0]
>         at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:75)[12:org.apache.aries.proxy.impl:1.0.0]
>         at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:40)[12:org.apache.aries.proxy.impl:1.0.0]
>         at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:299)[7:org.apache.aries.blueprint.core:1.0.1]
>         at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:100)[7:org.apache.aries.blueprint.core:1.0.1]
>         ... 18 more
> 2012-11-16 17:09:33,551 | INFO  | l Console Thread | XmiObjectLoader                
 | .soluvas.commons.XmiObjectLoader   98 | 2882 - org.soluvas.commons - 2.0.0.SNAPSHOT | Loaded
org.soluvas.web.site.compose.impl.ComposeCatalogImpl@1a299beb from bundle://2605.129:0/org/soluvas/web/nav/ui/nav-ui.ComposeCatalog.xmi
> 2012-11-16 17:09:33,556 | DEBUG | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker  109 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Adding Contributor for org.soluvas.web.bootstrap.BootstrapPage/sidebarColumn:sidebarBlocks
from bundle://2605.129:0/org/soluvas/web/nav/ui/nav-ui.ComposeCatalog.xmi
> 2012-11-16 17:09:33,556 | DEBUG | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker  109 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Adding Contributor for org.soluvas.web.bootstrap.BootstrapPage/navbar:navbarChild from bundle://2605.129:0/org/soluvas/web/nav/ui/nav-ui.ComposeCatalog.xmi
> 2012-11-16 17:09:33,557 | INFO  | l Console Thread | ComposeCatalogXmiTracker       
 | compose.ComposeCatalogXmiTracker  119 | 2973 - org.soluvas.web.site - 1.0.0.SNAPSHOT |
Added 2 EObjects from org.soluvas.web.nav.ui [2605]
> 2012-11-16 17:09:33,558 | DEBUG | lixDispatchQueue | ui                             
 | ?                                   ? | 2605 - org.soluvas.web.nav.ui - 1.0.0.SNAPSHOT
| BundleEvent STARTED - org.soluvas.web.nav.ui
> {code}
> BTW, why is framework-4.0.3 unreleased ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message