org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: HTTP Server 'Internal Error': http://portal.server.test123.de/repo/content/repositories/p2-releases/content.xml

Sonatype JIRA | Jörg Sesterhenn | 3 years ago
  1. 0

    Setup: ----------- We use the experimental plugins in our nexus to generate a p2-repository out of our snapshots-repository on the fly. We set up a p2-proxy for the repo unter snapshots/.meta/p2 and add this p2-proxy of snapshots to the repositories that tycho reads during the build. Problem: ----------- When tycho wants to read said p2-proxy it sometimes fails due to beeing unable to read the contents.xml or artifacts.xml. Possible Explanation: ----------- I guess this happens when tycho reads incomplete data during the on-the-fly-generation of the p2 repository. Might I be right in my assumption? Expected behaviour: ----------- I'd expect that Nexus always responds with a proper p2-repository. In case it is just beeing recreated Nexus should either stall the build and deliver when ready, or serve old data until the new data is fully incorporated. Any ideas what it takes to fix this? Do you have a workaround for this? Stacktraces: ------------ [WARNING] Failed to access p2 repository http://portal.server.test123.de/repo/content/repositories/p2-snapshots, use local cache. An error occurred while downloading http://portal.server.test123.de/repo/content/repositories/p2-snapshots/content.xml. The cache file /srv/tomcat/instances/hudson/.m2/repository/.cache/tycho/p2-repository-metadata/downloading/content-919337264.xml could not be renamed to /srv/tomcat/instances/hudson/.m2/repository/.cache/tycho/p2-repository-metadata/downloading/content-919337264.xml. [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s) [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://portal.server.test123.de/repo/content/repositories/p2-snapshots. [DEBUG] Closing connection to remote [ERROR] Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://portal.server.test123.de/repo/content/repositories/p2-snapshots. -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://portal.server.test123.de/repo/content/repositories/p2-snapshots. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://portal.server.test123.de/repo/content/repositories/p2-snapshots. at org.eclipse.tycho.p2.target.TargetPlatformBuilderImpl.addP2Repository(TargetPlatformBuilderImpl.java:253) at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.addEntireP2RepositoryToTargetPlatform(P2TargetPlatformResolver.java:312) at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:201) at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100) at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 11 more Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://portal.server.test123.de/repo/content/repositories/p2-snapshots. at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:395) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:692) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92) at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:82) at org.eclipse.tycho.p2.target.TargetPlatformBuilderImpl.addP2Repository(TargetPlatformBuilderImpl.java:240) ... 17 more [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException [DEBUG] Waiting for process to finish [DEBUG] Result: 1 [DEBUG] Skipping watched dependency update for build: seu-Eclipse-Commons-build #13 due to result: FAILURE Finished: FAILURE ----------------------------------------------- ----------------------------------------------- (4kB of 10,98kB at 0B/s) [INFO] Adding repository http://portal.server.test123.de/repo/content/repositories/p2-snapshots [INFO] Fetching content.xml from http://portal.server.test123.de/repo/content/repositories/p2-snapshots/ (0B of 8,81MB at 0B/s) [INFO] 1 operation remaining. [INFO] Fetching content.xml from http://portal.server.test123.de/repo/content/repositories/p2-snapshots/ (4kB of 8,81MB at 0B/s) [INFO] Adding repository http://portal.server.test123.de/repo/content/repositories/p2-snapshots [INFO] Fetching artifacts.xml from http://portal.server.test123.de/repo/content/repositories/p2-snapshots/ (0B of 2,19MB at 0B/s) [INFO] 1 operation remaining. [INFO] Fetching artifacts.xml from http://portal.server.test123.de/repo/content/repositories/p2-snapshots/ (4kB of 2,19MB at 0B/s) [INFO] Adding repository http://portal.server.test123.de/repo/content/repositories/p2-releases [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s) [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: HTTP Server 'Internal Error': http://portal.server.test123.de/repo/content/repositories/p2-releases/content.xml [DEBUG] Closing connection to remote [ERROR] Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: HTTP Server 'Internal Error': http://portal.server.test123.de/repo/content/repositories/p2-releases/content.xml: HttpComponents connection error response code 500. -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: HTTP Server 'Internal Error': http://portal.server.test123.de/repo/content/repositories/p2-releases/content.xml at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: HTTP Server 'Internal Error': http://portal.server.test123.de/repo/content/repositories/p2-releases/content.xml at org.eclipse.tycho.p2.target.TargetPlatformBuilderImpl.addP2Repository(TargetPlatformBuilderImpl.java:253) at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.addEntireP2RepositoryToTargetPlatform(P2TargetPlatformResolver.java:312) at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:201) at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100) at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 11 more Caused by: org.eclipse.equinox.p2.core.ProvisionException: HTTP Server 'Internal Error': http://portal.server.test123.de/repo/content/repositories/p2-releases/content.xml at org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:192) at org.eclipse.tycho.p2.remote.RemoteRepositoryCacheManager.createCache(RemoteRepositoryCacheManager.java:66) at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:66) at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:88) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:775) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:668) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92) at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:82) at org.eclipse.tycho.p2.target.TargetPlatformBuilderImpl.addP2Repository(TargetPlatformBuilderImpl.java:240) ... 17 more Caused by: org.eclipse.ecf.filetransfer.BrowseFileTransferException: HttpComponents connection error response code 500. at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:293) at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) [ERROR]

    Sonatype JIRA | 3 years ago | Jörg Sesterhenn
    org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: HTTP Server 'Internal Error': http://portal.server.test123.de/repo/content/repositories/p2-releases/content.xml
  2. 0

    GitHub comment 2#157410061

    GitHub | 1 year ago | dsyer
    org.eclipse.ecf.filetransfer.BrowseFileTransferException: HttpComponents connection error response code 500.
  3. 0

    Eclipse/IntelliJ failing to connect to network?

    Stack Overflow | 5 years ago | Mike Wither
    org.eclipse.ecf.filetransfer.BrowseFileTransferException: HttpClient connection error response code 400.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 66#144125463

    GitHub | 1 year ago | accept86
    org.eclipse.ecf.filetransfer.BrowseFileTransferException: Proxy Authentication Required
  6. 0

    GitHub comment 1697#187114681

    GitHub | 10 months ago | ttobin62
    org.eclipse.ecf.filetransfer.BrowseFileTransferException: General connection error with response code=301

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.eclipse.ecf.filetransfer.BrowseFileTransferException

      HttpComponents connection error response code 500.

      at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest()
    2. org.eclipse.ecf
      AbstractFileSystemBrowser$DirectoryJob.run
      1. org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:293)
      2. org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
      2 frames
    3. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      1 frame