[jira] [Commented] (KARAF-5174) Uninstalling feature using liquibase-slf4j crashes karaf

2017-06-08 Thread Steinar Bang (JIRA)

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

Steinar Bang commented on KARAF-5174:
-

I will try to figure out the missing artifacts.

Is there a downloadable tar.gz/zip of the 4.2.0-SNAPSHOT somewhere?
Or do I need to build from git?

> Uninstalling feature using liquibase-slf4j crashes karaf
> 
>
> Key: KARAF-5174
> URL: https://issues.apache.org/jira/browse/KARAF-5174
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Java 1.8 64 bit, windows 7 64bit, debian "jessie" 
> GNU/linux 64bit
>Reporter: Steinar Bang
>
> To reproduce:
> # clone this project and build it with maven:
> {noformat}
> mkdir -p ~/git
> cd ~/git
> git clone https://github.com/steinarb/liquibase-karaf-feature/
> cd liquibase-karaf-feature
> mvn clean install
> {noformat}
> # start karaf and give the following commands to the karaf console:
> {noformat}
> feature:repo-add 
> mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
> feature:install liquibase-core
> {noformat}
> # uninstall the feature
> {noformat}
> feature:uninstall liquibase-core
> {noformat}
> Karaf will now output the following and hang:
> {noformat}
> karaf@root()> feature:install liquibase-core
> karaf@root()> feature:uninstall liquibase-core
> karaf@root()>
> java.lang.IllegalStateException: No inital startlevel yet
> at 
> org.apache.felix.framework.FrameworkStartLevelImpl.setStartLevel(FrameworkStartLevelImpl.java:131)
> at org.apache.karaf.main.Main.setStartLevel(Main.java:605)
> at 
> org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:711)
> at org.apache.karaf.main.Main.doMonitor(Main.java:382)
> at org.apache.karaf.main.Main.access$100(Main.java:75)
> at org.apache.karaf.main.Main$3.run(Main.java:369)
> {noformat}
> On karaf 4.0.7 the crash on uninstall doesn't happen.
> If the liquibase-slf4j fragment bundle is removed from the liquibase-core 
> feature, the crash on uninstall doesn't happen.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (KARAF-5187) Feature install runs 30 minutes and gets out of memory error in Felix resolver code

2017-06-08 Thread Jay Holloway (JIRA)
Jay Holloway created KARAF-5187:
---

 Summary: Feature install runs 30 minutes and gets out of memory 
error in Felix resolver code
 Key: KARAF-5187
 URL: https://issues.apache.org/jira/browse/KARAF-5187
 Project: Karaf
  Issue Type: Bug
  Components: karaf-feature
Affects Versions: 4.0.9
 Environment: Linux
Reporter: Jay Holloway


We are currently using Karaf 4.0.9.  We have a feature file that has worked for 
us for over a year.  We have noticed a slight degradation during the feature 
install in the past few months as we have added bundles and sub-features to our 
feature file.  Recently, we added numerous new sub-features and bundles to our 
one feature file.  Currently, the feature install hangs between 15 and 45 
minutes until we get a Java heap space out of memory error.  The print stack 
trace shows that it is in the Felix resolver the entire time.  However, when we 
downloaded, setup and configured Karaf 4.1.1, the same feature file installed 
with no problem and very quickly.  Is there something we can do within Karaf 
4.0.9 to make it process our feature file more efficiently without hanging?  
Officially upgrading to Karaf 4.1.1 is out of our control. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck resolved KARAF-5186.
---
Resolution: Fixed

> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Achim Nierbeck
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Work started] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread Achim Nierbeck (JIRA)

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

Work on KARAF-5186 started by Achim Nierbeck.
-
> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Achim Nierbeck
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5186:


Commit 2f031fb54b50b612fae610303540936cceb49b64 in karaf-decanter's branch 
refs/heads/master from [~achim_nierbeck]
[ https://git-wip-us.apache.org/repos/asf?p=karaf-decanter.git;h=2f031fb ]

[KARAF-5186] - [DECANTER] - Fails work in case the event topic contains
arbitrary characters like %

> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Achim Nierbeck
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-3270) Add command/MBean operation to give current user and his roles

2017-06-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on KARAF-3270:
---

Github user dfjdejulio closed the pull request at:

https://github.com/apache/karaf/pull/298


> Add command/MBean operation to give current user and his roles
> --
>
> Key: KARAF-3270
> URL: https://issues.apache.org/jira/browse/KARAF-3270
> Project: Karaf
>  Issue Type: New Feature
>  Components: karaf-shell
>Reporter: Jean-Baptiste Onofré
>Assignee: Guillaume Nodet
> Fix For: 4.2.0
>
>
> When logged on with an user (on the local console, ssh, MBean), it would be 
> great to get the current username (even if we have in the prompt and in the 
> console session), but also with current user roles.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Assigned] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck reassigned KARAF-5186:
-

Assignee: Achim Nierbeck  (was: Jean-Baptiste Onofré)

> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Achim Nierbeck
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5174) Uninstalling feature using liquibase-slf4j crashes karaf

2017-06-08 Thread JIRA

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

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

I'm trying to reproduce on Karaf 4.2.0-SNAPSHOT, but I can't install the 
liquibase feature (some artifacts are missing).

> Uninstalling feature using liquibase-slf4j crashes karaf
> 
>
> Key: KARAF-5174
> URL: https://issues.apache.org/jira/browse/KARAF-5174
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Java 1.8 64 bit, windows 7 64bit, debian "jessie" 
> GNU/linux 64bit
>Reporter: Steinar Bang
>
> To reproduce:
> # clone this project and build it with maven:
> {noformat}
> mkdir -p ~/git
> cd ~/git
> git clone https://github.com/steinarb/liquibase-karaf-feature/
> cd liquibase-karaf-feature
> mvn clean install
> {noformat}
> # start karaf and give the following commands to the karaf console:
> {noformat}
> feature:repo-add 
> mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
> feature:install liquibase-core
> {noformat}
> # uninstall the feature
> {noformat}
> feature:uninstall liquibase-core
> {noformat}
> Karaf will now output the following and hang:
> {noformat}
> karaf@root()> feature:install liquibase-core
> karaf@root()> feature:uninstall liquibase-core
> karaf@root()>
> java.lang.IllegalStateException: No inital startlevel yet
> at 
> org.apache.felix.framework.FrameworkStartLevelImpl.setStartLevel(FrameworkStartLevelImpl.java:131)
> at org.apache.karaf.main.Main.setStartLevel(Main.java:605)
> at 
> org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:711)
> at org.apache.karaf.main.Main.doMonitor(Main.java:382)
> at org.apache.karaf.main.Main.access$100(Main.java:75)
> at org.apache.karaf.main.Main$3.run(Main.java:369)
> {noformat}
> On karaf 4.0.7 the crash on uninstall doesn't happen.
> If the liquibase-slf4j fragment bundle is removed from the liquibase-core 
> feature, the crash on uninstall doesn't happen.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (KARAF-5181) NPE while running "threads --tree" command from console

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré resolved KARAF-5181.
-
Resolution: Fixed

> NPE while running "threads --tree" command from console
> ---
>
> Key: KARAF-5181
> URL: https://issues.apache.org/jira/browse/KARAF-5181
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-shell
>Affects Versions: 4.1.1
> Environment:  cat /etc/system-release
> CentOS Linux release 7.3.1611 (Core) 
> java -version
> openjdk version "1.8.0_131"
> OpenJDK Runtime Environment (build 1.8.0_131-b12)
> OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
>Reporter: Richard Kosegi
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
> Fix For: 4.2.0, 4.1.2
>
>
> I just hit NPE while running {{threads --tree}} command from shell console.
> Consecutive invocation of same command didn't reproduce issue, so I think 
> there is probably race condition in threads command handler.
> {code}
> 2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil
> | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
> executing command
> java.lang.NullPointerException
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:?]
> at java.lang.Thread.run(Thread.java:748) [?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5184) ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5184:


Commit a99b55a5d792809237a2220e57275cc1cfe05ee3 in karaf's branch 
refs/heads/master from [~gzres]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=a99b55a ]

[KARAF-5184] Make sure terminal is closed even if ConsoleSession didn't run yet 
(with DelayedStarted)


> ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed
> -
>
> Key: KARAF-5184
> URL: https://issues.apache.org/jira/browse/KARAF-5184
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
>Reporter: Grzegorz Grzybek
>Assignee: Grzegorz Grzybek
> Fix For: 4.2.0, 4.1.2
>
>
> I have this chain of references leading to old BundleRevision of 
> {{org.apache.karaf.shell.core}} bundle:
> {noformat}
> this - value: org.apache.felix.framework.BundleWiringImpl #14
>  <- m_wiring - class: 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, value: 
> org.apache.felix.framework.BundleWiringImpl #14
>   <-  - class: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader #11
><-  - class: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner class 
> JaasHelper$OsgiSubjectDomainCombiner
> <- combiner - class: java.security.AccessControlContext, value: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner #1
>  <- inheritedAccessControlContext (thread object) - class: 
> java.lang.Thread, value: java.security.AccessControlContext #60
> {noformat}
> Could be related to jline:
> {noformat}
> "JLine terminal non blocking reader thread" #145 daemon prio=5 os_prio=0 
> tid=0x7f046822c000 nid=0x43aa runnable [0x7f0474b35000]
>java.lang.Thread.State: RUNNABLE
>   at java.io.FileInputStream.readBytes(Native Method)
>   at java.io.FileInputStream.read(FileInputStream.java:255)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
>   - locked <0xe0f0ed90> (a java.io.FileInputStream)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
>   - locked <0xe0f0ed90> (a java.io.FileInputStream)
>   at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
>   at java.lang.Thread.run(Thread.java:748)
> ...
> "JLine terminal non blocking reader thread" #78 daemon prio=5 os_prio=0 
> tid=0x7f0470039000 nid=0x4369 runnable [0x7f0407ffe000]
>java.lang.Thread.State: RUNNABLE
>   at java.io.FileInputStream.readBytes(Native Method)
>   at java.io.FileInputStream.read(FileInputStream.java:255)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
>   - locked <0xe081c5f8> (a java.io.FileInputStream)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
>   - locked <0xe081c5f8> (a java.io.FileInputStream)
>   at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (KARAF-5184) ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed

2017-06-08 Thread Grzegorz Grzybek (JIRA)

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

Grzegorz Grzybek resolved KARAF-5184.
-
Resolution: Fixed

> ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed
> -
>
> Key: KARAF-5184
> URL: https://issues.apache.org/jira/browse/KARAF-5184
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
>Reporter: Grzegorz Grzybek
>Assignee: Grzegorz Grzybek
> Fix For: 4.2.0, 4.1.2
>
>
> I have this chain of references leading to old BundleRevision of 
> {{org.apache.karaf.shell.core}} bundle:
> {noformat}
> this - value: org.apache.felix.framework.BundleWiringImpl #14
>  <- m_wiring - class: 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, value: 
> org.apache.felix.framework.BundleWiringImpl #14
>   <-  - class: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader #11
><-  - class: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner class 
> JaasHelper$OsgiSubjectDomainCombiner
> <- combiner - class: java.security.AccessControlContext, value: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner #1
>  <- inheritedAccessControlContext (thread object) - class: 
> java.lang.Thread, value: java.security.AccessControlContext #60
> {noformat}
> Could be related to jline:
> {noformat}
> "JLine terminal non blocking reader thread" #145 daemon prio=5 os_prio=0 
> tid=0x7f046822c000 nid=0x43aa runnable [0x7f0474b35000]
>java.lang.Thread.State: RUNNABLE
>   at java.io.FileInputStream.readBytes(Native Method)
>   at java.io.FileInputStream.read(FileInputStream.java:255)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
>   - locked <0xe0f0ed90> (a java.io.FileInputStream)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
>   - locked <0xe0f0ed90> (a java.io.FileInputStream)
>   at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
>   at java.lang.Thread.run(Thread.java:748)
> ...
> "JLine terminal non blocking reader thread" #78 daemon prio=5 os_prio=0 
> tid=0x7f0470039000 nid=0x4369 runnable [0x7f0407ffe000]
>java.lang.Thread.State: RUNNABLE
>   at java.io.FileInputStream.readBytes(Native Method)
>   at java.io.FileInputStream.read(FileInputStream.java:255)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
>   - locked <0xe081c5f8> (a java.io.FileInputStream)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
>   - locked <0xe081c5f8> (a java.io.FileInputStream)
>   at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5184) ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5184:


Commit b6aff5d25580644290b77c9869b2e4c1a34cf1c5 in karaf's branch 
refs/heads/karaf-4.1.x from [~gzres]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=b6aff5d ]

[KARAF-5184] Make sure terminal is closed even if ConsoleSession didn't run yet 
(with DelayedStarted)

(cherry picked from commit a99b55a5d792809237a2220e57275cc1cfe05ee3)


> ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed
> -
>
> Key: KARAF-5184
> URL: https://issues.apache.org/jira/browse/KARAF-5184
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
>Reporter: Grzegorz Grzybek
>Assignee: Grzegorz Grzybek
> Fix For: 4.2.0, 4.1.2
>
>
> I have this chain of references leading to old BundleRevision of 
> {{org.apache.karaf.shell.core}} bundle:
> {noformat}
> this - value: org.apache.felix.framework.BundleWiringImpl #14
>  <- m_wiring - class: 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, value: 
> org.apache.felix.framework.BundleWiringImpl #14
>   <-  - class: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader #11
><-  - class: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner class 
> JaasHelper$OsgiSubjectDomainCombiner
> <- combiner - class: java.security.AccessControlContext, value: 
> org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner #1
>  <- inheritedAccessControlContext (thread object) - class: 
> java.lang.Thread, value: java.security.AccessControlContext #60
> {noformat}
> Could be related to jline:
> {noformat}
> "JLine terminal non blocking reader thread" #145 daemon prio=5 os_prio=0 
> tid=0x7f046822c000 nid=0x43aa runnable [0x7f0474b35000]
>java.lang.Thread.State: RUNNABLE
>   at java.io.FileInputStream.readBytes(Native Method)
>   at java.io.FileInputStream.read(FileInputStream.java:255)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
>   - locked <0xe0f0ed90> (a java.io.FileInputStream)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
>   - locked <0xe0f0ed90> (a java.io.FileInputStream)
>   at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
>   at java.lang.Thread.run(Thread.java:748)
> ...
> "JLine terminal non blocking reader thread" #78 daemon prio=5 os_prio=0 
> tid=0x7f0470039000 nid=0x4369 runnable [0x7f0407ffe000]
>java.lang.Thread.State: RUNNABLE
>   at java.io.FileInputStream.readBytes(Native Method)
>   at java.io.FileInputStream.read(FileInputStream.java:255)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
>   - locked <0xe081c5f8> (a java.io.FileInputStream)
>   at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
>   - locked <0xe081c5f8> (a java.io.FileInputStream)
>   at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5181) NPE while running "threads --tree" command from console

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5181:


Commit 673fc4c95d1cb7cdc99f835e479747c2e1b6a563 in karaf's branch 
refs/heads/karaf-4.1.x from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=673fc4c ]

[KARAF-5181] Prevent NPE in threads command


