Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] Created: (UDIG-101) Null Pointer while accessing tools in RenderCreator

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/UDIG-101

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: UDIG-101
    Summary: Null Pointer while accessing tools in RenderCreator
       Type: Bug

     Status: Open
   Priority: Blocker

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: uDIG
 Components: 
             render
   Fix Fors:
             UDIG 0.6
   Versions:
             UDIG 0.6

   Assignee: Jesse Eichar
   Reporter: Richard Gould

    Created: Mon, 22 Nov 2004 4:01 PM
    Updated: Mon, 22 Nov 2004 4:01 PM

Description:
THis occurs when called from the printing action, when attempting to draw using the Tiling WMS Renderer.

The error:

java.lang.NullPointerException
	at net.refractions.udig.project.render.impl.RendererCreatorImpl$Processor.process(RendererCreatorImpl.java:282)
	at net.refractions.udig.core.internal.ExtensionPointUtil.process(ExtensionPointUtil.java:60)
	at net.refractions.udig.project.render.impl.RendererCreatorImpl.initFactories(RendererCreatorImpl.java:249)
	at net.refractions.udig.project.render.impl.RendererCreatorImpl.createRenderer(RendererCreatorImpl.java:175)
	at net.refractions.udig.printing.internal.MapBox.draw(MapBox.java:105)
	at net.refractions.udig.printing.internal.PrintingEngine.print(PrintingEngine.java:85)
	at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1785)
	at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1334)
	at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1196)
	at net.refractions.udig.printing.internal.PrintAction$1.run(PrintAction.java:79)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

The method:

        public boolean process(IExtension extension,
                IConfigurationElement element) {
            IConfigurationElement[] elements = extension.getConfigurationElements();

            try {
                RenderMetricsFactory builder = (RenderMetricsFactory) elements[0]
                        .createExecutableExtension("class");
                    
                List data=layer.getServices();
                for (Iterator iter=data.iterator(); iter.hasNext(); ) {
                    CatalogEntry service=(CatalogEntry) iter.next();
                    RenderTools toolkit=(RenderTools) getTools().clone();  
                    toolkit.getLayerServiceMap().put(layer,service);
                if( builder.canRender(toolkit))
                    rFactories.add(builder.createMetrics(toolkit));
                }
            } catch (CoreException e) {
                //TODO log the exception
                e.printStackTrace();
            }catch (Exception e) {
                e.printStackTrace();
            }

            return true;
        }


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



Back to the top