[jira] [Updated] (FELIX-6109) NPE from null listener in DirectoryWatcher.findListener

2020-04-01 Thread Guillaume Nodet (Jira)


 [ 
https://issues.apache.org/jira/browse/FELIX-6109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated FELIX-6109:
---
Description: 
This error shows up intermittently in an OSGI application:

 
{code}
*ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
Unexpected problem updating configuration 
org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f

java.lang.NullPointerException

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:533)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:460)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:247)

 at 
org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.java:254)

 at 
org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.updated(FileInstall.java:378)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)

 at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1400)

 at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)

 at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)

 at java.lang.Thread.run(Thread.java:748)
{code}
 

 The NPE seems to imply that there is a null listener in the list of listeners 
here:

 
{code:java}
  ArtifactListener findListener(File artifact, List listeners)
    {
        for (ArtifactListener listener : listeners) {
            if (listener.canHandle(artifact)) {
                return listener;
            }
        }
        return null;
{code}
 

I don't know how that situation arises (some type of race condition, given that 
it's unpredictable), but seems like it should be easy enough to check for and 
ignore.

 

  was:
This error shows up intermittently in an OSGI application:

 

*ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
Unexpected problem updating configuration 
org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f

java.lang.NullPointerException

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:533)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:460)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:247)

 at 
org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.java:254)

 at 
org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.updated(FileInstall.java:378)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)

 at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1400)

 at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)

 at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)

 at java.lang.Thread.run(Thread.java:748)

 

 The NPE seems to imply that there is a null listener in the list of listeners 
here:

 
{code:java}
  ArtifactListener findListener(File artifact, List listeners)
    {
        for (ArtifactListener listener : listeners) {
            if (listener.canHandle(artifact)) {
                return listener;
            }
        }
        return null;
{code}
 

I don't know how that situation arises (some type of race condition, given that 
it's unpredictable), but seems like it should be easy enough to check for and 
ignore.

 


> NPE from null listener in DirectoryWatcher.findListener
> ---
>
> Key: FELIX-6109
> URL: https://issues.apache.org/jira/browse/FELIX-6109
> Project: Felix
>  Issue Type: Bug
>  Components: File Install
>Affects Versions: fileinstall-3.6.4
>Reporter: Stephen Marquard
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: fileinstall-3.6.6
>
>
> This error shows up intermittently in an OSGI application:
>  
> {code}
> *ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
> bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
> Unexpected problem updating 

[jira] [Updated] (FELIX-6109) NPE from null listener in DirectoryWatcher.findListener

2019-09-15 Thread Jira


 [ 
https://issues.apache.org/jira/browse/FELIX-6109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré updated FELIX-6109:

Fix Version/s: fileinstall-3.6.6

> NPE from null listener in DirectoryWatcher.findListener
> ---
>
> Key: FELIX-6109
> URL: https://issues.apache.org/jira/browse/FELIX-6109
> Project: Felix
>  Issue Type: Bug
>  Components: File Install
>Affects Versions: fileinstall-3.6.4
>Reporter: Stephen Marquard
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: fileinstall-3.6.6
>
>
> This error shows up intermittently in an OSGI application:
>  
> *ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
> bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
> Unexpected problem updating configuration 
> org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f
> java.lang.NullPointerException
>  at 
> org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:533)
>  at 
> org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:460)
>  at 
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
>  at 
> org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:247)
>  at 
> org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.java:254)
>  at 
> org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.updated(FileInstall.java:378)
>  at 
> org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)
>  at 
> org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)
>  at 
> org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1400)
>  at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)
>  at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)
>  at java.lang.Thread.run(Thread.java:748)
>  
>  The NPE seems to imply that there is a null listener in the list of 
> listeners here:
>  
> {code:java}
>   ArtifactListener findListener(File artifact, List 
> listeners)
>     {
>         for (ArtifactListener listener : listeners) {
>             if (listener.canHandle(artifact)) {
>                 return listener;
>             }
>         }
>         return null;
> {code}
>  
> I don't know how that situation arises (some type of race condition, given 
> that it's unpredictable), but seems like it should be easy enough to check 
> for and ignore.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Updated] (FELIX-6109) NPE from null listener in DirectoryWatcher.findListener

2019-04-26 Thread Stephen Marquard (JIRA)


 [ 
https://issues.apache.org/jira/browse/FELIX-6109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Marquard updated FELIX-6109:

Description: 
This error shows up intermittently in an OSGI application:

 

*ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
Unexpected problem updating configuration 
org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f

java.lang.NullPointerException

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:533)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:460)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:247)

 at 
org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.java:254)

 at 
