Skip to main content

JXSE 2.6: Problems when running the tutorials

9 replies [Last post]
ariel_ro
Offline
Joined: 2009-12-28
Points: 0

Hi everyone!
I'm trying the examples for JXSE 2.6 from http://jxse.kenai.com/Tutorials/Tutorials.html and I have serious problems. For instance, I can't run properly the sockets example.

On both client and server I receive:
java.net.SocketTimeoutException: Read timeout reached
at net.jxta.impl.util.pipe.reliable.ReliableInputStream.dequeueMessage(ReliableInputStream.java:569)
at net.jxta.impl.util.pipe.reliable.ReliableInputStream.local_read(ReliableInputStream.java:702)
at net.jxta.impl.util.pipe.reliable.ReliableInputStream.read(ReliableInputStream.java:309)
at java.io.DataInputStream.readFully(Unknown Source)
at java.io.DataInputStream.readFully(Unknown Source)
at tutorial.socket.SocketClient.run(SocketClient.java:158)
at tutorial.socket.SocketClient.main(SocketClient.java:203)

Another problem is with the multicast examples.

java.io.IOException: Unable to create a messenger to jxta://uuid-59616261646162614E504720503250331BBB2988A59E45598E5D8F8519A712F303/PipeService/urn:jxta:uuid-59616261646162614E5047205032503393B5C2F6CA7A41FDB0F890173088E79404
at net.jxta.impl.pipe.BlockingWireOutputPipe.checkMessenger(BlockingWireOutputPipe.java:234)
at net.jxta.impl.pipe.BlockingWireOutputPipe.(BlockingWireOutputPipe.java:155)
at net.jxta.impl.pipe.BlockingWireOutputPipe.(BlockingWireOutputPipe.java:135)
at net.jxta.impl.pipe.PipeServiceImpl.createOutputPipe(PipeServiceImpl.java:528)
at net.jxta.impl.pipe.PipeServiceImpl.createOutputPipe(PipeServiceImpl.java:452)
at net.jxta.impl.pipe.PipeServiceInterface.createOutputPipe(PipeServiceInterface.java:179)
at net.jxta.socket.JxtaMulticastSocket.send(JxtaMulticastSocket.java:388)
at tutorial.multicast.JxtaMulticastSocketServer.main(JxtaMulticastSocketServer.java:153)

Does anyone have any idea about these? I downloaded the dependencies from http://jxse.kenai.com/Downloads/Downloads.html and added to my project only the mandatory ones.
I'm quite stuck if the basic examples for 2.6 don't work.

Thanks in advance!

Message was edited by: ariel_ro

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ariel_ro
Offline
Joined: 2009-12-28
Points: 0

I'm interested if JXTA will still be supported by Oracle, the buyer of Sun. Given that things have changed, it's safe to worry about that.

Any ideas?

adamman71
Offline
Joined: 2007-01-31
Points: 0

Hi Ariel,

This is a legitimate concern and it is high on my priority list. I will be able to communicate more about this by the end of this week for sure.

About creating updated and operational examples, do not hesitate to take inspiration from those I delivered at www.practicaljxta.com as long as these are made available to the community in our SVN repository. I will answer all your questions if necessary.

John/OneDrum has also committed new JUnit tests where you can take inspiration too. I am sure he will answer any questions too.

Cheers,

Jérome

ariel_ro
Offline
Joined: 2009-12-28
Points: 0

My intent regarding JXTA and p2p is quite long-term.
I already have a p2p application that works inside a LAN. I would like to go beyond this and make it work over the Internet.

Unfortunately, JXTA doesn't seem such a strong case for investment at this moment.
I would like to volunteer in making some good example code for JXTA 2.6 but I need some guidance.

keesp
Offline
Joined: 2007-05-22
Points: 0

I still think the application that is used in "Jxta in a Nutshell" is quite good. Although made for JXTA 2.5, I think it still quite usable, with only a few minor changes (at least that I've seen).

I am currently working through these examples for the OSGI services project that I'm working on. Maybe you can have some use with what I've been doing. Basically I am splitting up a lot of JXTA stuff that needs to be done in most applications in very tiny standalone units.
The only problem is that I am not working on this full time, so progress maybe a bit slow for you.

Cheers

Kees

boylejohnr
Offline
Joined: 2008-10-27
Points: 0

Hi,

if you are familiar with JUnit, can I suggest you look at the test cases which are passing in the build. There, are a few that demonstrate the setting up of connections in JXTA.

Also, what is you interest in JXTA at this time. If you are seriously looking to use the technology in the near term I can try and give you more focused assistance. What is you time frame and proposed JXTA usage?

Unit cases (in trunk https://jxta-jxse.dev.java.net/svn/jxta-jxse/trunk):
AdHocHttp2DirectCommsTest
AdHocTcpDirectCommsTest
RelayedHttp2CommsTest
RelayedTcpCommsTest

Regards.
John

adamman71
Offline
Joined: 2007-01-31
Points: 0

The tutorial examples need review. Unfortunately, no one volunteered for the 2.6 release. There are still some examples available at www.practicaljxta.com.

GABIKA6
Offline
Joined: 2011-09-12
Points: 0

Hi!

I was running the examples from the Practical JXTA II with jxse 2.6.

It was possible to connect the "Anna" Edge peer to the Rendezvous, but when I'm trying Example 300, it needs the same rendezvous, and it isnt connecting. I've tried to change the ports, but nothing happens.

Can you help me please? I am new to this technology.

Thanks,

GAbika

wangzhanyu
Offline
Joined: 2011-08-10
Points: 0

Are you sure you are running Example 300? Example 300 in my book is "retreiving and flushing advertisement". it does not need to connect to anyone.

GABIKA6
Offline
Joined: 2011-09-12
Points: 0

Hi!

Thanks for the quick answer.

Yes, I'm sure, and it"s called as you said. It needs a rendezvous I think, coz of that lines:

</p>
<p>import Examples.B_Exploring_Connectivity_Issues.RendezVous_Jack;</p>
<p>...</p>
<p>// Checking if RendezVous_Jack should be a seed</p>
<p>            MyNetworkConfigurator.clearRendezvousSeeds();</p>
<p>            String TheSeed = "tcp://" + InetAddress.getLocalHost().getHostAddress() + ":" + RendezVous_Jack.TcpPort;</p>
<p>