> NPE while running "threads --tree" command from console
> ---
>
> Key: KARAF-5181
> URL: https://issues.apache.org/jira/browse/KARAF-5181
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-shell
>Affects Versions: 4.1.1
> Environment:  cat /etc/system-release
> CentOS Linux release 7.3.1611 (Core) 
> java -version
> openjdk version "1.8.0_131"
> OpenJDK Runtime Environment (build 1.8.0_131-b12)
> OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
>Reporter: Richard Kosegi
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
> Fix For: 4.2.0, 4.1.2
>
>
> I just hit NPE while running {{threads --tree}} command from shell console.
> Consecutive invocation of same command didn't reproduce issue, so I think 
> there is probably race condition in threads command handler.
> {code}
> 2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil
> | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
> executing command
> java.lang.NullPointerException
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:?]
> at java.lang.Thread.run(Thread.java:748) [?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5181) NPE while running "threads --tree" command from console

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5181:


Commit 404f4149aff043347b0753443eb3d2ad72d4f519 in karaf's branch 
refs/heads/master from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=404f414 ]

[KARAF-5181] Prevent NPE in threads command


> NPE while running "threads --tree" command from console
> ---
>
> Key: KARAF-5181
> URL: https://issues.apache.org/jira/browse/KARAF-5181
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-shell
>Affects Versions: 4.1.1
> Environment:  cat /etc/system-release
> CentOS Linux release 7.3.1611 (Core) 
> java -version
> openjdk version "1.8.0_131"
> OpenJDK Runtime Environment (build 1.8.0_131-b12)
> OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
>Reporter: Richard Kosegi
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
> Fix For: 4.2.0, 4.1.2
>
>
> I just hit NPE while running {{threads --tree}} command from shell console.
> Consecutive invocation of same command didn't reproduce issue, so I think 
> there is probably race condition in threads command handler.
> {code}
> 2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil
> | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
> executing command
> java.lang.NullPointerException
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:?]
> at java.lang.Thread.run(Thread.java:748) [?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Work stopped] (KARAF-5181) NPE while running "threads --tree" command from console

2017-06-08 Thread JIRA

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

Work on KARAF-5181 stopped by Jean-Baptiste Onofré.
---
> NPE while running "threads --tree" command from console
> ---
>
> Key: KARAF-5181
> URL: https://issues.apache.org/jira/browse/KARAF-5181
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-shell
>Affects Versions: 4.1.1
> Environment:  cat /etc/system-release
> CentOS Linux release 7.3.1611 (Core) 
> java -version
> openjdk version "1.8.0_131"
> OpenJDK Runtime Environment (build 1.8.0_131-b12)
> OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
>Reporter: Richard Kosegi
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
> Fix For: 4.2.0, 4.1.2
>
>
> I just hit NPE while running {{threads --tree}} command from shell console.
> Consecutive invocation of same command didn't reproduce issue, so I think 
> there is probably race condition in threads command handler.
> {code}
> 2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil
> | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
> executing command
> java.lang.NullPointerException
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:?]
> at java.lang.Thread.run(Thread.java:748) [?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Work started] (KARAF-5181) NPE while running "threads --tree" command from console

2017-06-08 Thread JIRA

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

Work on KARAF-5181 started by Jean-Baptiste Onofré.
---
> NPE while running "threads --tree" command from console
> ---
>
> Key: KARAF-5181
> URL: https://issues.apache.org/jira/browse/KARAF-5181
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-shell
>Affects Versions: 4.1.1
> Environment:  cat /etc/system-release
> CentOS Linux release 7.3.1611 (Core) 
> java -version
> openjdk version "1.8.0_131"
> OpenJDK Runtime Environment (build 1.8.0_131-b12)
> OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
>Reporter: Richard Kosegi
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
> Fix For: 4.2.0, 4.1.2
>
>
> I just hit NPE while running {{threads --tree}} command from shell console.
> Consecutive invocation of same command didn't reproduce issue, so I think 
> there is probably race condition in threads command handler.
> {code}
> 2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil
> | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
> executing command
> java.lang.NullPointerException
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:?]
> at java.lang.Thread.run(Thread.java:748) [?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5181) NPE while running "threads --tree" command from console

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré updated KARAF-5181:

Description: 
I just hit NPE while running {{threads --tree}} command from shell console.
Consecutive invocation of same command didn't reproduce issue, so I think there 
is probably race condition in threads command handler.

{code}
2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil  
  | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
executing command
java.lang.NullPointerException
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
 [234:org.apache.karaf.shell.core:4.1.1]
at 
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
 [234:org.apache.karaf.shell.core:4.1.1]
at 
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
 [234:org.apache.karaf.shell.core:4.1.1]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
[234:org.apache.karaf.shell.core:4.1.1]
at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
[234:org.apache.karaf.shell.core:4.1.1]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
[234:org.apache.karaf.shell.core:4.1.1]
at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
[234:org.apache.karaf.shell.core:4.1.1]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
[234:org.apache.karaf.shell.core:4.1.1]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
[234:org.apache.karaf.shell.core:4.1.1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[?:?]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
{code}

  was:
I just hit NPE while running "threads --tree" command from shell console.
Consecutive invocation of same command didn't reproduce issue, so I think there 
is probably race condition in threads command handler.

2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil  
  | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
executing command
java.lang.NullPointerException
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
 [232:org.apache.karaf.shell.commands:4.1.1]
at 
org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
 [234:org.apache.karaf.shell.core:4.1.1]
at 
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
 [234:org.apache.karaf.shell.core:4.1.1]
at 
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
 [234:org.apache.karaf.shell.core:4.1.1]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
[234:org.apache.karaf.shell.core:4.1.1]
at 

[jira] [Assigned] (KARAF-5181) NPE while running "threads --tree" command from console

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré reassigned KARAF-5181:
---

Assignee: Jean-Baptiste Onofré

> NPE while running "threads --tree" command from console
> ---
>
> Key: KARAF-5181
> URL: https://issues.apache.org/jira/browse/KARAF-5181
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-shell
>Affects Versions: 4.1.1
> Environment:  cat /etc/system-release
> CentOS Linux release 7.3.1611 (Core) 
> java -version
> openjdk version "1.8.0_131"
> OpenJDK Runtime Environment (build 1.8.0_131-b12)
> OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
>Reporter: Richard Kosegi
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
> Fix For: 4.2.0, 4.1.2
>
>
> I just hit NPE while running "threads --tree" command from shell console.
> Consecutive invocation of same command didn't reproduce issue, so I think 
> there is probably race condition in threads command handler.
> 2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil
> | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
> executing command
> java.lang.NullPointerException
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:?]
> at java.lang.Thread.run(Thread.java:748) [?:?]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré resolved KARAF-5182.
-
Resolution: Fixed

> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> {code}
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5181) NPE while running "threads --tree" command from console

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré updated KARAF-5181:

Fix Version/s: 4.1.2
   4.2.0

> NPE while running "threads --tree" command from console
> ---
>
> Key: KARAF-5181
> URL: https://issues.apache.org/jira/browse/KARAF-5181
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-shell
>Affects Versions: 4.1.1
> Environment:  cat /etc/system-release
> CentOS Linux release 7.3.1611 (Core) 
> java -version
> openjdk version "1.8.0_131"
> OpenJDK Runtime Environment (build 1.8.0_131-b12)
> OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
>Reporter: Richard Kosegi
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
> Fix For: 4.2.0, 4.1.2
>
>
> I just hit NPE while running "threads --tree" command from shell console.
> Consecutive invocation of same command didn't reproduce issue, so I think 
> there is probably race condition in threads command handler.
> 2017-06-06 22:16:45,959 | ERROR | nsole user karaf | ShellUtil
> | 234 - org.apache.karaf.shell.core - 4.1.1 | Exception caught while 
> executing command
> java.lang.NullPointerException
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadData.isInteresting(ThreadsAction.java:242)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:180)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.printTree(ThreadsAction.java:177)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction$ThreadGroupData.print(ThreadsAction.java:167)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.commands.impl.ThreadsAction.execute(ThreadsAction.java:119)
>  [232:org.apache.karaf.shell.commands:4.1.1]
> at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [234:org.apache.karaf.shell.core:4.1.1]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:?]
> at java.lang.Thread.run(Thread.java:748) [?:?]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5182:


Commit 4aae558c08f1b5f022eb399a22f9ff94f75ffd14 in karaf's branch 
refs/heads/karaf-4.1.x from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=4aae558 ]

[KARAF-5182] Ignore case for the ALL keyword


> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> {code}
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5182:


Commit 52da062c5e9f4c7f91393d5c69580dd8eb3e4de4 in karaf's branch 
refs/heads/master from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=52da062 ]

[KARAF-5182] Ignore case for the ALL keyword


> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> {code}
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5182:


Commit 0ab38e76615978546a3bba239fd379a9944c396a in karaf's branch 
refs/heads/karaf-4.1.x from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=0ab38e7 ]

[KARAF-5182] Handle ALL keyword in log:get command


> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> {code}
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on KARAF-5182:


Commit 96d1a40d790d939f2738be189b10cf06d9becc7a in karaf's branch 
refs/heads/master from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=96d1a40 ]

[KARAF-5182] Handle ALL keyword in log:get command


> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> {code}
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Comment Edited] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck edited comment on KARAF-5186 at 6/8/17 12:40 PM:


this one is causing issues: 

{code}
log = (GridLoggerProxy)cfg.getGridLogger().getLogger(
getClass().getName() + (igniteInstanceName != null ? '%' + igniteInstanceName : 
""));
{code}

https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java#L776

so in the worst case it's both 


was (Author: achim_nierbeck):
this one is causing issues: 

{code}
log = (GridLoggerProxy)cfg.getGridLogger().getLogger(
getClass().getName() + (igniteInstanceName != null ? '%' + igniteInstanceName : 
""));
{code}

https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java#L776

> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Jean-Baptiste Onofré
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread JIRA

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

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

I reproduce the problem on master as well. Fixing.

> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> {code}
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck commented on KARAF-5186:
---

this one is causing issues: 

{code}
log = (GridLoggerProxy)cfg.getGridLogger().getLogger(
getClass().getName() + (igniteInstanceName != null ? '%' + igniteInstanceName : 
""));
{code}

https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java#L776

> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Jean-Baptiste Onofré
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré updated KARAF-5182:

Fix Version/s: 4.1.2
   4.2.0

> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> 
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré updated KARAF-5182:

Description: 
should list all the log levels, but now:

{code}
admin@NextGate ()> log:list
null
admin@NextGate ()> log:list --help
null
admin@NextGate ()>
{code}

  was:
should list all the log levels, but now:


admin@NextGate ()> log:list
null
admin@NextGate ()> log:list --help
null
admin@NextGate ()>



> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> {code}
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Work started] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread JIRA

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

Work on KARAF-5182 started by Jean-Baptiste Onofré.
---
> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> 
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Assigned] (KARAF-5182) Console command log:list returns "null"

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré reassigned KARAF-5182:
---

Assignee: Jean-Baptiste Onofré

> Console command log:list returns "null"
> ---
>
> Key: KARAF-5182
> URL: https://issues.apache.org/jira/browse/KARAF-5182
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows
>Reporter: Peter Berkman
>Assignee: Jean-Baptiste Onofré
>Priority: Minor
>  Labels: 4.x, console, logging
> Fix For: 4.2.0, 4.1.2
>
>
> should list all the log levels, but now:
> 
> admin@NextGate ()> log:list
> null
> admin@NextGate ()> log:list --help
> null
> admin@NextGate ()>
> 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Assigned] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré reassigned KARAF-5186:
---

Assignee: Jean-Baptiste Onofré

> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Jean-Baptiste Onofré
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread JIRA

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

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

You mean in the topic name ? or the event message ? (or both ;))

> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Jean-Baptiste Onofré
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread JIRA

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

Jean-Baptiste Onofré updated KARAF-5186:

Fix Version/s: decanter-1.4.0

> [DECANTER] - Fails work in case the event topic contains arbitrary characters 
> like %
> 
>
> Key: KARAF-5186
> URL: https://issues.apache.org/jira/browse/KARAF-5186
> Project: Karaf
>  Issue Type: Bug
>  Components: decanter
>Affects Versions: decanter-1.3.0
>Reporter: Achim Nierbeck
>Assignee: Jean-Baptiste Onofré
> Fix For: decanter-1.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (KARAF-5186) [DECANTER] - Fails work in case the event topic contains arbitrary characters like %

2017-06-08 Thread Achim Nierbeck (JIRA)
Achim Nierbeck created KARAF-5186:
-

 Summary: [DECANTER] - Fails work in case the event topic contains 
arbitrary characters like %
 Key: KARAF-5186
 URL: https://issues.apache.org/jira/browse/KARAF-5186
 Project: Karaf
  Issue Type: Bug
  Components: decanter
Affects Versions: decanter-1.3.0
Reporter: Achim Nierbeck






--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (KARAF-5185) Karaf enterprise feature shall omit the jpa feature in favor of the aries jpa feature

2017-06-08 Thread Achim Nierbeck (JIRA)
Achim Nierbeck created KARAF-5185:
-

 Summary: Karaf enterprise feature shall omit the jpa feature in 
favor of the aries jpa feature
 Key: KARAF-5185
 URL: https://issues.apache.org/jira/browse/KARAF-5185
 Project: Karaf
  Issue Type: Improvement
  Components: karaf-feature
Affects Versions: 4.1.1
Reporter: Achim Nierbeck


If one installs next to the karaf enterprise feature also the aries jpa feature 
there are two features defined with the same name and verison jpa/2.6.0
Instead of containing almost the same feature in the karaf enterprise feature 
it would be best to omit it there and rather reference the aries feature 
definition. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5174) Uninstalling feature using liquibase-slf4j crashes karaf

2017-06-08 Thread Steinar Bang (JIRA)

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

Steinar Bang updated KARAF-5174:

Description: 
To reproduce:
# clone this project and build it with maven:
{noformat}
mkdir -p ~/git
cd ~/git
git clone https://github.com/steinarb/liquibase-karaf-feature/
cd liquibase-karaf-feature
mvn clean install
{noformat}
# start karaf and give the following commands to the karaf console:
{noformat}
feature:repo-add mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
feature:install liquibase-core
{noformat}
# uninstall the feature
{noformat}
feature:uninstall liquibase-core
{noformat}

Karaf will now output the following and hang:
{noformat}
karaf@root()> feature:install liquibase-core
karaf@root()> feature:uninstall liquibase-core
karaf@root()>
java.lang.IllegalStateException: No inital startlevel yet
at 
org.apache.felix.framework.FrameworkStartLevelImpl.setStartLevel(FrameworkStartLevelImpl.java:131)
at org.apache.karaf.main.Main.setStartLevel(Main.java:605)
at 
org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:711)
at org.apache.karaf.main.Main.doMonitor(Main.java:382)
at org.apache.karaf.main.Main.access$100(Main.java:75)
at org.apache.karaf.main.Main$3.run(Main.java:369)
{noformat}

On karaf 4.0.7 the crash on uninstall doesn't happen.

If the liquibase-slf4j fragment bundle is removed from the liquibase-core 
feature, the crash on uninstall doesn't happen.


  was:
To reproduce:
# clone this project and build it with maven:
{noformat}
mkdir -p ~/git
cd ~/git
git clone https://github.com/steinarb/liquibase-karaf-feature/
cd liquibase-karaf-feature
mvn clean install
{noformat}
# start karaf and give the following commands to the karaf console:
{noformat}
feature:repo-add mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
feature:install liquibase-core
{noformat}
# uninstall the feature
{noformat}
feature:uninstall liquibase-core
{noformat}

Karaf will no output the following and hang:
{noformat}
karaf@root()> feature:install liquibase-core
karaf@root()> feature:uninstall liquibase-core
karaf@root()>
java.lang.IllegalStateException: No inital startlevel yet
at 
org.apache.felix.framework.FrameworkStartLevelImpl.setStartLevel(FrameworkStartLevelImpl.java:131)
at org.apache.karaf.main.Main.setStartLevel(Main.java:605)
at 
org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:711)
at org.apache.karaf.main.Main.doMonitor(Main.java:382)
at org.apache.karaf.main.Main.access$100(Main.java:75)
at org.apache.karaf.main.Main$3.run(Main.java:369)
{noformat}

On karaf 4.0.7 the crash on uninstall doesn't happen.

If the liquibase-slf4j fragment bundle is removed from the liquibase-core 
feature, the crash on uninstall doesn't happen.



> Uninstalling feature using liquibase-slf4j crashes karaf
> 
>
> Key: KARAF-5174
> URL: https://issues.apache.org/jira/browse/KARAF-5174
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Java 1.8 64 bit, windows 7 64bit, debian "jessie" 
> GNU/linux 64bit
>Reporter: Steinar Bang
>
> To reproduce:
> # clone this project and build it with maven:
> {noformat}
> mkdir -p ~/git
> cd ~/git
> git clone https://github.com/steinarb/liquibase-karaf-feature/
> cd liquibase-karaf-feature
> mvn clean install
> {noformat}
> # start karaf and give the following commands to the karaf console:
> {noformat}
> feature:repo-add 
> mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
> feature:install liquibase-core
> {noformat}
> # uninstall the feature
> {noformat}
> feature:uninstall liquibase-core
> {noformat}
> Karaf will now output the following and hang:
> {noformat}
> karaf@root()> feature:install liquibase-core
> karaf@root()> feature:uninstall liquibase-core
> karaf@root()>
> java.lang.IllegalStateException: No inital startlevel yet
> at 
> org.apache.felix.framework.FrameworkStartLevelImpl.setStartLevel(FrameworkStartLevelImpl.java:131)
> at org.apache.karaf.main.Main.setStartLevel(Main.java:605)
> at 
> org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:711)
> at org.apache.karaf.main.Main.doMonitor(Main.java:382)
> at org.apache.karaf.main.Main.access$100(Main.java:75)
> at org.apache.karaf.main.Main$3.run(Main.java:369)
> {noformat}
> On karaf 4.0.7 the crash on uninstall doesn't happen.
> If the liquibase-slf4j fragment bundle is removed from the liquibase-core 
> feature, the crash on uninstall doesn't happen.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5184) ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed

2017-06-08 Thread Grzegorz Grzybek (JIRA)

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

Grzegorz Grzybek updated KARAF-5184:

Description: 
I have this chain of references leading to old BundleRevision of 
{{org.apache.karaf.shell.core}} bundle:
{noformat}
this - value: org.apache.felix.framework.BundleWiringImpl #14
 <- m_wiring - class: 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, value: 
org.apache.felix.framework.BundleWiringImpl #14
  <-  - class: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader #11
   <-  - class: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner class 
JaasHelper$OsgiSubjectDomainCombiner
<- combiner - class: java.security.AccessControlContext, value: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner #1
 <- inheritedAccessControlContext (thread object) - class: 
java.lang.Thread, value: java.security.AccessControlContext #60
{noformat}

Could be related to jline:
{noformat}
"JLine terminal non blocking reader thread" #145 daemon prio=5 os_prio=0 
tid=0x7f046822c000 nid=0x43aa runnable [0x7f0474b35000]
   java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
- locked <0xe0f0ed90> (a java.io.FileInputStream)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
- locked <0xe0f0ed90> (a java.io.FileInputStream)
at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
at java.lang.Thread.run(Thread.java:748)
...
"JLine terminal non blocking reader thread" #78 daemon prio=5 os_prio=0 
tid=0x7f0470039000 nid=0x4369 runnable [0x7f0407ffe000]
   java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
- locked <0xe081c5f8> (a java.io.FileInputStream)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
- locked <0xe081c5f8> (a java.io.FileInputStream)
at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
at java.lang.Thread.run(Thread.java:748)
{noformat}


  was:
I have this chain of references leading to old BundleRevision of 
{{org.apache.karaf.shell.core}} bundle:
{noformat}
this - value: org.apache.felix.framework.BundleWiringImpl #14
 <- m_wiring - class: 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, value: 
org.apache.felix.framework.BundleWiringImpl #14
  <-  - class: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader #11
   <-  - class: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner class 
JaasHelper$OsgiSubjectDomainCombiner
<- combiner - class: java.security.AccessControlContext, value: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner #1
 <- inheritedAccessControlContext (thread object) - class: 
java.lang.Thread, value: java.security.AccessControlContext #60
{noformat}

Could be related to jline:
{noformat}
"JLine terminal non blocking reader thread" #145 daemon prio=5 os_prio=0 
tid=0x7f046822c000 nid=0x43aa runnable [0x7f0474b35000]
   java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
