File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Oracle Java Integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Oracle Java Integration" Watch "Oracle Java Integration" New topic
Author

Oracle Java Integration

Action Brave
Greenhorn

Joined: Mar 07, 2013
Posts: 1
Hi All,

I have an integration between Oracle & Java. I have created a procedure in PLSQL to call a java class which send mail. It was working fine a month ago but now when i execute the procedure it through's following exception.
javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: recv failed
A request to send or receive data was disallowed because the socket is not
connected and (when sending on a datagram socket using a sendto call) no address
was supplied.
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:297)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at SendSMS.sendSMS(SendSMS.java:91)
Caused by: java.net.SocketException: recv failed
A request to send or receive data was disallowed because the socket is not
connected and (when sending on a datagram socket using a sendto call) no address
was supplied.
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:284)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:319)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1345)
at
com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:10
3)
at com.sun.net.ssl.internal.ssl.Handshaker.kickstart(Handshaker.java:528)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.kickstartHandshake(SSLSocketImpl.java
:1101)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl
.java:1024)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:675
)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java)
at java.io.BufferedInputStream.read(BufferedInputStream.java)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java)
... 9 more

PL/SQL procedure successfully completed.


I have tested my java class seperately and it's working fine on own. Any help ?

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Oracle Java Integration
 
Similar Threads
Unable to send a mail through Outlook.
JavaMail and security
Got Error in sending mail from java to internal exchange server
Problem regarding JavaMail
why java mail application not portable for both standalone and web