Problem with JavaMail 1.1 Api

I have written a stateles session bean that should send a email using
          JavaMail 1.1 API. When running as it is now I receive a MessagingException:
          "No provider for Address type: rfc822". How do I grant permission to the
          mail.jar and activiation.jar files so that WL get it ? Im using Windows NT.
          Any help is greatly appreciated.
          Regards,
          Johan.
          

SP2 is out now also - so please try it and let me know. I am trying to use the
          JavaMail stuff also. I do not seem to be having a problem on SP2 so far.
          - Tom
          Michael Girdley wrote:
          > I understand that this is a bug that is to be fixed in service pack No. 2.
          >
          > Thanks,
          > Michael
          >
          > --
          > ----
          > Michael Girdley
          > Product Manager, WebLogic Server & Express
          > BEA Systems Inc
          >
          > johan sanden <[email protected]> wrote in message
          > news:8hipsh$dur$[email protected]..
          > > I have written a stateles session bean that should send a email using
          > > JavaMail 1.1 API. When running as it is now I receive a
          > MessagingException:
          > > "No provider for Address type: rfc822". How do I grant permission to the
          > > mail.jar and activiation.jar files so that WL get it ? Im using Windows
          > NT.
          > >
          > > Any help is greatly appreciated.
          > >
          > > Regards,
          > >
          > > Johan.
          > >
          > >
          

