Mobile first 7.1 push notification [duplicate] - ibm-mobilefirst
Using this certificates (apns-certificate-sandbox.p12) in Development(Windows environment) I was able to send push notification successfully to Apple devices.
The same certificate when used in Test stand alone(Linux Environment). I am seeing this issue. Does any one know why I might be getting this issue.
[4/7/16 10:44:52:328 EDT] 000006a2 ibm.pushworks.server.notification.apns.ApplicationConnection E FPWSE1083E: Failed to send APNS notification with identifier 7, device token: sdfsdfsdfsdsfsddsfsdfsdfsdfsd
javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: End user tried to act as a CA
at com.ibm.jsse2.j.a(j.java:23)
at com.ibm.jsse2.qc.a(qc.java:190)
at com.ibm.jsse2.ab.a(ab.java:239)
at com.ibm.jsse2.ab.a(ab.java:136)
at com.ibm.jsse2.bb.a(bb.java:93)
at com.ibm.jsse2.bb.a(bb.java:230)
at com.ibm.jsse2.ab.r(ab.java:270)
at com.ibm.jsse2.ab.a(ab.java:259)
at com.ibm.jsse2.qc.a(qc.java:568)
at com.ibm.jsse2.qc.h(qc.java:759)
at com.ibm.jsse2.qc.a(qc.java:93)
at com.ibm.jsse2.h.write(h.java:34)
at java.io.OutputStream.write(OutputStream.java:86)
at com.ibm.pushworks.server.notification.apns.ApnsConnectionImpl.sendMessage(ApnsConnectionImpl.java:302)
at com.ibm.pushworks.server.notification.apns.ApnsConnectionImpl.sendMessage(ApnsConnectionImpl.java:292)
at com.notnoop.apns.internal.ApnsPooledConnection$2.run(ApnsPooledConnection.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
at java.lang.Thread.run(Thread.java:780)
Caused by: com.ibm.jsse2.util.j: End user tried to act as a CA
at com.ibm.jsse2.util.i.a(i.java:11)
at com.ibm.jsse2.util.i.a(i.java:116)
at com.ibm.jsse2.util.i.b(i.java:95)
at com.ibm.jsse2.util.g.a(g.java:17)
at com.ibm.jsse2.yc.a(yc.java:73)
at com.ibm.jsse2.yc.a(yc.java:110)
at com.ibm.jsse2.yc.checkServerTrusted(yc.java:101)
at com.ibm.jsse2.bb.a(bb.java:19)
... 14 more
[4/7/16 10:44:52:326 EDT] 000006af SystemErr R at com.notnoop.apns.internal.Utilities.wrapAndThrowAsRuntimeException(Utilities.java:277)
[4/7/16 10:44:52:328 EDT] 000006af SystemErr R at com.ibm.pushworks.server.notification.apns.ApnsConnectionImpl.sendMessage(ApnsConnectionImpl.java:319)
[4/7/16 10:44:52:329 EDT] 000006af SystemErr R at com.ibm.pushworks.server.notification.apns.ApnsConnectionImpl.sendMessage(ApnsConnectionImpl.java:292)
[4/7/16 10:44:52:329 EDT] 000006af SystemErr R at com.notnoop.apns.internal.ApnsPooledConnection$2.run(ApnsPooledConnection.java:47)
[4/7/16 10:44:52:329 EDT] 000006af SystemErr R at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
[4/7/16 10:44:52:329 EDT] 000006af SystemErr R at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
[4/7/16 10:44:52:329 EDT] 000006af SystemErr R at java.lang.Thread.run(Thread.java:780)
[4/7/16 10:44:52:329 EDT] 000006af SystemErr R Caused by:
[4/7/16 10:44:52:329 EDT] 000006af SystemErr R javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: End user tried to act as a CA
[4/7/16 10:44:52:330 EDT] 000006af SystemErr R at com.ibm.jsse2.j.a(j.java:23)
[4/7/16 10:44:52:330 EDT] 000006af SystemErr R at com.ibm.jsse2.qc.a(qc.java:190)
[4/7/16 10:44:52:330 EDT] 000006af SystemErr R at com.ibm.jsse2.ab.a(ab.java:239)
[4/7/16 10:44:52:330 EDT] 000006af SystemErr R at com.ibm.jsse2.ab.a(ab.java:136)
[4/7/16 10:44:52:331 EDT] 000006af SystemErr R at com.ibm.jsse2.bb.a(bb.java:93)
[4/7/16 10:44:52:331 EDT] 000006a2 SystemErr R Exception in thread "pool-5-thread-7"
[4/7/16 10:44:52:331 EDT] 000006a2 SystemErr R com.notnoop.exceptions.NetworkIOException: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: End user tried to act as a CA
[4/7/16 10:44:52:331 EDT] 000006a2 SystemErr R at com.notnoop.apns.internal.Utilities.wrapAndThrowAsRuntimeException(Utilities.java:277)
[4/7/16 10:44:52:331 EDT] 000006a2 SystemErr R at com.ibm.pushworks.server.notification.apns.ApnsConnectionImpl.sendMessage(ApnsConnectionImpl.java:319)
[4/7/16 10:44:52:331 EDT] 000006a2 SystemErr R at com.ibm.pushworks.server.notification.apns.ApnsConnectionImpl.sendMessage(ApnsConnectionImpl.java:292)
[4/7/16 10:44:52:332 EDT] 000006a2 SystemErr R at com.notnoop.apns.internal.ApnsPooledConnection$2.run(ApnsPooledConnection.java:47)
[4/7/16 10:44:52:332 EDT] 000006a2 SystemErr R at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
[4/7/16 10:44:52:332 EDT] 000006a2 SystemErr R at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
[4/7/16 10:44:52:332 EDT] 000006a2 SystemErr R at java.lang.Thread.run(Thread.java:780)
[4/7/16 10:44:52:332 EDT] 000006a2 SystemErr R Caused by:
[4/7/16 10:44:52:332 EDT] 000006a2 SystemErr R javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: End user tried to act as a CA
[4/7/16 10:44:52:332 EDT] 000006a2 SystemErr R at com.ibm.jsse2.j.a(j.java:23)
[4/7/16 10:44:52:333 EDT] 000006a2 SystemErr R at com.ibm.jsse2.qc.a(qc.java:190)
[4/7/16 10:44:52:333 EDT] 000006a2 SystemErr R at com.ibm.jsse2.ab.a(ab.java:239)
[4/7/16 10:44:52:333 EDT] 000006a2 SystemErr R at com.ibm.jsse2.ab.a(ab.java:136)
[4/7/16 10:44:52:333 EDT] 000006a2 SystemErr R at com.ibm.jsse2.bb.a(bb.java:93)
[4/7/16 10:44:52:334 EDT] 000006a2 SystemErr R at com.ibm.jsse2.bb.a(bb.java:230)
[4/7/16 10:44:52:334 EDT] 000006a2 SystemErr R at com.ibm.jsse2.ab.r(ab.java:270)
[4/7/16 10:44:52:334 EDT] 000006a2 SystemErr R at com.ibm.jsse2.ab.a(ab.java:259)
[4/7/16 10:44:52:335 EDT] 000006a2 SystemErr R at com.ibm.jsse2.qc.a(qc.java:568)
[4/7/16 10:44:52:335 EDT] 000006a2 SystemErr R at com.ibm.jsse2.qc.h(qc.java:759)
[4/7/16 10:44:52:335 EDT] 000006a2 SystemErr R at com.ibm.jsse2.qc.a(qc.java:93)
[4/7/16 10:44:52:335 EDT] 000006a2 SystemErr R at com.ibm.jsse2.h.write(h.java:34)
[4/7/16 10:44:52:335 EDT] 000006a2 SystemErr R at java.io.OutputStream.write(OutputStream.java:86)
[4/7/16 10:44:52:335 EDT] 000006a2 SystemErr R at
Finally after replacing cacerts from IBM Java 1.7 to 1.6 fixed the issued.
Related
How do I extract text from Website's Class element with VB.net
I'm trying to retrieve some text from a website and have tried the following: Dim inStream As StreamReader Dim webRequest As WebRequest Dim webresponse As WebResponse Try webRequest = WebRequest.Create(txtScrape.Text) webresponse = webRequest.GetResponse() inStream = New StreamReader(webresponse.GetResponseStream()) txtFormatted.Text = inStream.ReadToEnd() Catch ex As Exception MsgBox(ex.Message) End Try However I get the following error: An unhandled exception of type 'System.Net.WebException' occurred in System.dll Additional information: The underlying connection was closed: An unexpected error occurred on a send. Any assistance would be appriciated or other methods of extracting the text from a class="SummaryCity" like below <span class="SummaryCity"> thetextIneed, Egypt </span>
Web hosting from smarterasp.net. the mail is not sended it shows SMTP server requires a secure connection
When I used this code to send mail on the visual studio 2012 server (localhost), the mail has been sent successfully. But it shows an authentication problem when I'm free web hosting from smarterasp.net.What problem is going on? Private Sub sendCode() 'email verify Dim Random As Random = New Random() activationCode = Random.Next(1001, 9999).ToString() Session("activationCode") = activationCode 'email sending Dim smtp As SmtpClient = New SmtpClient() smtp.Host = "smtp.gmail.com" smtp.Port = 587 smtp.EnableSsl = True smtp.UseDefaultCredentials = False smtp.Credentials = New NetworkCredential("xyz#xyz.com", "xxxxxxx") Dim msg As MailMessage = New MailMessage("xyz#xyz.com", Session("toEmail"), "Activation Code to verify Email Address", "Dear, Alumni your Activation Code is " + activationCode + "\n\n\nThanks & Regards\nVidyasagar University CS Students") Try smtp.Send(msg) lblMessage.Text = "Mail sent successfully" Session("isFromCheck") = "yes" Response.Redirect("emailVerification.aspx") Catch ex As Exception lblMessage.Text = ex.Message End Try End Sub I expect the mail sending should be successful as on my development server but it shows me -------> The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at Source Error: Line 90: Line 91: Line 92: smtp.Send(msg) Line 93: Session("isFromCheck") = "yes" Source File: h:\root\home\subhankarjana-001\www\alumnifeedback\check.aspx.vb Line: 92
System.invalidOperationException with thread that downloads from FTP
I am trying to download a chat.txt file from my ftp server so it updates fast instead of with a timer because the form is lagging with a timer. but now i get the error: A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll and my code is: Private Sub RefreshChat() Dim client As New Net.WebClient client.Credentials = New Net.NetworkCredential("username", "pass") Do Try Dim ChatInfo = client.DownloadString("ftp://ftphost/Users/" + Me.Text + "/" + Me.Text + TextBox3.Text + "Chat.txt") TextBox1.Text = Decrypt(ChatInfo) Catch End Try Loop End Sub this is the full error i get: A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
Visual basic 2010 send email using gmail SMTP
I want to send email from my Visual basic form my code: Private Sub email1() Try Dim Smtp_Server As New SmtpClient Dim e_mail As New MailMessage() Smtp_Server.UseDefaultCredentials = False Smtp_Server.Credentials = New Net.NetworkCredential("MYEMAIL#gmail.com", "MYPASS") Smtp_Server.Port = 465 Smtp_Server.EnableSsl = True Smtp_Server.Host = "smtp.gmail.com" e_mail = New MailMessage() e_mail.From = New MailAddress("MYEMAIL#gmail.com") e_mail.To.Add("MYFRIENDEMAIL#gmail.com") e_mail.Subject = "SUBJECT" e_mail.IsBodyHtml = False e_mail.Body = "TEXT MESSAGE" Smtp_Server.Send(e_mail) Catch error_t As Exception email_status.Text = ("Error: " & error_t.Message) MsgBox(error_t.Message) Exit Sub End Try email_status.Text = ("OK") End Sub errors while using smtp.gmail.com while using SMTP port 465: The operation has timed out. while using SMTP port 587: Failure sending email. while using SMTP port 25: Failure sending email. errors while using smtp.googlemail.com while using SMTP port 465: The operation has timed out. while using SMTP port 587: Failure sending email. while using SMTP port 25: Failure sending email. i am using AVAST antivirus but i turned it off can you please help me? thank you very much.
Can't send email with proxy server
I'm having a problem inside work, trying to send an email. I think this is because we use a Proxy Server, however I can't find anyway of programming a proxy into VB.net, any helpers? I keep getting the following error: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 173.194.66.109:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at SENpic.Email.butSendEmail_Click(Object sender, EventArgs e) in C:\Users\Graham\Documents\Visual Studio 2010\Projects\Email Project\EmailTest\Email.vb:line 28 Here is the code: Try Dim Smtp_Server As New SmtpClient Dim e_mail As New MailMessage() Smtp_Server.UseDefaultCredentials = False Smtp_Server.Credentials = New Net.NetworkCredential("mymail#gmail.com", "password") Smtp_Server.Port = 25 '587 Smtp_Server.EnableSsl = True Smtp_Server.Host = "smtp.gmail.com" e_mail = New MailMessage() e_mail.From = New MailAddress(txtEmailFrom.Text, "SENpic CSP") e_mail.To.Add("fred2000#aol.com") e_mail.Subject = txtEmailSubject.Text e_mail.IsBodyHtml = False e_mail.Body = txtEmailMessage.Text Smtp_Server.Send(e_mail) MsgBox("Your email has been sent", MsgBoxStyle.Information + MsgBoxStyle.OkOnly, "EMail...") Catch error_t As Exception WriteToLogFile("Email: ", error_t.ToString) MsgBox(error_t.ToString) End Try Any help is much appreciated. Thanks Graham