com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL

Atlassian JIRA | Andreas Knecht | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 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
  2. 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
  3. 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".
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
  6. 0

    Root Cause Analysis

    1. com.atlassian.jira.issue.customfields.impl.FieldValidationException

      Not a valid URL

      at com.atlassian.jira.issue.customfields.impl.URLCFType.getSingularObjectFromString()
    2. com.atlassian.jira
      SearchRequestViewServlet.doGet
      1. com.atlassian.jira.issue.customfields.impl.URLCFType.getSingularObjectFromString(URLCFType.java:25)
      2. com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType.getValueFromCustomFieldParams(AbstractSingleFieldType.java:180)
      3. com.atlassian.jira.issue.customfields.searchers.BaseCustomFieldSearcher.getValue(BaseCustomFieldSearcher.java:62)
      4. com.atlassian.jira.plugin.customfield.CustomFieldSearcherModuleDescriptor.getViewHtml(CustomFieldSearcherModuleDescriptor.java:109)
      5. com.atlassian.jira.issue.customfields.searchers.AbstractCustomFieldSearcher.getViewHtml(AbstractCustomFieldSearcher.java:108)
      6. com.atlassian.jira.issue.views.util.SearchRequestHeader.getSearcherViewHtml(SearchRequestHeader.java:141)
      7. com.atlassian.jira.issue.views.util.SearchRequestHeader.getSearcherViewHtmlDescriptions(SearchRequestHeader.java:127)
      8. com.atlassian.jira.issue.views.util.SearchRequestHeader.getHeader(SearchRequestHeader.java:56)
      9. com.atlassian.jira.issue.views.SearchRequestPrintableView.writeSearchResults(SearchRequestPrintableView.java:53)
      10. com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:219)
      11. com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27)
      11 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      2 frames
    4. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2 frames
    5. com.atlassian.jira
      AccessLogFilter.doFilter
      1. com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73)
      1 frame
    6. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2 frames
    7. com.atlassian.seraph
      SecurityFilter.doFilter
      1. com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182)
      1 frame
    8. Glassfish Core
      ApplicationFilterChain.internalDoFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      1 frame