Similar Messages

  • Problem with Javamail in Red Hat

    Good afternoon.
    I have a problem with javamail in Red Hat.
    When i send a email in windows with my application, works well. But in Red Hat no works.
    Gives the following error:
    Java.lang.ClassCastException .... gnu.mail.handler.TextPlain
    Does anyone know that happens?

    You have much to learn. This is the wrong forum for most of it.
    You should be able to use the package manager in Linux to
    uninstall the Gnu version. Then read this:
    [http://java.sun.com/products/javamail/FAQ.html#install|http://java.sun.com/products/javamail/FAQ.html#install]

  • Problems with Javamail Attachments

    Hi,
    i've got a major problem with my application and i can't find the answer. Whenever i'm trying to send an attachment i have this error :
    javax.mail.internet.ParseException
    at javax.mail.internet.ParameterList.<init>(ParameterList.java:77)
    at javax.mail.internet.ContentDisposition.<init>(ContentDisposition.java:69)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1104)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:824)
    at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:215)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056)
    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 Send$5.run(Send.java:209)
    at java.lang.Thread.run(Thread.java:536)
    Interactive Session Ended
    My source code is :
    public class DemoSend implements ActionListener{
    public void actionPerformed(ActionEvent evt) {
    try {
    final Properties props = System.getProperties();
    props.put("mail.host", hostField.getText());
    final Session mailConnection = Session.getDefaultInstance(props, null);
    final MimeMessage msg = new MimeMessage(mailConnection);
    final Address to = new InternetAddress(toField.getText());
    final Address from = new InternetAddress(fromField.getText());
    msg.setContent(message.getText(), "text/plain");
    msg.setFrom(from);
    msg.setRecipient(Message.RecipientType.TO, to);
    msg.setSubject(subjectField.getText());
    msg.setSentDate(new java.util.Date());
    final MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(message.getText());
    final MimeBodyPart mbp2 = new MimeBodyPart();
    mbp2.setDisposition(mbp2.ATTACHMENT);
    final FileDataSource fds=new FileDataSource(FileName);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(fds.getName());
    final Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    msg.setSentDate(new Date());
    msg.setContent(mp);
    Runnable r = new Runnable() {
    public void run() {
    try {
    Transport.send(msg);
    JOptionPane.showMessageDialog(null," Your message has been sent successfuly","G T P Email Client",JOptionPane.INFORMATION_MESSAGE);
    catch (Exception e) {
    e.printStackTrace();
    JOptionPane.showMessageDialog(null," -- E r r o r -- Your message has not been sent!!!!! ","G T P Email Client",JOptionPane.INFORMATION_MESSAGE);
    Thread t = new Thread(r);
    t.start();
    message.setText("");
    catch (Exception e) {
    e.printStackTrace();
    and i define at the beggining the string FileName
    public static String FileName = new String();
    and thats for the attach button
    attachButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    if (fc == null) {
    fc = new JFileChooser();
    fc.addChoosableFileFilter(new ImageFilter());
    fc.setAcceptAllFileFilterUsed(true);
    fc.setFileView(new ImageFileView());
    fc.setAccessory(new ImagePreview(fc));
    fc.setMultiSelectionEnabled(true);
    int returnVal = fc.showDialog(Send.this,"Attach File");
    fc.getSelectedFile();
    File file = fc.getSelectedFile();
    It would be a great help if you can can help me find an answer to my problem.
    Thanks in advance.

    I tried to set a specific file for the FileChooser but again the same results.I tried without the preview classes again the same mistake.But when i tried without the JFileChooser it worked, but i must use a JFileChooser in order to choose a file to attach.I used a simple FileChooser and again the same mistakes.I don't know where the mistake is.
    I will be grateful if you can help me out,this is an emergency it is for my project and i'm desperate.
    I include the whole class.
    Thanks again and sorry for the long message.
    I hope you have some free time to help me out.
    Thanks again
    import java.awt.*;
    import javax.swing.JFileChooser.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.activation.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.util.Properties;
    public class Send extends JFrame {
         public static void main(String[] args) throws Exception{
              Send client = new Send();
              client.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              client.show();
         public static JLabel fromLabel = new JLabel("From: ");
              public static JLabel toLabel = new JLabel("To: ");
              public static JLabel hostLabel = new JLabel("SMTP Server: ");
              public static JLabel subjectLabel = new JLabel("Subject: ");
              public static JTextField fromField = new JTextField(40);
              public static JTextField toField = new JTextField(40);
              public static JTextField hostField = new JTextField(40);
              public static JTextField subjectField = new JTextField(40);
              public static JTextArea message = new JTextArea(40, 80);
              public static JScrollPane jsp = new JScrollPane(message);
         public static JButton sendButton = new JButton("Send Message");
         public static JButton clearButton = new JButton("Clear");
         public static JButton attachButton = new JButton("Attach File");
         public static JButton adbButton = new JButton("AddressBook");
         public static JFileChooser fc;
         public static String FileName = new String();
         public Send() {
              super("SMTP Send email");
              Container contentPane = this.getContentPane();
              contentPane.setLayout(new BorderLayout());
              JPanel labels = new JPanel();
              labels.setLayout(new GridLayout(4, 1));
              labels.add(hostLabel);
              JPanel fields = new JPanel();
              fields.setLayout(new GridLayout(4, 1));
              final String host = System.getProperty("mail.host", hostField.getText());
              hostField.setText(host);
              fields.add(hostField);
              final String to = System.getProperty("mail.to", toField.getText());
              labels.add(toLabel);
              fields.add(toField);
              final String from = System.getProperty("mail.from", fromField.getText());
              fromField.setText(from);
              labels.add(fromLabel);
              fields.add(fromField);
              labels.add(subjectLabel);
              fields.add(subjectField);
              Box north = Box.createHorizontalBox();
              north.add(labels);
              north.add(fields);
              north.add(attachButton);
              north.add(adbButton);
              contentPane.add(north, BorderLayout.NORTH);
              message.setFont(new Font("Arial", Font.PLAIN, 12));
              contentPane.add(jsp, BorderLayout.CENTER);
              JPanel south = new JPanel(new FlowLayout());
              south.setLayout(new FlowLayout(FlowLayout.CENTER));
              south.add(sendButton);
              south.add(clearButton);
              contentPane.add(south, BorderLayout.SOUTH);
              this.pack();
              adbButton.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             AddressBook adbook = new AddressBook();                     
              clearButton.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             fromField.setText("");
                             toField.setText("");      
                             hostField.setText("");     
                             subjectField.setText("");
                             message.setText("");
              attachButton.addActionListener(new ActionListener()
                             public void actionPerformed(ActionEvent e)
    if (fc == null) {
                             fc = new JFileChooser();
                                  fc.addChoosableFileFilter(new ImageFilter());
                                  fc.setAcceptAllFileFilterUsed(true);
                                  fc.setFileView(new ImageFileView());
                                  fc.setAccessory(new ImagePreview(fc));
                                  fc.setMultiSelectionEnabled(true);
                             int returnVal = fc.showDialog(Send.this,"Attach File");
                             File file= fc.getSelectedFile();
                             //fc.getSelectedFile();
                             /* JFileChooser fc = new JFileChooser();
                             int retval = fc.showOpenDialog(Send.this);
                        fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
                        fc.setMultiSelectionEnabled(true);
                        File file = fc.getSelectedFile();*/
              DemoSend handler = new DemoSend();
              sendButton.addActionListener(handler);
              addWindowListener(new WindowAdapter()
                        public void windowClosing (WindowEvent e)
              setSize (600, 500);
              show();
         public class DemoSend implements ActionListener{
              public void actionPerformed(ActionEvent evt) {
                   try {
                        final Properties props = new Properties();
                        props.put("mail.host", hostField.getText());
                        final Session mailConnection = Session.getDefaultInstance(props, null);
                        final MimeMessage msg = new MimeMessage(mailConnection);
                        final Address to = new InternetAddress(toField.getText());
                        final Address from = new InternetAddress(fromField.getText());
                        //msg.setContent(message.getText(), "Content-Transfer-Encoding ,base64");
                        msg.setFrom(from);
                        msg.setRecipient(Message.RecipientType.TO, to);
                        msg.setSubject(subjectField.getText());
                        msg.setSentDate(new java.util.Date());
                        final MimeBodyPart mbp1 = new MimeBodyPart();
                        final MimeBodyPart mbp2 = new MimeBodyPart();
                        mbp1.setContent("Content-Transfer-Encoding", "base64");
                        mbp1.setText(message.getText());
                        //if (!FileName.equals("")) {     
                        mbp2.setDisposition(mbp2.ATTACHMENT);
                        mbp2.setContent("Content-Transfer-Encoding", "base64");
                        final FileDataSource fds=new FileDataSource(FileName);
                        mbp2.setDataHandler(new DataHandler(fds));
                        mbp2.setFileName(fds.getName());
                        final Multipart mp = new MimeMultipart();
                        mp.addBodyPart(mbp1);
                        //if (!FileName.equals("")) {
                        mp.addBodyPart(mbp2);
                        msg.setSentDate(new Date());
                        msg.setHeader("Content-Type", "multipart/mixed");
                        msg.setContent(mp);
                        Runnable r = new Runnable() {
                             public void run() {
                                  try {
                                       Transport.send(msg);
                                       JOptionPane.showMessageDialog(null," Your message has been sent successfuly","G T P Email Client",JOptionPane.INFORMATION_MESSAGE);
                                  catch (Exception e) {
                                       e.printStackTrace();
                                       JOptionPane.showMessageDialog(null," -- E r r o r -- Your message has not been sent!!!!! ","G T P Email Client",JOptionPane.INFORMATION_MESSAGE);
                        Thread t = new Thread(r);
                        t.start();
                   catch (Exception e) {
                        e.printStackTrace();
    }

  • [SOLVED] Problem with XBMC and VA-API on sandy bridge

    Hello
    I'm running XBMC on my server with a core i3 and built in HD2000 graphics. When running without VA-API everything works fine except for some lag in heavy 1080p scenes.
    But if I turn on VA-API the video works for about 5 seconds and then the frames gets messed up. It appears as it's showing the previous frame after the current and then goes to the next and does the same thing. This happens for about a second or two and then it goes back to normal for another 5 seconds. It's bit hard to explain, but I hope you'll understand.
    Any ideas why this happens?
    Thanks
    Last edited by Lazze (2012-01-13 13:27:08)

    afaik this is a known bug in the current stable release (Dharma). You can either wait for the next stable (Eden), which will be released within the next weeks or use xbmc-git from the AUR.

  • 2 Problems with the Transit Routing API

    http://dev.virtualearth.net/REST/V1/Routes/transit?wp.0=30.267750,-97.741299&wp.1=30.267864,-97.741074&output=json&ra=routePath&timeType=Departure&maxSolns=3&key=<removed>&dateTime=04/28/2015
    1)  This results in no routes as the points are "too close" but if you do it on bing maps (website) it correctly routes you via the 801.
    2) The API document states that if you provide no time (date only as seen above) in the dateTime paramter it will use the current time.  This appears not to be true and it will default to 7 or 8 AM departure time regardless of time of day.

    Testing this on the Bing Maps website I find that it also does not provide route when using transit directions because the points are too close. An easy way to handle this from a user experience side of things is to look for this error and when it shows,
    calculate the route again using walking directions.
    As for your second point I'm unable to reproduce this. I suspect your issue is with the time zone.
    http://rbrundritt.wordpress.com

  • Problems with exe4j and 3D API

    Hi! I am trying to make an exe file from my java application with the programme exe4j, but I can not include the java 3D API into my project. Each time I execute the exe, an error file tells me this:
    Exception in thread "Thread-3" java.lang.NoClassDefFoundError: com/sun/j3d/utils/timer/J3DTimer
         at PruebaPanel.run(PruebaPanel.java:165)
         at java.lang.Thread.run(Unknown Source)
    How can I fix it?
    Thank you so much

    You need to look at the Exe4j site, this is a Java forum. If you would like to know how to do executable Jars, then this is an appropriate site and supported by Java natively.

  • Problem with JavaMail: don't work after I made it a jar

    Hi, My program works fine if I use -classpath to mail.jar and activation.jar but when I jar it i get:
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    class javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=us-ascii
    at javax.mail.Transport.send0(Transport.java:218)
    at javax.mail.Transport.send(Transport.java:80)
    please help

    What did you jar?
    The archives JavaMail consists of might contain some non-class extra information.
    unzip -l /mnt/ntfs/LANGS/java/extjars/mail.jar  |grep -v class
    Archive:  /mnt/ntfs/LANGS/java/extjars/mail.jar
      Length     Date   Time    Name
        26991  05-21-99 13:31   META-INF/MANIFEST.MF
            0  05-21-99 13:31   META-INF/
          286  05-21-99 13:31   META-INF/javamail.default.providers
           12  05-21-99 13:31   META-INF/javamail.default.address.map
         1107  05-21-99 13:31   META-INF/javamail.charset.map
          335  05-21-99 13:31   META-INF/mailcap

  • Problems with javamail

    Hello,
    I am trying to use javamail, for sending emails and I am using NetBeans as the IDE, and IIS as the webserver.
    I found a code online, from this webpage: http://www.javacommerce.com/displaypage.jsp?name=javamail.sql&id=18274
    The webserver runs fine, and the code runs fine too, but the email doesnt get sent. maybe what parameters I pass are wrong, so I am attaching my code as well.
    package emailexample;
    import
    com.sun.xml.internal.messaging.saaj.packaging.mime.MessagingExcep
    tion;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class Main {
    public static void postMail( String recipients[ ],
            String subject,
            String message ,
            String from) throws javax.mail.MessagingException
        boolean debug = false;
         //Set the host smtp address
         Properties props = new Properties();
         //props.put("mail.smtp.host", "localhost");
         props.put("mail.smtp.host", "localhost");
        // create some properties and get the default Session
        Session session = Session.getDefaultInstance(props, null);
        session.setDebug(debug);
        // create a message
        Message msg = new MimeMessage(session);
        // set the from and to address
        InternetAddress addressFrom;
            try {
                addressFrom = new InternetAddress(from);
        msg.setFrom(addressFrom);
        InternetAddress[] addressTo = new InternetAddress[recipients.length];
        for (int i = 0; i < recipients.length; i++)
            addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // 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/plain");
    Transport.send(msg);
    } catch (AddressException ex) {
    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    public static void main(String[] args) {
    try {
    postMail(new String[]{"[email protected]"},
    "testing java mail", "see it works :)",
    "[email protected]");
    } catch (javax.mail.MessagingException ex) {
    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    can someone please help?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    The JavaMail FAQ has tips for debugging, pointers to sample programs, and much more. Start there.
    In particular, a protocol trace will help us figure out what's not working.

  • Problem with concurrent request set api call

    Hi,
    Scenario...
    I have a concurrent request set that is called as follows from a plsql script....
    ** Note : I removed the cursor definition for simplicity.
    VARIABLE exit_status number
    DECLARE
    ln_request_id NUMBER := 0;
    ln_user_id apps.fnd_user.user_id%TYPE;
    ln_resp_id apps.fnd_responsibility.responsibility_id%TYPE;
    ln_app_id apps.fnd_responsibility.application_id%TYPE;
    ln_resource_id apps.jtf_rs_resources_vl.resource_id%TYPE;
    ex_errors EXCEPTION;
    lb_chk BOOLEAN;
    BEGIN
    :exit_status := 0;
    OPEN cur_appsinit;
    FETCH cur_appsinit
    INTO ln_user_id,
    -- ln_resource_id,
    ln_resp_id,
    ln_app_id;
    CLOSE cur_appsinit;
    fnd_global.apps_initialize(ln_user_id,
    ln_resp_id,
    ln_app_id);
    lb_chk := fnd_submit.set_request_set('BPSI', 'FNDRSSU1890');
    IF lb_chk = TRUE THEN
    ln_request_id := fnd_submit.submit_set(NULL, FALSE);
    IF ln_request_id = 0 THEN
    :exit_status := 1;
    fnd_file.put_line
    (fnd_file.LOG,
    TO_CHAR(SYSDATE, 'hh24:mi:ss')
    || ' : ERROR : There are Errors in the execution of the Request Set. Check the Logs of the respective Concurent Programs in the Request Set.');
    END IF;
    END IF;
    EXCEPTION
    WHEN ex_errors THEN
    :exit_status := 1;
    END;
    EXIT :exit_status
    This is script i am calling from another concurrent request.
    The concurrent request set is attached to a request group RG1 which is attached to the Resp1.
    The concurrent program which calls the above script is attached to request group RG2 and which is assigned to Resp2.
    ** Note - The apps initialize is also done to Resp1 (responsibility)
    I did all the above from system administrator responsibility.
    For execution of the above script... i changed my responsibility to Resp2 and tried to execute the concurrent program (which calls the script submitting the concurrent request set)....
    The concurrent program is completing with Completed Status....but the concurrent request set is being submitted. And the reason being the the fnd_submit.set_request_set is returning false and so not going ahead.
    To verfiy the above i checked the following query in toad....
    SELECT rs.application_id,
    rs.request_set_id,
    allow_constraints_flag,
    rs.print_together_flag,
    rs.owner,
    rs.printer,
    rs.print_style,
    cp.concurrent_program_name,
    rs.user_request_set_name
    FROM fnd_request_sets_vl rs,
    fnd_application a,
    fnd_concurrent_programs cp
    WHERE rs.application_id = a.application_id
    AND rs.request_set_name = 'FNDRSSUB1890'
    AND a.application_short_name = UPPER('BPSI')
    AND rs.start_date_active <= SYSDATE
    AND NVL(rs.end_date_active, SYSDATE) >= SYSDATE
    AND rs.concurrent_program_id = cp.concurrent_program_id(+)
    AND rs.application_id = cp.application_id(+)
    the above query is returning one row... it means the concurrent request set exists... but not able to execute it....
    Any help is highly appreciated....
    Kiran

    Hi,
    Scenario...
    I have a concurrent request set that is called as follows from a plsql script....
    ** Note : I removed the cursor definition for simplicity.
    VARIABLE exit_status number
    DECLARE
    ln_request_id NUMBER := 0;
    ln_user_id apps.fnd_user.user_id%TYPE;
    ln_resp_id apps.fnd_responsibility.responsibility_id%TYPE;
    ln_app_id apps.fnd_responsibility.application_id%TYPE;
    ln_resource_id apps.jtf_rs_resources_vl.resource_id%TYPE;
    ex_errors EXCEPTION;
    lb_chk BOOLEAN;
    BEGIN
    :exit_status := 0;
    OPEN cur_appsinit;
    FETCH cur_appsinit
    INTO ln_user_id,
    -- ln_resource_id,
    ln_resp_id,
    ln_app_id;
    CLOSE cur_appsinit;
    fnd_global.apps_initialize(ln_user_id,
    ln_resp_id,
    ln_app_id);
    lb_chk := fnd_submit.set_request_set('BPSI', 'FNDRSSU1890');
    IF lb_chk = TRUE THEN
    ln_request_id := fnd_submit.submit_set(NULL, FALSE);
    IF ln_request_id = 0 THEN
    :exit_status := 1;
    fnd_file.put_line
    (fnd_file.LOG,
    TO_CHAR(SYSDATE, 'hh24:mi:ss')
    || ' : ERROR : There are Errors in the execution of the Request Set. Check the Logs of the respective Concurent Programs in the Request Set.');
    END IF;
    END IF;
    EXCEPTION
    WHEN ex_errors THEN
    :exit_status := 1;
    END;
    EXIT :exit_status
    This is script i am calling from another concurrent request.
    The concurrent request set is attached to a request group RG1 which is attached to the Resp1.
    The concurrent program which calls the above script is attached to request group RG2 and which is assigned to Resp2.
    ** Note - The apps initialize is also done to Resp1 (responsibility)
    I did all the above from system administrator responsibility.
    For execution of the above script... i changed my responsibility to Resp2 and tried to execute the concurrent program (which calls the script submitting the concurrent request set)....
    The concurrent program is completing with Completed Status....but the concurrent request set is being submitted. And the reason being the the fnd_submit.set_request_set is returning false and so not going ahead.
    To verfiy the above i checked the following query in toad....
    SELECT rs.application_id,
    rs.request_set_id,
    allow_constraints_flag,
    rs.print_together_flag,
    rs.owner,
    rs.printer,
    rs.print_style,
    cp.concurrent_program_name,
    rs.user_request_set_name
    FROM fnd_request_sets_vl rs,
    fnd_application a,
    fnd_concurrent_programs cp
    WHERE rs.application_id = a.application_id
    AND rs.request_set_name = 'FNDRSSUB1890'
    AND a.application_short_name = UPPER('BPSI')
    AND rs.start_date_active <= SYSDATE
    AND NVL(rs.end_date_active, SYSDATE) >= SYSDATE
    AND rs.concurrent_program_id = cp.concurrent_program_id(+)
    AND rs.application_id = cp.application_id(+)
    the above query is returning one row... it means the concurrent request set exists... but not able to execute it....
    Any help is highly appreciated....
    Kiran

  • Problem with relaying in JavaMail

    Hi all,
    I am having what seems to be a common problem with people attempting to send emails using JavaMail. I always get the following error....
    class javax.mail.SendFailedException: 550 relaying mail to compuserve.com is not allowed.
    I have done some research and I understand that most ISP's will not allow relaying through their servers for spamming reasons. Some people seem to have asked this question before but never been able to get an answer. What can be done to overcome this problem??? I need to send automated emails to people buying stuff from our website. I want to do this by reading the info from a database and sending them a personalised email based on the info in the database.
    Please help,
    Bow_wow.

    You are running all your mail through Exchange on the server? Whose server is this, yours? If it is yours, then you should be able to configure it to accept relaying from the machine where you are trying to send the e-mails from. If it is somebody else's, then talk to them about accepting relaying from your IP address.

  • Problems with async callback with the BPEL Java API (Urgent- pls help)

    Hi,
    I have an async BPEL process and I invoke it form a JSP page using BPEL java API.
    I have followed the tutorials and docs at:
    $SOA_HOME/bpel\samples\tutorials\102.InvokingProcesses\rmi\com\otn\samples\async
    I can inititiate successfully the process, but when I try to get the result using getResult() or getField(String fieldName) methods I get the error:
    Oct 2, 2007 2:35:16 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    java.lang.ExceptionInInitializerError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at com.evermind.io.ClassLoaderObjectInputStream.resolveClass(ClassLoaderObjectInputStream.java:33)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
         at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:856)
         at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
         at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
         at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
         at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
         at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.util.MissingResourceException: Can't find bundle for base name com.collaxa.cube.i18n.exception_cube, locale en_US
         at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
         at com.collaxa.cube.CubeException.getResourceBundle(CubeException.java:142)
         at com.collaxa.cube.CubeException.<clinit>(CubeException.java:82)
         ... 17 more
    07/10/02 14:35:16 java.lang.ClassCastException: java.util.MissingResourceException
    07/10/02 14:35:16      at com.oracle.bpel.client.delivery.ext.async.thread.AsyncInstanceWatchdog.run(AsyncInstanceWatchdog.java:152)
    I check for the result only after I have checked that the instance is closed (completed or faulted) by using IInstanceHandle:getState() and InstanceHandle.STATE_CLOSED_COMPLETED, or IInstanceHandle.STATE_CLOSED_FAULTED
    I would like to add that so far I had no problems with invocation and geting result of sync BPEL processes. I do not what is missing for async processes.
    Any kind of help is appreciable.
    Thanks and best regards,
    Evanela

    Hi again,
    i managed to solve the problem:) Totally stupid.. the process variable name was not specified correctly..., but more stupid sounds the error message:))))
    Best Regards,
    Evanela

  • Problems with Direct Entitlement API ( problems to download the issuenumbers and others)

    Hi there.
    Here we are using the last version of Direct Entitlement API , we had download on this url : http://www.adobe.com/devnet/digitalpublishingsuite/articles/direct-entitlement-starter-kit .html
    But We are getting some problems
    With https://dev01.cartacapital.com.br/adobe/api/entitlements.php?authToken=0fc82ad9b9c11703ad5 c8dee47d7ee26&appVersion=1.3.1&appId=468573252
    This api is modificated to show only the issuenumbers that I have the right to read.
    I'm getting this results
    <result httpResponseCode="200">
    <entitlements>
    <productId>com.editoraconfianca.revistacartacapital.edicao753</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao754</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao755</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao756</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao757</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao758</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao759</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao760</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao761</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao762</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao763</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao764</productId>
    </entitlements>
    </result>
    That's ok
    But on my Ipad ( for testing only) , show this entitlement on a first place, on top of my screen.
    1) Why does the app is showing others  entitlements too, like ( com.editoraconfianca.revistacartacapital.edicao752, 751 ...  ) ?
    2) When I try to download all the result in  my xml , is not allowed to donwload, but the ( com.editoraconfianca.revistacartacapital.edicao752, 751 ...  ) is allowed to download
    When I verify if I can download the issue ( https://dev01.cartacapital.com.br/adobe/api/verifyEntitlement.php?authToken=0fc82ad9b9c117 03ad5c8dee47d7ee26&appId=com.editoraconfianca.revistacartacapital&productId=com.editoracon fianca.revistacartacapital.edicao753&appVersion=1.0.34 )
    show this result
    <result httpResponseCode="200">
    <entitled>true</entitled>
    </result>
    But I can't do the download.
    Help Please.

    There is no license or serial number for the DVD installer.
    If you can get access to a Mac with a working DVD Drive, make the DVD into a .dmg file in Disk Utility and then copy the .dmg file onto a USB key and install onto your Mac from that.
    Peter

  • Problems with environments and transactional mode in the Python API

    Hello everyone,
    I have been having problems with the Python API, and I wonder if anyone can comment? I am using DB XML version 2.2.13, with python 2.3 (RedHat linux WS 4.0) and python 2.4 (SuSE 10.1) with identical results. I started with a simple example:
    #!/usr/bin/python
    """XPath example from http://www.w3schools.com/xpath/default.asp
    ported to DbXML
    from bsddb3.db import *
    from dbxml import *
    books = """<?xml version="1.0" encoding="ISO-8859-1"?>
    <bookstore>
      [xml data omitted for brevity]
    </bookstore>"""
    if __name__ == "__main__":
        conFlags = DB_CREATE | DB_NOMMAP
        myMgr = XmlManager()
        myMgr.setDefaultContainerFlags(conFlags)
        myMgr.setDefaultContainerType( XmlContainer.NodeContainer)
        uc = myMgr.createUpdateContext()
        container = myMgr.createContainer("books.dbxml")
        container.putDocument("books.xml", books, uc)So far, so good - this works, and creates a container books.dbxml that I can open and query. Next, I try to instantiate the XmlManager using an environment:
    if __name__ == "__main__":
        envFlags = DB_CREATE | DB_PRIVATE
        conFlags = DB_CREATE | DB_EXCL | DB_NOMMAP
        myEnv = DBEnv()
        myEnv.open("/home/pkeller/dbxml_tests", envFlags, 0)
        myMgr = XmlManager(myEnv, DBXML_ADOPT_DBENV)
        myMgr.setDefaultContainerFlags(conFlags)
        myMgr.setDefaultContainerType( XmlContainer.NodeContainer)
        uc = myMgr.createUpdateContext()
        container = myMgr.createContainer("books.dbxml")
        container.putDocument("books.xml", books, uc)This fails with the following output:
    Traceback (most recent call last):
      File "w3school_xpath_c2.py", line 60, in ?
        container = myMgr.createContainer("books.dbxml")
      File "/scratch_bernoulli/pkeller/dbxml/install/lib/python2.3/site-packages/dbxml.py", line 125, in createContainer
        def createContainer(*args): return dbxml.XmlManagercreateContainer(*args)
    RuntimeError: Error: Invalid argument
    Segmentation faultA bit odd - I can't find anything in the docs about the required arguments to XmlManager.createContainer being different if an environment has been used explicitly.
    Anyway, I persevered (my aim being to use transactional mode in Python). Changing the environment and container flags like so:
        envFlags = DB_CREATE  | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_PRIVATE
        conFlags = DB_CREATE  | DB_EXCL | DBXML_TRANSACTIONAL | DB_NOMMAPThis change allowed the script to run, outputting the single classic line:
    Segmentation fault(the C++ API docs at http://www.sleepycat.com/xmldocs/gsg_xml/cxx/transaction.html#initializetransaction are incorrect by the way - there is no flag DB_TRANSACTIONAL).
    In spite of the segfault, the file "books.dbxml" was produced and could be queried by another application. A transaction log file "log.0000000001" was also written (10485760 bytes long).
    Running this last example again with "python -v" showed that the segfault was being produced during the python's cleanup phase:
    # clear __builtin__._
    # clear sys.path
    # clear sys.argv
    # clear sys.ps1
    # clear sys.ps2
    # clear sys.exitfunc
    # clear sys.exc_type
    # clear sys.exc_value
    # clear sys.exc_traceback
    # clear sys.last_type
    # clear sys.last_value
    # clear sys.last_traceback
    # clear sys.path_hooks
    # clear sys.path_importer_cache
    # clear sys.meta_path
    # restore sys.stdin
    # restore sys.stdout
    # restore sys.stderr
    # cleanup __main__
    Segmentation faultCan anyone clarify what is going on? I had been hoping to deploy DB XML as an alternative to something more admin-heavy, but with this behaviour that would be hard to justify. A dirty exit from Python means that no-one will consider trusting their data to this engine (or am I doing something wrong?).
    Regards,
    Peter.

    Peter,
    Your first failure -- invalid argument -- was due to an invalid combination of
    flags to DBEnv.open(). Along with DB_CREATE you need at least DB_INIT_MPOOL.
    As you can see, it worked once you added more flags.
    The second, cleanup problem (segmentation fault) is the result of out of order
    destruction of objects. This is fixed in the next release (later this year), but
    you can work around it by ensuring that your XmlContainer and XmlManager
    objects are deleted/cleaned up before the DBEnv object.
    Python will cleanup in reverse order of creation, unless you perform explicit
    deletions, which is also fine (e.g. del container, del myMgr).
    Explicit deletion is always safe.
    Regards,
    George

  • Problem with too small page size using Java 2D Printing API.

    Hello,
    I have problem with resolution of printer using Java 2D Printing API. Despite my printer has 600 x 600 DPI, inside java.awt.print.Printable.print(Graphics, PageFormat, int) I receive page format with 600 x 840 page size.
    I have tried to set resolution using javax.print.attribute.PrintRequestAttributeSetand javax.print.attribute.standard.PrinterResolution, but with no result.
    Can anybody solve this problem?
    Regards,
    Karl.

    600 x 840 is a Point value; Point is defined as 1/72nd of an inch. Printers do have much higher DPI than this, but I believe that this DPI has to do with richness of the printed image, not an actual ability to color with that level of resolution. You might want to try calling zoom on your Graphics2D object. Otherwise, I don't know what else you can try.

  • Cisco Prime 2.1 problem with API/Client

    Hi,
    im having a problem with the API output i get from Cisco Prime Infrastructure. The URL im trying to GET info from is:
    https://<URL>/webacs/api/v1/data/Clients
    The output shows that im missing data from a specific ID. Example:
    {"@url":"https:\/\/prime.lmv.lm.se\/webacs\/api\/v1\/data\/Clients\/1280389614","@type":"Clients","$":"1280389614"}
    Then i try to GET the info regarding this ID: https://<URL>/webacs/api/v1/data/Clients/1280389614
    {"errorDocument":{"httpResponseCode":500,"httpMethod":"GET","message":"No such entity as Clients \/ 1280389614.-PRS-101","id":"presentation.PRS-101","uriPath":"data\/Clients\/1280389614","queryParams":"{}"}}
    So something is wrong here, so when i add ".full=true" parameter i get the following error as it cannot show the client data:
    https://<URL>/webacs/api/v1/data/Clients.json?.full=true&.firstResult=1000&.maxResults=1000
    {"errorDocument":{"httpResponseCode":500,"httpMethod":"GET","message":"Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'; nested exception is org.hibernate.HibernateException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'","exception":"org.springframework.orm.hibernate3.HibernateSystemException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'; nested exception is org.hibernate.HibernateException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'","uriPath":"data\/Clients","queryParams":"{.full=[true], .firstResult=[1000], .maxResults=[1000]}"}}
    Any idea how to solve this issue, how can i find the client that is causing this problem? In my script im reading all the clients in the network to a third party application. But right now its hard to get this output in a smart way. It might be resolved in 2.2, but it feels like the data i corrupt in some way so i doubt that this error is related to the version?
    Best Regards // Mattias Andersson

    Hi,
    I have also run into this problem on two different Prime 2.1-systems when trying to get all Client-data available. I haven't figured out a way to fix it more than making small calls (.maxResults=100) then trying to pin-point and skip the ID giving the error. I've been using 2.2 for a while now but haven't tested the Client-API that much yet. I'll experiment some more on it and see if I can recreate the problem to see if it's related to the version.

Maybe you are looking for