A weird bug with CFHTTP?

I have a report that is created within a CFLOOP on a list of integers. For each list item, a new line of report is produced. Simple and it works very well.

However, I am having an intermittent display problem I can't understand. Periodically, for the same set of data, if I update the report screen, I see the screen of the last list item in the CFLOOP, for example "14" on the report on the screen. Hit refresh a few times, she disappears. Some more refreshes and returns it. At first I thought it was just a CFOUTPUT missed or not closed, but no luck.

I traced it so that it shows only the last element of list in the CFLOOP. I created a smaller version of the code just to test. Here's the CFLOOP statement: < cfloop list = "10,14" index = "ListItem" > full code can be found at the bottom of this post.

Here is the result after several upgrades (that's okay).

Departure to listitem:10 loop
index of the inner loop = 1
index of the inner loop = 2
ENDLOOP


Departure to listitem:14 loop
index of the inner loop = 1
index of the inner loop = 2
ENDLOOP

Sometimes if I update, I get this result (note 14, the last element of the CFLOOP list)

Departure to listitem:10 loop
index of the inner loop = 1
index of the inner loop = 2
ENDLOOP


Departure to listitem:14 loop
loop index internal 14 = 1
index of the inner loop = 2
ENDLOOP

Yet once, only 14 appears only intermittenty. Inside of my loop is a statement CFHTTP. If I comment on this statement, the "14" disappear, but obviously I need this statement. Just try to track down the issue.

Here's my test code that produced the above output:

< cfloop list is index "10,14" is "ListItem" >

Start a loop for listitem: cfoutput > #ListItem # < / cfoutput > < br / >

< component cfobject = '#application. "CFCPath #components.cGroup" name = "clientObj" >
< cfset ClientGroupInfo = clientObj.ServicePowerInfo (ListItem) >
< cfset ClientGroupDesc = clientObj.getClientGroupInfo (ListItem) >

< cfset ClientGroupCurrent = ClientGroupDesc.CompanyName >

< cfset form.runsheetdate = Now() >

< cfsavecontent variable = "my_xml" >
< delivery >
< application >
< user name > < cfoutput > #ClientGroupInfo ['username'] # < / cfoutput > < / userID >
< companyID > < cfoutput > #ClientGroupInfo ['companyid'] # < / cfoutput > < / companyID >
#DateFormat(form.runsheetdate,"YYYY-MM-DD") < date > < cfoutput > # < / cfoutput > < / date >
< / request >
< / shipping >
< / cfsavecontent >

< cfset xml_obj = xmlparse (my_xml) >
< cfset webSvcURL = "http://test/test.aspx" > ""


< cfhttp url = "" #webSvcURL # "charset ="utf - 8"method ="post"> < cfhttpparam type ="xml"value =" #my_xml #"> < / cfhttp >"

< cfloop index 'i' = from = "1" = "2" >
index of the inner loop = < cfoutput > #i # < / cfoutput > < br / >
< / cfloop >
ENDLOOP < br / > < br / >

< / cfloop >

All ideas are welcome!

I would say that there is a situation under which of these methods exits clientObj argument going on in there.  Probably debugging the code.

When troubleshooting these situations, I use the very technical method to put my code in places which they output above and below the lock, I'll try to find a TOP and a BOTTOM.  And slowly move them together in the code until one of them is displayed instead of 'bad' (for example: above appears after the little that I'll try to find.)  It is an easy way to isolate the line of code that gives you grief.

Course or I could also use the debugger to do this, but I have developed CF for long enough with no available debugger that I forgot to use it now that they are available!

--

Adam

Tags: ColdFusion

