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 Join to answer
Community showcase
Jason Wong
Published 8 hours ago in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

181 views 3 12
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot