giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Muchinsky (JIRA)" <>
Subject [jira] [Created] (GIRAPH-735) DiskBackedPartitionStore throws NPE due to uninitialized OutEdges
Date Fri, 09 Aug 2013 18:44:57 GMT
Craig Muchinsky created GIRAPH-735:

             Summary: DiskBackedPartitionStore throws NPE due to uninitialized OutEdges
                 Key: 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(
	at org.apache.giraph.utils.WritableUtils.writeVertexToDataOutput(
	at org.apache.giraph.utils.WritableUtils.writeVertexToByteArray(
	at org.apache.giraph.utils.WritableUtils.writeVertexToByteArray(
	at org.apache.giraph.partition.ByteArrayPartition.putVertex(
	at org.apache.giraph.partition.DiskBackedPartitionStore.loadPartition(
	at org.apache.giraph.partition.DiskBackedPartitionStore.access$1000(
	at org.apache.giraph.partition.DiskBackedPartitionStore$
	at org.apache.giraph.partition.DiskBackedPartitionStore$
	at java.util.concurrent.FutureTask$Sync.innerRun(
	at org.apache.giraph.partition.DiskBackedPartitionStore$DirectExecutorService.execute(
	at java.util.concurrent.AbstractExecutorService.submit(

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:

View raw message