Re: NPE while running "log:tail" from Karaf console

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NPE while running "log:tail" from Karaf console

Guillaume Nodet-2
Could you raise a JIRA issue, that should be an easy fix.

2017-03-07 10:57 GMT+01:00 Richard Kosegi <[hidden email]>:

> Hi Karaf folks,
>
> I'm experiencing occasional NPE while running "log:tail" in Karaf console.
>
> Karaf version : 4.1.0
>
> Exception in thread "pool-51-thread-1" java.lang.NullPointerException
>     at
> org.apache.karaf.log.core.internal.layout.PatternParser$
> MDCPatternConverter.convert(PatternParser.java:551)
>     at
> org.apache.karaf.log.core.internal.layout.PatternConverter.format(
> PatternConverter.java:63)
>     at
> org.apache.karaf.log.core.internal.LogEventFormatterImpl.format(
> LogEventFormatterImpl.java:117)
>     at
> org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:121)
>     at
> org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:105)
>     at
> org.apache.karaf.log.command.LogTail$PrintEventThread.run(
> LogTail.java:113)
>     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:745)
>
>
> This occurs few times per day, it has no real impact other then tailing of
> log is stopped (and must be restarted by CTRL+C, log:tail)
>
> Google search didn;t yield anything related to this stacktrace.
> Does anyone experience similar problem?
>
> Thanks,
>
> Richard.
>



--
------------------------
Guillaume Nodet
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NPE while running "log:tail" from Karaf console

jbonofre
Hi,

thanks for the report, easy to fix. Can you create a Jira ?

Regards
JB

On 03/07/2017 10:57 AM, Richard Kosegi wrote:

> Hi Karaf folks,
>
> I'm experiencing occasional NPE while running "log:tail" in Karaf console.
>
> Karaf version : 4.1.0
>
> Exception in thread "pool-51-thread-1" java.lang.NullPointerException
>     at
> org.apache.karaf.log.core.internal.layout.PatternParser$MDCPatternConverter.convert(PatternParser.java:551)
>     at
> org.apache.karaf.log.core.internal.layout.PatternConverter.format(PatternConverter.java:63)
>     at
> org.apache.karaf.log.core.internal.LogEventFormatterImpl.format(LogEventFormatterImpl.java:117)
>     at
> org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:121)
>     at
> org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:105)
>     at
> org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:113)
>     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:745)
>
>
> This occurs few times per day, it has no real impact other then tailing of
> log is stopped (and must be restarted by CTRL+C, log:tail)
>
> Google search didn;t yield anything related to this stacktrace.
> Does anyone experience similar problem?
>
> Thanks,
>
> Richard.
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NPE while running "log:tail" from Karaf console

Richard Kosegi
Hi,

Jira created : https://issues.apache.org/jira/browse/KARAF-5016

Thanks,

Richard.

On Tue, Mar 7, 2017 at 11:46 AM, Jean-Baptiste Onofré <[hidden email]>
wrote:

> Hi,
>
> thanks for the report, easy to fix. Can you create a Jira ?
>
> Regards
> JB
>
>
> On 03/07/2017 10:57 AM, Richard Kosegi wrote:
>
>> Hi Karaf folks,
>>
>> I'm experiencing occasional NPE while running "log:tail" in Karaf console.
>>
>> Karaf version : 4.1.0
>>
>> Exception in thread "pool-51-thread-1" java.lang.NullPointerException
>>     at
>> org.apache.karaf.log.core.internal.layout.PatternParser$MDCP
>> atternConverter.convert(PatternParser.java:551)
>>     at
>> org.apache.karaf.log.core.internal.layout.PatternConverter.
>> format(PatternConverter.java:63)
>>     at
>> org.apache.karaf.log.core.internal.LogEventFormatterImpl.
>> format(LogEventFormatterImpl.java:117)
>>     at
>> org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:121)
>>     at
>> org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:105)
>>     at
>> org.apache.karaf.log.command.LogTail$PrintEventThread.run(Lo
>> gTail.java:113)
>>     at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:617)
>>     at java.lang.Thread.run(Thread.java:745)
>>
>>
>> This occurs few times per day, it has no real impact other then tailing of
>> log is stopped (and must be restarted by CTRL+C, log:tail)
>>
>> Google search didn;t yield anything related to this stacktrace.
>> Does anyone experience similar problem?
>>
>> Thanks,
>>
>> Richard.
>>
>>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NPE while running "log:tail" from Karaf console

jbonofre
Cool,

thanks.

Regards
JB

On 03/07/2017 11:56 AM, Richard Kosegi wrote:

> Hi,
>
> Jira created : https://issues.apache.org/jira/browse/KARAF-5016
>
> Thanks,
>
> Richard.
>
> On Tue, Mar 7, 2017 at 11:46 AM, Jean-Baptiste Onofré <[hidden email]>
> wrote:
>
>> Hi,
>>
>> thanks for the report, easy to fix. Can you create a Jira ?
>>
>> Regards
>> JB
>>
>>
>> On 03/07/2017 10:57 AM, Richard Kosegi wrote:
>>
>>> Hi Karaf folks,
>>>
>>> I'm experiencing occasional NPE while running "log:tail" in Karaf console.
>>>
>>> Karaf version : 4.1.0
>>>
>>> Exception in thread "pool-51-thread-1" java.lang.NullPointerException
>>>     at
>>> org.apache.karaf.log.core.internal.layout.PatternParser$MDCP
>>> atternConverter.convert(PatternParser.java:551)
>>>     at
>>> org.apache.karaf.log.core.internal.layout.PatternConverter.
>>> format(PatternConverter.java:63)
>>>     at
>>> org.apache.karaf.log.core.internal.LogEventFormatterImpl.
>>> format(LogEventFormatterImpl.java:117)
>>>     at
>>> org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:121)
>>>     at
>>> org.apache.karaf.log.command.DisplayLog.printEvent(DisplayLog.java:105)
>>>     at
>>> org.apache.karaf.log.command.LogTail$PrintEventThread.run(Lo
>>> gTail.java:113)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1142)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>> lExecutor.java:617)
>>>     at java.lang.Thread.run(Thread.java:745)
>>>
>>>
>>> This occurs few times per day, it has no real impact other then tailing of
>>> log is stopped (and must be restarted by CTRL+C, log:tail)
>>>
>>> Google search didn;t yield anything related to this stacktrace.
>>> Does anyone experience similar problem?
>>>
>>> Thanks,
>>>
>>> Richard.
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> [hidden email]
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Loading...