- locked <0xe0f0ed90> (a java.io.FileInputStream)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
- locked <0xe0f0ed90> (a java.io.FileInputStream)
at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
at java.lang.Thread.run(Thread.java:748)
...
"JLine terminal non blocking reader thread" #78 daemon prio=5 os_prio=0 
tid=0x7f0470039000 nid=0x4369 runnable [0x7f0407ffe000]
   java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
- locked <0xe081c5f8> (a java.io.FileInputStream)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
- locked <0xe081c5f8> (a 

[jira] [Created] (KARAF-5184) ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed

2017-06-08 Thread Grzegorz Grzybek (JIRA)
Grzegorz Grzybek created KARAF-5184:
---

 Summary: ClassLoader leak when org.apache.karaf.shell.core bundle 
is refreshed
 Key: KARAF-5184
 URL: https://issues.apache.org/jira/browse/KARAF-5184
 Project: Karaf
  Issue Type: Bug
Affects Versions: 4.1.1
Reporter: Grzegorz Grzybek
Assignee: Grzegorz Grzybek
 Fix For: 4.2.0, 4.1.2


I have this chain of references leading to old BundleRevision of 
{{org.apache.karaf.shell.core}} bundle:
{noformat}
this - value: org.apache.felix.framework.BundleWiringImpl #14
 <- m_wiring - class: 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, value: 
org.apache.felix.framework.BundleWiringImpl #14
  <-  - class: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader #11
   <-  - class: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner class 
JaasHelper$OsgiSubjectDomainCombiner
<- combiner - class: java.security.AccessControlContext, value: 
org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner #1
 <- inheritedAccessControlContext (thread object) - class: 
java.lang.Thread, value: java.security.AccessControlContext #60
{noformat}

Could be related to jline:
{noformat}
"JLine terminal non blocking reader thread" #145 daemon prio=5 os_prio=0 
tid=0x7f046822c000 nid=0x43aa runnable [0x7f0474b35000]
   java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
- locked <0xe0f0ed90> (a java.io.FileInputStream)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
- locked <0xe0f0ed90> (a java.io.FileInputStream)
at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
at java.lang.Thread.run(Thread.java:748)
...
"JLine terminal non blocking reader thread" #78 daemon prio=5 os_prio=0 
tid=0x7f0470039000 nid=0x4369 runnable [0x7f0407ffe000]
   java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
- locked <0xe081c5f8> (a java.io.FileInputStream)
at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
- locked <0xe081c5f8> (a java.io.FileInputStream)
at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
at java.lang.Thread.run(Thread.java:748)

   Locked ownable synchronizers:
- None
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5183) Sudo credentials do not propagate correctly

2017-06-08 Thread Guillaume Nodet (JIRA)

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

Guillaume Nodet updated KARAF-5183:
---
Fix Version/s: 4.2.0

> Sudo credentials do not propagate correctly
> ---
>
> Key: KARAF-5183
> URL: https://issues.apache.org/jira/browse/KARAF-5183
> Project: Karaf
>  Issue Type: Bug
>Reporter: Guillaume Nodet
>Assignee: Guillaume Nodet
> Fix For: 4.2.0, 4.1.2
>
>
> {code}
> karaf@root()> sudo --user root whoami --no-format
> Password: 
>   
> 
> karaf
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (KARAF-5183) Sudo credentials do not propagate correctly

2017-06-08 Thread Guillaume Nodet (JIRA)

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

Guillaume Nodet updated KARAF-5183:
---
Fix Version/s: 4.1.2

> Sudo credentials do not propagate correctly
> ---
>
> Key: KARAF-5183
> URL: https://issues.apache.org/jira/browse/KARAF-5183
> Project: Karaf
>  Issue Type: Bug
>Reporter: Guillaume Nodet
>Assignee: Guillaume Nodet
> Fix For: 4.2.0, 4.1.2
>
>
> {code}
> karaf@root()> sudo --user root whoami --no-format
> Password: 
>   
> 
> karaf
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (KARAF-5183) Sudo credentials do not propagate correctly

2017-06-08 Thread Guillaume Nodet (JIRA)
Guillaume Nodet created KARAF-5183:
--

 Summary: Sudo credentials do not propagate correctly
 Key: KARAF-5183
 URL: https://issues.apache.org/jira/browse/KARAF-5183
 Project: Karaf
  Issue Type: Bug
Reporter: Guillaume Nodet
Assignee: Guillaume Nodet


{code}
karaf@root()> sudo --user root whoami --no-format
Password:   


karaf
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (KARAF-3270) Add command/MBean operation to give current user and his roles

2017-06-08 Thread Guillaume Nodet (JIRA)

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

Guillaume Nodet resolved KARAF-3270.

   Resolution: Fixed
 Assignee: Guillaume Nodet
Fix Version/s: 4.2.0

> Add command/MBean operation to give current user and his roles
> --
>
> Key: KARAF-3270
> URL: https://issues.apache.org/jira/browse/KARAF-3270
> Project: Karaf
>  Issue Type: New Feature
>  Components: karaf-shell
>Reporter: Jean-Baptiste Onofré
>Assignee: Guillaume Nodet
> Fix For: 4.2.0
>
>
> When logged on with an user (on the local console, ssh, MBean), it would be 
> great to get the current username (even if we have in the prompt and in the 
> console session), but also with current user roles.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)