GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter when Java 10 is installed · Issue #82 · utPLSQL/utPLSQL-cli

java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter when Java 10 is installed #82

New issue
Copy link
New issue
Copy link
Closed
Closed
java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter when Java 10 is installed#82
Copy link
Labels
bug

Description

@pesse
pesse
opened on Apr 27, 2018
Issue body actions

For cli is compiled to use Java 8 it will throw the following error when the default Java-version is 10 (or higher):

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
        at org.utplsql.api.reporter.Reporter.setAttributes(Reporter.java:80)
        at org.utplsql.api.reporter.Reporter.<init>(Reporter.java:29)
        at org.utplsql.api.reporter.DefaultReporter.<init>(DefaultReporter.java:15)
        at org.utplsql.api.reporter.ReporterFactory.createReporter(ReporterFactory.java:94)
        at org.utplsql.api.reporter.ReporterFactory.create(ReporterFactory.java:122)
        at oracle.jdbc.driver.Accessor.getORAData(Accessor.java:944)
        at oracle.jdbc.driver.OracleCallableStatement.getORAData(OracleCallableStatement.java:1864)
        at oracle.jdbc.driver.OracleCallableStatementWrapper.getORAData(OracleCallableStatementWrapper.java:789)
        at org.utplsql.api.reporter.Reporter.initDbReporter(Reporter.java:73)
        at org.utplsql.api.reporter.Reporter.init(Reporter.java:46)
        at org.utplsql.cli.ReporterManager.initReporters(ReporterManager.java:68)
        at org.utplsql.cli.RunCommand.run(RunCommand.java:158)
        at org.utplsql.cli.Cli.main(Cli.java:33)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 13 more

This can be avoided if we pack java 1.8 rt.jar into lib folder.

Activity

  1. pesse
    added
    bug
    on Apr 27, 2018
  2. pesse commented on May 17, 2018

    @pesse
    pesse
    on May 17, 2018
    MemberAuthor
    More actions

    Actually it's not 1.8 rt.jar but the following maven dependency:

    <dependency>
              <groupId>javax.xml.bind</groupId>
              <artifactId>jaxb-api</artifactId>
              <version>2.3.0</version>
    </dependency>
    
    Reacted by Halina Yatseniuk, Rafael Barros Silva, Ahmed Ali and Adnan Yağmur
    Reacted by Adnan Yağmur
    Reacted by Adnan Yağmur
  3. pesse
    added a commit that references this issue on May 17, 2018

    Bump version and fix #82

    This issue will close once commit 41367ab is merged into the 'develop' branch.
    41367ab
  4. pesse
    closed this as completedin #86on May 19, 2018
  5. pesse
    added a commit that references this issue on May 19, 2018

    Merge pull request #86 from utPLSQL/bugfix/class_not_found_jaxb

    This issue will close once commit e8251c7 is merged into the 'develop' branch.
    e8251c7
  6. owagoke commented on Mar 17, 2023

    @owagoke
    owagoke
    on Mar 17, 2023
    More actions

    Thanks a lot, It really helped me !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.