You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Filippo Diotalevi (JIRA)" <ji...@apache.org> on 2009/06/14 21:53:07 UTC
[jira] Created: (FELIX-1238) NPE when invoking "scr list" with no
components registered
NPE when invoking "scr list" with no components registered
----------------------------------------------------------
Key: FELIX-1238
URL: https://issues.apache.org/jira/browse/FELIX-1238
Project: Felix
Issue Type: Bug
Components: Declarative Services (SCR)
Affects Versions: scr-1.0.8
Reporter: Filippo Diotalevi
Priority: Minor
Fix For: scr-1.0.10
The bug can be reproduced with a minimal Felix+SCR container like:
[ 0] [Active ] [ 0] System Bundle (1.8.0)
[ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0)
[ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0)
[ 7] [Active ] [ 1] Apache Felix Declarative Services (1.0.9.SNAPSHOT)
In these condition, typing "scr list" in the shell causes a NPE:
-> scr list
No components registered
Id State Name
Unable to execute command: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
at java.lang.Thread.run(Thread.java:637)
The same happens trying to list components of a non-DS bundle
-> svn list 3
Bundle 3 declares no components
Id State Name
Unable to execute command: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
at java.lang.Thread.run(Thread.java:637)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-1238) NPE when invoking "scr list" with no
components registered
Posted by "Filippo Diotalevi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filippo Diotalevi closed FELIX-1238.
------------------------------------
> NPE when invoking "scr list" with no components registered
> ----------------------------------------------------------
>
> Key: FELIX-1238
> URL: https://issues.apache.org/jira/browse/FELIX-1238
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.0.8
> Reporter: Filippo Diotalevi
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: scr-1.0.10
>
> Attachments: FELIX-1238.txt
>
>
> The bug can be reproduced with a minimal Felix+SCR container like:
> [ 0] [Active ] [ 0] System Bundle (1.8.0)
> [ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0)
> [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0)
> [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0)
> [ 7] [Active ] [ 1] Apache Felix Declarative Services (1.0.9.SNAPSHOT)
> In these condition, typing "scr list" in the shell causes a NPE:
> -> scr list
> No components registered
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
> The same happens trying to list components of a non-DS bundle
> -> svn list 3
> Bundle 3 declares no components
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FELIX-1238) NPE when invoking "scr list" with no
components registered
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved FELIX-1238.
--------------------------------------
Resolution: Fixed
Thanks for reporting the bug and providing the patch. I have applied it in Rev. 784662.
Please close this issue if this fixes your problem. Thanks.
> NPE when invoking "scr list" with no components registered
> ----------------------------------------------------------
>
> Key: FELIX-1238
> URL: https://issues.apache.org/jira/browse/FELIX-1238
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.0.8
> Reporter: Filippo Diotalevi
> Priority: Minor
> Fix For: scr-1.0.10
>
> Attachments: FELIX-1238.txt
>
>
> The bug can be reproduced with a minimal Felix+SCR container like:
> [ 0] [Active ] [ 0] System Bundle (1.8.0)
> [ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0)
> [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0)
> [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0)
> [ 7] [Active ] [ 1] Apache Felix Declarative Services (1.0.9.SNAPSHOT)
> In these condition, typing "scr list" in the shell causes a NPE:
> -> scr list
> No components registered
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
> The same happens trying to list components of a non-DS bundle
> -> svn list 3
> Bundle 3 declares no components
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-1238) NPE when invoking "scr list" with no
components registered
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger updated FELIX-1238:
-------------------------------------
Assignee: Felix Meschberger
> NPE when invoking "scr list" with no components registered
> ----------------------------------------------------------
>
> Key: FELIX-1238
> URL: https://issues.apache.org/jira/browse/FELIX-1238
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.0.8
> Reporter: Filippo Diotalevi
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: scr-1.0.10
>
> Attachments: FELIX-1238.txt
>
>
> The bug can be reproduced with a minimal Felix+SCR container like:
> [ 0] [Active ] [ 0] System Bundle (1.8.0)
> [ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0)
> [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0)
> [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0)
> [ 7] [Active ] [ 1] Apache Felix Declarative Services (1.0.9.SNAPSHOT)
> In these condition, typing "scr list" in the shell causes a NPE:
> -> scr list
> No components registered
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
> The same happens trying to list components of a non-DS bundle
> -> svn list 3
> Bundle 3 declares no components
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-1238) NPE when invoking "scr list" with no
components registered
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger updated FELIX-1238:
-------------------------------------
Fix Version/s: (was: scr-1.0.10)
scr-1.2.0
Retargeting fixes for SCR 1.2.0 release. There will be no 1.0.10 release.
> NPE when invoking "scr list" with no components registered
> ----------------------------------------------------------
>
> Key: FELIX-1238
> URL: https://issues.apache.org/jira/browse/FELIX-1238
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.0.8
> Reporter: Filippo Diotalevi
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: scr-1.2.0
>
> Attachments: FELIX-1238.txt
>
>
> The bug can be reproduced with a minimal Felix+SCR container like:
> [ 0] [Active ] [ 0] System Bundle (1.8.0)
> [ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0)
> [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0)
> [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0)
> [ 7] [Active ] [ 1] Apache Felix Declarative Services (1.0.9.SNAPSHOT)
> In these condition, typing "scr list" in the shell causes a NPE:
> -> scr list
> No components registered
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
> The same happens trying to list components of a non-DS bundle
> -> svn list 3
> Bundle 3 declares no components
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-1238) NPE when invoking "scr list" with no
components registered
Posted by "Filippo Diotalevi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filippo Diotalevi updated FELIX-1238:
-------------------------------------
Attachment: FELIX-1238.txt
The attached patch adds 2 returns statement in the method
ScrCommand#private void list( StringTokenizer st, PrintStream out, PrintStream err )
in case there are no components to display
> NPE when invoking "scr list" with no components registered
> ----------------------------------------------------------
>
> Key: FELIX-1238
> URL: https://issues.apache.org/jira/browse/FELIX-1238
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.0.8
> Reporter: Filippo Diotalevi
> Priority: Minor
> Fix For: scr-1.0.10
>
> Attachments: FELIX-1238.txt
>
>
> The bug can be reproduced with a minimal Felix+SCR container like:
> [ 0] [Active ] [ 0] System Bundle (1.8.0)
> [ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0)
> [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0)
> [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0)
> [ 7] [Active ] [ 1] Apache Felix Declarative Services (1.0.9.SNAPSHOT)
> In these condition, typing "scr list" in the shell causes a NPE:
> -> scr list
> No components registered
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
> The same happens trying to list components of a non-DS bundle
> -> svn list 3
> Bundle 3 declares no components
> Id State Name
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.felix.scr.impl.ScrCommand.list(ScrCommand.java:161)
> at org.apache.felix.scr.impl.ScrCommand.execute(ScrCommand.java:102)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:291)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:177)
> at java.lang.Thread.run(Thread.java:637)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.