Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » IBM Semeru DFTJ incompatibility (Caused by: java.lang.IllegalAccessError: Class com/ibm/dtfj/image/j9/ImageFactory(unnamed module 0x0000000701C2CA68) can not access class jdk/internal/module/Modules(java.base) because module java.bas)
IBM Semeru DFTJ incompatibility [message #1854518] Tue, 23 August 2022 15:09 Go to next message
Richard Olson is currently offline Richard OlsonFriend
Messages: 25
Registered: April 2010
Junior Member
Good morning,

I'm entering a new query hoping to receive recommendations. Also, easier to focus on the issue. Please see my previous message, https://www.eclipse.org/forums/index.php/t/1111267/ See previous discussion at, https://bugs.eclipse.org/bugs/show_bug.cgi?id=535351

Although I continue to encounter messages like
Caused by: java.lang.IllegalAccessError: Class com/ibm/dtfj/image/j9/ImageFactory(unnamed module 0x0000000701C2CA68) can not access class jdk/internal/module/Modules(java.base) because module java.base does not export package jdk/internal/module to module unnamed module 0x0000000701C2CA68
at com.ibm.dtfj.image.j9.ImageFactory.<clinit>(ImageFactory.java:82)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:204)

I just found a new twist. I downloaded the IBM Semeru DTFJ package located at: https://www.ibm.com/support/pages/node/6537402

Next, simply unzipped and ran MAT. A valid core.dmp opens when selecting Open Heapdump. However, my extended MAT plugin project fails with the above exception after selecting Open Heapdump.

I opened IBM Semeru's MAT_HOME/plugins finding:
• com.ibm.dtfj.api_1.12.29003.202006111057.jar
• com.ibm.dtfj.j9_1.12.29003.202006111057.jar

I'm confused, I thought the IBM Semeru download version may contain updated jar files. I checked a MAT 1.12 installation finding the same jar names.

My question, do I encountered an incompatibility issue causing my exceptions? Please advise and how do I resolve?

Thanks,
Rich Olson
Re: IBM Semeru DFTJ incompatibility [message #1854569 is a reply to message #1854518] Thu, 25 August 2022 22:07 Go to previous messageGo to next message
Richard Olson is currently offline Richard OlsonFriend
Messages: 25
Registered: April 2010
Junior Member
Hi,

I wanted to provide a couple of updates.

First, using IBM Semeru 1.13 which includes DTFJ I successfully opened an IBM PHD format dump file. The problem's with DTFJ-J9 dump formats or core.dmp files.

Second, trying different ways to workaround the issue I decided to include the com.ibm.dtfj.j9_1.12.29003.202006111057.jar in the MANIFEST.MF Dependencies>Required Plugins. Once I tried to save the update I received the message:
Archive for required library: 'D:/EclipseProjects/EclipseMAT_DemoQueryTest/.metadata/.plugins/org.eclipse.pde.core/.external_libraries/com.ibm.dtfj.j9_1.12.29003.202006111057/lib/dtfj.jar' in project 'EclipseMatDemoQuery' cannot be read or is not a valid ZIP file EclipseMatDemoQuery

I can easily open the jar using 7Zip. I'm a bit lost at the moment.

Any suggestions?

Thanks,
Rich
Re: IBM Semeru DFTJ incompatibility [message #1854598 is a reply to message #1854569] Sat, 27 August 2022 15:09 Go to previous messageGo to next message
Richard Olson is currently offline Richard OlsonFriend
Messages: 25
Registered: April 2010
Junior Member
Hi,

A quick update. I resolved my module exception messages by adding --add-exports java.base/jdk.internal.module=ALL-UNNAMED to my projects VM args. I tested via two Ecli[pse projects plus successfully opening and reading two core.dmp files generated on different systems.

Rich
Re: IBM Semeru DFTJ incompatibility [message #1860740 is a reply to message #1854598] Wed, 30 August 2023 19:02 Go to previous messageGo to next message
Gary Johnston is currently offline Gary JohnstonFriend
Messages: 2
Registered: August 2023
Junior Member
Hi. I'm trying to use your workaround of "adding --add-exports java.base/jdk.internal.module=ALL-UNNAMED to my projects VM args". But I have 100s of projects (working on a large product code base). And it seems like MAT is not project-oriented. I mean, does MAT create some project I should know about? I think of it as just an Eclipse tool one can use from within one's Eclipse workbench/IDE.
Re: IBM Semeru DFTJ incompatibility [message #1860742 is a reply to message #1854598] Wed, 30 August 2023 19:24 Go to previous message
Gary Johnston is currently offline Gary JohnstonFriend
Messages: 2
Registered: August 2023
Junior Member
Never mind. I figured it out. I needed to add the line correctly to my eclipse.ini file under -vmargs:
--add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
Previous Topic:"Not a HPROF heap dump" with IBM .dmp on v1.14.0
Next Topic:Cannot group BigDecimals by value
Goto Forum:
  


Current Time: Fri Apr 26 04:25:10 GMT 2024

Powered by FUDForum. Page generated in 0.03093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top