You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@giraph.apache.org by "Craig Muchinsky (JIRA)" <ji...@apache.org> on 2013/08/09 20:44:57 UTC

[jira] [Created] (GIRAPH-735) DiskBackedPartitionStore throws NPE due to uninitialized OutEdges

Craig Muchinsky created GIRAPH-735:
--------------------------------------

             Summary: DiskBackedPartitionStore throws NPE due to uninitialized OutEdges
                 Key: GIRAPH-735
                 URL: https://issues.apache.org/jira/browse/GIRAPH-735
             Project: Giraph
          Issue Type: Bug
          Components: graph
    Affects Versions: 1.1.0
            Reporter: Craig Muchinsky


The DiskBackedPartitionStore is throwing an NPE when trying to load a partition from disk. It seems to be related to the call to ImmutableClassesGiraphConfiguration.createOutEdges() which doesn't initialize the OutEdges before it attempts to populate them via Vertex.initialize(). Simply switching to ImmutableClassesGiraphConfiguration.createAndInitializeOutEdges() seems to correct the following stack trace:

Caused by: java.lang.NullPointerException
	at org.apache.giraph.edge.HashMapEdges.write(HashMapEdges.java:130)
	at org.apache.giraph.utils.WritableUtils.writeVertexToDataOutput(WritableUtils.java:578)
	at org.apache.giraph.utils.WritableUtils.writeVertexToByteArray(WritableUtils.java:409)
	at org.apache.giraph.utils.WritableUtils.writeVertexToByteArray(WritableUtils.java:436)
	at org.apache.giraph.partition.ByteArrayPartition.putVertex(ByteArrayPartition.java:92)
	at org.apache.giraph.partition.DiskBackedPartitionStore.loadPartition(DiskBackedPartitionStore.java:457)
	at org.apache.giraph.partition.DiskBackedPartitionStore.access$1000(DiskBackedPartitionStore.java:74)
	at org.apache.giraph.partition.DiskBackedPartitionStore$GetPartition.call(DiskBackedPartitionStore.java:695)
	at org.apache.giraph.partition.DiskBackedPartitionStore$GetPartition.call(DiskBackedPartitionStore.java:631)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
	at java.util.concurrent.FutureTask.run(FutureTask.java:149)
	at org.apache.giraph.partition.DiskBackedPartitionStore$DirectExecutorService.execute(DiskBackedPartitionStore.java:943)
	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:103)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira