Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-27857

Java 11 compatibility: An internal error occurred during: "Identify jrt-fs.jar"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.19.1.Final
    • 4.19.0.Final
    • maven
    • None
    • Sprint #203 June 2021
    • 3
    • Hide
      1. Make sure you run Java 11 or newer
      2. Download clean Eclipse 2021.3 for Java Developers
      3. Install JBoss Tools (any version since 2019 has exhibited this issue)
      4. Create Java Project (Maven simple)
      5. Open the Java String class (java.lang.String)
      6. Popup shows
      7. Make sad face of weeping developer
      Show
      Make sure you run Java 11 or newer Download clean Eclipse 2021.3 for Java Developers Install JBoss Tools (any version since 2019 has exhibited this issue) Create Java Project (Maven simple) Open the Java String class (java.lang.String) Popup shows Make sad face of weeping developer
    • Undefined

    Description

      Whenever I open a core Java class in Eclipse IDE (4.19 and older) I get a popup from JBoss Tools that states

      An internal error occurred during: "Identify jrt-fs.jar". javax/xml/bind/JAXBContext
      

      This is rather annoying as it happens every time and well, doesn't jibe very well with a nice user interface experience.

      The error log shows this stack trace:

      java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
      	at org.jboss.tools.maven.core.internal.identification.NexusRepositoryIdentifier.searchArtifactFromRemoteNexusRepository(NexusRepositoryIdentifier.java:96)
      	at org.jboss.tools.maven.core.internal.identification.NexusRepositoryIdentifier.getArtifactFromRemoteNexusRepository(NexusRepositoryIdentifier.java:78)
      	at org.jboss.tools.maven.core.internal.identification.NexusRepositoryIdentifier.identify(NexusRepositoryIdentifier.java:50)
      	at org.jboss.tools.maven.core.internal.identification.FileIdentificationManager.identify(FileIdentificationManager.java:91)
      	at org.jboss.tools.maven.sourcelookup.ui.actions.AttachSourcesActionDelegate$1.run(AttachSourcesActionDelegate.java:114)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext cannot be found by org.jboss.tools.maven.core_1.9.200.v20200925-0612
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:519)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
      	... 6 more
      

      The error report also showed these settings:

      eclipse.buildId=4.19.0.I20210303-1800
      java.version=15.0.2
      java.vendor=Oracle Corporation
      BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
      Framework arguments:  -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -keyring /Users/dashorst/.eclipse_keyring
      Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/Users/dashorst/Workspaces/Banana/ -product org.eclipse.epp.package.java.product -keyring /Users/dashorst/.eclipse_keyring
      

      Attachments

        Issue Links

          Activity

            People

              jmaury@redhat.com Jeff MAURY
              martijn.dashorst@topicus.nl Martijn Dashorst (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: