Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Problem with Oomph and cached files
Problem with Oomph and cached files [message #1746709] Thu, 03 November 2016 15:27 Go to next message
Silvestre Martins is currently offline Silvestre MartinsFriend
Messages: 84
Registered: July 2009
Member
I have a strange behavior with Oomph.
I'm using version 1.6.0 Build 2710.

I made some changes in the setup models but I don't see these changes when I run the Installer. I assume it's using cached files, even the remote files are accessible.
I tried restart the Installer several times and result is always the same.

Then I decided to start the installer from the command line with the -consoleLog option to see the log, with the flag -Doomph.setup.ecf.trace=true in the eclipse-inst.ini:
$ eclipse-inst.ext -consoleLog

I can see several exception being printed, and some messages like "returning cached content".

What is strange is that, after I run the installer like this (from command line with -consoleLog option) then the setup models are updated correctly.

Here's the list of exceptions that are printed in the console:

ECF: http://www.eclipse.org/setups/setups.zip transferLister.exception
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:198)
        at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)
        at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
        at java.io.FilterInputStream.read(Unknown Source)
        at java.io.FilterInputStream.read(Unknown Source)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:178)
        at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:73)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
ECF: http://www.eclipse.org/setups/setups.zip returning cached content
...
ECF: https://myserver.mycompany.net/eclipse/installer/setups/org.eclipse.setup transferLister.exception
org.eclipse.ecf.filetransfer.UserCancelledException:
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$FileTransferListener.handleTransferEvent(ECFURIHandlerImpl.java:881)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.fireReceiveStartEvent(AbstractRetrieveFileTransfer.java:671)
        at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:646)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:885)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:576)
ECF: https://myserver.mycompany.net/eclipse/installer/setups/org.eclipse.products.setup writing cache
ECF: https://myserver.mycompany.net/eclipse/installer/setups/org.eclipse.products.setup returning successful results
        at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
ECF: https://myserver.mycompany.net/eclipse/installer/setups/com.coriant.transnet.project.setup writing cache
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$InputStreamConnectionHandler.sendConnectionRequest(ECFURIHandlerImpl.java:1675)
ECF: https://myserver.mycompany.net/eclipse/installer/setups/com.coriant.transnet.project.setup returning successful results
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandlerImpl.java:1426)
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:303)
        at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ETagMirror$Worker.perform(ECFURIHandlerImpl.java:1180)
        at org.eclipse.oomph.util.WorkerPool$Worker.run(WorkerPool.java:428)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.ecf.filetransfer.UserCancelledException:
ECF: https://myserver.mycompany.net/eclipse/installer/setups/org.eclipse.projects.setup returning cached content
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$FileTransferListener.handleTransferEvent(ECFURIHandlerImpl.java:881)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.fireReceiveStartEvent(AbstractRetrieveFileTransfer.java:671)
        at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:646)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:885)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:576)
        at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$InputStreamConnectionHandler.sendConnectionRequest(ECFURIHandlerImpl.java:1675)
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandlerImpl.java:1426)
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:303)
        at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
        at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ETagMirror$Worker.perform(ECFURIHandlerImpl.java:1180)
        at org.eclipse.oomph.util.WorkerPool$Worker.run(WorkerPool.java:428)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
ECF: https://myserver.mycompany.net/eclipse/installer/setups/org.eclipse.setup returning cached content
ECF: http://www.eclipse.org/setups/setups.zip transferLister.exception
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:198)
        at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)
        at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
        at java.io.FilterInputStream.read(Unknown Source)
        at java.io.FilterInputStream.read(Unknown Source)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:178)
        at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:73)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
ECF: http://www.eclipse.org/setups/setups.zip returning cached content
ECF: https://myserver.mycompany.net/eclipse/installer/setups/com.coriant.transnet.project.setup uri=https://myserver.mycompany.net/eclipse/installer/setups/com.coriant.transnet.project.setup
Re: Problem with Oomph and cached files [message #1746719 is a reply to message #1746709] Thu, 03 November 2016 16:50 Go to previous message
Silvestre Martins is currently offline Silvestre MartinsFriend
Messages: 84
Registered: July 2009
Member
Ok, it seems I found the reason.

I have a script that launches the eclipse-inst.exe and it was being launched from a parent directory. It seems this doesn't work as expected when the current directory is not the directory where the eclipse-inst.exe is located. When launching from the command line it turns out that I was always launching the command line in the exact same directory, that's why it was working in that case.
I use a script because I need to perform some tasks before, such as configuring the eclipse-inst.ini file before starting the installer.

So problem reported is solved, it was a bad configuration in my scripts.
I still don't understand all those exceptions in the console log but they are not related with this cache issue.
Previous Topic:"configuration" - product and project
Next Topic: org.eclipse.equinox.p2.director code=10053 on some machines others are working
Goto Forum:
  


Current Time: Wed Apr 01 11:45:32 GMT 2020

Powered by FUDForum. Page generated in 0.01629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top