Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2 RC1] cannot download bigger artifacts behind corporate-proxy #1455

Closed
lostiniceland opened this issue May 6, 2016 · 13 comments
Closed
Assignees
Milestone

Comments

@lostiniceland
Copy link
Contributor

lostiniceland commented May 6, 2016

With 3.2 RC1 I get FileNotFoundException when downloading certain JARs from JPM.

This is probably caused by our corporate-proxy (McAffee) which also does virus-scanning. When the download and scanning of a artifact takes longer then the download is redirected.

java.io.FileNotFoundException: [http://repo1.maven.org/maven2/org/apache/cxf/cxf-rt-ws-security/3.1.5/cxf-rt-ws-security-3.1.5.jar] at aQute.bnd.jpm.StoredRevisionCache.download(StoredRevisionCache.java:131) at aQute.bnd.jpm.Repository.scheduleDownload(Repository.java:292) at aQute.bnd.jpm.Repository.getLocal(Repository.java:254) at aQute.bnd.jpm.Repository.get(Repository.java:237) at bndtools.model.repo.RepositoryEntry.getFile(RepositoryEntry.java:117) at bndtools.views.repository.RepositoriesView$5$1.run(RepositoriesView.java:313) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

First I expected that this is something which has to be configured in our proxy, but going back to BndTools 3.1, the artifact can be downloaded. Since there were some changes in bnd regarding proxies, this must be a regression.

@pkriens
Copy link
Member

pkriens commented May 6, 2016

Do you explicitly setup a bnd proxy ( ~/.bnd/settings.xml)?

@bjhargrave
Copy link
Member

Do you explicitly setup a bnd proxy ( ~/.bnd/settings.xml)?

See http://bnd.bndtools.org/instructions/connection-settings.html

@lostiniceland
Copy link
Contributor Author

No, I only set the proxy in Eclipse preferences. Will have a look at the new settings...

@pkriens
Copy link
Member

pkriens commented May 6, 2016

Would you be able to show a wireshark trace?

@lostiniceland
Copy link
Contributor Author

I will try to provide a trace next week, with the help from a colleague

@lostiniceland
Copy link
Contributor Author

lostiniceland commented May 10, 2016

See attached traces.
I did one trace with 3.1 which works and another failing one with 3.2RC1. I cleared the repo-cache, deleted the cxf-core artifact, and added it again for each test.

Not sure if the broken-trace has enough information, but thats what I could get out of Wireshark. I had a filter for Http and used the result of this to follow the TCP-stream.

wireshark-traces.zip

@pkriens
Copy link
Member

pkriens commented May 10, 2016

On which files did you get a FileNotFoundException with the broken run? The trace does not show any anomaly :-(

@lostiniceland
Copy link
Contributor Author

cxf-core-3.1.5

As said, I used "Delete Cache" from the context-menu, then "Delete" on the artifact org.apache.cxf-core..., started Wireshark, and then draged the version-vignette from JPM4J to BndTools. I stopped Wireshark once the artifact showed up in the JPM4J-Repo (either with the downloaded icon or without)

I wonder why there are no anomalies, because the broken-trace is much shorter than the working-trace. If you could give me some advice how to setup Wireshark I am happy to go for another test-run.

I read in the bnd-documentation linked by BJ that bnd now also takes maven-settings into account. So I checked mine, but I do not have any proxies configured there (only mirrors to a local Nexus).

Since proxies are probably not so easy, there might be another solution: since you already honor maven-settings, how about using the mirror (Artifactory/Nexus) if one is specified. Bnd could just replace the url from JPM4J with the mirror-parts. This way you could completely bypass the proxy-issues and save traffic.

@psoreide
Copy link
Member

Could this be commit 99d0970 in combination with the read timeout of 5 seconds in aQute.bnd.http.HttpClient?

@pkriens
Copy link
Member

pkriens commented May 11, 2016

That is a good one .... let me check this.

@pkriens
Copy link
Member

pkriens commented May 13, 2016

It might indeed be the problem ... I've increased it for now to 60 secs so it makes 3.2

@bjhargrave
Copy link
Member

Fixed by #1463

@bjhargrave bjhargrave added this to the 3.2 milestone May 13, 2016
@lostiniceland
Copy link
Contributor Author

Retesting with latest 3.2 RC3 I can confirm the issue is solved. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants