You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Aruna polepally (JIRA)" <ji...@apache.org> on 2011/06/28 13:14:17 UTC

[jira] [Created] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Message cannot send message to offline receiver is not sent back to client
--------------------------------------------------------------------------

                 Key: VYSPER-286
                 URL: https://issues.apache.org/jira/browse/VYSPER-286
             Project: VYSPER
          Issue Type: Bug
          Components: core protocol
    Affects Versions: 0.7
         Environment: windows 7
            Reporter: Aruna polepally


Using a smack Api as client i am trying to send message from Client A to Client B
(offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
Is ther



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Prem Gnana Arun (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079881#comment-13079881 ] 

Arun Prem edited comment on VYSPER-286 at 8/5/11 10:44 AM:
-----------------------------------------------------------

I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. 

Because the suggested solution does not address unexpected network disconnects. 

For the sake of clarity I explain the scenario once again with User1 and User2 as requested by Bernd already.

1. User1 logs in. The status is set as 'Available'  by default.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network.
==> Other user's list disappears from User1 messenger window.

3. Check the status of  User1 from the messenger window of other logged in users.
==> User1's status still remains in the same for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 

The questions is how to detect the unexpected network disconnects for User1 and broadcast the status (as offline) to other logged in users.

Thanks...

      was (Author: gpgarun):
    I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. 

Because the suggested solution does not address unexpected network disconnects. 

For the sake of clarity I explain the scenario once again with User1 and User2 as requested by Bernd already.

1. User1 logs in. The status is set as 'Available'  by default.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network.
==> Other user's list disappears from User1 messenger window.

3. Check the status of  User1 from the messenger window of other logged in users.
==> User1's status still remains in the same for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 

The questions is how to detect the unexpected network disconnects for User1 and broadcast the status (as offline) to other logged in users.
  
> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057053#comment-13057053 ] 

Bernd Fondermann commented on VYSPER-286:
-----------------------------------------

This is a tricky subject.

At first, as soon as Vysper recognizes it has lost a client connection it will make sure that a presence unavailable on behalf of the client is sent. 

But detecting this can be tricky. Say you have a working TCP/IP socket. Now both sides stop sending anything over the socket. Unplug network cable, wait, - without trying to send anything -, then plug it back in: there's a good chance your socket still works.

Sending "Direct Presence" to a contact might not help either, because the server is allowed to cache presence and answers on behalf of the contact.

If you send a message to the disconnected contact this should trigger the server to notice if the contact is still there. You should receive a presence unavailable as a result of trying to contact the contact. (But note that if the same contact has multiple sessions open, this might not be true.)

Please, can you check that you receive a presence unavailable at some point before or after sending the message to your contact?

Thanks,

  Bernd



> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057411#comment-13057411 ] 

Bernd Fondermann commented on VYSPER-286:
-----------------------------------------

I don't understand your case yet. could you please rephrase with client1 and client2? thank you.

What storage are you using? inmemory? JCR? another?



> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Prem Gnana Arun (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079881#comment-13079881 ] 

Prem Gnana Arun edited comment on VYSPER-286 at 8/5/11 10:25 AM:
-----------------------------------------------------------------

I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. 

Because the suggested solution does not address unexpected network disconnects. 

For the sake of clarity I explain the scenario once again with User1 and User2 as requested by Bernd already.

1. User1 logs in. The status is set as 'Available'  by default.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network.
==> Other user's list disappears from User1 messenger window.

3. Check the status of  User1 from the messenger window of other logged in users.
==> User1's status still remains in the same for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 

The questions is how to detect the unexpected network disconnects for User1 and broadcast the status to other logged in users accordingly

      was (Author: gpgarun):
    I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. 

Because the suggested solution does not address unexpected network disconnects. 

For the sake of clarity I explain the scenario once again with User1 and User2 as requested by Bernd already.

1. User1 logs in. The status is set as 'Available'  by default.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network.
==> Other user's list disappears from User1 messenger window.

3. Check the status of  User1 from the messenger window of other logged in users.
==> User1's status still remains in the same status for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 

The questions is how to detect the unexpected network disconnects for User1 and broadcast the status to other logged in users accordingly
  
> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Aruna polepally (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057136#comment-13057136 ] 

Aruna polepally commented on VYSPER-286:
----------------------------------------

I have checked for the presence before sending message to the client it does not show the correct presence value.Actually the other way it works fine
i.e... The client is offline in the beginning and comes online while sending message the presence is correctly reflected as "available" and am able to send message.But the vice versa case where in the client is online first and goes offline during the process of sending message the presence still shows as "available" where actually the client is offline.

Thanks,
Aruna


> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Prem Gnana Arun (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079881#comment-13079881 ] 

Prem Gnana Arun edited comment on VYSPER-286 at 8/5/11 10:12 AM:
-----------------------------------------------------------------

I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. 

Because the suggested solution does not address unexpected network disconnects. 

For the sake of clarity I explain the scenario once again with User1 and User2 as requested by Bernd already.

1. User1 logs in. The status is set as 'Available'  by default.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network.
==> Other user's list disappears from User1 messenger window.

3. Check the status of  User1 from the messenger window of other logged in users.
==> User1's status still remains in the same status for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 

The questions is how to detect the unexpected network disconnects for User1 and broadcast the status to other logged in users accordingly

      was (Author: gpgarun):
    I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. Is there any alternate solutions? For the sake of clarity I can explain my scenario once again with Client 1 and Client 2 as requested by Bernd already.

1. Login with User1 and set the status as 'Available' in the Messenger.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network
==> User1 doesn't see the other user if refreshed as expected.

3. Check the status of  User1from the Messenger window of other logged in users
==> User1's status still remains in the same status for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 
  
> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Fondermann resolved VYSPER-286.
-------------------------------------

    Resolution: Not A Problem

client is required to terminate the connection properly

> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Aruna polepally (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056999#comment-13056999 ] 

Aruna polepally commented on VYSPER-286:
----------------------------------------

Thanks for quick reply Bernd.Wanted to explain my scenario more elaborately:
I am trying to check the users presence before sending message.
Scenario: Client A logins and Client B is offline Client A checks for presence of Client B.It shows correctly as unavailable
Client B is now logged in,the presence shows available hence sends the message.Now Client B  is abnormally terminated,the presence of client B still shows available
Does vysper send any presence changes to other clients in case the client is abnormally terminated(as this case to exception caught code part in vysper where in the error message is not sent for offline clients.
Is there any way i could handle this situation in a better way

> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056457#comment-13056457 ] 

Bernd Fondermann commented on VYSPER-286:
-----------------------------------------

XMPP is concerned about presence leaks and harvesting attacks. see http://xmpp.org/rfcs/rfc6120.html chapter 10.2.
As a general rule, clients sending messages to unexisting or offline clients do not get a response.
Clients sending messages to their confirmed contacts of course know their availability, so an error message does not provide additional info.

So, I'm tempted to mark this issue as WON'T FIX, but leave it open for discussion a little more.

Thank you for reporting it anyway.

> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Aruna polepally (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057607#comment-13057607 ] 

Aruna polepally commented on VYSPER-286:
----------------------------------------

I am using inmemory storage.I am using Vysper 0.7 and have written two clients/users using smack api to connect to server and communicate with each other
ClientA/userA ------ Server --------ClientB/userB
If Client/User A wants to send message to Client/User B it checks for the presence and then sends it.Client/User B goes offline but the presence still shows as available.

Thanks
Aruna

> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Prem Gnana Arun (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079881#comment-13079881 ] 

Prem Gnana Arun edited comment on VYSPER-286 at 8/5/11 10:26 AM:
-----------------------------------------------------------------

I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. 

Because the suggested solution does not address unexpected network disconnects. 

For the sake of clarity I explain the scenario once again with User1 and User2 as requested by Bernd already.

1. User1 logs in. The status is set as 'Available'  by default.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network.
==> Other user's list disappears from User1 messenger window.

3. Check the status of  User1 from the messenger window of other logged in users.
==> User1's status still remains in the same for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 

The questions is how to detect the unexpected network disconnects for User1 and broadcast the status (as offline) to other logged in users.

      was (Author: gpgarun):
    I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. 

Because the suggested solution does not address unexpected network disconnects. 

For the sake of clarity I explain the scenario once again with User1 and User2 as requested by Bernd already.

1. User1 logs in. The status is set as 'Available'  by default.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network.
==> Other user's list disappears from User1 messenger window.

3. Check the status of  User1 from the messenger window of other logged in users.
==> User1's status still remains in the same for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 

The questions is how to detect the unexpected network disconnects for User1 and broadcast the status to other logged in users accordingly
  
> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Prem Gnana Arun (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079881#comment-13079881 ] 

Prem Gnana Arun commented on VYSPER-286:
----------------------------------------

I too have a very similar case, but it seems the given solution to implement shutdown hook won't work. Is there any alternate solutions? For the sake of clarity I can explain my scenario once again with Client 1 and Client 2 as requested by Bernd already.

1. Login with User1 and set the status as 'Available' in the Messenger.
==> User1's status is reflected in the messenger window of other logged in users.

2. Disconnect User1's workstation from the network
==> User1 doesn't see the other user if refreshed as expected.

3. Check the status of  User1from the Messenger window of other logged in users
==> User1's status still remains in the same status for all other users. 

Expected: User1's status should be made offline to other users as soon as the network disconnects. 

> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (VYSPER-286) Message cannot send message to offline receiver is not sent back to client

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057610#comment-13057610 ] 

Bernd Fondermann commented on VYSPER-286:
-----------------------------------------

add a shutdown hook to your application to make sure the client terminates the connection properly.
call code like this before or right after you established a connection:

    protected void addShutdownHook_GracefulXMPPTermination() {
        Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
            @Override
            public void run() {
                LOGGER.info("executing shutdown hook.");
                XMPPConnection locXmppConnection = xmppConnection;
                if (locXmppConnection != null) {
                    locXmppConnection.disconnect();
                }
            }
        }));
    }

I'm happy to continue this discussion on the mina user maling list. 

> Message cannot send message to offline receiver is not sent back to client
> --------------------------------------------------------------------------
>
>                 Key: VYSPER-286
>                 URL: https://issues.apache.org/jira/browse/VYSPER-286
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>    Affects Versions: 0.7
>         Environment: windows 7
>            Reporter: Aruna polepally
>
> Using a smack Api as client i am trying to send message from Client A to Client B
> (offline).I can see the error message in the server console as follows : org.apache.vysper.xmpp.delivery.inbound.DeliveringInternalInboundStanzaRelay WARN cannot relay to offline receiver b@localhost stanza message.body.Hello.I could not see any error message sending back to client A so that the message can be captured.
> Is ther

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira