karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-1541) jaas:realm-manage raises a NullPointerException
Date Wed, 13 Jun 2012 12:33:43 GMT

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

Jean-Baptiste Onofré commented on KARAF-1541:
---------------------------------------------

* On Karaf 2.2.x:
- I have only one realm, that I can manage using jaas:manage command
- However, if jaas:manage --index 1 or jaas:manage --realm karaf work, I can't do:

karaf@root> jaas:manage --realm karaf --module org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
Could not find module: org.apache.karaf.jaas.modules.properties.PropertiesLoginModule in realm:karaf

* On Karaf 2.3.x and Karaf 3.0.x:
- karaf@root> jaas:manage --index 1
Error executing command: java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.karaf.jaas.command.JaasCommandSupport.findEntryByRealmAndName(JaasCommandSupport.java:100)[39:org.apache.karaf.jaas.command:2.3.0.SNAPSHOT]
        at org.apache.karaf.jaas.command.ManageRealmCommand.doExecute(ManageRealmCommand.java:65)[39:org.apache.karaf.jaas.command:2.3.0.SNAPSHOT]
        at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:167)[26:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

- karaf@root> jaas:manage --realm karaf 
Error executing command: java.lang.NullPointerException
(same as previous)

- karaf@root> jaas:manage --realm karaf --module org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
Could not find module: org.apache.karaf.jaas.modules.properties.PropertiesLoginModule in realm:karaf

                
> jaas:realm-manage raises a NullPointerException
> -----------------------------------------------
>
>                 Key: KARAF-1541
>                 URL: https://issues.apache.org/jira/browse/KARAF-1541
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.0, 3.0.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.3.0, 3.0.0.RC1, 3.0.0
>
>
> With Karaf 3.0.0, when performing:
> jaas:realm-manage --realm karaf
> we get:
> java.lang.NullPointerException
>         at org.apache.karaf.jaas.command.JaasCommandSupport.findEntryByRealmAndName(JaasCommandSupport.java:96)
>         at org.apache.karaf.jaas.command.ManageRealmCommand.doExecute(ManageRealmCommand.java:60)
>         at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
>         at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
>         at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>         at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>         at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
>         at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
>         at org.apache.karaf.shell.console.commands.$BlueprintCommand316217735.execute(Unknown
Source)
>         at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
>         at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
>         at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
>         at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
>         at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
>         at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
>         at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]
>         at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
>         at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
>         at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_26]
>         at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_26]
>         at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message