Got NullPointerException using plain/text content in the mail.
Hi,
Here is the code sipnet, and i am facing problems, when i use it
InternetAddress[] addressTo = new InternetAddress[tok.countTokens()];
int i=0;
while(tok.hasMoreTokens())
addressTo[i++] = new InternetAddress(tok.nextToken());
msg.setRecipients(Message.RecipientType.TO, addressTo);
tok = new StringTokenizer(cc,",");
InternetAddress[] addressCC = new InternetAddress[tok.countTokens()];
i=0;
while(tok.hasMoreTokens())
addressCC[i] = new InternetAddress(tok.nextToken());
msg.setRecipients(Message.RecipientType.CC, addressCC);
// Optional : You can also set your custom headers in the Email if you Want
msg.addHeader("MyHeaderName", "myHeaderValue");
// Setting the Subject and Content Type
msg.setSubject(subject);
msg.setContent(message, "text/html; charset=\"UTF-8\"");
//msg.setText(message);
Transport.send(msg);on execution of the above code, i get the following exceptions please help..
java.lang.NullPointerException
at com.sun.mail.handlers.text_plain.writeTo(text_plain.java:98)
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)
at javax.activation.DataHandler.writeTo(DataHandler.java:295)
at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:222)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1065)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1914)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1895)
at javax.mail.Transport.send(Transport.java:79)
at com.prosoft.workflow.extensions.SMTPMailAuthenticationExtension.postMail(SMTPMailAuthenticationExtension.java:114)
at com.prosoft.workflow.extensions.SMTPMailAuthenticationExtension.execute(SMTPMailAuthenticationExtension.java:62)
Any sugession also welcome.
Thanks in advance
Thanks,
- Moses.
Hi Krupa,
Still same error .
Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: com.sap.aii.af.sdk.xi.util.XMLScanException: expecting end tag: {http://sap.com/xi/XI/Mail/30}Mail, but found {}Content at state
Similar Messages
-
Text content within the sprite?
Is it possible to edit the text content within the sprite,
but not in the cast member file?
Yes... I know..."Once again that damn question!". But, that
means that if I have an application (for whatever reason) that
needs to change (during its using) the labels of ...let's say 150
buttons, DO I NEED TO HAVE 150 TEXT CAST MEMBERS!!!??? It is not
possible to have only ONE cast member and X numbers of sprites that
can have independent text contents?
For example instead of:
put "whatever" into member("member")
There is nothing LIKE ?: (ok...ok... I know is flat wrong,
but is just an example)
put "whatever" into sprite(x).member.text
P.S. Just in case, that last line of code IS WRONG and it
does not work, I KNOW IT, but I was making a "similarity
remark"No. The sprite displays the text that is in it's member. If
you need to
have multiple places with different bits of text in them,
then you need
to have different members. If you change the member's text,
then that
change will be automatically be propagated to all the sprites
that use
that member.
The command is:
sprite(x).member.text="some text goes here"
That will put "some text goes here" into every sprite that
shares the
same member as sprite(x). -
Reversing Configuration to allow SMB connections using plain text passsword
I could not logon to a SMB Winows server - repeatedly getting a error -36. I found Apple Article 301580 "Mac OS X 10.4: Error -36 alert displays when connecting to a Windows server". After checking about the possibility of the server being configured to accept an encrypted password - I was resigned to following the directions in 301580 to configure your computer to use plain text passwords to make SMB/CIFS connections when the specified Samba or Windows (SMB/CIFS) server does not support encrypted passwords:
1. Make sure that you are not currently connected to any Samba or Windows (SMB/CIFS) servers and that you do not have any Samba or Windows-related error messages open.
2. Open the Terminal (/Applications/Utilities/).
3. At the prompt, type: sudo pico /etc/nsmb.conf
4. Press Return.
5. Enter your password when prompted, then press Return again.
6. You should see an empty file and a "New File" notice at the bottom of the pico window. If you do not see the "New File" notice, this file already exists.
7. Enter the following into the file so that it appears as follows:
[default]
minauth=none
8. Save the file (press Control-O), press Return, then exit pico (Control-X).
9. Type: sudo chmod a+r /etc/nsmb.conf
10. Press Return.
11. Restart your computer.
My question is how can I reverse this confuiguration to the previous setting where only encrypted passwords are used ?
Thanks!The solution in my situation was to insert the code below at the top of the file and that took care of the problem.
AddType image/svg+xml svg
AddType image/svg+xml svgz -
i just loaded the 'lion' now my mail takes a new life....how do i move the reading panel to the bottom / also how do i get rid of the text/content under each mail..two simple things not sure obvious on this version !!!
-
URGENT !!! How to fecth the content of the mail
HI All,
I having a problem regarding how to fetch the body of the mail as well as attachment of the mail.
i get sender name, subject but i having the problem how to fetch the content of the mail.
i used
System.out.println(message[msgno].getContentType());
but it showing
javax.mail.internet.MimeMultipart@480457
it won't showing the content.
How can i fetch the content !!!!
Please help
I fetching accessing the mail server using "imap"
By
Ravi
email : [email protected]Code which i used
import java.io.*;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import java.lang.*;
import java.lang.Object;
public class GetMessageExample
public static void main(String args[]) throws Exception
String host = "...";
String username = "....";
String password = ".....";
// Create empty properties
Properties props = new Properties();
// Get session
Session session = Session.getDefaultInstance(props, null);
// Get the store
Store store = session.getStore("imap");
// Connect to store
store.connect(host, username, password);
// Get folder
Folder folder = store.getFolder("INBOX");
// Open read-only
folder.open(Folder.READ_ONLY);
// Get directory
Message message[] = folder.getMessages();
for (int i = 0, n = message.length; i < n; i++)
// Display from field and subject
System.out.println("From : "+message[0].getFrom()[0]);
System.out.println("Subject :"+message[0].getSubject());
// Display message content
System.out.println("ContentType :"+message[0].getContentType());
System.out.println("Content :"+message[0].getContent());
// Close connection
folder.close(false);
store.close();
i got this output :
From : Ravi Lal <[email protected]>
Subject :Testing
ContentType :multipart/alternative;
boundary="----=_Part_63386_12145160.1189402168311"
Content :javax.mail.internet.MimeMultipart@480457
As i having only one mail in my inbox.
I able to fetch everything from, subject but i fails to get the content i.e text of the mail.......
What i do ????????
!!! Help Me !!!
Ravi
Edited by: Ravi_InSun on Sep 13, 2007 10:51 AM -
When I forward or reply to the email from Mail, the receiver gets it as multiple attachments with no content in the mail., When I forward or reply to the email from Mail, the receiver gets it as multiple attachments with no content in the mail.
That's probably because the message is in HTML format. Send the reply as plain text.
-
View the content of the mails.
Hi,
We have block the file attachments types but wanted to view the contents of the Mail in ironport.
can any one help me in this.Hi David,
I have used the logic which you suggested... It is working now...
I have removed the quarantine policy (as it was dropping whole mail and attachement )and added the strip the attachment by file and achieve the result.
thanks for your help... -
Addding body content to the mail sent by sapscript layout output report
Hi,
I have a report which sends the output of a sapscript layout as an email.Is there any way i can add some body content to the mail which the report is sending.
This include is getting called from my report to send email - RVADOPFO
Thanks
Bala DuvvuriIssue is fixed .instead of using the standard open_form functionality I am getting back the OTF output and converting into pdf and using mail fms i am sending it along with body.
Thanks
Bala Duvvuri -
IPhone4 - Mail cannot download the remaining content of the mail message
Hi, i recently owned a iPhone4. One problem i faced with iPhone4 Mail app is that when I tried to push the button to "Download remaining xx.x KB" in the mail message, it tried to download but failed all the time.
Is there any way to allow the remaining content of the mail message to be downloaded?
Help! thanks.Is this a new mac and did GarageBand come preinstalled? Or did you migrate from a different Mac? There may be many reasons for this problem, check the possible causes:
Check, if GarageBand is installed in the "Applications" folder and named GarageBand. Otherwise you cannot update it.
Have you accepted a preinstalled GarageBand to your AppleID? Sign into to AppStore and check the Purchase Tab. Accept, if necessary.
GarageBand may already have downloaded the loops, but not indexed them. Then you could try to rebuild the Loop Index: Rebuilding the Loop Index in GarageBand
GarageBand may not be able to remember that it updated, because of corrupted preferences, then try HangTime's "oddball" problems fix and delete the preferences:
http://www.bulletsandbones.com/GB/GBFAQ.html#oddballprobs
Remember, in Mt. Lion the user library is hidden; you open it best from the Finder's "Go" menu, from the main menu bar:
Go > Go to folder then hold down the alt/option key until the library appears in the drop down menu. Select it to open and remove the file Preferences/com.apple.garageband.plist
If all fails, try to reinstall GarageBand - move the application to the Trash and download it again from the AppStore.
. Re: GarageBand '11 won't download additional loops
Regards
Léonie -
Putting both xml document and plain text in to the same container
I have some configuration files written in plain text with the format 'key' = 'value'
I want to put them into the same container with my xml document, is this possible?
thanksHi,
yes it is. There are a couple of ways:
1) Wrap into some XML tags and put your settings as an XML document (bad way)
2) Use metadata of documents. You can store your plain text as metadata associated with some XML document. Also you can store a document only with metadata (i.e. with empty XML content).
Vyacheslav -
How to fix width of plain text content control in Microsoft Word 2010?
I try to make the simplest solution for my custom to modify current Word template without hard code anything except field name.
As you can see above image, normally text field in Word is not fixed width control. So, it may affect document layout. Moreover, I want to add dotted line below all text fields in document template.
Is there any possible solution that end-user can do in normal Microsoft Word 2010 application?
PS. I will fill all controls with data from Microsoft Access.In PDF file, I can easily create fix-size absolute position field inside document template like the following document. In Microsoft Word, I cannot fix even the size of plain text field.
PS. Nobody use table with fixed cell size as normal form (hard copy). I think Microsoft Word is really bad choice for creating any document template by end-user.
Criticizing Word for not doing the same as some other application is hardly relevant. Have you tried word-processing with Adobe Acrobat?
As for your PS, Word tables are ideal for the kind of thing you describe. Your assertion that 'nobody' does so is plain ignorance - it is a common practice. In my previous employment,
many forms were created using Word tables. Before complaining Word is a 'really bad choice', you should learn how to use it.
Cheers
Paul Edstein
[MS MVP - Word] -
TextField ADS and not using plain text
Hey
Im using interactive forms and I have a problem using linebreaks. The InputField can only accept plain text. If I switch this option off, I get this error message "Node cannot be inserted where requested" when im pressing the Submit to SAP button to go back to another view.
Someone know what im doing wrong?Hello Kristoffer,
is it necessary for you to use an input field ?
Why aren't you using a textedit field or textarea ?
kind regards
Fabian
Message was edited by: Fabian Eidner -
26194 (7080/tcp) Web Server Uses Plain Text Authenti ...
Our recent tenable security scan on the PeopleSoft web server shows the web
server is using the plan text authentication. We are using the both secured
(port 7081) and non-secured (port 7080) web services (PeopleSoft Weblogic
web server). I have attached the detailed message to the submitted case. It
looks that the LoginForm.jsp is passing the plain text password. I just
don't know how to fix this? any suggestions?
Vulnerability Details
Vulnerability Report Description:
Synopsis :
The remote web server might transmit credentials over clear text
Description :
The remote web server contains several HTML forms containing
an input of type password which transmit their information to
a remote web server over plain text.
An attacker eavesdropping the traffic might use this setup to
obtain logins and passwords of valid users.
Solution :
Make sure that every form transmits its results over HTTPS
Risk factor:
Medium / CVSS Base Score : 5.0
(CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N)
Plugin output :
Page : /console/login/LoginForm.jsp;ADMINCONSOLESESSION=LGY........
Destination page : /console/j_security_check
Input name : xxxxxxxxx
Page : /console/login/LoginForm.jsp;ADMINCONSOLESESSION=LGY........
Destination page : /console/j_security_check
Input name : xxxxxxxxxThe most common solution to the problem is to only transmit user/pass over https. You might want to only enable https on your server. Or (more finer grained solution might be to access the app only over https)
-
And direction on how to use cloud service for a oracle webcenter application based on oracle webcenter content.
We currently have an on premise enterprise application that is built using oracle webcenter,content ,
ADF and connecting to OID for authentication and authorization.
From the document I get the we can have the ADF application deployed.
How about the migration of content.
Can we build a webcenter portal domain?
Can we have OID instance?
Can we have BIP instance on the cloud?Hello,
You can currently store users of the WebCenter products in the embedded LDAP server provided by the WebLogic server.
As far as I know, BIP or OID are not currently supported in the cloud.
~Bogdan -
How to keep the content of email (hotmail) in firefox when to forward or reply the mail. This is not the case when I use Internet Explorer.
See this:
https://support.mozilla.com/en-US/kb/Blank+messages+in+Hotmail
Maybe you are looking for
-
Remote Desktop Connection Issue
Hello, We have an issue where our reception computer has 4 RDP connections set up to access 4 other desktops in the office. The connections seem to lose some sort of connection settings periodically as when we try to launch the connections they fail
-
500 Internal Server Error when deploying struts application on OAS 10.1.3
I've installed the Oracle Application Server several times, this time with 10.1.3 our application doesn't run and we get the error shown below. Any ideas? It looks to be something with struts or tiles. struts.jar and tiles.jar is included in our depl
-
Dear Guru's i have a return po and Migo done for the same & credit note also done for the same. but when i go to MR8M tcode to cancel the credit note i am getting the below error, ''Document XXXXXXXXXX XX 2009 already contains cleared items - reversa
-
HI I had this issue about 6 months ago, and after a re-install Windows 7 64 bit, the spacing is back in my bookmarks sidebar. I've tried this with both dream weaver AND notepad as the text editor, and as well hidden file extensions, which worked last
-
Printing problems with Aperture
I just switched from Windows (long story, many years) to an Intel iMac 20, with Aperture pre-installed. I had a Canon PIXMA iP 6000D printer; all prints had a yellow cast. I bought an HP Photosmart 7160; all prints have a yellow cast. I have done a f