createDefaultStyle CacheContent failure
---------------------------------------
Key: UDIG-1822
URL: https://jira.codehaus.org/browse/UDIG-1822
Project: uDIG
Issue Type: Bug
Components: visualization using map layer and style
Affects Versions: UDIG 1.2.3
Environment: Windows XP, Non Admin User
Reporter: Jody Garnett
Priority: Minor
Getting an odd issue running in a restricted environment (i.e. not as an
administrator).We have double checked that the drives uDig writes to for "data"
and "admin" are writable (which is the usual suspect).
The stack trace is interesting:
{panel}
java.lang.NullPointerException
at
net.refractions.udig.style.cache.CacheContent.createDefaultStyle(CacheContent.java:104)
at
net.refractions.udig.project.internal.SetDefaultStyleProcessor.process(SetDefaultStyleProcessor.java:36)
at
net.refractions.udig.core.internal.ExtensionPointUtil.process(ExtensionPointUtil.java:82)
at
net.refractions.udig.project.internal.SetDefaultStyleProcessor.run(SetDefaultStyleProcessor.java:44)
at
net.refractions.udig.project.internal.impl.SetStyleInterceptor.run(SetStyleInterceptor.java:34)
at
net.refractions.udig.project.internal.impl.LayerFactoryImpl.runLayerCreatedInterceptor(LayerFactoryImpl.java:417)
at
net.refractions.udig.project.internal.impl.LayerFactoryImpl.createLayer(LayerFactoryImpl.java:396)
at
net.refractions.udig.project.internal.commands.AddLayersCommand.run(AddLayersCommand.java:70)
at
net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:400)
at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:325)
at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:311)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
{panel}
After this point we have a layer that is only 1/2 set up and that causes
problems for everyone else ...
{panel}
!ENTRY net.refractions.udig.project 1 0 2011-10-07 14:14:14.895
!MESSAGE MapImpl#getDefaultBounds(): Returning Default bounds (entire world)
...
!ENTRY net.refractions.udig.project.ui 2 1 2011-10-07 14:14:15.224
!MESSAGE Could not generate layer glyph (name: newLayer)
!STACK 0
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0,
size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
at
net.refractions.udig.project.ui.internal.LayerGeneratedGlyphDecorator.generateDefaultIcon(LayerGeneratedGlyphDecorator.java:551)
at
net.refractions.udig.project.ui.internal.LayerGeneratedGlyphDecorator.generateIcon(LayerGeneratedGlyphDecorator.java:393)
at
net.refractions.udig.project.ui.internal.LayerGeneratedGlyphDecorator$2.refreshIcon(LayerGeneratedGlyphDecorator.java:183)
at
net.refractions.udig.project.ui.internal.LayerGeneratedGlyphDecorator$2.run(LayerGeneratedGlyphDecorator.java:156)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
{panel}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel