java.lang.NumberFormatException: For input string: "x"

Atlassian JIRA | Jeff Kirby | 6 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

    To reproduce, search for an option of a cascade select that is invalid. In our Jira {{'resolution reason' = x}} will cause it Expected Result: a warning message Actual Result: a warning message and NumberFormatException written to the logs {noformat} 2011-03-25 17:08:03,703 TP-Processor1525 WARN jeff kirby 1028x1582953x1 1dotzxl 148.92.244.190 /secure/IssueNavigator!executeAdvanced.jspa [issue.customfields.option.OptionUtils] OptionParentId 'x' is invalid null being returned java.lang.NumberFormatException: For input string: "x" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.<init>(Long.java:671) at com.atlassian.jira.issue.customfields.option.OptionUtils.safeParseLong(OptionUtils.java:20) at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getOptionFromStringValue(CascadingSelectCFType.java:447) at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.extractOptionFromParams(CascadingSelectCFType.java:441) at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.validateFromParams(CascadingSelectCFType.java:84) at com.atlassian.jira.issue.customfields.searchers.transformer.AbstractCustomFieldSearchInputTransformer.validateParams(AbstractCustomFieldSearchInputTransformer.java:101) at com.atlassian.jira.bc.issue.search.DefaultSearchService.checkValidationMatches(DefaultSearchService.java:419) at com.atlassian.jira.bc.issue.search.DefaultSearchService.calculateDoesQueryValidationFitFilterForm(DefaultSearchService.java:398) at com.atlassian.jira.bc.issue.search.DefaultSearchService.calculateDoesQueryFitFilterForm(DefaultSearchService.java:379) at com.atlassian.jira.bc.issue.search.DefaultSearchService.doesQueryFitFilterForm(DefaultSearchService.java:102) at com.atlassian.jira.web.action.issue.IssueNavigator.isAdvanced(IssueNavigator.java:1443) at com.atlassian.jira.web.action.issue.IssueNavigator.isCurrentQueryTooComplex(IssueNavigator.java:439) at sun.reflect.GeneratedMethodAccessor956.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) {noformat}

    Atlassian JIRA | 6 years ago | Jeff Kirby
    java.lang.NumberFormatException: For input string: "x"
  2. 0

    To reproduce, search for an option of a cascade select that is invalid. In our Jira {{'resolution reason' = x}} will cause it Expected Result: a warning message Actual Result: a warning message and NumberFormatException written to the logs {noformat} 2011-03-25 17:08:03,703 TP-Processor1525 WARN jeff kirby 1028x1582953x1 1dotzxl 148.92.244.190 /secure/IssueNavigator!executeAdvanced.jspa [issue.customfields.option.OptionUtils] OptionParentId 'x' is invalid null being returned java.lang.NumberFormatException: For input string: "x" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.<init>(Long.java:671) at com.atlassian.jira.issue.customfields.option.OptionUtils.safeParseLong(OptionUtils.java:20) at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getOptionFromStringValue(CascadingSelectCFType.java:447) at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.extractOptionFromParams(CascadingSelectCFType.java:441) at com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.validateFromParams(CascadingSelectCFType.java:84) at com.atlassian.jira.issue.customfields.searchers.transformer.AbstractCustomFieldSearchInputTransformer.validateParams(AbstractCustomFieldSearchInputTransformer.java:101) at com.atlassian.jira.bc.issue.search.DefaultSearchService.checkValidationMatches(DefaultSearchService.java:419) at com.atlassian.jira.bc.issue.search.DefaultSearchService.calculateDoesQueryValidationFitFilterForm(DefaultSearchService.java:398) at com.atlassian.jira.bc.issue.search.DefaultSearchService.calculateDoesQueryFitFilterForm(DefaultSearchService.java:379) at com.atlassian.jira.bc.issue.search.DefaultSearchService.doesQueryFitFilterForm(DefaultSearchService.java:102) at com.atlassian.jira.web.action.issue.IssueNavigator.isAdvanced(IssueNavigator.java:1443) at com.atlassian.jira.web.action.issue.IssueNavigator.isCurrentQueryTooComplex(IssueNavigator.java:439) at sun.reflect.GeneratedMethodAccessor956.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) {noformat}

    Atlassian JIRA | 6 years ago | Jeff Kirby
    java.lang.NumberFormatException: For input string: "x"
  3. 0

    [ERROR] Uncaught exception escaped java.lang.NumberFormatException: For input string: "<div class="gwt-HTML dragdrop-draggable dragdrop-handle">1"

    Google Groups | 8 years ago | Shi
    java.lang.NumberFormatException: For input string: "<div class="gwt- HTML dragdrop-draggable dragdrop-handle">1"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [ERROR] Uncaught exception escaped java.lang.NumberFormatException: For input string: "<div class="gwt-HTML dragdrop-draggable dragdrop-handle">1"

    Google Groups | 8 years ago | Shi
    java.lang.NumberFormatException: For input string: "<div class="gwt- HTML dragdrop-draggable dragdrop-handle">1"
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.NumberFormatException

    For input string: "x"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Long.<init>
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    2. java.lang.Long.parseLong(Long.java:403)
    3. java.lang.Long.<init>(Long.java:671)
    3 frames
  3. com.atlassian.jira
    IssueNavigator.isCurrentQueryTooComplex
    1. com.atlassian.jira.issue.customfields.option.OptionUtils.safeParseLong(OptionUtils.java:20)
    2. com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.getOptionFromStringValue(CascadingSelectCFType.java:447)
    3. com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.extractOptionFromParams(CascadingSelectCFType.java:441)
    4. com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType.validateFromParams(CascadingSelectCFType.java:84)
    5. com.atlassian.jira.issue.customfields.searchers.transformer.AbstractCustomFieldSearchInputTransformer.validateParams(AbstractCustomFieldSearchInputTransformer.java:101)
    6. com.atlassian.jira.bc.issue.search.DefaultSearchService.checkValidationMatches(DefaultSearchService.java:419)
    7. com.atlassian.jira.bc.issue.search.DefaultSearchService.calculateDoesQueryValidationFitFilterForm(DefaultSearchService.java:398)
    8. com.atlassian.jira.bc.issue.search.DefaultSearchService.calculateDoesQueryFitFilterForm(DefaultSearchService.java:379)
    9. com.atlassian.jira.bc.issue.search.DefaultSearchService.doesQueryFitFilterForm(DefaultSearchService.java:102)
    10. com.atlassian.jira.web.action.issue.IssueNavigator.isAdvanced(IssueNavigator.java:1443)
    11. com.atlassian.jira.web.action.issue.IssueNavigator.isCurrentQueryTooComplex(IssueNavigator.java:439)
    11 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor956.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  5. webwork.util
    InjectionUtils$DefaultInjectionImpl.invoke
    1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
    1 frame