Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Disabling exception message for missing image files for icons in Show View Menu(How to disable the exception stack trace for missing image files)
Disabling exception message for missing image files for icons in Show View Menu [message #1061463] Fri, 31 May 2013 14:51 Go to next message
Marcel Becker is currently offline Marcel Becker
Messages: 2
Registered: May 2013
Junior Member
Hi,
I am running Eclipse Juno in Plug-in Development mode (linux), and every time I start my runtime Eclipse application and open the Window > Show View menu, I get a number of stack trace messages for image files that cannot be found.
The icons for palette and structure in the show view menu are missing.

Is there a quick fix or a way to disable these messages from showing up on my console?

I see these problems both in Juno and Kepler.

!ENTRY org.eclipse.ui 4 0 2013-05-31 11:46:41.007
!MESSAGE Failed to load image
!STACK 0
org.eclipse.jface.resource.DeviceResourceException: Unable to create resource URLImageDescriptor(platform:/plugin/org.eclipse.wb.core.java/icons/structure/palette.png)
at org.eclipse.jface.resource.ImageDescriptor.createResource(ImageDescriptor.java:167)
at org.eclipse.jface.resource.DeviceResourceManager.allocate(DeviceResourceManager.java:56)
at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
at org.eclipse.jface.resource.LocalResourceManager.allocate(LocalResourceManager.java:82)


ENTRY org.eclipse.ui 4 0 2013-05-31 11:46:41.020
!MESSAGE Failed to load image
!STACK 0
org.eclipse.jface.resource.DeviceResourceException: Unable to create resource URLImageDescriptor(platform:/plugin/org.eclipse.wb.core.java/icons/structure/properties_view.gif)
at org.eclipse.jface.resource.ImageDescriptor.createResource(ImageDescriptor.java:167)
at org.eclipse.jface.resource.DeviceResourceManager.allocate(DeviceResourceManager.java:56)
at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
at org.eclipse.jface.resource.LocalResourceManager.allocate(LocalResourceManager.java:82)
at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
at org.eclipse.jface.resource.ResourceManager.createImage(ResourceManager.java:172)

Re: Disabling exception message for missing image files for icons in Show View Menu [message #1397114 is a reply to message #1061463] Wed, 09 July 2014 04:07 Go to previous messageGo to next message
Hussein MHANNA is currently offline Hussein MHANNA
Messages: 29
Registered: February 2014
Location: LAVAL
Junior Member
Hi Marcel,

Are you using Eclipse Juno 3.8 or 4.2?

Kind Regards,

Hussein


ALL4TEC
Re: Disabling exception message for missing image files for icons in Show View Menu [message #1397299 is a reply to message #1397114] Wed, 09 July 2014 10:19 Go to previous message
Brian de Alwis is currently offline Brian de Alwis
Messages: 163
Registered: January 2012
Senior Member

Sounds like you're suffering from an SWT resource leak. That exception occurs when an image cannot be created. You could look at the SWT Sleak program to track down where your resources aren't being freed.

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:TableViewer evaluation
Next Topic:Calling refresh() on tableViewer clears the table data
Goto Forum:
  


Current Time: Thu Jul 24 21:36:23 EDT 2014

Powered by FUDForum. Page generated in 0.02574 seconds