Forum Stats

  • 3,734,235 Users
  • 2,246,916 Discussions


21.1: Error on startup

ToddBarry Member Posts: 14 Blue Ribbon

No issues at all with 20.4, but 21.1 gives this on startup:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hc/core5/http/ParseException

    at java.lang.Class.getDeclaredConstructors0(Native Method)

    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)

    at java.lang.Class.getConstructor0(Unknown Source)

    at java.lang.Class.newInstance(Unknown Source)

    at oracle.dbtools.raptor.newscriptrunner.CommandRegistry.addListener(

    at oracle.dbtools.raptor.newscriptrunner.CommandRegistry.addForAllStmtsListener(

    at oracle.dbtools.commands.NetCommands.registerCommands(

    at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.<init>(

    at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.main(

Caused by: java.lang.ClassNotFoundException: org.apache.hc.core5.http.ParseException

    at Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    ... 9 more


  • User_H3J7U
    User_H3J7U Member Posts: 169 Silver Badge

    The ParseException class is located in lib/httpcore5.jar.

    D:\2\Progs\sqlcl> jar -t -v -f lib/httpcore5.jar org/apache/hc/core5/http/ParseException.class
      1721 Wed Jan 22 15:10:16 UTC 2020 org/apache/hc/core5/http/ParseException.class

    Check your installation.

  • ToddBarry
    ToddBarry Member Posts: 14 Blue Ribbon

    Thanks, but the issue was with the initial version of SQLcl 21.1 that was posted.

    Version did not work and generated the described error.

    Version works correctly.

    I just happened to notice that the version of 21.1 that I downloaded today was different than the version downloaded a few weeks ago when 21.1 was first released.


Sign In or Register to comment.