java.lang.NullPointerException

Atlassian JIRA | Ben Gooding | 2 years ago
  1. 0

    Few issues with REST endpoint {{/rest-service/reviews-v1/\{reviewid\}/remind}}: * incomplete documentation: https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html#rest-service:reviews-v1:id:remind - it doesn't explain how the request should be structured and what details are returned in the response * recipients list must be provided in the request. Lack of them causes NPE, see below. * intention of this endpoint is to send reminders to incomplete participants, so recipients parameter should be optional. Lack of parameter should result in all incomplete reviewers being notified * -UI accepts email addresses too, perhaps same should be allowed in the REST call?- actually not, this endpoint sends email to incomplete participants, it would make no sense to accept email address. https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:share-content-v1:share should be used in such case At the moment, sending a message with no recipients causes NPE: {noformat} 2015-01-28 20:03:30,218 ERROR [qtp1707903278-783 ] fisheye ExceptionLoggerUtil-logError - Exception thrown during REST request:null User: null Referrer:null java.lang.NullPointerException at com.atlassian.crucible.spi.impl.DefaultReviewService$37.doInTransaction(DefaultReviewService.java:2495) at com.atlassian.crucible.spi.impl.DefaultReviewService$37.doInTransaction(DefaultReviewService.java:2482) at com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:76) at com.atlassian.crucible.spi.impl.DefaultReviewService.remindIncompleteReviewers(DefaultReviewService.java:2482) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... at $Proxy185.remindIncompleteReviewers(Unknown Source) at com.atlassian.fecrurestplugin.crucible.RestReviewService.remindIncompleteReviewers(RestReviewService.java:1944) {noformat} providing list of usernames in recipients field allows to send notifications, list of users who were found in the system and were sent a message is returned in the response. E.g. having {{/tmp/remind.xml}} file: {code:xml} <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <remindMessage> <message>Reminder message text.</message> <recipients>pswiecicki</recipients> <recipients>test</recipients> </remindMessage> {code} one can send reminder with: {code} curl -H "Content-Type: application/xml" --user $USER:$PASS --data @/tmp/remind.xml http://FISHEYE_HOST/rest-service/reviews-v1/<REVIEW_PERM_ID>/remind {code}

    Atlassian JIRA | 2 years ago | Ben Gooding
    java.lang.NullPointerException
  2. 0

    Few issues with REST endpoint {{/rest-service/reviews-v1/\{reviewid\}/remind}}: * incomplete documentation: https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html#rest-service:reviews-v1:id:remind - it doesn't explain how the request should be structured and what details are returned in the response * recipients list must be provided in the request. Lack of them causes NPE, see below. * intention of this endpoint is to send reminders to incomplete participants, so recipients parameter should be optional. Lack of parameter should result in all incomplete reviewers being notified * -UI accepts email addresses too, perhaps same should be allowed in the REST call?- actually not, this endpoint sends email to incomplete participants, it would make no sense to accept email address. https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:share-content-v1:share should be used in such case At the moment, sending a message with no recipients causes NPE: {noformat} 2015-01-28 20:03:30,218 ERROR [qtp1707903278-783 ] fisheye ExceptionLoggerUtil-logError - Exception thrown during REST request:null User: null Referrer:null java.lang.NullPointerException at com.atlassian.crucible.spi.impl.DefaultReviewService$37.doInTransaction(DefaultReviewService.java:2495) at com.atlassian.crucible.spi.impl.DefaultReviewService$37.doInTransaction(DefaultReviewService.java:2482) at com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:76) at com.atlassian.crucible.spi.impl.DefaultReviewService.remindIncompleteReviewers(DefaultReviewService.java:2482) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... at $Proxy185.remindIncompleteReviewers(Unknown Source) at com.atlassian.fecrurestplugin.crucible.RestReviewService.remindIncompleteReviewers(RestReviewService.java:1944) {noformat} providing list of usernames in recipients field allows to send notifications, list of users who were found in the system and were sent a message is returned in the response. E.g. having {{/tmp/remind.xml}} file: {code:xml} <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <remindMessage> <message>Reminder message text.</message> <recipients>pswiecicki</recipients> <recipients>test</recipients> </remindMessage> {code} one can send reminder with: {code} curl -H "Content-Type: application/xml" --user $USER:$PASS --data @/tmp/remind.xml http://FISHEYE_HOST/rest-service/reviews-v1/<REVIEW_PERM_ID>/remind {code}

    Atlassian JIRA | 2 years ago | Ben Gooding
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.NullPointerException

      No message provided

      at com.atlassian.crucible.spi.impl.DefaultReviewService$37.doInTransaction()
    2. com.atlassian.crucible
      DefaultReviewService$37.doInTransaction
      1. com.atlassian.crucible.spi.impl.DefaultReviewService$37.doInTransaction(DefaultReviewService.java:2495)
      2. com.atlassian.crucible.spi.impl.DefaultReviewService$37.doInTransaction(DefaultReviewService.java:2482)
      2 frames
    3. com.atlassian.fisheye
      DefaultTxTemplate.execute
      1. com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:76)
      1 frame
    4. com.atlassian.crucible
      DefaultReviewService.remindIncompleteReviewers
      1. com.atlassian.crucible.spi.impl.DefaultReviewService.remindIncompleteReviewers(DefaultReviewService.java:2482)
      1 frame
    5. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame