Le 26/03/2018 à 21:21, Stefan Seelmann a écrit :
> On 03/26/2018 06:14 PM, Emmanuel Lécharny wrote:
>> I have checked without the local changes I had, and I still have this error>
>> Not sure I can run the test in Eclipse to debug it.
>
> Sure you can. Run it as "JUnit Plug-in Test". I just did and guess what?
Whaaaaa... This is *incredibly* hard to get it running :/
First test was with all teh ApacheDS/LDAP API code loaded in Eclipse,
then Studio loaded and re-loaded (many times), up to the point I had all
the projects green.
Then I launched the test, and got some nasty OSGi failures, due to
Mavibot 1.0.0-M9 being referenced in my ApacheDS loaded version (as a
separate module, but meh).
I removed the module using Mavibot 1.0.0-M9 (and the caffeine dependency
I had), and started Studio test again, bigger failure : the test modules
weren't simply compiling, with errors all over. (I reloaded the target
config many times).
Then I decided to doom apacheds and the API from eclipse, and relaunched
the test :
SESSION 2018-03-26 22:54:01.038
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_102
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -version 3 -port 63905 -testLoaderClass
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader
-loaderpluginname org.eclipse.jdt.junit4.runtime -test
org.apache.directory.studio.test.integration.core.DirectoryApiConnectionWrapperTest:testSearchContinuationFollowParent
-application org.eclipse.pde.junit.runtime.uitestapplication -product
org.eclipse.platform.ide -testpluginname
org.apache.directory.studio.test.integration.core
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -consoleLog
-version 3 -port 63905 -testLoaderClass
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader
-loaderpluginname org.eclipse.jdt.junit4.runtime -test
org.apache.directory.studio.test.integration.core.DirectoryApiConnectionWrapperTest:testSearchContinuationFollowParent
-application org.eclipse.pde.junit.runtime.uitestapplication -product
org.eclipse.platform.ide -data
/Users/elecharny/Documents/worspace-oxygen-apacheds/../junit-workspace
-dev
file:/Users/elecharny/Documents/worspace-oxygen-apacheds/.metadata/.plugins/org.eclipse.pde.core/pde-junit/dev.properties
-os macosx -ws cocoa -arch x86_64 -consoleLog -testpluginname
org.apache.directory.studio.test.integration.core
!ENTRY org.eclipse.core.net 1 0 2018-03-26 22:54:07.633
!MESSAGE System property http.nonProxyHosts has been set to
local|*.local|169.254/16|*.169.254/16 by an external source. This value
will be overwritten using the values from the preferences
!ENTRY org.eclipse.ui 4 0 2018-03-26 22:54:10.739
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError:
org/apache/directory/server/xdbm/search/Optimizer
at
org.apache.directory.server.core.factory.JdbmPartitionFactory.createPartition(JdbmPartitionFactory.java:50)
at
org.apache.directory.server.core.factory.JdbmPartitionFactory.createPartition(JdbmPartitionFactory.java:39)
at
org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory.initSystemPartition(DefaultDirectoryServiceFactory.java:228)
at
org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory.build(DefaultDirectoryServiceFactory.java:257)
at
org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory.init(DefaultDirectoryServiceFactory.java:125)
at
org.apache.directory.server.core.integ.FrameworkRunner.run(FrameworkRunner.java:129)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)
at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:181)
at
org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness.lambda$0(PlatformUITestHarness.java:43)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4034)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3701)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at
org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:52)
at
org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:43)
at
org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:46)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: java.lang.ClassNotFoundException:
org.apache.directory.server.xdbm.search.Optimizer cannot be found by
org.apache.directory.server.jdbm.partition_2.0.0.AM25-SNAPSHOT
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Netx time : I will create a new workspace, and reload everything...
Who said that Eclipse was easy ? ;-)
--
Emmanuel Lecharny
Symas.com
directory.apache.org