Error while playing an audio file. Please help!

Hi all,
I'm trying to transfer an audio file from server to client and play it after transferring the whole file. But the play command opens up the player and gives me the error saying the file is corrupted. I see that some of the lines in the copied file are missing when compared with the original file. I couldnt understand why this is happening in a TCP connection. Can anyone please help me with this.
Thanks a lot in advance.

I'm posting my code so that you can tell where am I going wrong
//Server side writing file to client socket
do
i = fin.read();
if(i!=-1) outToClient.writeByte(i);
if(i == -1) outToClient.writeByte(-1);
} while(i!=-1);
//Client side reading file and playing it
DataInputStream inFromServer3 = new DataInputStream(clientSocket.getInputStream());
do
b = inFromServer3.readByte();
if(b != -1) fout.write(b);
if(b == -1)
end_time = System.currentTimeMillis();                         
break;
}while(b !=-1);
try
Runtime.getRuntime().exec("C:\\Program Files\\Windows Media Player\\wmplayer.exe /Play c:\\inf612\\612P1\\tcp2.wav");
catch(Exception e)
System.out.println(e.getMessage());

Similar Messages

  • How to play the audio file please help me

    i would like to play audio files such wav files, au files etc
    I would like to know how to play audio file easily in Applet and
    applications
    Thank you

    import sun.audio.*; //import the sun.audio package
    import java.io.*;
    //** add this into your application code as appropriate
    // Open an input stream to the audio file.
    InputStream in = new FileInputStream(Filename);
    // Create an AudioStream object from the input stream.
    AudioStream as = new AudioStream(in);
    // Use the static class member "player" from class AudioPlayer to play
    // clip.
    AudioPlayer.player.start(as);
    // Similarly, to stop the audio.
    AudioPlayer.player.stop(as);

  • Error while installing APEX3.0.1 -- Please Help

    Hi All,
    I am trying to install APEX3.0.1(apex_3.0.1.zip) on Windows Sever2003 SP2 but am not successful.
    I have Oracle Applications 11.5.10.2 as Database.
    Anyone Please Help Me....
    The Steps I followed:
    conn sys/manager@prod as sysdba
    grant GRANT ANY PRIVILEGE to public;
    Confirmed that the PL/SQL gateway is 10.1.2.0.6
    SQL> @D:\oracle\apex\owa\owainst.sql
    Procedures Got Executed
    SQL> select owa_util.get_version from dual;
    GET_VERSION
    10.1.2.0.6
    -- Then i executed this script
    SQL> @D:/oracle/proddb/9.2.0/ctx/admin/defaults/drdefus.sql
    Creating lexer preference...
    PL/SQL procedure successfully completed.
    Creating wordlist preference...
    PL/SQL procedure successfully completed.
    Creating stoplist...
    PL/SQL procedure successfully completed.
    Creating default policy...
    PL/SQL procedure successfully completed.
    Created Table Space
    create tablespace APEX datafile 'D:/oracle/proddata/apex9.dbf' size 500M;
    -- Then i executed this script
    @D:\oracle\apex\apexins.sql raman apex apex temp /i/ none
    After Execution I am getting these errors…
    grant execute on SYS.dbms_lock to FLOWS_030000
    ERROR at line 1:
    ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_LOCK
    ==========
    Warning: Package Body created with compilation errors.
    No errors.
    begin
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04063: package body "FLOWS_030000.WWV_FLOW_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 2
    SP2-0310: unable to open file "core/coreins.sql"
    ...create flow auditing
    ==========
    grant execute on wwv_flow_epg_include_modules to anonymous
    ERROR at line 1:
    ORA-01917: user or role 'ANONYMOUS' does not exist
    ldap.plb
    custom_auth_ldap.plb
    ...wwv_flow_ldap
    ==========
    apxsqler.sql
    ...design time flows
    APPLICATION 4411 - APEX - System Messages
    Set Credentials...
    Check Compatibility...
    WWV_FLOW_API.FLOWS_API_LAST_EXTENDED20070525
    WWV_FLOW_API.CURRENT_FLOWS_VERSION20070525
    WWV_FLOW_API.IMPORT_COMPATIBLE_WITH_VERSION 20070108
    WWV_FLOW_API.COMPATIBLE
    Set Application ID...
    begin
    ERROR at line 1:
    ORA-20001: WWV_FLOW_API.SGID_NOT_SET
    ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 46
    ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 238
    ORA-06512: at line 4
    After That
    (copy Images Folder All from)
    D:/oracle/apex/images (images folder to) D:\oracle\devora\iAS/Apache/Apache
    Then
    Edited the D:\oracle\devora\iAS\Apache\modplsql\cfg\wdbsrv.app file and added the following
    [DAD_apex]
    connect_string = prod
    password = raman
    username = apex_public_user
    default_page = apex
    document_table = wwv_flow_file_objects$
    document_path = docs
    document_proc = wwv_flow_file_mgr.process_download
    reuse = Yes
    enablesso = No
    stateful = STATELESS_RESET
    nls_lang = American_America.AL32UTF8
    Then
    Edited the D:\oracle\devora\iAS\Apache\Apache\conf\httpd.conf file and added the alias
    Alias /i/ "d:\oracle\devora\iAS\Apache\Apache\images/"
    After Completing the Installation Steps when i Try to run the url in browser….
    http://computername.com:8000/pls/apex
    The home page is not opening….
    Can anyone Please Tell me where I am going wrong
    Regards.

    anonymous,
    I have Oracle Applications 11.5.10.2 as Database.
    That is not a database server version. What version of the database server are you using?
    grant GRANT ANY PRIVILEGE to public;
    What on Earth are you doing?
    @D:\oracle\apex\apexins.sql raman apex apex temp /i/ none
    You're supposed to set the working directory to apex before you start SQL*Plus and then the command line would start with @apexins.
    ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_LOCK
    After this all is futile. I'd say start over, maybe restart the db and try again starting in the correct directory/folder.
    Scott

  • Error while loading program...Please help.. :)

    Hello All,
    Have written a HTMLB program (DBConnect.java) which takes data from database and retrieves it in TableView.
    But it does not work.
    Get this error:
    Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/htmlb/page/PageProcessorComponent
    Loader Info -
    ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@1e72d6]
    Parent loader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@9cf322]
    References:
       not registered!
    No resources !
    The error occurred while trying to load "com.sap.sample.database.DBConnect".
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:389)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
         ... 30 more
    I have also included the PageProcessorComponent class file in my project properties.
    Please help....Whatz wrong.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
    Change the PrivateSharingReference to SharingReference in the xml
    <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
    ==========
    Change your xml to
    <?xml version="1.0" encoding="utf-8"?>
    <application>
    <application-config>
    <property name="SharingReference" value="com.sap.portal.htmlb"/>
    </application-config>
    <components>
    <component name="DBConnect">
    <component-config>
    <property name="ClassName" value="com.sap.sample.database.DBConnect"/>
    </component-config>
    <component-profile>
    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld" />
    </component-profile>
    </component>
    </components>
    <services/>
    </application>

  • Error while importing the epa file..help needed urgently..

    Hi,
    I am facing a severe problem, I have developed a portal application, designed the pages, iViews roles etc and exported to a file and later downloaded the epa file.
    For testing purpose, I deleted my content folder of the pages and iViews from the content administration. But when i tried to import the file, I am getting an error message
    <b>" Error extracting the package file. Check the log files for details. "</b>
    When i lokked the log file, i found the exception as
    <b>" [com.sapportals.portal.transport.ui.ImportComponent] Error while extracting EP6.0 package C:
    usr
    sap
    J2E...
    MyEpafile.epa "</b>
    and below the erro i found an exception message as <b>"error in opening zip file"</b>
    When i tried to extract the file using winzip, I can extract it with out any problem..
    Can you please tell me how this happened?
    Please help me to solve this problem,
    Thankyou,
    Sudheesh...

    Hi Christopher,
    Well, I have solved the problem. But I don't know whether it will be the correct technical way.. Because i have to solve the same under a very little time constraint. The solution is given below,
    I unzipped the epa file which i have downloaded using winzip. inside the extracted file, i found a zip file with the same file name and extension. when i uploaded that file, it worked fine with out any problem. I tried the same many times. and each time i got the same results.
    Please try this if you are still facing the problem..
    Best regards,
    Sudheesh...

  • Error while working with OracleApps Adapter please help mee

    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>1086</code>
    </part><part name="summary"><summary>file:/F:/product/10.1.3.1/OracleAS_2/bpel/domains/test/tmp/.bpel_RepairOrder_1.0_4bac0e828ef344d37656722b167615db.tmp/CreateRepairOrder.wsdl [ CreateRepairOrder_ptt::CreateRepairOrder(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'CreateRepairOrder' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_CREATEREPAIRORDER.CSD_REPAIRS_PUB$CREATE_REPAIR API. Cause: java.sql.SQLException: ORA-01086: savepoint 'CREATE_REPAIR_ORDER_PUB' never established
    ORA-06512: at "APPS.JTF_PLSQL_API", line 65
    ORA-06512: at "APPS.CSD_REPAIRS_PUB", line 144
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.XX_BPEL_CREATEREPAIRORDER", line 160
    ORA-06512: at line 1
    [Caused by: ORA-01086: savepoint 'CREATE_REPAIR_ORDER_PUB' never established
    ORA-06512: at "APPS.JTF_PLSQL_API", line 65
    ORA-06512: at "APPS.CSD_REPAIRS_PUB", line 144
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.XX_BPEL_CREATEREPAIRORDER", line 160
    ORA-06512: at line 1
    ; nested exception is:
         ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_CREATEREPAIRORDER.CSD_REPAIRS_PUB$CREATE_REPAIR API. Cause: java.sql.SQLException: ORA-01086: savepoint 'CREATE_REPAIR_ORDER_PUB' never established
    ORA-06512: at "APPS.JTF_PLSQL_API", line 65
    ORA-06512: at "APPS.CSD_REPAIRS_PUB", line 144
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.XX_BPEL_CREATEREPAIRORDER", line 160
    ORA-06512: at line 1
    [Caused by: ORA-01086: savepoint 'CREATE_REPAIR_ORDER_PUB' never established
    ORA-06512: at "APPS.JTF_PLSQL_API", line 65
    ORA-06512: at "APPS.CSD_REPAIRS_PUB", line 144
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.XX_BPEL_CREATEREPAIRORDER", line 160
    ORA-06512: at line 1
    Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
    </summary>
    </part><part name="detail"><detail>
    Internal Exception: java.sql.SQLException: ORA-01086: savepoint 'CREATE_REPAIR_ORDER_PUB' never established
    ORA-06512: at "APPS.JTF_PLSQL_API", line 65
    ORA-06512: at "APPS.CSD_REPAIRS_PUB", line 144
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.XX_BPEL_CREATEREPAIRORDER", line 160
    ORA-06512: at line 1
    Error Code: 1086</detail>
    </part></bindingFault>

    create or replace
    PACKAGE BODY CSD_REPAIRS_PUB as
    /* $Header: csdpdrab.pls 120.12 2006/09/05 11:57:18 vparvath noship $ */
    * This is the public interface for the Depot Repair API. It allows
    * execution of various Depot Repair APIs.
    * @rep:scope public
    * @rep:product CSD
    * @rep:displayname Depot Repair APIs
    * @rep:lifecycle active
    * @rep:category BUSINESS_ENTITY CSD_REPAIR_ORDER
    -- Package name : CSD_REPAIRS_PUB
    -- Purpose : This package contains the public APIs for creating
    -- and updating repair orders.
    -- History :
    -- Version Date Name Description
    -- 115.0 11/17/99 pkdas Created.
    -- 115.1 12/18/99 pkdas
    -- 115.2 01/04/00 pkdas
    -- 115.3 02/09/00 pkdas Added p_REPAIR_LINE_ID as IN parameter in the
    -- Create_Repairs procedure.
    -- Added p_REPAIR_NUMBER as OUT parameter in the
    -- Create_Repairs procedure.
    -- 115.4 02/29/00 pkdas Changed the procedure name
    -- Create_Repairs -> Create_Repair_Order
    -- Update_Repairs -> Update_Repair_Order
    -- Added p_validation_level to Create_Repair_Order and
    -- Update_Repair_Order
    -- NOTE :
    G_PKG_NAME CONSTANT VARCHAR2(30) := 'CSD_REPAIRS_PUB';
    G_FILE_NAME CONSTANT VARCHAR2(12) := 'csdpdrab.pls';
    g_debug NUMBER := csd_gen_utility_pvt.g_debug_level;
    * Create Repair Order
    * @param P_Api_Version_Number api version number
    * @param P_Init_Msg_List initial the message stack, default to false
    * @param P_Commit to decide whether to commit the transaction or not, default to false
    * @param p_validation_level validation level, default to full level
    * @param p_repair_line_id repair line id is unique id
    * @param P_REPLN_Rec repiar line record
    * @param p_create_default_logistics flag to create logistics lines, default to N
    * @param X_REPAIR_LINE_ID repair line id of the created repair order
    * @param X_REPAIR_NUMBER repair number of the created repair order which display on Depot UI
    * @param X_Return_Status return status
    * @param X_Msg_Count return message count
    * @param X_Msg_Data return message data
    * @rep:scope public
    * @rep:lifecycle active
    * @rep:displayname Create Repair Order
    PROCEDURE Create_Repair_Order(P_Api_Version_Number IN NUMBER,
    P_Init_Msg_List IN VARCHAR2 := FND_API.G_FALSE,
    P_Commit IN VARCHAR2 := FND_API.G_FALSE,
    p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
    P_REPAIR_LINE_ID IN NUMBER := FND_API.G_MISS_NUM,
    P_REPLN_Rec IN CSD_REPAIRS_PUB.REPLN_Rec_Type,
    p_create_default_logistics IN VARCHAR2 := 'N',
    X_REPAIR_LINE_ID OUT NOCOPY NUMBER,
    X_REPAIR_NUMBER OUT NOCOPY VARCHAR2,
    X_Return_Status OUT NOCOPY VARCHAR2,
    X_Msg_Count OUT NOCOPY NUMBER,
    X_Msg_Data OUT NOCOPY VARCHAR2) IS
    l_api_name CONSTANT VARCHAR2(30) := 'Create_Repair_Order';
    l_api_version_number CONSTANT NUMBER := 1.0;
    BEGIN
    -- Standard Start of API savepoint
    SAVEPOINT CREATE_REPAIR_ORDER_PUB;
    -- Standard call to check for call compatibility.
    IF NOT FND_API.Compatible_API_Call(l_api_version_number,
    p_api_version_number,
    l_api_name,
    G_PKG_NAME)
    THEN
    RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
    END IF;
    -- Initialize message list if p_init_msg_list is set to TRUE.
    IF FND_API.to_Boolean(p_init_msg_list)
    THEN
    FND_MSG_PUB.initialize;
    END IF;
    -- Initialize API return status to success
    x_return_status := FND_API.G_RET_STS_SUCCESS;
    -- API body
    CSD_REPAIRS_PVT.Create_Repair_Order(P_Api_Version_Number => 1.0,
    P_Init_Msg_List => p_init_msg_list,
    P_Commit => p_commit,
    P_Validation_Level => p_validation_level,
    P_REPAIR_LINE_ID => p_REPAIR_LINE_ID,
    P_REPLN_Rec => p_REPLN_Rec,
    X_REPAIR_LINE_ID => x_REPAIR_LINE_ID,
    X_REPAIR_NUMBER => x_REPAIR_NUMBER,
    X_Return_Status => x_return_status,
    X_Msg_Count => x_msg_count,
    X_Msg_Data => x_msg_data);
    -- Check return status from the above procedure call
    IF not (x_return_status = FND_API.G_RET_STS_SUCCESS)
    then
    ROLLBACK TO CREATE_REPAIR_ORDER_PUB;
    return;
    END IF;
    IF (P_CREATE_DEFAULT_LOGISTICS = 'Y') THEN
    CSD_LOGISTICS_PVT.Create_Default_Logistics
    ( p_api_version => P_Api_Version_Number,
    p_commit => P_Commit,
    p_init_msg_list => P_Init_Msg_List,
    p_validation_level => p_validation_level,
    p_repair_line_id => P_REPAIR_LINE_ID,
    x_return_status => X_Return_Status,
    x_msg_count => X_Msg_Count,
    x_msg_data => X_Msg_Data
    IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
    RAISE FND_API.G_EXC_ERROR;
    END IF;
    END IF;
    -- End of API body.
    -- Standard check for p_commit
    IF FND_API.to_Boolean(p_commit)
    THEN
    COMMIT WORK;
    END IF;
    -- Standard call to get message count and if count is 1, get message info.
    FND_MSG_PUB.Count_And_Get(p_count => x_msg_count,
    p_data => x_msg_data);
    EXCEPTION
    WHEN FND_API.G_EXC_ERROR THEN
    JTF_PLSQL_API.HANDLE_EXCEPTIONS(P_API_NAME => L_API_NAME,-------------------------------line 144 error
    P_PKG_NAME => G_PKG_NAME,
    P_EXCEPTION_LEVEL => FND_MSG_PUB.G_MSG_LVL_ERROR,
    P_PACKAGE_TYPE => JTF_PLSQL_API.G_PUB,
    X_MSG_COUNT => X_MSG_COUNT,
    X_MSG_DATA => X_MSG_DATA,
    X_RETURN_STATUS => X_RETURN_STATUS);
    -- RAISE;
    WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
    JTF_PLSQL_API.HANDLE_EXCEPTIONS(P_API_NAME => L_API_NAME,
    P_PKG_NAME => G_PKG_NAME,
    P_EXCEPTION_LEVEL => FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR,
    P_PACKAGE_TYPE => JTF_PLSQL_API.G_PUB,
    X_MSG_COUNT => X_MSG_COUNT,
    X_MSG_DATA => X_MSG_DATA,
    X_RETURN_STATUS => X_RETURN_STATUS);
    -- RAISE;
    WHEN OTHERS THEN
    JTF_PLSQL_API.HANDLE_EXCEPTIONS(P_API_NAME => L_API_NAME,
    P_PKG_NAME => G_PKG_NAME,
    P_EXCEPTION_LEVEL => JTF_PLSQL_API.G_EXC_OTHERS,
    P_PACKAGE_TYPE => JTF_PLSQL_API.G_PUB,
    X_MSG_COUNT => X_MSG_COUNT,
    X_MSG_DATA => X_MSG_DATA,
    X_RETURN_STATUS => X_RETURN_STATUS);
    -- RAISE;
    End Create_Repair_Order;
    PROCEDURE Update_Repair_Order(P_Api_Version_Number IN NUMBER,
    P_Init_Msg_List IN VARCHAR2 := FND_API.G_FALSE,
    P_Commit IN VARCHAR2 := FND_API.G_FALSE,
    p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
    p_REPAIR_LINE_ID IN NUMBER,
    P_REPLN_Rec IN OUT NOCOPY CSD_REPAIRS_PUB.REPLN_Rec_Type,
    X_Return_Status OUT NOCOPY VARCHAR2,
    X_Msg_Count OUT NOCOPY NUMBER,
    X_Msg_Data OUT NOCOPY VARCHAR2) IS
    l_api_name CONSTANT VARCHAR2(30) := 'Update_Repair_Order';
    l_api_version_number CONSTANT NUMBER := 1.0;
    BEGIN
    -- Standard Start of API savepoint
    SAVEPOINT UPDATE_REPAIR_ORDER_PUB;
    -- Standard call to check for call compatibility.
    IF NOT FND_API.Compatible_API_Call(l_api_version_number,
    p_api_version_number,
    l_api_name,
    G_PKG_NAME)
    THEN
    RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
    END IF;
    -- Initialize message list if p_init_msg_list is set to TRUE.
    IF FND_API.to_Boolean(p_init_msg_list)
    THEN
    FND_MSG_PUB.initialize;
    END IF;
    -- Initialize API return status to SUCCESS
    x_return_status := FND_API.G_RET_STS_SUCCESS;
    -- API body
    CSD_repairs_PVT.Update_Repair_Order(P_Api_Version_Number => 1.0,
    P_Init_Msg_List => p_init_msg_list,
    P_Commit => p_commit,
    P_Validation_Level => p_validation_level,
    p_REPAIR_LINE_ID => p_repair_line_id,
    P_REPLN_Rec => p_REPLN_Rec,
    X_Return_Status => x_return_status,
    X_Msg_Count => x_msg_count,
    X_Msg_Data => x_msg_data);
    -- Check return status from the above procedure call
    IF not (x_return_status = FND_API.G_RET_STS_SUCCESS)
    then
    ROLLBACK TO UPDATE_REPAIR_ORDER_PUB;
    return;
    END IF;
    -- End of API body.
    -- Standard check for p_commit
    IF FND_API.to_Boolean(p_commit)
    THEN
    COMMIT WORK;
    END IF;
    -- Standard call to get message count and if count is 1, get message info.
    FND_MSG_PUB.Count_And_Get(p_count => x_msg_count,
    p_data => x_msg_data);
    EXCEPTION
    WHEN FND_API.G_EXC_ERROR THEN
    JTF_PLSQL_API.HANDLE_EXCEPTIONS(P_API_NAME => L_API_NAME,
    P_PKG_NAME => G_PKG_NAME,
    P_EXCEPTION_LEVEL => FND_MSG_PUB.G_MSG_LVL_ERROR,
    P_PACKAGE_TYPE => JTF_PLSQL_API.G_PUB,
    X_MSG_COUNT => X_MSG_COUNT,
    X_MSG_DATA => X_MSG_DATA,
    X_RETURN_STATUS => X_RETURN_STATUS);
    -- RAISE;
    WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
    JTF_PLSQL_API.HANDLE_EXCEPTIONS(P_API_NAME => L_API_NAME,
    P_PKG_NAME => G_PKG_NAME,
    P_EXCEPTION_LEVEL => FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR,
    P_PACKAGE_TYPE => JTF_PLSQL_API.G_PUB,
    X_MSG_COUNT => X_MSG_COUNT,
    X_MSG_DATA => X_MSG_DATA,
    X_RETURN_STATUS => X_RETURN_STATUS);
    -- RAISE;
    WHEN OTHERS THEN
    JTF_PLSQL_API.HANDLE_EXCEPTIONS(P_API_NAME => L_API_NAME,
    P_PKG_NAME => G_PKG_NAME,
    P_EXCEPTION_LEVEL => JTF_PLSQL_API.G_EXC_OTHERS,
    P_PACKAGE_TYPE => JTF_PLSQL_API.G_PUB,
    X_MSG_COUNT => X_MSG_COUNT,
    X_MSG_DATA => X_MSG_DATA,
    X_RETURN_STATUS => X_RETURN_STATUS);
    -- RAISE;
    End Update_Repair_Order;
    -- R12 Development Begin
    * Update Repair Order Status
    * @param P_Api_Version api version number
    * @param P_Commit to decide whether to commit the transaction or not, default to false
    * @param P_Init_Msg_List initial the message stack, default to false
    * @param X_Return_Status return status
    * @param X_Msg_Count return message count
    * @param X_Msg_Data return message data
    * @param P_Repair_status_rec repair status attributes record.
    * @param P_status_upd_control_rec repair status record control flags.
    * @param X_OBJECT_VERSION_NUMBER
    * @rep:scope public
    * @rep:lifecycle active
    * @rep:displayname Update Repair Order Status
    PROCEDURE Update_Ro_Status(P_Api_Version IN NUMBER,
    P_Commit IN VARCHAR2,
    P_Init_Msg_List IN VARCHAR2,
    X_Return_Status OUT NOCOPY VARCHAR2,
    X_Msg_Count OUT NOCOPY NUMBER,
    X_Msg_Data OUT NOCOPY VARCHAR2,
    P_REPAIR_STATUS_Rec IN REPAIR_STATUS_REC_TYPE,
    P_STATUS_UPD_CONTROL_REC IN STATUS_UPD_CONTROL_REC_TYPE,
    X_OBJECT_VERSION_NUMBER OUT NOCOPY NUMBER) IS
    l_api_name CONSTANT VARCHAR2(30) := 'Update_Ro_Status';
    l_api_version_number CONSTANT NUMBER := 1.0;
         l_msg_data varchar2(2000);
         l_msg_index_out NUMBER;
    BEGIN
    -- Standard Start of API savepoint
    SAVEPOINT UPDATE_RO_STATUS_PUB;
    -- Initialize message list if p_init_msg_list is set to TRUE.
    IF FND_API.to_Boolean(p_init_msg_list)
    THEN
    FND_MSG_PUB.initialize;
    END IF;
    -- Initialize API return status to success
    x_return_status := FND_API.G_RET_STS_SUCCESS;
    -- API body
    CSD_REPAIRS_PVT.UPDATE_RO_STATUS(P_Api_Version => p_api_version,
    P_Commit => p_commit,
    P_Init_Msg_List => p_init_msg_list,
    P_Validation_Level => FND_API.G_VALID_LEVEL_FULL,
    X_Return_Status => x_return_status,
    X_Msg_Count => x_msg_count,
    X_Msg_Data => x_msg_data,
    P_REPAIR_STATUS_REC => p_repair_status_rec,
    P_STATUS_CONTROL_REC => p_status_upd_control_rec,
    X_OBJECT_VERSION_NUMBER => x_object_Version_number);
    -- Check return status from the above procedure call
    IF not (x_return_status = FND_API.G_RET_STS_SUCCESS)
    then
    ROLLBACK TO UPDATE_RO_STATUS_PUB;
    return;
    END IF;
    -- End of API body.
    -- Standard check for p_commit
    IF FND_API.to_Boolean(p_commit)
    THEN
    COMMIT WORK;
    END IF;
    -- Standard call to get message count and if count is 1, get message info.
    FND_MSG_PUB.Count_And_Get(p_count => x_msg_count,
    p_data => x_msg_data);
         if(x_msg_count > 1) then
              FOR l_index IN 1 .. x_msg_count
              LOOP
              fnd_msg_pub.get (p_msg_index => l_index,
                        p_encoded => fnd_api.g_false,
                        p_data => l_msg_data,
                        p_msg_index_out => l_msg_index_out
              x_msg_data := x_msg_data ||'['||l_msg_data||']';
              END LOOP;
         end if;
    EXCEPTION
    WHEN Fnd_Api.G_EXC_ERROR THEN
    x_return_status := Fnd_Api.G_RET_STS_ERROR;
    ROLLBACK TO UPDATE_RO_STATUS_PUB;
    Fnd_Msg_Pub.Count_And_Get(p_count => x_msg_count,
    p_data => x_msg_data);
    IF (Fnd_Log.level_error >= Fnd_Log.g_current_runtime_level)
    THEN
    Fnd_Log.STRING(Fnd_Log.level_error,
    'csd.plsql.CSD_REPAIRS_PUB.Update_ro_status',
    'EXC_ERROR[' || x_msg_data || ']');
    END IF;
         if(x_msg_count > 1) then
              FOR l_index IN 1 .. x_msg_count
              LOOP
              fnd_msg_pub.get (p_msg_index => l_index,
                        p_encoded => fnd_api.g_false,
                        p_data => l_msg_data,
                        p_msg_index_out => l_msg_index_out
              x_msg_data := x_msg_data ||'['||l_msg_data||']';
              END LOOP;
         end if;
    WHEN Fnd_Api.G_EXC_UNEXPECTED_ERROR THEN
    x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;
    ROLLBACK TO UPDATE_RO_STATUS_PUB;
    Fnd_Msg_Pub.Count_And_Get(p_count => x_msg_count,
    p_data => x_msg_data);
    IF (Fnd_Log.level_exception >= Fnd_Log.g_current_runtime_level)
    THEN
    Fnd_Log.STRING(Fnd_Log.level_exception,
    'csd.plsql.CSD_REPAIRS_PUB.Update_ro_status',
    'EXC_UNEXP_ERROR[' || x_msg_data || ']');
    END IF;
         if(x_msg_count > 1) then
              FOR l_index IN 1 .. x_msg_count
              LOOP
              fnd_msg_pub.get (p_msg_index => l_index,
                        p_encoded => fnd_api.g_false,
                        p_data => l_msg_data,
                        p_msg_index_out => l_msg_index_out
              x_msg_data := x_msg_data ||'['||l_msg_data||']';
              END LOOP;
         end if;
    WHEN OTHERS THEN
    x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;
    Rollback TO UPDATE_RO_STATUS_PUB;
    IF Fnd_Msg_Pub.Check_Msg_Level(Fnd_Msg_Pub.G_MSG_LVL_UNEXP_ERROR)
    THEN
    Fnd_Msg_Pub.Add_Exc_Msg(G_PKG_NAME, l_api_name);
    END IF;
    Fnd_Msg_Pub.Count_And_Get(p_count => x_msg_count,
    p_data => x_msg_data);
    IF (Fnd_Log.level_exception >= Fnd_Log.g_current_runtime_level)
    THEN
    Fnd_Log.STRING(Fnd_Log.level_exception,
    'csd.plsql.CSD_REPAIRS_PUB.Update_ro_status',
    'SQL MEssage[' || SQLERRM || ']');
    END IF;
         if(x_msg_count > 1) then
              FOR l_index IN 1 .. x_msg_count
              LOOP
              fnd_msg_pub.get (p_msg_index => l_index,
                        p_encoded => fnd_api.g_false,
                        p_data => l_msg_data,
                        p_msg_index_out => l_msg_index_out
              x_msg_data := x_msg_data ||'['||l_msg_data||']';
              END LOOP;
         end if;
    End Update_ro_status;
    -- R12 Development End
    End CSD_REPAIRS_PUB;
    Plzz checkout help me out

  • DAC: "error while reading repository table". Please help!

    Hi everybody,
    I copied DAC directory from server to a workstation.
    DAC client on server machine runs normally.
    When trying to run DAC client on the workstation, I get an error message "Error while reading repository table".
    I tried to find any DAC log file to get some additional information, but I couldn't.
    The connection in DAC seems to be configured properly (test connection successful).
    The only difference I found between server and workstation is that there are two Oracle homes installed on the workstation and one - on the server.
    Thanks,
    Alex

    So you can read the tables now? Good to know.
    Just as a hint: if you "tnsping" your data source from a command window, you'll see which path and file is used, so you can find out which home.
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 04-MAR-2009 16:42:43
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    C:\Oracle\product\11.1.0\client_1\network\admin\sqlnet.ora <--- my 11g home is used and not the 9i or 10g which also reside on this machine.
    @DAC client can't connect to server: i.e. the icon stays red?
    - Is your server up and running? (I don't want to start a flame war, but it happens to the best of us)
    - Did you go through the steps here? http://download.oracle.com/docs/cd/E12513_01/doc/bic.101/e12653/dac_configure.htm
    Cheers,
    C.

  • Audio files PLEASE HELP

    ok, can someone explain to me why when i recorded the tracks they had no digital cliping on it and now i just opened the project and they all clip. help me out please

    Hi Bassmasterjosh,
    There are a few tyes of clippping distortion.
    1. The file is distorted. Check your audio file in the sample editor window, and check the peaks. Are they horizontal? Are they normal?
    2. The mix buss is distorted, and the resulting mix is distorted. TURN DOWN THE VOLUME of all the tracks!!!
    3. The audio driver is bad / corrupted, but still passing audio. This means your audio files are all goood, and your mix buss is not distorting either. You have to re-install the audio driver for your audio hardware. Make SURE the driver is the right one.
    Now, which one of these three possibilities is it? Or is it something else?

  • Bit Rate too high Error - have specific details about files - please help

    Hello-
    Just finished a project and went to burn the first DVD. It starts muxing the first mpeg2 video file and comes up with this error. Below are the specs for all the files on the DVD. Please take a look and let me know where I went wrong. Thanks a lot.
    Tom J
    All video files are:
    MPEG-2 60 Min High Quality Encodes out of compressor
    All Audio is:
    AIFF Stereo 16bit 44.1KHZ
    All video and audio lengths are the same, some video tracks have multiple audio tracks
    Title---------Video Length--------# of Audio Tracks--------
    Main Menu----1:34:27--------------1-----------
    Sub Menu 1---30:00----------------1----------
    Sub Menu 2---30:00----------------1-----------
    Video 1------4:32:00--------------1-----------
    Video 2------3:09:00--------------3----------
    Video 3------6:25:08--------------3----------
    Using my superdrive to burn on a Imation DVD-R 8x
    Disc Meter in DVDSP reads 1.3 GB

    Hey David-
    The total running time of all video (including video
    for motion menus) is 1001 seconds (the book told me
    to break it down into secon ds).
    As far as the bit rate, I checked it and am exporting
    currently to a max of 5 with an average of 4.5 (for
    the video).
    The audio is AIFF all the way, I think encoding in
    Dolby is something a newer version fo compressor
    does. I have FCP 4.5 with DVDSP 3.
    I did export the audio as PCM AIFF, didn't shrin kthe
    size in fact enlarged it slightly.
    Do you figure if I have a bit rate max of 5 on video
    with 3 1.5 bit rate audio tracks, I'll be all right?
    Tom J
    With your version of FCP & DVDSP, you'll need to encode the audio into Dolby Digital 2.0 with A.Pack, which is a separate program on your hard drive. With Final Cut Studio, Apple did away with A.Pack and merged its functionality into Compressor.

  • Error in playing AVI(*.avi) file - please rectify ASAP

    The Code I have written is as follws
    import java.io.*;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.media.*;
    public class IconTest extends JFrame
         ImageIcon ic=new ImageIcon("Images\\English.ico");
         IconTest()
         public static void main(String arg[])
              IconTest n=new IconTest();
              JFrame frame=new JFrame();
              try {
              File soundFile = new File("Images\\lmt.avi");
                   Player player = Manager.createRealizedPlayer(soundFile.toURL());
                   player.start();
                   frame.getContentPane().add(player.getVisualComponent());
                   player.close();
              } catch (Exception e) {
                   e.printStackTrace();
              frame.setSize(400,400);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    The Error is :
    Unable tp prefecth com.sun.media.PlayBackEngine@1ac04e8
    Please give me solution

    Crosspost!
    http://forum.java.sun.com/thread.jspa?threadID=607276&messageID=3306329

  • "Error in the alert log file " - please help

    Hi ALL,
    I am getting following errors in the alert log frequently.
    My database version is:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Productio
    NLSRTL Version 10.2.0.1.0 - Production
    Thu Aug 30 16:58:19 2007
    Memory Notification: Library Cache Object loaded into SGA
    Heap size 2172K exceeds notification threshold (2048K)
    KGL object name :select object_name from all_objects where object_name='TOAD_PROFILER' and object_type='PACKAGE'
    Thu Aug 30 17:09:36 2007
    ************************************************************************************

    Additionally you can visit here:
    Alert Error from trc files--Heap size 5236K exceeds notification threshold
    geting error in alert log file
    Adith

  • Logminer error while creating a dictionary file

    Hi ,
    I am working on logminer.
    i got the following error while creating a dictionary file :--
    please help me out.
    SQL> show parameter utl_
    NAME TYPE VALUE
    utl_file_dir string $ORACLE_BASE/utl_file/cecms
    SQL> execute dbms_logmnr_d.build(dictionary_filename => 'dictionary.ora',dictionary_location => '/u00/oracle/utl_file/cecms');
    BEGIN dbms_logmnr_d.build(dictionary_filename => 'dictionary.ora',dictionary_location => '/u00/oracle/utl_file/cecms'); END;
    ERROR at line 1:
    ORA-01336: specified dictionary file cannot be opened
    ORA-29280: invalid directory path
    ORA-06512: at "SYS.DBMS_LOGMNR_D", line 928
    ORA-06512: at "SYS.DBMS_LOGMNR_D", line 2052
    ORA-06512: at line 1
    Asif

    ORA-01336: specified dictionary file cannot be opened
    Cause: The dictionary file or directory does not exist or is inaccessible.
    Action: Make sure that the dictionary file and directory exist and are accessible.
    Probably an issue with the rights on the directories.
    To confirm the same, try writing a sample procedure with UTL_FILE to create a file at this location and capture the error. It will give you more details about the problem.

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • Help me play an audio file in my GUI

    Hi
    I've been having some trouble getting code to play an audio file in my GUI
    Basically all I want to do is play a file in the same directory as the program, and have it loop. No controls, no buttons to change the play state.
    Could someone point me to or help me implement this with some example code? I'm really stuck and I'm just not sure how to implement it into the existing GUI class.
    Thanks for any help

    Hi
    I've done so, and the method gets called without any problems, but doesnt play anything.
    Have a look -
    public void audioFile()
        try {
            // From file
            AudioInputStream stream = AudioSystem.getAudioInputStream(new File("test.wav"));
            // From URL
            //stream = AudioSystem.getAudioInputStream(new URL("http://hostname/audiofile"));
            // At present, ALAW and ULAW encodings must be converted
            // to PCM_SIGNED before it can be played
            AudioFormat format = stream.getFormat();
            if (format.getEncoding() != AudioFormat.Encoding.PCM_SIGNED) {
                format = new AudioFormat(
                        AudioFormat.Encoding.PCM_SIGNED,
                        format.getSampleRate(),
                        format.getSampleSizeInBits()*2,
                        format.getChannels(),
                        format.getFrameSize()*2,
                        format.getFrameRate(),
                        true);        // big endian
                stream = AudioSystem.getAudioInputStream(format, stream);
            // Create the clip
            DataLine.Info info = new DataLine.Info(
                Clip.class, stream.getFormat(), ((int)stream.getFrameLength()*format.getFrameSize()));
            Clip clip = (Clip) AudioSystem.getLine(info);
            // This method does not return until the audio file is completely loaded
            clip.open(stream);
            // Start playing
            clip.start();
        } catch (MalformedURLException e) {
        } catch (IOException e) {
        } catch (LineUnavailableException e) {
        } catch (UnsupportedAudioFileException e) {
    }

  • Error in JDBC while using in a Servlet.Please HeLP!!!!!!!

    &#304;s there any one can help me I will be very glad.
    I'm preparing a homework for University and have a small(for me B&#304;&#304;G) problem.
    I want to make a database connection with servlet .
    as a full working program I try to use CONNECT.java To Run in a Servlet.
    My program can run on eclipse platform with out any problem but when I want to use it in my server with servlet (I change the program as a servlet) I take This error What Sould I dou.
    PLEASE Help.....
    MY ERRoR is:
    java.lang.ClassNotFoundExeption: com.microsoft.jdbc.sqlserver.SQLserverDriver
    It works on Ecl&#304;pse but Not in my server with servlet
    HELP HELP HELP....

    You don't have the JDBC-SQLServer driver in the classpath when you run it on the server. (You probably added the driver into the Eclipse project library.)
    Depending on how you set up your server and java container, you might try putting the driver in the "WEB-INF/lib" directory (if it's a .jar file).

Maybe you are looking for