#227 Wrong locale, Unparseable date: "Jan 23, 1996"

closed-fixed
core (20)
5
2010-06-04
2010-04-24
Anonymous
No

In Eclipse locale. Steps:
- click right on eclipse editor.
- Find Bugs -> Find Bugs
I can see progress bar go to end, but error window is showed. See error traces below.
The error is caused to parsing a string to date. The format of the string depends on the locale and it fails if you do not have Locale.US.

java.lang.ExceptionInInitializerError
at edu.umd.cs.findbugs.cloud.CloudFactory.getPlainCloud(CloudFactory.java:111)
at edu.umd.cs.findbugs.cloud.CloudFactory.createCloudWithoutInitializing(CloudFactory.java:62)
at edu.umd.cs.findbugs.SortedBugCollection.getCloud(SortedBugCollection.java:135)
at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:281)
at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:266)
at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:247)
at de.tobject.findbugs.FindbugsPlugin.readBugCollectionAndProject(FindbugsPlugin.java:515)
at de.tobject.findbugs.FindbugsPlugin.getBugCollection(FindbugsPlugin.java:432)
at de.tobject.findbugs.builder.FindBugsWorker.updateBugCollection(FindBugsWorker.java:293)
at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:190)
at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:248)
at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:61)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.IllegalStateException: java.text.ParseException: Unparseable date: "Jan 23, 1996"
at edu.umd.cs.findbugs.cloud.AbstractCloud.<clinit>(AbstractCloud.java:84)
... 13 more
Caused by: java.text.ParseException: Unparseable date: "Jan 23, 1996"
at java.text.DateFormat.parse(DateFormat.java:337)
at edu.umd.cs.findbugs.cloud.AbstractCloud.<clinit>(AbstractCloud.java:82)
... 13 more

eclipse.buildId=I20100312-1448
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=es_ES
Command-line arguments: -os linux -ws gtk -arch x86

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-04-24

    Set the proper locale to parse the given date "Jan 23, 1996"
    竟然可以随便修改?

     
    Last edit: Anonymous 2015-04-17
  • Keith Lea

    Keith Lea - 2010-06-04

    oops! thanks, patch applied!

     
  • Keith Lea

    Keith Lea - 2010-06-04
    • assigned_to: nobody --> kano
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks