Newbies problem : Infrastructure database is unavailable, pls help..

Hi All,
I am new in IAS. I am trying to install IAS 10g (9.0.4), on WIn2000. both IAS & Infra in same server, one Database.
It used to be running, but today it won't start.
Here is the error :
Application Server Control :
Status = Down
Farm=Infrastructure database is unavailable
Components :
Forms -> Unavailable
OC4J_BI_Forms -> Unavailable
Reports Server: rep_sysloginfra -> Status = [inprogress, timer symbol] ... this is forever...
When I Click Logs ->
Error
Error displaying Log Files page. Failed to initialize configuration management user session.. Database operation failed.
Root Cause: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=151000065)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))
Resolution: . Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=151000065)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))
Still in Application Server Control, When I click Forms I see this error on screen :
500 Internal Server Error
java.lang.NullPointerException
     at oracle.forms.em.FormsConfigResource.getDefaultSection(Unknown Source)
     at oracle.forms.em.FormsConfigResource.getAllowNewConnectionsEntity(Unknown Source)
     at oracle.forms.em.FormsResources.getAllowNewConnections(Unknown Source)
     at forms.formsStatusFrame._jspService(_formsStatusFrame.java:127)
     [forms/formsStatusFrame.jsp]
     at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:
317)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Thread.java:534)
java.lang.NullPointerException
     at oracle.forms.em.FormsConfigResource.getDefaultSection(Unknown Source)
     at oracle.forms.em.FormsConfigResource.getEmMode(Unknown Source)
     at oracle.forms.em.FormsResources.getResponseTime(Unknown Source)
     at forms.formsResponseFrame._jspService(_formsResponseFrame.java:129)
     [forms/formsResponseFrame.jsp]
     at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
     at java.lang.Thread.run(Thread.java:534)
What should I do ?
Thank you for your help,
Krist

Hi,
I am having the same problem posted in the thread. I read through the help and have tried to start all the processes, and then one at a time, but it has not helped. I still get the same error shown below. Besides a complete uninstall and reinstall of Oracle, is there anything I can do to fix this problem?
Please, any help would be greatly appreciated.
Thanks,
D.
oracle@Appserv1 oracle]$ /home/oracle/OraHomeAS/opmn/bin/opmnctl startall
opmnctl: starting opmn and all managed processes...
================================================================================opmn id=Appserv1:6200
0 of 2 processes started.
ias-instance id=infra.appserv1
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ias-component/process-type/process-set:
OC4J/OC4J_SECURITY/default_island
Error
--> Process (pid=0)
failed to start a managed process because a dependency check failed
oid dependency failed
OID
Log:
none
--------------------------------------------------------------------------------ias-component/process-type/process-set:
OID/OID/OID
Error
--> Process (pid=4066)
failed to start a managed process after the maximum retry limit
Log:
/home/oracle/OraHomeAS/opmn/logs/OID~1
[oracle@Appserv1 oracle]$

Similar Messages

  • After upgrading on ios 6 i have problems with vpn connection..pls help if someone have the same problem

    problem with vpn connection after upgrading on ios6.pls help

    I've never been able to share FaceBook posts nor seen the option using the iOS FaceBook app regardless the FaceBook app and iOS version. I can Like and I can Comment, and if I select a link or video to view under iOS 6, I can use the Share option for the link or video, but not for a post.

  • TS1398 my iphone 4s can not scan any wifi network, i tried everything but still can not scan any wifi connection even though our wifi is working properly in our mac book and ipad. What do i need to do if the problem is the hardware?pls help

    my iphone 4s can not scan any wifi network, i tried everything but still can not scan any wifi connection even though our wifi is working properly in our mac book and ipad. What do i need to do if the problem is the hardware?pls help

    When you say it "can not scan any wifi network" do you mean it is not detecting Wi-Fi networks?
    Is Wi-Fi turned on in Settings > General > Wi-Fi?
    Have you tried Settings > General > Reset > Reset Network Settings?
    Is it just the home network that the device will not connect to? or any network?

  • Collaboration Room iViews give error -- Database related errors -- Pls Help

    Hello Everyone,
    We are on EP 6.0 SP 17 (Netweaver 2004).
    KMC component was installed separately (Deployed manually).
    We are trying to create simple Collaboration Rooms and we are facing some issues with the same.
    I am following the documentation on SAP Help for the Room Creation:
    Help  SAP Netweaver 2004  People Integration  Collaboration  Administration Guide
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/3d59fdaa5ebb45967ea107d3fa117a/frameset.htm
    We are able to create rooms based on pre-defined templates and we are also able to add members to rooms, send/receive the invitation emails. I am able to work with Instant Messaging also.
    But the problem is that some of the iViews related to Collaboration Rooms are giving errors.
    1.<b> “Discussion” iView gives an error saying “You do not have access permission” (even the user has all the necessary roles assigned).</b>
    Log for this error is as follows:
    Exception ID = 90c3315f-c29d-2910-87ac-806aa372da7f com.sapportals.wdf.WdfError     at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:678)at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
         at com.sapportals.htmlb.Container.preRender(Container.java:120)
         at com.sapportals.htmlb.Container.preRender(Container.java:120)
         at com.sapportals.htmlb.Container.preRender(Container.java:120) ……….
    --- Nested WDF Exception -
    com.sapportals.wcm.WcmException: The SQL statement "INSERT INTO "KMC_URIMAPPER" ("HASH_KEY","EXTERNAL_KEY","CONST_INTERNAL","VAR_INTERNAL","EK_PREFIX","EKHK00","EKHK01","EKHK02","EKHK03","EKHK04","EKHK05","EKHK06","EKHK07","EKHK08","EKHK09","EKHK10","EKHK11","EKHK12","EKHK13","EKHK14") VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" contains the semantics error[s]: column "EK_PREFIX" not in any scope
    I tried to change the permissions of the “Discussion” iView, but it did not work either.
    2. <b>Some iViews like “Room Information” throw a Runtime Error as follows:</b>
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/com.sap.ip.collaboration/RoomPartContent/Generic/Pages/com.sap.netweaver.coll.RoomDiscussionPage/com.sap.netweaver.coll.RoomInformationExtended
    Component Name : com.sap.netweaver.coll.appl.ui.room.RoomInformation
    The exception was logged. Inform your system administrator..
    Exception id: 02:17_02/02/07_0006_213711350
    See the details for the exception ID in the log file
    <b>I have figured out that the following error message is common in most or the error messages:
    The SQL statement "INSERT INTO "KMC_URIMAPPER" ("HASH_KEY","EXTERNAL_KEY","CONST_INTERNAL","VAR_INTERNAL","EK_PREFIX","EKHK00","EKHK01","EKHK02","EKHK03","EKHK04","EKHK05","EKHK06","EKHK07","EKHK08","EKHK09","EKHK10","EKHK11","EKHK12","EKHK13","EKHK14") VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" contains the semantics error[s]: column "EK_PREFIX" not in any scope</b>
    Are there any database related configurations required for making the Collaboration Room Discussion functionality work properly?
    Are there any KM related configurations necessary other than those mentioned in the document I am referring to?
    Are there any database related configurations that are required?
    I would really appreciate any help in this matter. Please advise me about any ideas you may have?
    Thanks,
    Raj Seelam

    Hello Lars,
    First of all thank you for your reply.
    <b>do u use Collaboration first time?</b>
    Yes, we just started using Collaboration and this is our first requirement.
    <b>Which roles do u have?</b>
    I have all the required roles (Super Admin, Content Management, Collaboration, Collaboration Room Creation).
    I know that these features are available in NW04 SP 17 without any limitations. I have reviewed SAP Notes 707730, 711093, 709354 and 946470 also.
    This problem is with only a few Collaboration iViews.
    I am able to create Rooms, Enter Rooms, Receive Invitation e-mails without any problem.
    Any suggestions about any possible missing configurations ?
    Thanks Again,
    Raj

  • Oralce 10g 10.1.2 Infrastructure database is unavailable- urgent !!

    Hi All
    could anyone let me know the reason for above error
    is there is log file simlar to alertl.log file for tracing down the errors
    thanks
    kb

    hi
    sorry my mistake
    the problem i am encoutering is as follows. when i click on the infrastructure button i get errors as below
    An error was encountered while loading page. Failed to initialize configuration management user session.. An error occurred when attempting to connect to the Database.
    Resolution:
    Make sure that the database and listener are up.
    If the database is up, make sure that the OracleAS Repository API files ias.properties and iasschema.xml are correctly configured.
    If necessary, use the EM Console to reconfigure the host, user name and password associated with the database
    Base Exception:
    java.sql.SQLException
    ORA-01017: invalid username/password; logon denied
    . ORA-01017: invalid username/password; logon denied
    when i click on ports URL i get error as below
    Error
    Error initializing page. An error occurred when attempting to connect to the Database. Resolution: Make sure that the database and listener are up. If the database is up, make sure that the OracleAS Repository API files ias.properties and iasschema.xml are correctly configured. If necessary, use the EM Console to reconfigure the host, user name and password associated with the database Base Exception: java.sql.SQLException ORA-01017: invalid username/password; logon denied . ORA-01017: invalid username/password; logon denied
    any suggestions
    i have changed the password for DCM by loggiing as sysdba . what is happening is that the Farm is not available
    thanx
    kedar

  • Crw32.exe has encountered a problem and needs to close,pls help

    When I try to use a crystal report version 10.0 to querry from two data source at same time, I got following error:
    Crw32.exe has encountered a problem and needs to close. We are sorry for the inconvenience .
    I have a 8.5 version crystal report and it works just fine.
    The two data source are:
    MS access2003 DB and Sage Mas90 DB.
    I have tried on server 2003 and window XP. none of them works.
    Any help is appreciated.
    Jonathan

    Reporting off 2 datasources should work in CR10.
    I would suggest the following;
    1) Check the version of CR10 and apply SP5 if necessary
    2) Try using different connection methods, if you are using a native connection try odbc for example
    Possible workarounds woulr be to use a main report > subreport
    or
    In Access create a linked table to Mas90

  • Chinese character problem in clob filed,repost,pls Help!

    Hi all,
    We are developing a web-based information system,on Oracle 9i database Release 2 on a AIX platform,the Character set is ZHS16GBK(UTF-8).
    And OC4J is the web server we are planning to use,but installed on another AIX machine,the web page retriving data from a table with clob field,it is not correctly work,only English text can be displayed correctly,Chinese text is shown as '??????????????',other fields with Chinese is correct.
    But when we deployed the project from JDev to oc4j on a windows platform,everything is OK!
    I tried to set enviroment variable on NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK,LANG=zh_CN,but it still doesn't work.
    Please advise!
    Thanks!

    Check for SETLOCALE in EIS<BR>SETLOCALE <LANGUAGE_TERRITORY.CODEPAGE@SORT><BR>SETLOCALE .UTF8@default<BR>this might help you.

  • Wsaewouldblock resource temporarily unavailable,pls help me to resolve it

    When i logon to sapgui it  shows error "wsaewouldblock resource temporarily unavailable" for a particular landscape but otherthan that i can logon perfectly.i m getting this error since last friday and before tat it was fine
    i tried to logon through run->sapgui "Applicaation Server" "sys no" but it also shows error.....

    how to check SAP ports on n/w
    On Windows
    netstat -ano  ---> will list all ports in use
    netstat -ano | findstr 3600   --> will show if port 3600 is in use.
    On Unix
    lsof -i | grep 3600  --> will show if port 3600 is in use.
    Hope that helps.

  • Problems starting weblogic 8.1 . pls help

    hello, if im posting this in the wrong area, pls let me know.
    I'm trying to start WebLogic 8.1 - the sample Medrec server. I'm staring by rinning the bea_start script in /etc/init.d.
    For some reason, the service starts and then dies shortly thereafter. ps -ef shows the bea process:
    localhost:~/bea/weblogic81 # ps -ef | grep bea
    root 6063 1 0 14:57 ? 00:00:00 SCREEN -d -m -S medrec -t medrec sh /root/bea/weblogic81/samples/domains/medrec/startMedRecServerQS.sh
    root 6064 6063 0 14:57 pts/6 00:00:00 sh /root/bea/weblogic81/samples/domains/medrec/startMedRecServerQS.sh
    root 6083 6064 10 14:57 pts/6 00:00:00 /root/bea/jrockit81sp4_142_05/bin/java -Dwrapper.directory=/root/bea/weblogic81/samples/domains/medrec com.bea.launcher.wrapper.WrapperClient -port 6789 -address 228.4.5.6 /root/bea/jrockit81sp4_142_05/bin/java -Dlog4j.config=log4j.properties -Dcom.bea.medrec.xml.incoming=incoming -Dphys.app.wsdl.url=http://localhost:7001/ws_medrec/MedRecWebServices?WSDL -classpath /root/bea/weblogic81/server/lib/DBMSMedRecSubPlugin.jar::/root/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/root/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/root/bea/jrockit81sp4_142_05/jre/lib/rt.jar:/root/bea/weblogic81/common/lib/launcher.jar com.pointbase.net.netServer /noconsole /port:9092 /d:3 /noconsole /pointbase.ini=/root/bea/weblogic81/samples/domains/medrec/pointbase.ini
    root 6091 6064 21 14:57 pts/6 00:00:01 /root/bea/jrockit81sp4_142_05/bin/java -Dplatform.properties=/root/bea/weblogic81/common/lib/platform.properties -Dlauncher.directory=/root/bea/weblogic81/samples/domains/medrec com.bea.launcher.Launcher -multicast_address 228.4.5.6 -multicast_port 6789 -username weblogic -password weblogic -port 7001 -jrockit -Xms96m -Xmx256m -Dlog4j.config=log4j.properties -Dcom.bea.medrec.xml.incoming=incoming -Dphys.app.wsdl.url=http://localhost:7001/ws_medrec/MedRecWebServices?WSDL -Dweblogic.Name=MedRecServer -Dweblogic.ProductionModeEnabled= -Djava.security.policy=/root/bea/weblogic81/server/lib/weblogic.policy -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic
    root 6111 6083 13 14:57 pts/6 00:00:00 /root/bea/jrockit81sp4_142_05/bin/java -Dlog4j.config=log4j.properties -Dcom.bea.medrec.xml.incoming=incoming -Dphys.app.wsdl.url=http://localhost:7001/ws_medrec/MedRecWebServices?WSDL -classpath /root/bea/weblogic81/server/lib/DBMSMedRecSubPlugin.jar::/root/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/root/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/root/bea/jrockit81sp4_142_05/jre/lib/rt.jar:/root/bea/weblogic81/common/lib/launcher.jar com.pointbase.net.netServer /noconsole /port:9092 /d:3 /noconsole /pointbase.ini=/root/bea/weblogic81/samples/domains/medrec/pointbase.ini
    root 6130 6091 81 14:58 pts/6 00:00:04 java -jrockit -Xms96m -Xmx256m -Dlog4j.config=log4j.properties -Dcom.bea.medrec.xml.incoming=incoming -Dphys.app.wsdl.url=http://localhost:7001/ws_medrec/MedRecWebServices?WSDL -Dweblogic.Name=MedRecServer -Dweblogic.ProductionModeEnabled= -Djava.security.policy=/root/bea/weblogic81/server/lib/weblogic.policy -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic weblogic.Server
    but shortly thereafter:
    localhost:~/bea/weblogic81 # ps -ef | grep bea
    root 6172 5839 0 14:59 pts/5 00:00:00 grep bea
    In neither case, can I connect to the Start page - which is my end goal (http://servername:7001/start.jsp).
    Any assistance/advice is much appreciated.
    thanks
    Chuck
    :8}

    bump...any advice/suggestions?
    OS= RedHat 4
    exploring any log files - only one log file is accessed after the error - its:
    root/bea/weblogic81/samples/domains/medrec/pointbase.log
    here are contents:
    /root/bea/jrockit81sp4_142_05/bin/java -Dlog4j.config=log4j.properties -Dcom.bea.medrec.xml.incoming=incoming -Dphys.app.wsdl.
    url=http://localhost:7001/ws_medrec/MedRecWebServices?WSDL -classpath /root/bea/weblogic81/server/lib/DBMSMedRecSubPlugin.jar:
    :/root/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/root/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/
    root/bea/jrockit81sp4_142_05/jre/lib/rt.jar:/root/bea/weblogic81/common/lib/launcher.jar com.pointbase.net.netServer /noconsol
    e /port:9092 /d:3 /noconsole /pointbase.ini=/root/bea/weblogic81/samples/domains/medrec/pointbase.ini
    Nothing written to /var/log/messages.
    Thanks!

  • Sound problem.... Pls help

    Phone works properly except there is no sound on the keyboard or on incomming calls has anyone else has this problem??? How did you fix it?

    Is the silent switch on?
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Who here uses intel graphics 4400 n experience pixelation problems.  cos I do. pls help

    Help

    [koala@myhost ~]$ lsmod
    Module Size Used by
    uhci_hcd 18764 0
    video 16208 0
    backlight 3652 1 video
    ath_pci 207800 0
    wlan 186612 1 ath_pci
    ath_hal 298208 1 ath_pci
    ath5k 88896 0
    Here is my lsmod...:)

  • Problem in msi enjoy 71 pls help

    hi i have msi enjoy 71 and yesterday it was with dark screan and when i pute the original rom in my sd card it will just downloade but nothing happing just be black 

    Quote from: pidro.milito on 27-May-14, 21:33:39
    hi i have msi enjoy 71 and yesterday it was with dark screan and when i pute the original rom in my sd card it will just downloade but nothing happing just be black 
    Friend you tried the recovery provided by the MSI website? follow the link if you could post al ... OK!
    Link http://www.msi.com/product/windpad/Enjoy_71.html#/?div=Firmware

  • Oracle 10g Infrastructure database unavailable alert message!!!

    Dear All,
    I have installed Oracle 10g AS on A machine & Oracle 10g Infrastructure on B machine both are in sync form means Middle-tier A machine configured with Infrastructure B machine well i am facing a problem for few days that in a day 4 or 5 times Infrastructure get down & i get the message on Machine B "Infrastructure database is unavailable" why this is happening? if someone knows how to overcome this problem please let me know how
    Thanks,
    Waheed

    Dear have a look on below mentioned logs;
    error.log
    Error writing to log file. 68 messages lost.
    [Fri Feb 03 10:43:42 2006] [error] [client 10.140.140.143] [ecid: 1138945421:10.140.140.143:3652:4112:7569,0] mod_plsql: /pls/orasso/htp.p HTTP-503 ORA-257 Proxy log On failed.Please verify that you have specified correct connectivity information i.e. username, password & connect-string in the DAD
    HTTP_Server~1
    06/09/28 18:52:16 Start process
    fopen: No such file or directory
    Apache.exe: could not open document config file d:/ohinfra/rdbms/demo/aqxml.conf
    SSOServer.log
    Thu Sep 28 15:51:54 GMT+05:00 2006 [ERROR] Orion Launcher SSO: DB Error. Please make sure the database is available and restart SSO Server
    oracle.security.sso.server.util.DBException: Empty DB connect string. Could not create DB connection pool
         at oracle.security.sso.server.util.DBConnectionPool.init(DBConnectionPool.java:132)
         at oracle.security.sso.server.util.DBConnectionPool.init(DBConnectionPool.java:82)
         at oracle.security.sso.server.ui.SSOLoginServlet.init(SSOLoginServlet.java:233)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2141)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4582)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4676)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:820)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:542)
         at com.evermind.server.Application.getHttpApplication(Application.java:889)
         at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:690)
    Further guide me...Please
    Thanks,
    Waheed

  • Problem in answerMachine  pls help me

    Hi All my problem is exactly when u detect dtmf char can not stop playying wav file the code is below
    import java.net.*;
    import javax.telephony.*;
    import javax.telephony.events.*;
    import javax.telephony.media.*;
    import javax.telephony.media.events.*;
    import java.io.*;
    //class MachineCallObserver implements MediaCallObserver {
    class MachineCallObserver implements CallObserver {
    public void callChangedEvent(CallEv evlist[]) {
    TerminalConnection tc = null;
    MediaTerminalConnection mtc = null;
    for (int i = 0; i < evlist.length; i++) {
    CallEv ev = evlist;
    if (ev instanceof TermConnCreatedEv) {
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    String sExt = ".wav";
    try {
    mtc.usePlayURL(new URL("file:./greet" + sExt));
    //mtc.useRecordURL(new URL("file:./Treeting" + sExt));
    catch (Exception excp) {
    System.out.println("(1)"+excp.toString());
    else if (ev instanceof TermConnRingingEv) {
    final TerminalConnection tcc = ((TermConnEv)ev).getTerminalConnection();
    Terminal t = tcc.getTerminal();
    Address a[] = t.getAddresses();
    // For the callers name
    //setTitle(t.getName()+"bilal");
    // For the callers phone number
    //lblMisc.setText(a[0].getName());
    System.out.println(a[0].getName()+"bilal");
    Runnable r = new Runnable() {
    public void run() {
    try{
    tcc.answer();
    catch (Exception excp){
    // Handle answer exceptions
    System.out.println( "hata2");
    Thread T = new Thread(r);
    T.start();
    try {
    tc.answer();
    catch (Exception excp) {
    System.out.println("(2)"+excp.toString());
    else if (ev instanceof MediaTermConnAvailableEv) {
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.setDtmfDetection(true);
    mtc.startPlaying();
    if (ev instanceof MediaTermConnDtmfEv) mtc.stopPlaying();
    catch (Exception excp) {
    System.out.println("(3)"+excp.toString());
    else if (ev instanceof MediaTermConnStateEv) {
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    int state = mtc.getMediaState();
    //if ((state == 0) && (MediaTerminalConnection.PLAYING == 0)) {
    //mtc.startRecording();
    catch (Exception excp) {
    System.out.println("(4)"+excp.toString());
    else if (ev instanceof MediaTermConnUnavailableEv) {
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.stopRecording();
    mtc.stopPlaying();
    mtc.setDtmfDetection(false);
    catch (Exception excp) {
    System.out.println("(5)"+excp.toString());
    else if (ev instanceof MediaTermConnDtmfEv) {
    String sExt = ".wav";
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.stopPlaying();
    catch (Exception excp) {
    System.out.println("(6)"+excp.toString());
    char digit = ((MediaTermConnDtmfEv)ev).getDtmfDigit();
    System.out.println("detected DTMF: " + digit);
    switch (digit) {
    case '0':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./zero" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(7)"+excp.toString());
    break;
    case '1':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./one" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(8)"+excp.toString());
    break;
    case '2':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./two" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(9)"+excp.toString());
    break;
    case '3':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./three" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(10)"+excp.toString());
    break;
    default:
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./greet" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(11)"+excp.toString());
    break;
    please help me in this problem , if you u can pls help me

    > Hi All my problem is exactly when u detect dtmf char
    can not stop playying wav file the code is below
    import java.net.*;
    import javax.telephony.*;
    import javax.telephony.events.*;
    import javax.telephony.media.*;
    import javax.telephony.media.events.*;
    import java.io.*;
    //class MachineCallObserver implements
    MediaCallObserver {
    class MachineCallObserver implements CallObserver {
    public void callChangedEvent(CallEv evlist[]) {
    TerminalConnection tc = null;
    MediaTerminalConnection mtc = null;
    for (int i = 0; i < evlist.length; i++) {
    CallEv ev = evlist;
    if (ev instanceof TermConnCreatedEv) {
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    String sExt = ".wav";
    try {
    mtc.usePlayURL(new URL("file:./greet" +
    ./greet" + sExt));
    //mtc.useRecordURL(new
    ordURL(new URL("file:./Treeting" + sExt));
    catch (Exception excp) {
    System.out.println("(1)"+excp.toString());
    else if (ev instanceof TermConnRingingEv) {
    final TerminalConnection tcc =
    on tcc = ((TermConnEv)ev).getTerminalConnection();
    Terminal t = tcc.getTerminal();
    Address a[] = t.getAddresses();
    // For the callers name
    //setTitle(t.getName()+"bilal");
    // For the callers phone number
    //lblMisc.setText(a[0].getName());
    etName());
    System.out.println(a[0].getName()+"bilal");
    Runnable r = new Runnable() {
    public void run() {
    try{
    tcc.answer();
    catch (Exception excp){
    // Handle answer exceptions
    System.out.println( "hata2");
    Thread T = new Thread(r);
    T.start();
    try {
    tc.answer();
    catch (Exception excp) {
    System.out.println("(2)"+excp.toString());
    else if (ev instanceof
    anceof MediaTermConnAvailableEv) {
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.setDtmfDetection(true);
    mtc.startPlaying();
    if (ev instanceof MediaTermConnDtmfEv)
    onnDtmfEv) mtc.stopPlaying();
    catch (Exception excp) {
    System.out.println("(3)"+excp.toString());
    else if (ev instanceof MediaTermConnStateEv) {
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    int state = mtc.getMediaState();
    //if ((state == 0) &&
    e == 0) && (MediaTerminalConnection.PLAYING == 0)) {
    //mtc.startRecording();
    catch (Exception excp) {
    System.out.println("(4)"+excp.toString());
    else if (ev instanceof
    anceof MediaTermConnUnavailableEv) {
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.stopRecording();
    mtc.stopPlaying();
    mtc.setDtmfDetection(false);
    catch (Exception excp) {
    System.out.println("(5)"+excp.toString());
    else if (ev instanceof MediaTermConnDtmfEv) {
    String sExt = ".wav";
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.stopPlaying();
    catch (Exception excp) {
    System.out.println("(6)"+excp.toString());
    char digit =
    digit = ((MediaTermConnDtmfEv)ev).getDtmfDigit();
    System.out.println("detected DTMF: " +
    TMF: " + digit);
    switch (digit) {
    case '0':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./zero" +
    file:./zero" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(7)"+excp.toString());
    break;
    case '1':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./one" +
    "file:./one" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(8)"+excp.toString());
    break;
    case '2':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./two" +
    "file:./two" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(9)"+excp.toString());
    break;
    case '3':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./three" +
    ile:./three" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(10)"+excp.toString());
    break;
    default:
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./greet" +
    ile:./greet" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(11)"+excp.toString());
    break;
    please help me in this problem , if you u can pls
    help me
    hi my frinds this is code with out italic font

  • Pls help me urgently

    recently i try to find a way to solve the problem that upload retrieve and download the audio file (BLOB or ordaudio) into oracle database 9i by pure ASP, unfortunatly i just implement the operation of text. is there anyone know how to solve the problem. thanks a lot!

    Hi,
    Everytg is attacehd fine...
    they are getting ouput..
    but the problem is in the output .my smartform output is not coming.
    they are getting some other forms output.
    the form that i developed and executed seprtly when they are putting that smartform there in the nace ...they are nort getting ouput..
    will there be problem in the routine.
    or driver progarm problem
    dribver poprogrtam is 'SAPFM06P'
    pLS HELP PLS

Maybe you are looking for

  • Shuffle wont sync because it cannot find the relevant disk !

    My iPod shuffle (3rd generation) sync's when its plugged in, but when i go to sync it after checking/unchecking my music or attempting to chane details in my summary field, it wont sync. A meesage appears and says something like "Unable to sync "....

  • 5800: How can I select access points manually in a...

    The access point management of the 5800 is somewhat different: using Web you can select the access point every time you start it, but other applications using network (e.g. Opera Mini) start connecting Wifi or 3G whatever comes first which means when

  • Ipad2 can not recognize Canon digital camera EOS?

    Dear Sir I connect my digital camera, Canon EOS to Ipad 2 through camera USB kits, and message shows " Cannot USE Device The connected USB device is not supported" on iPad 2 screen. Is it a known issue? I thought the camera kits should be good for al

  • ImageView with transparent image not clickable

    I created an ImageView with an image with transparent portions. I also did some scaling and moving, which I though might cause this effect, but that is not the case. When I click on the transparent portion of the image the onMouseClick event is not f

  • Why am I asked to upgrade to Mavericks twice

    I've been asked to update to Mavericks twice now. Both updates are taking around 30 minutes. Is this normal or not really?