java.lang.NullPointerException

JIRA | DI2E SysAdmin | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    We are migrating two dozen projects from a completely different JIRA instance into ours. I found Botron's configuration manager, which is awesome. So the workflows, etc are all moved. Then the plan was to use a single JIRA export file, put it in the jira-data/import directory. Unroll an attachments directory in jira-data/import and do project-by-project imports. Given that we're doing this for 2 dozen projects, I would LOVE to be able to script the import process using JCLI. I tried this command with the results as shown: {code} ./jira.sh --action restoreExport --project MIG --file 2014-Aug-11--1009.zip -v Server address: https://russell.xxxxx.net/rpc/soap/jirasoapservice-v2 Successful login to: https://russell.xxxxx.net/rpc/soap/jirasoapservice-v2 by user: karla.russell. URL requested: https://russell.xxxxx.net/secure/admin/WebSudoAuthenticate.jspa?os_username=karla.russell&os_password=***&authenticate=Confirm&webSudoIsPost=true&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoPassword=*** Request type: GET Content type: text/html Reading Key: JSESSIONID Val: 42080BD872753CAD4D0CCBD290820F30 Reading Key: atlassian.xsrf.token Val: BL4S-LU38-KDZP-E60Y|0430c22f199ac6c9d18a6132bc6c061ca5989d78|lin Response code: 200, message: OK, url: https://russell.xxxxx.net/secure/admin/WebSudoAuthenticate.jspa?os_username=karla.russell&os_password=***&authenticate=Confirm&webSudoIsPost=true&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoPassword=*** 84d2cb3061b7c102ee961a49bd1a2f4ad451d95a logged out. Exception: java.lang.NullPointerException java.lang.NullPointerException at java.util.regex.Matcher.toMatchResult(libgcj.so.10) at java.util.Scanner.myCoreNext(libgcj.so.10) at java.util.Scanner.myPrepareForNext(libgcj.so.10) at java.util.Scanner.myNextLine(libgcj.so.10) at java.util.Scanner.hasNextLine(libgcj.so.10) at org.swift.common.cli.AbstractRestClient.streamToString(AbstractRestClient.java:1071) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:666) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:464) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:451) at org.swift.jira.cli.JiraClient.doWebSudoLogin(JiraClient.java:1485) at org.swift.jira.cli.ExportHelper.restoreExport(ExportHelper.java:377) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:839) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:122) at org.swift.common.cli.CliClient.doWork(CliClient.java:392) at org.swift.jira.cli.JiraClient.main(JiraClient.java:109) {code} My 1st question, is the restoreExport action supposed to support importing of a single project? 2nd question: If so, any clue what I'm doing wrong? I only started using JCLI an hour ago. But I've been able to create an issue. For what it's worth, I get a NullPointerException when I do the getServerInfo action too.

    JIRA | 3 years ago | DI2E SysAdmin
    java.lang.NullPointerException
  2. 0

    We are migrating two dozen projects from a completely different JIRA instance into ours. I found Botron's configuration manager, which is awesome. So the workflows, etc are all moved. Then the plan was to use a single JIRA export file, put it in the jira-data/import directory. Unroll an attachments directory in jira-data/import and do project-by-project imports. Given that we're doing this for 2 dozen projects, I would LOVE to be able to script the import process using JCLI. I tried this command with the results as shown: {code} ./jira.sh --action restoreExport --project MIG --file 2014-Aug-11--1009.zip -v Server address: https://russell.xxxxx.net/rpc/soap/jirasoapservice-v2 Successful login to: https://russell.xxxxx.net/rpc/soap/jirasoapservice-v2 by user: karla.russell. URL requested: https://russell.xxxxx.net/secure/admin/WebSudoAuthenticate.jspa?os_username=karla.russell&os_password=***&authenticate=Confirm&webSudoIsPost=true&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoPassword=*** Request type: GET Content type: text/html Reading Key: JSESSIONID Val: 42080BD872753CAD4D0CCBD290820F30 Reading Key: atlassian.xsrf.token Val: BL4S-LU38-KDZP-E60Y|0430c22f199ac6c9d18a6132bc6c061ca5989d78|lin Response code: 200, message: OK, url: https://russell.xxxxx.net/secure/admin/WebSudoAuthenticate.jspa?os_username=karla.russell&os_password=***&authenticate=Confirm&webSudoIsPost=true&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoPassword=*** 84d2cb3061b7c102ee961a49bd1a2f4ad451d95a logged out. Exception: java.lang.NullPointerException java.lang.NullPointerException at java.util.regex.Matcher.toMatchResult(libgcj.so.10) at java.util.Scanner.myCoreNext(libgcj.so.10) at java.util.Scanner.myPrepareForNext(libgcj.so.10) at java.util.Scanner.myNextLine(libgcj.so.10) at java.util.Scanner.hasNextLine(libgcj.so.10) at org.swift.common.cli.AbstractRestClient.streamToString(AbstractRestClient.java:1071) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:666) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:464) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:451) at org.swift.jira.cli.JiraClient.doWebSudoLogin(JiraClient.java:1485) at org.swift.jira.cli.ExportHelper.restoreExport(ExportHelper.java:377) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:839) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:122) at org.swift.common.cli.CliClient.doWork(CliClient.java:392) at org.swift.jira.cli.JiraClient.main(JiraClient.java:109) {code} My 1st question, is the restoreExport action supposed to support importing of a single project? 2nd question: If so, any clue what I'm doing wrong? I only started using JCLI an hour ago. But I've been able to create an issue. For what it's worth, I get a NullPointerException when I do the getServerInfo action too.

    JIRA | 3 years ago | DI2E SysAdmin
    java.lang.NullPointerException
  3. 0

    Java simple networking program works in Eclipse, not in terminal

    Stack Overflow | 6 years ago | Matt Robertson
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Scanner class in Java5 throw java.lang.NullPointerException

    Stack Overflow | 5 years ago | cheng
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.util.regex.Matcher.toMatchResult()
    2. Java RT
      Scanner.hasNextLine
      1. java.util.regex.Matcher.toMatchResult(libgcj.so.10)
      2. java.util.Scanner.myCoreNext(libgcj.so.10)
      3. java.util.Scanner.myPrepareForNext(libgcj.so.10)
      4. java.util.Scanner.myNextLine(libgcj.so.10)
      5. java.util.Scanner.hasNextLine(libgcj.so.10)
      5 frames
    3. org.swift.common
      AbstractRestClient.restRequest
      1. org.swift.common.cli.AbstractRestClient.streamToString(AbstractRestClient.java:1071)
      2. org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:666)
      3. org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:464)
      4. org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:451)
      4 frames
    4. org.swift.jira
      JiraClient.handleRequest
      1. org.swift.jira.cli.JiraClient.doWebSudoLogin(JiraClient.java:1485)
      2. org.swift.jira.cli.ExportHelper.restoreExport(ExportHelper.java:377)
      3. org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:839)
      3 frames
    5. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:122)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:392)
      2 frames
    6. org.swift.jira
      JiraClient.main
      1. org.swift.jira.cli.JiraClient.main(JiraClient.java:109)
      1 frame