Forum Stats

  • 3,734,235 Users
  • 2,246,916 Discussions
  • 7,857,194 Comments

Discussions

21.1: Error on startup

ToddBarry
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(CommandRegistry.java:75)

    at oracle.dbtools.raptor.newscriptrunner.CommandRegistry.addForAllStmtsListener(CommandRegistry.java:649)

    at oracle.dbtools.commands.NetCommands.registerCommands(NetCommands.java:28)

    at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.<init>(SqlCli.java:234)

    at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.main(SqlCli.java:458)

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

    at java.net.URLClassLoader.findClass(Unknown 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

Answers

  • 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 21.1.0.89.1024 did not work and generated the described error.

    Version 21.1.0.104.1544 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.

    -Todd

Sign In or Register to comment.