Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353496 - FileNotFoundException with stacktrace on LocalRepositoryReader.getContents
Summary: FileNotFoundException with stacktrace on LocalRepositoryReader.getContents
Status: RESOLVED DUPLICATE of bug 351080
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-01 09:33 EDT by Geoffrey De Smet CLA
Modified: 2021-04-28 16:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey De Smet CLA 2011-08-01 09:33:30 EDT
During our build, we get these unexplained stacktraces that don't fail the build.
We didn't have this in tycho 0.10.0 (=regression?), but do have it in tycho 0.11.0 and 0.12.0.

For example:

[INFO] Resolving target platform for project MavenProject: org.drools:org.drools.eclipse:5.3.0-SNAPSHOT @ /home/gdesmet/projects/jboss/droolsjbpm/droolsjbpm-tools/drools-eclipse/org.drools.eclipse/pom.xml
java.io.FileNotFoundException: /home/gdesmet/.m2/repository/org/drools/org.drools.eclipse/5.2.0-SNAPSHOT/org.drools.eclipse-5.2.0-SNAPSHOT-p2artifacts.xml (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at org.eclipse.tycho.p2.repository.LocalRepositoryReader.getContents(LocalRepositoryReader.java:31)
        at org.eclipse.tycho.p2.repository.LocalRepositoryReader.getContents(LocalRepositoryReader.java:27)
        at org.eclipse.tycho.p2.maven.repository.AbstractMavenArtifactRepository.loadMaven(AbstractMavenArtifactRepository.java:74)
        at org.eclipse.tycho.p2.maven.repository.AbstractMavenArtifactRepository.<init>(AbstractMavenArtifactRepository.java:66)
        at org.eclipse.tycho.p2.maven.repository.LocalArtifactRepository.<init>(LocalArtifactRepository.java:55)
        at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.setLocalRepositoryLocation(P2ResolverImpl.java:579)
        at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:185)
        at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:150)
        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:90)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        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)




To reproduce:
git clone git@github.com:droolsjbpm/droolsjbpm-tools.git
cd droolsjbpm-tools/drools-eclipse
mvn clean install
// Watch the output as the stacktraces scroll by but don't crash the build

Our issue:
https://issues.jboss.org/browse/JBRULES-2949
Comment 1 Geoffrey De Smet CLA 2011-08-01 09:43:08 EDT
If tycho is validly raising a problem here (and 0.10.0 didn't do that yet), the explanation should be clearer.

Also this is an INFO log, not a WARNING log, which seems unnatural to be accompanied by a long stacktrace.
Comment 2 Tobias Oberlies CLA 2011-08-01 10:24:02 EDT
This is a known issue.

*** This bug has been marked as a duplicate of bug 351080 ***