Uploaded image for project: 'Apache Hop (Retired)'
  1. Apache Hop (Retired)
  2. HOP-3941

Missing javax libraries in mail/pop functionality

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Actions, API, Build, Transforms
    • None

    Description

      When opening a workflow this error is seen:

       

      java.lang.NoClassDefFoundError: javax/activation/DataSource
          at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
          at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
          at java.base/java.lang.Class.getConstructor0(Class.java:3342)
          at java.base/java.lang.Class.newInstance(Class.java:556)
          at org.apache.hop.core.plugins.PluginRegistry.loadClass(PluginRegistry.java:450)
          at org.apache.hop.workflow.action.ActionMeta.<init>(ActionMeta.java:104)
          at org.apache.hop.workflow.WorkflowMeta.loadXml(WorkflowMeta.java:541)
          at org.apache.hop.workflow.WorkflowMeta.<init>(WorkflowMeta.java:422)
          at org.apache.hop.ui.hopgui.file.workflow.HopWorkflowFileType.openFile(HopWorkflowFileType.java:133)
          at org.apache.hop.ui.hopgui.delegates.HopGuiFileDelegate.fileOpen(HopGuiFileDelegate.java:107)
          at org.apache.hop.ui.hopgui.delegates.HopGuiAuditDelegate.openLastFiles(HopGuiAuditDelegate.java:108)
          at org.apache.hop.projects.gui.ProjectsGuiPlugin.enableHopGuiProject(ProjectsGuiPlugin.java:759)
          at org.apache.hop.projects.xp.HopGuiStartProjectLoad.callExtensionPoint(HopGuiStartProjectLoad.java:121)
          at org.apache.hop.core.extension.ExtensionPointMap.callExtensionPoint(ExtensionPointMap.java:149)
          at org.apache.hop.core.extension.ExtensionPointHandler.callExtensionPoint(ExtensionPointHandler.java:41)
          at org.apache.hop.ui.hopgui.HopGui.lambda$open$0(HopGui.java:353)
          at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
          at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4320)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3943)
          at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:380)
          at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:300)
      Caused by: java.lang.ClassNotFoundException: Unable to load class 'javax.activation.DataSource' in this classloader or in the parent
          at org.apache.hop.core.plugins.HopURLClassLoader.loadClass(HopURLClassLoader.java:96)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          ... 22 more
      Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource
          at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
          at org.apache.hop.core.plugins.HopURLClassLoader.loadClassFromThisLoader(HopURLClassLoader.java:66)
          at org.apache.hop.core.plugins.HopURLClassLoader.loadClass(HopURLClassLoader.java:91)
          ... 23 more Edited 

      We need to move from javax.activation to jakarta.activation and to jakarta.mail:

      https://mvnrepository.com/artifact/com.sun.mail/jakarta.mail/2.0.1

      Attachments

        Activity

          People

            mcasters Matt Casters
            mcasters Matt Casters
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: