Recording Audio in SunWTK2.5 Getting Error ..........

Hi Every body,
I would like to Record Audio in Sun WTK2.5, i wrote code like below
public class SaveCapturedAudioMIDlet extends MIDlet implements CommandListener{
// the display items
private Display display = null;
private Alert alert = null;
private Command exitCommand = null;
// players and controls
private Player capturePlayer = null;
private RecordControl rControl = null;
private Player playbackPlayer = null;
String test = System.getProperty("fileconn.dir.photos").toString();
String url = test.substring(0, test.lastIndexOf('/')-6)+"sound/record/";
private boolean error = false;
public SaveCapturedAudioMIDlet() {
// create the display
display = Display.getDisplay(this);
alert = new Alert("Message");
alert.setTimeout(Alert.FOREVER);
alert.setString("Capturing for 10 seconds. Say something intelligent!");
exitCommand = new Command("Exit", Command.EXIT, 1);
alert.addCommand(exitCommand);
alert.setCommandListener(this);
try {
// create the capture player
capturePlayer = Manager.createPlayer("capture://audio");
if (capturePlayer != null) {
t;white-space: pre;">
// if created, realize it
capturePlayer.realize();
// and grab the RecordControl
rControl = (RecordControl)capturePlayer.getControl(
"RecordControl");
// set the alert as the current item
display.setCurrent(alert);
// if it is null throw exception
if(rControl == null) throw new Exception("No RecordControl available");
// and set the destination for this captured data
rControl.setRecordLocation(url+"test1.wav");
} else {
throw new Exception("Capture Audio Player is not available");
} catch(Exception e) {
error(e);
public void startApp() {
if(error) return;
try {
// first start the corresponding recording player
capturePlayer.start();
// and then start the RecordControl
rControl.startRecord();
// now record for 60 seconds
// Thread.sleep(10000);
Thread.sleep(10000);
// stop recording after time is up
rControl.stopRecord();
// commit the recording
rControl.commit();
// stop the Player instance
capturePlayer.stop();
// and close it to release the microphone
capturePlayer.close();
playbackPlayer = Manager.createPlayer(url+"test1.wav");
playbackPlayer.start();
} catch(Exception e) {
error(e);
public void pauseApp() {
public void destroyApp(boolean unconditional) {
if(capturePlayer != null) capturePlayer.close();
if(playbackPlayer != null) playbackPlayer.close();
public void commandAction(Command cmd, Displayable disp) {
if(cmd == exitCommand) {
destroyApp(true);
notifyDestroyed();
// general purpose error method, displays on screen as well to output
private void error(Exception e) {
alert.setString(e.getMessage());
alert.setTitle("Error");
display.setCurrent(alert);
e.printStackTrace();
error = true;
and i signed midlet using SUN WTK2.5 utilities and i run project " Run via OTA" and i successfully istalled the application and when run the application i got the exception like below:::
" java.lang.SecurityException: Application not authorized to access the restricted API "
Can any one Help out to resolve this problem
Thanks in Advance,,,,

private RecordControl rControl = null;
rControl.setRecordLocation(url+"test1.wav");
//...... i got the exception like below:::
" java.lang.SecurityException: Application not authorized to access the restricted API "
...Did you *set permissions required for setRecordLocation* ?
If needed, [click here|http://java.sun.com/javame/reference/apis/jsr135/jsr135_rp.html] for details on MIDP/MMAPI security permissions for audio recording (capture).
Instructions on how to set these [permissions in Wireless Toolkit|http://i44.tinypic.com/24e5i5j.jpg] are provided in documentation (section +6.1 Permissions+ in WTK 2.5.1 User Guide ).

Similar Messages

  • HT203164 while burning audio cd keep getting error code 4265 what is the problem

    Trying to burn a audio cd on itunes keep getting error code 4265 please help

    Oh man it looks like a problem with the web server.
    Its an error that happens on SAP, even my dad reported an error like this to me but i wasn't able to solve it.
    What i find is that its an error with browser incompatibility,
    Check this http://scn.sap.com/message/10338540

  • Download Helper, even with paid converter upgrade, gives "Invalid Capture File" errors and will not record audio, with "File Creation Error - Unable to rename/copy audio file" Error.

    Download Helper Screen Capture worked to capture video if the default "no audio" option is active. But, no audio. The "speakers" or "microphone" audio options are confusing....the audio to be captured is from the video, so what do you choose? With either "speakers" or "microphone" selected, the captured file has poor audio and no video. Re-capture efforts (speakers) get "Invalid capture file error" and "File Creation error- Unable to rename/copy audio file"
    The paid upgrade of "Converter" doesn't work.
    Instructive documentation - not very good.
    Suggestions - Need time delay between initiation of "Record" and starting the video to be recorded.
    Could use timer tracking of the record process.
    Are there operating system limitations? (Have Windows XP Pro)

    That is an issue for the developer of that Download Helper.

  • Recording audio can't get rid of fuz in background please help

    so i have had my macpro for about 3 months i have been making hiphop songs flat out. my vocals have always been crystal clear im just using the inbuilt mic but yesterday i got a usb plug for my guitar i stuffed around playing guitar on gb for a few hours than i went back to finish one of my rap songs now wen i went to rcord my vocals there is like a fuz in the background it sounds so bad i cant even use it i have tried changing recording levels but it just wont go back to the quality it was before. i am really stuck and need an answer has anyone else had this problem i cant do anything until its sorted. thanks guys

    jaronfromscarborough wrote:
    its still doesnt make sence y its picking up more background noise s as well as the fuz. and y wasnt the fan working earlyer it just seems like it happened after running my guitar through garageband.
    the fan is designed to ramp up and down based on how hot the computer is running. so if you just used the computer for work that ramped up the CPU, it would be running hotter and the fan would kick in. once the computer cools off, it throttles down.
    jaronfromscarborough wrote:
    im just a bit worried i dont want to go out and spend the money on new equipment for it not to work. is this problem common? thanks for your help so far mattimattmatt
    understood! it's understandably frustrating that you buy a computer only to learn you have to buy MORE STUFF! just to do what you bought the computer for. the thing is, the built in microphone isn't really designed for music. it's like a phone microphone - useful for its tasks, but not something you'd expect to get a good recording through.
    while it's frustrating to encounter the need to buy more stuff, on the other hand, when you realize you have a studio in your computer more sophisticated in some ways than what the Beatles were using, and all you have to buy is a microphone and maybe an interface... overall, it's still not a bad deal!
    if all you need is a better microphone, you could buy a USB mic which isn't much and plugs directly into the USB port of the computer:
    http://www.sweetwater.com/c981--USB_Microphones
    here are some audio interfaces (you'd need to buy a mic separately, but you'd plug the mic and the guitar into the interface to get the sound into the computer, with the result that both would record in higher quality):
    http://www.sweetwater.com/c695--USB_Audio_Interfaces/popular
    (note that if you bought an interface, you would NOT buy a USB mic, since the interface would have the USB (or firewire) connection to the computer. you'd buy a standard mic, plug it into the interface, and plug the interface into the computer).
    here's a new-ish combo USB mic, guitar interface that's pretty good:
    http://www.apogeedigital.com/products/one.php
    Also, please understand, while what I'm saying about the fan kicking in when you run the computer, and the value of using an external microphone and/or interface is true, since I'm not actually where you are, checking out your computer setup, there's no way for me to tell 100% what's going on. if you are happy with what you were doing, and suddenly started getting distortion, there's always the remote possibility that it's something else. what i'm suggesting is only the likely culprit from having encountered this before!
    Finally, to understand how computer-based recording works, while the computer is the heart of your studio, and a contemporary computer has a lot of components stuffed into it out of the gate, for professional results, it's really just the start! A pro computer-based studio can use interfaces, microphones, and other outboard gear that can quickly run into the thousands of dollars, and then add some more zeroes!
    good luck!

  • Why am i getting error -43 after mix down on audio recording?

    why am i getting error -43 after mix down on audio recording?

    to where are you trying to mix down the file? a -43 is a file not found error

  • My shuffle ,doesnt get syncronized with itunes in my pc,getting audio and video settings error,but able to get it syncronized with my friends pc

    my shuffle ,doesnt get syncronized with itunes in my pc,getting audio and video settings error,but able to get it syncronized with my friends pc    

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Getting error msg while inserting a record

    HI
    Am getting error msg while am inserting a new record. Am unable to view the data that i inserted in to database. If any one can help in sorting of the problem plz help. I used the following code in Application Module(AM) and Controller(CO)
    processRequest()
    -- am.invokeMethod("insertmethod");
    processFormRequest()
    -- if(pageContext.getParameter("Create")!=null)
    -- am.invokeMethod("savemethod");
    In AM Code
    public void insertmethod()
    EOVOImpl vo=getEOVO1();
    if(!vo.isPreparedForExecution())
    {    vo.executeQuery(); }
    Row ro=vo.createRow();
    vo.insertRow(ro);
    ro.setNewRowState(Row.STATUS_INITIALIZED);
    public void savemethod()
    {   OADBTransaction oa=getOADBTransaction();
    oa.commit(); }
    Error
    Attribute SummaryFlag in kiInsertAM.kiInsertEOVO1 is required

    Hi,
    Either on the form you don't have SummaryFlag field or you forgot to map VO attribute i.e. SummaryFlag to that field.
    If you don't have SummaryFlag field on form then you need to set it programatically before committing record.
    Please check and let us know.
    Regards,
    Mukesh Uchaniya

  • Bearts Audio Control Pannel will not open. Get error message cannot find startup file

    Bearts Audio Control Pannel will not open. Get error message cannot find startup file!
    Downloaded and instaled up-date for IDT audio from driver up-date. After installation could no longer oppen Beats Audio Control Pannel.  Looked for download to re-install BEATS Audio but cannot find one.
    Any suggestions.
    Sound works with IDT driver installed.
    Pavilion P7-1500Z

    Hi,
    Try using Recovery Manager to reinstall the IDT HD Audio Driver ( this will also reinstall the Beats Audio interface ) - the procedure for using recovery manager to reinstall Software and Drivers is detailed in the document on the link below.
    Recovery Manager - Windows 8.
    Recovery Manager - Windows 7
    After the reinstallation has completed, restart the PC.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • HT1338 Im trying to watch a film downloaded from Bit Lord, I'm getting 'Error Dolby AC3 Audio". Player does not recognize the audio in this video, how do I fix this?

    Im trying to watch a film downloaded from Bit Lord, I'm getting 'Error Dolby AC3 Audio". Player does not recognize the audio in this video, how do I fix this?

    Download VLC and try playing the video...
    http://www.videolan.org

  • Records was deleted at R/3 sys - getting error while loading the data

    Hi All,
    we are extracting the data from 2LIS_12_VCITM, 2LIS_11_VASCL, 2LIS_11_V_ITM, 2LIS_13_VDITM and 2LIS_11_VAITM into Cube RSD_C03. But one record (Sales Order) was deleted at R/3 system so we getting the error message that Caller 09 contains an error message while loading the data from 2LIS_12_VCITM.
    we have replicate the DataSource and activate Trans rules but no use still getting the same error.
    when we execute the data source  2LIS_12_VCITM at RSA3 with update mode as D (Transfer of the deltas since the last request)getting error message that Errors occurred during the extraction
    and we are getting the zero records at RSA3 for the 2LIS_12_VCITM as update mode as F (Transfer of all requested data)
    And getting shot dump that TSV_TNEW_PAGE_ALLOC_FAILED at BW side.
    Could you kindly suggest me any one how to rectify this error.
    Thanks in Advance,
    Shaliny. M

    hai Lilly
    I activated myself source system  and replicate the my datasource .
    Then activate the update rules for ODS , InfoCube and InfoCube .
    Then i tried to load the data into InfoCube from ODs .
    Again im getting same problem .
    why it is like that
    pls tell me
    rizwan

  • Getting error when record type is used

    Hi Experts,
    Getting error when using record type as in parameter.
    PLS-00306: wrong number or types of arguments in call to 'SAL_UPDATE_PROC'
    PLS-00302: component 'ENAME' must be declared
    PLS-00302: component 'SAL' must be declared
    CREATE OR REPLACE PACKAGE emp_details_proc
    IS
    TYPE emp_record IS RECORD
    (empno emp.empno%TYPE,
    ename emp.ename%TYPE,
    sal emp.sal%TYPE);
    TYPE emp_type is TABLE OF emp_record INDEX BY binary_integer;
    PROCEDURE EMP_PROC;
      PROCEDURE sal_update_PROC
      (    p_rule in  emp_type
         , p_deptno in number
         , p_job in number
    END;
    CREATE OR REPLACE PACKAGE BODY emp_details_proc
    IS
    PROCEDURE EMP_PROC
      IS
        V_DEPTNO NUMBER := 10;
        V_JOB VARCHAR2(20):='CLERK';
      BEGIN
    for rc in (SELECT EMPNO,ENAME,SAL FROM emp where deptno =v_deptno)
             loop
                  sal_update_PROC
                  (  p_rule => rc
                    , p_deptno => V_DEPTNO
                    , p_job =>V_JOB
      end loop;
    EXCEPTION
         WHEN OTHERS THEN
    DBMS_output.put_line(SQLERRM);
    END;
      PROCEDURE  sal_update_PROC
      (    p_rule in  emp_type
         , p_deptno in number
         , p_job in number
      IS
        V_ename VARCHAR2(20);
        V_SAL NUMBER;
      BEGIN
          V_ename := p_rule.ename;
          V_sal := p_rule.sal;
            IF V_sal <=3000 THEN
            UPDATE EMP SET sal=sal+v_sal*10 WHERE ename=v_ename;
            commit;
          END IF;
    dbms_output.put_line(v_ename||'   '||v_sal);      
          END;
          END;
    Instead of this
    SELECT EMPNO,ENAME,SAL FROM emp where deptno =v_deptno;
      PROCEDURE  sal_update_PROC
      (    p_rule in  emp_type
         , p_deptno in number
         , p_job in number
    If I use
    SELECT * FROM emp where deptno =v_deptno
      PROCEDURE  sal_update_PROC
      (    p_rule in  emp%ROWTYPE
         , p_deptno in number
         , p_job in number
      I am not getting any error.
      Please help me.Why I am getting error what is wrong in my code.
      Thanks in advance.

    for rc in (SELECT EMPNO,ENAME,SAL FROM emp where deptno =v_deptno)
             loop
                  sal_update_PROC
                  (  p_rule => rc                        
                    , p_deptno => V_DEPTNO
                    , p_job =>V_JOB
    p_rule => rc       --> What exactly in rc? It's just a counter. You are using this (SELECT EMPNO,ENAME,SAL FROM emp where deptno =v_deptno)query but not using a single value returned from this query in the code.
    Ishan

  • Can´t get logic to record audio

    ok, i´m feelin´really stupid here - but it´s true - I can´t get logic to record audio in some songs. the only thing - as far as I´m concerned - that is changed while swaping between songs are the song settings. that´s where I´ve been looking for something that´s been disabling the rec function.
    I was working on a song right now which I was recording vocals on a couple of days ago, and now I was going to record some synthstrings (record to audio) and I just can´t make it happen. record path e t c seems to be ok.
    please somebody...HELP!!
    regards
    larsa
    G5 1.8   Mac OS X (10.3.9)  

    hi guys!
    thanks for takin´time... I solved the problem last night and then forgotten to post what i´m doing now. but I think it´s a bug... (and it´s ok if u don´t believe me...) it´s a bit spooky...
    I´ve changed the track icons to that cute little tapedeck (for the audio tracks only - buses, inputs and audio instruments have other symbols). looks nice in the arrange window. (gives me the "feel" of recording...) And the song i was working with has been like this for a couple of months. And I´ve been doing a lot of recording until yesterday when it was not possible...
    For some reason i started to fiddle with the track symbol - changing it - and, yes, logic was able to record. At this time I didn´t believe that this was the reason so I changed back to the little tape deck, and yes, recording was not possible. Then I opened an autoload which had the same syndrom (at that time I didn´t bother - I just created another setup), and first trying to record - not possible - then changing the tape deck symbol (yes I used it here too - I really liked it...) and recordning was possible. It seems that if all of logics 64 audiotracks has that (from now on I will call it "ugly") tape deck symbol, at least I can´t record audio (logic won´t go in to record - no matter what - pushing buttons clicking mouse e t c) recording midi was never affected. And the "spooky" thing is that I´ve been recording (with no problems) with all of the 64 audiotracks labelled with that little "ugly" tape deck - until yesterday...
    This might just b a wierd thing - but if anyone elese has a problem like this, it might help. I´m not shure weather it´s the tape deck symbol itself that causes the problem, but getting rid of it solves the same problem.
    (I´m using a RME multiface and I´m not 100% shure it could have SOMETHING to do with this)
    best regards
    G5 1.8   Mac OS X (10.3.9)  

  • I/O error while recording audio

    so i have had logic for 4 months now and I have everything hooked up to and M box. for most of the time everything works fine but for some reason, when i try to record audio (mic) it says I/O error, -39.. That happened once before but then it started to work again, what should i do?

    doesn anyone know what i can do?

  • Getting error Data record has grouping value "" in

    Trying to change Address data in HR using BAPI_ADDRESSEMPUS_CHANGE
    Getting error message : Data record has grouping value "" instead of ""
    Please advise.
    Thanks,
    Bhaskar

    Hi,
    I assume the following system situation exists:
    The new Infotypeframework NITF is inactive for PA30. Flag CCURE PC UI is activated in T77SO. You are using ESS based on Web Dynpro which uses the new Infotypeframework.
    Here we have to differentiate between infotypes which are participating in the data sharing functionality and all other infotypes. Such as:
    Infotypes without Data Sharing:
              - Infotype checks     => module pool
              - Infotype update     => SAPFP50P/SAPUP50R
    Infotypes with Data Sharing:
              - Infotype checks     => module pool
              - Infotype update     => NITF
    ATTENTION:
    BAdI HRPAD00INFTY is not processed in this case (importing parameter NEW_IMAGE is always space). Instead the BAdI HRPAD00INFTYDB of the NITF is been processed.
    The following notes (1 and 2) will solve the problem. Note 3) solves an involving problem caused during the deletion process of a personnel number.
    1) 783499 - Incorrect framework synchronization
    2) 845592 - Incorrect framework synchronization - Retroactive accounting
    3) 844998 - PU00: Termination when deleting a personnel number
    Hope this will help!
    Regards,
    Sibylle

  • Recording stereo audio and only getting one side - what gives?

    Recording audio in stereo mode in logic and only getting one side showing on the meter and same side showing on the audio file - I've checked the interface - is there a logic setting I'm missing?

    Is Universal Track Mode enabled?

Maybe you are looking for

  • Adobe Reader API

    Regarding Adobe Reader API, I know it's very limited, but all I need to do is open a file and go to a particular page. I've tried: With AcroPDF1 .LoadFile "C:\test.pdf" .setCurrentPage 3 End With which gives me "Runtime Error 424, Object Required," a

  • Add USB screen to iMac

    hi, I have the latest iMac 21.5 inch, OS X 10.9 I have an  evivo vhs to dvd usb stick that converts: red,white,yellow cable -  mini usb - normal usb. it's made to play dvd's and output them to a computer and record them an your computer. My question

  • Developing a solution for a client with SAP

    Hi there, We're looking to work with a client who is running an SAP based system, and in advance of our next meeting in a month we have pledged to research the SAP platforms and how to interact with them. The client will be upgrading to SAP 6 in a co

  • Populating T001T (Company Code Long Description) table

    Hi All, I was wondering if anyone can help me as to how to populate T001T table.  Below is what I did: > SM30 > V_T001T > Enter Company Code > Enter Name of Standard Text > Enter Text Usage (Company Code Long Description) > Press Enter Once I press '

  • Jazz and Flex Builder 3

    (I've also posted this in the forums over at jazz.net) I'm trying to get Flex Builder 3 to work with Rational TeamCentral (the beta client for the Rational Jazz system). Jazz is an IBM Rational project to build a scalable, extensible team collaborati