Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » StackOverflowError during PAR deploy(StackOverflowError during PAR deploy)
StackOverflowError during PAR deploy [message #695676] Tue, 12 July 2011 09:54 Go to next message
Vladimir Stevanovic is currently offline Vladimir StevanovicFriend
Messages: 29
Registered: March 2010
Junior Member
Hi,
I'm trying to deploy PAR. It contains about 60 bundles. All dependencies are satisfied.
I've got to following logs
-event.log:
(...)
[2011-07-12 11:32:15.681] sync Event Dispatcher Thread <UR0001I> User region ready.
[2011-07-12 11:32:16.686] fs-watcher <HD0001I> Hot deployer processing 'INITIAL' event for file 'wf.par'.
[2011-07-12 11:32:44.927] fs-watcher <DE0000I> Installing par 'org.gs.editor.par' version '1.0.0'.
[2011-07-12 11:32:44.929] fs-watcher <DE0000I> Installing bundle 'org.gs.editor.par-1-com.healthmarketscience.rmiio' version '2.0.2'.
[2011-07-12 11:32:44.931] fs-watcher <DE0000I> Installing bundle 'org.gs.editor.par-1-com.mchange.c3p0-0.9.1.2-gs' version '0.9.1.2'.
[2011-07-12 11:32:44.933] fs-watcher <DE0000I> Installing bundle 'org.gs.editor.par-1-com.repsoftware.lm' version '9.1.3'.
[2011-07-12 11:32:44.935] fs-watcher <DE0000I> Installing bundle 'org.gs.editor.par-1-com.repsoftware.lm.win32' version '9.1.3'.
(...)
[2011-07-12 11:32:45.055] fs-watcher <DE0000I> Installing bundle 'org.gs.editor.par-1-org.restlet' version '1.1.7'.
[2011-07-12 11:32:47.874] fs-watcher <ME0003I> Dump 'serviceability\dump\2011-07-12-11-32-963' generated


-log.log:
(...)
[2011-07-12 11:32:45.286] INFO fs-watcher o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator Calculating missing dependencies of bundle(s) 'org.gs.editor.par-1-com.healthmarketscience.rmiio_2.0.2'
[2011-07-12 11:32:47.875] INFO fs-watcher org.eclipse.virgo.medic.eventlog.default ME0003I Dump 'serviceability\dump\2011-07-12-11-32-963' generated
[2011-07-12 11:32:59.885] WARN fs-watcher org.eclipse.virgo.kernel.deployer.hot.HotDeployer Listener threw exception for event INITIAL java.lang.StackOverflowError: null
at org.eclipse.osgi.internal.resolver.ExportPackageDescriptionImpl.getDirective(ExportPackageDescriptionImpl.java:114)
at org.eclipse.osgi.internal.resolver.ImportPackageSpecificationImpl.isSatisfiedBy(ImportPackageSpecificationImpl.java:90)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.getResolvedCandidateExports(UsesAnalyser.java:144)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.getCandidateExports(UsesAnalyser.java:269)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:210)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:214)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:214)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:214)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:214)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:214)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:214)
(x 1000 times)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:214)
at org.eclipse.virgo.kernel.userregion.internal.equinox.UsesAnalyser.addUsedImportedPackages(UsesAnalyser.java:214)
(...)

I tried to increase stack size using -XX:ThreadStackSize=1024, but it didn't help.

How can I detect if the cause is in the PAR? Is this a Virgo bug?


Re: StackOverflowError during PAR deploy [message #695683 is a reply to message #695676] Tue, 12 July 2011 10:15 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
That certainly looks like a bug in Virgo, so please could you raise a bug. If you can manage to reproduce the bug with a sample you don't mind attaching, that would be extremely helpful.

There must have been a uses constraint violation when resolving the PAR contents. You might try examining the OSGi state dump using the OSGi state explorer in the web admin console, but there is a risk that this will also hit the stack overflow. But you could work "in the dark" and look for likely causes of a uses constraint violation, such as duplicate versions of the same package (e.g. if you have embedded a bundle in the PAR which is also installed in Virgo outside the PAR). See the FAQ for more hints on debugging uses constraint violations.
Re: StackOverflowError during PAR deploy [message #695736 is a reply to message #695683] Tue, 12 July 2011 12:39 Go to previous message
Vladimir Stevanovic is currently offline Vladimir StevanovicFriend
Messages: 29
Registered: March 2010
Junior Member
I've created a bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351828

Web Admin console didn't help me at all, because I couldn't examine any dump, although the dump was generated.

Also I noticed one more thing - if I changed the content of the PAR (by deleting or adding new bundles) while it was deployed, the automatic redeploy was sometimes successful and sometimes the message saying "Cannot refresh par as refresh of par artifacts is not supported" was displayed.
Previous Topic:Encrypted values in the .properties files
Next Topic:classpath for several bundles
Goto Forum:
  


Current Time: Thu Apr 18 22:53:50 GMT 2024

Powered by FUDForum. Page generated in 0.02010 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top