Forms 10 and PL/SQL: Using a server package variable

Hi,
I have a variable created at package level in the server,
When I try to assign its value to a Forms item, I get an error.
"Unable to access distant package variable".
What should I do to access this variable?
Many thanks

Hello,
Add to the package a procedure to set this variable, and also a function that returns the variable content.
Francois

Similar Messages

  • Having problem to install Oracle Portal Forms Reports and Discoverer 11g on Windows Server 2008 64 bit

    Dear All Precious Friends,
    I am having problem while installing Oracle Portal Forms Reports and Discoverer 11g on Windows Server 2008 64 bit,
    I have already installed Oracle Database 11g Release 2 -------
    ----Then i configured JAVA Access bridge
    --------then installed and configured Required Schema using Repository Creation Utility of same version of Database 11g,
    -----------then installed Oracle Business Intelligence 11g version 11.1.1.6.0 which includes Web logic..............I am feeling that i did right at this point...........
    ..............also feeling comfortable after install Oracle Identity and Access Management 11g ..................
    -----------------but don't know how to configure OID to install Oracle Portal Forms Reports and Discoverer 11g...............
    Please help my Oracle Friends
    Your early help will be highly appreciated.
    thanks and regards
    Hassan

    You said, "...+I would like to install Release 2(11.1.1.2.0)+ ...". Be careful. 11.1.1.2.0 is not Release 2. The version for Rel 2 is 11.1.2.0, notice that there is one less "1". Also, there is no way to patch from Release 1 to Release 2.
    In EDelivery, this is what you should find if you search on "Oracle Fusion Middleware" for "Microsoft Windows x64 (64-bit)":
    First look for this link then drill into it:
    Oracle Fusion Middleware 11g Media Pack for Microsoft Windows x64 (64-bit)
    In this section you will find the following:
    This is the full product installation of FMw 11 Release 2 (Forms & Reports)
    Oracle Forms and Reports 11g R2 (11.1.2.0.0) for Microsoft Windows x64 (64-bit) V28761-01
    This is the full product installation of FMw 11 Release 1 (includes Portal, Forms, Reports, and Disco)
    Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 1 of 4) V18785-01
    Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 2 of 4)
    Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 3 of 4)
    Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 4 of 4)
    This is the FMw 11 Release 1 patch set that will bring the above 11.1.1.2.0 installation to 11.1.1.6.  This is NOT a full product installation - just a patch
    Oracle Portal, Forms, Reports and Discoverer 11g Patch Set 5 (11.1.1.6.0) for Microsoft Windows x86 (64-bit) V29850-01
    There are no patch sets for Release 2 as of yet.

  • How to send mail in PL/SQL using exchange server details.

    Hi Experts,
    Business user has provided us the exchange server details to send mails.How can I send mails thru PL/SQL using exchange server details.

    user595740 wrote:
    Business user has provided us the exchange server details to send mails.How can I send mails thru PL/SQL using exchange server details.Basic answer - not easily.
    Oracle supports the standard application protocol SMTP - it does not support a proprietary protocol like that used by Exchange that only works on the Windows operating system. It however provides you with the flexibility to code this yourself.
    If you for example use Microsoft MAPI (Mail Application Programming Interface), you can integrate it with PL/SQL using the external procedure (extproc) feature of Oracle.
    In a nutshell, extproc enables you to create PL/SQL wrappers for public DLL calls. I posted sample code that demonstrates this in {message:id=2271919}. The sample code is for calling a DLL interface on HP-UX, but the concept is identical on Windows.

  • How to deploy Forms, Reports and Menu from Client to Server machine

    Dear Experts,
    I have one requirement to deploy the Forms, Reports and Menu from client machine to server machine.
    Deployment involves the following steps :
    1. Firstly we have to search the selected file in a folder where the .fmx is present ( in Server machine) and take the back up of the the existing file in the server (Source and destination paths will be available).
         Ex. If the existing FMB name is TEST.fmx then the backup file should be TEST_sysdate.fmx.
    2. Secondly we have to transfer the file from the client folder (or from another folder of the same server) to the server folder where the back up exists.
    Please help me to search/rename/copy/replace the _.fmx/.rdf/.rep/.mmx_ files from client to server.
    We are using
    9i Database.
    10g Forms and reports.
    SQL Developer tool.
    OS is Windows (Client and Server).
    Help me out to attach a file of front end screen which we are planning to develop. It will give a clear picture on this requirement.
    Thanks :)
    Edited by: 941175 on Jun 17, 2012 9:09 AM
    Edited by: 941175 on Jun 17, 2012 9:12 AM
    Edited by: 941175 on Jun 17, 2012 9:14 AM

    941175
    Welcome to the forum. Please take a while to go through the FAQ to be found to the top right of the page.
    Your issue is more to do with batch files rather than Forms. The only relation with Forms, as I see it, is that you will be using HOST/CLIENT_HOST to start a batch file with the file name to be deployed as a parameter passed to it.
    You need to rewrite either a CMD batch file or a Powershell script to achieve what have set out to do.
    For CMD batch files look up http://www.robvanderwoude.com/battech.php , or any of the other excellent resources available on the internet.
    Regards,

  • Failed to search the log and log repository using Application Server Contro

    I installed the OAS 9.0.4(10g) and tried to use Application Sever Control to search the log files or log repository. However, each time I clicked the Search button, the error page showed the following messages:The operation cannot be performed because the page contains expired data. The data will be automatically refreshed so you can try your operation again.
    I checked the emias.log and something like following existed:
    ERROR chart.EmChartCacheWorker getCachedChart.505 - EmChartCacheWorker.getCachedChart: 4abdc63146b7578d9853d1adc2aec4245fbf113b.png
    EXCEPTION: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
    2004-09-14 11:27:37,414 [HttpRequestHandler-24691856] ERROR chart.EmChartBean getChartImage.2662 - ERROR generating chart image: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
    2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2655 - EXCEPTION while generating chart image [id]: 030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png
    2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2658 - java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png.png (No such file or directory)
    I searched the directory specified in the emias.log and found it was empty!
    So what should I do to avoid this problem?
    Thanks in advance!

    Thank you.
    When you fire the processes to the report server you
    can trace the report with the following parameter:
    RWCLIENT.EXE SERVER=my_server
    TRACEFILE=c:\my_trace.trc
    TRACEMODE=TRACE_REPLACE
    TRACEOPTS=TRACE_ALL

  • Pros and cons of using email sending package in oracle 8.1.6

    hi ,
    i would like to know the advantages /disadvantages of using email sending package from oracle 8.1.6
    compared to sending the same using say perl or php.
    iam developing a site in php/oracle8.1.6 , in which iam supposed to create a payement module.whenever a user
    register(for free trial or subscribing the site) i'll have to send him a welcoming mail.In addition to this iam also supposed to find out wether subscribers are paying cash at right time and if not send them reminder mails and other for related scenarios . i can do the same in Perl or PHP.but if iam not gaining much(say based on server performance or load) then i think i can go ahead with oracle package. when i tested it i found that its slow . what about the load that it may cause for the server (ours is linux ).
    please do give inputs on this

    Hi Ravi,
    Thanks for your reply.
    But I am specifically looking at pros and cons for web services. So the thread which you passed to me won't help.
    Regards
    Nitin.

  • Creating data and .par files using SWIFT Integration Package

    Hi,
    I have a requirement to generate a data and .par file using SAP PI Integration package for SWIFT.
    I am following the SAP Note: 1303428.
    I have created 1 sender and 2 receiver comm channels(one for payload and other for par). Used operation mapping SWIFT_payload_parFile_split in the Interface determination.
    I am using the adapter module : localejbs/swift/FileActConversionToSWIFTModule and setting the parameter DetachParameters to true. This adapter module is being used in all the three channels(1 sender and 2 receivers).
    I have used ASMA ans has set the FileName checkbox.
    Now after placing the file in the input directory, the file with the same name gets created in the output directory but the file is exactly same and also no .par file is getting created. I have set the Empty file handling to Ignore, so it shows that there is no data to  create a .par file and only payload file is getting created but the payload file is exactly same.
    Also if I use the adapter module : localejbs/swift/FileActConversionToSWIFTModule in only the sender communication channel, a payload file gets created like below.
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns1:SWIFT_payload xmlns:ns1="http://sap.com/xi/SWIFT"><payload>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPEZpbGU+CiA8UGFyYW1ldGVycyB4bWxucz0idXJuOnN3aWZ0OnNhZzp4c2Q6ZnRhLnBhcmFtLjEuMCIgeG1sbnM6eHNpP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gICAgPC9DZHRyPgogICAgIDxDZHRyQWNjdD4KICAgICAgPElkPgogICAgICAgPElCQU4+TkwxMjAwMzA0NTY3ODkxMjAwMDA8L0lCQU4+CiAgICAgIDwvSWQ+CiAgICAgIDxDY3k+RVVSPC9DY3k+CiAgICAgIDxObT5BTFhOIE5MIERvbWVzdGljIFZlbmRvcjwvTm0+CiAgICAgPC9DZHRyQWNjdD4KICAgICA8Um10SW5mPgogICAgICA8VXN0cmQ+L1BNREQvVEVTVDY4MSw1OTAuMDAsRVVSLDIwMTQwMzI8L1VzdHJkPgogICAgIDwvUm10SW5mPgogICAgPC9DZHRUcmZUeEluZj4KICAgPC9QbXRJbmY+CiAgPC9Dc3RtckNkdFRyZkluaXRuPgogPC9Eb2N1bWVudD4KPC9GaWxlPgo=</payload></ns1:SWIFT_payload>
    But while creating the par file, it shows that the file could not be overwritten and so the .par file is not getting created.
    I need to understand that:
    1)  How do I configure both of my receiver channels i.e. what should be the difference. Currently, I am just setting the
    same Output directory in both and file name schema * and has used ASMA with FileName parameter. So same name files are getting created and so one file gets discarded. How to create a .par file.
    2) Also Is the file above is the correct file required by SWIFT.
    3) Also when I check in SXMB_MONI, I can see that after running the adapter module same payload as given above is going in both payload and par files i.e. also if I am using different names in my receiver communication channels two files are getting created payload and par both are having the same payload. So what exactly should get created.
    Kindly guide on this implementation.

    Hi,
    I am able to generate the .par file by setting the localsecurity to true and the KeyId from the key manager.
    Now two files are getting created .xml and .par. .xml file which is the payload file is the same as the input file with no difference and contains both the overrides and the data parameters. The .par file contains the Algorithm and the Value.
    Is this correct?
    Also suppose the input file name is SEPA.xml, then the payload file is created with the name as
    SEPA.xml and the par file is created with the name SEPA.xml.par. I need only SEPA.par. How to achieve this.

  • HCM Process and Forms - Create and End record using the same form scenario

    Hi All,
    I have the following requirement while using HCM Processes and Forms: Using one form/scenario I need to both create a record or be able to end a record for infotype 841. When looking at the back-end service SAP_PA I have operations Create, Change, Change without delimiting and Delete. My requirement would be to do both a create and a delete I guess, but these two can't be selected at the same time while configuring the form scenario.
    I was thinking about doing somethign with the startdate and enddate instead of using the effective date. But I have no clue how to do that.
    How would this be possible?
    Thanks,
    J

    You are correct in assuming that you cannot have a create and delete on the same infotype. The config will not allow it.  Instead, configure the create and then do the delete via a call to you own method in the workflow or via the advanced generic service
    Cheers
    Ian

  • Essbase and MS-SQL on same server

    My organization is attemtping to consolidate servers, and to that end we would like to run MS-SQL 2000 as well as Essbase Analytic Server and Essbase Admin Server on the same Win2000 server.Does anyone know of any problems with this setup -- beyond the fact that data access will be decreased depending on number of users who connect to either SQL or Essbase? I'm specifically wondering about the effects that mySQL and tomcat will have on MS-SQL. Thanks.

    The only issue I can think of is the one you alluded to - the more stuff you have installed on one box the less resources you can allocate to each of these servers.If you plan to just do development with this box, its not really a big deal but if you will have lots of heavy usage on Essbase and SQL Server, you don't want them fighting for resources and disk space.I run Essbase, SQL Server and EAS (with MySql) on my laptop and they all work fine - there are no issues with them running on the same box aside from having to share a limited pool of resources.Regards,Jade-----------------------------------Jade ColeSenior BI ConsultantClarity [email protected]

  • Drawing for text and string fails using X server(xsun) xlib

    Hi all,
    I have sparc system and Iam using xsun on solaris 10 and ps -ef | grep
    -i xsun gives this:
    /usr/openwin/bin/Xsun :0 nkeyboard nmouse -dev vfb -dev vfb screen 0
    1028x102
    Now I am trying to use XDrawString and XDrawText for simple one
    character drawing but to no avail as these calls don't generate
    anything. All line generation and bitmap are rendered correctly on the
    virtual frame buffer to generate a tiff file.
    The same set of calls are working great on sun 2.6.
    What can be the problem? I can't seem to find any solution to that?
    ////////////////////// These calls fail completely returnig
    0 ////////////////////////////////////
    CR_CHAR Temp[2];
    Temp[1] = 0;
    Temp[0] = textString;
    int rt = XDrawString(_CRDisplay, *pagePixmap, CRGC, xPos, yPos, Temp,
    1);
    XTextItem item;
    item.chars = Temp;
    item.nchars = 1;
    item.delta = 0;
    item.font = 0;
    int rt = XDrawText(_CRDisplay, *pagePixmap, CRGC, xPos, yPos, &item,
    1);
    Regards,
    RUI

    Partial Solution Found
    I used the method below to boot single-user from GRUB.
    <URL:http://docs.sun.com/app/docs/doc/817-1985/>
    Solaris 10 System Administrator Collection >>
    System Administration Guide: Basic Administration >>
    11. x86: GRUB Based Booting (Tasks) >>
    x86: Booting a System in the GRUB Based Boot Environment >>
    x86: How to Boot a System to Run Level S (Single-User Level)
    Now I can login as root in single-user level.
    I installed NVIDIA-Solaris-x86-169.12.run driver file successfully.
    I used the /usr/X11/bin/xorgconfig command to create a basic xorg.conf
    file. After reboot it locked up when I tried to start the graphics login.
    From what I have read I need to use kdmconfig to change from Xsun
    server to Xorg server but when I try to run the command kdmconfig I
    get the message kdmconfig not found.
    New Questions:
    1. Where is kdmconfig located and how do I start kdmconfig?
    2. Is there some other method to change from Xsun server to Xorg server?
    3. In single-user level what command do I use to startx?
    Thanks in advance,
    Ken

  • ClassCastException, and we *are* using "-Djbo.server.in_oc4j=true "

    Hi,
    We have several applications using the same BC4J objects running on the same AppSer (Oracle9iAS Containers for J2EE 9.0.2.0.0, running on Ibm AIX 4.3.3).
    Each time we deploy a specific application, all OTHER applications get ClassCastExceptions, like
    "java.lang.ClassCastException: <myPackage>.<myTable>ViewRowImpl"
    We DO start OC4J with the -Djbo.server.in_oc4j=true option.
    Any ideas?
    Regards,
    Jaime Conejo/ Martijn Hinten

    Hi,
    I already tried this, but the getClass() method reports exactly the class as I am expecting! To be more precise:
    I am executing the following code:
    ApplicationModule am;
    ViewObject vo;
    VCboLookupArtFeViewRow titelRow; // This is an interface, which is implemented by
    // VCboLookupArtFeViewRowImpl
    vo = am.findViewObject("VCboLookupArtFeView");
    Sytem.out.println("rowtype:"+vo.first().getClass()); // (1)
    titelRow = (VCboLookupArtFeViewRow) = vo.first(); // (2)
    Now, at line (1) the console reports that the object type is is 'com.centraalboekhuis.cbonline.model.VCboLookupArtFeViewRowImpl'. Note this is the "impl" class that implements my VCboLookupArtFeViewRow-interface. I am not casting to the "impl" class, as the Bc4j manual tells me I should use the interface instead (which makes sense). So, I am casting to an interface reference type, which my class implements. Should work.
    However at line (2) the following ClassCastException is thrown (see below). It tells me my object is not a VCboLookupArtFeViewRowImpl. But I now it is, as my debug statement tells me it is. Again, I am casting to an interface type, but VCboLookupArtFeViewRowImpl implements this interface type, so this should work. As a proof that it indeed works I can demonstrate that when I deploy my application all works fine, but when another project member deploys his application, my application fails with the ominous ClassCastException.
    So, what is happening here?
    java.lang.ClassCastException: com.centraalboekhuis.cbonline.model.VCboLookupArtFeViewRowImpl     at com.centraalboekhuis.cbonline.bestellen.ModelGetBestelTitelDetails.perform(ModelGetBestelTitelDetails.java:55)     at com.cumquatit.j2ee.controller.web.HttpController.doAction(HttpController.java:139)     at com.centraalboekhuis.cbonline.CBOnline.doAction(CBOnline.java:124)     at com.cumquatit.j2ee.controller.web.HttpController.doPost(HttpController.java:163)     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java(Compiled Code))
    Thanks

  • FF change single quotes in query string for their url-encode form (%27) and I need use single quotes (I don't care about derivated security problems)

    When I try to enter a url like:
    www.example.com?owner=alex's
    the actual URL the FF send is:
    www.example.com?owner=alex%27s
    I need the first option and I don't know hoy to configure it. Could you help me?

    I think that RFC1738 is outdated and you should look at RFC3986 section 2.2:<br>
    "URI producing applications should percent-encode data octets that correspond to characters in the reserved set unless these characters are specifically allowed by the URI scheme to represent data in that component. If a reserved character is found in a URI component and no delimiting role is known for that character, then it must be interpreted as representing the data octet corresponding to that character's encoding in US-ASCII".<br><br>
    I think that in this case there is no special delimiting role or "reserved purpose" for the character to allow the unencoded use. So I think that the behaviour of Firefox is correct.<br>
    http://www.rfc-editor.org/rfc/rfc3986.txt<br>

  • Notes missing form iPad and iPhone when using iCoud

    Using iCoud i find my notes disappearing from both my iPhone and my iPad. What has gone wrong?

    Hi...
    On both your iPhone and iPad tap Settings > iCloud
    Switch Notes off then back on then restart the devices.
    Restart your device: Hold the power button until "slide to power off" appears.  Slide to power off.  After it is off, press the power button to turn it back on.

  • How to create dll file and jar files in oracle forms ? and how to use in oracle forms?

    pls teach me....

    Your question is more related to batch programming.
    From what I understand, you want to add 100 [ :o ] jars to the classpath to execution and you probably don't want to write all the names in the batch file. There's a simple way of adding jars by running a loop. The code should look like the following:
    dir /b "%LIBDIR%\*.jar" > temp.tmp
    FOR /F %%I IN (temp.tmp) DO SET CLASSPATH=%CLASSPATH%;"%LIB_DIR%\%%I"
    del temp.tmp

  • Multipart/form-data and file attachment

    Hi ,
    This question has probably been asked before, but if not then here it is. Any replies will be appreciated:
    Q. When using "Enctype=Multipart/form-data", with file attachment alongwith other form fields, is it mandatory to attach a file ? What if user selects no file to attach?
    Q. If no, then how can it be possible that a form can be submitted without attaching a file since when I try to submit a form with no file attached to it, it gives me error message saying :java.lang.NullPointerException
    Q. Does it mean that I can't have a form with a blank "File" input field, if the form's Enctype is "multipart/form-data"? Since users may not select a file to attach to the form, in other words it is an optional.
    I hope I was clear enough in explaining my questions.
    Thanks in advance.

    I am using Orielly's file attachement pacakge.
    Here's what I am doing in my JSP page: It does the following:
    int maxFileSize = 10 * 1024 * 1024; // 5MB max
    String uploadDir = "/direct/files/upload/";
    String FormResults = "";
    String FileResults = "";
    String fileName = "";
    String fileName2 = "";
    String paramName="";
    String paramValue="";     
    File f;
    int filecounter=1;
    first get the form fields using following code:
    MultipartRequest multi = new MultipartRequest(request, uploadDir, maxFileSize);
    Enumeration params = multi.getParameterNames();
    //Get the form information
    while (params.hasMoreElements())
         paramName = (String) params.nextElement();     
         paramValue = multi.getParameter(paramName);
         if (paramName.equals("emailconfirm"))
              emailconfirmation = paramValue;
         else if (paramName.equals("Requester"))
              Requester = paramValue;
         else if (paramName.equals("TodaysDate"))
              TodaysDate = paramValue;
         else if (paramName.equals("Extension"))
    }//end while
    Then it gets the file information using the following code: I have two file fields in my form so that's why I am using a filecounter to find out if user has attached two files or just one:
    Enumeration files = multi.getFileNames();
    while (files.hasMoreElements())
         String formName = (String) files.nextElement();
         if (filecounter == 2)
    fileName2 = multi.getFilesystemName(formName);
         String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
         FileResults += "<BR>" + formName + "=" + fileName2 + ": Type= " + fileType + ":
    Size= " + f.length();
         else
         {     fileName = multi.getFilesystemName(formName);
              String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
              FileResults += "<BR>" + formName + "=" + fileName + ": Type= " + fileType + ":
    Size= " + f.length();
         filecounter=filecounter+1;
    Then after composing the mail message I send email with the form fields and file attachments using following code:
    Properties props = new Properties();
    MimeBodyPart mbp1 = new MimeBodyPart();
    MimeBodyPart mbp2 = new MimeBodyPart();
    MimeBodyPart mbp3 = new MimeBodyPart();
    URLDecoder urlDecoder = new URLDecoder();
    String to1 = urlDecoder.decode(toemail);
    String from1 = urlDecoder.decode(fromemail);
    String cc1 = urlDecoder.decode(ccemail);
    props.put( "mail.host", host );
    Session session1 = Session.getDefaultInstance(props, null);
    // Construct the message
    Message msg = new MimeMessage( session1 );
    msg.setFrom( new InternetAddress( from1 ) );
    msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to1, false ) );
    msg.setRecipients( Message.RecipientType.CC, InternetAddress.parse( cc1, false ) );
    msg.setSubject( subject );
    msg.setHeader( "X-Mailer", "ExceptionErrorMail" );
    msg.setSentDate( new Date() );
    mbp1.setText(mail_message);
    mbp1.setContent(mail_message, "text/html");
    // Send the email message
    FileDataSource fds = new FileDataSource(uploadDir + fileName);
    FileDataSource fds2 = new FileDataSource(uploadDir + fileName2);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp3.setDataHandler(new DataHandler(fds2));
    mbp2.setFileName(fileName);
    mbp3.setFileName(fileName2);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    mp.addBodyPart(mbp3);
    msg.setContent(mp);
    Transport.send( msg );
    //email sent...
    //delete the two files from the server..
    File f2 =new File(uploadDir + fileName);
    f2.delete();
    File f3 =new File(uploadDir + fileName2);
    f3.delete();     
    //End of code
    So when I don't attach a file and submit my form , I get the error message that I mentioned in my previous post.
    Any more ideas?

Maybe you are looking for