Error while creating a project using jira 7


ProjectCreationData.Builder pcdBuilder = new ProjectCreationData.Builder();
ProjectCreationData pcd =;

CreateProjectValidationResult newProjectVR = projectService
.validateCreateProject(user, // User

Log trace : 

2017-05-08 04:49:06,593 http-nio-8080-exec-14 uri:/secure/SDEProjectAdmin.jspa username:kadhikar ERROR [o.a.c.c.C.[.[localhost].[/].[action]] Servlet.service() for servlet [action] in context with path [] threw exception [java.lang.IllegalArgumentException: Invalid module key specified: ] with root cause
java.lang.IllegalArgumentException: Invalid module key specified:
at com.atlassian.plugin.ModuleCompleteKey.<init>(
at com.atlassian.plugin.ModuleCompleteKey.<init>(
at com.atlassian.plugin.manager.ProductPluginAccessorBase.getEnabledPluginModule(
at com.atlassian.plugin.manager.ForwardingPluginAccessor.getEnabledPluginModule(
at com.atlassian.plugin.manager.EnabledModuleCachingPluginAccessor.getEnabledPluginModule(
at com.atlassian.plugin.manager.ForwardingPluginAccessor.getEnabledPluginModule(
at com.atlassian.plugin.manager.ProductPluginAccessor.getEnabledPluginModule(
at com.atlassian.extension.plugins.ExtensionAccessingPluginAccessor.getEnabledPluginModule(
at com.atlassian.jira.project.template.ProjectTemplateManagerImpl.findByKeyVisible(
at com.atlassian.jira.project.template.ProjectTemplateManagerImpl.getProjectTemplate(
at com.atlassian.jira.bc.project.DefaultProjectService.validateProjectTypeAndTemplate(
at com.atlassian.jira.bc.project.DefaultProjectService.isValidAllProjectData(
at com.atlassian.jira.bc.project.DefaultProjectService.validateCreateProject(
at com.amd.jira.admin.sde.ProjectCloner.cloneProject(
at com.amd.jira.admin.sde.CreateSDEProject.doExecute(
... 1 filtered
at com.atlassian.jira.action.JiraActionSupport.execute(
... 7 filtered
at javax.servlet.http.HttpServlet.service(
... 19 filtered
at com.atlassian.ams.shipit.servlet.filter.TomcatThreadFilter.doFilter(
... 3 filtered

1 answer

0 vote

This looks like your code is feeding a function a string that contains invalid data for a module key.  Check the template key doesn't need to be encoded, and look at the url as well.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

57 views 0 11
Read article

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