org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.updated(FileInstall.java:378)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)

 at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1400)

 at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)

 at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)

 at java.lang.Thread.run(Thread.java:748)

 

 The NPE seems to imply that there is a null listener in the list of listeners 
here:

 
{code:java}
  ArtifactListener findListener(File artifact, List listeners)
    {
        for (ArtifactListener listener : listeners) {
            if (listener.canHandle(artifact)) {
                return listener;
            }
        }
        return null;
{code}
 

I don't know how that situation arises (some type of race condition, given that 
it's unpredictable), but seems like it should be easy enough to check for and 
ignore.

 

  was:
This error shows up intermittently in an OSGI application

 

*ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
Unexpected problem updating configuration 
org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f

java.lang.NullPointerException

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:533)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:460)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:247)

 at 
org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.java:254)

 at 
org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.updated(FileInstall.java:378)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)

 at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1400)

 at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)

 at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)

 at java.lang.Thread.run(Thread.java:748)

 

The NPE seems to imply that there is a null listener in the list of listeners 
here:

 
{code:java}
  ArtifactListener findListener(File artifact, List listeners)
    {
        for (ArtifactListener listener : listeners) {
            if (listener.canHandle(artifact)) {
                return listener;
            }
        }
        return null;
{code}
 

 

I don't know how that situation arises (some type of race condition, given that 
it's unpredictable), but seems like it should be easy enough to check for and 
ignore.

 


> NPE from null listener in DirectoryWatcher.findListener
> ---
>
> Key: FELIX-6109
> URL: https://issues.apache.org/jira/browse/FELIX-6109
> Project: Felix
>  Issue Type: Bug
>  Components: File Install
>Affects Versions: fileinstall-3.6.4
>Reporter: Stephen Marquard
>Priority: Major
>
> This error shows up intermittently in an OSGI application:
>  
> *ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
> bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
> Unexpected problem updating configuration 
> org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f
> java.lang.NullPointe

[jira] [Updated] (FELIX-6109) NPE from null listener in DirectoryWatcher.findListener

2019-04-26 Thread Stephen Marquard (JIRA)


 [ 
https://issues.apache.org/jira/browse/FELIX-6109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Marquard updated FELIX-6109:

Description: 
This error shows up intermittently in an OSGI application

 

*ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
Unexpected problem updating configuration 
org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f

java.lang.NullPointerException

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:533)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:460)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)

 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:247)

 at 
org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.java:254)

 at 
org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.updated(FileInstall.java:378)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)

 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)

 at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1400)

 at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)

 at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)

 at java.lang.Thread.run(Thread.java:748)

 

The NPE seems to imply that there is a null listener in the list of listeners 
here:

 
{code:java}
  ArtifactListener findListener(File artifact, List listeners)
    {
        for (ArtifactListener listener : listeners) {
            if (listener.canHandle(artifact)) {
                return listener;
            }
        }
        return null;
{code}
 

 

I don't know how that situation arises (some type of race condition, given that 
it's unpredictable), but seems like it should be easy enough to check for and 
ignore.

 

  was:
This error shows up intermittently in an OSGI application.
{noformat}
*ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
Unexpected problem updating configuration 
org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f 
java.lang.NullPointerException at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:533)
 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:460)
 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
 at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:247)
 at 
org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.java:254) 
at 
org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.updated(FileInstall.java:378)
 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)
 at 
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)
 at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1400)
 at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) at 
org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) at 
java.lang.Thread.run(Thread.java:748){noformat}
 

The NPE seems to imply that there is a null listener in the list of listeners 
here:

 
{code:java}
  ArtifactListener findListener(File artifact, List listeners)
    {
        for (ArtifactListener listener : listeners) {
            if (listener.canHandle(artifact)) {
                return listener;
            }
        }
        return null;
{code}
 

 

I don't know how that situation arises (some type of race condition, given that 
it's unpredictable), but seems like it should be easy enough to check for and 
ignore.

 


> NPE from null listener in DirectoryWatcher.findListener
> ---
>
> Key: FELIX-6109
> URL: https://issues.apache.org/jira/browse/FELIX-6109
> Project: Felix
>  Issue Type: Bug
>  Components: File Install
>Affects Versions: fileinstall-3.6.4
>Reporter: Stephen Marquard
>Priority: Major
>
> This error shows up intermittently in an OSGI application
>  
> *ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=13, 
> bundle=6/file:/opt/ls/bundles/system/org.apache.felix.fileinstall-3.6.4.jar]: 
> Unexpected problem updating configuration 
> org.apache.felix.fileinstall.06a753e4-56fc-42fa-8a5b-c2b0b374581f
> java.lang.NullPo