java.lang.IllegalArgumentException: Cannot format given Object as a Number 2016-06-15 07:48:59.586865500 at java.text.NumberFormat.format(NumberFormat.java:248) 2016-06-15 07:48:59.586866500 at java.text.Format.format(Format.java:157) 2016-06-15 07:48:59.586878500 at java.text.MessageFormat.subformat(MessageFormat.java:1262) 2016-06-15 07:48:59.586878500 at java.text.MessageFormat.format(MessageFormat.java:865)

Atlassian JIRA | Marty Lavender [Atlassian] | 6 months ago
  1. 0

    h3. Summary Customer is getting Communications Breakdown - Close this dialog and press refresh in your browser error popup when attempting to add additional participants to a JIRA Service Desk ticket h3. Environment Cloud JIRA v1000.73.0 JIRA Service Desk v3.2.0-OD-15-001-D20160604T051209 h3. Steps to Reproduce # Open a ticket within Service Desk # Attempt to add an additional Request Participant h3. Expected Results Additional user should be added h3. Actual Results Error popup is displayed Small loading gear is seen in the add participant inline edit box Following errors are seen within the JIRA Logs {noformat} 2016-06-15 07:48:50.168274500 2016-06-15 07:48:50,163 http-nio-3010-exec-11 WARN sysadmin 468x23219x1 63xfai 4.15.43.214 /browse/HDIS-2358 [c.a.j.i.search.util.SearchPropertiesManager] Invalid filter ID in user preferences: 2016-06-15 07:48:59.586863500 2016-06-15 07:48:59,580 http-nio-3010-exec-9 ERROR [o.a.c.c.C.[.[localhost].[/].[action]] Servlet.service() for servlet [action] in context with path [] threw exception [java.lang.IllegalArgumentException: Cannot format given Object as a Number] with root cause 2016-06-15 07:48:59.586865500 java.lang.IllegalArgumentException: Cannot format given Object as a Number 2016-06-15 07:48:59.586865500 at java.text.NumberFormat.format(NumberFormat.java:248) 2016-06-15 07:48:59.586866500 at java.text.Format.format(Format.java:157) 2016-06-15 07:48:59.586878500 at java.text.MessageFormat.subformat(MessageFormat.java:1262) 2016-06-15 07:48:59.586878500 at java.text.MessageFormat.format(MessageFormat.java:865) 2016-06-15 07:48:59.586879500 at java.text.Format.format(Format.java:157) 2016-06-15 07:48:59.586879500 at com.atlassian.jira.i18n.BackingI18n.formatI18nMsg(BackingI18n.java:249) 2016-06-15 07:48:59.586879500 at com.atlassian.jira.i18n.BackingI18n.getText(BackingI18n.java:157) {noformat} Noticed that the following error is thrown each time the above stack trace is thrown: {noformat} 2016-06-15 08:21:48.233860500 Jun 15, 2016 8:21:48 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters 2016-06-15 08:21:49.730161500 2016-06-15 08:21:49,730 http-nio-3010-exec-20 WARN sysadmin 501x27280x1 63xfai 4.15.43.214 /browse/HDIS-2361 [c.a.j.i.search.util.SearchPropertiesManager] Invalid filter ID in user preferences: {noformat}

    Atlassian JIRA | 6 months ago | Marty Lavender [Atlassian]
    java.lang.IllegalArgumentException: Cannot format given Object as a Number 2016-06-15 07:48:59.586865500 at java.text.NumberFormat.format(NumberFormat.java:248) 2016-06-15 07:48:59.586866500 at java.text.Format.format(Format.java:157) 2016-06-15 07:48:59.586878500 at java.text.MessageFormat.subformat(MessageFormat.java:1262) 2016-06-15 07:48:59.586878500 at java.text.MessageFormat.format(MessageFormat.java:865)
  2. 0

    h3. Steps to reproduce # Create two Service Desk projects, A and B, set both to "Only people on my customers list" under the "Manage who can raise requests through email and the customer portal" heading in Request Security settings. # Create two new customer accounts in A, ensure they don't have access to B. # Create a new issue in A, add both customer accounts to the Request Participants field in the new issue. # Move the issue to Service Desk B. # Edit the Request Participants field in on the moved issue, try to add another user (it can be anyone at all who _does_ have access to B). h3. Expected results The user in the last step is successfully added to the Request Participants field. h3. Actual results JIRA throws a "Communications Breakdown" message in the UI and this stack trace appears in the logs: {code:none} 2016-06-20 13:31:11,732 http-nio-3008-exec-15 ERROR [o.a.c.c.C.[.[localhost].[/].[action]] Servlet.service() for servlet [action] in context with path [] threw exception [java.lang.IllegalArgumentException: Cannot format given Object as a Number] with root cause java.lang.IllegalArgumentException: Cannot format given Object as a Number at java.text.NumberFormat.format(NumberFormat.java:248) at java.text.Format.format(Format.java:157) at java.text.MessageFormat.subformat(MessageFormat.java:1262) at java.text.MessageFormat.format(MessageFormat.java:865) at java.text.Format.format(Format.java:157) at com.atlassian.jira.i18n.BackingI18n.formatI18nMsg(BackingI18n.java:249) at com.atlassian.jira.i18n.BackingI18n.getText(BackingI18n.java:157) at com.atlassian.servicedesk.internal.feature.reqparticipants.validation.RequestParticipantValidatorImpl.getNonCustomersErrorMessage(RequestParticipantValidatorImpl.java:211) at com.atlassian.servicedesk.internal.feature.reqparticipants.validation.RequestParticipantValidatorImpl.getValidationErrorMessages(RequestParticipantValidatorImpl.java:189) at com.atlassian.servicedesk.internal.feature.reqparticipants.validation.RequestParticipantValidatorImpl.lambda$getParticipantsValidationErrorMessage$3(RequestParticipantValidatorImpl.java:96) at com.atlassian.servicedesk.internal.feature.reqparticipants.validation.RequestParticipantValidatorImpl$$Lambda$2212/981477.apply(Unknown Source) at com.atlassian.pocketknife.OptionStep2.lambda$null$6(OptionStep2.java:35) at com.atlassian.pocketknife.OptionStep2$$Lambda$1945/13284938.apply(Unknown Source) at com.atlassian.fugue.Option.map(Option.java:272) at com.atlassian.pocketknife.OptionStep2.lambda$yield$7(OptionStep2.java:35) at com.atlassian.pocketknife.OptionStep2$$Lambda$1944/29006150.apply(Unknown Source) at com.atlassian.fugue.Option$Some.fold(Option.java:421) at com.atlassian.fugue.Option.flatMap(Option.java:287) at com.atlassian.pocketknife.OptionStep2.yield(OptionStep2.java:35) at com.atlassian.servicedesk.internal.feature.reqparticipants.validation.RequestParticipantValidatorImpl.getParticipantsValidationErrorMessage(RequestParticipantValidatorImpl.java:94) at com.atlassian.servicedesk.internal.customfields.participants.ParticipantsCFType.validateFromParams(ParticipantsCFType.java:301) at com.atlassian.jira.issue.fields.ImmutableCustomField.validateParams(ImmutableCustomField.java:706) at com.atlassian.jira.bc.issue.DefaultIssueService.validateAndPopulateParamsWithScreenCheck(DefaultIssueService.java:923) at com.atlassian.jira.bc.issue.DefaultIssueService.validateAndPopulateParams(DefaultIssueService.java:884) at com.atlassian.jira.bc.issue.DefaultIssueService.validateAndUpdateIssueFromFields(DefaultIssueService.java:680) at com.atlassian.jira.bc.issue.DefaultIssueService.validateUpdate(DefaultIssueService.java:286) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy182.validateUpdate(Unknown Source) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy2913.validateUpdate(Unknown Source) at com.atlassian.jira.components.issueviewer.action.AjaxIssueAction.doValidation(AjaxIssueAction.java:190) at com.atlassian.jira.components.issueviewer.action.AjaxIssueAction.validate(AjaxIssueAction.java:208) ... 1 filtered at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63) ... 7 filtered at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at com.atlassian.jira.servlet.WebExceptionCheckingServlet.delegate(WebExceptionCheckingServlet.java:86) at com.atlassian.jira.servlet.WebExceptionCheckingServlet.service(WebExceptionCheckingServlet.java:32) ... 51 filtered at com.atlassian.servicedesk.internal.web.LicenseAwareHttpFilter.doFilter(LicenseAwareHttpFilter.java:31) ... 4 filtered at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:62) ... 12 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 20 filtered at com.atlassian.jira.plugins.rest.HOT25715FixServletFilter.doFilter(HOT25715FixServletFilter.java:46) ... 28 filtered at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:81) ... 14 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76) at com.atlassian.jira.security.JiraSecurityFilter$$Lambda$611/22549397.doFilter(Unknown Source) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74) ... 29 filtered at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action.lambda$nextInFilterChain$1(CloudHomepageFilter.java:110) at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action$$Lambda$608/23012515.execute(Unknown Source) at com.atlassian.studio.jira.homepage.CloudHomepageFilter.doFilter(CloudHomepageFilter.java:68) ... 20 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 5 filtered at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:109) ... 3 filtered at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:181) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$597/7671234.call(Unknown Source) at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:142) at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:94) at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.runOutOfCustomerContext(CustomerContextServiceImpl.java:61) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:174) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:130) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:121) ... 4 filtered at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) ... 8 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 4 filtered at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) ... 29 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 27 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) {code} h3. Notes This only happens if there's more than one user already in the Request Participants field who doesn't have access to the issue. If it's only a single user, the user added in Step 5 above overwrites the existing user. h3. Workaround Remove any users from the Request Participants field who don't have access to the project. An easy way to check is to compare who is in the Participants list on the customer portal view versus the standard JIRA issue view... users who don't have access will show in on the standard JIRA issue view but not the customer portal view.

    Atlassian JIRA | 6 months ago | Nick Mason [Atlassian]
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
  3. 0

    Illegal Argument Exception

    Stack Overflow | 3 years ago | user2954611
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Convert String to hh:mm format

    Stack Overflow | 2 years ago | user3917131
    java.lang.IllegalArgumentException: Bad class: class java.lang.String
  6. 0

    Error SimpleDateFormat

    Stack Overflow | 3 years ago | user2876485
    java.lang.IllegalArgumentException

  1. DoktorDoener666 3 times, last 2 weeks ago
  2. ajinkya_w 1 times, last 2 months ago
  3. MoYapro 12 times, last 2 months ago
  4. Stefan Braune 6 times, last 5 months ago
  5. adawolfs 1 times, last 5 months ago
3 more registered users
8 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

    Cannot format given Object as a Number 2016-06-15 07:48:59.586865500 at java.text.NumberFormat.format(NumberFormat.java:248) 2016-06-15 07:48:59.586866500 at java.text.Format.format(Format.java:157) 2016-06-15 07:48:59.586878500 at java.text.MessageFormat.subformat(MessageFormat.java:1262) 2016-06-15 07:48:59.586878500 at java.text.MessageFormat.format(MessageFormat.java:865)

    at java.text.Format.format()
  2. Java RT
    Format.format
    1. java.text.Format.format(Format.java:157)
    1 frame
  3. com.atlassian.jira
    BackingI18n.getText
    1. com.atlassian.jira.i18n.BackingI18n.formatI18nMsg(BackingI18n.java:249)
    2. com.atlassian.jira.i18n.BackingI18n.getText(BackingI18n.java:157)
    2 frames