Skip to main content

Send/Receive Message JXME proxied version

3 replies [Last post]
dar22
Offline
Joined: 2009-09-02

Hi all,
i tried to develop a chat/file sharing application using jxme proxied version but i have got a problem on receiving a message.I have succeded to connect to JXTA relay,create a pipe, listen and send a message from a jxme peer but the receivers(destination peers) got nothing.so i need help / any idea please from those who have developed/run jxme chat demos ,what might be the problem of my application .I use a jxta shell nighty version ,i suspect there are something wrong on it. when i click a send key on phone emulator ,i got the following output on jxta shell command prompt

SEVERE: Uncaught throwable from listener for http://80.221.26.72:9700/EndpointSe
rvice:jxta-NetGroup/urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000E05/urn:jxta:jx
ta-NetGroup
java.lang.ClassCastException: net.jxta.impl.id.UUID.PeerID cannot be cast to net
.jxta.pipe.PipeID
at net.jxta.impl.pipe.PipeServiceImpl.createInputPipe(PipeServiceImpl.ja
va:380)
at net.jxta.impl.pipe.PipeServiceInterface.createInputPipe(PipeServiceIn
terface.java:156)
at net.jxta.impl.proxy.ProxyService.handleListenRequest(ProxyService.jav
a:551)
at net.jxta.impl.proxy.ProxyService.processIncomingMessage(ProxyService.
java:348)
at net.jxta.impl.endpoint.EndpointServiceImpl.processIncomingMessage(End
pointServiceImpl.java:964)
at net.jxta.impl.endpoint.EndpointServiceImpl.demux(EndpointServiceImpl.
java:1028)
at net.jxta.impl.endpoint.EndpointServiceInterface.demux(EndpointService
Interface.java:335)
at net.jxta.impl.endpoint.servlethttp.HttpMessageServlet.processRequest(
HttpMessageServlet.java:378)
at net.jxta.impl.endpoint.servlethttp.HttpMessageServlet.doPost(HttpMess
ageServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358
)
at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java
:657)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
67)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
218)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
Sep 16, 2009 9:00:22 PM net.jxta.impl.rendezvous.rpv.PeerView seed
INFO: New Seeding...
Sep 16, 2009 9:00:22 PM net.jxta.impl.rendezvous.rpv.PeerView send
WARNING: Could not get messenger for tcp://80.221.26.72:9701
Sep 16, 2009 9:00:40 PM net.jxta.impl.endpoint.EndpointServiceImpl processIncomi
ngMessage
SEVERE: Uncaught throwable from listener for http://80.221.26.72:9700/EndpointSe
rvice:jxta-NetGroup/urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000E05/urn:jxta:jx
ta-NetGroup
java.lang.ClassCastException: net.jxta.impl.id.UUID.PeerID cannot be cast to net
.jxta.pipe.PipeID
at net.jxta.impl.pipe.PipeServiceImpl.createInputPipe(PipeServiceImpl.ja
va:380)
at net.jxta.impl.pipe.PipeServiceInterface.createInputPipe(PipeServiceIn
terface.java:156)
at net.jxta.impl.proxy.ProxyService.handleListenRequest(ProxyService.jav
a:551)
at net.jxta.impl.proxy.ProxyService.processIncomingMessage(ProxyService.
java:348)
at net.jxta.impl.endpoint.EndpointServiceImpl.processIncomingMessage(End
pointServiceImpl.java:964)
at net.jxta.impl.endpoint.EndpointServiceImpl.demux(EndpointServiceImpl.
java:1028)
at net.jxta.impl.endpoint.EndpointServiceInterface.demux(EndpointService
Interface.java:335)
at net.jxta.impl.endpoint.servlethttp.HttpMessageServlet.processRequest(
HttpMessageServlet.java:378)
at net.jxta.impl.endpoint.servlethttp.HttpMessageServlet.doPost(HttpMess
ageServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358
)
at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java
:657)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
67)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
218)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
Sep 16, 2009 9:01:55 PM net.jxta.impl.rendezvous.rpv.PeerView seed
INFO: New Seeding...
Sep 16, 2009 9:01:55 PM net.jxta.impl.rendezvous.rpv.PeerView send
WARNING: Could not get messenger for tcp://80.221.26.72:9701

Message was edited by: dar22

Message was edited by: dar22

Message was edited by: dar22

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dar22
Offline
Joined: 2009-09-02

Thanks for your help.

dar22
Offline
Joined: 2009-09-02

Any idea ?

hamada
Offline
Joined: 2003-06-12

Firstly, you should avoid the proxied jxme it has been EOL'd for several years now, use the midp2 binding. Secondly, the issue you have run it into is most likely that you have used a peer ID for a pipe ID when you constructed the pipe advertisement.