java.lang.NullPointerException

Atlassian JIRA | Partha Kamal [Atlassian] | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The error that is thrown is: {noformat} 2009-05-26 11:41:39,524 ERROR [btpool0-601] org.mortbay.log sun.reflect.NativeMethodAccessorImpl-invoke0 - Nested in javax.servlet.ServletException: java.lang.NullPointerException: java.lang.NullPointerException at com.cenqua.crucible.actions.create.CreateReviewFromChangesetAction.execute(CreateReviewFromChangesetAction.java:147) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) {noformat} Steps to reproduce 1) Log out of Crucible completely 2) Go into a JIRA issue and from the fisheye tab attempt to create a review via the "Create crucible review for all x changesets in" link. 3) You will be directed to the crucible login page 4) Enter your details and when you click submit, you will get a 500 error NullPointerException and if you check your fisheye-error.log you will see the above error 5) Repeat step two and this time it will succeed as you are logged in. What is happening is the post parameters that are sent to Crucible are lost when you are redirected to login. Once you login, crucible attempts to redirect to the action you were trying to do before logging in, however without the post parameters you first passed. I.E. JIRA Issue > Create Review > Redirect to Crucible Login > Successful login > Redirect back to Create Review The post parameters passed from JIRA Issue > Create Review are not passed on, or lost between Successful login > Redirect back to Create Review.

    Atlassian JIRA | 8 years ago | Partha Kamal [Atlassian]
    java.lang.NullPointerException
  2. 0

    The error that is thrown is: {noformat} 2009-05-26 11:41:39,524 ERROR [btpool0-601] org.mortbay.log sun.reflect.NativeMethodAccessorImpl-invoke0 - Nested in javax.servlet.ServletException: java.lang.NullPointerException: java.lang.NullPointerException at com.cenqua.crucible.actions.create.CreateReviewFromChangesetAction.execute(CreateReviewFromChangesetAction.java:147) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) {noformat} Steps to reproduce 1) Log out of Crucible completely 2) Go into a JIRA issue and from the fisheye tab attempt to create a review via the "Create crucible review for all x changesets in" link. 3) You will be directed to the crucible login page 4) Enter your details and when you click submit, you will get a 500 error NullPointerException and if you check your fisheye-error.log you will see the above error 5) Repeat step two and this time it will succeed as you are logged in. What is happening is the post parameters that are sent to Crucible are lost when you are redirected to login. Once you login, crucible attempts to redirect to the action you were trying to do before logging in, however without the post parameters you first passed. I.E. JIRA Issue > Create Review > Redirect to Crucible Login > Successful login > Redirect back to Create Review The post parameters passed from JIRA Issue > Create Review are not passed on, or lost between Successful login > Redirect back to Create Review.

    Atlassian JIRA | 8 years ago | Partha Kamal [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.cenqua.crucible.actions.create.CreateReviewFromChangesetAction.execute()
    2. com.cenqua.crucible
      CreateReviewFromChangesetAction.execute
      1. com.cenqua.crucible.actions.create.CreateReviewFromChangesetAction.execute(CreateReviewFromChangesetAction.java:147)
      1 frame
    3. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2 frames