not able to create issue type using plugin

I am very new to plugin development , getting null pointer exception when i am trying to create issue type using plugin 

following is my servelet code 


import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.atlassian.jira.config.IssueTypeManager;
import com.atlassian.jira.issue.issuetype.IssueType;

public class CreateIssueTypeManagerImpl extends HttpServlet {

private IssueTypeManager issueTypeManager;

protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
PrintWriter out = resp.getWriter();

out.println("Creating Issue...");

IssueType customIssue = issueTypeManager.createIssueType("TestCase",
"Test case issue type", (long) 10000);

if (customIssue != null) {
out.println("Updating " + customIssue.getId());


out.println("issue is not created");






plguin.xml entry 


<servlet name="Issue Servlet" key="issueManager" class="com.testcase.plugin.impl.CreateIssueTypeManagerImpl">
<description>Creates,Edits Issues</description>

error log 


[INFO] [talledLocalContainer] java.lang.NullPointerException
[INFO] [talledLocalContainer] at com.testcase.plugin.impl.CreateIssueTypeManagerImpl.doGet(


1 answer

0 vote
Alex Christensen Community Champion Aug 21, 2017

Hi, Manohar - I don't have an answer for you, but you might have better luck getting an answer in Atlassian's Developer Community, which is a separate site from this Community site.

Sorry I couldn't be of more help!

Thanks Alex Christensen for quick replay 


I created issue in developer community !

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 Apr 17, 2018 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...

782 views 2 19
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