How can I send stanza from ejabberd server to user? - ejabberd

I am new on ejabberd. I followed this link Ejabberd return message to sender hook / message receipts to send a message from server to user which is 6 years old. My ejabberd server crash with the given error:
**exception error: no function clause matching
xmpp:set_from_to({xmlelement,"message",[{"type","serverreceipt"},{"from","67456efc-be57-4cbd-a176-527de2dce19d"},{"to","e5d6d83c-ea77-4d10-aaac-4e0e38899ac2"},{"id","mty321"}],[{xmlelement,"body",[],[{xmlcdata,[]}]}]},{jid,<<"67456efc-be57-4cbd-a176-527de2dce19d">>,<<"faiqkhan-virtualbox">>,<<>>,<<"67456efc-be57-4cbd-a176-527de2dce19d">>,<<"faiqkhan-virtualbox">>,<<>>},{jid,<<"e5d6d83c-ea77-4d10-aaac-4e0e38899ac2">>,<<"faiqkhan-virtualbox">>,<<"4008526814005163385914">>,<<"e5d6d83c-ea77-4d10-aaac-4e0e38899ac2">>,<<"faiqkhan-virtualbox">>,<<"4008526814005163385914">>})
(src/xmpp.erl, line 263)
in function ejabberd_router:route/3
(src/ejabberd_router.erl, line 111)
in call from
mod_stanza_ack:on_user_send_packet/1
(/home/faiqkhan/ejabberd-20.07/mod_stanza_ack.erl, line 30)**
Is this method depreciated? or I am doing someting wrong? I am trying to do is when user A send a message to user B, when the server get the message server send an acknowledgement to user A that the server get the message.

Related

SMTP ERROR: DATA END command failed: 550 5.7.1 Client does not have permissions to send as this sender

I have strange error, when I am trying send email using
https://github.com/Garethp/php-ews
with just my msexchange username, password, it send email properly
but if I try to send message using phpmailer with my default from email I get following error
SMTP ERROR: DATA END command failed: 550 5.7.1 Client does not have permissions to send as this sender
What can be the possible reasons and How can I fix it

Customize jdbcexception error message

I have a java web application which is deployed on a linux server using tomcat and mysql. Most of the time in the morning , When i try to login , it gives the following error : "The last packet successfully received from the server was 60,244,374 milliseconds ago...." This is a common issue and i have already insert some properties in my tomcat connection and i need to wait for testing. Meanwhile , I want to customize this error message to "Server is down". Can someone tell me how to catch this exception?
Note that i use spring security for authentication and for database : hibernate and jpa (jndi)Please find attached error message. This error message is too complex for user!

how to resolve error 17836, Severity: 20, State: 14?

Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library.
Error: 17836, Severity: 20, State: 14. I am getting this error 5 times at the same time almost and want to know the reason for its occurrence.
See the solution here:
Since the SQL Server has Event ID 17836 logged, the SQL port is open.
It is more like authentication issue. Based on this articles
(Configuration for querying SQL database remotely –
http://www.howtonetworking.com/others/testsqlconnect2.htm ), we may
have 3 fixes:
creating SQL login ID (recommended)
join the computer to the domain
allow anonymous connections to SQL Server 2000 or to SQL Server 2005 (don’t recommend)
And this MSDN forum
Perform a nslookup of the CLIENT IP Address that is listed in the
error message and find out what computer it is that is connecting.
Then you need to check that machine and determine what specifically is
connecting to the SQL Server. You might get more infromation from
doing a SQL Trace for the Errors and Warnings Event Class and have the
ClientProcessID column in the trace data. When the error spikes, you
might get the PID for the process that is connecting from that
10.26.32.96 machine, and then you can find that process in Task Manager on that machine by adding the PID to the data displayed (View
-> Select Columns).
In my case, these events coincided with me doing telnet connectivity tests to our SQL Servers. We would see one entry in the Windows Event Log for each instance we successfully did a telnet to.

SQL Server Agent service account login failure

I am using SQL Server 2014 on a Windows 2012 server. I have several database instances on the server.
One of the instances has an error in the log every day at 2 AM.
Login failed for user MyDomain\SQLAgentAccount.
Reason: Could not find a login matching the name provided.
[CLIENT: ].
Error: 18456, Severity: 14, State: 5
This is the service account used for SQL Server Agent. The Agent service is running and all jobs run successfully. I was able to trace it back to see that it is coming from PowerShell.
If I add the account explicitly, the error goes away. But I did not need to do that on the other instances and don't think it would be best practices to do so here.

Column count doesn't match value count at row 1SMTP Error: Could not connect to SMTP host

I have this error message and dont know what is the problem, help me please!
SMTP Error: Could not connect to SMTP host.
Ooops (saveEmpleado): Column count doesn't match value count at row 1
SMTP Error: Could not connect to SMTP host.
Warning: Cannot modify header information - headers already sent by (output started at
/home/ajuares/public_html/php/functions/PHPMailer/class.phpmailer.php:586) in
/home/ajuares/public_html/php/action/inscribir.php on line 344