java.lang.reflect.InvocationTargetException

Atlassian JIRA | TeckEn Yew | 4 years ago
  1. 0

    h5. Problem: When trying to retrieve particular status, it would return "Internal Server Error" from JIRA through REST api: {code} http://example.com:8080/rest/api/2.0.alpha1/status/1 http://example.com:8080/rest/api/latest/status/1 {code} It only happens if the workflow scheme(which *All Unassigned Issue Types" not assigned to any workflow) associated to the first project(arrangement based on the prefix eg. 1Test or ABC). It doesn't happen when that custom workflow scheme assigned to other project in the list. h5. Error Message: {code} {"errorMessages":["Internal server error"],"errors":{}} {code} h5. Stacktrace from the logs: {code} 2013-01-03 17:26:10,844 TP-Processor3 ERROR xxxx 1046x446967x1 h6cqu1 xx.xx.xx.xx /rest/api/latest/status/1 [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor4058.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke ... Caused by: java.lang.NullPointerException at com.atlassian.jira.bc.config.DefaultConstantsService.getWorkflows(DefaultConstantsService.java:153) at com.atlassian.jira.bc.config.DefaultConstantsService.getStatusById(DefaultConstantsService.java:77) at sun.reflect.GeneratedMethodAccessor4010.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) ... {code} h5. Replication Step: # Create a workflow scheme assigned one of the any issue type(eg. Bug or Improvement) except *All Unassigned Issue Types". # Create a project with named 1TEST(so it would be at the first of the prject list) # Associate the workflow scheme to the project 1TEST # Run a rest command to query the status open: {code} curl http://example.com:8080/rest/api/latest/status/1 {code} # It will returns Internal Server Error h5. Workaround * Reassign any other workflow schemes where *All Unassigned Issue Types* are assigned to a workflow. * Add *All Unassigned Issue Types* to the custom workflow schemes. * Upgrade to JIRA 5.x

    Atlassian JIRA | 4 years ago | TeckEn Yew
    java.lang.reflect.InvocationTargetException
  2. 0

    h5. Problem: When trying to retrieve particular status, it would return "Internal Server Error" from JIRA through REST api: {code} http://example.com:8080/rest/api/2.0.alpha1/status/1 http://example.com:8080/rest/api/latest/status/1 {code} It only happens if the workflow scheme(which *All Unassigned Issue Types" not assigned to any workflow) associated to the first project(arrangement based on the prefix eg. 1Test or ABC). It doesn't happen when that custom workflow scheme assigned to other project in the list. h5. Error Message: {code} {"errorMessages":["Internal server error"],"errors":{}} {code} h5. Stacktrace from the logs: {code} 2013-01-03 17:26:10,844 TP-Processor3 ERROR xxxx 1046x446967x1 h6cqu1 xx.xx.xx.xx /rest/api/latest/status/1 [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor4058.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke ... Caused by: java.lang.NullPointerException at com.atlassian.jira.bc.config.DefaultConstantsService.getWorkflows(DefaultConstantsService.java:153) at com.atlassian.jira.bc.config.DefaultConstantsService.getStatusById(DefaultConstantsService.java:77) at sun.reflect.GeneratedMethodAccessor4010.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) ... {code} h5. Replication Step: # Create a workflow scheme assigned one of the any issue type(eg. Bug or Improvement) except *All Unassigned Issue Types". # Create a project with named 1TEST(so it would be at the first of the prject list) # Associate the workflow scheme to the project 1TEST # Run a rest command to query the status open: {code} curl http://example.com:8080/rest/api/latest/status/1 {code} # It will returns Internal Server Error h5. Workaround * Reassign any other workflow schemes where *All Unassigned Issue Types* are assigned to a workflow. * Add *All Unassigned Issue Types* to the custom workflow schemes. * Upgrade to JIRA 5.x

    Atlassian JIRA | 4 years ago | TeckEn Yew
    java.lang.reflect.InvocationTargetException
  3. 0

    ProcessAccessException occurred inside Setter with Hibernate Search

    Stack Overflow | 3 years ago | Wasif Kirmani
    org.hibernate.PropertyAccessException: Exception occurred inside setter of com.bo.Sample.logEvents
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Yarn/ hdfs attempting to use kerberos when security is disabled

    Stack Overflow | 1 year ago | javadba
    java.lang.IllegalArgumentException: Can't get Kerberos realm
  6. 0

    Calling web service from a web service over https | Oracle Community

    oracle.com | 8 months ago
    weblogic.wsee.handler.InvocationException: Failed to invoke end component

  1. bmacedo 8 times, last 2 weeks ago
  2. aldrinleal 1 times, last 1 month ago
  3. ajinkya_w 96 times, last 2 months ago
  4. davidvanlaatum 4 times, last 2 months ago
  5. Handemelindo 2 times, last 2 months ago
17 more registered users
78 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.reflect.InvocationTargetException

    No message provided

    at sun.reflect.GeneratedMethodAccessor4058.invoke()
  2. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor4058.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames