Exception in sending attachment
sir,
This is may code of sending attachment but there is run time exception arises.
please you see it &send correct code or guide me.
code:'
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import java.io.*;
import javax.activation.*;
import java.util.Properties;
import javax.swing.*;
import java.lang.*;
public class SendAttachment
public static void main(String args[]) throws Exception
String host ="smtp.gmail.com";
String from="[email protected]";
String to="[email protected]";
String filename="my.jpg";
Properties props = System.getProperties();
props.put("mail.smtp.host", host);
props.put("mail.smtp.starttls.enable","true");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "587") ;
Session ses1 = Session.getInstance(props, null);
Message msg = new MimeMessage(ses1);
msg.setFrom(new InternetAddress(from));
msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
msg.setSubject("photo attached");
BodyPart msgBP = new MimeBodyPart();
msgBP.setText("Take a look at this");
Multipart mpart = new MimeMultipart();
mpart.addBodyPart(msgBP);
msgBP = new MimeBodyPart();
DataSource src = new FileDataSource(filename);
msgBP.setDataHandler(new DataHandler(src));
msgBP.setFileName(filename);
mpart.addBodyPart(msgBP);
msg.setContent(mpart);
Transport.send(msg);
exception:-
C:\attachment>java SendAttachment
Exception in thread "main" javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:319)
at javax.mail.Service.connect(Service.java:169)
at javax.mail.Service.connect(Service.java:118)
at javax.mail.Transport.send0(Transport.java:188)
at javax.mail.Transport.send(Transport.java:118)
at SendAttachment.main(SendAttachment.java:42)
You've enabled authentication, but you never supplied a username or password.
Start here: http://java.sun.com/products/javamail/FAQ.html#smtpauth
Similar Messages
-
Hello Gurus,
Please help me with the mail sending attachment(excel file) using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
Here is the actual problem.
I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 in my prog.
My attachment(excel sheet which is taken from internal table) contains the 10 records with one header description and data related to that description.
I am able to send the attachment but the records in the attachment has more than 255 characters nearly 700 character length.
So I spilt up each internal table record(with structure type solisti1) into 3 internal table records and populated it.
It is showing the entire record in the attached file but I am not able to see some fields which are embeded deeply inside the cells.
And they are not having any proper allignment.
Please do help me.
Promise to reward points.
MacHere is the sample code....
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Creating the document to be sent
DOC_CHNG-OBJ_NAME = 'OFFER'.
DOC_CHNG-OBJ_DESCR = 'Auction of a Picasso jr'.
OBJTXT = 'Reserve price : $250000'.
APPEND OBJTXT.
OBJTXT = 'A reproduction of the painting to be auctioned'.
APPEND OBJTXT.
OBJTXT = 'is enclosed as an attachment.'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creating the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Creating the document attachment
(Assume the data in OBJBIN are given in BMP format)
OBJBIN = ' \O/ '. APPEND OBJBIN.
OBJBIN = ' '. APPEND OBJBIN.
OBJBIN = ' / \ '. APPEND OBJBIN.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'picasso.bmp'. APPEND OBJHEAD.
Creating the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'BMP'.
OBJPACK-OBJ_NAME = 'ATTACHMENT'.
OBJPACK-OBJ_DESCR = 'Reproduction object 138'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK..
Entering names in the distribution list
RECLIST-RECEIVER = '<name>@yahoo.com'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
RECLIST-RECEIVER = 'DLI-NEUREICH'.
RECLIST-REC_TYPE = 'P'.
APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC.
WHEN 0.
WRITE: / 'Result of the send process:'.
LOOP AT RECLIST.
WRITE: / RECLIST-RECEIVER(48), ':'.
IF RECLIST-RETRN_CODE = 0.
WRITE 'sent successfully'.
ELSE.
WRITE 'not sent'.
ENDIF.
ENDLOOP.
WHEN 1.
WRITE:
/ 'no authorization to send to the specified number recipients!'.
WHEN 2.
WRITE: / 'document could not be sent to any of the recipient'.
WHEN 4.
WRITE: / 'no authorization to send !'.
WHEN OTHERS.
WRITE: / 'error occurred during sending !'.
ENDCASE.
Regards,
Pavan. -
Send attachment with maximum characters
I need to extract data from a table into a .csv and then send that .csv as an attachment.
I am converting the data to csv and assigning it to clob variable but table has huge data therefore procedure gets error out after around 7000 characters with
ORA-06502: PL/SQL: numeric or value error.
Please suggest a way to send attachment with maximum characters.
With the below sample code i am able to send atttachement upto 7000 characters.
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'test subject';
v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
v_message clob;
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
utl_smtp.Data(v_Mail_Conn,
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf ||
'MIME-Version: 1.0'|| crlf || -- Use MIME mail standard
'Content-Type: multipart/mixed;'|| crlf ||
' boundary="-----SECBOUND"'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
'Content-Transfer_Encoding: 7bit'|| crlf ||
crlf ||
'some message text'|| crlf || -- Message body
'more message text'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
' name="excel.csv"'|| crlf ||
'Content-Transfer_Encoding: 8bit'|| crlf ||
'Content-Disposition: attachment;'|| crlf ||
' filename="excel.csv"'|| crlf ||
crlf ||
v_message|| crlf || -- Content of attachment
crlf ||
'-------SECBOUND--' -- End MIME mail
utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;
Thanks,Thanks for your help Billy.
I am able to segment the data but I am not getting any attachment instead segmented data is showing in the mail body.
Can you please have a look and let me where it is going wrong?
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'test mail';
v_Mail_Host VARCHAR2(30) := 'localhost';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
v_message clob;
message clob;
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
v_message := 'date: ' || to_char(sysdate, 'DD-MON-YYYY HH24:MI:SS')||chr(10)||
'from: '||v_From|| chr(10) ||
'to: '||v_Recipient ||chr(10)||
'subject: '||v_Subject || chr(10) || chr(10);
utl_smtp.open_data (v_Mail_Conn);
utl_smtp.write_data(v_Mail_Conn , v_message );
--MIME header.
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'MIME-Version: 1.0' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,' boundary="-----SECBOUND"' ||crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,crlf);
-- Mail Body
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Type: text/plain;' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn, crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn, 'Please see the attachments' || crlf);
UTL_SMTP.WRITE_DATA(v_Mail_Conn, crlf);
-- Mail Attachment
utl_smtp.write_data(v_Mail_Conn,'-------SECBOUND' || crlf);
utl_smtp.write_data(v_Mail_Conn,'Content-Type: text/plain;' || crlf);
utl_smtp.write_data(v_Mail_Conn,'name="excel.csv"' ||crlf);
utl_smtp.write_data(v_Mail_Conn,'Content-Transfer_Encoding: 8bit' ||crlf);
utl_smtp.write_data(v_Mail_Conn,'Content-Disposition: attachment;' ||crlf);
utl_smtp.write_data(v_Mail_Conn,'filename="excel.csv"' ||crlf);
utl_smtp.write_data(v_Mail_Conn,crlf);
message := 'OBJECT_TYPE, OBJECT_FOREIGNKEY, OPERATION, EVENT_ID, STATUS_ID, NUM_BLOCKED, MODIFIED_DATE, INT_UPDATEEVENT_FMWID, ERROR_DESCRIPTION';
utl_smtp.write_data(v_Mail_Conn , message );
for rec in (
select object_type, object_foreignkey, operation, x.event_id, x.status_id, num_blocked,
e.modified_date, e.INT_UPDATEEVENT_FMWID, replace(substr(e.error_description,1,100),',',' ') error_description
from (
select b2.object_type, b2.object_foreignkey, t.operation, e2.event_id, e2.status_id, count(1) num_blocked
from EVENT e
INNER JOIN TRANSACTION t
ON e.transaction_id = t.transaction_id
inner join transaction_dependency d
on t.transaction_id = d.transaction_id
inner join transaction_block b
on t.transaction_id = b.transaction_id
inner join transaction_block b2
on d.transaction_id <> b2.transaction_id
and d.object_type = b2.object_type
and d.object_foreignkey = b2.object_foreignkey
inner join transaction t2
on b2.transaction_id = t2.transaction_id
and t.source_type = t2.source_type
inner join event e2
on t2.transaction_id = e2.transaction_id
where t.source_type = 'CRM_OD_To_OP'
and e.created_date >=(sysdate - 1)
and e.status_id <1000
and e2.status_id <1000
group by b2.object_type, b2.object_foreignkey, t.operation, e2.event_id, e2.status_id
) x
inner join event e
on x.event_id = e.event_id
and e.status_id = 900
order by num_blocked desc, object_type, object_foreignkey
) loop
message := crlf || rec.object_type||','||rec.object_foreignkey||','|| rec.operation|| ','|| rec.event_id||
','||rec.status_id||','||rec.num_blocked||','||rec.modified_date||','||rec.INT_UPDATEEVENT_FMWID||','||rec.error_description;
utl_smtp.write_data(v_Mail_Conn , message );
end loop;
utl_smtp.write_data(v_Mail_Conn,crlf);
utl_smtp.write_data(v_Mail_Conn,'-------SECBOUND');
utl_smtp.close_data(v_mail_conn);
utl_smtp.quit( v_mail_conn );
EXCEPTION
WHEN others then
dbms_output.put_line('error ' || sqlerrm);
END; -
Hi,
I am using Oracle 10.2.0.1.0. My intention is to create a new database instance.
Here are the steps I have taken,
1. Using DBCA, I created a new database instance, oracle sid = MYORCL0318
2. I created the tablespaces for this instance.
then, I went to Enterprise Manager at http://<hostname>:5501/em
Login = sys
password = xxxxxxx
role = SYSDBA
After I login, I would get an Error like this
java.lang.Exception: Exception in sending Request :: null
Any ideas why this is happening and how to fix this?
thanks
ST1. When I clicked on the Performance tab, I'd get a screen that looks like this
Database Login
* User Name: SYS
* Password: xxxxxxxxxxxxx
* Connect String: MYORCL0318
* Connect As: SYSDBA
In other words, I am kicked out by the system. (I am new to this forum, did not figure out how to attach the screen shot, so I hope you find my description of the screen acceptable.)
2. emctl status returned the following
C:\oracle\product\10.2.0Serve\db_1\BIN>emctl status
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Invalid arguments
Unknown command option status
Usage::
Oracle Enterprise Manager 10g Database Control commands:
emctl start| stop| status| setpasswd dbconsole
emctl secure <options>
emctl set ssl test|off|on em
emctl set ldap <host> <port> <user dn> <user pwd> <context dn>
emctl blackout options can be listed by typing "emctl blackout"
emctl config options can be listed by typing "emctl config"
emctl secure options can be listed by typing "emctl secure"
emctl ilint options can be listed by typing "emctl ilint"
emctl deploy options can be listed by typing "emctl deploy"
so, I entered "emctl status dbconsole" instead, and I got,
C:\oracle\product\10.2.0Serve\db_1\BIN>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://hostname:5501/em/console/aboutApplication
EM Daemon is not running.
Logs are generated in directory C:\oracle\product\10.2.0Serve\db_1/<hostname>_MYORCL0318/sysman/log
3. <ORACLE_HOME>\<hostname>_<SID>\sysman\log
there are several log files in that directory,
emdb.nohup
emdctl.log
emdctl.trc
emoms.log
emoms.trc
OracleDBConsoleMYORCL0318exit.log
OracleDBConsoleMYORCL0318srvc.log
I'd assume you meant emoms.log
towards the bottom of this log file, it has
2010-03-19 13:55:32,843 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:55:32,843 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:56:32,843 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:56:32,843 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:57:32,843 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:57:32,843 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:58:32,843 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:58:32,843 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:59:32,859 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
2010-03-19 13:59:32,859 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
at java.lang.Thread.run(Thread.java:534)
the error seems to repeat itself every 1 minute or so..
thanks,
ST
Edited by: user507705 on Mar 19, 2010 12:53 PM -
Java.lang.Exception: Exception in sending Request :: null
hai folks
i down loaded oracle database 10g release 2 from oracle site. after successflly installing the oracle database i got the following java exception when logged on as sys/passcode as sysdba
java.lang.Exception: Exception in sending Request :: null
can any one help me in this regard since i installed oracle database number of times and ended up with same error .connect to the instance using SQL plus, to make sure userid and password are working.
then from OS console check dbconsole status
emctl status dbconsole
emctl status agent
if dbconsole/agent is not running then start dbconsole--emctl start dbconsole
you can also start dbconsole from services tab under admin. -
I can't use thunderbird 31.2.0 to send attachement from a pdf file with Acrobat PRO XI
I can't use thunderbird 31.2.0 (Mozilla) to send attachement from a pdf file with Acrobat PRO XI. Each time, Acrobat replies (in french) : "il n'y a pas de client pour la messagerie par défaut". Thunderbird is indicated as "by default" in the list of programs of Windows.
Even if I type my e-mail address, etc. in the account of Acrobat, it doesn't change. Each time, I have to record a PDF file in a folder and return to Thunderbird to send it as attached. It is a too long process, compared with Windows XP with Acrobat Reader or Acrobat 5, I had before.
Would you please help me to explain the process. My OS is Windows 8.1.
Thank youThank you for your answer.
What i want to do : to send PDF files as attached documents in a message
generated by thunderbird by my e-mail address [email protected] or
another one I have.
When I introduce my e-mail address under Edit-Preferences-Email
Accounts, Acrobat ask the e-mail account, the password, the IMAP for
ingoing message (and I use POP) and SMTP for outgoing messages. Even I
introduce all the datas, it doesn't change, Acrobat is unable to send
the message. And the process is not convenient, because I need all my
outgoing messages be documented inside Thunderbird.
So, I repeat my request : how can I use thenderbird as program by
default from Acrobat or any other software ?
Thank you for your next message.
Jean-Luc Rongé
Le 21-10-14 14:24, ANAND8502 a écrit :
>
I can't use thunderbird 31.2.0 to send attachement from a pdf
file with Acrobat PRO XI
created by ANAND8502 <https://forums.adobe.com/people/ANAND8502> in
/Acrobat Installation & Update Issues/ - View the full discussion
<https://forums.adobe.com/message/6850947#6850947> -
Dear All,
I have installed Oracle 10g 32-bit on Windows 7 64-bit Ultimate Edition. After setting ORACLE_HOME and ORACLE_SID environment variables.
Oracle connected to sqlplus fine. But when starting Enterprise Manager in browser following error displayed.
The Enterprise Manager takes the SYS logon (as sysdba) quite happily and then it states:
Error
java.lang.Exception: Exception in sending Request :: null
Status Status Pending
Status Pending Since Unavailable
Last Known State
Please help anyone. This is so urgent.
Regards,
Rizi -DBAI have resolved this issue myself. Basically problem is due to TimeZone mismatch of Oracle database and Window or OS.
Following are the steps to resolve the issue:-
On DOS prompt issue following commands.
1. emctl stop dbconsole
2. Following file contains valid supported TimeZones and select according to your region:-
e.g. Asia/Karachi
$ORACLE_HOME/sysman/admin/supportedtzs
3. Now open following file:-
$ORACLE_HOME/computername_SID/sysman/config/emd.properties
At the end of this file add:-
agentTZRegion=Asia/Karachi
4. emctl start dbconsole
5. Open browser and logged in Enterprise Manager using sys/password as sysdba.
Click on Pending Status and logged in again, Now you will successfully use Enterprise Manager.
Anyways, Thanks for your effort. -
Problem in sending attachment mail
hi all
i am using function module "SO_NEW_DOCUMENT_ATT_SEND_API1"
i am facing problem in sending attachment .....if width of my text line is more than 255.
pls guide me how to proceed furtherHi,
See this thread.
Re: How to email an attachment with more than 255 characters?
Hope it help you.
Regards,
Lijo Joseph -
Sending attachment with different name
Hi,
is it possible to send attachment with different name with javaMail?
If possible, is there a sample code to do it?
Thanks.
Edited by: user1071181 on Aug 6, 2011 2:14 PMHi,
I listed some of my code at below.
But i did not find attachFile method for messageBodyPart class.
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setDataHandler(new DataHandler(new MemoryDataSource(....getPDFObject())));
messageBodyPart.attachFile("abc.pdf");
messageBodyPart.setFileName("abc_2011_08_07.pdf");
messageBodyPart.setHeader("Content-Type", "application/pdf");
multipart.addBodyPart(messageBodyPart);
message.setContent(multipart); -
How to stop the sending attachment through mail group policy
HI ,.,,,
Our employees using the gmail and yahoo accounts sometimes . Due to security issues they dont send attachements how is possible to deny sending attachments in group policy
rankiHi,
How do your employees using their personal mailbox? If they access it via Outlook, please refer to the suggestions Maffiow provided. If they access it via IE, we could not prevent them attaching
file to their mailbox via Group Policy. As a workaround, you may prevent them accessing the third party mailbox webpage via Group Policy.
For details, please refer to the following article.
How to use Group Policy to Allow or Block URL’s
http://www.grouppolicy.biz/2010/07/how-to-use-group-policy-to-allow-or-block-urls/
Hope this helps.
Best Regards,
Andy Qi
TechNet Subscriber Support
If you are
TechNet Subscription user and have any feedback on our support quality, please send your feedback
here.
Andy Qi
TechNet Community Support -
Having my Telus email refusing to send attachment (one meg picture), without attachment everything is OK, can receive attachments. Weird thing is my live.ca account works perfectly. All that happens is the clock and sending icon would alternate (left it for a couple of hours - still the same). Same result using Wi-Fi or LTE, 4G. So called tech support @ Telus and they have no solution and have two Z10 with same problem sending attachment but on Gmail account. They are sending a ticket to Blackberry to see if problem can be resolved.
Emails were working perfectly before software ugrade three days ago. Anyone else having these issues? Ideas to resolve?FINALLY, after TWO full months of waiting and checking every day, the problem has been resolved. I'm disappointed that Blackberry took so long to fix, but happy that my email can finally send attachments. Also disappointed that I was not notified of the fix by my provider Telus (which they said they would). Hopefully the problem is permanently resolved and won't re-appear after another software update.
-
I have installed 2 db on 10.2.0.1.0. The first one is running fine and easily manageable via Enterprise Manager. When I open EM on the second db I receive "java.lang.Exception: Exception in sending Request :: null" with no further explanation. When I try startup/shutdown, I get "Couldnot contact the agent. Verify that the url for the agent is null". However the db service and the DB console are up and running. I can connect via SQL*plus to manage my DB.
From a java application the connection fails with "java.sql.SQLException: Io exception: The Network Adapter could not establish the connection"
listener.ora is as follow:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\OraHome_1)
(PROGRAM = extproc) ) )
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
(ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1512) ) ) )
TSANAMES is as follow:
26ALER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1512))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = 26aler) ) )
LISTENER_26ALER =
(ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1512))
LISTENER_ORCL1020 =
(ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1512))
ORCL1020 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl1020) ) )
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO) ) )
Any clue what could be wrong?
The console servier is running as stated here:
starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsole26
aler service is starting................
the OracleDBConsole26aler service was started successfully.
Edited by: user730614 on Oct 27, 2008 8:27 PMI have same issue when i upgraded the database from 9i to 10g...some articales point that the issue is related to the timeZone settings..
I hope some one here could explain what it is and how to solve it... thank you -
Issue regarding sending attachment mail
hi all
i am using function module "SO_NEW_DOCUMENT_ATT_SEND_API1"
i am facing problem in sending attachment .....if width of my text line is more than 255.
pls guide me how to proceed furtherHi,
Check this threads:
SO_NEW_DOCUMENT_ATT_SEND_API1
unable to e-mail a pdf through FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'
SO_NEW_DOCUMENT_ATT_SEND_API1
Best regards,
Guillaume
Message was edited by: Guillaume Garcia -
To send attachment file using SMTP
Hi,
Can anybody help me to send an attachment file using SMTP?
Regards,
Rakeshdo a search at asktom.oracle.com for javamail
javamail is an api provided by sun (for free!), which allows you to send attachements and much more.
greetings
Freek D
Hi,
Can anybody help me to send an attachment file using SMTP?
Regards,
Rakesh -
Send Attachment Files Of MM03 via email
Dear Experts,
I have requirement of send Attachment files of MM03 transaction Via Email.
Example.
Go to TCODE MM03.
Select Views: Basic Data1 and Basic Data 2.
Click on GOS (Generic Object Services) where you find Attachment List.
I want to send that PDF files Via Email.
Please tell me how I can read that file and send via Email as attachment.
Thank youHi
1. Readout the GOS FM: BDS_GOS_CONNECTIONS_GET > make list of Attachments...
2. Read the object: FM: SO_OBJECT_READ
3. Download it into a Temp directory: FM: SO_OBJECT_DOWNLOAD
4. Upload into itab: cl_gui_frontend_services=>gui_upload
5. Put Table with text into Email.. & send... FM: SO_NEW_DOCUMENT_ATT_SEND_API1
6. delete Temp file
that was my way....
Robert
Maybe you are looking for
-
How do I move settings from one Airport unit to another?
I am considering buying one of those new Airport Expresses, the one with dual band. I have a few questions about importing the settings (from my existing Extreme unit): - Is it true that it's better to start from scratch when setting up the new unit
-
How to limit the records in the query output
Hi Experts, I have key figures A,B, and C. I want to get the output which shows the key figures B and C values, where values for key figures A is equal to zero. Any help is much appreciated. Thanks,
-
Junk Character in French Smartform
I have to type the text 'nos vu0153ux de prompt' in a French language smartform. The output comes as 'nos v#ux de prompt' instead of the one above. How do I make sure the 'u0153' character comes?
-
How to view list of items on all of HD by size
as I approach the MacBook's internal HD's upper limit, I was thinking about deleting a bunch of stuff .... but I dunno exactly what to delete. So I decided I want a view, by size, for the time being of all files/entries on the entire HD. Thus, no mat
-
Hi All I have a requirement to add a User Defined Date Filed to Reconciliation Bank Statement. I have to give a Date Text Filed to user to enter data in Matrix of This screen. But I couldn't see any table for this Screen. How I can achieve this..? By