Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353544

Summary: StandaloneSetup fails with RuntimeException when a Jar cannot be opened
Product: [Modeling] EMFT Reporter: Karsten Thoms <karsten.thoms>
Component: MWEAssignee: Project Inbox <emft-mwe-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 Flags: karsten.thoms: indigo+
Version: 1.1   
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Karsten Thoms CLA 2011-08-02 04:15:11 EDT
If for some reason a corrupt Jar file is tried to opened during scanning the platform path a workflow is not executable anymore. It is not said that the corrupt Jar will make the workflow unexecutable, thus this situation should be catched and reported just as a warning.



Daemon Thread [Thread-1] (Suspended (exception ZipException))	
	ZipFile.open(String, int, long, boolean) line: not available [native method]	
	JarFile(ZipFile).<init>(File, int) line: 127	
	JarFile.<init>(File, boolean, int) line: 135	
	JarFile.<init>(File) line: 99	
	StandaloneSetup.registerBundle(File) line: 168	
	StandaloneSetup.scanFolder(File, Set<String>) line: 157	
	StandaloneSetup.scanFolder(File, Set<String>) line: 153	
	StandaloneSetup.scanFolder(File, Set<String>) line: 153	
	StandaloneSetup.scanFolder(File) line: 136	
	StandaloneSetup.setPlatformUri(String) line: 130	
	XtextTest.init_internal() line: 129	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]	
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25	
	Method.invoke(Object, Object...) line: 597	
	FrameworkMethod$1.runReflectiveCall() line: 44	
	FrameworkMethod$1(ReflectiveCallable).run() line: 15	
	FrameworkMethod.invokeExplosively(Object, Object...) line: 41	
	RunBefores.evaluate() line: 27	
	XtextRunner(ParentRunner<T>).run(RunNotifier) line: 236	
	JUnit4TestMethodReference(JUnit4TestReference).run(TestExecution) line: 50	
	TestExecution.run(ITestReference[]) line: 38	
	RemoteTestRunner.runTests(String[], String, TestExecution) line: 467	
	RemoteTestRunner.runTests(TestExecution) line: 683	
	RemoteTestRunner.run() line: 390	
	RemoteTestRunner.main(String[]) line: 197
Comment 1 Karsten Thoms CLA 2011-08-02 04:17:24 EDT
Pushed to master