Access controlled while caputuring sound exception

Hello

I'm getting "net.rim.device.api.system.ControlledAccessException" when I am tring to capture audio on the device, here is my code

try {             // Create a Player that captures live audio. _player = Manager.createPlayer("capture://audio");                        _player.realize();                      // Get the RecordControl, set the record stream,            _rcontrol = (RecordControl) _player.getControl("RecordControl");            //Create a ByteArrayOutputStream to capture the audio stream.            _output = new ByteArrayOutputStream();            _rcontrol.setRecordStream(_output);            _rcontrol.startRecord();            _player.start();                           } catch (final Exception e) {              UiApplication.getUiApplication().invokeAndWait(new Runnable() {                public void run() {                    Dialog.inform("Erroe : "+e.toString());                }            });        }

I'm tesing my request on 4.6.1 JDE blackberry 8900 curve.

Thank you

Not exactly is not possible... But you can push the screen application permissions so that the user can define allow them... Look at the ApplicationPermissions class...

See you soon...

Tags: BlackBerry Developers

Similar Questions

  • Access controlled in the debugger exception

    I get a ControlledAccessException in the debugger, but not in the simulator when it is running normally.

    public class clickmailscreen extends screen implements {FieldChangeListener}
           
    Reviews [ServiceRecord];
           
    HorizontalFieldManager Nachman = new HorizontalFieldManager();
    public static String leader;
    Attachment = new EditField EditField ("attachment:", file);
    Arrow bitmap = Bitmap.getBitmapResource("com/clickmail/res/login_arrow.png");
    VMan VerticalFieldManager = new VerticalFieldManager();
    CustomLabelField titleLabel.
    String FromName;
    Player;
           
    From LabelField = new LabelField ("of :"); ")
           
    EmailAddressEditField emailAddress = new EmailAddressEditField ("to:", "");
    Subject of EditField = new EditField ("object :","");
    EditField body = new EditField("","");
    XYEdges padding = new XYEdges (15, 15, 15, 15);

    At the border roundedBorder = BorderFactory.createRoundedBorder (padding,
    Color.BLACK, Border.STYLE_SOLID);
    ButtonField sending is new ButtonField ("send", ButtonField.CONSUME_CLICK);.
    ButtonField attach = new ButtonField ("set", ButtonField.CONSUME_CLICK);

    public ClickMailScreen() {}
    getAccount();
    final String txt = "to:"+ fromName;»
    UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
    public void run() {}
    from.setText (txt);
    }
    });
                     
    body.setBorder (roundedBorder);
           
    send.setChangeListener (this);
    attach.setChangeListener (this);
    vMan.add (new CustomLabelField ("Click on Mail" Color.WHITE, Color.BLACK, arrow, USE_ALL_WIDTH));
    vMan.add (from);
    vMan.add (emailAddress);
    vMan.add (subject);
    vMan.add (attachment);
    vMan.add (new SeparatorField());
    hMan.add (send);
    hMan.add (attach);
    vMan.add (body);
    vMan.add (can);
    Add (vMan);
           
    }
           
    public void getAccount() {}
    Full book book = ServiceBook.getSB ();
    reviews = book.findRecordsByCid("CMIME");
    If (records! = null)
    {
    for (int i = 0; i)< records.length;="">
    {
    ServiceRecord record = records [i];
    String name = record.getName ();
    type int = record.getType ();
    Dim description As String = record.getDescription ();
    Check to see if you want to use this account. If Yes...
    ServiceConfiguration config = new ServiceConfiguration (record);
    EmailSession session = Session.getDefaultInstance (config);
    fromName = emailSession.getServiceConfiguration () .getEmailAddress () m:System.NET.SocketAddress.ToString ();
                     
    }
    }
    }
           
    public void sendMail() {}
    Several multipart part = new Multipart();
    Message NewMsg = new Message();
    data Byte [] = readFile();
                           
    SupportedAttachmentPart attach = new SupportedAttachmentPart (multipart,
    "application/x-example", files, data);
    multipart.addBodyPart (attach);
    try {}
    Beneficiary address [] = null;
    recipient [0] = new Address (emailAddress.getText (), null);
    newMsg.addRecipients (Message.RecipientType.TO, container);
    newMsg.setSubject (subject.getText ());
                                   
    newMsg.setContent (body.getText ());
    newMsg.setContent (multipart);
    Transport.Send (newMsg);
    }
    catch (MessagingException e)
    {
    Generative TODO catch block
    e.printStackTrace ();
    }
           
    }
                   
    private static ubyte [] readFile() {}
    String fName = file;
    data Byte [] = null;
    FileConnection fconn = null;
    DataInputStream is = null;
    try {}
    fconn = (FileConnection) Connector.open (fName, Connector.READ_WRITE);
    is = fconn.openDataInputStream ();
    data = IOUtilities.streamToBytes (is);
    } catch (IOException e) {}
    System.out.println (e.getMessage ());
    } {Finally
    try {}
    If (null! = is)
                    
    is. Close();
    If (null! = fconn)
    fconn. Close();
    } catch (IOException e) {}
    System.out.println (e.getMessage ());
    }
    }
    return data;
    }
                   
    protected void makeMenu (menu Menu, for example int) {}
    super.makeMenu (menu, for example);
    menu. Add (new MenuItem ("attachment", 10, 10) {})
    public void run() {}
    Fix fix = new Attach();
    attach.pickFile ();
    String dittos = attach.getFile ();
    If (dittos is nothing)
    {
    Dialog.Alert ("screen was rejected. No file has been selected. ») ;
    }
    on the other
    {
    Dialog.Alert ("selected file:" + file);
    file = dittos;
    attachment.setText (file);
    }
    }
    });
                  
    }
           
    public void keystroke() {}
    try {}
    InputStream is = getClass () .getResourceAsStream ("keystroke.wav");
    Create an instance of the reader of the InputStream
    Player is Manager.createPlayer (that is, "audio/wav");.
    Player.Start ();
    } catch (IOException e) {}
    System.out.println ("error creating player");
    } catch (MediaException e) {}
    System.out.println ("error media type");
    }
    }
           
    {} protected Boolean keyChar (character char, int status, int time)
    Keystroke();
    Return super.keyChar (character, status, time);
    }

    ' Public Sub fieldChanged (field field, int context) {}
    if(Field == Send) {}
    sendMail();
    }
    if(Field == Attach) {}
    }
    }
     class Tie extends PopupScreen {}

    public

    LabelField label = new LabelField();

    String _currentPath; The current path;

    String [] _extensions; Extensions of files to filter.

    ObjectListField _olf; The fields of lists and directories.

    public Attach() {}

    ce (null,null);

    }

    public Attach (String startPath, String [] extensions) {}

    Super (new DialogFieldManager());

    _Extensions = extensions;

    prepScreen (startPath);

    }

    public void pickFile() {}

    UiApplication.getUiApplication () .pushModalScreen (this);

    }

    public String getFile() {}

    Return _currentPath;

    }

    private void prepScreen (String path) {}

    DFM DialogFieldManager = (DialogFieldManager) getDelegate ();

    dfm.setIcon (new BitmapField (Bitmap.getPredefinedBitmap (Bitmap.QUESTION)));

    dfm.setMessage (new RichTextField ("Select a file"));

    _olf = new ObjectListField();

    dfm.addCustomField (_olf);

    updateList (path);

    }

    private Vector readFiles (String path) {}

    Enumeration fileEnum;

    Vector filesVector = new Vector();

    _currentPath = path;

    if (path is Nothing) {//Read the file system root.

    fileEnum = FileSystemRegistry.listRoots ();

    while (fileEnum.hasMoreElements ()) {

    filesVector.addElement ((Object) fileEnum.nextElement ());

    }

    }else{}

    Read the files and directories for the current path.

    Try

    {

    FileConnection fc = (FileConnection) Connector.open ("file:///" + path);

    fileEnum = fc.list ();

    String currentFile;

    while (fileEnum.hasMoreElements ())

    {

    Use the file extension filter, if there is one.

    if (_extensions is Nothing)

    {

    filesVector.addElement ((Object) fileEnum.nextElement ());

    }

    on the other

    {

    currentFile = ((String) fileEnum.nextElement ());

    if (currentFile.lastIndexOf('/') is

    (currentFile.length () - 1))

    {

    Add all the directories.

    filesVector.addElement ((Object) currentFile);

    }

    on the other

    {

    It is a file. Check if its

    extension matches the filter.

    for (int count = _extensions.length - 1;)

    count > = 0; -count)

    {

    if (currentFile.indexOf (_extensions [count])! = - 1).

    {

    There was a game, add the file and

    stop a loop.

    filesVector.addElement ((Object)

    currentFile);

    Break;

    }

    }

    }

    }

    }

    }

    catch (Exception ex)

    {

    Dialog.Alert ("Unable to open folder." + ex.toString ());

    }

    }

    Return filesVector;

    }

    private void doSelection() {}

    Determine the current path.

    String path = buildPath();

    if (path is Nothing)

    {

    Just to refresh the screen if you have selected a directory.

    updateList (path);

    }

    else if (! thePath.equals("*?*"))

    {

    Just to refresh the screen if you have selected a directory.

    A second check is needed here to avoid

    a NullPointerException.

    updateList (path);

    }

    on the other

    {

    The user has selected a file.

    Close the form.

    this. close();

    }

    }

    private Sub updateList (String path) {}

    Read all files and directories in the path.

    List of vector files = readFiles (path);

    Create a table of the vector.

    Object [] fileArray = vectorToArray (fileList);

    Update the field with the new files.

    _olf. Set (fileArray);

    }

    private String buildPath() {}

    String newPath = (String) _olf.get (_olf, _olf.getSelectedIndex ());

    if (newPath.equals(".."))

    {

    Go up a directory.

    Remove the trailing ' / ';.

    newPath = _currentPath.substring (0, _currentPath.length () - 2);

    Delete everything after the last ' / ' (the current directory).

    If a ' / ' is not found, the user open it

    file system roots.

    Returns the value null because of the screen show the

    file system roots.

    int lastSlash = newPath.lastIndexOf('/');

    if (lastSlash == - 1).

    {

    newPath = null;

    }

    else {

    newPath = newPath.substring (0, lastSlash + 1);

    }

    }

    else if (newPath.lastIndexOf('/') is (newPath.length () - 1))

    {

    If the path ends by /, a directory has been selected.

    The prefix of the _currentPath if it is not null (not in the)

    Root directory).

    if (_currentPath! = null)

    {

    newPath = _currentPath + newPath;

    }

    }

    else {

    A file has been selected.

    _currentPath += newPath;

    Return *? * to stop the process of editing screen.

    newPath = ' *? * » ;

    }

    return newPath;

    }

    private Object [] vectorToArray (Vector filesVector) {}

    int filesCount = filesVector.size ();

    int dotIncrementor;

    Object [] files.

    If not in the root, add ".." to the top of the table.

    if (_currentPath is Nothing)

    {

    dotIncrementor = 0;

    files = new Object [(filesCount)];

    }else{}

    dotIncrementor = 1;

    files = new Object [(filesCount + dotIncrementor)];

    Add... on top to return to a directory.

    the files [0] = (Object)("..");

    }

    for (int count = 0; count< filescount;="">

    {

    Files [count + dotIncrementor] = (Object) filesVector.elementAt (count);

    }

    return files;

    }

    Manage trackball clicks.

    protected Boolean navigationClick (int status, int time)

    {

    doSelection();

    return true;

    }

    protected keyChar Boolean (char c, int status, int time)

    {

    Close this screen if the exhaust is selected.

    if (c is Characters.ESCAPE)

    {

    _currentPath = null;

    this. close();

    return true;

    }

    else if (c is Characters.ENTER)

    {

    doSelection();

    return true;

    }

    return Super.keyChar (c, status, time);

    }

    }

    Any ideas?

    I certify that the Installer fixed this problem of cleaning. It was strange to see this error on the sim card.

  • access control exception

    Hi guys,.

    I read system/samples/photos pictures and show off in my application to the user. It works on the Simulator, but not on the device. When I try to open InputStream I get access controlled by exception. My application is signed. How to read? I saw that they are locked before with extension png.rem. Is it possible to read. Thank you

    Best regards

    yosoh.

    Take a look at the details of the exception, especially the stack trace. I suspect that your claim is refused permission to read files on the local file system.

    PS also, I remember that someone mentioned in this forum only images and built-in ringtones are not directly readable. Maybe it's the case...

  • Error "could not open the access control editor, access is denied" while accessing the C: drive

    Hello

    I use Home Basic to Windows 7, I saw two drive C: / and R. /. by mistake I changed security optional properties of the discs now I can

    to access only a: .my c: drive / drive does not open when I open drive c properties, then on security and it continue display "cannot open the access control editor, access is denied.any another application do not open I can not even able to restore it, please help step by step"

    thanx

    Original title: in the c drive security permissions

    Hi Ravindra,

    Thanks for posting your question on the Forum of the Microsoft community.

    Permissions are rules associated with objects on a computer or network, such as files and folders. Permissions determine whether you can access an object and what you can do with him. For example, you might have access to a document in a shared folder on a network. Also, refer to:

    What to know before applying permissions to a file or folder

    According to your error message. I would like you try these steps and check if the problem persists.

    Steps for the reader:
     
    a. click on the drive, click Propertiesand then click the Security tab.
    b. click Advancedand then click the owner tab.
    c. click change, and then do one of the following:
    (d) to change the owner to a user or group that is not listed, click other users and groups and enter the object name to select (examples), type the name of the user or group and then click OK.
    e. to change the owner to a user or a group is listed in the change of ownership of the area, click the new owner.
    f. If you want to take ownership of the contents of the disc, select the Replace owner of subcontainers and objects of the box.
    g. click OKand then click Yes when you receive the following message appears: you are not allowed to read the contents of directory folder name. Do you want to replace the the directory permissions with permissions granting you full control?
    h. all permissions will be replaced if you click Yes.
    i. click OK.

    Check if the problem persists.

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • iPhone stuck in mode headphones, no sound except the ringtone, but work helmets.

    Hi, my iPhone has recently stuck in headphone mode, there is no sound except for my ringtone.

    I checked my alert tones, of course the ringtone works, but no other alerts does sounds.

    I put the earphones, they still work. After these tests, it shows my speaker is not damaged, nor is it my output port headphones

    Things I've tried:

      • reset it
      • sucked on each port, while covering others (read in the forums)
      • Blow-dried ports
      • He telephoned and kept switching between the speakerphone and the phone
      • clean the helmet and speaker holes
      • After cleaning I sucked again

    He is now sitting in rice, to see if there is moisture in there.

    I know there are plenty of these kinds of questions here, but I have tried literally everything suggests now and nothing has changed.

    Wanted to see if anyone had any new advice before considering to Vodafone or Apple.

    Thanks in advance!

    ! FIXED!

    He was sitting in rice for about 20 minutes, had not fixed so I turned it rebooted and now its fine. Summer has little moisture there somewhere.

  • rundll32exe error when tryng to access control panel

    How and where can I find a free solution for rundll\32\exe error message while tryng to access control panel

    Hello

    (1) what is the operating system that you use on the computer?
    (2) have you made changes on the computer?
    (3) what is the accurate and complete error message you get?
    Follow these methods.
    Method 1: Follow the steps in the article.
    Note: You will need a Windows XP CD to perform this operation.
     
    Cannot find the Rundll32.exe file when you open Control Panel

    http://support.Microsoft.com/kb/812340

    Method 2: Run the analysis of file system (CFS) auditor to repair corrupted files.

    http://support.Microsoft.com/kb/310747

    Note: You will need a Windows XP CD to perform this operation.
    I hope this helps!
  • my taskbar disappears and I can't close properly. Cannot access control panel

    Hi please can help you.

    If I leave the computer for a while, the screen freezes.

    I can't stop the computer correctly in the start menu, but have to do it from the Tower

    by pressing the button until the orange indicator light appears. Instead of going to start, log off etc.

    I can't access control panel either, but everything else seems to work very well.

    Also, the taskbar disappears.

    Help, please.   best regards and thank you joan

    Hi joanmorgan


    Method 1:

    You can check if you have found errors in the case where the Viewer, and if you find one, let us know the details. Check out the link for more details below:
    http://support.Microsoft.com/kb/308427

    Method 2:
    You can even perform the clean boot on the Windows XP computer and check if you can identify the application that is causing problems in the clean boot state. To perform the clean boot follow step 1, mentioned in the article, below, and then try again checking in this state of boot -

    http://support.Microsoft.com/kb/310353

    If the issue is resolved check what non-Microsoft service or program is at the origin of the problem. referring to article and following the other steps.
    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    a. Click Start, type msconfig.exe in the start search box and press ENTER.
    If you are prompted for an administrator password or for confirmation, type your password, or click on continue.

    b. on the general tab, click the Normal startup option and then click OK.

    c. When you are prompted to restart the computer, click on restart.

    I hope this helps.

  • Lockout C drive. Cannot change the permissions, cannot not disable the user account control, unable to open the access control editor, cannot change the property.

    While trying to change the folder permissions for a second user on my computer, I did something that I lock my C drive.

    When I log in with the administrator account, I get the following popup:

    C:\Windows\System32\SystemPropertiesComputerName.exe
    Windows cannot access the specified device, path or file. You can not have the appropriate permissions to access the item.

    I am not able to access denied drive from C to all 'access '.

    When I right click on the C drive and select Properties > Security tab > go on, said the popup "cannot open the access control editor. Access is denied. »

    When you select Properties > Security tab > advanced > owner tab > continue, current owner says "unable to display current owner. Can not change, cannot be changed.

    I can't turn off user account control, nothing happens when I click the icon or the text.

    I was able to create the 'hidden' administrator account, but I can't do anything from there, either.

    Any suggestions?

    Hello

    Recovery disk will not help you perform the upgrade on the spot. I suggest to organise a Windows Vista DVD and try to perform the upgrade in-place.

  • Access control for iSCSI

    Hi all

    I have two EqualLogic PS6500E. On volumes of, created under the access control list , I applied and restriction of IP address to allow only the beach of 192.168.1. *.

    Since a few days under connections , I noticed traffic/connections from other IP addresses (not high-end 192.168.1. *) actually configured on the servers of access to this volume.

    Any ideas how is this possible?

    Thanks in advance

    Sébastien

    Sorry, I wanted to add.  Run the Remote Setup Wizard and select the option "Configure MPIO".  That will list all subnets available on this server.  Exclude everything except the iSCSI subnet.

    Kind regards

  • Directory MSDS access control error

    I'm trying to grant access to a directory phone users Jabber video and I get the following error.

    Unable to communicate with the  Provisioning Extension. See log (log-web.txt) for details. 

    Journal - web.txt

    23:15:29,641 [9] WARN  ASP.tandberg_tms_ui_phonebook_phonebooksetonuser_ascx - POST http://localhost:8788/pb/phonebooks/id/7a187c51-5da2-40a7-a214-27c4ae871ea1/acls failed: The remote server returned an error: (500) Internal Server Error.

    I confirmed and even updated the user used in TMSPE settings, while the health check out all green.

    Any ideas before I open a TAC case, thank you.

    Hi Patrick.

    It's a bug :) it happens when you change access control. For example, you grant access to a group, then clear, then re-enable a re.

    The only solution is to recreate the phonebook. Delete it and recreate it. It will be fixed in the next version, I think.

    / Magnus

    Sent by Cisco Support technique iPhone App

  • fine-grained access control

    Hello

    I use under version

    Connected to Oracle Database 11g Express Edition Release 11.2.0.2.0

    I'm learning the fine access control

    SQL > connect / as sysdba

    connected.

    SQL > grant execute on dbms_rls to george;


    Grant succeeded

    _______________________________________

    Related: GEORGE

    I created under function

    SQL > CREATE OR REPLACE FUNCTION SECURITY_FN1)

    2 P_OBJ_SCHEMA IN VARCHAR2,

    3 P_OBJ_NAME IN VARCHAR2)

    4

    5 RETURN VARCHAR2

    6 EAST

    7. START

    8 IF USE = "PLSQL1" THEN

    RETURN ID < 4' 9 ';

    10. OTHER

    11 BACK ";

    12 END IF;

    13 END;

    14.

    While I try to run the pl/sql block, he's throwing error.

    BEGIN

    DBMS_RLS. () ADD_POLICY

    OBJECT_SCHEMA = > "GEORGE."

    Object_name = > "SPROCKETS."

    POLICY_NAME = > "POLICY1."

    FUNCTION_SCHEMA = > "GEORGE."

    POLICY_FUNCTION = > 'SECURITY_FN1 ',.

    STATEMENT_TYPES = > "SELECT."

    UPDATE_CHECK = > FALSE);

    END;

    ORA-00439: feature not enabled: fine-grained access control

    ORA-06512: at "SYS." DBMS_RLS", line 20

    ORA-06512: at line 3 level

    What causes the error, I gave george grant option option.

    Please help me

    Thank you

    Hello

    I think that you don't have this option available in this doc (VPD)

    See

    Options and features not included

    http://docs.Oracle.com/CD/E17781_01/license.112/e18068/TOC.htm#XELIC117

    also here http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_rls.htm#ARPLS052 you can see that it is the only luxury of EE edition.

    The DBMS_RLS package contains the administrative interface of access control to end grain, which is used to implement the private virtual database (DPV). DBMS_RLS is only available with the Enterprise edition.

  • Console Bus service 12 c - cannot display/change access control strategy

    Using Weblogic 12.1.3 + FMW 12.1.3

    So I exported / imported all our existing material FMW GR 11, 1 objects in a new field of 12 c FMW.   Everything works - except that I can't click on the link for "transportation access control.  Contextual text says "connected to the role is not allowed to display/change access control strategies.

    In EM, the Application role 'MiddlewareAdministrators' shows the administrators as a member group.    Proxies that 11 g used the default "of the Everyone group" fail like proxies that can visit based on roles.

    Even if I create a new proxy, I'm stuck using the access of Transport control link.

    So I added the permission to my account, and the Transport link is available.  So I removed this policy and then added the authorization for the role of MiddlewareAdministrators, and it works

    Looks like I click on the 'OK' button the first time.

    But this seems to indicate a lack of permissions when fmw 12.1.3 is installed directly.  Since we are upgraded to 11g, I don't know if this authorization is also absent in 12.1.1 and 12.1.2

    I have

  • Report of HSS access control

    Gurus,
    Access control in HSS report gives a good report in PDF format. Is there a way we can have the report generated in XLS format. Export in XLS or something like that?
    I was not able to find it again. Any guidance / suggestion would be great.

    also.

    When I do a LCM of SHARED SERVICES under FOUNDATION, in the export for supply, the ROLE_ID looks like:
    Native://DN=CN=hub:2, OU is HUB, OU = roles, dc = css, dc = hyperion, dc = com? ROLE
    Native://DN=CN=HAVA:0ad72262 - 0000-0f5a-000000ea5598b293, HAVA OU =, OU = roles, dc = dc = hyperion, dc = com, css? ROLE

    How do know us what role a user is provisioned while watching something like that? HAVA is to R and A, and HUB for shared services, but what kind of role?

    Thank you

    You can create a report of implementation of the HSS.

    Administration-> commissioning report view

    You can then select the Application. This provides an option to export to the csv file.

    Concerning

    Celvin

    http://www.orahyplabs.com

  • The workflow access control

    We need to change the information of access control in workflow designer while making a copy of the oracle workflow seeded existing?

    Thank you
    KK

    Possibly :)

    To copy a type of one element to another process, then your access level must match the element type of the target. If you copy the same item type, you may need to change your access level so that you can paste the new version in the item type.

    Whatever it is, once you have copied the process, then you will probably need to change your access level so that you can change the process.

    HTH,

    Matt

    Published by: rukbat July 4, 2011 13:26

  • ORA-24247: network access denied by access control list (ACL)

    I use the function UTL_MAIL to send an attachment using PL/SQL. When I run the code, I get an error message. Why this is happening and how I can fix it. It was working before.

    I'm running on a DB v. 11.1.0.7
    SQL> @c:\report_usc2_test.sql
    DECLARE
    *
    ERROR at line 1:
    ORA-24247: network access denied by access control list (ACL)
    ORA-06512: at "SYS.UTL_TCP", line 17
    ORA-06512: at "SYS.UTL_TCP", line 246
    ORA-06512: at "SYS.UTL_SMTP", line 115
    ORA-06512: at "SYS.UTL_SMTP", line 138
    ORA-06512: at "SYS.UTL_MAIL", line 386
    ORA-06512: at "SYS.UTL_MAIL", line 631
    ORA-06512: at line 23
    Here is my code:
    DECLARE
       fhandle                       UTL_FILE.file_type;
       vtextout                      VARCHAR2 (32000);
       text                          VARCHAR2 (32000);
       v_message                     VARCHAR2 (2000);
       v_output_file_path            VARCHAR2 (200);
    
     /* Open the output file in Read mode */
    BEGIN
       fhandle := UTL_FILE.fopen ('/appl/custom', 'REPORT_USC2.txt', 'r');
       LOOP
          BEGIN
             UTL_FILE.get_line (fhandle, vtextout);
             text := text || vtextout || UTL_TCP.crlf;
       EXCEPTION
             WHEN NO_DATA_FOUND  THEN
                EXIT;
          END;
       END LOOP;
       UTL_FILE.fclose (fhandle);
    
        /*Calling UTL_MAIL.send_attach_varchar2 to send the output as Email attachment */
       UTL_MAIL.send_attach_varchar2
       (
         sender          => '[email protected]',
         recipients      => '[email protected]',
         subject         => 'Report Created - USC2',
         MESSAGE         => 'A Report for USC2 has been generated.  Please do not reply or respond to this e-mail, as it has been automatically generated.',
         attachment      => text,
         att_inline      => FALSE,
         att_filename    => 'REPORT_USC2.txt'
        );
    END;
    /
    oerr ora 24247
    24247, 00000, "network access denied by access control list (ACL)"
    // *Cause:    No access control list (ACL) has been assigned to the target
    //            host or the privilege necessary to access the target host has not
    //            been granted to the user in the access control list.
    // *Action:   Ensure that an access control list (ACL) has been assigned to
    //            the target host and the privilege necessary to access the target
    //            host has been granted to the user.
    

    I don't see anywhere in your code when you add a user to the ACL...

    You can read about this feature of security here
    http://www.Oracle.com/technology/pub/articles/Oracle-database-11g-top-features/11g-security.html

    "UTL_TCP/HTTP/SMTP access control lists.

Maybe you are looking for