Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-reviews-dev] Test failure: java.lang.RuntimeException: Bundle org.eclipse.mylyn.gerrit.tests is not found

I don't know how Tycho resolves dependencies when provisioning the
target bu tit might miss package imports from the fragment. Could be
worth filing a bug against Tycho.

Steffen


On Mon, Apr 4, 2011 at 3:53 AM, Sascha Scholz <sascha.scholz@xxxxxxxxx> wrote:
> I added org.hamcrest to the list of  required bundles in gerrit.tests.
> This fixed the problem, but I don't understand why. org.mockito has
> (non-optional) Import-Package statements for org.hamcrest and also for
> org.objenesis. Why do I have to add these plugins to the gerrit.tests
> dependencies as well?
>
> Sascha
>
> On Mon, Apr 4, 2011 at 2:34 AM, Steffen Pingel
> <steffen.pingel@xxxxxxxxxxx> wrote:
>> It's usually caused by an unresolved dependency. One way to debug this
>> is to invoke the tests manually and add "-noExit -console" as
>> parameters. Then run diag on the plug-in that fails to load:
>>
>> $ /usr/lib/jvm/java-6-sun-1.6.0.24/jre/bin/java
>> -Dosgi.noShutdown=false -Dosgi.os=linux -Dosgi.ws=gtk
>> -Dosgi.arch=x86_64 -Xmx1024m -XX:MaxPermSize=256m -jar
>> /home/spingel/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.1.1.R36x_v20101122_1400/org.eclipse.equinox.launcher-1.1.1.R36x_v20101122_1400.jar
>> -data /home/spingel/mylyn/src/org.eclipse.mylyn.reviews/gerrit/org.eclipse.mylyn.gerrit.tests/target/work/data
>> -dev file:/home/spingel/mylyn/src/org.eclipse.mylyn.reviews/gerrit/org.eclipse.mylyn.gerrit.tests/target/dev.properties
>> -install /home/spingel/mylyn/src/org.eclipse.mylyn.reviews/gerrit/org.eclipse.mylyn.gerrit.tests/target/work
>> -configuration /home/spingel/mylyn/src/org.eclipse.mylyn.reviews/gerrit/org.eclipse.mylyn.gerrit.tests/target/work/configuration
>> -application org.sonatype.tycho.surefire.osgibooter.uitest
>> -testproperties
>> /home/spingel/mylyn/src/org.eclipse.mylyn.reviews/gerrit/org.eclipse.mylyn.gerrit.tests/target/surefire.properties
>> -noExit -console
>>
>> osgi> diag org.eclipse.mylyn.gerrit.tests
>> initial@reference:file:../../ [274]
>>  Constraints from the fragment conflict with the host:
>> Require-Bundle: org.eclipse.mylyn.tests.util; bundle-version="3.5.0"
>>  Constraints from the fragment conflict with the host:
>> Require-Bundle: org.junit4; bundle-version="[4.8.1,5.0.0)"
>>  Constraints from the fragment conflict with the host:
>> Require-Bundle: org.mockito; bundle-version="[1.8.4,2.0.0)"
>>  Constraints from the fragment conflict with the host:
>> Require-Bundle: org.objenesis; bundle-version="[1.0.0,2.0.0)"
>>  Direct constraints which are unresolved:
>>    Missing required bundle org.mockito_[1.8.4,2.0.0).
>>  Leaf constraints in the dependency chain which are unresolved:
>>    initial@reference:file:../../../../../../../.m2/repository/p2/osgi/bundle/org.mockito/1.8.4.v201102171835/org.mockito-1.8.4.v201102171835.jar/
>> [276]
>>      Missing imported package org.hamcrest_[1.0.0,2.0.0).
>>
>>
>> Steffen
>>
>>
>> On Sat, Apr 2, 2011 at 12:39 PM, Sascha Scholz <sascha.scholz@xxxxxxxxx> wrote:
>>> Hi all,
>>>
>>> a 'mvn clean install' on gerrit/pom.xml my machine fails with
>>> 'java.lang.RuntimeException: Bundle org.eclipse.mylyn.gerrit.tests is
>>> not found'. Does anyone have an idea what's going wrong?
>>>
>>> Sascha
>>>
>>> [INFO] --- maven-osgi-test-plugin:0.10.0:test (default-test) @
>>> org.eclipse.mylyn.gerrit.tests ---
>>> [INFO] Adding repository (cached) http://download.eclipse.org/releases/indigo/
>>> [INFO] Adding repository (cached)
>>> http://download.eclipse.org/mylyn/snapshots/weekly/
>>> [INFO] Adding repository (cached)
>>> http://download.eclipse.org/tools/orbit/downloads/drops/S20110304120314/repository/
>>> [INFO] Adding repository (cached)
>>> https://hudson.eclipse.org/hudson/job/egit/lastSuccessfulBuild/artifact/org.eclipse.egit-updatesite/target/site/
>>> [INFO] Expected eclipse log file:
>>> C:\Users\d050419\git\mylyn-reviews\gerrit\org.eclipse.mylyn.gerrit.tests\target\work\data\.metadata\.log
>>> [INFO] Command line:
>>>        cmd.exe /X /C ""C:\Program Files
>>> (x86)\Java\jdk1.6.0_21\jre\bin\java.exe" -Dosgi.noShutdown=false
>>> -Dosgi.os=win32 -Dosgi.ws=win32 -Dosgi.arch=x86 -Xmx1024m
>>> -XX:MaxPermSize=256m -jar
>>> C:\Users\d050419\.m2\repository\p2\osgi\bundle\org.eclipse.equinox.launcher\1.2.0.v20110124-0830\org.eclipse.equinox.launcher-1.2.0.v20110124-0830.jar
>>> -data C:\Users\d050419\git\mylyn-reviews\gerrit\org.eclipse.mylyn.gerrit.tests\target\work\data
>>> -dev file:/C:/Users/d050419/git/mylyn-reviews/gerrit/org.eclipse.mylyn.gerrit.tests/target/dev.properties
>>> -install C:\Users\d050419\git\mylyn-reviews\gerrit\org.eclipse.mylyn.gerrit.tests\target\work
>>> -configuration C:\Users\d050419\git\mylyn-reviews\gerrit\org.eclipse.mylyn.gerrit.tests\target\work\configuration
>>> -application org.sonatype.tycho.surefire.osgibooter.uitest
>>> -testproperties
>>> C:\Users\d050419\git\mylyn-reviews\gerrit\org.eclipse.mylyn.gerrit.tests\target\surefire.properties"
>>> [2011-04-02T9-30-6] Status WARNING: org.eclipse.mylyn.tasks.ui code=0
>>> No search provider was registed. Tasks search is not available. null,
>>> java.lang.RuntimeException: Bundle org.eclipse.mylyn.gerrit.tests is not found
>>>        at org.codehaus.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoader(OsgiSurefireBooter.java:117)
>>>        at org.codehaus.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:38)
>>>        at org.codehaus.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:25)
>>>        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>>>        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
>>>        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4125)
>>>        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3742)
>>>        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
>>>        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
>>>        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
>>>        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
>>>        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
>>>        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>>        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
>>>        at org.codehaus.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:21)
>>>        at org.codehaus.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:109)
>>>        at org.codehaus.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:27)
>>>        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>>        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>>        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
>>>        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>>>        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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
>>>        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
>>>        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>>>        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
>>> _______________________________________________
>>> mylyn-reviews-dev mailing list
>>> mylyn-reviews-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/mylyn-reviews-dev
>>>
>>
>>
>>
>> --
>> Steffen Pingel
>> Committer, http://eclipse.org/mylyn
>> Senior Developer, http://tasktop.com
>> _______________________________________________
>> mylyn-reviews-dev mailing list
>> mylyn-reviews-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/mylyn-reviews-dev
>>
>



-- 
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com


Back to the top