This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207341 - Invalid date format
Summary: Invalid date format
Status: RESOLVED WORKSFORME
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Jira (show other bugs)
Version: 7.1
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 11:40 UTC by pns
Modified: 2012-04-10 22:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JIRA invalid date format exception window (22.96 KB, image/png)
2012-01-16 11:40 UTC, pns
Details
JIRA invalid date format exception log for version 7.1.1 (9.74 KB, text/plain)
2012-04-05 17:42 UTC, pns
Details
JIRA invalid date format exception log for version 201204050400 (6.00 KB, text/plain)
2012-04-05 17:42 UTC, pns
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pns 2012-01-16 11:40:29 UTC
Created attachment 114929 [details]
JIRA invalid date format exception window

Since upgrading to Netbeans 7.1 I've been getting an invalid date format exception (see attachement) every time I do an svn commit associated with JIRA issue.

On the same computer, using the same JIRA repo, the exact same settings, Netbeans 7.0.1 works perfectly!

I don't know if this is the same bug as this: http://netbeans.org/bugzilla/show_bug.cgi?id=178677 resurfaced... I tried applying what they said on the thread to no avail.
Comment 1 Tomas Stupka 2012-03-19 16:35:59 UTC
hm, i'm not aware of any changes between 7.0.1 and 7.1 that could case the described problem. 
could you please check if your 7.1 and 7.0.1 have the same locale set? 
main menu > view > IDE Log and serach for "System Locale"

thanks
Comment 2 pns 2012-03-19 16:57:29 UTC
I'll have to reinstall 7.0.1 (I've unistalled it after 7.1) but I never changed the Locale so I assume it had my windows default (which is en_GB).

Right now 7.1 shows the Locale as "en_GB (nb); Cp1252"

As soon as I can I'll reinstall 7.0.1 and report back.
Comment 3 pns 2012-03-19 21:51:20 UTC
Ok just finished reinstalling 7.0.1. I performed all updates listed for 7.0.1 and installed the JIRA plugin.

Just as I expected 7.0.1 lists the exact same Locale as 7.1, i.e. "System Locale; Encoding = en_GB (nb); Cp1252"

Just to make sure I tried commiting a change to the SVN with an associated JIRA issue (in 7.0.1) and it worked just fine!

However in 7.1 whenever I try to modify an issue I get the invalid date format message.

I don't know if it helps but the JIRA modules are:

7.0.1 - org.netbeans.modules.jira [1.1.3 201107282000]

7.1.1 - org.netbeans.modules.jira [1.2.1 201112071828]

I can't see any error message on the IDE Log associated with the 7.1 error message but if you need some kind of detailed logtrace just tell me how I can provide it and I'll gladly do so!
Comment 4 Tomas Stupka 2012-04-05 16:37:19 UTC
hm, we upgraded the connector libraries in 7.1, but nobody else seems to have similar problems. 

> Since upgrading to Netbeans 7.1 I've been getting an invalid date format exception 
> (see attachement) every time I do an svn commit associated with JIRA issue.
do other jira actions (e.g. adding a comment) work for you? 

run netbeans with the switch -J-Dorg.netbeans.modules.jira.Jira.level=-1, reproduce the issue and attach your messages log, maybe we will see more in it. To know your jira server version would be also of use.

could you, please, also try to reporduce with a current dev build?

thanks
Comment 5 pns 2012-04-05 17:42:00 UTC
Created attachment 117901 [details]
JIRA invalid date format exception log for version 7.1.1
Comment 6 pns 2012-04-05 17:42:43 UTC
Created attachment 117902 [details]
JIRA invalid date format exception log for version 201204050400
Comment 7 pns 2012-04-05 17:43:01 UTC
Thanks for taking the time to look at this Thomas! 

Just tried the current dev version (201204050400) and the same thing happens (check the detailed logs attached)

Regarding when the problem occurs, basically any action the involves submitting anyting (coments, issue details, etc.) causes the exception (the 7.1.1 has the log for when I tried to add a comment too)

Btw the JIRA version is v4.4.4#664-r167664

Let me know if there is anything else I can help!

Cheers,
Comment 8 Tomas Stupka 2012-04-10 13:52:56 UTC
one more try:

please run netbeans with the switch 
-J-Dorg.netbeans.modules.jira.datePattern="{value}"
and 
-J-Dorg.netbeans.modules.jira.dateTimePattern="{value}"
where value should be appropriately derived from yyy/MM/dd. Note that we pass those values to the jira client, so maybe you could play with it a bit - in case it doesn't work with the first shot.

thanks
Comment 9 pns 2012-04-10 20:43:59 UTC
Success! :-)

Adding those two settings worked! Thanks Tomas!


Cheers
Comment 10 Tomas Stupka 2012-04-10 22:07:23 UTC
we should provide UI for those settings - covered in issue #183914