Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353544 - StandaloneSetup fails with RuntimeException when a Jar cannot be opened
Summary: StandaloneSetup fails with RuntimeException when a Jar cannot be opened
Status: RESOLVED FIXED
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: 1.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 minor (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 04:15 EDT by Karsten Thoms CLA
Modified: 2011-08-02 04:17 EDT (History)
0 users

See Also:
karsten.thoms: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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