You are not logged in.

#1 2013-09-18 08:56:30

alex.lechner
Guest
From: Australia
Registered: 2013-06-12
Posts: 17
Website

Error running Metrics

Hi,

I am running graphab on a  5342 x 2887landscape with 575 patches using least cost-paths and Eucledian distance. My PC is an Intel i7-3770K CPU @ 3.50 GHz, 32GB Ram, 64 Bit OS and Java.

I receive the following error message "java.lang.RuntimeException:java.lang.NullPointerException" when I run the following metrics. I have ran the metrics with Eucledian distance and least-cost paths (for all but the gloabl metrics) and sometimes the metrics will work.

                                       Least-cost     Euc
Global Metrics                                 
Probability of Connectivity         no
Flux                                         no
Class Coincidence Probability      yes
Expected Cluster Size                yes
IIC                                          yes
Mean Size of Components           yes
Size of Largest Component        yes
Graph Diameter                        yes
Haray Index                                no
Number of Components              yes

Local Metrics
Betweeness centrality                no             yes
Flux                                        no              yes
Flow Pc                                   no              no
Clustering Coefficient                 yes             yes
Closeness Centrality                  no             yes
Connectivity correlation              yes            yes
Node degree                             yes            yes
Eccentricity                               no             no
       
Delta Metrics
Propbability of Connectivity          no           yes
Delta PC composed                     no           no
IIC                                          yes           yes
Graph Diameter                           no            no
Haray Index                               yes          yes

I have also tested it with other the same landscape but at a different pixel size and received similar results.

For now there are enough useful metrics to not be a problem. But I would be interested to know if I there is a way to get these other metrics working.

Thanks

Alex

Offline

#2 2013-09-18 09:07:12

admin
Graphab Dev
Registered: 2013-05-28
Posts: 25

Re: Error running Metrics

Hi,

Your results are very strange. I cannot explain it.
Could you please send me the content of the logging window (menu File -> Log window) when you get error message.

Gilles

Offline

#3 2013-09-18 09:28:27

alex.lechner
Guest
From: Australia
Registered: 2013-06-12
Posts: 17
Website

Re: Error running Metrics

Hi Below is the content log.

Thanks:

------------------------------------


Sep 18, 2013 7:25:45 PM org.thema.GlobalDataStore getFeatures
INFO: First loading Z:\_UTAS_analysis\Hunter\GISData\WorkingData2July\MCCP2July\Graphab\Project6Default\patches.shp
Sep 18, 2013 7:25:45 PM org.thema.GlobalDataStore getFeatures
INFO: First loading Z:\_UTAS_analysis\Hunter\GISData\WorkingData2July\MCCP2July\Graphab\Project6Default\links.shp
Sep 18, 2013 7:25:46 PM org.thema.GlobalDataStore getFeatures
INFO: First loading Z:\_UTAS_analysis\Hunter\GISData\WorkingData2July\MCCP2July\Graphab\Project6Default\Linkset1100Res-links.shp
Sep 18, 2013 7:26:02 PM org.thema.common.parallel.AbstractParallelFTask$SplitThread call
SEVERE: null
java.lang.NullPointerException
    at org.thema.graphab.graph.GraphGenerator$2.getWeight(GraphGenerator.java:301)
    at org.thema.graph.pathfinder.DijkstraPathFinder.cont(DijkstraPathFinder.java:277)
    at org.thema.graph.pathfinder.DijkstraPathFinder.calculate(DijkstraPathFinder.java:160)
    at org.thema.graphab.graph.GraphGenerator.getCostPathFinder(GraphGenerator.java:307)
    at org.thema.graphab.graph.GraphGenerator$PathFinder.<init>(GraphGenerator.java:62)
    at org.thema.graphab.graph.GraphGenerator.getPathFinder(GraphGenerator.java:245)
    at org.thema.graphab.indice.PreCalcIndiceTask.executeOne(PreCalcIndiceTask.java:43)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:32)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:41)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:15)
    at org.thema.common.parallel.AbstractParallelFTask$SplitThread.call(AbstractParallelFTask.java:33)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Sep 18, 2013 7:26:02 PM org.thema.common.parallel.AbstractParallelFTask$SplitThread call
SEVERE: null
java.lang.NullPointerException
    at org.thema.graphab.graph.GraphGenerator$2.getWeight(GraphGenerator.java:301)
    at org.thema.graph.pathfinder.DijkstraPathFinder.cont(DijkstraPathFinder.java:277)
    at org.thema.graph.pathfinder.DijkstraPathFinder.calculate(DijkstraPathFinder.java:160)
    at org.thema.graphab.graph.GraphGenerator.getCostPathFinder(GraphGenerator.java:307)
    at org.thema.graphab.graph.GraphGenerator$PathFinder.<init>(GraphGenerator.java:62)
    at org.thema.graphab.graph.GraphGenerator.getPathFinder(GraphGenerator.java:245)
    at org.thema.graphab.indice.PreCalcIndiceTask.executeOne(PreCalcIndiceTask.java:43)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:32)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:41)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:15)
    at org.thema.common.parallel.AbstractParallelFTask$SplitThread.call(AbstractParallelFTask.java:33)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Sep 18, 2013 7:26:02 PM org.thema.common.parallel.AbstractParallelFTask$SplitThread call
SEVERE: null
java.lang.NullPointerException
    at org.thema.graphab.graph.GraphGenerator$2.getWeight(GraphGenerator.java:301)
    at org.thema.graph.pathfinder.DijkstraPathFinder.cont(DijkstraPathFinder.java:277)
    at org.thema.graph.pathfinder.DijkstraPathFinder.calculate(DijkstraPathFinder.java:160)
    at org.thema.graphab.graph.GraphGenerator.getCostPathFinder(GraphGenerator.java:307)
    at org.thema.graphab.graph.GraphGenerator$PathFinder.<init>(GraphGenerator.java:62)
    at org.thema.graphab.graph.GraphGenerator.getPathFinder(GraphGenerator.java:245)
    at org.thema.graphab.indice.PreCalcIndiceTask.executeOne(PreCalcIndiceTask.java:43)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:32)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:41)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:15)
    at org.thema.common.parallel.AbstractParallelFTask$SplitThread.call(AbstractParallelFTask.java:33)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Sep 18, 2013 7:26:02 PM org.thema.common.parallel.AbstractParallelFTask$SplitThread call
SEVERE: null
java.lang.NullPointerException
    at org.thema.graphab.graph.GraphGenerator$2.getWeight(GraphGenerator.java:301)
    at org.thema.graph.pathfinder.DijkstraPathFinder.cont(DijkstraPathFinder.java:277)
    at org.thema.graph.pathfinder.DijkstraPathFinder.calculate(DijkstraPathFinder.java:160)
    at org.thema.graphab.graph.GraphGenerator.getCostPathFinder(GraphGenerator.java:307)
    at org.thema.graphab.graph.GraphGenerator$PathFinder.<init>(GraphGenerator.java:62)
    at org.thema.graphab.graph.GraphGenerator.getPathFinder(GraphGenerator.java:245)
    at org.thema.graphab.indice.PreCalcIndiceTask.executeOne(PreCalcIndiceTask.java:43)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:32)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:41)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:15)
    at org.thema.common.parallel.AbstractParallelFTask$SplitThread.call(AbstractParallelFTask.java:33)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Sep 18, 2013 7:26:02 PM org.thema.common.parallel.AbstractParallelFTask$SplitThread call
SEVERE: null
java.lang.NullPointerException
    at org.thema.graphab.graph.GraphGenerator$2.getWeight(GraphGenerator.java:301)
    at org.thema.graph.pathfinder.DijkstraPathFinder.cont(DijkstraPathFinder.java:277)
    at org.thema.graph.pathfinder.DijkstraPathFinder.calculate(DijkstraPathFinder.java:160)
    at org.thema.graphab.graph.GraphGenerator.getCostPathFinder(GraphGenerator.java:307)
    at org.thema.graphab.graph.GraphGenerator$PathFinder.<init>(GraphGenerator.java:62)
    at org.thema.graphab.graph.GraphGenerator.getPathFinder(GraphGenerator.java:245)
    at org.thema.graphab.indice.PreCalcIndiceTask.executeOne(PreCalcIndiceTask.java:43)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:32)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:41)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:15)
    at org.thema.common.parallel.AbstractParallelFTask$SplitThread.call(AbstractParallelFTask.java:33)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Sep 18, 2013 7:26:02 PM org.thema.common.parallel.AbstractParallelFTask$SplitThread call
SEVERE: null
java.lang.NullPointerException
    at org.thema.graphab.graph.GraphGenerator$2.getWeight(GraphGenerator.java:301)
    at org.thema.graph.pathfinder.DijkstraPathFinder.cont(DijkstraPathFinder.java:277)
    at org.thema.graph.pathfinder.DijkstraPathFinder.calculate(DijkstraPathFinder.java:160)
    at org.thema.graphab.graph.GraphGenerator.getCostPathFinder(GraphGenerator.java:307)
    at org.thema.graphab.graph.GraphGenerator$PathFinder.<init>(GraphGenerator.java:62)
    at org.thema.graphab.graph.GraphGenerator.getPathFinder(GraphGenerator.java:245)
    at org.thema.graphab.indice.PreCalcIndiceTask.executeOne(PreCalcIndiceTask.java:43)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:32)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:41)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:15)
    at org.thema.common.parallel.AbstractParallelFTask$SplitThread.call(AbstractParallelFTask.java:33)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Sep 18, 2013 7:26:02 PM org.thema.common.parallel.AbstractParallelFTask$SplitThread call
SEVERE: null
java.lang.NullPointerException
    at org.thema.graphab.graph.GraphGenerator$2.getWeight(GraphGenerator.java:301)
    at org.thema.graph.pathfinder.DijkstraPathFinder.cont(DijkstraPathFinder.java:277)
    at org.thema.graph.pathfinder.DijkstraPathFinder.calculate(DijkstraPathFinder.java:160)
    at org.thema.graphab.graph.GraphGenerator.getCostPathFinder(GraphGenerator.java:307)
    at org.thema.graphab.graph.GraphGenerator$PathFinder.<init>(GraphGenerator.java:62)
    at org.thema.graphab.graph.GraphGenerator.getPathFinder(GraphGenerator.java:245)
    at org.thema.graphab.indice.PreCalcIndiceTask.executeOne(PreCalcIndiceTask.java:43)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:32)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:41)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:15)
    at org.thema.common.parallel.AbstractParallelFTask$SplitThread.call(AbstractParallelFTask.java:33)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Sep 18, 2013 7:26:02 PM org.thema.common.parallel.ParallelFExecutor executeAndWait
SEVERE: null
java.lang.RuntimeException: java.lang.NullPointerException
    at org.thema.common.parallel.ParallelFExecutor.executeAndWait(ParallelFExecutor.java:53)
    at org.thema.graphab.MainFrame.calcLocalIndice(MainFrame.java:1112)
    at org.thema.graphab.MainFrame$30.run(MainFrame.java:718)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
    at org.thema.graphab.graph.GraphGenerator$2.getWeight(GraphGenerator.java:301)
    at org.thema.graph.pathfinder.DijkstraPathFinder.cont(DijkstraPathFinder.java:277)
    at org.thema.graph.pathfinder.DijkstraPathFinder.calculate(DijkstraPathFinder.java:160)
    at org.thema.graphab.graph.GraphGenerator.getCostPathFinder(GraphGenerator.java:307)
    at org.thema.graphab.graph.GraphGenerator$PathFinder.<init>(GraphGenerator.java:62)
    at org.thema.graphab.graph.GraphGenerator.getPathFinder(GraphGenerator.java:245)
    at org.thema.graphab.indice.PreCalcIndiceTask.executeOne(PreCalcIndiceTask.java:43)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:32)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:41)
    at org.thema.common.parallel.SimpleParallelTask.execute(SimpleParallelTask.java:15)
    at org.thema.common.parallel.AbstractParallelFTask$SplitThread.call(AbstractParallelFTask.java:33)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    ... 1 more

Offline

#4 2013-09-18 11:32:24

alex.lechner
Guest
From: Australia
Registered: 2013-06-12
Posts: 17
Website

Re: Error running Metrics

Hi,

One more thing.

I noticed the majority of the indices that work do not require parameters.

Cheers,

Alex

Offline

#5 2013-09-23 07:29:29

admin
Graphab Dev
Registered: 2013-05-28
Posts: 25

Re: Error running Metrics

Hi,

I suppose you have generated linkset with an external cost raster. In this case, intra patch distance cannot be calculated.
2 solutions :
- don't use external cost raster for your linkset
- uncheck "Include intra patch distance..." when creating your graph

In next version, I will put a message to prevent this error.

Thanks for testing
Gilles

Offline

#6 2013-09-24 00:02:29

alex.lechner
Guest
From: Australia
Registered: 2013-06-12
Posts: 17
Website

Re: Error running Metrics

Thanks for that.

As you guess I used an external cost raster and intrapatch distances.

I unchecked the include intrapatch distance and it was all good.

Thanks,

Alex

Offline

Board footer