Email: activation.jar and applet alert

I have written code for sending email. I works on one machine with out errror. When I moved it to my server it gave error for the activation.jar file. After copying this file, the code worked, but now I get applet Alert popup with message as "The applet is attempting to invoke the java/lang/System.getProperty() operation on user home, I need to click on Allow to get the code working. How do I disable this popup?
What is the difference between settings on two machines. Is it some browser setting for applet or something else? I am using jre version 1.4.2_03 on Windows 2003 server.

No, I am not using Java Applet. I have written simple Java application with main which I run from Command prompt
I am not sure why the popup is displayed for Applet.
Here is the code:
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class sendMail
public static void main(String args[])
     //set this variable to be your SMTP host
     String mailHost = "192.24.235.20";
     //set this variable to be your desired email recipient
String to = "testUser@mclaren";
//these variables come from the mail form
String from = "dctmUser@mclaren";
String subject = "JavaTest";
String body = "Test";
if ((from != null) && (to != null) && (subject != null) && (body != null)) // we have mail to send
try
//Get system properties
Properties props = System.getProperties();
//Specify the desired SMTP server
props.put("mail.smtp.host", mailHost);
// create a new Session object
Session session = Session.getInstance(props,null);
// create a new MimeMessage object (using the Session created above)
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO, new InternetAddress[] { new InternetAddress(to) });
message.setSubject(subject);
message.setContent(body, "text/plain");
Transport.send(message);
System.out.println("Message Sent");
catch (Throwable t)
System.out.println("Error: " + t.getMessage());
I can't attach the screen shot of the Applet Alert window, but below is the text I get on the Applet Alert window
First Window
Title: -- Applet Alert --
Text: The applet is attempting to invoke the java/lang/System.getProperty() operation on user home
Buttons: Allow, Disallow, Stop Applet
Second Window
Title: -- Applet Alert --
Text: The applet is attempting to perform read operation on file C:\Documents and Settings\Administrator\.mailcap
Buttons: Allow, Disallow, Stop Applet
Third Window
Title: -- Applet Alert --
Text: The applet is attempting to invoke the java/lang/System.getProperty() operation on user home
Buttons: Allow, Disallow, Stop Applet
Forth Window
Title: -- Applet Alert --
Text: The applet is attempting to perform read operation on file C:\j2sdk1.4.2_03\jre\lib\mailcap
Buttons: Allow, Disallow, Stop Applet
And following is the text output on the command prompt by the system:
C:\java>java sendMail *(this is my code file)*
Current policy properties
thread.thread_num_limited: true
file.write.state: disabled
net.connect_ex_dom_list:
mmc.sess_cab_act.block_unsigned: false
mmc.sess_cab_act.action: validate
mmc.sess_pe_act.block_blacklisted: false
mmc.sess_pe_act.block_invalid: true
jscan.sess_applet_act.stub_out_blocked_applet: true
file.destructive.in_list:
jscan.sess_applet_act.block_all: false
file.write.in_list:
file.nondestructive.in_list:
window.num_limited: true
file.read.state: disabled
jscan.session.origin_uri: http://www.guj.com.br/posts/downloadAttach/330
.java;jsessionid=76FF899CEACAB3CFFB48E3EEE4E0E89F
file.nondestructive.state: disabled
jscan.session.user_ipaddr: 10.122.3.106
net.connect_other: false
thread.thread_num_max: 8
file.destructive.ex_list:
file.nondestructive.ex_list:
file.write.ex_list:
jscan.sess_applet_act.sig_invalid: block
file.read.in_list:
mmc.sess_cab_act.block_invalid: true
jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5
mmc.sess_pe_act.action: validate
thread.threadgroup_create: false
net.connect_in_dom_list:
net.bind_enable: false
jscan.sess_applet_act.sig_trusted: pass
jscan.session.user_name: 10.122.3.106
jscan.session.user_hostname:
file.read.ex_list:
jscan.sess_applet_act.sig_blacklisted: block
jscan.session.daemon_protocol: http
net.connect_src: true
jscan.sess_applet_act.unsigned: instrument
mmc.sess_pe_act.block_unsigned: false
file.destructive.state: disabled
mmc.sess_cab_act.block_blacklisted: true
window.num_max: 5
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
Message Sent *(This is the message I print from the code)*

Similar Messages

  • Activation.jar and mail.jar version ????

    I have deployed a web service in Weblogic v7.0 which accepts DataHandler as one
    of its paramters ( for attachments).
    When I invoke from a soap client (weblogic v8.0) it works fine. For using with
    soap client (weblogic v7.0) its
    gives a serializer exception.
    What version of activation.jar and mail.jar should I use for sending attachment
    from weblogic 7.0 client.
    Regards
    Kumar Raj

    Hi Kumar,
    Could you post the exception traceback and clarify the configuration
    (v7.x client to v7.x server fails, but v8.1 client to v7.x server works
    OK?)
    You may also want to take a look at the docs on creating portable stubs
    [1] associated with creating the client jar.
    Thanks,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/client.html#1076586
    Kumar Raj wrote:
    >
    I have deployed a web service in Weblogic v7.0 which accepts DataHandler as one
    of its paramters ( for attachments).
    When I invoke from a soap client (weblogic v8.0) it works fine. For using with
    soap client (weblogic v7.0) its
    gives a serializer exception.
    What version of activation.jar and mail.jar should I use for sending attachment
    from weblogic 7.0 client.
    Regards
    Kumar Raj

  • How can I parse email activation link and do some action?

    I have som email activation link
    http://localhost:8085/application/activate.jsf?id=10&key=35435454654654654646
    I want when user clicked on this url ,
    automatically do action in bean and activate his account or not.
    I receive parameters key and id from requestParameterMap, but I do not want put on the page commandLink and do action after clicking on it.
    key = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("key");
        id = (String) FacesContext.getCurrentInstance().getExternalContext()
                .getRequestParameterMap().get("id");
        How can I do this?
    I have some method activation () and I want run it after receiving key and uid ,
    May be I need phase listener? If yes, can you provide simple example.

    I'm afraid you'll have to use some kind of action listener; that's how jsf commandLink and commandButtons are design to work
    OR
    you could achieve your goal by writing a servlet mapped to the url . capture your request parameters and do the activation in your servlet.

  • JSE8 and mail.jar, activation.jar

    Hey, all.
    Does anyone know if there are new mail.jar and activation.jar files for the Sun Java Studio Enterprise 8 system that support the new mail standard 1.4? I tried just putting these new jar files out in the \appserv8.1ur2\lib directory but that didn't work because apparently the JAR files that come with the server are packaged a bit differently (thank a lesser god I had saved off the old versions of the two files so I could put them back!)
    I'd like to use the new mail 1.4 standard that includes the method javax.mail.inetrnet.MimeBodyPart.attachFile(File). It seems much more straightforward than doing the old style mime attachment business.
    Thanks in advance.

    First, when the NEW (javamail 1.4) JAR files aren't there, I get a javax.servlet.ServletException: javax.mail.internet.MimeBodypart.attachFile of "noSuchMethodError". Then, I replaced the old JAR files with the new activation.jar and mail.jar files and I then receive a javax.servlet.ServletException that com/sun/mail/util/SharedByteArrayInputStream has a "NoClassDefFoundError". I think the JSE8 folks must package all the various associated "mail" files (dsn.jar, imap.jar, mailapi.jar, pop3.jar, and smtp.jar) along with the main "mail.jar" file into one big JAR repository.

  • Email Activity Template

    Hi,
    I've created an email activity template, and I've added this to many of my process flows.
    It's all working great and emails are being fired.
    Within the set-up parameters of the email activity template, I've changed default value of the 'TO_ADDRESS' parameter (so it sends the emails to another person).
    I did expected the change of the 'TO_ADDRESS' to be inherited by the email activity in my process flows.
    Is there something I'm missing, should it not work in this way?
    If not, how else could I change the email address in one place so it could replicate to all the other email activities I've set up in my process flows?
    Many thanks for your help.
    Ansel

    Hi ansel,
    You can store emails in some parameter table and in process flow add some function which will return email values (In this case you must redesign your flows).
    There can be also other solutions.
    Regards

  • ERMS for email activity based on alerts

    Hi
    What are the configuration steps required to setup ERMS for email activity based on alterts.Please send me soltion immediatly
    Regards
    Vikram

    Hello Vikram,
    I am afraid that your question is not clear. ERMS is a solution for processing and handling inbound emails. Alerts are used to communicate customer-relevant information to Interaction Center agents. The two tools -- ERMS and alerts -- are not related. Can you please clarify your question and/or elaborate on you requirement?
    Thanks,
    John

  • Email and SMS Alerts - Solution Manager - PI and EP

    Hi All,
    I am trying to do the below scenario.....But somehow i am lost in the process.
    I have a three system PI landscape and a Solution Manager. I have included the DEV PI in solution manager for CCMS,the CCMS agents are online and it also reflects in RZ20.
    Now the requirement is SOLMAN should send email and sms alerts in below situations which occur in PI system.
    1.The ABAP or JAVA engine goes down.
    2.One of the filesystem crosses certain predefined limit.
    3.Any of the java server node stops working
    4.If any critical job gets cancelled in sm37
    I am looking at steps on how to define the alert categories, auto reaction methods, also the nodes where i have to assign these auto reaction methods.
    I have gone through CCMS documentations, played all sim files and gone through most of the pdf files but i am not able to establish proper steps to do it.
    I am Redhat Linux,Oracle 10g, SOLMAN 7 with PI7
    Can i extend the same for the EP systems also which are pure Java Stack Systems ?
    Also i would like to know if i can send customized alert messages.
    Best Regards
    Raghu

    Hi Juan,
    Thanks for your response.
    I am looking at the MTE classes i.e for the above situations which MTE classes are required.
    Also i have read in some document that we can send the alerts directly to the email IDs and cell numbers without having to mention them in user masters in SU01. Where to mention these ?
    I have my SCOT settings done for email servers.
    The process which i had built up in my mind is all mixed up and i am lost where to do which configuration
    Best Regards
    Raghu

  • I m trying to send a email and sms alert using php and it works fine on all systems except on Iphone,the problem is swedish charcters doesn't show on iphones used by people in sweden but works absolutely fine on iphones in india. plz help

    I m trying to send a email and sms alert to people and it works fine on all systems expect on Iphone,the problem is swedish charcters doesn't show on iphones used by people in sweden but works absolutely fine on iphones in india.
    the code i m using is right below,plz have a look and not into the problem as problem is a bit strange.
    $headers = "MIME-Version: 1.0\n" ;
                $headers .= "Content-Type: text/plain; charset=\"UTF-8\"\n";
                $headers .= "X-Priority: 1 (Highest)\n";
                $headers .= "X-MSMail-Priority: High\n";
                $headers .= "Importance: High\n";
                // Additional headers
                $headers .= 'From: Rakesh <[email protected]>' . "\r\n";
                foreach($disemail as $email)
                    $to = $email;
                    $subject = $succMessage['email_subject'];
                    $message = $smsText;
                    mail($to,'=?UTF-8?B?'.base64_encode($subject).'?=',$message,$header);
            if (stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
            $smsText = utf8_encode($smsText);

    i have tried this new charset combination specifically for iphone and i m waiting for response from sweden alliance.....i hope this works fine as iso works great for 8-bit characters.
    would like to have your thoughts though.
    $headers .= "Content-Type:text/plain; charset=\"iso-8859-1\"\n  format=flowed Content-Transfer-Encoding: quoted-printable";

  • My macbook air with snow leopard OS. migrated to OS lion and have installed Java RE. a Bank website while opening in Java shows one error which window activity shows some applets not opening. it was fine in snow leopard. will somebody help?

    My macbook air with snow leopard OS was purchased last year. Recently migrated to OS lion and have also installed Java RE. A Bank website while opening in Java shows one error which window activity shows some applets not opening. But it was fine in snow leopard. Will somebody help?

    My macbook air with snow leopard OS was purchased last year. Recently migrated to OS lion and have also installed Java RE. A Bank website while opening in Java shows one error which window activity shows some applets not opening. But it was fine in snow leopard. Will somebody help?

  • Email activity for soa and bam with pre-built virtualbox images

    Dear OTN,
    i am running pre built virtualbox image for soa and bam and want to run with email activity and configure the email inside the virtualbox can anyone help me with email activity in pre-built virtualbox image.
    Thanks & Regards,
    Pavan

    Hi there
    I have a Technote that shows how the information can be published from EBS to BAM. In addition you could create an end to end visibility across the products e.g. B2B - BPEL - EBS - Financials etc by raising the events to BAM .
    There is no out of the box dashboards available today. However, i have a number of customers who are doing this use case by themselves or through some SI/Oracle consulting.
    can we contact you offline to discuss your requirement?
    http://www.oracle.com/technology/products/integration/bam/11g/technotes11g/whitepaperBAM_E-BusinessSuiteIntegration.pdf
    There are certified adapters available for EBS to FM as well.
    Regards
    Payal
    Edited by: PayalS on May 21, 2010 4:25 PM

  • Three questions about signed jar file and applet

    I use three signed jar file. Each of them signed by different certificate. First of JARs contain applet class. When I start applet from html page I see message &#8220;This applet was signed by&#8230;&#8230; but Java cannot verify it&#8230; Do you trust&#8230;?&#8221;. All times I press &#8220;Yes I trust&#8221; and after this questions applet stop to work end exit. If I use only one certificate for signing of three JARs then applet continue to work after question. 1) What should I do to fix this bug? 2) Is it any method to check from applet that user press Trust button? Is it any method to emulate work of SecurityManager to check that Certificate object is trusted (I want do call some method check(Certificate) and if certificate is not trusted I want to see message with question: &#8220;Do you want to trust this certificate&#8221; and so on)?

    Hello Jarman,
    1. If I have a signed jar file, then as long as the
    certificate is recognised as trusted that applet can
    run as a fully trusted application on the client
    machine. So I should not have to add lines such as
    permission java.lang.RuntimePermission
    "readFileDescriptor", "read" ;
    permission java.lang.RuntimePermission
    "writeFileDescriptor", "write" ;
    to my java.policy file. true/false ?true
    2. If I am running a signed jar file in the Java
    plugin then I do not need to have a verisign or thawte
    certificate (however to allow my certificate to be
    accepted I do have to import it into the cacerts file
    on the client machine). True/false?true
    3. Following on from question 2, if I want to be able
    to run an applet on a client machine, without messing
    around with ANY files on those machines, I need a
    verisign or thawte certificate. True/false?true
    4. (And finally) Apart from a security exception
    saying that I need to add one of the lines like those
    of question 1, is there any way I can get other debug
    information as to why the signed jar file is not being
    recognised as signed?No. This could be a problem of importing your certifcate into the wrong place.
    The information on the following link is a little bit dated but it helped me to successfully install a testcertificate and sign an applet with it.
    http://www.suitable.com/Doc_CodeSigning.shtml

  • How do I set up my Apple ID so that every time I download a tune/app and email is sent to me alerting me to this fact?

    How do I set up my Apple ID so that every time I download a tune/app and email is sent to me alerting me to this fact?

    If you follow the instructions on this page (i.e. select and 'buy' a free app when creating an account) then you should get the None option : http://support.apple.com/kb/HT2534

  • BPMon : Separate email notification on yellow and red alert

    Hi, gurus!
    Does anyone know how to set up for Business process monitoring different email adresses for yellow and red alerts?
    Thanks,
    Szilvia

    Hi Szilvia,
    the only workaround is the way you describe by duplicating the monitoring object. This is of course not the intention as the data collection will take place two times.
    What I would like to understand is the use case behind it. As we implemented BPMon at around 100 customers and never got the request as something critical. Is is just for escalating the problem or what is the idea behind different recipients for different ratings?
    If it thought to be for escalation purposes you have to be very careful as seting the right threshold values is really an art. You probably don't want to bother the next escalation hierarchy with too many problems.
    Regards
    Volker

  • APPLET ALERT with IE7 and latest JRE

    Hi all,
    I am having the problem that if i go to www.map24.de I get bombarded with applet alerts (e.g. The applet is attempting to invoke the java/lang/System.gc() operation), but WHY? Similar configuration on another PC (Win XP, IE7, Java 6u2), the problem is not happening, so I guess it a magic switch....
    Any idea?
    Thanks & regards
    dau

    Try the Public JRE.
    Private vs. public JRE - Installing the JDK installs a private Java SE Runtime Environment (JRE) and optionally a public copy. The private JRE is required to run the tools included with the JDK. It has no registry settings and is contained entirely in a jre directory (typically at C:\Program Files\jdk1.6.0\jre) whose location is known only to the JDK. On the other hand, the public JRE can be used by other Java applications, is contained outside the JDK (typically at C:\Program Files\Java\jre1.6.0), is registered with the Windows registry (at HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft), can be removed using Add/Remove Programs, might or might not be registered with browsers, and might or might not have java.exe copied to the Windows system directory (making it the default system Java platform or not).
    more info => http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html

  • Hi i active my i cloud but my yahoo email was stolen and they change my apple id  and passworrd and icant turn off my icloud it need apassword  what can i do to turn it off .......and my iphone cant download applications from apple store?im from iraq

    hi i active my i cloud but my yahoo email was stolen and they change my apple id  and passworrd and icant turn off my icloud it need apassword  what can i do to turn it off .......and my iphone cant download applications from apple store?im from iraq please help me

    You're gonna have to figure out a way to call AppleCare...there is no AppleCare where you live...somewhere, & ask to talk to "Account Security". Here's a list of worldwide support numbers:
    http://support.apple.com/kb/HE57

Maybe you are looking for

  • Key mapping on UNIX forms

    We are using character based forms on SGI IRIX (Unix) machine as client, I need to map the keys for the client which I have never done. Can anybody help me or advice me what are the respective steps to do it. I couldn't find a good document on this.

  • Billing payment trouble

    I've been many times try to change my credit card for payment since i dont use the old one anymore. but it keeps failed with error Id 12000. Someone can help me? I want to purchase themes so bad. Thanks

  • Installing JavaHelp and SDK

    I installed JavaHelp and the Java 2 SDK Enterprise Edition. I have rebooted my PC. Everytime I try to run JavaHelp I get a message that I must install the lastest version of the Java 2 SDK. Anyone have any ideas on what I did wrong?

  • MSI Official drivers NVIDIA all GeForce series

    Hello all, I'm new to this forum & my question is - I have an MSI NX6800GT-TD256 graphic card (mine must be one of the early ones - hasn't got a fan speed switch) I am using the NVIDIA VGA Driver 82.65 for Win XP/2000 (Update Date 2006-01-16) And I w

  • Updated my iphone4 to version 5 have lost my calender can anyone help

    updated my iphone4 to version 5 have lost my calender can anyone help