java.lang.IllegalArgumentException: Illegal pattern character 'Y'

Atlassian JIRA | Chai Ying Chan [Atlassian] | 9 years ago
  1. 0

    Steps to reproduce: 1. Download the attached CSV file and configuration file 2. Import into JIRA by using CSV Importer The invalid date format exception will be thrown in the first time when importing the data. {noformat} 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] IMPORTING STARTED (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] Importing with ImportBeanType: com.atlassian.jira.imports.csv.CsvDataBean (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] (0.0s) 2008-01-16 16:36:56,565 Thread-33 INFO [imports.importer.impl.ImportLogger] -------------------------- (0.0010s) 2008-01-16 16:36:56,565 Thread-33 INFO [imports.importer.impl.ImportLogger] Importing of Users started (0.0010s) 2008-01-16 16:36:56,565 Thread-33 INFO [imports.importer.impl.ImportLogger] Only new Users will be imported (0.0010s) 2008-01-16 16:36:56,565 Thread-33 INFO [imports.importer.impl.ImportLogger] FAILED: Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state (0.0010s) 2008-01-16 16:36:56,566 Thread-33 INFO [imports.importer.impl.ImportLogger] java.lang.IllegalArgumentException: Illegal pattern character 'Y' at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:678) at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:497) at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:446) at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:427) at com.atlassian.jira.imports.csv.PropertiesCsvMapper.init(PropertiesCsvMapper.java:50) at com.atlassian.jira.imports.csv.MindProdCsvProvider.startSession(MindProdCsvProvider.java:48) at com.atlassian.jira.imports.csv.CsvDataBean.populateCache(CsvDataBean.java:122) at com.atlassian.jira.imports.csv.CsvDataBean.refreshCache(CsvDataBean.java:105) at com.atlassian.jira.imports.csv.CsvDataBean.getUsers(CsvDataBean.java:251) at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.importUsers(DefaultJiraDataImporter.java:223) at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:94) at com.atlassian.jira.imports.importer.impl.ImporterThread.run(ImporterThread.java:21) (0.0020s) 2008-01-16 16:36:56,566 Thread-33 INFO [imports.importer.impl.ImportLogger] Flushing issue cache (0.0020s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] No issues need to be reindexed. (0.0090s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] (0.01s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.01s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] IMPORTING FINISHED (0.01s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.01s) {noformat} 3. Try to run the CSV Importer again with the same files (without making any changes to the date format). There is no invalid date format exception being thrown. {noformat} 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0s) 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] IMPORTING STARTED (0.0s) 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0s) 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] (0.0s) 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] Importing with ImportBeanType: com.atlassian.jira.imports.csv.CsvDataBean (0.0s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] -------------------------- (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] Importing of Users started (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] Only new Users will be imported (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] 0 users associated with import. (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] 0 users successfully imported. (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] Importing of Users finished (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] --------------------------- (0.0010s) 2008-01-16 16:37:20,983 Thread-36 INFO [imports.importer.impl.ImportLogger] Retrieving projects... (0.0020s) 2008-01-16 16:37:20,983 Thread-36 INFO [imports.importer.impl.ImportLogger] No projects were found to import (0.0020s) 2008-01-16 16:37:20,983 Thread-36 INFO [imports.importer.impl.ImportLogger] Flushing issue cache (0.0020s) 2008-01-16 16:37:20,986 Thread-36 INFO [imports.importer.impl.ImportLogger] No issues need to be reindexed. (0.0050s) 2008-01-16 16:37:20,986 Thread-36 INFO [imports.importer.impl.ImportLogger] (0.0050s) 2008-01-16 16:37:20,986 Thread-36 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0050s) 2008-01-16 16:37:20,986 Thread-36 INFO [imports.importer.impl.ImportLogger] IMPORTING FINISHED (0.0050s) 2008-01-16 16:37:20,987 Thread-36 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0060s) {noformat} This behavior is quite weird. The problem should be handled more consistently.

    Atlassian JIRA | 9 years ago | Chai Ying Chan [Atlassian]
    java.lang.IllegalArgumentException: Illegal pattern character 'Y'
  2. 0

    Steps to reproduce: 1. Download the attached CSV file and configuration file 2. Import into JIRA by using CSV Importer The invalid date format exception will be thrown in the first time when importing the data. {noformat} 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] IMPORTING STARTED (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] Importing with ImportBeanType: com.atlassian.jira.imports.csv.CsvDataBean (0.0s) 2008-01-16 16:36:56,564 Thread-33 INFO [imports.importer.impl.ImportLogger] (0.0s) 2008-01-16 16:36:56,565 Thread-33 INFO [imports.importer.impl.ImportLogger] -------------------------- (0.0010s) 2008-01-16 16:36:56,565 Thread-33 INFO [imports.importer.impl.ImportLogger] Importing of Users started (0.0010s) 2008-01-16 16:36:56,565 Thread-33 INFO [imports.importer.impl.ImportLogger] Only new Users will be imported (0.0010s) 2008-01-16 16:36:56,565 Thread-33 INFO [imports.importer.impl.ImportLogger] FAILED: Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state (0.0010s) 2008-01-16 16:36:56,566 Thread-33 INFO [imports.importer.impl.ImportLogger] java.lang.IllegalArgumentException: Illegal pattern character 'Y' at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:678) at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:497) at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:446) at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:427) at com.atlassian.jira.imports.csv.PropertiesCsvMapper.init(PropertiesCsvMapper.java:50) at com.atlassian.jira.imports.csv.MindProdCsvProvider.startSession(MindProdCsvProvider.java:48) at com.atlassian.jira.imports.csv.CsvDataBean.populateCache(CsvDataBean.java:122) at com.atlassian.jira.imports.csv.CsvDataBean.refreshCache(CsvDataBean.java:105) at com.atlassian.jira.imports.csv.CsvDataBean.getUsers(CsvDataBean.java:251) at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.importUsers(DefaultJiraDataImporter.java:223) at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:94) at com.atlassian.jira.imports.importer.impl.ImporterThread.run(ImporterThread.java:21) (0.0020s) 2008-01-16 16:36:56,566 Thread-33 INFO [imports.importer.impl.ImportLogger] Flushing issue cache (0.0020s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] No issues need to be reindexed. (0.0090s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] (0.01s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.01s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] IMPORTING FINISHED (0.01s) 2008-01-16 16:36:56,574 Thread-33 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.01s) {noformat} 3. Try to run the CSV Importer again with the same files (without making any changes to the date format). There is no invalid date format exception being thrown. {noformat} 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0s) 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] IMPORTING STARTED (0.0s) 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0s) 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] (0.0s) 2008-01-16 16:37:20,981 Thread-36 INFO [imports.importer.impl.ImportLogger] Importing with ImportBeanType: com.atlassian.jira.imports.csv.CsvDataBean (0.0s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] -------------------------- (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] Importing of Users started (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] Only new Users will be imported (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] 0 users associated with import. (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] 0 users successfully imported. (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] Importing of Users finished (0.0010s) 2008-01-16 16:37:20,982 Thread-36 INFO [imports.importer.impl.ImportLogger] --------------------------- (0.0010s) 2008-01-16 16:37:20,983 Thread-36 INFO [imports.importer.impl.ImportLogger] Retrieving projects... (0.0020s) 2008-01-16 16:37:20,983 Thread-36 INFO [imports.importer.impl.ImportLogger] No projects were found to import (0.0020s) 2008-01-16 16:37:20,983 Thread-36 INFO [imports.importer.impl.ImportLogger] Flushing issue cache (0.0020s) 2008-01-16 16:37:20,986 Thread-36 INFO [imports.importer.impl.ImportLogger] No issues need to be reindexed. (0.0050s) 2008-01-16 16:37:20,986 Thread-36 INFO [imports.importer.impl.ImportLogger] (0.0050s) 2008-01-16 16:37:20,986 Thread-36 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0050s) 2008-01-16 16:37:20,986 Thread-36 INFO [imports.importer.impl.ImportLogger] IMPORTING FINISHED (0.0050s) 2008-01-16 16:37:20,987 Thread-36 INFO [imports.importer.impl.ImportLogger] ************************************************************** (0.0060s) {noformat} This behavior is quite weird. The problem should be handled more consistently.

    Atlassian JIRA | 9 years ago | Chai Ying Chan [Atlassian]
    java.lang.IllegalArgumentException: Illegal pattern character 'Y'
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Servoy Talk • View topic - Web client questions from a beginners

    servoy.com | 1 year ago
    org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = 0, page = com.servoy.j2db.server.headlessclient.MainPage, path = 0:servoy_page:servoy_dataform:forms:0:webform:servoywebform:View:sv_09185e96_0ade_4a3b_ba75_dfe86d65d685:sv_e62e7582_e085_41a5_a0cf_ff6d41614b47:webform:servoywebform:View:rows:0.ListItem, isVisible = true, isVersioned = true]]
  5. 0

    Java DateFormat

    Stack Overflow | 6 years ago | Achilles
    java.lang.IllegalArgumentException: Illegal pattern character 'Y'

  1. maxxi 2 times, last 2 months ago
  2. Bassiuz 3 times, last 5 months ago
  3. Ranjana Dangol 26 times, last 5 months ago
  4. mrPet 102 times, last 7 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Illegal pattern character 'Y'

    at java.text.SimpleDateFormat.compile()
  2. Java RT
    SimpleDateFormat.<init>
    1. java.text.SimpleDateFormat.compile(SimpleDateFormat.java:678)
    2. java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:497)
    3. java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:446)
    4. java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:427)
    4 frames
  3. com.atlassian.jira
    ImporterThread.run
    1. com.atlassian.jira.imports.csv.PropertiesCsvMapper.init(PropertiesCsvMapper.java:50)
    2. com.atlassian.jira.imports.csv.MindProdCsvProvider.startSession(MindProdCsvProvider.java:48)
    3. com.atlassian.jira.imports.csv.CsvDataBean.populateCache(CsvDataBean.java:122)
    4. com.atlassian.jira.imports.csv.CsvDataBean.refreshCache(CsvDataBean.java:105)
    5. com.atlassian.jira.imports.csv.CsvDataBean.getUsers(CsvDataBean.java:251)
    6. com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.importUsers(DefaultJiraDataImporter.java:223)
    7. com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:94)
    8. com.atlassian.jira.imports.importer.impl.ImporterThread.run(ImporterThread.java:21)
    8 frames