SBT > 1.0 NullPointerException in JavaNetAuthenticator
See original GitHub issuesteps
Populating ~/.sbt/repositories file with
[repositories]
local
artifactory-libs-release: http://example.com/artifactory/libs-release
artifactory-libs-snapshot: http://example.com/artifactory/libs-snapshot
artifactory-plugin-release: http://example.com/artifactory/plugin-release
artifactory-plugin-snapshot: http://example.com/artifactory/plugin-snapshot
artifactory-libs-release-ivy: http://example.com/artifactory/libs-release , [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
Populating ~/.sbt/0.13/plugins/credentials.sbt and ~/.sbt/1.0/plugins/credentials.sbt with:
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
Exporting
export SBT_OPTS=-Dsbt.override.build.repos=true
export SBT_CREDENTIALS=$HOME/.sbt/.credentials
Running
sbt clean test +publish
On a project with
scalaVersion := "2.11.11",
crossScalaVersions := Seq("2.11.11", "2.12.3")
build.properties
sbt.version=1.0.1
problem
The build fails with the following message:
build 12-Sep-2017 11:43:14 [0m[[0m[31merror[0m] [0m[0munresolved dependency: io.netty#netty;3.7.0.Final: java.lang.NullPointerException at okhttp3.JavaNetAuthenticator.authenticate(JavaNetAuthenticator.java:37)[0m
The project also relies on a plugin that has been cross-built to 0.13.16 and 1.0.0
expectation
The build to pass. Changing the sbt.version in build.properties to 0.13.16 works fine.
notes
sbt version: 1.0 and 1.0.1
Issue Analytics
- State:
- Created 6 years ago
- Reactions:15
- Comments:23 (8 by maintainers)
Top Results From Across the Web
scala - SBT hangs waiting for orphaned subprocess to complete
Try daemonising the background process like so (run_subprocess >/dev/null 2>&1 &). The issue could be output from run_subprocess still going ...
Read more >sbt Reference Manual — sbt 1.0.x releases
This is a hotfix release for sbt 1.0.x series. ... Gigahorse to workaround NPE in JavaNetAuthenticator when used in conjunction with repositories override....
Read more >Could not run test java.lang.NullPointerException
I am encountering this same stack trace, though reproducible 100% of the time when running my tests via test:test through sbt. On the...
Read more >Scalac throws a NullPointerException (Possible BUG) - Question
Scala compiler throws a NullPointerException when it tries to infer a ... [info] Loading global plugins from /home/angelcc/.sbt/1.0/plugins ...
Read more >NullPointerException (Java SE 12 & JDK 12 )
Class NullPointerException. java.lang.Object ... public class NullPointerException extends RuntimeException ... Since: 1.0; See Also: Serialized Form ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Pretty crazy that this has not been fixed yet after more than a half year, anything we can do to get this going?
Thanks for the report.
Could you try the following as a workaround please: