Debugging CFNetwork based application

Hello.
I am developing an application with CFNetwork and I face quite strange issue: FIN packet is sent to the remote server immediately after packet with http request is sent, or FIN packet is sent later during transmission of the response body (before whole body is received). I tried to investigate my code for misplaced closes of CFReadStream or other issues, but so far with no success. Are there any recommendations for debugging of CFNetwork based applications? Can I for example force CFNetwork to write some logging messages?
Thanks,
__faramir

__faramir wrote:
Are there any recommendations for debugging of CFNetwork based applications?
Don't do it? Seriously, unless you are writing code where you have to pay attention to such things, you are coding at far too low a level. Since you mentioned things like "http" and "the remote server", that certainly sounds like it is the case. Look for some higher-level interfaces.

Similar Messages

  • Debugging portal based application

    Hi,
    Can anybody tell me how to debug an application based on Portal?
    regards
    Juhi Kulshreshtha

    You can simply use the sap logging API and dump debug statements to default.trc throughout your code.  This is especially useful if its you dont want to/cant use the eclipse debugger:
    http://help.sap.com/saphelp_nw04s/helpdata/en/4a/c3953ff1353c17e10000000a114084/frameset.htm
    Reward points if this helps

  • Bobj is undefined error while debugging a web application

    Hello, I am developing an asp.net web application in which I display a report, and testing it by using a sample (dummy) report that's saved on the computer's hard drive.  In design mode, the report displays properly, when when I try to debug the site on my machine (the server in this case, but it should work on any computer, since debugging is done on localhost), the site crashes and returns a Microsoft JScript error 'bobj is undefined'.  I have already tried moving the CrystalReportsViewer folder to be a sub-directory of the application (physical and virtual), as well as adding a script tag to refer to the location of the .js files in that directory, but nothing seems to fix the error.
    I recently tried installing the fix-packs and service packs for crystal reports, but the problem persists.
    I"m running Windows 7, VS 2008, Crystal Reports 2008, and IIS 7.  Thank you in advance.

    Hi;
    Compiling as 32 bit is only available for a Windows based application, not a Web one. You need to configure IIS to run either 32 or 64 bit.
    As for the bobj undefined error, try these kbases:
    [Bobj|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233373338333933353332%7D.do]
    [Undefined|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133383333333033363335%7D.do]
    Regards,
    Jonathan

  • Flex 4.5 mxml based application not running after iOS packaging on i pad

    I have created one mxml based application on flex 4.5 and make the .ipa file by iOS packaging of adt command.The command  goes as followes
    adt -package -target ipa-debug -storetype pkcs12 -keystore  development_key.p12 -provisioning-profile flex_air.mobileprovision  testIphone.ipa testIphone-app.xml testIphone.swf
    The .ipa files are generated in the root folder of the C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\bin folder.
    But when I am running that file in Ipad it is not working.Cant install that application on Ipad.
    Can anybody have any solution for this??

    Hi Debarghya:
    As you mention "Cant install that application on Ipad." I am assuming that you can't get it on your iPad if that is the case. There are two things you should check.
    1. Does your mobileprovision has your device added to it, on iTunes portal?
    2. Make sure the id tag in testIphone-app.xml matches with your application identifier for which you created this provision and certificate on iTunes portal.
    If the problem is that application is installed on your iPad. But when you launch you see black screen forever or application closes automatically to take you to home screen.
    1. try with  -target ipa-debug-interpreter instead of -target ipa-debug and see if application starts and post your findings back.

  • To convert applet-based application?

    Hi
    There are some tools on market to run an applet-based application on server side. Those tools convert the behavior of applet application to Jsp application. So they run the application on web server and send HTML to web browser.
    One of those tools is WebCream(www.creamtec.com)
    Would appreciate to let me know other tools or any other ways to achive this.
    Thanks in Advance.

    repost

  • How to add iad's to window based application in xcode for ios

    hello,
    Im trying to add iad's to a window based application. I add the framework and add the banner in interface builder. The program builds without any problems but when I try to run the application on the simulator, the app crashes. Don't know what im doing wrong. Do I need to add any extra code or something. Please help, thanks in advance

    hello,
    Im trying to add iad's to a window based application. I add the framework and add the banner in interface builder. The program builds without any problems but when I try to run the application on the simulator, the app crashes. Don't know what im doing wrong. Do I need to add any extra code or something. Please help, thanks in advance

  • Conversion of forms5.0 to web based application

    dear folks,
    i have an existing application which runs on forms 5.0. i want to
    convert it to a web based application. i do not want to rewrite
    the scripts.if some of you could tell me the details about how to
    go about it.
    null

    I am not sure if there is any tool to do that.
    You can delete WebSphere specific xml files from ear/jar and open it in Weblogic's builder tool. Weblogic Builder is a GUI tool. Helps you assign values for deployment parameters, Transaction attributes, JNDI names and so on. Then you can generate deployment descriptors. Subsequently you can modify the descriptors as and when you want.

  • Client/Server to Web-Based application Conversion

    Hi! Everyone,
    I have couple of questions for you guys.
    Our Client had recently upgraded Forms 4.5 to 6i to move from Client/Server based application to Web based application.
    They are using Forms Server 6i Patch Set 1, OAS 4.0.8.1, Windows NT Service Pack 5 and Oracle 7.3. They are facing the following error every now and then, when they run the forms,
    "FRM-92100: Your connection to the server was interrupted. This may be the result of a network error or a failure on the server.You will need to re-establish your session."
    Please let me know what might be causing the above error. The only problem i can think about might be Oracle 7.3. If i am right only Oracle 8 and above supports Forms 6i.
    Can anyone let me know some tips and/or techniques to upgrade Forms 4.5 to 6i. If there are any important settings/steps which we might have over looked during the upgrade, please list them.
    Any kind of help is greatly appreciated.
    Thanks,
    Jeevan Kallem
    [email protected]

    Most of the code is use with no changes at all.
    See otn.oracle.com/formsupgrade
    Regards
    Grant Ronald

  • How to integrate web based application to windows based application

    Hi,
    Experts,
    we developed web based application in this when we raising
    invoice document after adding this we need to updated Amount
    in integratee SAP B1 then that Amount we need Update The
    Amount  in OACT Table  how we can Update in Amount Field
    in OACT Particular Account Code. plz Guide  me. and how to
    integrate web absed application to windowbased application
    plz help me.
    Regds,
    Samapth.

    Dear sampathdevunuri kumar,
    You may develop the addon based on SDK DIServer for required function.
    The DI Server is an extension of the DI API and supports all its objects. It is intended for high-volume data integration, where numerous client connections must be managed simultaneously and optimized for speed. It is also suitable where Web-services architecture is preferred.
    Please refer to SDK help and SDK DIServer sample for more information.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Convert AWT based application to ESWT based application on PDA

    Dear Experts ,
    is it possible to work with ESWT framework with MDSD 4.0 ( AWT based application) ?

    Hi Ahmed,
    It is not possible to convert AWT application to ESWT.
    Regards,
    Dhanya

  • Web Based Application Single Sign on With Enterprise Portal

    Good day Developers,
    My question is really a two part question so forgive me in advance for asking in one post as I think they are relative to each other. My project is currently exlporing the creation of functionality that will allow the following:
    1. We want to allow a secure Web Based application possessing the abilitiy to auithenticate the user into Enterprise Portal and by passing the login screen to get to a landing page/iview in our Enterprise Portal instannce.
    2. We want the abilitity to perform a check of the user and create the user in the enterprise portal on the fly if they do not already exist.
    So far in my research I've come across tools and white papers mentioning the use rof oAuth and OpenID. Is that the right way to tackle these two items. Thanks for your help in advance.
    JD

    Hi
    1. You can do SSO between you application and portal using Verisign or third party authentication tool. I am not pretty sure how landing page and all will work as you mentioned.
    As portal is web based, you can deply your application in portal server. So that you will not need any other authentication tool.Also you can save effort , cost.
    2. By deploying application in portal also you do not have to concentrate on User management, which is itself a huge effort you have to put. Else you can go for third party tools like Identity management or ADS.
    -Yogesh

  • Authentication between Single Sign-On and Web based applications

    Hi everyone,
    I need to create a way in Portal 10g (10.1.2.0.2) that allow me to do the following:
    Once the user is logged on Portal (against Single Sign-On - SSO) he doesn't need to retype his username/password when he access a web based application throught the portal, in my case, an ASP application (not .NET, just ASP).
    I made a test creating a External Application in SSO and after publishing this portlet (external application) inside portal.
    It worked, BUT I was prompted to inform username/password to log on the aplication.
    So, the user end up entering his password twice.
    Does anybody know a way to acomplish this task?
    The documentation I'm researching is:
    Oracle Application Server Single Sign-On
    Administrator's Guide
    10g Release 2 (10.1.2)
    B14078-02
    Oracle Application Server Single Sign-On
    Security Guide
    10g Release 2 (10.1.2)
    B13999-03
    Thank you very much,
    Diogo Santos.

    have figured out how to secure any HTML, ASP, PHP, CFM, etc. web page again Portal / OID using the PDK toolkit.
    Using AJAX (Asynchronous JavaScript and XML) and one Oracle Stored Procedure just adding a simple Javascript call to any HTML, ASP, PHP, etc. web page can secure it via Oracle SSO (OID). Access to any secured web page will require that it to be linked from an authenticated Portal session or a page opened in an authenticated Portal session.
    This process can be easily modified to add in group security etc. This is just my starting point.
    1) Create a stored procedure
    # Make sure it has access to portal.wwctx_api.is_logged_on
    CREATE OR REPLACE PROCEDURE login_ajax_check (
    display_error IN number default NULL) AS
    BEGIN NULL;
    If portal.wwctx_api.is_logged_on = false then
    htp.prn('DENY');
    ELSE
    htp.prn('ALLOW');
    END IF;
    Exception when others then htp.p('DENY');
    END;
    2) Use this Javascript in any page you wish to secure.
    <-- Begin Paste Here -->
    <script>
    var allowgo=2
    function ajaxCallRemotePage(url)
    if (window.XMLHttpRequest)
    // Non-IE browsers
    req = new XMLHttpRequest();
    req.onreadystatechange = processStateChange;
    req.open("GET", url, false);
    req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
    req.send(null);
    else if (window.ActiveXObject)
    // IE
    req = new ActiveXObject("Msxml2.XMLHTTP");
    req.onreadystatechange = processStateChange;
    req.open("GET", url, false);
    req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
    req.send();
    else
    return; // Navigateur non compatible
    // process the return of the "ajaxCallRemotePage"
    function CheckPortal()
    ajaxCallRemotePage('[Your page calling the procedure from above]');
    function processStateChange()
    if (req.readyState == 4)
    if (req.status == 200)
    if (req.responseText.substring(0,4) == 'ALLO')
    allowgo = 0;
    else
    allowgo = 1;
    function doPage()
    if (allowgo==1)
    window.location='[Your login or error page]';
    CheckPortal();
    doPage();
    </script>
    <-- End Paste Here -->
    That's it!!! Super easy. It works great too.
    Larry Schenavar
    [email protected]

  • Registering the Web based application as a Partner Application

    Good day
    I went through the suggested documentation of registering a
    web based application as a partner application of the SSO Login Server.
    I installed the SSOSDK.JAR and went through the demo application (JSP Demo)
    which consists of the following programs :
    papp.jsp
    ssoinclude.jsp
    ssoEnablerJspBean
    SSOEnablerBean
    SSOSignon
    As per the technical documentation,I register this demo application as a
    partner application.
    1 - The source code of the papp.jsp checks for the existence of the user
    through method of ssoEnablerJspBean [getSSOUserInfo(request, response)] which
    calls method of SSOEnablerBean [getSSOUserInfo (request, response) and this
    method calls getUserInfo(p_request) of SSOEnablerBean (the same program) to
    check the existence of the application cookie.
    2 - If it doesn't exit , it redirect it to the SSO Login page for user
    authentication.Once the user is authenticated, a SSO login cookie is created on
    the client's browser and redirects back to the SSOSignOn.
    3 - The SSOSignOn program creates the application cookie and redirects back to
    the entry point of the demo application which is papp.jsp.
    My Questions are as follows :
    1 - Instead of creating a session object within my web based application to hold some
    information used between the different pages, can I define them in the
    application cookie? kindly advise? Is there any limitation for the length of
    the application cookie? If yes, what will be the risk?
    2 - The SSOSignOn program is calling a method in the SSOEnablerBean
    [setPartnerAppCookie(response, request). Within this method , it is retrieving
    the parameters values of the request object as :
    request.getParameterValues("urlc")[0];
    What is the role of this [urlc]? Is it hard coded? Can I change it?
    3 - In order to ensure that I am still dealing with the same user, shall I put
    the above security check procedure on each page of my weeb based application? Kindly advise?
    Thanks in advance for your prompt feedback
    regards

    Dear Paul
    I think there is a misunderstanding regarding the last correspondence.
    I am talking about the customized home page of the PORTAL and not the home page of my web based application (JSP) .So in this case, Am I able to use the customized home page which contains a login portlet instead of the default Login page of the SSO Login Server.Kindly advise!!!
    On the other hand, I am facing a problem during the surfing of the web based application.
    The web based application consists mainly of two packages :
    Package I : Bank.counter which contains a set of jsp pages.
    JSP_HOME_COUNTER (MAIN PAGE WHICH CONTAINS 2 FRAMES)
    JSP_LEFT_FRAME_COUNTER
    JSP_MAIN_FRAME_COUNTER
    JSP_MAIN_FRAME_COUNTER_DETAIL
    Package II : Bank.portfolio which contains a set of jsp pages.
    JSP_HOME_PORTFOLIO (MAIN PAGE WHICH CONTAINS 2 FRAMES)
    JSP_LEFT_FRAME_PORTFOLIO
    JSP_MAIN_FRAME_PORTFOLIO
    Please note that the SSO classes are residing under the first package.
    As agreed on in the third question, I am including in each page of my web based application, a security check procedure as follows :
    <%@ include file="ssoinclude.jsp" %>
    <%
    if(usrInfo == null)
    response.getWriter().println("<center>User information not found</center>");
    else
    my jsp code.......
    %>
    Please note that all the jsp page of the portfolio package are pointing to the SSO classes as follows :
    <%@ include file="../counter/ssoinclude.jsp" %>
    <%
    if(usrInfo == null)
    response.getWriter().println("<center>User information not found</center>");
    else
    my jsp code.......
    %>
    Once I invoke the JSP_HOME_COUNTER , it will render the JSP_LEFT_FRAME_COUNTER page and
    JSP_MAIN_FRAME_COUNTER page which invokes the SSO Login page. Once the user has been authenticate, the result of the JSP_MAIN_FRAME_COUNTER is rendered successfully. The result contains an hyperlink to the
    JSP_MAIN_FRAME_COUNTER_DETAIL page. As the user has been authenticated , this page is rendering automatically the result without displaying the SSO Login page. (Perfect as of now!!).
    Once I invoke the JSP_HOME_PORTFOLIO from the JSP_HOME_COUNTER, it runs the security procedure without any rendering of the SSO Login page (fine!!) but redirects me back to JSP_HOME_COUNTER instead of rendering the result of the JSP_HOME_PORTFOLIO.
    please note that the m_requestUrl variable in the SSOEnablerJSPBean class has been assigned the folowing value : JSP_HOME_COUNTER
    Kindly advise .

  • Problem with Java-based application and WebVPN

    Hello. Could you please help me in find out any specification/known limitations in using Java-based applications through WebVPN in Cisco ASA 5520 v8.3(2).
    A customer of mine has got in trouble in using a Java viewer for graphical files that is invoked by another application (this one correctly served via WebVPN), that cannot be launched because JVM does not find it (NullPointer).
    Our suspects are generically about the URL rewriting of the WebVPN and/or unsupported configuration in the ASA SSL certificates vs Java.
    Any hint about where to search or what to try?
    Thanks.

    Hello. Could you please help me in find out any specification/known limitations in using Java-based applications through WebVPN in Cisco ASA 5520 v8.3(2).
    A customer of mine has got in trouble in using a Java viewer for graphical files that is invoked by another application (this one correctly served via WebVPN), that cannot be launched because JVM does not find it (NullPointer).
    Our suspects are generically about the URL rewriting of the WebVPN and/or unsupported configuration in the ASA SSL certificates vs Java.
    Any hint about where to search or what to try?
    Thanks.

  • Stand alone vs. Browser based application

    Can someone please tell me what are the pro's and con's of a browser based application specially for an XML authoring tool.
    Here are some of the advantages I found for non-browser application:
    1. We have a flexible submittal process, since the user can launch the application anytime.
    2. Once launched, user can work offline. When done, user can again connect to the network and save the document to a repository.
    3. We will have a better look and feel for our authoring tool, since it is not constrained within the browser area.
    Let me know your thoughts and ideas.
    null

    Can someone please tell me what are the pro's and con's of a browser based application specially for an XML authoring tool.
    Here are some of the advantages I found for non-browser application:
    1. We have a flexible submittal process, since the user can launch the application anytime.
    2. Once launched, user can work offline. When done, user can again connect to the network and save the document to a repository.
    3. We will have a better look and feel for our authoring tool, since it is not constrained within the browser area.
    Let me know your thoughts and ideas.
    null

Maybe you are looking for

  • How to fix the Blue Screen of Death for iPhone 5S?

    I have an iPhone 5S and I never got water on it, dropped it, or inflicted any kind of damage upon it. But one day when I turned it on it kept getting this blue screen and then restarting CONSTANTLY. This is referred to as the Blue Screen of Death (BS

  • Macbook Air 2014 unbearable slow

    Ever since I updated to Yosemite back in October, my macbook air has been so god **** slow. I can't get **** done on it, and my fans are overheating all the time. When I start IntelliJ, the CPU overclocks itself to 300%, same goes for photoshop. I ca

  • OS 9 Classic needed.  Can I use Power Book G4 software in my system?

    I have a problem. I know very little about the computer. There is no OS 9 Classic in my hard disc. My computer came to me with no discs. I'm trying to install a printer, and a camera. They ask for OS 9 Classic, saying it's not in the computer. I was

  • Hide a field inherited by the content type in a custom list definition

    The requirement is to create new content type that inherits from a Parent content type. I also created custom document library definition that uses the newly created content type. There are some fields that are inherited from the parent type that I w

  • 5.0.2 dot release available for InDesign Server

    The 5.0.2 Dot Release for InDesign, InCopy and InDesign Server is now live on Adobe.com and available through Help>Updates. This update provides key fixes in the areas of Anchored Objects, Character Alignment, Step and Repeat, Indexing and Table of C