java.lang.IllegalArgumentException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Java does not handle IPv6 nameservers before 1.8.0_60. Upgrade to the latest JVM.


rprp
tip

This is a bug in Wise, updating to v4.10 seems to solve the problem.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • h3.Symptoms * Directory sync fails with errors such as this: {code} java.lang.IllegalArgumentException: can't parse argument number: 5c2d3f31-249f-4455-b1fb-8f190de41a9c INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.makeFormat(MessageFormat.java:1420) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.applyPattern(MessageFormat.java:479) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.<init>(MessageFormat.java:363) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.format(MessageFormat.java:835) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.util.TimedOperation.complete(TimedOperation.java:18) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.syncUserMembersForGroup(DirectoryCacheImplUsingChangeOperations.java:124) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseMemberships(AbstractCacheRefresher.java:145) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:84) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseAll(UsnChangedCacheRefresher.java:124) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:644) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:63) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJob.execute(DirectoryPollerJob.java:34) INFO | jvm 1 | 2013/05/21 12:52:32 | at org.quartz.core.JobRunShell.run(JobRunShell.java:195) INFO | jvm 1 | 2013/05/21 12:52:32 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) INFO | jvm 1 | 2013/05/21 12:52:32 | Caused by: java.lang.NumberFormatException: For input string: "5c2d3f31-249f-4455-b1fb-8f190de41a9c" INFO | jvm 1 | 2013/05/21 12:52:32 | at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.lang.Integer.parseInt(Integer.java:492) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.lang.Integer.parseInt(Integer.java:527) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.makeFormat(MessageFormat.java:1418) INFO | jvm 1 | 2013/05/21 12:52:32 | ... 14 more {code} h3.Cause JIRA (Embedded CWD) parses the curly braces as a numerical argument. h3.Observation * If the groupname instead, is this: usergroup {2}, the error will not be thrown * Only happens in JIRA 6.0. 5.2 and below is *not affected* h3.Workaround Change the Group/User Object Filter to something like this (to filter out groups/users containing the curly braces): {code:title=Group Filter} (&(objectCategory=Group)(!(cn=*{*}*))) {code} {code:title=User Filter} (&(objectCategory=Person)(!(sAMAccountName=*{*}*))) {code} The example above applies for Active Directory with the username attribute set to {{sAMAccountName}} and groupname attribute set to {{cn}}. These are the default settings. (!) This will prevent users and groups being added to JIRA that contain curley braces. This can potentially delete groups and users from the instance.
    via by John Garcia [Atlassian],
  • from: https://answers.atlassian.com/questions/153004/stash-does-not-understand-crowd-s-nested-groups While synchronising group memberships, the following error occurred: {noformat} 2013-03-28 14:46:06,385 ERROR [scheduler_Worker-8] c.a.c.d.DbCachingDirectoryPoller Error occurred while refreshing the cache for directory [ 425985 ]. java.lang.IllegalArgumentException: can't parse argument number: 672ad2a4-ced0-43f8-aa51-d0560057675a at java.text.MessageFormat.makeFormat(Unknown Source) ~[na:1.7.0_17] at java.text.MessageFormat.applyPattern(Unknown Source) ~[na:1.7.0_17] at java.text.MessageFormat.<init>(Unknown Source) ~[na:1.7.0_17] at java.text.MessageFormat.format(Unknown Source) ~[na:1.7.0_17] at com.atlassian.crowd.util.TimedOperation.complete(TimedOperation.java:18) ~[crowd-api-2.6.2-m1.jar:na] at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.syncUserMembersForGroup(DirectoryCacheImplUsingChangeOperations.java:124) ~[crowd-core-2.6.2-m1.jar:na] at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseMemberships(AbstractCacheRefresher.java:145) ~[crowd-ldap-2.6.2-m1.jar:na] at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:84) ~[crowd-ldap-2.6.2-m1.jar:na] at com.atlassian.crowd.directory.ldap.cache.EventTokenChangedCacheRefresher.synchroniseAll(EventTokenChangedCacheRefresher.java:59) ~[crowd-ldap-2.6.2-m1.jar:na] at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:622) ~[crowd-core-2.6.2-m1.jar:na] at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:63) ~[crowd-core-2.6.2-m1.jar:na] at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50) ~[crowd-core-2.6.2-m1.jar:na] at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJobBean.executeInternal(DirectoryPollerJobBean.java:29) [crowd-core-2.6.2-m1.jar:na] at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) [spring-context-support-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [quartz-1.8.6.jar:na] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [quartz-1.8.6.jar:na] Caused by: java.lang.NumberFormatException: For input string: "672ad2a4-ced0-43f8-aa51-d0560057675a" at java.lang.NumberFormatException.forInputString(Unknown Source) ~[na:1.7.0_17] at java.lang.Integer.parseInt(Unknown Source) ~[na:1.7.0_17] at java.lang.Integer.parseInt(Unknown Source) ~[na:1.7.0_17] ... 16 common frames omitted {noformat} The problem appears to be in the following line (DirectoryCacheImplUsingChangeOperations:124}: {code:java} logger.debug(operation.complete("synchronised [ " + remoteUsers.size() + " ] user members for group [ " + group.getName() + " ] in [ {0} ]")); {code} If the group name contains {}, a few levels down the call stack, MessageFormat tries to parse the argument number from it and blows up. Tracked in the Crowd project as CWD-3241
    via by Michael Heemskerk,
  • h3.Symptoms * Directory sync fails with errors such as this: {code} java.lang.IllegalArgumentException: can't parse argument number: 5c2d3f31-249f-4455-b1fb-8f190de41a9c INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.makeFormat(MessageFormat.java:1420) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.applyPattern(MessageFormat.java:479) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.<init>(MessageFormat.java:363) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.format(MessageFormat.java:835) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.util.TimedOperation.complete(TimedOperation.java:18) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.syncUserMembersForGroup(DirectoryCacheImplUsingChangeOperations.java:124) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseMemberships(AbstractCacheRefresher.java:145) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:84) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseAll(UsnChangedCacheRefresher.java:124) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:644) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:63) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50) INFO | jvm 1 | 2013/05/21 12:52:32 | at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJob.execute(DirectoryPollerJob.java:34) INFO | jvm 1 | 2013/05/21 12:52:32 | at org.quartz.core.JobRunShell.run(JobRunShell.java:195) INFO | jvm 1 | 2013/05/21 12:52:32 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) INFO | jvm 1 | 2013/05/21 12:52:32 | Caused by: java.lang.NumberFormatException: For input string: "5c2d3f31-249f-4455-b1fb-8f190de41a9c" INFO | jvm 1 | 2013/05/21 12:52:32 | at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.lang.Integer.parseInt(Integer.java:492) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.lang.Integer.parseInt(Integer.java:527) INFO | jvm 1 | 2013/05/21 12:52:32 | at java.text.MessageFormat.makeFormat(MessageFormat.java:1418) INFO | jvm 1 | 2013/05/21 12:52:32 | ... 14 more {code} h3.Cause JIRA (Embedded CWD) parses the curly braces as a numerical argument. h3.Observation * If the groupname instead, is this: usergroup {2}, the error will not be thrown * Only happens in JIRA 6.0. 5.2 and below is *not affected* h3.Workaround Change the Group/User Object Filter to something like this (to filter out groups/users containing the curly braces): {code:title=Group Filter} (&(objectCategory=Group)(!(cn=*{*}*))) {code} {code:title=User Filter} (&(objectCategory=Person)(!(sAMAccountName=*{*}*))) {code} The example above applies for Active Directory with the username attribute set to {{sAMAccountName}} and groupname attribute set to {{cn}}. These are the default settings. (!) This will prevent users and groups being added to JIRA that contain curley braces. This can potentially delete groups and users from the instance.
    via by John Garcia [Atlassian],
    • java.lang.IllegalArgumentException: can't parse argument number: 5c2d3f31-249f-4455-b1fb-8f190de41a9c at java.text.MessageFormat.makeFormat(MessageFormat.java:1420) at java.text.MessageFormat.applyPattern(MessageFormat.java:479) at java.text.MessageFormat.<init>(MessageFormat.java:363) at java.text.MessageFormat.format(MessageFormat.java:835) at com.atlassian.crowd.util.TimedOperation.complete(TimedOperation.java:18) at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.syncUserMembersForGroup(DirectoryCacheImplUsingChangeOperations.java:124) at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseMemberships(AbstractCacheRefresher.java:145) at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:84) at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseAll(UsnChangedCacheRefresher.java:124) at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:644) at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:63) at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50) at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJob.execute(DirectoryPollerJob.java:34) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: java.lang.NumberFormatException: For input string: "5c2d3f31-249f-4455-b1fb-8f190de41a9c" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at java.text.MessageFormat.makeFormat(MessageFormat.java:1418) ... 14 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    HandemelindoHandemelindo
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    190 more bugmates