Hi Abdul Did you get answer of your question.
I am facing same issue and not find any appropriate solution for the same. Would you please let send the sample code for the same. Abdul Khaliq wrote: > > Thanks Ashis but its strange. I still cannot receive events. I will have a > look at different pc. Appricate ur help. > > Abdul Khaliq > > > > Ashish-24 wrote: >> >> I ran the program and the client is receiving the message. >> >> Here are Server dumps >> Session created... >> Session Opened... >> ABC_XYZ >> Object Attached and SentMessage sent >> >> Client Console output >> >> Session created... >> Session opened... >> Message sent... >> r.getMessage(); null >> org.apache.mina.core.buffer.BufferDataException: Object length should >> be greater than 4: 0 >> at >> org.apache.mina.core.buffer.AbstractIoBuffer.getObject(AbstractIoBuffer.java:1942) >> at >> org.apache.mina.core.buffer.AbstractIoBuffer.getObject(AbstractIoBuffer.java:1927) >> at client.CustomClient.messageReceived(CustomClient.java:144) >> at >> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:713) >> at >> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) >> at >> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) >> at >> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793) >> at >> org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) >> at >> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) >> at >> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) >> at >> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:638) >> at >> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:598) >> at >> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:587) >> at >> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:61) >> at >> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:969) >> at >> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >> at java.lang.Thread.run(Thread.java:637) >> >> So things are working fine :) >> >> Your client is receiving the message, you just need to fix this >> exception. >> >> Good Luck ! >> >> You are almost there, just a few lines of code more :) >> >> >> >> On Thu, Mar 11, 2010 at 4:41 PM, Abdul Khaliq <[email protected]> >> wrote: >>> >>> i have attached the src code >>> >>> Abdul Khaliq >>> >>> http://old.nabble.com/file/p27862087/src.rar src.rar >>> >>> Ashish-24 wrote: >>>> >>>> On Thu, Mar 11, 2010 at 12:43 PM, Abdul Khaliq <[email protected]> >>>> wrote: >>>>> >>>>> Here what actually happens >>>>> >>>>> UDP client UDP Server >>>>> 1.The server >>>>> starts >>>>> and no events are generated >>>>> 2. generates Session created event >>>>> 3. generates Session opened event >>>>> 4. sends the data to server >>>>> 5. generates >>>>> Session >>>>> created event >>>>> 6. generates >>>>> Session >>>>> opened event >>>>> 7. generated the >>>>> message >>>>> received event >>>>> >>>>> some strange things as soon as i stop the server the message receive >>>>> event >>>>> is generated on the client. else the session closed event is generated >>>>> automatically and no message received event is generated. >>>>> >>>>> Abdul Khaliq >>>> >>>> Take a thread dump and see what is happening >>>> Can you share the code? >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/UDP-replying-to-a-message-issue-tp27859293p27862087.html >>> Sent from the Apache MINA User Forum mailing list archive at Nabble.com. >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/UDP-replying-to-a-message-issue-tp27859293p34085840.html Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
