Cfthread of coldfusion on different systems-windows and RedHat

Recently I use cfthread writing a multithread samples. Each thread ask a http request.When I run this cfc file with coldfusion9 on windows, it runs well. Then I run the same cfc file on coldfusion9 on linux(RedHat and centOS), unfortunately, it seems do not work, I found the multi thread do not run parallely, they run one by one. The both coldfusion configuration files are same, and the web server use the built-in one of coldfusion. Is there anyone meet the same probelm? And is there something wrong with cfthread to run on linux? Really need your help. Many thanks!

<cfloop index="pageIndex" from="1" to="#num#" step="1">
                        <cfthread name="thr#pageIndex#" threadIndex="#pageIndex#" action="run">
                                        <cftry>
                                            <cfhttp url="#watson_url#"  method="post" charset="utf-8" timeout="26000000" useragent="#CGI.http_user_agent#" result="THREAD.GETTREAD">
                                       <cfhttpparam type="formfield" name="appGUID" value="#guid#">
                                       <cfhttpparam type="formfield" name="userId" value="#user_id#">
                                       <cfhttpparam type="formfield" name="password" value="#user_pass#">
                                       <cfhttpparam type="formfield" name="sql" value="#TempArr[threadIndex]#">
                                          </cfhttp>
                                          <cfset result_Arr = #DeserializeJSON(THREAD.GETTREAD.Filecontent)#>
                                          <cfset resultArr[threadIndex]=result_Arr >
                                          <cfcatch type="any">
                                  </cfcatch>
                                    </cftry>
                       </cfthread>
     </cfloop>
TempArr is an array for sql,each thread run a sql and get result from http request.

