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

Bug 280582

Summary: resource registration fails when using ImageDescriptor.createFromURL
Product: [RT] RAP Reporter: Erdal Karaca <erdal.karaca.de>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: bbarzu
Version: unspecified   
Target Milestone: 1.3 M1   
Hardware: All   
OS: All   
Whiteboard: sr121
Attachments:
Description Flags
Test case + bugfix none

Description Erdal Karaca CLA 2009-06-17 04:20:46 EDT
Stack trace:

org.eclipse.rwt.internal.resources.ResourceRegistrationException: Failed to register resource 'http://[my-ip]/map/user-images/user123.png'.
[...]
Caused by: java.io.IOException: Could not create directory structure: D:\eclipse\3.5M7\workspace\.metadata\.plugins\org.eclipse.rap.ui\context\http:\[my-ip]\map\user-images
	at org.eclipse.rwt.internal.resources.ResourceManagerImpl.createFile(ResourceManagerImpl.java:444)
[...]

RWT tries to create a directory structure using the original URL.

Using:

rap.rwt: 1.2.0.20090505-1445
eclipse: 3.5M7
Comment 1 Rüdiger Herrmann CLA 2009-07-15 04:38:37 EDT
Created attachment 141608 [details]
Test case + bugfix
Comment 2 Rüdiger Herrmann CLA 2009-07-15 04:46:03 EDT
Fixed in CVS HEAD and v12_Maintenance
Comment 3 Rüdiger Herrmann CLA 2009-07-15 04:55:51 EDT
*** Bug 282367 has been marked as a duplicate of this bug. ***