Similar Questions

  • Weird bug with DC model spawning

    Hi all!

    Here's a weird bug with DC model spawning that I am struggling to solve.

    I do my development in Adobe Pro XI.

    I recently had some complaints from users saying model spawning would not work in Adobe DC.

    I installed DC Adobe reader and found this weird bug

    I created a simple PDF to illustrate.

    1. PDF has hidden the model named "RawDataPage".
    2. PDF has 6 pages at the beginning
    3. First page contains 4 buttons.
    4. 1 button adds 1 model after page 6, 2 button adds 2 models after page 6 and so on
    5. Close the PDF without saving the changes after clicking a button, just observe spawning
    6. You can find PDF files and screenshots to dropbox link https://www.dropbox.com/sh/qap5j5tzyomrlxw/AABGFv6Z0jGKE62SO6pgy2YSa?dl=0
    7. I'll update a shared folder to the arrival of the information
    8. find out all the code js inline below

    
    
    
    
    
    
    
    
    
    

    A fix is available for this bug. With the help of Acrobat | Release notes | DC Acrobat, Acrobat Reader DC | Update and download the ' patch '.

  • Help... Weird bug with a list in a table

    What has happened a few times now and I can't understand why. Here are two screenshots of a page created in RH8. The first screenshot is of HR when I clicked on show the item. Note that the second line of the table includes a bulleted list and a note inside a box, which is also what it looks like when I change the subject. The second screenshot is the generated WebHelp. The second point and the note then appear above the table.

    The HTML code for the table is pasted below the screenshots. Can someone help me understand what the problem is?

    screenShot1.png

    screenshot2.png

    < table class = "TableRTP" cellspacing = "0" >
    < class = "t1st" tr >
    < td > < class p = "tableheading" > field < /p > < table >
    < td > < class p = "tableheading" > specify... < /p > < table >
    < /tr >
    < class tr = "t2Row" >
    < td > < class p 'tabletext' = > language < /p > < table >
    < td > < class p "TableText" = > select a language from the drop-down
    list. For example, select < span style = "' make-weight: bold; ' > English"
    (United States) </span >. < /p >
    < class p = "tableNote" > the languages in the dropdown list are
    defined using the administration Session language. Refer to the
    "< a href ="... /... ' / RTPOneAdministrationUsersGuide/SystemAdministration/SystemManagement/sessionl anguage.htm.
    target = "_blank" id = "a1" > online help for RTP | A SINGLE Administration < /a >. < /p > < table >
    < /tr >
    < class tr = "t1Row" >
    < td > < class p 'tabletext' = > Default < /p > < table >
    < td > < ul type = "disc" >
    < class li = "p-TableText" > < class p = "TableText" > if selected.
    This is will be the default language for this eStore site. < /p > < /li >
    < class li = "p-TableText" > < class p = "TableText" > if not selected.
    another language will be the default language. < /p > < /li >
    < /ul >
    < class p = "tableNote" > an eStore site can have only one default
    language. < /p > < table >
    < /tr >
    < class tr = "t2Row" >
    < td > < class p 'tabletext' = > Description Language < /p > < table >
    < td > < class p = 'TableText' > enter a description for this language.
    This is text that eStore visitors will see when selecting
    the language in a multi-language eStore. < /p >
    < class p = "tableNote" > to use the text with special characters, simply
    copy text from another application and paste it in the
    text box. < /p > < table >
    < /tr >
    < /table >

    Hello

    The HTML code for the table looks fine. How does the HTML around the appearance of the table? (It seems that the table is in a list). Maybe you can share an example topic so that we can try to work with him.

    Take a bow

    Willam

  • Weird bug with internal page links, ideas? (CS5)

    I add the hyperlink feature to some lines of text giving the interactivity/navigation to different pages of my 70 page document. I'm new hyperlink using the dialog, I select 'Page' in the menu dropdown, but I can only select up to page 4. This is a problem because I want access to pages 5-70. In the case where the file has been corrupted, I created a new empty document for the test, and the same thing happens, page 4 maximum. If I type in a number greater than 4 then this error pops up... 'This page does not exist. There are 4 pages in the document, and the value must be between 1 and 4. "... and yet I have 70 pages and I haven't used chapters or breaks or something like that.

    Does anyone have an idea around it?

    Have you tried this: replace your preferences

  • Weird bug of Xperia Mobile transfer and e-mail after update 5.1

    Since the 5.1 update, I got a few days ago, I had a weird bug. SOMETIMES exit after sending messages with the default Sony Messaging App, I'll get a very quick overview)<0.5s) og="" a="" message imforming="" me="" about="" the="" xperia="" transfer="">

    Steps to reproduce when it occurs:

    (1) open a conversation and send a message

    (2) quickly, press the back button to return to the home screen

    (3) between the specific conversation window and display the list of all conversations, this image appears for a brief second

    (4) in this case approximately 75% of the time, never seen before the 5.1 update and restart, forcing the farm or actually install the Xperia transfer Mobile App allows.

    I tried to quickly type "No thanks" as it appears, but it does not seem to register.

    I appreciate the support, thank you!

    So I fixed him and everything, but before that I could test if it solved, I scrolled to the bottom of my conversations accidentally. At the bottom, I saw the message that popped up when I tried to go back, basically just posting here - enough random actually. Try to scroll all the way to the bottom of your conversations and see if he's there.

  • having a weird problem with my assignment after incorporation of java

    Hello

    I have a weird problem with my assign activity, I use a Java Embedding wherin I access a variable and assign it some data, further in the next step when I try to assign data to the same variable affecting the activity I get an error message as below.


    com.oracle.bpel.client.BPELFault: faultName: parts of {{http://schemas.xmlsoap.org/ws/2003/03/business-process/} selectionFailure}: {{summary = not valid for the type of part.}} When you perform the operation of the entitlement, the node THIS, IS, TEST is invalid. The node named in the error message was either null, or a node-set is empty, and it was not an instance of org.w3c.Element. Check the value of the node to the line number 795 is not null and is an instance of org.w3c.Element. } .

    I am using soa 11.1.1.5

    Can someone please help?

    -Thank you
    Shirish

    Shirish,

    This is a bug and you will need to apply a patch for it.
    You can find explanations in Oracle Support Id ID 1194228.1.

    Arik

  • THE Weird bug... Player 9.0.1.6.0

    Hello

    Some time ago I updated my IE with the a new version of the plugin Flash (9.0.1.6.0). A weird bug suddenly began to appear in Internet Explorer. I have the same plugin on Firefox and the bug does not appear in the browser. Before I updated my version of Flash for IE plugin (8.0) everything works beautifully...

    The following happens on IE: when you click on the title nieuws or date (not the tab 'nieuws') throughout the site is suspended. In Firefox, everything works well and the news item appears. How can this happen? Anyone any idea? I didn't write the code and he screwed up, so before I dive in, I want to know where I have to look pretty. All ideas/experiences with this kind of bugs?

    URL: http://www.dpi.nl/

    Thanks for the help!

    Adriaan

    Thanks for the reply!

    I managed to fix the bug. How I did it... God knows...

    The code was written by someone who doesn't work here anymore. It was pretty messed up and a lot of things happening at the same time. I traced function calls and saw a couple beeing functions called twice. So I had that from the road and suddenly it worked on IE too.

    Can't really say why it didn't work on IE... at least it works now :)

    thanx

    Adriaan

  • Bug with the donation page today

    You have a bug with your fundraising page. I have selected $10 and transferred to Paypal to $3. I tried again and made sure to click twice on a $10. I got the same results. I thought you should know.

    Hi el_nik,
    I filed a bug to prosecute for the page to donate. However can you please confirm that this always happens after that you remove the cookies from the page?

  • Bug with high speaker on the Satellite C650-144 with Window 7

    I have a bug with my high speaker, so I download driver leatest and nothing has changed.
    But when I use the jack slot it works and when I put it and when I go to the speaker icon in the windows taskbar there is 'activity' because the level moves, but there is no probe on my high speakers.

    For windows everythings works fine, so I don't know what I have to do...
    I went on the Internet on the forum, but there is no solution for my problem!

    Please help me!

    My computer references are: Satellite C650-144 and PSC08E-01100DFR
    Please excuse me for my English...

    Thank you very much!
    Friendly
    aldebordeaux

    Hello

    Simply said; You can listen to the sound using headphones, but can not hear the sound on the speakers. Right?

    Have you noticed this early? Have you installed a few 3rd party applications may affect the functionality of speaker? Maybe some Windows updates can affect this?

    Please check the settings in the control panel-> sound-> the Read tab

    As a last resort, I recommend for recovering the device I want to say, it looks a bit because of speaker, but I strongly recommend to test the laptop with the factory settings.

  • Weird problem with the google search on Safari 9.0.2

    Hi all

    I had a weird problem with Google on Safari recently. After that the search for something from the Google home page and search page is loaded, I can't be able to change or enter anything in the more the google search bar. I have to reload the page every time google to search something else. Google search worked fine on Firefox though.

    I use the latest version of Safari (9.0.2) and I tried clears all history data, and Web site, but nothing has worked so far. My Mac is running on OS X Yosemite so what counts.

    Can someone understand what is the problem?

    Thank you.

    If you have problems to open Web pages, take a look at these techniques proposed by Apple of troubleshooting.

    https://support.Apple.com/en-us/HT204098

    Go to the Safari menu (at the top right of your screen next to the Apple icon), choose 'Quit Safari'

    Press the "Shift" key and while holding this button on your unique keyboard, click the icon of Safari on your Dock.

    Open Safari - Preferences - Privacy - data to remove any Web site.

    Open the menu to go with the Option (Alt) key - library - key locate Safari folder and place it on your desktop. Restart your Mac, open Safari and delete the file from your desktop.

    In addition, a restart may help.

  • Weird problem with control of the ring and foot

    So I have some sort of weird issue with a control of the ring and a chart. I'm with LabWindows/CVI on a Windows 7 computer. The part of the program I'm looking at is basically to navigate through data - there are several "transition" (rehearsals experience), and you can choose the one that you want to watch in the list.

    Normally, you would select transitional in the list, it plots the data, then it is done, basically. However, all of a sudden (don't know how long it spent for), when I select anything except 'Average', he made all the tracing and such, then it changes control of the ring to 'Average' (it is not plot the average data or generate all the reminders that I can tell).

    Now the thing the more bizarre as you can see below, it seems that the switch happens just when I draw something on the chart:

     

    So, it's just weird. The code in this section is here:

       if(uidc.polyon) {
                polynomial_subtraction(curr_data, np, uidc.polyord, 0); // 0 Skip for now
            }
    
            // Scale the curr_data for gains, then pre-scale the FFT data
            // to have no change in the power spectrum (multiply by (2/np)
            for(j = 0; j < np; j++) {
                fft_data[j] = curr_data[j]*2/np;
                curr_data[j] = curr_data[j]*uidc.fgain[i] + uidc.foff[i];
            }
    
            uidc.fplotids[i] = PlotY(dc.fid, dc.fgraph, curr_data, np, VAL_DOUBLE, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, uidc.fchans[i]?uidc.fcol[i]:VAL_TRANSPARENT);
    
            // Prepare the data.
            FFTEx(fft_data, np, npfft, NULL, FALSE, curr_fft);  // Do the fourier transform
    

    DC is a structure that I use to better organize some UI controls and uidc is for display RAM variables, then dc.fid is the Panel that is embedded in the tab "FID", dc.fgraph = FID_Graph and corresponds to the chart control. Control of the ring is actually in a child Panel, dc.cloc [0]. FID_Graph has a point, it can produce, but the reminder is empty (no not coded something there yet).

    I have also considered that perhaps something in another thread (I don't think there is, but whatever) I see is the cause, however, this behavior still happens on that line. I tried to break in different locations, on hold, then continues, as well by adding a loop containing Delay (0.01), a loop of 100 times. Always happens after the conspiracy.

    Does anyone have any idea why this might be happening?

    Hi Paul,.

    I don't have a solution, but I wanted to point out that, even if you see the ring to change its value only when you call the function of tracing, that doesn't say what this function call that really changes the value of the ring. In CVI, some drawing operations are batched, for performance reasons, and the Panel updates only visually at certain times. One of those moments when you draw a chart data. Yes, the ring changes visually at this time there, but it is probably just 'catch up' a change earlier.

    As you are looking through the code, when the value of the ring, you can use the term > command update UI to force the update panel, so that you don't have to wait for the tracing function and see if all goes well this change happening earlier.

    Luis

  • Bug with mechanical locking Action?

    I think that there is a bug with the Action of mechanical latch Boolean: lock releasing in LabVIEW 2010 when the Boolean value is in a cluster with a cluster as one of the things in the cluster.

    For example if a cluster contains the following Boolean not begin properly when the cluster is read.

    1 cluster with a digital command.

    2 boolean with the mechanical Action on the latch.

    I have attached a vi that shows this.

    Instructions

    Press the ok button in the vi.

    Then, run the vi.

    Notice how the light comes on, but the ok button remains pressed.

    This only seems to happen in LabVIEW 2009, that's why I think it's a bug. Also if you rearrange them controls for the Boolean control is before the cluster, it will work as expected.

    Anyone confirm what is happening?


  • Weird behavior with Signal to simulate and loops

    I'm having a weird behavior with Signal to simulate and while loops. Attached a photo of my program. The problem I have is that when I use Stop to stop inside while loop, then use to restart the inner loop, simulate Signal instantly generates a bunch of points of data between when I pressed Stop and Go. By example, if I stop for 5 seconds, wait 5 seconds, then press Go, it will instantly generate data for t = 5 t = 10. What I need is for the generation of signals to stop when I press stop and continue where it left off when I press Go. How can I accomplish this? I have no idea why he exhibits the behavior described in the first place.

    Hi optometry.

    Can you give us a screenshot of the configuration window for the VI express to simulate signal? I was able to reproduce the problem when I used "Simulate the time of acquisition" at times, but the VI's are featured as you described you wanted when I used "run as fast as possible." Have you tried this setting?

  • Weird problem with my bold 9780 help blackBerry smartphones

    really weird my touchpad to scroll more that when I hold alt and press the cap then I can scroll and if I scroll upwards or downwards in the BBM, it changes the letter I typed in a weird letter with stops at this topic hope someone can help me with this

    OK... in this case...

    REMOVE THE BATTERY FROM YOUR BB NOW!

    Run, don't walk, to this FAQ:

    Do everything it says, including the maximum recommended... maybe wait time even up to 5 days.

    Marketing your BB between her getting wet and do this process reduces the chances of success. In addition, the only predictable thing in the intrusion of moisture in a BB (indeed, any electronic device) is that the results will be unpredictable. I've seen some return immediately and be well. I have seen that others do not work. I've seen more a little run and then die later. And every thing in between.

    Good luck!

  • Bug with the embedded font.

    Hello


    I have a strange bug with the font Cooper (Std Black Italic)...

    Here's what looks like a multiline text in the Flash Editor:

    mlVXh7W.png

    Now, here's how it looks when I embed the fonts in a SWF file, and then load and use from the AS3 code:

    hXbpJ3S.png

    [this] is happening?

    Here are the parameters of line values I get from getLineMetrics (0):

    Ascent: 51.2

    descent: 51.2

    height: 102.4

    head: 0


    I tried to reexporting the police, the same problem. I also have the same problem when I export the scene editor and read it with Ctrl + Enter.

    It seems THAT the good in the editor... I don't know what to do. I reinstalled even the police. :/

    Also, I have this problem with all fonts... or at least every 5 different fonts, I tried.


    [moderate]

    I finally fixed it by recreating the Mac fla file.

    Looks like it is a problem with Windows.

Maybe you are looking for

  • Drag to the bottom of the formula

    In numbers 3.6.1. can you select a cell and then drag down to copy this formula in a column? This feature works like this in excel, there may be another way to do it here. Thank you

  • iMac 2015 retina Glitch

    Hello I bought the new Imac 2015 retina (4 GB RAM) last month. I was surfing the internet when suddenly a problem as it appeared: https://www.Flickr.com/GP/_ego_/8R0TPx I don't know why, but now my iMac is much more slow and unstable. A way to fix it

  • How can you see emails marketing Apple in English?

    Hello I'm writing this thread on this forum think I could ' t find a more appropriate. What I would like is simply to receive marketing emails (these advertising new iPhones and other Apple hardware) Apple in English only. When I click on a link at t

  • Get the letters when I type the number of

    Original title: numeric keys why I get letters that appear on the screen when I press the number keys

  • I forgot my WIRELESS password to use my wireless printer... Please help.

    I don't remember my password for Wf - Fi for the wireless printer.  What should I do?