Bug 541319 - IllegalStateException thrown: Unexpectedly unable to initialize a JRT filesystem
Summary: IllegalStateException thrown: Unexpectedly unable to initialize a JRT filesystem
Status: NEW
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.4   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: 2.2.3   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-19 10:30 EST by Andrej Duben CLA
Modified: 2019-02-21 14:48 EST (History)
2 users (show)

See Also:


Attachments
errorLog (2.24 KB, text/plain)
2018-11-20 03:28 EST, Andrej Duben CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Duben CLA 2018-11-19 10:30:02 EST
java.lang.IllegalStateException
at org.aspectj.weaver.bcel.ClassPathManager$JImageEntry.<init>(ClassPathManager.java:332)
at org.aspectj.weaver.bcel.ClassPathManager.addPath(ClassPathManager.java:110)
at org.aspectj.weaver.bcel.ClassPathManager.<init>(ClassPathManager.java:84)
at org.aspectj.weaver.bcel.BcelWorld.<init>(BcelWorld.java:285)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:841)
a ... lipse.core.internal.jobs.Worker.run(Worker.java:63)

Compile error: IllegalStateException thrown: Unexpectedly unable to initialize a JRT filesystem
Comment 1 Andrej Duben CLA 2018-11-19 10:34:06 EST
IDE: eclipse-jee-2018-09-win32-x86_64
Java: jdk-11.0.1
Comment 2 Andrew Clement CLA 2018-11-19 13:29:13 EST
The illegalstateexception should include a further root exception indicating the cause, do you have that? Probably further down the stacktrace.
Comment 3 Andrej Duben CLA 2018-11-20 03:28:58 EST
Created attachment 276626 [details]
errorLog

Eclipse error log for thrown exception.
Comment 4 Andrej Duben CLA 2018-11-20 03:29:43 EST
(In reply to Andrew Clement from comment #2)
> The illegalstateexception should include a further root exception indicating
> the cause, do you have that? Probably further down the stacktrace.

Hello, added it as attachment. Thank you for fast reply.
Comment 5 Alexander Kriegisch CLA 2019-02-17 19:53:14 EST
Yesterday I installed Eclipse 2018-12 with AJDT from the 4.8 developer update channel (found nothing newer). AspectJ compiler ist 1.9.2. Eclipse runs under JDK 11.0.2. Compiling with JDK 8 works, but not with JDK 11. So either I set up the JDK wrong (there is only one JAR file in JDK 11, I have no idea about Java 9+ JDK structure because until yesterday I worked with JDK 8) or something is wrong with the compiler or AJDT.

This error is shown whenever I try to recompile any of my AspectJ projects: There are no core dumps, the failure seems to happen very early.

java.lang.IllegalStateException
at org.aspectj.weaver.bcel.ClassPathManager$JImageEntry.<init>(ClassPathManager.java:332)
at org.aspectj.weaver.bcel.ClassPathManager.addPath(ClassPathManager.java:110)
at org.aspectj.weaver.bcel.ClassPathManager.<init>(ClassPathManager.java:84)
at org.aspectj.weaver.bcel.BcelWorld.<init>(BcelWorld.java:285)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:841)
a ... lipse.core.internal.jobs.Worker.run(Worker.java:63)

Compile error: IllegalStateException thrown: Unexpectedly unable to initialize a JRT filesystem
Comment 6 Andrew Clement CLA 2019-02-20 14:11:17 EST
Alexander - are you absolutely sure your eclipse is running on Java11?

The error indicates the jrt filesystem wasn't accessible on the JDK eclipse was on. This will happen if attempting to access jrt on Java8. But it should be fine on Java11.

I've created a new dev build of AJDT but I'm not sure it'll help you. I put in a guard to say dont try to access jrt if you are on < Java9 but that just pushes the problem later. If you can't access jrt then you'll see lots of problems with 'cant find object/etc'.  If your Eclipse really is on Java11, we'll have to dig a bit deeper.
Comment 7 Alexander Kriegisch CLA 2019-02-20 19:42:07 EST
I apologise, Eclipse was running on Java 8 even though my JAVA_HOME and path point to Java 11. Somehow the installer thought it should add the path to the still installed JRE 8 to eclipse.ini, which was kind of unexpected. I did not see the forest for the trees because AJDT was not working and still isn't, but now for other reasons.
Comment 8 Andrew Clement CLA 2019-02-21 14:48:04 EST
No problem, glad it was something we understand. As I mentioned on the mailing list there is a 410/dev/update site now, give it a go.