|
|
Re: Cannot open launch config (junit run) [message #550607 is a reply to message #550599] |
Sat, 31 July 2010 09:13 |
|
Hi Martin,
I agree with Achim. Since the file is physically present, the only
option I can think of is that the workspace isn't up-to-date and needs a
refresh.
One way to ensure a refresh is to issue a buckminster build on the
workspace. It stars with a full workspace refresh.
How is the workspace populated?
- thomas
On 07/31/2010 09:06 AM, Achim Demelt wrote:
> Hi Martin,
>
> This is a strange error indeed. I can't say for sure what causes this error.
> Here's the relevant code in Buckminster:
>
> IResource launchFile =
> ResourcesPlugin.getWorkspace().getRoot().findMember(launchNa me);
> if (launchFile == null || launchFile.getType() != IResource.FILE ||
> !launchFile.exists())
> throw
> BuckminsterException.fromMessage(NLS.bind(Messages.Launch_Ca nnot_open_launch_config,
> launchName));
>
> All of these conditions seem unlikely in your case. One thing I can think of
> is that the workspace is somehow not up-to-date.
>
> Can you execute the build locally? Does the error occur there, too? If so,
> you can then open the workspace in your IDE and try to locate the launch
> file there.
>
> HTH,
> Achim
>
> Martin Taal wrote:
>
>> Hi,
>> In my Texo eclipse.org build I get a 'cannot open launch config' for a
>> junit test run through Buckminster. I am not sure why this happens (the
>> launch config file is really there):
>> https://build.eclipse.org/hudson/job/emft-texo-nightly/ws/bu ild/test/gen-
> workspace/plugins/org.eclipse.emf.texo.modelgenerator.test/H udsonModelGeneratorTest.launch
>>
>> What can be all the reasons that the file can't be found?
>> (see the stacktrace and ant snippet below also)
>>
>> org.eclipse.core.runtime.CoreException: Cannot open launch config from
>> org.eclipse.emf.texo.modelgenerator.test/HudsonModelGenerato rTest.launch
>> at
>>
> [org.eclipse.buckminster.runtime.BuckminsterException.fromMe ssage(BuckminsterException.java:57)
>> at
>>
> [org.eclipse.buckminster.runtime.BuckminsterException.fromMe ssage(BuckminsterException.java:53)
>> at
>>
> [org.eclipse.buckminster.core.commands.Launch.internalRun(La unch.java:189)
>> at
>>
> [org.eclipse.buckminster.junit.JUnitCommand.internalRun(JUni tCommand.java:86)
>> at
>>
> [org.eclipse.buckminster.core.commands.WorkspaceCommand.run( WorkspaceCommand.java:91)
>> at
>>
> [org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Ab stractCommand.java:194)
>> at
>> [org.eclipse.buckminster.cmdline.Headless.run(Headless.java: 317)
>> at
>> [org.eclipse.buckminster.cmdline.Headless.run(Headless.java: 136)
>> at
>> [org.eclipse.buckminster.cmdline.Headless.start(Headless.jav a:156)
>> at
>>
> [org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclip seAppHandle.java:196)
>> at
>>
> [org.eclipse.core.runtime.internal.adaptor.EclipseAppLaunche r.runApplication(EclipseAppLauncher.java:110)
>> at
>>
> [org.eclipse.core.runtime.internal.adaptor.EclipseAppLaunche r.start(EclipseAppLauncher.java:79)
>> at
>>
> [org.eclipse.core.runtime.adaptor.EclipseStarter.run(Eclipse Starter.java:369)
>> at
>>
> [org.eclipse.core.runtime.adaptor.EclipseStarter.run(Eclipse Starter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> [Method)
>> at
>>
> [sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc essorImpl.java:45)
>> at
>>
> [sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM ethodAccessorImpl.java:37)
>> at java.lang.reflect.Method.invoke(Method.java:599)
>> at
>> [org.eclipse.equinox.launcher.Main.invokeFramework(Main.java :619)
>> [java] at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
>> [java] at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
>> [java] at
> org.eclipse.equinox.launcher.Main.main(Main.java:1383)
>> [java] Cannot open launch config from
>>
> [org.eclipse.emf.texo.modelgenerator.test/HudsonModelGenerat orTest.launch
>>
>> This is the part of the ant task calling this launch config:
>> <buckminster command="junit" workspace="${genWorkspacePath}">
>> <cmdargs>
>> <arg value="-l" />
>> <arg
>>
> value=" org.eclipse.emf.texo.modelgenerator.test/HudsonModelGenerato rTest.launch "
>> /> <arg value="-o" /> <arg
>> value="${testResultsPath}/generate-results-texo-modelgenerator.xml " />
>> <arg value="--stdout" /> <arg value="${testResultsPath}/gen-stdout.txt" />
>> <arg value="--stderr" />
>> <arg value="${testResultsPath}/gen-stderr.txt" />
>> <arg value="--flatXML"/>
>> </cmdargs>
>> </buckminster>
>>
>>
>
|
|
|
|
Re: Cannot open launch config (junit run) [message #552673 is a reply to message #552652] |
Fri, 13 August 2010 06:58 |
|
Hi Miles,
> ls /Users/milesparker/.hudson/jobs/amp-site/workspace/features/
> org.eclipse.amp.build/ shows that the file is there.
>
The launcher will use the Eclipse Resource name and not the filename when it locates the launch file. So instead of using
'features/org.eclipse.amp.build/org.eclipse.amf.acore.edit.t est.launch'
you should probably use:
'org.eclipse.amp.build/org.eclipse.amf.acore.edit.test.launc h'
or even perhaps:
'org.eclipse.amp.build-feature/org.eclipse.amf.acore.edit.te st.launch'
It all depends on what name the feature project has in the workspace.
> Quote:
>> How is the workspace populated?
>
>
> As above. I've tried wiping it out to ensure a clean build.
>
> This fails on my local hudson and on the eclipse build hudson. One
> thing, when I try Buckminster "Invoke Action" on the build project I get:
>
> _Error duing action perform_
>
> "CSpec org.junit.bundle$4.8.1(blahblah) has no action, gorup, or local
> artifact named product.configuration.exports"
Is it possible for me to set up this build? A bugzilla with some instructions on how to reproduce the problem would be
great.
- thomas
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03426 seconds