JavaMail 1.4.5 Oracle database 11g can not send an attachment file

I use oracle 11g and 1.4.5 javamail to send e-mails via pl/sql, all work fine, but when I add the attachment to the email that she stops with a null pointer exception error

Exception in thread "Thread root" java.lang.NullPointerException

at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:226)

at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:299)

to javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1375).

is there a compatibility problem between javamail and dab 11g or I miss some configurations for the destination of the attachment?

Thank you

Sorry, I can't say what's not without more details.  Can you show the code that you use to create the message?

Also, if possible, you should consider the upgrade to JavaMail 1.5.5.

Tags: Java

Similar Questions

  • can I use "Oracle Database 12 c: performance management and Tuning" training for the certification "Oracle Database 11g: Performance Tuning 1Z0-054 '"»

    I took "Oracle Database 12 c: new performance management and Tuning" the oracle University training. Now I would like to get certified on "Oracle Database 11g: Performance Tuning 1Z0-054 ' exam. Is this possible?

    I guess you ask if you can use the course 12 c as long as the condition of course for the review of 11g.  Over 12 c is not listed as one of the options for the 11 g certification and course requirements are normally specific version - at least with DBA certifications.  If you are already an Oracle OCP DBA, of course, there is no requirement of course for the review of performance tuning.  From what I know the training requirements for other certifications, I do not that you will be able to use it. However, Brandye will provide a definitive answer to whether the course 12 c would be acceptable for 11g certification.

    That said, I'm with John - 12 c review is about a community of 85 to 90% in the review of the 11g and is currently about 20% of the price while it is in beta.  What is the point of trying to cross the releases?

  • where can I get the software for oracle database 11g RAC installion

    pls can someone tell me where to download the installation software for oracle database 11g RAC with Yes which has the option of installing RAC database on, I the installation of database 11g software, but it does not include the installation of database RAC inside option, I heard someone say that the installer of oracle database 11g in oracle's Web site is not used to install a RAC database is it true? If that's how to make one that installs the RAC DATABASE.

    Download page:
    http://www.Oracle.com/technology/software/products/database/Oracle11g/111060_linuxsoft.html

    -Oracle Database 11 g Release 1 (11.1.0.6.0) for Linux x 86
    linux_11gR1_database_1013.zip (1,844,527,800 bytes) (cksum - 1044354138)

    -Oracle Clusterware 11 g Release 1 (11.1.0.6.0) for Linux x 86
    linux_x86_11gR1_clusterware.zip (244,660,141 bytes) (cksum - 820583335)

    Maybe you need to download is: Clusterware Oracle 11 g

    Document: Oracle® database 2 day + Real Application Clusters guide 11 g Release 1 (11.1)
    http://download.Oracle.com/docs/CD/B28359_01/RAC.111/b28252/TOC.htm

  • Configure Enterprise Manager in Oracle Database 11g

    Dear all,

    I want to configure my Enterprise Manager Console for Oracle Database 11g. During installation I unchecked "configure EM Console."

    I have Oracle Red Hat Linux 6.5, please guide me how can I start my console em on the Linux environment.

    Kind regards

    Atif Zafar

    Hello

    If you want to create or configure Enterprise Manager console, follow these steps:

    • Set ORACLE_HOME environment variable
    • Set ORACLE_SID
    • ORACLE_HOSTNAME environment variable set. Use the same value returned by the command "hostname".
    • Run the emca (Enterprise Manager Configuration Assistant).

    $ emca - create config dbcontrol db-rest

    • Follow the instructions.

    Kind regards.

  • 1Z0-054: Oracle Database 11g Performance Tuning Expert

    I intend to give the exam 1z0-054 for the certification, "Oracle Database 11g Performance Tuning Expert".

    The path to Certification indicates that, if you are 'OCP DBA 11 g' then you can directly take this article and there is no requirement for training instructor. Therefore, I decided to prepare my own. Can someone guide me on study material and landfills?

    Kind regards

    Ahmer Mansoor

    Therefore, I decided to prepare my own. Can someone guide me on study material and landfills?

    First of all, the word "shock" has a precise meaning. It is short for "landfills of brain", which are illegal and can cost you this certification and all others you have taken.

    http://blogs.Oracle.com/certification/entry/0477

    Second - there is currently no study guide or a specific book to this certification at the moment. I write the study guides and this one is actually next on my list when I finished the current book to * 1Z0-117: Oracle Database 11 g Release 2: SQL Tuning *. I have a guide for 1Z0 - 054 before sometime in may more likely. That said, I have a few links for legal study on the companion Web site material for my series of guide to the subjects for this exam. It also has links to the Oracle documentation that contains the information you need. Once I have started writing the book review, links will develop quickly because I research for her themes and links to the documentation could extend as well.

    http://www.oraclecertificationprep.com/Apex/f?p=OCPSG:EXAM_DETAILS:0:no:P2_EXAM:1Z0 - 054

  • Upgrade to the 10.2.0.4 release without Oracle Database 11g

    Hi everyone, I need to upgrade the OWB Production current client version:

    Client version: 10.2.0.1.31
    Version of the repository: 10.2.0.1.0
    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64 bit Production

    to the 10.2.0.4 release, using the patch # 7005587 (uploaded on Metalink)

    I have red as the Patch Readme and I found that it is necessary to migrate to Oracle Database 11g.
    Now my question is this: can I apply the patch above WITHOUT upgrading the database?
    The customer asked me if it is possible to continue to use the 10 g Enterprise Edition Release 10.2.0.5.0 and upgrade OWB to the 10.2.0.4 release... Is this possible?

    Thanks in advance for your help

    Alex

    Hello

    In my view, there is some lack of communication happening. 10.2.0.4 OWB can be used with Oracle 10.2.0.5.
    We even had OWB 10.2.0.5 running against Oracle 10.2.0.5

    According to me, that there are some bad this info in the patch readme file. OWB 10.2.0.4 includes support for Oracle database 11g (as a Source). This is a major change incorporated in this version.

    Thank you
    Fati

  • Move to Oracle Database 11g Release 2 with Mike Dietrich

    Hi friend;

    Yesterday, I was in an Oracle in Istanbul.

    In the seminar; Author Mike Dietrich, who works in Germany-Oracle show us how to do the step of database Oracle 11 g Release 2. His presentation available on my blog.

    I highly suggest to check this pdf. It already has cover:

    -Support of politicians, patches, Documentation, upgrade paths
    -Database upgrade (DBUA, command line, after the upgrade, alternatives, Clusterware and ASM upgrade)
    -Diagnosis and Tuning
    -Performance evaluation

    You can find many useful tips, path of evolution, related notes metalink etc etc... in the pdf file.

    http://heliosguneserol.WordPress.com/2010/06/17/move-to-Oracle-database-11g-release-2-with-Mike-Dietrich/

    Respect of
    HELIOS

    Helios,

    Interesting paper! Thanks for sharing with us.

    Thank you
    Hussein

  • Oracle Database 11g R2 under Oracle Linux

    Hi, I am very new to the oracle dba. I tried to install oracle database 11g r2 on Oracle Linux 64-bit. What version of oracle linux best costumes?
    Thanks for your reply.

    857367 wrote:
    Hi, I am very new to the oracle dba. I tried to install oracle database 11g r2 on Oracle Linux 64-bit. What version of oracle linux best costumes?
    Thanks for your reply.

    http://www.Oracle.com/us/technologies/Linux/index.html

  • The CPU is not powerful enough for Oracle database 11g?

    The CPU is not powerful enough for Oracle database 11g?

    I installed the datatase Oracle 11 g on my host by using the default configuration of oracle yesterday. Today, I find some the alert message: "CPU usage is 86,79%, through attention (80) or critical (95) threshold.» The average value of the CPU usage is 80.85% and I have to wait for more than 10 seconds for opening a page of the EM.
    My host is HP workstation xw4200. CPU is 3.4 GHz. No other applications on that host.
    I want to know: what is the main reason for the shortage of CPU resources? Because the database Oracle 11g itself is exhausting CPU or because there are a few configuration issues?

    qkc wrote:
    1 is it true that most of the CPU is exhausted by the EM control tool?

    It's quite possible.

    It is also one of the reasons why we encourage people to drop EM Database Console and switch to EM Grid Control. The burden is then on another server.

    2. why this index has been added in advance by Oracle Corporation? It does not seem that each tool is set up perfectly in advance.

    It was probably not required under ideal conditions, in which it has been designed and tested.

    Why is your environment not identical to the designed conditions that use Oracle? ;-)

  • Network error [10053]: can not send data when you run a calc in Planning

    Hi gurus,

    I get a network error [10053]: can not send data when you run a calc in a planning application.

    Looking in the newspaper of the App in Essbase server, I found the following:

    [Thu Apr 9 15:37:36 2014] Local/MYAPP / / / 140285871445760/Info (1008108)

    Internal logic error Essbase [1]

    [Thu Apr 9 15:37:36 2014] Local /MYAPP///140285871445760/Info(1008106)

    Exception error log [/Essbase/oracle/Middleware/user_projects/epmsystem1/diagnostic/newspapers/essbase/essbase/app/MYAPPlog00004.xcp] is being created...

    [Thu Apr 9 15:37:36 2014] Local /MYAPP///140285871445760/Info(1008153)

    A core file can be generated in [/Essbase/oracle/Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1/app/MYAPP/ESSSVR.] Wed_Apr__9_15_37_02_2014]

    [Thu Apr 9 15:37:36 2014] Local /MYAPP///140285871445760/Info(1008107)

    Exception error log completedmyapp/Essbase/oracle/Middleware/user_projects/epmsystem1/diagnostics/log/essbase/essbase/app/MYAPPlog00004.xcp please contact technical support and provide them with this file

    [Thu Apr 9 15:37:36 2014] Local /MYAPP///140285871445760/Info(1002089)

    RECEIVED COMMAND OF THE UNUSUAL STOP - REQUEST FOR TERMINATION

    My environment is Windows 2008 R2 with Oracle Database and having only Essbase server in a SUSE LINUX box.

    Could someone help me on this?

    Thanks in advance

    We've tracked down the instructions in the calc and the error occurs in two blocks of calc. After the split in two blocks of the calc has no error more.

    Thanks to you all

  • I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send.

    / * moved from answers Feedback * /.
     
    I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send. My email is with bellsouth.net and comes in my computer through windows Messaging.  I spent an hour and a half on the phone with bellsouth, and they say that the problem is with my windows mail.  I tried to use a restore date, and that did not help either. I will post a copy of this message, as I keep getting.  Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems, or a long period of inactivity. Object 't', counts: 'mail.bellsouth.net', server: 'mail.bellsouth.net', Protocol: SMTP, Port: 25, secure (SSL): no, error number: 0x800CCC0F thanks for any help.

    Sometimes, WinMail settings get screwed up and you must remove the account and then add it back back.  Make sure first that the antivirus software not interfere (see www.oehelp.com/OETips.aspx#3).   Delete your account completely, then close WinMail.  Then compact and repair the database of WinMail (see www.oehelp.com/WMUtil/).  Add your account to mail back once again, and then make sure you have the correct settings under Tools | Accounts | Mail | Properties | Servers and | Advanced to what AT & T Specifies to WinMail (or OE).  Then see if it works.

    Steve

  • What happens in Windows Mail? I can not send attachments with any type of graph.

    Unreal

    What happens in Windows Mail? I can not send attachments with any type of graph. People receiving my email with attachments receive between 60 and 70 copies. I called my provider, my safety, send the computer for a week for a Tech and no one can answer this problem for me. If I don't get this problem resolved I will never use Microsofts again e-mail programs.

    Tools | Accounts | Mail | Properties | Advanced. Uncheck the box: "Break apart messages...". ».
    If this isn't the cause, try to compact and repair the database.
     
     
     
  • Can not find the downloaded file

    I regularly download files, and they will 'always' in the same directory. Now, I downloaded fedora-live-workstation-i686-22-3.iso
    of https://getfedora.org/en/workstation/download/and (a) I didn't get the usual "save/open" Download dialog and (b) I can not find the downloaded file. The < downloads - tools > FF screen displays the file as downloaded, but not (AFAICT) where he was placed.

    Any clarification would be appreciated. Thank you.

    (OP) Well, I downloaded the same file again and this time everything went as it should. For example, some of my 'facts' above must be wrong, but I don't know who. I suspect some personal deficiencies.

  • can not download the attachment for hotmail

    Can not download the attachment for hotmail. The "uploading...". "sign never finished. But attachment downloading works in Internet Explorer. I tried to disable, uninstall and reinstall silverlight, but none of them seems to fix the problem.

    You have a user agent which is corrupt and which identifies you as undefined GoogleToolbarBB

    See:

  • After that change of password can not send mail

    I recently changed my password for two through Comcast email accounts. I entered the new password on my iphone, it their checked but I'm unable to send. I deleted the account and re registered and if the accounts are found and verified again, I can not send.

    dogsnack wrote:

    I recently changed my password for two through Comcast email accounts. I entered the new password on my iphone, it their checked but I'm unable to send. I deleted the account and re registered and if the accounts are found and verified again, I can not send.

    You should make sure that you enter the new password for your outgoing mail server.

Maybe you are looking for