Flash 8 AS2 How to trap a connection failure?

I am building a Flash application which uses Flash Remoting and CFC's to connect clients to CF8 data sources on an in-house server (no Web involved!). I have a number of screens working fine but I'm now working to tighten up the code, in particular the area of error detection. The one area I can't seem to conquer is detecting if the server connection is down. All I get (when testing) is the "Error opening URL..." message in the output window. How can I trap this in the code?

I change the thin driver to oci driver ,jdbc:oracle:oci:@orcl ,then fix the problem.

Similar Messages

  • How to Alert RFC connection failure via message mapping? Kindly Help!

    Hi Experts,
        I have a JMS - XI - RFC scenario.
    JMS receives the Rosattenet PIP contents and sends it to RFC function module in remote SAP R/3 system.
       I have a requirement where I have to monitor RFC connection failure because of the remote R/3 system being down. I have to send a email alert where the subject contains the PIP number to understand for which PIP the connection failed.
      The PIP number exists in the PIP content at the interface.
      If I use the Alert configuration in the runtime workbench for monitoring then I cannot dynamically pass the PIP number.
      Only way I think of triggering alert is in the message mapping via a Java UDF.
      But I am not sure how can I do this? How do I check in the UDF if RFC connection has failed? Is this the correct approach?
      How to acheive my requirement? Note that my email subject content is dynamic bacause if PIP number.
    Please help!
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi Gopal,
    what version/sps of XI are u running?
    The easiest way to do what u want inside a UDF is to
    1. use JCo to try estabilish a connection to the remote SAP System
    2. if that fails, use JavaMail to send an email message
    Let your UDF work on the PIP number, accepting it as input, and (maybe) returning it as output if everything goes ok. Otherwise break the mapping execution as described by Michal in one of his last weblog (using Dynamic Configuration).
    Note that the above method doesn't guarantee that the message will be actually delivered, as some seconds could last between your check and the real RFC delivery operated by the Adapter Engine...
    I am evaluating a way to do the same with Alert Framework. I will let you know the result!
    Cheers,
    Alex

  • HOW to handle JCO connection failure

    if i have a JCO connection.....to process the RFC function...
    when i call the function...the job leave to R3 to do the rest...
    yet ..the connection broken..at this time..
    the is no result return..and consequency receive the
    RFC_ERROR_COMMUNICATION exception...
    how do i handle this kind of situation....
    what should R3 SHOULD DO..
    let's say i have a jco connection
    the connection broken during processing...how do i return the error message to the java program
    the error include....RFC_SYSTEM_FAILURE ,RFC_ERROR_COMMUNICATION
    Message was edited by:
            yzme yzme

    Yzme,
    You have already got answers how to catch this exception.
    Next processing depends on application-specific nature of RFC: whether or not call is idempotent, in simple words -- submitting same request doesn't hurt.
    This comes from the fact that network failure may occurs when transferring request (hence no background processing performed) or when returning response (hence function already executed).
    For idempotent calls there is also an option for automatic re-tries finite number of times. For non-idempotent calls the only option is to display error to user in friendly format.
    An idempotent call is a call that can be executed more than once on the server without undesirable side effects. Take for example Create / Read / Update / Delete operations. Obviously, read is idempotent while it doesn't alter data at all. You may treat Delete as idempotent up to certain extent -- just handle "record not exists" gracefully. Create and Update are not good candidates -- re-submitting same request typically leads to serious problems like duplicate entries or data inconsistency.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • I've down loaded adobe flash player but when I try to veiw video on firefox I'm still told that I need adobe flash player. How do I get firefox to see the flash player download?

    I was trying to view a video I uploaded to facebook using firefox. The system told me to down load adobe flash player. I did but still get the message that I need to down load flash player. How do I get firefox to see the down loaded adobe flash player?

    by installing from within Firefox, Internet Explorer has its own version (Active-X).
    Make sure you are starting in the correct place for Flash
    * http://www.adobe.com/software/flash/about/
    If you want to read PDF files in you browser, you might also want
    * http://get.adobe.com/reader/
    After the download,
    #bring up the download manager ("Ctrl+J") and start your installs. As soon as the install comes up,
    #close Firefox with '''File > Exit''' or "Firefox" button > Exit. Give Firefox some time to close.
    #If install does not proceed, '''terminate "firefox.exe"''' and '''"plugin-container.exe"''' from the "Processes" tab in the Windows Task Manager.
    #* Windows 7 shortcut to the WTM is "Ctrl+Shift+Esc"
    #* or on any Windows system from "Ctrl+Shift+Esc" then choose Windows Task Manager.
    #*Make sure that "firefox.exe" is no longer running -- if it is still running then terminate it by selecting the use "End Process" button or from context menu, and do the same for "plugin-container.exe" if it is found there.
    #proceed with the install.
    '''Warning''': this is the Adobe site and they have chosen to to provide crapware along with their own product. Only install the product you were planning to install. Do not install additional products: including -- "Free! McAfee Security Scan Plus" or "Google Chrome". Installing Google Chrome on your own and installing it because it is offered on the Adobe site are two different things.
    Find updates for your installed plugins at http://www.mozilla.com/plugincheck/ mozilla.com/plugincheck
    -- best to use Adobe's site to really see if their plug-ins are up to date.
    Please fix your caps lock or read what you type, do you think anybody could read my answer if I typed in all caps.
    If the above fails to correct the problem, I would try uninstalling Adobe Flash from your system entirely first, from the control panel then "Programs and Features".

  • I am using windows 8.1. But I recieved the error This apple id is valid but is not an icloud account. How can I get connected to Icloud?

    I am using Windows 8.1. When I try to connect to Icloud I get the Message: This Apple id is valid, but is not an icloud account.
    How can I get connected to Icloud?

    Hello pmarrone,
    You may only sign up for an iCloud account via one of the following systems or devices.
    You can sign up for iCloud on an iPhone, iPad, or iPod touch with iOS 5 or later, or through System Preferences on a Mac with OS X Lion v10.7.4 or later. Just follow the setup instructions for your iOS device or Mac.
    Creating an iCloud account: Frequently Asked Questions
    http://support.apple.com/kb/HT4436
    Cheers,
    Allen

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

  • How to dynamically set connection string for report in C# code?

    Hi,
    I have installed CRVS2010. I have created new Crystal Report WPF Application and new report. I would like to set connection string for report in code dynamically.
    Is this possible?
    Thanks
    Ivana

    Lots of posts in this forum on how to set database connections. WPF should not be a consideration as it's just a viewer. The report engine is still the same. Search these forums. Use the search box at the top right corner of this page. Look at samples here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Note that none of the samples above are using WPF, but like I said, the WPF is just a different viewer and will not impact how the report engine logs on to a database. (I think of it as a gray car vs. a red car. Same engine, just the color is different)
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How many users can connect to a shared drive on a non-server workstation?

    How many users can connect to a shared drive on a non-server workstation? We're waiting for our server to arrive and in the interum we're using a Pegasus 2 R6 attached to an iMac running Mavericks as our fileserver. It's been sketchy, the connection to the server being dropped once in a while or the inability to mount the drive after a week of success. The Pegasus we're using now will be attached to a server once it arrives. For now I need to figure what's coausing trouble before I commit to this being our main storage as planned. The data is backed up every night so I'm not worried, its the usability issues. 5-7 people are mounting this drive and opening/saving at the same time. Is there a limit to Maverick's fileserving ability that may be causing this? Understandable if so.

    The file server in the client version of OS X has a default limit of 10 simultaneous connections. That limit can be raised by installing OS X Server, or lowered by setting a hidden preference. Assuming you've done neither, you may be able to solve the problem temporarily by stopping and restarting file sharing in the Sharing preference pane, or permanently by setting another hidden preference on the server to break idle connections quickly.
    defaults write /Library/Preferences/com.apple.AppleFileServer idleDisconnectOnOff -bool YES
    Stop and restart file sharing. To reverse the change, run this command in the same way:
    defaults write /Library/Preferences/com.apple.AppleFileServer idleDisconnectOnOff -bool NO
    Credit for this solution to ASC member suter:
    this file server will not allow any additional users to log on

  • How to use single connection

    Hello Gurus,
    I am new in adf and using jdev 11.1.2.3.
    I am developing application in which i am using dynamic shell UI. The structure of application is i have one main application modules with the UI shell. The other modules are developed in separate application and has its own data control and task flows and then i deployed them as adf library. Then i am consuming the task flow in the main application.
    As i mention each module has its own data control, so when i open a module it makes new connection with database. It means if i have opened ten modules then it is opening ten connections with database.
    Is is possible i can configure somewhere to use single connection for all modules and not to open the connection for each module.
    And one more thing if i undeploy the application the connection is still with database as v$session view shows it. How i can close connection if i close the tab in ui shell.
    Thanks,

    Hi, You can explore the option of nesting your AM.  Check below links to know more about them.
    Decompiling ADF Binaries: What you may need to know about Nested Application Module
    Nested application modules | ADF KickStart
    Good luck !

  • How do I get Connection Line to show up in Pages

    How do I open Connection Line in Pages. It is grayed out in my menu. Thank you!

    As Jerry says:
    Click on (only) 2 floating objects at a time. It sounds like you have more than 2 selected, otherwise you would not even see thee the menu option.
    Peter

  • I converted aif files to mp3 files in I tunes so I could put them on a flash drive.  Now when I transfer an album to the flash drive I get both the aif files and the mp3 files in the flash drive.  How do I get the iTunes to only copy the smaller file?

    I converted aif files to mp3 files in iTunes so I could put them on a flash drive.  Now when I transfer an album to the flash drive I get both the aif files and the mp3 files on the flash drive.  How do I get the iTunes to only copy the smaller file?

    My suggestion to use the smart playlist was more along the lines of making one list with rules to show everything in your library as long as it was kind "mpeg" (= mp3).
    Smart playlists cannot be edited manually, only by changing the rules.  You can use them as the basis for another smart playlist though.
    There is added overhead to using smart playlists, so don't go overboard.

  • How many people can connect to the mail server 3

    I am looking to grow my business which consist of a growing email base with emails that need to be set up and managed.  How many emails can be hosted on the mac server?

    Hello Thomas,
    "MAXLOGMEMBERS" has nothing to do with the number of users that can connect to the instance. It is a parameter to control the number of files that can be assigned to a group of (redo) log files.
    how many people can connect at Oracle XE?Well, that depends on how they connect. There are parameters controlling the number of sessions in the database. But if you have a technical user, e.g. when using APEX, there may be more users than sessions in the database...
    So you need to clarify what kind of user access you mean.
    -Udo
    Edited by: Udo on 14.10.2011 15:19

  • How to configure JDBC connection in oracle BI publisher with teradata datab

    Hi,
    I am going to use Oracle BI publisher to create report.
    Our database is Teradata.
    How to create database connection for Teradata in BI publisher.
    How to create JDBC connection.
    What should be the Database Driver Class?
    What should be the connection string format?
    Please provide me the suggetion.
    Thanks,
    Santanu Manna

    Hi;
    I suggest please refer below which could be helpful on your issue:
    How To Generate XML Output (Excel, HTML, PDF) for FSG Reports [ID 804913.1]
    E-XMLP: BI Publisher Report RTF Template to Excel output is not same as PDF,RTF or HTML format.[Article ID 1515711.1]
    BI Publisher Enterprise Excel Output File Size is Too Large [ID 1271544.1]
    Regard
    Helios

  • How to change the connection for a recurring report

    I have a group of reports running in production on recurring schedules.  I need to update the database connection for these as we are changing our server environment.
    I open the report in Crystal Reports 11 and changed the database connection saved the report back to the Enterprise Server location (I also have a backup of the original).  When I preview the report using the Central Management Console, the report uses the updated database connection info.  When I test the recurring report I get a logon failure.  When I go to the instance to look at the database logon for the recurring instance it shows the old database connection.
    How can this database connection get updated for the current group of instances for these recurring reports?
    Thanks
    BOBJCMC

    Hi Stratos,
    I tried to use .NET SDK to update the Logon_Info properties as below. But it does not seem to be working. Is this the correct way to update logon info for recurring instances?
    infoObject.ProcessingInfo.Properties["SI_LOGON_INFO"].Properties["SI_LOGON1"].Properties["SI_USER"].Value  = <userid>
    infoObject.ProcessingInfo.Properties["SI_LOGON_INFO"].Properties["SI_LOGON1"].Properties["SI_PASSWORD"].Value  = "pwd"
    Thanks
    Ajith

  • How to create a connection pooling in Netbeans 6.0 using the oracle driver

    hi all,
    I am using Netbeans 6.0. Apache Tomcat 6.0.14 server, oracle 9i.
    I tried to create a connection pooling using tomcat web server.
    I have included the following code in context.xml and web.xml.
    CONTEXT.XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/network1">
    <Resource name="jdbc/myoracle"
    auth="Container"
    type="javax.sql.DataSource"
    username="scott"
    password="tiger"
    factory="BasicDataSourceFactory"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:odbc:thin:@127.0.0.1:1521:mydb"
    maxActive="20"
    maxIdle="10"
    maxwait="-1"/>
    </Context>
    WEB.XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <resource-ref>
    <description>Oracle Datasource example</description>
    <res-ref-name>jdbc/myoracle</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    After that i have included the following JDBC driver's jar files in the $Catalina_Home/lib folder.
    classes 111.jar,
    classes 111_g.jar
    classes12.jar
    classes 12_g.jar
    classes12dms.jar
    classes12dms_g.jar
    nls_charset11.jar
    nls_charset12.jar
    ocrs12.jar
    ojdbc14.jar
    ojdbc14_g.jar
    Then i stop the tomcat web server and start it again.
    In jsp page i have included the following code:
    Context ctx=new InitialContext();
    Context envctx=(Context)ctx.lookup("java:comp:env");
    DataSource ds=(DataSource)envctx.lookup("jdbc/myoracle");
    Connection con=ds.getConnection(); ----->(In this line an error occured that Connection class cannot be found.)
    please help me how to create a connection pooling and rectify the error in conneciton.
    Thanks in advance

    Please refer
    http://www.netbeans.org/kb/60/web/customer-book.html

