Java Mail not working in Oracle

10-11  Source: Network gathering  Views:0 

Advertisement
Hi,
I created an Java program to import attachments from a exchange server mailbox using POP3S .It works fine when run as a java application.
But when i put this inside Oracle11g using load java and while executing it gives an error at
Multipart mp = (Multipart) message.getContent();
Error:
Content-Type: multipart/mixed;
     boundary="_002_A0C2E09A..................................."
java.lang.ClassCastException
     at Newmail.mailPOP3(Newmail:71)
Could someone explain why I am getting this error? What can I do to resolve this error?Any help would be much appreciated.
Regards,
Joseph
I assume you're checking that the message is a multipart message before casting it to Multipart.
Is Oracle 11g running JDK 1.6?
Are you using the latest version of JavaMail?
Sometimes this fails because it can't find the required configuration files, due to the different
environment in the database version of Java. Try the workaround described here:
Re: JavaMail Problem with JRE 6.0 in an applet
Related articles
  • Java Mail not working in Oracle 10-11

    Hi, I created an Java program to import attachments from a exchange server mailbox using POP3S .It works fine when run as a java application. But when i put this inside Oracle11g using load java and while executing it gives an error at Multipart mp =

  • Runtime.exec()  in Java not working in Oracle 10 Application Server 11-30

    Hi , I am trying to call a .exe file which is in the Web Application folder . I am Using Process p = Runtime.exec("path to .exe file ") This code is working fine when used with JBOSS , but not working with Oracle Application server . Please tell

  • HT1338 i think my java is not working properly what do i do 10-11

    i think my java is not working properly what do i doJava 7 updated  for 10.7-10.8 Released Feb 1, 2013,  fixes 50+ security flaws http://www.esecurityplanet.com/patches/oracle-responds-to-java-security-flaws-wi th-50-fixes.html Download and install h

  • Java update not working 10-11

    Java is not working. Already tried downloading Java 7 update. Java (Oracle) cannot verify that I have Java installed. Java does not show up in system prefrences even after download success screen, and shutting down all apps and computer. I checked co

  • Java does not work at all upon using the update manager to update to firefox 3.6.10 for Ubuntu 9.0.4 10-11

    OS: Ubuntu 9.0.4 Browser: Firefox 3.6.10 upon updating to firefox 3.6.10, java does not work at all. websites that use java do not work at all anymore, when they worked just fine before the updating thru update manager. e.g. hulu website cannot play

  • HT1338 I installed Mac OSX Snow Leopard 10.6.3 And now my Java is not working, what can I do to fix's this? 10-11

    I installed Mac OSX Snow Leopard 10.6.3 And now my Java is not working,what can I do to fix's this?Run Software Update to get to 10.6.8 and update Java.Read other 3 answers

  • What will you do if any SQL is not working.in oracle 10g...apps 11.5.10.2 10-11

    What will you do if any SQL is not working. in oracle 10g....apps 11.5.10.2928714 wrote: yes sir.If you help me in answering my questions i wll be very thankful to you sir. tnx,I haven't a clue. As you have been advised in many of your posts, go stud

  • Table_From_Block Build-in Package is not working in Oracle 10G 10-11

    Hi Table_From_Block Build-in Package is not working in Oracle 10G Kindly advice..user648759 wrote: Hi Table_From_Block Build-in Package is not working in Oracle 10G Kindly advice..Provide a little more information. Forms version OS version, more info

  • Select * from tab is not working in oracle 10g 10-11

    select * from tab is not working in oracle 10g. But at the same time, select * from <<table>> is working. Please advise me.This works for me in 10.2.0.2 Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production

  • Java Plugin not working with firefox 3.o.13  and linux. 10-11

    this is my ln -s to the plugin at /usr/lib/mozilla/plugins libjavaplugin_oji.so -> /usr/local/jdk1.6.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so Any ideas why java is not working? Here's the ln -s again: #pwd #/usr/lib/mozilla/plugins # ls -l lrwxr

  • Apple Mail not working after internet outage. 10-11

    10.9.5 Mail not working after internet outage.  Connection doctor shows everything green.  Other apps connecting to internet fine.   Mailboxes show online.  I can login and get mail via web iCloud.com.  But Mail app will not send or receive.  Tried r

  • Java 7 not working on new (4/2/13) OS 10.8 machine 10-11

    I downloaded Java 7 and the app is not working. Checked it on Java site and it is not functioning. Validated Java is enabled in browser Cleared Cache... Not sure what else to do. Was going to uninstall and re-install with security off, but am not sur

  • Java is not working any more 10-11

    The last 6 months Java has not worked at all. I have Java 1.4.2 and 5.0 installed. I have tried re-installation, emptying buffers, resettings safari, using other browsers, created new user account in OSX and so on. I have tried all the tricks in the

  • Java 7 not working on OSX 10.8.3 10-11

    I need some help with Java 7. I am trying to open my photo lab software, however, it keeps giving me a message saying I need to download the Java Runtime Environment. I clicked on the link and it brought me to the Java site. I sucessfully download th

  • Java Safari Not Working 10-11

    Hi all, I am running 10.4.11 with the new safari but now I believe my java is not working right anymore. I am getting the mug with arrows and no response when I try to upload photos onto places like facebook and costco. I have gone through the softwa

  • Java apps not working right 10-11

    I lately have found problems with Java apps not working correctly. For example, in Yahoo Widgets I cannot get any widget preferences to display; in Apple's Java Preferences for J2SE 5.0 the preference window opens but is blank; and in JBidwatcher the

  • Java applet not working savevid keepvid 10-11

    Hi all, I'm sure I'm not the only one who has been confounded by Java applets not working in certain download web services; in my case, keepvid.com and savevid.com to download copies of youtube videos.  It has been a huge headache and even debilitati

  • Java & Flash not working in safari 10-11

    Hello Friends, why java & flash is not working in safari? I have checked Java preferences, tab called general tab, and the checkboxes, both checked. java version run on the termial & it confirmed java by displaying it's version. running perfect. T

  • Java currently not working, but was working previously. Change occurs around updates. 10-11

    I need Java to upload info to a GoDaddy website. Java was working in January, then did not work. It worked again after an update, then stopped working about the time of another Firefox update. Currently, Java is not working, but I am able to upload t

  • Why does Java Application not working with Macromedia Flash 5 or MX? 10-11

    Why does Java Application not working with Macromedia Flash 5 or MX?Who says they don't? Although I don't know much about those I'd think they should be able to talk to Java Aps using Sockets or request Servlets ... SpielerRead other 2 answers