Similar Messages

  • String.getBytes (java) o/p different in Windows and Unix

    Hi,
    I was trying out the following code, which gives me a byte array from a
    String object.
    byte[] bytArr = null;
    bytArr = <String object>.getBytes("UnicodeBigUnmarked");
    System.out.println(bytArr.toString());
    The output is different in Windows and in Unix. The assumed that the reason could be because Intel architecture is based on little_endian so the difference in output. I changed the code to the following
    bytArr = <String object>.getBytes("ISO8859_1");
    and then ran the class file by using "java -Dfile.encoding=ISO8859_1" so that the toString can also take the character encoding of ISO8859_1 rather than using the platform dependent one. Still the result is different in Windows and Unix.
    What could be the reason for this? How can I correct this ? Any help in this regard is welcome.
    cheers
    kk

    Hi Sabre150,
    Thanks for the suggestion, it worked. Both the o/p shows the same if I use System.out.println(Arrays.toString(bytArr));
    I am assigning full points to you. Thanks a ton for the help.
    To end with I have one more question, the method Arrays.toString is introduced from jdk1.5, so if I want to use jdk 1.4 what should I use instead of Arrays.toString ?
    It would be great if I can get this answer.
    cheers
    kk

  • Is QT DVD Player different on Windows and MAC?

    I have both Mac and PC computers. QT 7.1.3 is installed on both. I can view both commercial (Hollywood) and non-commercial mp2 content on the Mac but not the PC. Can anyone tell me what the difference is and why?
    Mac and PC   Mac OS X (10.3.9)   Win XP Pro

    Is QT DVD Player different on Windows and MAC?
    There is no such thing as a QT DVD Player. On the Mac there is a QT Player which does not play DVDs and there is a DVD Player which does. You are probably trying to compare the DVD Player on the Mac with the QT Player on the PC here.

  • Installed programs on both operation systems(windows and apple iOS) with one CC account. Is it possible?

    Hi.
    Is it possible to have just one CC account and installed programs on one windows comp and one apple comp together?

    Yes.
    Can be installed on both Windows and Mac OS X (not iOS).
    Creative Cloud Help | Creative Cloud / Common Questions
    "Can I use the software I download from Creative Cloud on more than one machine?
    Yes. Creative Cloud desktop applications can be downloaded and installed on multiple computers, regardless of operating system. However, activation is limited to two machines per individual associated with the membership. See the terms of use for more information. Learn how to deactivate a Creative Cloud license on a machine."

  • Different system drive and  applications drive

    I recently added a Raptor Drive and wanted to use it as a system drive and then use my 160GB drive that came with the computer as an application drive.
    Well after moving my stuff over to the Raptor Drive and tried to open Final Cut is said something to the effect that this was not the correct device or hardware. I think that is a feature of copy protection so you can't just copy Final Cut...you have to install it.
    So here is my question...will I have to reinstall Final Cut and all my other programs from scratch if I continue with this process? It is already on the 160GB drive in the same machine. Seems like a huge inconvenience. Is there another way??
    Thanks in advance
    FatherTime
    DP 2.0 G5 1GB RAM, iBook   Mac OS X (10.4.7)  

    I used Carbon Copy Cloner to clone my existing system drive onto the Raptor. That way, I didn't have to reinstall a single thing or have to reset any application preferences.
    I had to pare down the size of my existing drive (which was a 500 GB model) so that I could clone to the Raptor. I got it down to about 70GB by moving items to another external drive and then did the clone.
    So, my setup has the OS, Applications, and (most of) my user folder on the Raptor. I moved DVD Studio Pro's templates, GarageBand's and Soundtrack Pro's audio library, and LiveType's various items to the 500 GB drive. I also moved my iTunes library and my iPhoto library to the 500 GB drive. All of this allowed me to keep sufficient free space on the Raptor.
    If you don't want to clone your hard drive to the Raptor, you could try dragging Final Cut Pro over. However, you'd also need to drag over the items in /Library/Application Support/Final Cut Pro System Support as well as the items in ~/Library/Preferences/Final Cut Pro User Data. And, there's still no guarantee that it'll work properly.
    If you need to move other (non-Apple) applications to your other drive, you'll probably be OK in doing that. It's really only the Apple applications that need to remain in the /Applications folder.

  • IPop Use with different operating systems Windows And Mac Osx

    so the quetion is this can i use my IPod with different Operatin systems?
    I have a MacBook at home where i keep all my Music in and at the office i have a Windows network i would like to carry some music from home to the office using my IPod. I thought that a solution is to Partition my Ipod 40G in 2 parts and have one of them FAT so that my Windows operating system can view it.
    Did any of you done it? and if so How? did you loose the use of some of the IPod functions?
    let me Know if there are ways to carry music using your Ipod from the MacOSX to Windows Prof or home edition thanks!
    Donatello

    Your problem has nothing to do with data vs music. Music IS data. I've used my iPod for data and music since the first iPod was released. There's no reason to think the two OS versions are involved either.
    Look at your usage practices - and I'm not necessarily suggesting you are abusing your computer. Has one of your computers crashed while the iPod was connected? This could cause data damage that might explain the problem. Have you ever disconnected the iPod without un-mounting it first?
    You might also be creating fragmentation problems if you frequently add and remove data files while at the same time adding and removing music. One decision I made when I was using my iPod to transport lots of movies and photos for a project was to NOT make any music changes during that busy two week period.

  • Imaging a dual boot system - Windows and Linux

    Using Zenworks 7, I have tried several experiments and all of them seem to
    fail. If I do any kind of Windows install, then make a image, then restore
    the image, it works just fine. However, if I also install Linux, and use the
    Linux multiboot menu, and save an image, when I restore the image, only
    Windows can be accessed, the boot menu is gone. I also noticed that if I
    try to make an image of Suse 10.2, when I re-image the system back to Suse
    10.2, it constantly reboots or only gives me a GRUB prompt and nothing else.
    Is there a parameter or switch someplace in Zenworks to make sure it
    includes Sector 0, 1 ,5 ,6, etc. etc.?
    Also, I noticed something else. If it is a windows only system, and I have a
    second partition which is hidden that I keep a ghost image in, and I have a
    ZEN image of this system; If I re-image via ZEN, all the data is there, but
    for some reason, the second hidden partition is no longer hidden. Other
    than that, it works fine.

    It is ZFD. I'll take it over there..Thanks
    "brunold" <[email protected]> wrote in message
    news:[email protected]..
    >
    > Eric,
    >
    > do you use zen for desktops or zen linux management for imaging that
    > dual boot machine ? It sounds like zfd so this topic might be covered
    > better in that forum.
    >
    > Rainer
    >
    >
    > --
    > brunold
    > ------------------------------------------------------------------------
    > brunold's Profile: http://forums.novell.com/member.php?userid=562
    > View this thread: http://forums.novell.com/showthread.php?t=323281
    >

  • R/3 extraction to 2 different systems (QA and PRD)

    Hi, I have to make initial loads form R/3 to BW-QA and BW-PRD, my question is:
    I need to fill the setup tables for each system (one for QA and one for PRD) or just one is necessary??

    Hi,
    Do you have one source attached to 2 BW systems?  If yes, then setup in the source is the same irrespective of which system picks up data, it will feed from the same set of setup tables.  You only need one setup.
    Cheers,
    Neeraj

  • Release strategy should trigger in different systems EHP7 and ECC6

    Hi All,
    At our client side some are using  ECC 6 and few are on EHP7.We need to define the release strategy in a such a way that both the user can approve the PR in cross system.For example- user A is  using ECC6 and he created PR ,now he need to take approval from his manager and manager is using the system EHP7 in such scenario-
    how does the system understand who is the approver?
    How to maintain the same user in both the system? so that approval process can not be disturb .
    What about the release code ? how to define release code in both system for single release strategy
    Thanks

    Hello,
    1st thanks for reply.
    We have ECC 6.0 as live system but getting used in only A & B country.We bought new fresh,blank system EHP7 for C county. We defined release strategy in EHP7 but we have HR module in ECC6 .So all portions are defined in ECC 6.
    For example- I am creating PR in EHP7 & last level approver is in ECC 6 .
    The issue is, in the ECC 6 system  how will he get the email notification of approval mail.?in EHP7 there is no HR module configured.
    Thanks,
    Snehal

  • Java program runs differently on Windows and Linux

    Hi!
    I would like to run a java application (which is written and run on windows platform) on linux platform. I don't know wether it is possible or not, but I tired on the following way:
    I have made a small java application. It worked correctly on windows (I developed it on windows). I copied first only the class file (Start.class) to the linux machine (which has exactly the same JDK as windows machine). When I type the command:
    java Startit gives me the folloving error:
    Exception in thread "main" java.lang.ClassFormatError: Start (unrecognized class file version)
       at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
       at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
       at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)
       at java.net.URLClassLoader.findClass(libgcj.so.7rh)
       at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)After that I was trying to compile the source file on linux with the command:
    javac Start.javabut the compiler gave me an error in the source file.
    Is there any way to run the formerly written java application (on windows) on linux machine?
    Thanks

    When I type the command java-version I get the following:
    java version "1.4.2"
    gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.The JDK on linux and windows is the latest (I was download it today).
    How can I upgrade the jdk/jre on linux?
    Here is the compiler error:
    [root@Linux-oracle app]# javac DataMining.java
    1. ERROR in DataMining.java (at line 77)
            ArrayList<String> temp = new ArrayList<String>();
            ^^^^^^^^^
    The type ArrayList is not generic; it cannot be parameterized with arguments <String>
    2. ERROR in DataMining.java (at line 77)
            ArrayList<String> temp = new ArrayList<String>();
                      ^^^^^^
    Syntax error, parameterized types are only available if source level is 5.0
    3. ERROR in DataMining.java (at line 77)
            ArrayList<String> temp = new ArrayList<String>();
                                         ^^^^^^^^^
    The type ArrayList is not generic; it cannot be parameterized with arguments <String>
    4. ERROR in DataMining.java (at line 77)
            ArrayList<String> temp = new ArrayList<String>();
                                                   ^^^^^^
    Syntax error, parameterized types are only available if source level is 5.0
    5. WARNING in DataMining.java (at line 240)
            String youtube[][] = new String[20][5];
                   ^^^^^^^
    The local variable youtube is never read
    6. WARNING in DataMining.java (at line 267)
            int e;
                ^
    The local variable e is never read
    7. ERROR in DataMining.java (at line 329)
            for(int i=1;i<Video+1;i++)
                          ^^^^^^^
    The operator + is undefined for the argument type(s) Integer, int
    7 problems (5 errors, 2 warnings)

  • Flash behaves differently in windows and linux ?

    There are some sites that flash doen't display too well (firefox/opera) in linux, but seems to work fine in windows. Is there a difference in the plugin for each OS?
    try this:
    http://www.asus.com/index.aspx
    Wait for the page to finish loading, and then hover your mouse over the "products" link at the top of the page.. the drop down menu is now masked by the "asus webcam notebook ad". This doesn't happen in windows.. I've tried both arch package and the default flash installer, but get the same results.
    Note: The drop down menu is visible if you use the flashblock extension and disable the ad.
    Thanks..

    yep, for some reason the linux flash plugin doesn't let the browser draw elements over the animations, which is especially annoying on websites like the one you mentioned where dropdown menus are used over a silly useless flash banner.
    there are a LOT of things wrong with the flash plugin. macromedia hasn't really addressed them in a long long time
    EDIT: which is why i wish the best of luck to the gplflash plugin developers.

  • Font differs from Linux and Windows ?

    Hi, i just want to ask, are fonts different from windows and linux in applet. I use a standard courier font.
    For example, if i make an applet with courier font texts in linux, and make the texts wrap themselves, they will run ok in linux. But if i run the compiled applet in windows, the wrapped text somewhow got truncated.
    But if i compile the applet in windows, it will look ok in linux and windows.
    I've tried replacing my courier fonts in my /usr/java/jdk/jre/lib/fonts/cour*.ttf with the cour*.ttf from c:\windows\fonts with no effects .. Applets compiled and run ok in linux doesnt work in windows. They must be compiled in windows to run ok in both.
    Why is that ?
    Does the compilation use the fonts in the jdk lib or the system fonts ?
    I'm so confused T_T
    Please Help

    How do I get Mac OS 10.4.4 and Word X for Mac to see
    all the characters in the Word for PC document
    formatted in Times New Roman?
    There's no way with Office X, which can't do Unicode Greek. You need to upgrade to Office 2004 which is Unicode-savvy and installs in your Mac the same Times New Roman with Greek, Cyrillic, Hebrew, and Arabic which is used by WinXP. An alternative might be AbiWord or NeoOffice/J.

  • My websites look different on a Windows and Mac computers...

    Just wondering why my websites look different on Windows and Macs?? It changes the spacing on the Windows machines so it thoughts off the looks of the site. Any way to fix this?

    Jason Holland wrote:
    Just wondering why my websites look different on Windows and Macs?? It changes the spacing on the Windows machines so it thoughts off the looks of the site. Any way to fix this?
    There are 3rd party apps you can get that can help a bit, but I think the main answer is that if you are using templates and graphic rich features of iWeb, the code it generates is pretty complex, a side effect of making it easy to use. All that code gives wiggle room to different browsers and generations of browsers to reproduce it differently.
    My approach is just to keep things as simple as possible, and start with blank pages rather than templates. Because I keep my pages streamlined, they're universally compatible.

  • Different behaviour on windows and linux

    On a text field , I have attached a number converter, just to make sure that user enters the number else gets an error message.
    Things looks fine but it behaves differently on windows and linux os.
    When I am running this application on windows if user enters
    123456.46, it is stored as it is i.e 123456.46 in MySQL db.
    However, if run this on linux and if user enters 123456.46 then it is stored in MySQL db as 123456.460000000006402842700481414794921875
    I am not sure where the problem is. Can somebody guide me about it.
    Thanks.

    Not sure why the behaviour is different, but coded to remove the extra fractions.

  • How to check variants in programs existing in different systems ?

    Hi,
    i am using same program (coding might not b same ) in two different systems(fsd and bwd) .
    one program has two variant and other has only one, now when we execute the main program which is controlling the program in different systems then it shows dump erroe due to different variants or different output.
    we want to catch that dump error.
    Please provide us some code for that.
    Edited by: naincy on Oct 8, 2010 11:06 AM

    hi
    actually the dump error i am getting shows LOAD_PROGRAM_NOT_FOUND
    and CATCH_EXCEPTION is not working for that.
    i dont have to remove the errors , i just want to handle thm.

Maybe you are looking for

  • Lightroom imports images with strange settings

    Hi people, I'm not new to LR at all. In fact, I teach LR and RAW image workflow. But this issue struck me cold with no answers. I took some photos with my D800 and a WhiBal (WB card). To my surprise, all the images turned out yellow when I imported t

  • Application connection with DBs

    Just want to clear my concepts , how applications connect to DBs, normally we setup oracle DB network like listener.ora, tnanames.ora & sqlnet.ora and forward the tnsname entry to developers....i am wondering how they connect the DBs ....do they use

  • No thumbdrive in new MBA?

    I noticed that there is no thumbdrive with my new MBA. is it missing or are they not shipping them now?

  • Java Code to be executed on Oracle Service Bus startup

    Hello I have a problem that i would hope to find some help on the best practices given my specific requirements. I need to have a piece of java code executed on every startup of my OSB server. This piece of code's function is part of an OSB project,

  • Why is iTunes not showing all iPhone Apps to update?

    When checking for updates for my purchased apps in iTunes I sometimes have a few to download - no problem there. My wife uses the same PC/iTunes but with her own Apple-ID. She can sign in and do the same. Every now and then there are available update