Maybe you are looking for

  • How to get the absolute path of a DTD referenced in an XML?

    Hello! My OS is Windows. I use "org.apache.xerces.parsers.SAXParser" which implements LexicalHandler to parse XML files. When method "startDTD" starts and "systemId" is got, how can I get the absolute path? Is there any simple way? Regards!

  • MacBook Pro as second monitor for 27" iMac

    Hello, Yesterday I purchased a 13" MacBook Pro and a Thunderbolt cable. I figured out how to use my 27" iMac as an extended display for the MacBook Pro by clicking cmnd F2 on the iMac's keyboard but how do you use MacBook Pro as an extended display f

  • Please Help me place the arrows of my ScrollPane scroll bar together on one end of the scroll track!!

    I have a scrollpane component with a movie clip of some thumbnail images. I just want to have its scrollbar arrows together on one end of the track (or together ANYwhere) instead of having them at opposite ends of the scroll track. I have been able t

  • Service Contracts for Professional Services

    What is the best way to add a service contract to a partner so we can open service calls and know what the service contract covers? some customers have multiple service contracts and some have none. it is important for the tech that opens a service c

  • Why not compile error on "incompatible interface cast"?

    simeple code here class IncompInterfaceTest { void doTest() { ClassB b = new ClassB(); InterfaceA a = (InterfaceA)b; interface InterfaceA{} class ClassB{} javac issues "ClassCastException" on runtime rather than compile error. as i know incompatible