Skip to Main Content

SQLcl: MCP Server & SQL Prompt

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Exception when using SQLcl

ChuckETSep 14 2019 — edited Sep 23 2019

I am getting the following error when I attempt to use SQLcl.  I've attempted to use the single downloaded version and the version that comes with SQL Developer and I get the same problem.  I encounter the error whether I launch the exe directly or invoke through a Windows command window.  I'm hopeful one of you out there has an inkling about what the problem is.  I appreciate any ideas.

Exception in thread "Checkforupdates" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;

        at org.apache.http.client.utils.URLEncodedUtils.urlDecode(URLEncodedUtils.java:591)

        at org.apache.http.client.utils.URLEncodedUtils.decodeFormFields(URLEncodedUtils.java:620)

        at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:317)

        at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:250)

        at org.apache.http.client.utils.URIBuilder.parseQuery(URIBuilder.java:110)

        at org.apache.http.client.utils.URIBuilder.digestURI(URIBuilder.java:191)

        at org.apache.http.client.utils.URIBuilder.<init>(URIBuilder.java:90)

        at org.apache.http.impl.client.DefaultRedirectStrategy.createLocationURI(DefaultRedirectStrategy.java:189)

        at org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(DefaultRedirectStrategy.java:148)

        at org.apache.http.impl.client.DefaultRedirectStrategy.getRedirect(DefaultRedirectStrategy.java:221)

        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:121)

        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:221)

        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)

        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)

        at oracle.dbtools.versions.CheckForUpdates.loadFromConfig(CheckForUpdates.java:306)

        at oracle.dbtools.versions.CheckForUpdates.check(CheckForUpdates.java:225)

        at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli$2.run(SqlCli.java:521)

Comments
Post Details
Added on Sep 14 2019
5 comments
756 views