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

Bug 371216

Summary: Occasional test failure: ServiceContext_Test.testGetApplicationContextFromSessionStore
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ralf Sternberg CLA 2012-02-10 07:25:31 EST
This fails occasionally on the build server, probably depending on the test order (the tycho build is configured to execute tests in random order.).

org.eclipse.rwt.internal.service.ServiceContext_Test.testGetApplicationContextFromSessionStore

Error Message: Failed to register resource: resource/static/html/blank.html

Stacktrace:
org.eclipse.rwt.internal.resources.ResourceRegistrationException: Failed to register resource: resource/static/html/blank.html
	at org.eclipse.rwt.internal.resources.ResourceManagerImpl.internalRegister(ResourceManagerImpl.java:242)
	at org.eclipse.rwt.internal.resources.ResourceManagerImpl.register(ResourceManagerImpl.java:128)
	at org.eclipse.swt.internal.widgets.displaykit.ClientResources.registerTextResource(ClientResources.java:415)
	at org.eclipse.swt.internal.widgets.displaykit.ClientResources.registerResources(ClientResources.java:331)
	at org.eclipse.rwt.internal.application.ApplicationContext.doActivateInstances(ApplicationContext.java:279)
	at org.eclipse.rwt.internal.application.ApplicationContext.access$0(ApplicationContext.java:272)
	at org.eclipse.rwt.internal.application.ApplicationContext$1.run(ApplicationContext.java:267)
	at org.eclipse.rwt.internal.application.ApplicationContextUtil.runWith(ApplicationContextUtil.java:89)
	at org.eclipse.rwt.internal.application.ApplicationContext.activateInstances(ApplicationContext.java:265)
	at org.eclipse.rwt.internal.application.ApplicationContext.doActivate(ApplicationContext.java:261)
	at org.eclipse.rwt.internal.application.ApplicationContext.activate(ApplicationContext.java:126)
	at org.eclipse.rwt.internal.service.ServiceContext_Test.testGetApplicationContextFromSessionStore(ServiceContext_Test.java:59)
Caused by: java.io.IOException: Could not create directory structure: /rwt-resources/resource/static/html
	at org.eclipse.rwt.internal.resources.ResourceManagerImpl.createFile(ResourceManagerImpl.java:276)
	at org.eclipse.rwt.internal.resources.ResourceManagerImpl.registerContent(ResourceManagerImpl.java:267)
	at org.eclipse.rwt.internal.resources.ResourceManagerImpl.internalRegister(ResourceManagerImpl.java:240)
	... 39 more

See https://hudson.eclipse.org/hudson/job/rap-runtime/515/testReport/junit/org.eclipse.rwt.internal.service/ServiceContext_Test/testGetApplicationContextFromSessionStore/
Comment 1 Ivan Furnadjiev CLA 2012-02-10 09:50:26 EST
.

*** This bug has been marked as a duplicate of bug 366574 ***