java.lang.NullPointerException

Atlassian JIRA | Partha Kamal [Atlassian] | 8 years ago
  1. 0

    Error customer is getting: {noformat} 2008-11-10 17:12:35,921 ERROR [pool-4-thread-1] fisheye.app RepositoryScanner-startRepo - Unable to initialise repository https://path/to/svn/server/ [^] due to java.lang.NullPointerException:null java.lang.NullPointerException at org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getNextToken(SVNWinSecurity.java:84) at org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getAuthHeader(SVNWinSecurity.java:68) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPNativeNTLMAuthentication.authenticate(HTTPNativeNTLMAuthentication.java:54) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:259) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:247) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:479) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:976) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:177) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:479) at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:848) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:531) at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2231) at org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2203) at org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2162) at org.tigris.subversion.javahl.SVNClient.info2(SVNClient.java:347) at com.cenqua.fisheye.svn.SvnThrottledClient.info2(SvnThrottledClient.java:111) at com.cenqua.fisheye.svn.SvnRepositoryTester.getServerRootURL(SvnRepositoryTester.java:91) at com.cenqua.fisheye.svn.SvnRepositoryTester.checkRepoSettings(SvnRepositoryTester.java:72) at com.cenqua.fisheye.svn.SvnRepositoryScanner.checkRepoSettings(SvnRepositoryScanner.java:341) at com.cenqua.fisheye.svn.SvnRepositoryScanner.validateRepo(SvnRepositoryScanner.java:260) at com.cenqua.fisheye.rep.RepositoryScanner.startRepo(RepositoryScanner.java:316) at com.cenqua.fisheye.rep.RepositoryScanner.slurp(RepositoryScanner.java:242) at com.cenqua.fisheye.rep.RepositoryScanner.ping(RepositoryScanner.java:210) at com.cenqua.fisheye.svn.SvnRepositoryEngine.doSlurp(SvnRepositoryEngine.java:80) at com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:68) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:120) at com.cenqua.fisheye.rep.RepositoryHandle.queuePingRequest(RepositoryHandle.java:110) at com.cenqua.fisheye.rep.ping.PingRequest.run(PingRequest.java:35) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {noformat} Raised issue with svnkit who have provided the following solution. {quote} Hello, Thank you for reporting this issue. We've fixed similar NPE recently and I think it could be already resolved in the latest version of SVNKit in 1.2.x branch. What version of SVNKit do you use? You may download latest 1.2.x binary from our build server (direct link: https://teamcity.svnkit.com/repository/download/bt14/4147:id/deploy/org.tmatesoft.svn_1.2.0.5153.standalone.zip [^] ). Also, you may try to change order in which HTTP authentication schemes are tried by SVNKit by setting the following system property: svnkit.http.methods=Basic,Digetst,Negotiate,NTLM So that SVNKit will only fall back to NTLM when no other scheme is available (usually mod_sspi in apache is set up in such away that it provides both Basic and NTLM schemes). {quote}

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

    Error customer is getting: {noformat} 2008-11-10 17:12:35,921 ERROR [pool-4-thread-1] fisheye.app RepositoryScanner-startRepo - Unable to initialise repository https://path/to/svn/server/ [^] due to java.lang.NullPointerException:null java.lang.NullPointerException at org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getNextToken(SVNWinSecurity.java:84) at org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getAuthHeader(SVNWinSecurity.java:68) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPNativeNTLMAuthentication.authenticate(HTTPNativeNTLMAuthentication.java:54) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:259) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:247) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:479) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:976) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:177) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:479) at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:848) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:531) at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2231) at org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2203) at org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2162) at org.tigris.subversion.javahl.SVNClient.info2(SVNClient.java:347) at com.cenqua.fisheye.svn.SvnThrottledClient.info2(SvnThrottledClient.java:111) at com.cenqua.fisheye.svn.SvnRepositoryTester.getServerRootURL(SvnRepositoryTester.java:91) at com.cenqua.fisheye.svn.SvnRepositoryTester.checkRepoSettings(SvnRepositoryTester.java:72) at com.cenqua.fisheye.svn.SvnRepositoryScanner.checkRepoSettings(SvnRepositoryScanner.java:341) at com.cenqua.fisheye.svn.SvnRepositoryScanner.validateRepo(SvnRepositoryScanner.java:260) at com.cenqua.fisheye.rep.RepositoryScanner.startRepo(RepositoryScanner.java:316) at com.cenqua.fisheye.rep.RepositoryScanner.slurp(RepositoryScanner.java:242) at com.cenqua.fisheye.rep.RepositoryScanner.ping(RepositoryScanner.java:210) at com.cenqua.fisheye.svn.SvnRepositoryEngine.doSlurp(SvnRepositoryEngine.java:80) at com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:68) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:120) at com.cenqua.fisheye.rep.RepositoryHandle.queuePingRequest(RepositoryHandle.java:110) at com.cenqua.fisheye.rep.ping.PingRequest.run(PingRequest.java:35) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {noformat} Raised issue with svnkit who have provided the following solution. {quote} Hello, Thank you for reporting this issue. We've fixed similar NPE recently and I think it could be already resolved in the latest version of SVNKit in 1.2.x branch. What version of SVNKit do you use? You may download latest 1.2.x binary from our build server (direct link: https://teamcity.svnkit.com/repository/download/bt14/4147:id/deploy/org.tmatesoft.svn_1.2.0.5153.standalone.zip [^] ). Also, you may try to change order in which HTTP authentication schemes are tried by SVNKit by setting the following system property: svnkit.http.methods=Basic,Digetst,Negotiate,NTLM So that SVNKit will only fall back to NTLM when no other scheme is available (usually mod_sspi in apache is set up in such away that it provides both Basic and NTLM schemes). {quote}

    Atlassian JIRA | 8 years ago | Partha Kamal [Atlassian]
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

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

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

      No message provided

      at org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getNextToken()
    2. SVNKit Library
      SVNWCClient.doInfo
      1. org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getNextToken(SVNWinSecurity.java:84)
      2. org.tmatesoft.svn.core.internal.util.jna.SVNWinSecurity.getAuthHeader(SVNWinSecurity.java:68)
      3. org.tmatesoft.svn.core.internal.io.dav.http.HTTPNativeNTLMAuthentication.authenticate(HTTPNativeNTLMAuthentication.java:54)
      4. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323)
      5. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:259)
      6. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:247)
      7. org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:479)
      8. org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
      9. org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:976)
      10. org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:177)
      11. org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:479)
      12. org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:848)
      13. org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:531)
      14. org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2231)
      14 frames
    3. org.tmatesoft.svn
      SVNClientImpl.info2
      1. org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2203)
      2. org.tmatesoft.svn.core.javahl.SVNClientImpl.info2(SVNClientImpl.java:2162)
      2 frames
    4. org.tigris.subversion
      SVNClient.info2
      1. org.tigris.subversion.javahl.SVNClient.info2(SVNClient.java:347)
      1 frame
    5. com.cenqua.fisheye
      PingRequest.run
      1. com.cenqua.fisheye.svn.SvnThrottledClient.info2(SvnThrottledClient.java:111)
      2. com.cenqua.fisheye.svn.SvnRepositoryTester.getServerRootURL(SvnRepositoryTester.java:91)
      3. com.cenqua.fisheye.svn.SvnRepositoryTester.checkRepoSettings(SvnRepositoryTester.java:72)
      4. com.cenqua.fisheye.svn.SvnRepositoryScanner.checkRepoSettings(SvnRepositoryScanner.java:341)
      5. com.cenqua.fisheye.svn.SvnRepositoryScanner.validateRepo(SvnRepositoryScanner.java:260)
      6. com.cenqua.fisheye.rep.RepositoryScanner.startRepo(RepositoryScanner.java:316)
      7. com.cenqua.fisheye.rep.RepositoryScanner.slurp(RepositoryScanner.java:242)
      8. com.cenqua.fisheye.rep.RepositoryScanner.ping(RepositoryScanner.java:210)
      9. com.cenqua.fisheye.svn.SvnRepositoryEngine.doSlurp(SvnRepositoryEngine.java:80)
      10. com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:30)
      11. com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:68)
      12. com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:120)
      13. com.cenqua.fisheye.rep.RepositoryHandle.queuePingRequest(RepositoryHandle.java:110)
      14. com.cenqua.fisheye.rep.ping.PingRequest.run(PingRequest.java:35)
      14 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames