You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2008/04/24 15:35:28 UTC
[jira] Commented: (LANG-429) NullPointerException (NPE) in
FastDateFormat.getInstance(FastDateFormat.java:211)
[ https://issues.apache.org/jira/browse/LANG-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592053#action_12592053 ]
Sebb commented on LANG-429:
---------------------------
I think it's possible because the cInstanceCache field is not final - see LANG-367.
Updating to version 2.4 should fix the problem.
> 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.