This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 337325 - Getting concurrent modification error on 'large' test model using headless
Summary: Getting concurrent modification error on 'large' test model using headless
Status: RESOLVED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Headless (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 10:46 EST by Steve Jerman CLA
Modified: 2011-02-21 09:04 EST (History)
1 user (show)

See Also:


Attachments
Headless run with OSGI cnsole (21.31 KB, text/plain)
2011-02-16 11:16 EST, Steve Jerman CLA
no flags Details
337325 patch (3.69 KB, patch)
2011-02-20 12:50 EST, Anton Salnik CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Jerman CLA 2011-02-16 10:46:30 EST
[INFO] Command line:
	/bin/sh -c cd /EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model && /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx800m -XX:MaxPermSize=256m -Dosgi.os=macosx -Dosgi.ws=cocoa -Dosgi.arch=x86_64 -jar /Users/steve/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.1.0.v20100507/org.eclipse.equinox.launcher-1.1.0.v20100507.jar -consolelog -noSplash -os=macosx -ws=cocoa -arch=x86_64 -clean=true -data /EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/data -install /EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work -configuration /EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/configuration -application org.eclipse.tigerstripe.workbench.headless.tigerstripe GENERATION_PROJECT=/EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/data/base-test-model PROJECT_IMPORT=/EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/base-test-model
!SESSION 2011-02-16 08:37:33.767 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -os=macosx -ws=cocoa -arch=x86_64 -clean=true -application org.eclipse.tigerstripe.workbench.headless.tigerstripe GENERATION_PROJECT=/EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/data/base-test-model PROJECT_IMPORT=/EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/base-test-model
Command-line arguments:  -consolelog -os=macosx -ws=cocoa -arch=x86_64 -clean=true -data /EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/data -application org.eclipse.tigerstripe.workbench.headless.tigerstripe GENERATION_PROJECT=/EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/data/base-test-model PROJECT_IMPORT=/EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/base-test-model

!ENTRY org.eclipse.tigerstripe.eclipse.BasePlugin 4 222 2011-02-16 08:37:37.177
!MESSAGE PROFILE_ARTIFACTS_LIB couldn't be resolved.
Tigerstripe Workbench Base Plug-in (Incubation) (v0.6.942.201102031433)
Active Profile: XMP-IM Model Profile 1.53

!ENTRY org.eclipse.core.net 1 0 2011-02-16 08:37:38.940
!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
Imported /EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/base-test-model into workspace.
Generation project: /EclipseWorkspaces/Anno_Proto/xmp-customizations/base-test-model/target/work/data/base-test-model
null
java.util.ConcurrentModificationException
	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
	at java.util.AbstractList$Itr.next(AbstractList.java:343)
	at org.eclipse.tigerstripe.workbench.internal.core.util.PredicatedList.refresh(PredicatedList.java:224)
	at org.eclipse.tigerstripe.workbench.internal.core.util.PredicatedList.setPredicate(PredicatedList.java:211)
	at org.eclipse.tigerstripe.workbench.internal.core.model.ArtifactManager.setScopingPredicate(ArtifactManager.java:2398)
	at org.eclipse.tigerstripe.workbench.internal.core.model.ArtifactManager.setActiveFacet(ArtifactManager.java:2381)
	at org.eclipse.tigerstripe.workbench.internal.api.impl.ArtifactManagerSessionImpl.setActiveFacet(ArtifactManagerSessionImpl.java:549)
	at org.eclipse.tigerstripe.workbench.internal.api.impl.TigerstripeProjectHandle.setActiveFacet(TigerstripeProjectHandle.java:450)
	at org.eclipse.tigerstripe.workbench.internal.core.generation.M1Generator.internalRun(M1Generator.java:480)
	at org.eclipse.tigerstripe.workbench.internal.core.generation.M1Generator.run(M1Generator.java:344)
	at org.eclipse.tigerstripe.workbench.internal.core.generation.M1Generator.run(M1Generator.java:84)
	at org.eclipse.tigerstripe.workbench.internal.api.impl.TigerstripeProjectHandle.generate(TigerstripeProjectHandle.java:489)
	at org.eclipse.tigerstripe.workbench.headless.Tigerstripe.generateTigerstripeOutput(Tigerstripe.java:195)
	at org.eclipse.tigerstripe.workbench.headless.Tigerstripe.start(Tigerstripe.java:78)
	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:369)
	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:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 Steve Jerman CLA 2011-02-16 11:16:09 EST
Created attachment 189110 [details]
Headless run with OSGI cnsole

Ran headless with console/nostop then displayed bundle status.
Comment 2 Anton Salnik CLA 2011-02-20 12:50:28 EST
Created attachment 189370 [details]
337325 patch

The problem isn't reproducible for me. But I added some synchronization logic which should solve the problem.
Comment 3 Yuri Strot CLA 2011-02-21 09:04:35 EST
Anton's patch applied.