Share

Open Chord

Tracker: Bugs

9 NullPointerException when inserting a value - single peer - ID: 1993180
Last Update: Comment added ( nobody )

First reported in the mailing list:
http://sourceforge.net/mailarchive/forum.php?thread_name=a2343aec0806070457
u5f6a2635k65ae2da3725a528b%40mail.gmail.com&forum_name=open-chord-users

When the network consists of a single peer a NullPointerException is caused
by inserting a value into the DHT.


Nobody/Anonymous ( nobody ) - 2008-06-13 17:07

9

Open

Later

Sven Kaffille

Chord overlay protocols

1.0.5

Public


Comments ( 3 )




Date: 2009-07-06 14:38
Sender: nobody

Hi, thanks a lot Nobody, i did the same what you did and it`s worked
properly!!!!
Thank you again and all who develope the open chord


Date: 2009-04-18 08:51
Sender: skaffilleProject Admin

This issue will be fixed in the next release. For an interim solution
please have a look at the following discussion on our mailing list:

http://sourceforge.net/mailarchive/forum.php?thread_name=a2343aec0806070457u5f6a2635k65ae2da3725a528b%40mail.gmail.com&forum_name=open-chord-users


Date: 2009-04-18 01:25
Sender: nobody

hi,I have met this problems.when I try to debug it,I find the codes between
the version 1.04 and the version 1.05 are different!
version 1.0.4 Nodeimpl.java (246-251)
if ((this.references.getPredecessor() != null)
&& !toInsert.getId().isInInterval(
this.references.getPredecessor().nodeID, this.nodeID)) {
this.references.getPredecessor().insertEntry(toInsert);
return;
}
version 1.0.5 Nodeimpl.java (246-251)
if ((this.references.getPredecessor() == null)
|| !toInsert.getId().isInInterval(
this.references.getPredecessor().getNodeID(), this.nodeID)) {
this.references.getPredecessor().insertEntry(toInsert);
return;
}
so I try to use these codes in the version 1.0.4 to replace that codes in
the version 1.0.5,then complie again,then success!



Log in to comment.

Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
resolution_id Postponed 2009-04-18 09:43 skaffille
assigned_to nobody 2009-04-18 08:51 skaffille
resolution_id None 2009-04-18 08:51 skaffille
artifact_group_id None 2009-04-18 08:51 skaffille
priority 5 2009-04-18 08:51 skaffille