com.atlassian.jira.issue.customfields.impl.FieldValidationException: Invalid date format. Please enter the date in the format "d/MMM/yy".

Atlassian JIRA | Michael Tokar | 7 years ago
  1. 0
  2. 0

    These messages are littering JAC 2009-04-27 17:59:21,815 http-j2ee.jira.atlassian.com%2F127.0.0.101-8080-Processor10 ERROR [500ErrorPage.jsp] Exception caught in 500 page Invalid date format. Please enter the date in the format "d/MMM/yy". com.atlassian.jira.issue.customfields.impl.FieldValidationException: Invalid date format. Please enter the date in the format "d/MMM/yy". at com.atlassian.jira.issue.customfields.converters.DatePickerConverter.getTimestamp(DatePickerConverter.java:52) at com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.populateSearchRequest(GenericDateSearcher.java:180) at com.atlassian.jira.issue.search.DefaultSearchRequestFactory.create(DefaultSearchRequestFactory.java:59) at com.atlassian.jira.issue.search.DefaultSearchRequestFactory.getSearchRequestWithSearchSorts(DefaultSearchRequestFactory.java:90) at com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:172) at com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:204) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.seraph.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) I am not sure a data entry problem is worthy of a log message. There are 135 of these messages in JAC after 12 hours of being restarted or round about 10 an hour!

    Atlassian JIRA | 8 years ago | Brad Baker [Atlassian]
    com.atlassian.jira.issue.customfields.impl.FieldValidationException: Invalid date format. Please enter the date in the format "d/MMM/yy".
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    This is a problem if you add a URL custom field and navigate to the printable view of the issuenavigator with an invalid URL. For example the following URL: http://localhost:8090/jira/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?&pid=10000&customfield_10000=blargh&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 Will result in: {noformat} System Error A system error has occurred. If this problem persists - please notify your JIRA administrator of this problem. If you are an administrator, please try submitting this problem via the Support Request Page Else, please create a support issue on our support system at http://support.atlassian.com with the following information: 1. a description of your problem 2. cut & paste the error and system information found below 3. attach the application server log file ( /Users/andreask/projects/atlassian/jira-3.9.2/atlassian-jira.log ) Cause: com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL Stack Trace: [hide] com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL at com.atlassian.jira.issue.customfields.impl.URLCFType.getSingularObjectFromString(URLCFType.java:25) at com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType.getValueFromCustomFieldParams(AbstractSingleFieldType.java:180) at com.atlassian.jira.issue.customfields.searchers.BaseCustomFieldSearcher.getValue(BaseCustomFieldSearcher.java:62) at com.atlassian.jira.plugin.customfield.CustomFieldSearcherModuleDescriptor.getViewHtml(CustomFieldSearcherModuleDescriptor.java:109) at com.atlassian.jira.issue.customfields.searchers.AbstractCustomFieldSearcher.getViewHtml(AbstractCustomFieldSearcher.java:108) at com.atlassian.jira.issue.views.util.SearchRequestHeader.getSearcherViewHtml(SearchRequestHeader.java:141) at com.atlassian.jira.issue.views.util.SearchRequestHeader.getSearcherViewHtmlDescriptions(SearchRequestHeader.java:127) at com.atlassian.jira.issue.views.util.SearchRequestHeader.getHeader(SearchRequestHeader.java:56) at com.atlassian.jira.issue.views.SearchRequestPrintableView.writeSearchResults(SearchRequestPrintableView.java:53) at com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:219) at com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) ... {noformat} This is because the AbstractSingleFieldType.getValueFromCustomFieldParams() doesn't catch the FieldValidationException the same way that AbstractSingleFieldType.getValueFromIssue() does.

    Atlassian JIRA | 8 years ago | Andreas Knecht
    com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL
  6. 0

    This is a problem if you add a URL custom field and navigate to the printable view of the issuenavigator with an invalid URL. For example the following URL: http://localhost:8090/jira/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?&pid=10000&customfield_10000=blargh&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 Will result in: {noformat} System Error A system error has occurred. If this problem persists - please notify your JIRA administrator of this problem. If you are an administrator, please try submitting this problem via the Support Request Page Else, please create a support issue on our support system at http://support.atlassian.com with the following information: 1. a description of your problem 2. cut & paste the error and system information found below 3. attach the application server log file ( /Users/andreask/projects/atlassian/jira-3.9.2/atlassian-jira.log ) Cause: com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL Stack Trace: [hide] com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL at com.atlassian.jira.issue.customfields.impl.URLCFType.getSingularObjectFromString(URLCFType.java:25) at com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType.getValueFromCustomFieldParams(AbstractSingleFieldType.java:180) at com.atlassian.jira.issue.customfields.searchers.BaseCustomFieldSearcher.getValue(BaseCustomFieldSearcher.java:62) at com.atlassian.jira.plugin.customfield.CustomFieldSearcherModuleDescriptor.getViewHtml(CustomFieldSearcherModuleDescriptor.java:109) at com.atlassian.jira.issue.customfields.searchers.AbstractCustomFieldSearcher.getViewHtml(AbstractCustomFieldSearcher.java:108) at com.atlassian.jira.issue.views.util.SearchRequestHeader.getSearcherViewHtml(SearchRequestHeader.java:141) at com.atlassian.jira.issue.views.util.SearchRequestHeader.getSearcherViewHtmlDescriptions(SearchRequestHeader.java:127) at com.atlassian.jira.issue.views.util.SearchRequestHeader.getHeader(SearchRequestHeader.java:56) at com.atlassian.jira.issue.views.SearchRequestPrintableView.writeSearchResults(SearchRequestPrintableView.java:53) at com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:219) at com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) ... {noformat} This is because the AbstractSingleFieldType.getValueFromCustomFieldParams() doesn't catch the FieldValidationException the same way that AbstractSingleFieldType.getValueFromIssue() does.

    Atlassian JIRA | 8 years ago | Andreas Knecht
    com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL

    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. com.atlassian.jira.issue.customfields.impl.FieldValidationException

      Invalid date format. Please enter the date in the format "d/MMM/yy".

      at com.atlassian.jira.issue.customfields.converters.DatePickerConverter.getTimestamp()
    2. com.atlassian.jira
      SearchRequestViewServlet.doGet
      1. com.atlassian.jira.issue.customfields.converters.DatePickerConverter.getTimestamp(DatePickerConverter.java:52)
      2. com.atlassian.jira.issue.search.searchers.impl.GenericDateSearcher.populateSearchRequest(GenericDateSearcher.java:180)
      3. com.atlassian.jira.issue.search.DefaultSearchRequestFactory.create(DefaultSearchRequestFactory.java:59)
      4. com.atlassian.jira.issue.search.DefaultSearchRequestFactory.getSearchRequestWithSearchSorts(DefaultSearchRequestFactory.java:90)
      5. com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:172)
      6. com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27)
      6 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2 frames