I ran into some problem when trying to use the plugin export of
headlesseclipse to export my osgi-bundles. With some projects in the
workspace the export fails but without any error-message. Usually (with
a "working" subset of my projects in the workspace) I get an output like
the following and get the archive of bundles as expected:
----8<----*snip*----
PROGRESS 0,00%: Exporting...
PROGRESS 30,30%: Exporting...
PROGRESS 30,30%: Generating ant scripts
PROGRESS 36,36%: Generating ant scripts
PROGRESS 36,36%: Running build script
PROGRESS 42,42%: Running build script
PROGRESS 42,42%: Running assembly script
[...]
PROGRESS 61,01%: Running assembly script
PROGRESS 61,01%: Running packager script
[...]
PROGRESS 100,00%: Running packager script
ANT LOG: END OF FILE
PROGRESS 0,00%: Saving workspace.
[...]
PROGRESS 100,00%: Saving workspace.
POSTSTARTUP
PRESHUTDONW
POSTSHUTDOWN
WORKBENCH CLOSED
PlatformUI closed: 0
Number of errors: 0
Display disposed.
----8<----*snip*----
For some reason some project cause the process to stop before running
into "Running build script":
----8<----*snip*----
PROGRESS 0,00%: Exporting...
PROGRESS 30,30%: Exporting...
PROGRESS 30,30%: Generating ant scripts
PROGRESS 90,91%: Generating ant scripts
PROGRESS 95,45%: Generating ant scripts
PROGRESS 100,00%: Generating ant scripts
PROGRESS 100,00%: Generating ant scripts
ANT LOG: END OF FILE
PROGRESS 0,00%: Saving workspace.
[...]
PROGRESS 100,00%: Saving workspace.
POSTSTARTUP
PRESHUTDONW
POSTSHUTDOWN
WORKBENCH CLOSED
PlatformUI closed: 0
Number of errors: 0
Display disposed.
----8<----*snip*----
".project" as well as "build.properties" files only differ in the
project name between "working" and "non-working" projects.
Any hints how to track the problem down?
Any way to get some debug output providing more information?
Regards,
Moritz
--
sipgate GmbH - Gladbacher Str. 74 - 40219 Dᅵsseldorf
HRB Dᅵsseldorf 39841 - Geschᅵftsfᅵhrer: Thilo Salmon, Tim Mois
Steuernummer: 106/5724/7147, Umsatzsteuer-ID: DE219349391
after some poking around I stumbled upon ".metadata/.log" with the
following content:
----8<----*snip*----
!SESSION 2010-04-08 18:50:59.845
-----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.6.0_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.jee.product
-application com.ind.eclipse.headlessworkspace.Application import build
exportplugins -allowcircularclasspath
Command-line arguments: -os linux -ws gtk -arch x86_64 -product
org.eclipse.epp.package.jee.product -data ./workspace -application
com.ind.eclipse.headlessworkspace.Application import build exportplugins
-allowcircularclasspath
!ENTRY org.eclipse.wst.server.core 4 0 2010-04-08 18:51:40.476
!MESSAGE Error during shutdown
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at
org.eclipse.core.internal.events.ResourceChangeListenerList.remove(ResourceChangeListenerList.java:146)
at
org.eclipse.core.internal.events.NotificationManager.removeListener(NotificationManager.java:305)
at
org.eclipse.core.internal.resources.Workspace.removeResourceChangeListener(Workspace.java:1767)
at
org.eclipse.wst.server.core.internal.ResourceManager.shutdownImpl(ResourceManager.java:366)
at
org.eclipse.wst.server.core.internal.ResourceManager.shutdown(ResourceManager.java:312)
at
org.eclipse.wst.server.core.internal.ServerPlugin.stop(ServerPlugin.java:319)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:840)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:833)
at
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:474)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:546)
at
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1098)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:593)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:261)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:216)
at
org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
at
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:685)
at
org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:583)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:409)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
----8<----*snip*----
Since I'm not familiar with eclipse's internals (yet) I appreciate any
ideas / hints about the (possible) cause of this exception ...
You may note the parameter "-allowcircularclasspath". That's due to a
patch I made to allow for circular dependencies (see
http://code.google.com/p/headlesseclipse/issues/detail?id=12).
Regards,
Moritz
Nowadays I have no time to play around this plugin, but from the
stacktrace it seems that the ServerPlugin fails. I suppose that the
plugin you want the export depends on the server plugin? Is there any
difference in the "working" and the "non-working" projects regarding
project or plugin dependencies?
Can you please send the Eclipse version, and the version of the
org.eclipse.wst.server.core plugin?
Best regards,
Laszlo
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleCont extImpl.java:840)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleConte xtImpl.java:833)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.j ava:474)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBun dle.java:546)
> at
> org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework. java:1098)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLev elManager.java:593)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel( StartLevelManager.java:261)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLe velManager.java:216)
> at
> org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(Inter nalSystemBundle.java:266)
> at
> org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java: 685)
> at
> org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:583 )
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.jav a:409)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200 )
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
> ----8<----*snip*----
>
> Since I'm not familiar with eclipse's internals (yet) I appreciate any
> ideas / hints about the (possible) cause of this exception ...
>
> You may note the parameter "-allowcircularclasspath". That's due to a
> patch I made to allow for circular dependencies (seehttp://code.google.com/p/headlesseclipse/issues/detail?id=12).
> sipgate GmbH - Gladbacher Str. 74 - 40219 D sseldorf
> HRB D sseldorf 39841 - Gesch ftsf hrer: Thilo Salmon, Tim Mois
I found out, that this exception seems to always appear, even if
everything went right (successfull exporting). I tested with my
mentioned patch enabled as well as without the extra option, with and
without bundles that have cyclic dependencies: The exception is always
the same. I also tested with only bundles from external sources, so
this doesn't seem to be related to my bundles. I can reproduce the
problem using the following bundles using eclipse 3.5.0 with
"org.eclipse.wst.server.core_1.1.102.v20100123.jar":
com.springsource.com.thoughtworks.xstream,
com.springsource.org.apache.xerces,
com.springsource.org.apache.xmlcommons, com.springsource.org.xmlpull
So I assume that this exception is neither related to my bundles, nor
to my patch regarding the cyclic dependencies. What do you think?
Should I open an issue for this on http://code.google.com/p/headlesseclipse/
?
Regards
Moritz