Re: [javagroups-users] Problem whith new Header
Brought to you by:
belaban
From: Bela B. <be...@ya...> - 2006-11-25 08:54:01
|
Empty public constructor is missing MIGUEL ÁNGEL SANCHÍS GANDÍA wrote: > Hello Bela > > I am creating a new Protocol that extends MessageProtocol and new class > that extends Header, but when I add header to message( > ManetHeader mh= new > ManetHeader(ManetHeader.SP_Request,speer,(IpAddress)local_addr); > > msg.putHeader(getName(),mh); > ) leaves an error to me which I cannot avoid. I am becoming crazy with > this error. In the protocol stack single I have this: > > "UDP(use_incoming_packet_handler=false;mcast_addr=228.8.8.8;use_outgoing_packet_handler=false;ip_ttl=32):"+ > "Manet"; > > [ERROR] TP.handleIncomingPacket(): - failed unmarshalling message > java.io.IOException: failed reading header > at org.jgroups.Message.readHeader(Message.java:719) > at org.jgroups.Message.readFrom(Message.java:634) > at org.jgroups.protocols.TP.bufferToMessage(TP.java:973) > at org.jgroups.protocols.TP.handleIncomingPacket(TP.java:829) > at org.jgroups.protocols.TP.receive(TP.java:780) > at org.jgroups.protocols.UDP.run(UDP.java:261) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.InstantiationException: org.jgroups.protocols.ManetHeader > at java.lang.Class.newInstance0(Class.java:335) > at java.lang.Class.newInstance(Class.java:303) > at org.jgroups.Message.readHeader(Message.java:709) > ... 6 more > > I implements my class Manet just like in protocol FRAG and the Header > FragHeader, but with FRAG east error does not exist and with Manet > (extends MessageProtocol) exists. > > My classes: > > Manet extends MessageProtocol implements Runnable > ManetHeader extends Header implements Streamable > Manetv1_1 (org.jgroups.demos.Manetv1_1) aplication > > > Thanks for all; > > Bye > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > javagroups-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javagroups-users > > -- Bela Ban Lead JGroups / JBoss Clustering team JBoss - a division of Red Hat |