Migrate to 6.0.x

Hello. I try to migrate from JIRA 5.0.4 to JIRA 6.0.8.

I try to do this throw XML backup/restore. But after restore on dasboard I always have a errors:

java.lang.IllegalArgumentException: groupName cannot be null or empty

I make some tests. I can succefully migrate from 5.0.4 to JIRA 5.2.5.

But when I try to upgrade to 5.2.6 I have the same error:

java.lang.IllegalArgumentException: groupName cannot be null or empty

I check database. Database do not contain any empty rows....

Need help.

4 answers

0 vote

The better route from 5.0 to 6 is an in-place upgrade - no xml, just create a new install of Jira 6, stop the old 5 install and point the new 6 at the database. It'll spot the upgrade is needed and do it for you.

However, I'm not sure that's the problem. Group name problems often imply the server is looking at user groups - how are you doing user maintenance? Internal, crowd, ldap, something else?

I use crowd. But more. I make upgrade from 5.0.4 to 5.2.5 succefully. Than make export from 5.2.5 and than imort in 5.2.6... The same error. Something changed in 5.2.6 in api?

Unlikely, as point releases are mostly bug fixes. You're going to need to look into the logs in more detail to identify the exact error you're getting.

Still don't understand why you are exporting and importing, it's not the best route.

Upgrade in place the same trouble. I think it's run the same procedure to convert database after upgrade....

Ok, do you have any plugins installed and in use? In the upgraded system, can you get to the UPM and check you are using the latest version of the user installed ones if there are any?

No. I do not use any third party plugins. Only plugins installed with JIRA. Yes I can check UPM and upgrade plugins. May be it help. As fact JIRA work. I can login and use administration mode. I see users, i see they are meberships. But whet I open dashboard all gadjets have error. (server internal error). In jira log I have error that I provide in fisrt post.

There's not enough information in the line of log file you've posted there. It's good as a starter, but as you've gone over the standard steps to fix it and it's still there, we need more information on it. When is it happening? Is it all gadgets or just a coupleof them or the whole dashboard page? Is it happening in other places?

Also, I think it's very imortant to look closely at your user connection to Crowd, are the groups coming across correctly?

error on Dashboard : An internal server error occurred when requesting resource .

errors from log:

2013-09-23 05:29:41,235 http-bio-8080-exec-9 ERROR <user> 329x112x3 1opfwmp 10.6.0.1 /rest/gadget/1.0/issueTable/jql [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service

java.lang.IllegalArgumentException: groupName cannot be null or empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at com.atlassian.crowd.directory.AbstractInternalDirectory.isUserDirectGroupMember(AbstractInternalDirectory.java:701)

2013-09-23 05:29:40,580 http-bio-8080-exec-15 ERROR <user> 329x111x5 1opfwmp 10.6.0.1 /rest/gadget/1.0/issueTable/jql [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service

java.lang.IllegalArgumentException: groupName cannot be null or empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at com.atlassian.crowd.directory.AbstractInternalDirectory.isUserDirectGroupMember(AbstractInternalDirectory.java:701)

2013-09-23 05:29:40,096 http-bio-8080-exec-14 ERROR <user> 329x106x6 1opfwmp 10.6.0.1 /rest/gadget/1.0/admin [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service

java.lang.IllegalArgumentException: groupName cannot be null or empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at com.atlassian.crowd.directory.AbstractInternalDirectory.isUserDirectGroupMember(AbstractInternalDirectory.java:701)

at com.atlassian.crowd.directory.DbCachingRemoteDirectory.isUserDirectGroupMember(DbCachingRemoteDirectory.java:463)

at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.isUserDirectGroupMember(DirectoryManagerGeneric.java:718)

2013-09-23 05:29:40,081 http-bio-8080-exec-17 ERROR <user> 329x107x4 1opfwmp 10.6.0.1 /rest/gadget/1.0/project/generate [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service

java.lang.IllegalArgumentException: groupName cannot be null or empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at com.atlassian.crowd.directory.AbstractInternalDirectory.isUserDirectGroupMember(AbstractInternalDirectory.java:701)

at com.atlassian.crowd.directory.DbCachingRemoteDirectory.isUserDirectGroupMember(DbCachingRemoteDirectory.java:463)

at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.isUserDirectGroupMember(DirectoryManagerGeneric.java:718)

2013-09-23 05:29:36,727 http-bio-8080-exec-19 ERROR <user> 329x92x4 1opfwmp 10.6.0.1 /rest/gadget/1.0/quicklinks [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service

java.lang.IllegalArgumentException: groupName cannot be null or empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at com.atlassian.crowd.directory.AbstractInternalDirectory.isUserDirectGroupMember(AbstractInternalDirectory.java:701)

at com.atlassian.crowd.directory.DbCachingRemoteDirectory.isUserDirectGroupMember(DbCachingRemoteDirectory.java:463)

at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.isUserDirectGroupMember(DirectoryManagerGeneric.java:718)

2013-09-23 05:29:30,206 http-bio-8080-exec-19 WARN <user> 329x58x1 1opfwmp 10.6.0.1 /secure/Dashboard.jspa [jira.plugin.navigation.TopNavigationModuleDescriptorImpl] Unable to find if user has browse project permission.

java.lang.IllegalArgumentException: groupName cannot be null or empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at com.atlassian.crowd.directory.AbstractInternalDirectory.isUserDirectGroupMember(AbstractInternalDirectory.java:701)

at com.atlassian.crowd.directory.DbCachingRemoteDirectory.isUserDirectGroupMember(DbCachingRemoteDirectory.java:463)

Yes crowd work correctly. No any trobles with JIRA 5.2.5.

###FULL ERROR###:

2013-09-23 05:29:36,727 http-bio-8080-exec-19 ERROR <user> 329x92x4 1opfwmp 10.6.0.1 /rest/gadget/1.0/quicklinks [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service

java.lang.IllegalArgumentException: groupName cannot be null or empty

at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)

at com.atlassian.crowd.directory.AbstractInternalDirectory.isUserDirectGroupMember(AbstractInternalDirectory.java:701)

at com.atlassian.crowd.directory.DbCachingRemoteDirectory.isUserDirectGroupMember(DbCachingRemoteDirectory.java:463)

at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.isUserDirectGroupMember(DirectoryManagerGeneric.java:718)

at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.isUserNestedGroupMember(DirectoryManagerGeneric.java:915)

at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.isUserNestedGroupMember(DirectoryManagerGeneric.java:897)

at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.isUserNestedGroupMember(ApplicationServiceGeneric.java:1458)

at com.atlassian.crowd.embedded.core.CrowdServiceImpl.isUserMemberOfGroup(CrowdServiceImpl.java:261)

at com.atlassian.crowd.embedded.core.CrowdServiceImpl.isUserMemberOfGroup(CrowdServiceImpl.java:266)

at com.atlassian.crowd.embedded.core.DelegatingCrowdService.isUserMemberOfGroup(DelegatingCrowdService.java:70)

at com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.isUserMemberOfGroup(FilteredCrowdServiceImpl.java:221)

at com.atlassian.jira.security.groups.DefaultGroupManager.isUserInGroup(DefaultGroupManager.java:101)

at com.atlassian.jira.security.roles.actor.GroupRoleActorFactory$GroupRoleActor.contains(GroupRoleActorFactory.java:93)

at com.atlassian.jira.security.roles.CachingProjectRoleAndActorStore$CachedDefaultRoleActors.contains(CachingProjectRoleAndActorStore.java:514)

at com.atlassian.jira.notification.type.ProjectRoleSecurityAndNotificationType.hasPermission(ProjectRoleSecurityAndNotificationType.java:175)

at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:508)

at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasPermission(DefaultPermissionSchemeManager.java:467)

at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemeAuthority(DefaultPermissionSchemeManager.java:414)

at com.atlassian.jira.security.AbstractPermissionManager.hasProjectPermission(AbstractPermissionManager.java:264)

at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:211)

at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:67) <+2>

at java.lang.reflect.Method.invoke(Unknown Source)

at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83)

at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)

at com.sun.proxy.$Proxy89.hasPermission(Unknown Source)

at com.atlassian.jira.security.type.CurrentAssigneeHasAssignablePermission.hasProjectPermission(CurrentAssigneeHasAssignablePermission.java:74)

at com.atlassian.jira.security.type.AbstractIssueFieldSecurityType.hasPermission(AbstractIssueFieldSecurityType.java:196)

at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:508)

at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasPermission(DefaultPermissionSchemeManager.java:467)

at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemeAuthority(DefaultPermissionSchemeManager.java:414)

at com.atlassian.jira.security.AbstractPermissionManager.hasProjectPermission(AbstractPermissionManager.java:264)

at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:211)

at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:67)

at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:122)

at com.atlassian.jira.security.AbstractPermissionManager.hasProjects(AbstractPermissionManager.java:345) <+2>

at java.lang.reflect.Method.invoke(Unknown Source)

at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83)

at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)

at com.sun.proxy.$Proxy89.hasProjects(Unknown Source) <+2>

at java.lang.reflect.Method.invoke(Unknown Source)

at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)

at com.sun.proxy.$Proxy89.hasProjects(Unknown Source) <+2>

at java.lang.reflect.Method.invoke(Unknown Source)

at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)

at com.sun.proxy.$Proxy89.hasProjects(Unknown Source)

at com.atlassian.jira.gadgets.system.QuickLinksResource.getQuickLinks(QuickLinksResource.java:56) <+3>

at java.lang.reflect.Method.invoke(Unknown Source) <+18> (DispatchProviderHelper.java:234) (DispatchProviderHelper.java:100) (DefaultMethodInvocation.java:61) (ExpandInterceptor.java:38) (DefaultMethodInvocation.java:61) (DispatchProviderHelper.java:132) (DispatchProviderHelper.java:230) (ResourceJavaMethodDispatcher.java:75) (HttpMethodRule.java:288) (ResourceClassRule.java:108) (RightHandPathRule.java:147) (RootResourceClassesRule.java:84) (WebApplicationImpl.java:1469) (WebApplicationImpl.java:1400) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537)

at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) <+1> (ServletContainer.java:795)

at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73) <+16> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (RestServletUtilsUpdaterFilter.java:26) (RestServletUtilsUpdaterFilter.java:40) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (ContextFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(ServingRequestsFilter.java:37) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.prettyurls.filter.PrettyUrlsDispatcherFilter.doFilter(PrettyUrlsDispatcherFilter.java:60) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter.doFilter(PrettyUrlsSiteMeshFilter.java:92) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.prettyurls.filter.PrettyUrlsMatcherFilter.doFilter(PrettyUrlsMatcherFilter.java:56) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36) <+15> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AccessLogFilter.java:103) (AccessLogFilter.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (XsrfTokenAdditionRequestFilter.java:54) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66)

at com.atlassian.plugin.remotable.plugin.module.permission.ApiScopingFilter.doFilter(ApiScopingFilter.java:62) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61) <+22> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (SecurityFilter.java:234) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (TrustedApplicationsFilter.java:98) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (BaseLoginFilter.java:169) (JiraLoginFilter.java:70) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) (OAuthFilter.java:55) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61) <+9> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractJohnsonFilter.java:71) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210)

at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) <+9> (UrlRewriteFilter.java:394) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (GzipFilter.java:74) (GzipFilter.java:51) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66)

at com.atlassian.plugin.remotable.plugin.module.oauth.OAuth2LOFilter.doFilter(OAuth2LOFilter.java:70) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.plugin.remotable.host.common.service.http.bigpipe.BigPipeRequestIdFilter.doFilter(BigPipeRequestIdFilter.java:33) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)

at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61) <+41> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (JWDSendRedirectFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:84) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractCachingFilter.java:33) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractEncodingFilter.java:41) (AbstractHttpFilter.java:31) (PathMatchingEncodingFilter.java:45) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (JiraStartupChecklistFilter.java:74) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:84) (JiraFirstFilter.java:57) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (StandardWrapperValve.java:225) (StandardContextValve.java:123) (AuthenticatorBase.java:472) (StandardHostValve.java:168) (ErrorReportValve.java:98) (StandardEngineValve.java:118) (AccessLogValve.java:927) (CoyoteAdapter.java:407) (AbstractHttp11Processor.java:1001) (AbstractProtocol.java:585) (JIoEndpoint.java:312)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

376 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you