-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[error] java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. #2015
Comments
I also had this issue. In my case I added a dependency on Hbase 0.98.0-hadoop2, and the error introduced was "java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = junit#junit;4.10". The above mentioned workaround of introducing Junit as an explicit dependency did not work. I was able to get the dependency to resolve by adding an exclusion rule to the Hbase dependency that excluded Junit. |
I can confirm this happens on 0.13.8 as well. |
Does anyone have a reproducible build file I can use? It seems like it's related to transitive dependencies and manually added exclude introducing some kind of inconsistency. |
I get the following error when I type
I have Mac (OS El Capitan) with spark 1.6.0, java 1.8.0_73 and sbt 0.13.9 sbt.build file reads:
|
@minroh That's a build file for sbt-pom-reader 1.0. I'm a bit confused as to why you're using that - https://github.com/sbt/sbt-pom-reader/blob/v1.0/build.sbt |
@eed3si9n I know but that's the only type of build.sbt on my computer when I use |
@minroh Do you have |
@eed3si9n No, In my project folder inside spark folder, I have the following and the subfolders do not contain Build.scala either. Scala and Spark folders are in the same level on my computer, and
|
@minroh I guess I should've said |
Yes. I downloaded spark from Apache Spark Download page instead of |
@minroh I was able to reproduce this issue for the |
diff --git a/src/java/org/apache/ivy/core/report/ResolveReport.java b/src/java/org/apache/ivy/core/report/ResolveReport.java
index 983f514..54479e5 100644
--- a/src/java/org/apache/ivy/core/report/ResolveReport.java
+++ b/src/java/org/apache/ivy/core/report/ResolveReport.java
@@ -232,7 +232,11 @@ public class ResolveReport {
for (Iterator iter = dependencies.iterator(); iter.hasNext();) {
IvyNode dependency = (IvyNode) iter.next();
if (!dependency.isCompletelyEvicted() && !dependency.hasProblem()) {
- artifacts.addAll(Arrays.asList(dependency.getSelectedArtifacts(artifactFilter)));
+ try {
+ artifacts.addAll(Arrays.asList(dependency.getSelectedArtifacts(artifactFilter)));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
} |
Why isn't the workaround by @eed3si9n the solution (i.e., there's no pull request to resolve this issue)? There should be no breaking changes between minor versions of sbt. |
There seems to be a regression in 0.13.12 regarding to this bug. With our project, we don't get "impossible to get artifacts ..." with 0.13.11. But with 0.13.12, we do. |
I also see a regression when combined with sbt-ensime, e.g. in our scripted tests |
With sbt 0.13.13 issue still persists (though for me error happens only when importing project in Intellij IDEA, not when building from console). With 0.13.11 it works just fine.
which is a necessary condition for reproducing the issue, the project imports OK if i comment it out. |
Bumping the sbt version to 0.13.9 worked for me. |
Per discussion with @jsuereth opening a ticket for sbt project.
After switching from 0.12.4 to 0.13.8 of sbt we are getting the following error in the build:
overrideDependencies did not work, the only workaround found was to explicitly include httpmime:4.2.3 in the list of dependencies. sbt issues a warning as the result, but at least the build goes through.
It seem that similar issue was reported here:
#1598
And discussed here:
http://stackoverflow.com/questions/16614794/illegalstateexception-impossible-to-get-artifacts-when-data-has-not-been-loaded
The text was updated successfully, but these errors were encountered: