java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX=

Sonatype JIRA | Igor Fedorenko | 7 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

    As reported in MNGECLIPSE-1516 {quote} I'm running m2eclipse 0.9.9-200907201117 pointing to an authenticated Nexus repository. It appears that m2eclipse is wrapping the base 64 basic authorization header for long passwords: {noformat} java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX= at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:921) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2022) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:376) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) at org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:320) at org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:123) at org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:170) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:168) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:86) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:511) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:398) at org.apache.maven.repository.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:307) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:234) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:126) at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.recurse(DefaultLegacyArtifactCollector.java:488) at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.recurse(DefaultLegacyArtifactCollector.java:518) at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:111) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:458) at org.apache.maven.repository.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:307) at org.apache.maven.project.DefaultProjectBuilder.buildProjectWithDependencies(DefaultProjectBuilder.java:321) at org.maven.ide.eclipse.internal.embedder.MavenImpl.readProjectWithDependencies(MavenImpl.java:319) at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.readProjectWithDependencies(MavenProjectManagerImpl.java:691) at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.readProjectWithDependencies(MavenProjectManagerImpl.java:683) at org.maven.ide.eclipse.internal.project.MavenProjectFacade.getMavenProject(MavenProjectFacade.java:171) at org.maven.ide.eclipse.internal.project.WorkspaceStateWriter.mavenProjectChanged(WorkspaceStateWriter.java:52) at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.notifyProjectChangeListeners(MavenProjectManagerImpl.java:664) at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.applyMutableProjectRegistry(MavenProjectManagerImpl.java:775) at org.maven.ide.eclipse.internal.project.MavenProjectManagerRefreshJob.run(MavenProjectManagerRefreshJob.java:98) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX= at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:323) at sun.net.www.protocol.http.HttpURLConnection.setAuthenticationProperty(HttpURLConnection.java:2080) at sun.net.www.protocol.http.BasicAuthentication.setHeaders(BasicAuthentication.java:143) at sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(HttpURLConnection.java:1680) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1052) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367) ... 30 more {noformat} Note the newline after 76 characters. {quote}

    Sonatype JIRA | 7 years ago | Igor Fedorenko
    java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX=
  2. 0

    As reported in MNGECLIPSE-1516 {quote} I'm running m2eclipse 0.9.9-200907201117 pointing to an authenticated Nexus repository. It appears that m2eclipse is wrapping the base 64 basic authorization header for long passwords: {noformat} java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX= at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:921) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2022) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:376) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) at org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:320) at org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:123) at org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:170) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:168) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:86) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:511) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:398) at org.apache.maven.repository.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:307) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:234) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:126) at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.recurse(DefaultLegacyArtifactCollector.java:488) at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.recurse(DefaultLegacyArtifactCollector.java:518) at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:111) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:458) at org.apache.maven.repository.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:307) at org.apache.maven.project.DefaultProjectBuilder.buildProjectWithDependencies(DefaultProjectBuilder.java:321) at org.maven.ide.eclipse.internal.embedder.MavenImpl.readProjectWithDependencies(MavenImpl.java:319) at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.readProjectWithDependencies(MavenProjectManagerImpl.java:691) at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.readProjectWithDependencies(MavenProjectManagerImpl.java:683) at org.maven.ide.eclipse.internal.project.MavenProjectFacade.getMavenProject(MavenProjectFacade.java:171) at org.maven.ide.eclipse.internal.project.WorkspaceStateWriter.mavenProjectChanged(WorkspaceStateWriter.java:52) at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.notifyProjectChangeListeners(MavenProjectManagerImpl.java:664) at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.applyMutableProjectRegistry(MavenProjectManagerImpl.java:775) at org.maven.ide.eclipse.internal.project.MavenProjectManagerRefreshJob.run(MavenProjectManagerRefreshJob.java:98) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX= at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:323) at sun.net.www.protocol.http.HttpURLConnection.setAuthenticationProperty(HttpURLConnection.java:2080) at sun.net.www.protocol.http.BasicAuthentication.setHeaders(BasicAuthentication.java:143) at sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(HttpURLConnection.java:1680) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1052) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367) ... 30 more {noformat} Note the newline after 76 characters. {quote}

    Sonatype JIRA | 7 years ago | Igor Fedorenko
    java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX=
  3. 0

    Basic Auth in Maven Repository causes llegalArgumentException during build.

    GitHub | 4 years ago | neuhalje
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic am...kd9
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java calls php to retrieve SQL data

    Stack Overflow | 3 years ago | rrirower
    java.lang.RuntimeException: java.security.AccessControlException: access denied ("java.net.SocketPermission" "secure.justhost.com:443" "connect,resolve")
  6. 0

    Java Development

    Google Groups | 9 years ago | Blaine Nelson
    java.lang.RuntimeException: java.security.AccessControlException: access denied (java.net.SocketPermission www.google.com resolve)

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

      Illegal character(s) in message header value: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX=

      at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader()
    2. Java RT
      HttpsURLConnectionImpl.getResponseCode
      1. sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:323)
      2. sun.net.www.protocol.http.HttpURLConnection.setAuthenticationProperty(HttpURLConnection.java:2080)
      3. sun.net.www.protocol.http.BasicAuthentication.setHeaders(BasicAuthentication.java:143)
      4. sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(HttpURLConnection.java:1680)
      5. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1052)
      6. java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
      7. sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
      7 frames
    3. Maven
      StreamWagon.get
      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)
      4 frames
    4. Maven Compat
      DefaultWagonManager.getArtifact
      1. org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:320)
      2. org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:123)
      3. org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:170)
      3 frames
    5. Maven
      DefaultArtifactResolver.resolve
      1. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:168)
      2. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:86)
      3. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:511)
      4. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:398)
      4 frames
    6. Maven Core
      LegacyRepositorySystem.resolve
      1. org.apache.maven.repository.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:307)
      1 frame
    7. Maven
      MavenMetadataSource.retrieve
      1. org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:234)
      2. org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:126)
      2 frames
    8. Maven Compat
      DefaultLegacyArtifactCollector.collect
      1. org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.recurse(DefaultLegacyArtifactCollector.java:488)
      2. org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.recurse(DefaultLegacyArtifactCollector.java:518)
      3. org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:111)
      3 frames
    9. Maven
      DefaultArtifactResolver.resolve
      1. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:458)
      1 frame
    10. Maven Core
      LegacyRepositorySystem.resolve
      1. org.apache.maven.repository.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:307)
      1 frame
    11. Maven
      DefaultProjectBuilder.buildProjectWithDependencies
      1. org.apache.maven.project.DefaultProjectBuilder.buildProjectWithDependencies(DefaultProjectBuilder.java:321)
      1 frame
    12. org.maven.ide
      MavenProjectManagerRefreshJob.run
      1. org.maven.ide.eclipse.internal.embedder.MavenImpl.readProjectWithDependencies(MavenImpl.java:319)
      2. org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.readProjectWithDependencies(MavenProjectManagerImpl.java:691)
      3. org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.readProjectWithDependencies(MavenProjectManagerImpl.java:683)
      4. org.maven.ide.eclipse.internal.project.MavenProjectFacade.getMavenProject(MavenProjectFacade.java:171)
      5. org.maven.ide.eclipse.internal.project.WorkspaceStateWriter.mavenProjectChanged(WorkspaceStateWriter.java:52)
      6. org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.notifyProjectChangeListeners(MavenProjectManagerImpl.java:664)
      7. org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.applyMutableProjectRegistry(MavenProjectManagerImpl.java:775)
      8. org.maven.ide.eclipse.internal.project.MavenProjectManagerRefreshJob.run(MavenProjectManagerRefreshJob.java:98)
      8 frames
    13. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame