Problem sending an email, please take a look!!
Hello!
I wuld like to know why I'm getting the following exception
everytime i try to send an email from a servlet with the classes below:
package radio.email;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import java.util.Date;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.Session;
import javax.mail.Store;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import radio.email.SMTPAuthenticator;
public class SendEmail {
public void send(String smtpHost, String smtpPort, String smtpUser, String passWord, String from,
String[] to, String subject, String content, File[] attachsFile )throws MessagingException, AddressException {
try{
//Create a mail session
Properties props = new Properties();
props.put("mail.smtp.host", smtpHost);
props.put("mail.smtp.port", "" + smtpPort);
props.put("mail.smtp.auth", "true");
SMTPAuthenticator auth = new SMTPAuthenticator( smtpUser, passWord );
//Session session = Session.getDefaultInstance(props, auth);
Session session = Session.getInstance(props, auth);
session.setDebug(true);
// Construct the message
Message msg = new MimeMessage(session);
msg.setSentDate( new Date() );
msg.setFrom(new InternetAddress(from));
InternetAddress[] addressTo = new InternetAddress[to.length];
for (int i = 0; i < to.length; i++) {
addressTo[i] = new InternetAddress( to[i] );
msg.setRecipients(Message.RecipientType.TO, addressTo);
msg.setSubject(subject);
msg.setHeader("Disposition-Notification-To", from);
// create the message part
MimeBodyPart messageBodyPart = new MimeBodyPart();
//fill message
messageBodyPart.setContent( content, "text/plain");
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
if ( attachsFile != null && attachsFile[0] != null ){
for ( int i = 0; i < attachsFile.length; i++ ){
messageBodyPart = new MimeBodyPart();
DataSource source = null;
source = new FileDataSource( attachsFile[i] );
messageBodyPart.setDataHandler( new DataHandler(source) );
messageBodyPart.setFileName( source.getName() );
multipart.addBodyPart(messageBodyPart);
//set the content
msg.setContent( multipart );
// Send the message
Transport.send(msg);
}catch( Exception e ) {
e.printStackTrace();
//throw new SacException();
My servlet
new radio.email.SendEmail().send("smtp.mail.yahoo.com.br", "587", "myuser", "xxxxxx",
"Marcos", to, "Web R�dio Contato", content, null);
The Exception:
exception
javax.servlet.ServletException: Servlet execution threw an exception
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
root cause
java.lang.NoClassDefFoundError: javax/activation/DataSource
radio.servlets.SendEmailServlet.processRequest(SendEmailServlet.java:54)
radio.servlets.SendEmailServlet.doGet(SendEmailServlet.java:121)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
I have set the enviroment variables this way:
NAME = CLASSPATH
VALUE= C:\PATH\TO\mail.jar;C:\PATH\TO\javaee.jar
I have put the mail.jar and javaee.jar files in the Tomcat lib directory.
So I'm still having trouble, I get the same exception, then if you have any tip
please, post me. Thanks !
Did you restart the server after making these changes?
You probably want activation.jar instead of javaee.jar.
Similar Messages
-
Why is IMAQdx property node not sending/receiving? Please take a look!
Hi!
Im trying to control FPS but with no result. Whats wrong with this code?
thanks!
Attachments:
pic.JPG 95 KBPlease see this related thread http://forums.ni.com/t5/LabVIEW/IMAQdr-Property-Node/m-p/1642950/highlight/false#M590168
Matt
Product Owner - NI Community
National Instruments -
Can you please take a look at my TM Buddy log and opine on what the problem is?
Pondini,
Can you please take a look at my TM Buddy log and opine on what the problem is? I'm stuck in the "Preparing Backup" phase for what must be hours now. My last successful backup was this morning at 7:16 am. I did do a series of Software Update this morning, one of which, a security update I believe, required a restart.
I'm confused as to what the issue is, and how to get everything back to "it just works".
Many thanks in advance.
Starting standard backup
Backing up to: /Volumes/JDub's Drop Zone/Backups.backupdb
Error: (5) getxattr for key:com.apple.backupd.SnapshotState path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotContainer path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotState path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotContainer path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotState path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotContainer path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotState path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotContainer path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotState path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotContainer path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotState path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotContainer path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotState path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotContainer path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotState path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Error: (5) getxattr for key:com.apple.backupd.SnapshotContainer path:/Volumes/JDub's Drop Zone/Backups.backupdb/Jason Wisniowski’s iMac/2013-05-30-002104
Event store UUIDs don't match for volume: Area 420
Event store UUIDs don't match for volume: Macintosh HD
Error: (5) getxattr for key:com.apple.backupd.SnapshotStTime Machine can't read some data it needs from your backups (each of those date-stamps is one of your backups).
That's usually a problem with the drive itself, but could be the directory on it. First be sure all plugs are snug and secure, then see if you can repair it, per #A5 in Time Machine - Troubleshooting.
If that doesn't help, post back with the results. Also either tell us what kind of Mac you have, what version of OSX you're running, or post that to your Profile, so it's accessible.
This is unrelated to the original post here, so I'm going to ask the Hosts to split it off into a new thread. Since you've posted in the Lion forum, I'll assume that's what you're running. You should get a notice from them -
Workaround for some W510 Audio Problems. Lenovo, please take a look at this!
Hi all
I believe most or all of the people are affected with poor sound quality of W510. I do believe there are some people who bring their laptops along and not convenient to get a external sound card and external speakers on the road. I am not too sure, but what I think that causes audio problem in W510, T410 or T510 is due to the implementations of Combo Audio/Mic Jack. So far, I have not heard any audio problems from X201 or W701/W701ds with a separate mic and audio jack (1 green and red, instead of 1 combo) Listed machines are using Conexant 20585 SmartAudio HD Sound Card.
The workaround is to force install Conexant 20561 SmartAudio HD Driver through Device Manager
http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-73721
Problem Partially Resolved
1. Using Audio Director - Classic mode enables you to use both internal speakers and external speakers/headphone simultaneously. (By right, this should be in Multi-Stream mode, due to this driver not programmed for W510). However, the volume of the internal speaker will be reduced by half if an external speakers/headphone is plugged.
2. The sound quality is improved (tested with internal speakers).
3. Solved Irregular Volume Problems.
Drawback of using this driver
1. Using Multi-Stream mode in this case would not enables you to use both internal speakers and external speakers/headphone simultaneously. However it would just make your internal speaker to be louder. External speaker/headphone would not work if Multi-Stream mode is selected.
2. Custom EQ is not usable, if used, only the right channel of internal speaker, external speaker/headphone would work, and the sound quality will be like a spoilt radio.
3. Only Voice (VoIP) EQ is optimized for external speaker/headphone. Using Off, Jazz, Dance or Concert EQ would make you feel that the vocal (singer's voice) is diffused, blurred like excessive 3D effects.
4. Even if any preloaded EQ is selected, after system has been restarted, the selected EQ would still be saved, but the band (31Hz - 16KHz would be changed back to Off EQ) It is ok as it just affects the graphics, not the sound.
I know that Forum Administrators, Lenovo Staff, Community Moderators, Gurus and Volunteered Moderators/Users would be surfing around and looking for new post. Please take a look and leave a post or PM to me, thank you very much.
It is alright if Lenovo don't think that there is any problems regarding the sound in W510. However, I do believe most users/owners of W510 would appreciate if the sound system could be further improved through a better driver or new revision of hardware to something like a T400 standards or something. Some users would spent so much $ just to get all-in-a-box solution and would not want to invest further just for a external card to sacrifice portability and use more $. Finally, I still do believe that W510 audio problems can be resolved.
Best Regards
PeterHi ckhordiasma
Thanks for reviving ths old thread. How about trying Dolby drivers? It sounds great and could possibly resolve those issues without going through too much troubleshooting.
The link is under my signature.
Hope it helps!
Happy 2012!
Peter
W520 (4284-A99)
Does someone’s post help you? Give them kudos as a reward, as they will do better to improve | Mark it as solved if the solution works for you, so it could be reference for others in the future
=====================================
Sound Enthusiast and Enhancement (Post comments, share mixes, etc.)
http://forums.lenovo.com/t5/General-Discussion/Dolby-Home-Theater-v4-for-most-Lenovo-Laptops/td-p/62... -
Hey there,
I am just drafting a web site and I ran into a CSS issue...
Please take a look here:
URL:
http://anuragdesign.com/vitaminx/layouttest.php
In FF the float of the content / sidebar works
In IE7 beta it works as well
BUT in IE6 it doesn't.
Any idea why ?
I can't seem to be able to locate it
Thanks in advance,
AnuragThe IE6 box model is to standard. It's IE5x you have to worry
about.
> IE 6 adds together the size of the element, the margin
and the padding.
> That
> is, the padding and margin make the element bigger, in
essence. The
> standard
> says that the size of the padding and margin are part of
the size of the
> element.
The two sentences are the same. But the standard says that
padding and
border are part of the element's size.
> So I think the content area is flowing below the sidebar
because the
> combined
> size is greater than the containing area...but only in
IE6 because of the
> box
> model issue.
On a page with a valid and complete doctype, you will not
have a box model
problem with IE6. Its standards mode gets the box model
right.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"DLoe" <[email protected]> wrote in message
news:eb0p0j$59t$[email protected]..
> This could have something to do with the IE 6 box model,
which isn't to
> standard.
>
> IE 6 adds together the size of the element, the margin
and the padding.
> That
> is, the padding and margin make the element bigger, in
essence. The
> standard
> says that the size of the padding and margin are part of
the size of the
> element.
>
> So I think the content area is flowing below the sidebar
because the
> combined
> size is greater than the containing area...but only in
IE6 because of the
> box
> model issue.
>
> -
I have an Ipad 2 and are having problems sending out emails in one of my email address. This is a POP3 email Account? I always get a message reading that the email was not sent because the server does not allow relaying. I have no such problem with gmail. What could be the problem and how do I resolve this. Is it about settings?
Richard.Welcome to the Apple community.
If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do. -
I have Thunderbird version 24.3.0 downloaded to my Windows 7 computer.
When I send an email in Thunderbird it looks fine and when the recipient receives it, it looks fine on the screen, but when she tries to print it, the font is unreadably small. This happens on every email I send her, but not other people's emails she receives. It has happened on some of the emails I receive back from her that contain the information I sent her.
Is there a setting I need to fix or something I can do on my end to address this so this doesn't happen. She is receiving email through AOL online. I believe she is viewing it through either IE or Chrome.I recently tried sending myself an email through Thunderbird to another email account to see if that was the case, but the email came in with a font so tiny that it was unreadable. I had chosen a font type and size (arial 10) and just coming into my outlook inbox was virtually unreadable.
And referring to the person I work with, she doesn't have problems getting anyone else's emails, just ones I send from Thunderbird. -
I have problem sending a email ..spool not created using custom FM
Hi experts,
i have problem sending a email ..spool not created using custom FM...this the custom FM
* Send email notification
lv_subject = text-037.
lv_attachment = text-038.
CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
EXPORTING
email1 = lv_email1
email2 = lv_email2
email3 = lv_email3
subject = lv_subject
attachment_name = lv_attachment
EXCEPTIONS
spool_not_created = 1
OTHERS = 2.
Source code
this is the source code for this FM
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
PERFORM convert_spool_to_pdf.
IF sy-subrc IS NOT INITIAL.
MESSAGE e040(zhrcd) RAISING spool_not_created.
ENDIF.
PERFORM process_email USING email1
email2
email3
subject
attachment_name.
WAIT UP TO 5 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.....
Please let me know
Edited by: Thomas Zloch on Nov 16, 2010 5:53 PM - please use code tagsHi srinivas ,
Could you please Check
FORM summary_report .
DATA: lv_success TYPE i,
lv_error TYPE i,
lv_total TYPE i.
DESCRIBE TABLE gt_data LINES lv_success.
DESCRIBE TABLE gt_error LINES lv_error.
DESCRIBE TABLE gt_message LINES lv_error.
lv_total = lv_success + lv_error.
lv_total = lv_success.
gwa_summary-record = text-008."Number of Successful records.
gwa_summary-number = lv_success.
APPEND gwa_summary TO gt_summary.
gwa_summary-record = text-009."Number of error records'.
gwa_summary-number = lv_error.
APPEND gwa_summary TO gt_summary.
gwa_summary-record = text-010."Total number of records processed.
gwa_summary-number = lv_total.
APPEND gwa_summary TO gt_summary.
CLEAR gt_fieldcat.
gwa_fieldcat_summ-col_pos = 1 .
gwa_fieldcat_summ-fieldname = 'RECORD'.
gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
gwa_fieldcat_summ-seltext_l = text-011."Records
gwa_fieldcat_summ-outputlen = '70'.
APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
gwa_fieldcat_summ-col_pos = 2 .
gwa_fieldcat_summ-fieldname = 'NUMBER'.
gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
gwa_fieldcat_summ-seltext_l = text-012."Number
gwa_fieldcat_summ-outputlen = '10'.
APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
ENDFORM. " SUMMARY_REPORT
*& Form ERROR_REPORT
FORM error_report .
gt_fieldcat_err[] = gt_fieldcat[].
gv_fieldcat_err-col_pos = 1.
gv_fieldcat_err-fieldname = 'PERNR'.
gv_fieldcat_err-tabname = 'GT_MESSAGE'.
gv_fieldcat_err-seltext_l = text-070."Employee Number
gv_fieldcat_err-outputlen = '20'.
APPEND gv_fieldcat_err TO gt_fieldcat_err.
gv_fieldcat_err-col_pos = 2.
gv_fieldcat_err-fieldname = 'MESSAGE'.
gv_fieldcat_err-tabname = 'GT_MESSAGE'.
gv_fieldcat_err-seltext_l = text-071."Error Message
gv_fieldcat_err-outputlen = '80'.
APPEND gv_fieldcat_err TO gt_fieldcat_err.
ENDFORM. " ERROR_REPORT
*& Form FINAL_REPORT
FORM final_report .
DATA:lv_layout TYPE slis_layout_alv,
lt_events_summ TYPE slis_t_event,
lv_events_summ LIKE LINE OF lt_events_summ,
lt_events_det TYPE slis_t_event,
lv_events_det LIKE LINE OF lt_events_det,
lt_events_err TYPE slis_t_event,
lv_events_err LIKE LINE OF lt_events_det,
lt_events_msg TYPE slis_t_event,
lv_events_msg LIKE LINE OF lt_events_det.
lv_events_summ-name = 'TOP_OF_PAGE'.
lv_events_summ-form = 'TOP_OF_PAGE1'.
APPEND lv_events_summ TO lt_events_summ.
lv_events_det-name = 'TOP_OF_PAGE'.
lv_events_det-form = 'TOP_OF_PAGE2'.
APPEND lv_events_det TO lt_events_det.
lv_events_err-name = 'TOP_OF_PAGE'.
lv_events_err-form = 'TOP_OF_PAGE3'.
APPEND lv_events_err TO lt_events_err.
lv_events_msg-name = 'TOP_OF_PAGE'.
lv_events_msg-form = 'TOP_OF_PAGE4'.
APPEND lv_events_msg TO lt_events_msg.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = sy-repid.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_summ
i_tabname = 'IT_SUMMARY'
it_events = lt_events_summ
IT_SORT =
I_TEXT = ' '
TABLES
t_outtab = gt_summary
EXCEPTIONS
PROGRAM_ERROR = 1
MAXIMUM_OF_APPENDS_REACHED = 2
OTHERS = 3
IF CHK_DTL IS NOT INITIAL.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat
i_tabname = 'gt_data'
it_events = lt_events_det
IT_SORT =
I_TEXT = ' '
TABLES
t_outtab = gt_data
EXCEPTIONS
PROGRAM_ERROR = 1
MAXIMUM_OF_APPENDS_REACHED = 2
OTHERS = 3
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_err
i_tabname = 'gt_error'
it_events = lt_events_err
TABLES
t_outtab = gt_error.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_msg
i_tabname = 'gt_message'
it_events = lt_events_msg
TABLES
t_outtab = gt_error.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_err
i_tabname = 'gt_message'
it_events = lt_events_err
TABLES
t_outtab = gt_message.
IF GT_MESSAGE[] IS NOT INITIAL.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = lv_layout
it_fieldcat = gt_fieldcat_msg
i_tabname = 'gt_message'
it_events = lt_events_msg
TABLES
t_outtab = gt_message.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXPORTING
i_interface_check = ' '
IS_PRINT =
i_screen_start_column = 0
i_screen_start_line = 0
i_screen_end_column = 0
i_screen_end_line = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " FINAL_REPORT
*& Form top_of_page
text
FORM top_of_page1. "#EC CALLED
WRITE text-013."SUMMARY REPORT.
ENDFORM. "top_of_page
*& Form top_of_page2
text
FORM top_of_page2. "#EC CALLED
WRITE text-014."DETAIL REPORT.
ENDFORM. "top_of_page
*& Form top_of_page3
text
FORM top_of_page3. "#EC CALLED
WRITE text-015."ERROR REPORT
ENDFORM. "top_of_page
*& Form EMAIL_NOTIFICATION
FORM email_notification .
DATA: lv_email1 TYPE somlreci1-receiver,
lv_email2 TYPE somlreci1-receiver,
lv_email3 TYPE somlreci1-receiver,
lv_subject TYPE char200,
c_flag TYPE c VALUE 'X',
lv_attachment TYPE char50.
CLEAR: lv_email1,
lv_email2,
lv_email3,
lv_subject,
lv_attachment.
SELECT SINGLE email1
email2
email3
FROM zhr_interface_pr
INTO (lv_email1,lv_email2,lv_email3)
WHERE zinterfaceid EQ gc_objectid.
IF sy-subrc EQ 0.
IF sy-batch EQ 'X'.
Send email notification
lv_subject = text-037.
lv_attachment = text-038.
CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
EXPORTING
email1 = lv_email1
email2 = lv_email2
email3 = lv_email3
subject = lv_subject
attachment_name = lv_attachment
EXCEPTIONS
spool_not_created = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "
Edited by: katewinslate@SAP on Nov 17, 2010 12:50 PM -
An exciting question, please take a look
This question is actually not quite exciting, but since you are here, please take a look. thank you.
I have a question as following: I have three classes, Panel1, Panel2, and PanelPrimary, all 3 extends JPanel. Panel1 and Panel2 both have a JButton, button1 and button2 respectively. PanelPrimary has a CardLayout. In PanelPrimary, I created a Panel1 and a Panel2 and added them to PanelPrimary as the cards because i'm using CardLayout.
I want to click on button1 so that PanelPrimary shows Panel2, and click on button2 so that PanelPrimary shows Panel1.
But I dont know how to access PanelPrimary in Panel1 and Panel 2.
here's what i get so far:
public class Panel1 extends JPanel
private JButton button;
public Panel1()
button=new JButton();
button.addActionListener(new BListener())
private class Blistener implements ActionListener
public void actionPerformed(ActionEvent e)
//Here's the code I dont know how to write
class Panel2 is same as Panel1 except the actionPerformed part.
public class PanelPrimary
//i'm not very sure about how to write this class
thanks for readingThis question is actually not quite exciting, but
since you are here, please take a look. thank you.This approach working out for you? Usually a title which actually describes your problem gets the better responses.
And to "do tabs", you put your code within [ code ] tags (there's even a button for it). -
Please take a look at this template I made for a Statement of Qualifications pamphlet.
Here is a link to google drive. I made this template from scratch in Photoshop CS6.
SOQ Page_Blank(no lettering).pdf - Google Drive
What I am curious about, is that some of the lettering often looks blurry, although the page is 500pixels per inch 8.5x11, 76MB .psd file. What can I do about that?
Also, I want to make it easy to write and edit the actual content that will go onto the page. Not all of us here have photoshop to edit the lettering. Is there a way I can export this to word so they can edit the content whenever? Are there better options (programs) to help me design this template? I am guessing I am somewhat pushing photoshops limit as to making a bound 5-page presentation. I am stuck and would like this to be easier. All suggestions for both of my questions as well as overall action toward making this would be great.
Here is an example of a SOQ Pamphlet that I have been using as reference. In my eyes the design is perfect!
http://www.ch2m.com/corporate/markets/environmental/conferences/setac-2013/assets/CH2M-HIL L-land-conservation-restoratio…
Any help is great,
Thanks,
AdamSince photoshop can not do pages, your on the right track by using pdf format. Since it can do pages, but really requires acrobat pro to bind the pages together.
Your best bet is InDesign then Illustrator would be the next option. Each of these can do multi page documents.
There is absolutely no reason to use 500px/inch for the resolution anything between 150 and 300 would suffice leaning towards 300ppi.
If the text is blurred a few things that can cause that, 1) anti-aliasing 2) document was created as a low resolution then upsampled 3) text is rasterized 4) document is rasterized. -
Error - Problem sending invitation email
Hi
I am trying to invite a admin user, but i never get an email from BC
This i the error when im resend invitation email :
Error - Problem sending invitation email
Thanks
FinnI am having a similar issue - the email appears to have been created but the activation email was never sent... now we can not remove the busted one or create a log in in a client! - how to repair?
-
Problem sending out emails offsite. iPad
Hi fellow apple users,
Could anyone assist?
I have no problem sending out email when using it at office.
But when I go offsite to send out email, i was prompted 'Cannot Send Mail'. A copy has been placed in your outbox. The recipient was rejected by server because it does not allow relaying.
Any good souls out there who can assist?
Thanks a bunch!Hi al,
Here is a link to a site that explains the whole "relaying" thing. Because there are various reasons you may be getting this message, thought this might be helpful:
http://www.gammadyne.com/relaying_denied.htm
Hope this sheds some light on your issue!
GB -
Hi, can you please take a look at my account and why its asking me to contact support. I have my billing address correct and everything but for some reason its not letting me to authorize my transaction
We are all fellow users here and have no way of accessing your account information; iTunes Store employees do not participate in these forums. You will need to do what it says, contact iTunes Support. Go here:
http://www.apple.com/emea/support/itunes/contact.html
to contact the iTunes Store.
Regards. -
Mods. Please take a look at this topic
Hi,
Please take a look at this topic:
http://discussions.apple.com/thread.jspa?threadID=422678&tstart=0
It's becoming 'unfriendly'
Thanks.
MHi Kady,
Thanks for putting the inappropriate parts in the 'Trash'
M -
Someone please take a look at this
Please take a look at this.
This is my jsp file:
<%@ page import="java.sql.*" %>
<%
String url="jdbc:mysql://localhost/ali";
String user="root";
String password="";
Connection conn=null;
String classPath="com.mysql.jdbc.Driver";
try{
Class.forName(classPath);
conn = DriverManager.getConnection(url,user,password);
}catch(Exception exc){
out.println(exc.toString());
%>
<%
Statement stm=conn.createStatement();
String update="CREATE TABLE product(id varchar(20) PRIMARY KEY, name char(20))";
try{
stm.executeUpdate(update);
out.println("Successful")
}catch(Exception exc){
out.println("sorry loser!!");
stm.close();
conn.close();
%>
but when I try opening it up in tomcat i get this error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 16 in the jsp file: /mytest/createTable.jsp
Generated servlet error:
[javac] Compiling 1 source file
/usr/java/jakarta-tomcat-4.1.31/work/Standalone/localhost/_/mytest/createTable_jsp.java:64: ';' expected
}catch(Exception exc){
^
1 error
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)i've repaired that one already but now i get this.Please....Help me.
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
java.lang.NullPointerException
at org.apache.jsp.createTable_jsp._jspService(createTable_jsp.java:60)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Maybe you are looking for
-
I would like to delete my debit card information from all devices associated with it with it
I would like to remove my bank debit card information from all apple devices associated with it. I have charges to my account that I do not want to continue as I don't know where they are coming from. I need to delete all credit information as soon a
-
Where can i get my PUK code?
where can i get my PUK code?
-
Imessage switched on, on both phones but imessage is not working
This is happening with a few people and a friend and I cannot imessage each other, despite the fact that we both have imessage switched on?
-
I have a question. I want to rip of the year from date field. For e.g if date is 01/02/2006 I want just the 01/02 which month and date. I tried to use substr function but it;s giving weird result. I used substr(date, 0,5) but not working. Please sugg
-
ASUS P6X58D Memory OK (MEMOK!) issue DRAM LED Stays solid red.
HI This morning when I turned on my computer, it would not boot. Not even the most basic boot (I could not get to the ASUS bio DOS screen, for example). It would only sound one beep, and then finally a second beep-- but the second beep did not sou