Skip to main content

[JXSE 2.6] java.lang.NoClassDefFoundError: net/jxta/id/NullID

10 replies [Last post]
jtanago
Offline
Joined: 2008-06-18

Hi!

I'm trying to use the latest version of JXTA (2.6 Beta 2) but when I create a new PeerID I get this exception:

java.lang.NoClassDefFoundError: net/jxta/id/NullID

the code is:
public static final PeerID PID_EDGE_A = IDFactory.newPeerID(
PeerGroupID.defaultNetPeerGroupID, "PeerA".getBytes());

I have all the dependencies and the jxta.jar, I downloaded them from http://jxse.kenai.com/Developers/Developers.html

Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jtanago
Offline
Joined: 2008-06-18

ArchLinux - Kernel 2.6.33 (64bits)
Java 1.6.0_20 (64bits)

Thanks!

Message was edited by: jtanago

adamman71
Offline
Joined: 2007-01-31

I have opened an incident: https://jxta-jxse.dev.java.net/issues/show_bug.cgi?id=366

Can you indicate which operating system and version of Java you ar using?

Thanks,

AdamMan71

harisson
Offline
Joined: 2006-11-28

same here. Mac OS X 10.5.8 java 1.5.0_22 & 1.6.0_17 (64 bits)

adamman71
Offline
Joined: 2007-01-31

It seems like the ID.java file defines two classes. I have split them in two separate files and created a new .jar available at: http://kenai.com/projects/jxse/pages/26BetaRel.
The NullID.class now appears in that .jar file.

Quick test shows that .jar still works under Vista. Can you guys test it in your environment and let me know?

Thanks,

AdamMan71

jtanago
Offline
Joined: 2008-06-18

It works! Thanks!

galato
Offline
Joined: 2007-07-06

In my case I did get past the NullID issue I had originally like the rest of the reporters here. However, down the flow path I get the following issues in the following cases:

After a jxse or a jxme peer connects to the rdv/rly and the connection is successful, during the discovery loop where the peer is looking for advertisements from the rdv it gets nothing back even though there is a pipe advertised there and the rdv prints the following message over and over:

RDV(Thread[PeerToPeerAdapter,5,main]): Has 1 peers connected to it

Apr 21, 2010 11:35:20 PM net.jxta.logging.Logging logCheckedWarning
WARNING: Error in sending response
java.lang.NullPointerException
Apr 21, 2010 11:35:21 PM net.jxta.logging.Logging logCheckedWarning
WARNING: Error in sending response
java.lang.NullPointerException
Apr 21, 2010 11:35:23 PM net.jxta.logging.Logging logCheckedWarning
WARNING: Error in sending response
java.lang.NullPointerException

Has anyone else had this issue with 2.6? Bare in mind the peers I am getting
these on are peers that work successfully with the 2.5.1 libs.

Thanks

adamman71
Offline
Joined: 2007-01-31

Can you put this in a separate thread so that other people who face the issue can see it too? + Can you put the full exceptions you are getting? Which line etc...

Thanks,

AdamMan71

galato
Offline
Joined: 2007-07-06

Sure - will do.

Thanks

ariel_ro
Offline
Joined: 2009-12-28

Same thing here. It seems like JXSE 2.6 Beta 2 is broken.

adamman71
Offline
Joined: 2007-01-31

Hi,

Someone else has reported this issue under Linux. This issue does not seem to happen under Vista. Which operating system are you using?

Thanks,

AdamMan71