Skip to Main Content

Oracle Developer Tools for Visual Studio

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Offline installation problems ODT tools

4186892Feb 11 2020 — edited Jun 16 2020

Hi,

My company's network is behind a firewall and does not have a direct connection to internet. I tried to force-install it with the VSIXinstaller.exe but that did not work either.  Relevant part from the log:

'

11-2-2020 10:57:56 - Certificate is invalid: Oracle.VsDevTools.16.0.vsix

11-2-2020 10:57:56 - Cache failed. Retrying download of 'Oracle.VsDevTools.16.0,version=19.3.0.0'.

11-2-2020 10:57:56 - Waarde kan niet null zijn.

Parameternaam: uri

11-2-2020 10:57:56 - Waarde kan niet null zijn.

Parameternaam: uri

11-2-2020 10:57:56 - Activity threw exception System.ArgumentNullException: Waarde kan niet null zijn.

Parameternaam: uri

11-2-2020 10:57:56 - Skipping cache of package 'Oracle.VsDevTools.16.0,version=19.3.0.0' since installing or downloading it failed

11-2-2020 10:57:56 - Skipping cache of package 'Component.Oracle.VsDevTools.16.0,version=19.3.0.0' since the package or a parent package had a vital failure.

11-2-2020 10:58:31 - Install Error : System.AggregateException: Er zijn één of meer fouten opgetreden. ---> Microsoft.VisualStudio.Setup.PackageFailureException: Package 'Oracle.VsDevTools.16.0' failed to download

   bij Microsoft.VisualStudio.Setup.InstallOperation.Run(CancellationToken token)

   bij Microsoft.VisualStudio.Setup.Engine.RunOperation(InstallOperation installOperation, CancellationToken token, ExecuteAction action, ITelemetryOperation telemetryOperation)

   bij Microsoft.VisualStudio.Setup.Engine.RunCoreOperation(InstallOperation coreOperation, ExecuteAction action, ITelemetryOperation telemetryOperation, CancellationToken token)

   bij Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)

   bij Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0()

   bij System.Threading.Tasks.Task`1.InnerInvoke()

   bij System.Threading.Tasks.Task.Execute()

   --- Einde van intern uitzonderingsstackpad ---

   bij System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

   bij System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)

   bij Microsoft.VisualStudio.ExtensionManager.SetupEngineService.Install()

   bij Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)

   bij Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)

   bij Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)

   bij Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)

---> (Interne uitzondering #0) Microsoft.VisualStudio.Setup.PackageFailureException: Package 'Oracle.VsDevTools.16.0' failed to download

   bij Microsoft.VisualStudio.Setup.InstallOperation.Run(CancellationToken token)

   bij Microsoft.VisualStudio.Setup.Engine.RunOperation(InstallOperation installOperation, CancellationToken token, ExecuteAction action, ITelemetryOperation telemetryOperation)

   bij Microsoft.VisualStudio.Setup.Engine.RunCoreOperation(InstallOperation coreOperation, ExecuteAction action, ITelemetryOperation telemetryOperation, CancellationToken token)

   bij Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)

   bij Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0()

   bij System.Threading.Tasks.Task`1.InnerInvoke()

   bij System.Threading.Tasks.Task.Execute()<---

'

any ideas?

This post has been answered by Christian.Shay -Oracle on Jun 16 2020
Jump to Answer

Comments

gimbal2
The error seems really off to me.
A message body reader for Java class client.Pair, and Java type class client.Pair, and MIME media type text/html; charset=utf-8
Jersey seems to be either expecting or getting HTML content as a response. I'm wondering if the JAX-RS service you are invoking is actually doing what you are thinking it should be doing.
873896
Jersey seems to be either expecting or getting HTML content as a response. I'm wondering if
the JAX-RS service you are invoking is actually doing what you are thinking it should be doing
Please note that the first 2 lines are output of my client programm. The http error code is 415. That means that only the error message is text/html. If only using MediaType.APPLICATION_XML on the various occurences instead of ...JSON the program works perfect! Also in its current form using curl as indicated in the comment of the server class, it works with JSON perfectly.

The problem is imho the client of Jersey, which does not perfomr the right (JSON) serialization.
gimbal2
de-serialization since the crash seems to happen in getEntity(). The post request you send seems to work just fine, so the serialization part must work.

I have no clue what could be wrong. If you get no other responses I would try the jersey user mailing list:

https://java.net/projects/jersey/lists
873896
Posted on the user list and created an entry to the issues database of Jersey:

https://java.net/jira/browse/JERSEY-1879

However, I neither way I get some response. Seems that either nobody cares or that my question is somehow ridiculous. Btw. I am not the only one:

http://stackoverflow.com/questions/12630917/posting-json-via-jersey

The hints provided in this posting do not operate, or at least I cannot Interpret them correctly.
873896
I found the error:

resource.type(MediaType.APPLICATION_JSON);
resource.accept(MediaType.APPLICATION_JSON);
ClientResponse response = resource.post(ClientResponse.class, pair);

The methods of WebResource (ie post) always create new WebResource.Builder objects. That is setting the type to MediaType.APPLICATION_JSON is done in an object for the garbage collector, and not the one which issues
post.

The following code operates.

WebResource resource = getHttpResource();
WebResource.Builder builder = resource.getRequestBuilder();
builder.accept(MediaType.APPLICATION_JSON_TYPE);
builder.type(MediaType.APPLICATION_JSON_TYPE);
ClientResponse response = builder.post(ClientResponse.class, pair);

However, this behavior is poorly documented and contrintuitive. For chaining/fluent API the passed objects better should be changed and a reference to them returned.

Hower, many thanks for your help.
gimbal2
This strikes me as something very curious and potentially wrong. I would expect that this internally constructed builder would adopt the resource settings and apparently you have now proven this is not the case. At least not in the version of Jersey you're using. On the other hand I have not worked with the JAX-RS API long enough yet to fully understand its inner workings, perhaps I'm just making false claims.

Nice catch by the way, and thanks for posting back a solution.
r035198x
The builder pattern is used here so you must use
response = resource.type(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON).post(ClientResponse.class, pair);
Edited by: r035198x on May 8, 2013 7:00 AM
1 - 7

Post Details

Added on Feb 11 2020
10 comments
7,886 views