java.lang.RuntimeException: java.lang.NullPointerException

GitHub | n080509 | 4 months ago
  1. 0

    run CaffeOnSpark standalone cluster,when run "make build " something error

    GitHub | 4 months ago | n080509
    java.lang.RuntimeException: java.lang.NullPointerException
  2. 0

    FULL PRODUCT VERSION : java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) ADDITIONAL OS VERSION INFORMATION : Linux daisy.blackducksoftware.com 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 21:19:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux and other Linux variants A DESCRIPTION OF THE PROBLEM : Attempting to create a connection to an NTLM proxy fails with a NullPointerException from the JRE. NTLM Client: Type 1 created 0000: 4E 54 4C 4D 53 53 50 00   01 00 00 00 07 82 08 00  NTLMSSP......... 0010: 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00  ................ NTLM Client: Type 2 received 0000: 4E 54 4C 4D 53 53 50 00   02 00 00 00 00 00 00 00  NTLMSSP......... 0010: 00 00 00 00 05 82 89 00   0B 87 81 B6 2D 6E 8B C1  ............-n.. 0020: 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00  ................ java.lang.RuntimeException: java.lang.NullPointerException         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1455)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2979)         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:489)         at com.blackduck.proxy.TestProxyHttpUrlConnection.connect(TestProxyHttpUrlConnection.java:43)         at com.blackduck.proxy.TestProxyHttpUrlConnection.main(TestProxyHttpUrlConnection.java:31) Caused by: java.lang.NullPointerException         at com.sun.security.ntlm.Client.type3(Client.java:161)         at sun.net.www.protocol.http.ntlm.NTLMAuthentication.buildType3Msg(NTLMAuthentication.java:241)         at sun.net.www.protocol.http.ntlm.NTLMAuthentication.setHeaders(NTLMAuthentication.java:216)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1607)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)         ... 2 more Inspecting the code Client.type3() assumes that NTLM.readSecurityBuffer will never return null, but it will return null if the optional target information is not present. REGRESSION. Last worked in version 7u80 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Connect to an http proxy that returns NTLM challenge data shown above. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The connection attempt should succeed if valid credentials are supplied. ACTUAL - NullPointerException ERROR MESSAGES/STACK TRACES THAT OCCUR : java.lang.RuntimeException: java.lang.NullPointerException         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1455)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2979)         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:489)         at com.blackduck.proxy.TestProxyHttpUrlConnection.connect(TestProxyHttpUrlConnection.java:43)         at com.blackduck.proxy.TestProxyHttpUrlConnection.main(TestProxyHttpUrlConnection.java:31) Caused by: java.lang.NullPointerException         at com.sun.security.ntlm.Client.type3(Client.java:161)         at sun.net.www.protocol.http.ntlm.NTLMAuthentication.buildType3Msg(NTLMAuthentication.java:241)         at sun.net.www.protocol.http.ntlm.NTLMAuthentication.setHeaders(NTLMAuthentication.java:216)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1607)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)         ... 2 more REPRODUCIBILITY : This bug can be reproduced always.

    JDK Bug System | 9 months ago | Webbug Group
    java.lang.RuntimeException: java.lang.NullPointerException
  3. 0

    FULL PRODUCT VERSION : java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) ADDITIONAL OS VERSION INFORMATION : Linux daisy.blackducksoftware.com 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 21:19:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux and other Linux variants A DESCRIPTION OF THE PROBLEM : Attempting to create a connection to an NTLM proxy fails with a NullPointerException from the JRE. NTLM Client: Type 1 created 0000: 4E 54 4C 4D 53 53 50 00   01 00 00 00 07 82 08 00  NTLMSSP......... 0010: 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00  ................ NTLM Client: Type 2 received 0000: 4E 54 4C 4D 53 53 50 00   02 00 00 00 00 00 00 00  NTLMSSP......... 0010: 00 00 00 00 05 82 89 00   0B 87 81 B6 2D 6E 8B C1  ............-n.. 0020: 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00  ................ java.lang.RuntimeException: java.lang.NullPointerException         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1455)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2979)         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:489)         at com.blackduck.proxy.TestProxyHttpUrlConnection.connect(TestProxyHttpUrlConnection.java:43)         at com.blackduck.proxy.TestProxyHttpUrlConnection.main(TestProxyHttpUrlConnection.java:31) Caused by: java.lang.NullPointerException         at com.sun.security.ntlm.Client.type3(Client.java:161)         at sun.net.www.protocol.http.ntlm.NTLMAuthentication.buildType3Msg(NTLMAuthentication.java:241)         at sun.net.www.protocol.http.ntlm.NTLMAuthentication.setHeaders(NTLMAuthentication.java:216)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1607)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)         ... 2 more Inspecting the code Client.type3() assumes that NTLM.readSecurityBuffer will never return null, but it will return null if the optional target information is not present. REGRESSION. Last worked in version 7u80 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Connect to an http proxy that returns NTLM challenge data shown above. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The connection attempt should succeed if valid credentials are supplied. ACTUAL - NullPointerException ERROR MESSAGES/STACK TRACES THAT OCCUR : java.lang.RuntimeException: java.lang.NullPointerException         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1455)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2979)         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:489)         at com.blackduck.proxy.TestProxyHttpUrlConnection.connect(TestProxyHttpUrlConnection.java:43)         at com.blackduck.proxy.TestProxyHttpUrlConnection.main(TestProxyHttpUrlConnection.java:31) Caused by: java.lang.NullPointerException         at com.sun.security.ntlm.Client.type3(Client.java:161)         at sun.net.www.protocol.http.ntlm.NTLMAuthentication.buildType3Msg(NTLMAuthentication.java:241)         at sun.net.www.protocol.http.ntlm.NTLMAuthentication.setHeaders(NTLMAuthentication.java:216)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1607)         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)         ... 2 more REPRODUCIBILITY : This bug can be reproduced always.

    JDK Bug System | 9 months ago | Webbug Group
    java.lang.RuntimeException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Oozie null pointer exception when submitting jobs

    Stack Overflow | 2 years ago | scrayon
    java.lang.RuntimeException: java.lang.NullPointerException

    2 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 com.sun.security.ntlm.Client.type3()
    2. Java RT
      HttpURLConnection.getResponseCode
      1. com.sun.security.ntlm.Client.type3(Client.java:161)
      2. sun.net.www.protocol.http.ntlm.NTLMAuthentication.buildType3Msg(NTLMAuthentication.java:241)
      3. sun.net.www.protocol.http.ntlm.NTLMAuthentication.setHeaders(NTLMAuthentication.java:216)
      4. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1607)
      5. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
      6. java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
      6 frames
    3. Maven
      MavenMetadataSource.retrieve
      1. org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
      2. org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
      3. org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
      4. org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
      5. org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
      6. org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)
      7. org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)
      8. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
      9. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
      10. org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
      11. org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:251)
      12. org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:163)
      13. org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:299)
      13 frames
    4. org.apache.maven
      DefaultExtensionManager.addExtension
      1. org.apache.maven.extension.DefaultExtensionManager.addExtension(DefaultExtensionManager.java:115)
      1 frame
    5. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(DefaultLifecycleExecutor.java:196)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:178)
      3. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      4. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      4 frames
    6. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      1 frame
    7. org.apache.maven
      CompatibleMain.main
      1. org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    9. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames