Discussion:
[tycho-user] An unexpected error occured
Stefan Nöbauer
2018-07-12 07:25:42 UTC
Permalink
Hi,

I have another question about tycho surefire.
I wrote a test project for one of my plugins. The plugin is build successfully but when the testplugin should be executed surefire comes up with this exception:

Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test (default-test) on project server.tests: An unexpected error occured while launching the test runtime (return code 13).

Where ca I find more information about the possible failure?
The mentioned logfile in "work\data\.metadata\.log" does not exist.

The Test is just as simple as:

package server.tests;

import org.junit.Test;

import static org.junit.Assert.assertTrue;


/**
* @author Stefan Nöbauer
*/
public class BlaBlaTest {

@Test
public void isBlablaTest() {
assertTrue(true);
}
}

Manifest.mf
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests
Bundle-SymbolicName: server.tests
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: KGU
Fragment-Host: com.teamcenter.presentation.contmgmt.server;bundle-version="1.0.0"
Automatic-Module-Name: server.tests
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.junit;bundle-version="4.12.0"
Export-Package: server.tests

When I select a different host plugin the test plugin "server.tests" is executed fine!

Regards
Stefan
Sievers, Jan
2018-07-12 09:04:44 UTC
Permalink
try maven debug option -X

On 12.07.18, 09:32, "tycho-user-***@eclipse.org on behalf of Stefan Nöbauer" <tycho-user-***@eclipse.org on behalf of ***@kgu-consulting.com> wrote:

Hi,

I have another question about tycho surefire.

I wrote a test project for one of my plugins. The plugin is build successfully but when the testplugin should be executed surefire comes up with this exception:


Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test (default-test) on project server.tests: An unexpected error
occured while launching the test runtime (return code 13).

Where ca I find more information about the possible failure?
The mentioned logfile in “work\data\.metadata\.log” does not exist.

The Test is just as simple as:

package server.tests;

import org.junit.Test;

importstatic org.junit.Assert.assertTrue;


/**
*
@author Stefan Nöbauer
*/
publicclass BlaBlaTest {


@Test

publicvoid isBlablaTest() {

assertTrue(true);

}
}

Manifest.mf
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests
Bundle-SymbolicName: server.tests
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: KGU
Fragment-Host: com.teamcenter.presentation.contmgmt.server;bundle-version="1.0.0"
Automatic-Module-Name: server.tests
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.junit;bundle-version="4.12.0"
Export-Package: server.tests

When I select a different host plugin the test plugin “server.tests” is executed fine!

Regards
Stefan
Stefan Nöbauer
2018-07-12 12:11:38 UTC
Permalink
I got following trace

So I might have something todo with unresolved bundles.
The problematic bundle seems to be org.apache.fop.

But this bundle I created with bnd-platform. So I will have to debug this bundle ☹

Regards
Stefan

-----UrsprÃŒngliche Nachricht-----
Von: tycho-user-***@eclipse.org <tycho-user-***@eclipse.org> Im Auftrag von Sievers, Jan
Gesendet: Donnerstag, 12. Juli 2018 11:05
An: Tycho user list <tycho-***@eclipse.org>
Betreff: Re: [tycho-user] An unexpected error occured

try maven debug option -X

On 12.07.18, 09:32, "tycho-user-***@eclipse.org on behalf of Stefan Nöbauer" <tycho-user-***@eclipse.org on behalf of ***@kgu-consulting.com> wrote:

Hi,

I have another question about tycho surefire.

I wrote a test project for one of my plugins. The plugin is build successfully but when the testplugin should be executed surefire comes up with this exception:


Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test (default-test) on project server.tests: An unexpected error
occured while launching the test runtime (return code 13).

Where ca I find more information about the possible failure?
The mentioned logfile in “work\data\.metadata\.log” does not exist.

The Test is just as simple as:

package server.tests;

import org.junit.Test;

importstatic org.junit.Assert.assertTrue;


/**
*
@author Stefan Nöbauer
*/
publicclass BlaBlaTest {


@Test

publicvoid isBlablaTest() {

assertTrue(true);

}
}

Manifest.mf
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests
Bundle-SymbolicName: server.tests
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: KGU
Fragment-Host: com.teamcenter.presentation.contmgmt.server;bundle-version="1.0.0"
Automatic-Module-Name: server.tests
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.junit;bundle-version="4.12.0"
Export-Package: server.tests

When I select a different host plugin the test plugin “server.tests” is executed fine!

Regards
Stefan



_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user
Ed Willink
2018-07-12 10:07:26 UTC
Permalink
Hi

This is something of a nightmare and if that wasn't bad enough it can be
hysterical. The following gives some clues to my progress.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=529929
and https://bugs.eclipse.org/bugs/show_bug.cgi?id=529797#c16

Regards

Ed Willink
Post by Stefan Nöbauer
Hi,
I have another question about tycho surefire.
I wrote a test project for one of my plugins. The plugin is build
successfully but when the testplugin should be executed surefire comes
Failed to execute goal
org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test (default-test) on
project server.tests: An unexpected error occured while launching the
test runtime (return code 13).
Where ca I find more information about the possible failure?
The mentioned logfile in “work\data\.metadata\.log” does not exist.
*package*server.tests;
*import*org.junit.Test;
*import**static*org.junit.Assert./assertTrue/;
/**
*/
*public**class*BlaBlaTest {
@Test
*public**void*isBlablaTest() {
/assertTrue/(*true*);
}
}
Manifest.mf
Manifest-Version: 1.0
*Bundle-ManifestVersion*: 2
*Bundle-Name*: Tests
*Bundle-SymbolicName*: server.tests
*Bundle-Version*: 1.0.0.qualifier
*Bundle-Vendor*: KGU
com.teamcenter.presentation.contmgmt.server;/bundle-version/="1.0.0"
Automatic-Module-Name: server.tests
*Bundle-RequiredExecutionEnvironment*: JavaSE-1.8
*Require-Bundle*: org.junit;/bundle-version/="4.12.0"
*Export-Package*: server.tests
When I select a different host plugin the test plugin “server.tests”
is executed fine!
Regards
Stefan
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Loading...