« Return to Thread: [jira] Created: (LANG-429) NullPointerException (NPE) in FastDateFormat.getInstance(FastDateFormat.java:211)

[jira] Commented: (LANG-429) NullPointerException (NPE) in FastDateFormat.getInstance(FastDateFormat.java:211)

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View in Thread


    [ https://issues.apache.org/jira/browse/LANG-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592064#action_12592064 ]

Julien Aymé commented on LANG-429:
----------------------------------

Ugh, my comment came in late :-), this issue is indeed the same as LANG-37.

> NullPointerException (NPE) in FastDateFormat.getInstance(FastDateFormat.java:211)
> ---------------------------------------------------------------------------------
>
>                 Key: LANG-429
>                 URL: https://issues.apache.org/jira/browse/LANG-429
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: MS Windows XP (SP 2), Java 1.5.0 Update 11
>            Reporter: Kai Burjack
>
> Sometimes (sadly this is not reproducible) the following method call results in a NullPointerException (NPE):
> Stacktrace:
> java.lang.NullPointerException
>         at org.apache.commons.lang.time.FastDateFormat.getInstance(FastDateFormat.java:211)
>         at org.apache.commons.lang.time.DateFormatUtils.format(DateFormatUtils.java:258)
>         at org.apache.commons.lang.time.DateFormatUtils.format(DateFormatUtils.java:232)
> I don't know how this is actually possible, since the exception is being raised when accessing a static field 'cInstanceCache' that will be implicitly initialized...
> Could this have something to do with class gc?

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

 « Return to Thread: [jira] Created: (LANG-429) NullPointerException (NPE) in FastDateFormat.getInstance(FastDateFormat.java:211)

LightInTheBox - Buy quality products at wholesale price