[jira] Created: (OFBIZ-1065) NullPointerException during startup

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1065) NullPointerException during startup

Nicolas Malin (Jira)
NullPointerException during startup
-----------------------------------

                 Key: OFBIZ-1065
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1065
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Oleg Andreyev
            Priority: Minor


Since rev.541008 log4j AsyncAppender trow a NullPointerException during OFBiz startup.

Exception in thread "Dispatcher-Thread-1" java.lang.NullPointerException
        at java.lang.String.lastIndexOf(String.java:1654)
        at java.lang.String.lastIndexOf(String.java:1636)
        at org.apache.log4j.spi.LocationInfo.<init>(LocationInfo.java:119)
        at org.apache.log4j.spi.LoggingEvent.getLocationInformation(LoggingEvent
.java:191)
        at org.apache.log4j.helpers.PatternParser$LocationPatternConverter.conve
rt(PatternParser.java:483)
        at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.jav
a:64)
        at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
        at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
        at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.ja
va:236)
        at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)

        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders
(AppenderAttachableImpl.java:65)
        at org.apache.log4j.AsyncAppender$Dispatcher.run(AsyncAppender.java:578)

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

Solutions are:
1. Remove tag <param name="blocking" value="false"/> from async appender section or make it value true. This reverts logging to sync mode.
2. Migrate to log4j 1.12.15 (http://issues.apache.org/bugzilla/show_bug.cgi?id=41186)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1065) NullPointerException during startup

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501729 ]

David E. Jones commented on OFBIZ-1065:
---------------------------------------

Andrew Zeneski can comment more on this as he researched this and made the change.

It is important though that blocking is false because otherwise there were deadlocks in high volume logging with multiple threads (as is the norm for OFBiz).

> NullPointerException during startup
> -----------------------------------
>
>                 Key: OFBIZ-1065
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1065
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Oleg Andreyev
>            Priority: Minor
>
> Since rev.541008 log4j AsyncAppender trow a NullPointerException during OFBiz startup.
> Exception in thread "Dispatcher-Thread-1" java.lang.NullPointerException
>         at java.lang.String.lastIndexOf(String.java:1654)
>         at java.lang.String.lastIndexOf(String.java:1636)
>         at org.apache.log4j.spi.LocationInfo.<init>(LocationInfo.java:119)
>         at org.apache.log4j.spi.LoggingEvent.getLocationInformation(LoggingEvent
> .java:191)
>         at org.apache.log4j.helpers.PatternParser$LocationPatternConverter.conve
> rt(PatternParser.java:483)
>         at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.jav
> a:64)
>         at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
>         at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
>         at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.ja
> va:236)
>         at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
>         at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
>         at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders
> (AppenderAttachableImpl.java:65)
>         at org.apache.log4j.AsyncAppender$Dispatcher.run(AsyncAppender.java:578)
>         at java.lang.Thread.run(Thread.java:595)
> Solutions are:
> 1. Remove tag <param name="blocking" value="false"/> from async appender section or make it value true. This reverts logging to sync mode.
> 2. Migrate to log4j 1.12.15 (http://issues.apache.org/bugzilla/show_bug.cgi?id=41186)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1065) NullPointerException during startup

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux closed OFBIZ-1065.
----------------------------------

    Resolution: Fixed
      Assignee: Jacopo Cappellato

This has been fixed by Revision 575675 http://svn.apache.org/viewvc?rev=575675&view=rev 

> NullPointerException during startup
> -----------------------------------
>
>                 Key: OFBIZ-1065
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1065
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Oleg Andreyev
>            Assignee: Jacopo Cappellato
>            Priority: Minor
>
> Since rev.541008 log4j AsyncAppender trow a NullPointerException during OFBiz startup.
> Exception in thread "Dispatcher-Thread-1" java.lang.NullPointerException
>         at java.lang.String.lastIndexOf(String.java:1654)
>         at java.lang.String.lastIndexOf(String.java:1636)
>         at org.apache.log4j.spi.LocationInfo.<init>(LocationInfo.java:119)
>         at org.apache.log4j.spi.LoggingEvent.getLocationInformation(LoggingEvent
> .java:191)
>         at org.apache.log4j.helpers.PatternParser$LocationPatternConverter.conve
> rt(PatternParser.java:483)
>         at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.jav
> a:64)
>         at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
>         at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
>         at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.ja
> va:236)
>         at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
>         at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
>         at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders
> (AppenderAttachableImpl.java:65)
>         at org.apache.log4j.AsyncAppender$Dispatcher.run(AsyncAppender.java:578)
>         at java.lang.Thread.run(Thread.java:595)
> Solutions are:
> 1. Remove tag <param name="blocking" value="false"/> from async appender section or make it value true. This reverts logging to sync mode.
> 2. Migrate to log4j 1.12.15 (http://issues.apache.org/bugzilla/show_bug.cgi?id=41186)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.