AL11 - Writting Application File concurrently in same location

Hi All,
Currently I'm creating a text file in SAP applications server in location path called (eg: 100\Test) via customized Interface program.
Would like to know if 2 persons are running the interface program concurrently, is there have any locking issues while both writing the text file in same application server location? Thanks.

Locking of files doesnt work well for application server. I havnt done it as the normal convention is to either use a timestamp or a counter.
You can look at the links below how people have tried to do the same.
File Lock help
http://scn.sap.com/thread/3445568
Its not impossible but its cumbersome to achieve. Let me give you a hint.
You can create file locking functionality in the program by creating a table ZSY_FILE_LOCK which will have file name, file location, calling program and lock status (say).
Now you create 2 function modules, 1 for locking and another for unlocking. It will just create and delete entires in the lock table and not touch the actual file.
You call the locking FM before using the file and unlocking FM after file editing is complete.
Now suppose some program has dumped in the middle and kept the file locked. In that case you can check if there are program instances already running or not using ENQUEUE_ESINDX.
Just an idee..

Similar Messages

  • I have files in my iTunes media folder that somehow are not in my library. How do I get iTunes to scan my media folder and add missing files to my library without making a copy of each file in the same location?

    I have files in my iTunes media folder that somehow are not in my library. How do I get iTunes to scan my media folder and add missing files to my library without making a copy of each file in the same location? If I use add file / folder to library, it scans the folder and then makes a copy of any file that is not in my library in the exact same location; I recal in older versions of iTunes being able to just drag my media folder into my library and it would update missing links.

    Only the songs that are connected to iTunes will be copied when you consolidate to a new folder.
    Splitting the media folder away from the usual location makes it harder to move iTunes in the future.
    Are you go move everything back once you've tidied up or are you going to leave it that way? Either way I'd recommend you create an iTunes folder at the new location, an iTunes Media folder inside that, and consolidate to this new iTunes Media folder. You should also use the option File > LIbrary > Organize Library > Rearrange files in the folder "<Media Folder"> if you have not already done so.
    tt2

  • 2 different files in the same location?

    When we upload files they go all in one folder.
    The first editor calls his graphic "Picture 1.png" (wonder where that came from..)
    Sure sometimes before the item gets deleted another one will upload an completly different picture with the same filename.
    The thing that it different between the 2 would be the Asset ID. So I was wondering if there is a way to make folders with asset IDs in the location where everybody uploads there stuff to.
    To tidy up on the long run I guess we just would need to delete the empty folders (as the content has been archived).
    How would I do this? How do other people deal with the same filenames for different files? It even happens within the same production so the solution to create an subfolder for each production (read this a while ago) does not work for us.
    I know that for future projects we will tell people to use more describing filenames (but even there: there might be two different kitchens called the same..) but I also talk about a huge, messy archive to migrate..
    thanks
    tobi

    Let me rephrase things a bit as I used the term Excel chart  to literally. We create charts in SSRS. We then use a query string that includes "rs:command=render&rs:format=Excel" to get the chart into Excel. The "chart" in Excel is really just an
    image and the associated data table is the cells filled in with the data. We then "select" the area that encompasses all of these objects and paste that into the PowerPoint slide.
    Our source folder structure is as follows (note that I while I am being generic, the Ecel file names are the same between folders:
    Folder A: File1.xls, File2.xls, File3.xls ..... File40.xls
    Folder B: File1.xls, File2.xls, File3.xls .....File40.xls
    This goes on for 8 folders but can be as many as 30
    The routine we use to create the xls file from the SSRS chart names the xls file and puts it in the correct folder.
    The idea was we would create a template chart set in PPT for folder A and then create copies of the PPT and change the links to point to Folder B, etc.
    We have ensured that all Excel Documents are closed when we try to do an update.
    We are also getting the following error and I'm paraphrasing: Cannot open multiple instances of a file of the same name even if it is in a different location. This occurs when doing an update links when we don't get the initial error message I listed first.
    If we change the names of the files in each folder: i.e. FolderAFile1.xls, FolderAFile2.xls, etc then we can do the update links. This is time consuming as the SSRS exports are done by the end users and we are the developers trying to create a reusable solution.
    One other issue we are seeing which I hope you can address is that when we are getting the update links to work, the process opens up each Excel file THREE times. It takes almost 15 minutes to update a PPT with 18 linked xls files.

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

  • Saving a file in the same location as run .jar

    I have been playing around with an auto updating client for a project I am working on.
    I have been able to get the client to update fine and save a copy of the new client into where ever the original was run from using the below code:
    File file;
    CodeSource src = HemClientMain.class.getProtectionDomain().getCodeSource();
    if (src != null)
         try
              URL url = new URL(src.getLocation(), "UpdatedClient.jar");
              System.out.println("Writing to: " + url.getPath());
              file = new File(url.getPath());
              if (!file.exists())
                   file.createNewFile();
              FileOutputStream fos = new FileOutputStream(file);
              BufferedOutputStream bos = new BufferedOutputStream(fos);However when I tried running this on my laptop I get a file not found error:
    Writing to: /C:/Documents%20and%20Settings/Rob/Desktop/UpdatedClient.jar
    java.io.IOException: The system cannot find the path specified
            at java.io.WinNTFileSystem.createFileExclusively(Native Method)
            at java.io.File.createNewFile(File.java:883)
            at Client.ClientGameThread.saveNewClient(ClientGameThread.java:584)
            at Client.ClientGameThread.gameClientFinishedUpdating(ClientGameThread.java:564)
            at Client.ClientListenThread.dealWithPacket(ClientListenThread.java:96)
            at Client.ClientListenThread.listen(ClientListenThread.java:74)
            at Client.ClientListenThread.run(ClientListenThread.java:38)It's clearly something to do with the location and the path not being correct, as if I move the client to say .. c:/ and run it it updates and saves fine.
    Is it something to do with the spaces in between document and settings? And if so how do I stop this from happening? Is there another way I can accurately find the path to the current jar file and save a copy there?
    I used to do it via this code:
    String fileLocation = System.getProperty("java.class.path");     However I now have more than one thing in my classpath and this doesn't produce one path but a combination of them all ... which is not really what I want. There must be a nice way to do this!
    Any help / suggestions appreciated. Any further questions I will attempt to answer my best :)

    iexus wrote:
    I have been playing around with an auto updating client for a project I am working on. ...Launch the app. using Java Web Start. It has update ability built in, and will save you a lot of headaches.

  • Hoe to write ctl file to load same data into two coulmns in a table?

    hi,
    This is a sample text file
    ,"21820","Fairbanks, AK","METRO","1","21820"
    ,"11260","Anchorage, AK","METRO","1","11260"
    ,"27940","Juneau, AK","MICRO","2","27940"
    ,"28980","Kodiak, AK","MICRO","2","28980"
    and i have to load ot in a table cbsa_ref
    SQL> desc cbsa_ref;
    Name Null? Type
    CBSA_NAME VARCHAR2(100)
    CBSA_ID VARCHAR2(5)
    DISP_CBSA_NAME VARCHAR2(100)
    I have to insert the first column in text file into CBSA_ID column.
    And i have to insert the second column in text file into both CBSA_NAME & DISP_CBSA_NAME. Please tell me how to do this?
    If we write the ctl file as ,
    load data
    APPEND
    INTO cbsa_ref
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    CBSA_ID
    ,CBSA_NAME
    ,DISP_CBSA_NAME
    only the third column in text file will go into DISP_CBSA_NAME.
    Beneven

    SQL> !cat load1.dat
    ,"21820","Fairbanks, AK","METRO","1","21820"
    ,"11260","Anchorage, AK","METRO","1","11260"
    ,"27940","Juneau, AK","MICRO","2","27940"
    ,"28980","Kodiak, AK","MICRO","2","28980"
    SQL> !cat load1.ctl
    load data
    TRUNCATE
    INTO table cbsa_ref
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    NULL_COL filler,
    CBSA_ID ,
    CBSA_NAME ,
    DISP_CBSA_NAME ":CBSA_NAME"
    SQL> !sqlldr userid=scott/tiger control=load1.ctl data=load1.dat
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Feb 23 10:17:01 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Commit point reached - logical record count 5
    SQL> select * from cbsa_ref;
    CBSA_NAME CBSA_ID DISP_CBSA_NAME
    Fairbanks, AK 21820 Fairbanks, AK
    Anchorage, AK 11260 Anchorage, AK
    Juneau, AK 27940 Juneau, AK
    Kodiak, AK 28980 Kodiak, AK
    SQL>
    Best regards
    Maxim

  • PROBLE WHILE RENDERING IN CC While as In CS renders without any issue the same file from same location but tried 3 CC ,machine and have the same issue.

    Please i need an Urgent Help
    I just installed for my users 5 Machines with Adobe CC and they are all crashing while rendering to QT H264.
    while in cs6 it renders the same file in the same location without any issue.
    Please help it is urgent.
    Regards

    Hi,
    I can't really read the error appearing in the screenshot you shared.  Is the application fully up to date?
    Have you read: After Effects CC 2014 - removal of H.264, MPEG-2, WMV, FLV, F4V, and SWF exporters - WHY !?
    This might also be an explanation, as i believe you are trying to use h.264 right?
    Kind Regards,
    Harrie

  • InDesign 2014 files don't save in the same location as the original file

    The behavior in InDesign CC was to automatically save the file in the same location. I understand this is a new version, and saving my InDesign 2014 files should open a save dialogue. But I don't understand why InDesign seems unaware of the file's location. In this new version I have to navigate to the files location to overwrite, and that is taking extra time that the previous version did not require. Is there a way to restore the previous behavior. I have looked in Preferences, but I can't find a way to revert to the old behavior. Any advice would be appreciated. -Thanks.

    As Peter noted, it has ALWAYS been this way. It’s a one time thing.
    You can file a feature request here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Make sure to file a complete description along with a solid business case as to why most users would benefit.

  • "edit in" function in lightroom copies raw file to same location. is there a way to change location?

    As far as I can tell, the "edit in" photoshop function in LightRoom copies a RAW file in the same location, I end up with two of the same image in my library, is there a way to specify where lightroom saves the file?

    You should ask in Photoshop Lightroom
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Downloading several files to the same client directory

    Hello Everybody !
    My RAP application generates three files : a binary one for microcontrollers programming purpose, a plain text one which is a readable form of the first one, and finally a properties file used to restore the application settings. All three files have to be stored in the same directory on the client machine and this is done by using a service handler as described here : https://www.eclipse.org/rap/developers-guide/devguide.php?topic=resources.html&version=3.0
    This mechanism works fine, but pops up three Save File dialogs while one would be sufficient since I could get the destination directory from the first download. Is it possible to save more than one file to the same location with only one Save File dialog? How would you implement this?
    Thanks a lot in advance for your help!
    Georges

    Try using:
    tell application "Finder"
    set path_2 to quoted form of POSIX path of (folder of (path to me) as alias)
    end tell
    tell application "System Events"
    do shell script "curl 'ftp://user:password@server//www/htdocs/current/l.txt' -o " & path_2 & "l.txt"
    end tell
    (41158)

  • Read PDF Formatted Spool and write PDF File to Application Server

    Hi Experts,
    After ECC 6.0, HR-W2 and W2C Form Spools are getting generated in PDF format.
    We have a requirement wherein we want to read the PDF Spool Programatically and write the PDF file to Application server (Using OPEN DATASET and CLOSE DATASET)
    PARAMETERS : p_spono LIKE tsp01-rqident.
    DATA: pdf_data type FPCONTENT.
    types: lt_pdf_table(1000) type x.
    data:  l_pdf_data type standard table of lt_pdf_table,
           l_pdf_line type lt_pdf_table,
           l_offset type i,
           l_len type i,
           p_file(100) VALUE '\sapout\DVH\pdf2.pdf'.
    *Read the spool content
    CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'
        EXPORTING
             i_spoolid = p_spono
             i_partnum = '1'
        IMPORTING
               e_pdf = pdf_data
    *         e_pdf_file = file
        EXCEPTIONS
             ads_error = 1
             usage_error = 2
             system_error = 3
             internal_error = 4
        OTHERS = 5.
    * Modify the spool  contents to prepare internal table
      l_len = xstrlen( pdf_data ).
      while l_len >= 1000.
        l_pdf_line = pdf_data+l_offset(1000).
        append l_pdf_line to l_pdf_data.
        add 1000 to l_offset.
        subtract 1000 from l_len.
      endwhile.
      if l_len > 0.
        l_pdf_line = pdf_data+l_offset(l_len).
        append l_pdf_line to l_pdf_data.
      endif.
    * GUI DOWNLOAD Works Fine
    * Now pdf contents is ready , lets store in local PC
    *CALL FUNCTION 'GUI_DOWNLOAD'
    *  EXPORTING
    *   filename                        = 'C:\Documents and Settings\Desktop\shital.pdf'
    *   filetype                        = 'BIN'
    *  TABLES
    *    data_tab                        = l_pdf_data.
    OPEN DATASET p_file FOR OUTPUT IN BINARY MODE.
    IF sy-subrc <> 0.
      MESSAGE ID '00' TYPE 'E' NUMBER '398' WITH 'sy-subrc:' sy-subrc
              ' Error opening file:'(Z03) p_file.
    ENDIF.
    LOOP AT l_pdf_data INTO l_pdf_line.
      TRANSFER l_pdf_line TO p_file.
    ENDLOOP.
    CLOSE DATASET p_file.
    IF sy-subrc <> 0.
      MESSAGE ID '00' TYPE 'E' NUMBER '398' WITH 'sy-subrc:' sy-subrc
              ' Error closing file:'(Z04) p_file.
    ENDIF.
    Currently as you can see I have commented out GUI_DOWNLOAD Function Module, But it works perfect when I try to Download file to Local Desktop.
    But when I try to pass the same Contents to Application server file and then try to open it by downloading file then it opens BLANK pdf file.
    As per requirements I should be able to write the file correctly on Application server and If I dowload it from there it should open PDF file correctly.
    Let me know if you require further details about the issue.
    Regards
    Shital
    Edited by: shital phadake on Apr 8, 2009 9:39 PM

    Thanks Selçuk for your reply and taking time for understanding the Issue,
    I went thru Functionality of the program you suggested but dont think it matches my requirement.
    Regards
    Shital

  • Does anyone know where the iWeb data files are located or what they are called?  I can't find them.  I looked in Finder for files named the same as my website, but found nothing.  Any help would be appreciated.

    Does anyone know where the iWeb data files are located or what they are called?  I can't find them.  I looked in Finder for files named the same as my website, but found nothing.  Any help would be appreciated.

    If you erased or replaced your hard drive since iWeb was cancelled, then they are gone. Otherwise, if you have maintained backups then check those.
    Usually such files are in the /Home/Library/ folder or a sub-folder.
    Exposing the /Home/Library/ Folder
    Pick one of the following methods:
    A. This method will make the folder visible permanently. Open the Terminal application in your Utilities folder and paste the following at the command prompt:
    chflags nohidden ~/Library
    Press RETURN.
    B. Click on the Desktop, press the OPTION (⌥) button, select Library from the Finder's Go menu.
    C. Select Go To Folder from the Finder's Go menu. Paste the following in the path field:
    ~/Library
    Press the Go button.

  • Best location for application files

    In our current WebLogic environment (WLS 4.51), we have seperate document roots
    for each of te 12 seperate applications being served up in seperate WebLogic instances.
    We are migrating to WLS6.1, and I am not sure if I should continue this practice.
    All applications will be under the same domain, and some common utility .jar and
    .war files may be targeted to several servers in the domain (email servelts, search
    servlets, etc.). However, I am no tsure I want all these directories or .jar/.war
    files to beunder the same "applications" folder. If I put them under /apps/Java/$app_name/
    I can deploy them fine from the console. If I do this, will I lose the auto_deploy
    feature? Is there any inherent dangers to doing this? Mostly, I want to keep app1's
    files in a different location than app2's.

    Please see my inline replies:
    Mark wrote:
    In our current WebLogic environment (WLS 4.51), we have seperate document roots for each of
    te 12 seperate applications being served up in seperate WebLogic instances.
    We are migrating to WLS6.1, and I am not sure if I should continue this practice.
    All applications will be under the same domain, and some common utility .jar and
    war files may be targeted to several servers in the domain (email servelts, search
    servlets, etc.). However, I am no tsure I want all these directories or .jar/.war
    files to beunder the same "applications" folder. If I put them under /apps/Java/$app_name/
    I can deploy them fine from the console. If I do this, will I lose the auto_deploy
    feature?Yes. if you are keeping your applications outside of the applications directory they would not
    be auto-deployed. It is necessary to keep the applications in the
    /config/domain_name/applications directory, if you want to have the auto-deploy feature to
    work. Also, we recommend to use auto-deployment only during development and turn off the
    feature in the prod environment.
    Is there any inherent dangers to doing this? Mostly, I want to keep app1's
    files in a different location than app2's.Maybe this strategy helps you:
    You can have all the applications in the applications directory in the exploded dir format. In
    this case, they will be auto-deployed on the Admin server. Using the console, you can target
    them to different servers in the domain (analogous to different WLS 451 server instances).
    Now, if you change a particular file (jsp) in the webApp, then you will need to just touch the
    REDEPLOY file. The Admin server will check that the timestamp for this file has changed and
    redeploy the application to the concerned target servers.
    So, by maintaining an exploded directory structure for each webApp in the applications
    directory, you will be able to keep the files separate and still achieve redeployment.
    More details can be found at:
    http://e-docs.bea.com/wls/docs61////adminguide/appman.html#1029683
    Also, as everything is a webApp now, each webApp has its own documentRoot. So if you have 12
    webApps, each has a different docRoot automatically.
    hope this helps.
    Mihir

  • Facing problem in creating socket in a method from an already deployed application exe while same method is working from another exe from same environment from same location.

    Dll Created In: - MFC VC
    6.0
    Application Exe Developed In:
    - VC 6.0, C# and VB.net (Applications which are using dll)
    OS: - Windows XP sp2 32bit
    / Windows Server 2008 64 bit
    Problem: - Facing problem in creating socket
    in a method from an already deployed application exe while same method is working from another exe from same environment from same location.
    Description: - We have product component which
    has an exe component and from exe we invoke a method, which is defining in dll, and that dll is developed in MFC VC6.0. In the dll we have a method which downloads images from another system after making socket connection. But every time we are getting Error
    code 7, it is not giving desire result while same method is working from another exe from same environment from same location. And also me dll is deployed on many systems and giving proper output from same application.
    Already Attempt: - Because error is coming on
    client side so what we did, we created a driver in C# which invokes same method from same environment(on client machine) using same dll and we are astonished because it worked fine there.
    Kindly Suggest: -
    We are not able to figure out root cause because nothing is coming in windows event logs but what I did, for finding the problem line, I wrote logs on each line and found the exact line in application exe which is not working,
    actually  it is not executing Create () method,
    I will give snippet of the code for understanding the problem because we are not finding any kind solution for it.
    Kindly assist us in understanding and fixing this problem.
    Code Snippet: -
    Int Initialize (LPTSTR SiteAddress, short PortId)
    try
    CClientTSSocket *m_pJtsSockto;
    m_pJtsSockto = new CClientTSSocket;
    LONG lErr = m_pJtsSockto->ConnectTS(csIPAddress,PortId);
    ErrorLog (0, 0, "--------ConnectTS has been called ------------","" );
    catch(...)
    DWORD errorCode = GetLastError();
    CString errorMessage ;
    errorMessage.Format("%lu",errorCode);
    ErrorLog (0, 0, "Image System", (LPTSTR)(LPCTSTR)errorMessage);
    return  IS_ERR_WINDOWS;
    Note: -
    CClientTSSocket extends CAsyncSocket
     IS_ERR_WINDOWS is a macro error code which value I found 7.
    LONG ConnectTS(CString strIP, UINT n_Port)
    ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
    if(!Create())
    ErrorLog(0,0,"ConnectTS is calling [Create not called successfully] ","");
     n_Err = GetLastError();
     ErrorLog(n_Err,0,"ConnectTS is calling1111111111111111Erorrrrrrrrrrrrr","");
    return NET_INIT;
    ErrorLog(0,0,"ConnectTS is calling2222222222222222222","");
    if(!AsyncSelect(0))
    n_Err = GetLastError();
    return NET_INIT;
    if(!Connect(strIP,n_Port))
    n_Err = GetLastError();
    ErrorLog(n_Err,0,"ConnectTS","");
    return SERVER_NOT_CONNECTED;
    Code description: -
    From
    int GETImage_MT() method we call Initialize() method and pass client machine IP and Port and there we call
    ConnectTS() method, In this method we Create() method and finally it returns the error code as mention in macro 7.
    Logs after running the program: -
    --------ConnectTS has been called ------------
    ConnectTS is calling Create [is going to call]
    Image System 
    0
    Note: - According to logs, problem is coming in Create method().
    Here 0 is errorMessage received in catch block. And from catch block it returns macro value 7. And when we run same method individually from same machine, same environment through same dll
    from different exe, it is working fine and we are facing any kind of problem. While same problem application was working properly earlier but now continuously it showing problem.
     Kindly assist us to resolve the issue.

    Pointer variable was already initialized; I have mention in code; kindly assist us.
    Dll Created In: - MFC VC 6.0
    Application Exe Developed In: - VC 6.0, C# and VB.net (Applications which are using dll)
    OS: - Windows XP sp2 32bit / Windows Server 2008 64 bit
    Problem: - Facing problem in creating socket
    in a method from an already deployed application exe while same method is working from another exe from same environment from same location.
    Description: - We have product component
    which has an exe component and from exe we invoke a method, which is defining in dll, and that dll is developed in MFC VC6.0. In the dll we have a method which downloads images from another system after making socket connection. But every time we are getting
    Error code 7, it is not giving desire result while same method is working from another exe from same environment from same location. And also me dll is deployed on many systems and giving proper output from same application.
    Already Attempt: - Because error is coming
    on client side so what we did, we created a driver in C# which invokes same method from same environment (on client machine) using same dll and we are astonished because it worked fine there.
    Kindly Suggest:
    - We are not able to figure out root cause because nothing is coming in windows event logs but what I did, for finding the problem line, I wrote logs on each line and found the exact line in application exe which is not
    working, actually it is not executing Create () method, I will give snippet of the code for understanding
    the problem because we are not finding any kind solution for it. Kindly assist us in understanding and fixing this problem.
    Code Snippet: -
    Int Initialize (LPTSTR SiteAddress, short PortId)
    try
    CClientTSSocket *m_pJtsSockto;
    m_pJtsSockto = new CClientTSSocket;
    LONG lErr = m_pJtsSockto->ConnectTS(csIPAddress,PortId);
    ErrorLog (0, 0, "--------ConnectTS has been called ------------","" );
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage ;
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Note: - CClientTSSocket extends CAsyncSocket
     IS_ERR_WINDOWS is a macro error code which value I found 7.
    LONG ConnectTS(CString strIP, UINT n_Port)
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
                       ErrorLog(0,0,"ConnectTS is calling [Create not called successfully] ","");
              n_Err = GetLastError();
              ErrorLog(n_Err,0,"ConnectTS is calling1111111111111111Erorrrrrrrrrrrrr","");
                      return NET_INIT;
              ErrorLog(0,0,"ConnectTS is calling2222222222222222222","");
              if(!AsyncSelect(0))
                       n_Err = GetLastError();
                       return NET_INIT;
              if(!Connect(strIP,n_Port))
                       n_Err = GetLastError();
                       ErrorLog(n_Err,0,"ConnectTS","");
                       return SERVER_NOT_CONNECTED;
    Code description: - From int GETImage_MT() method
    we call Initialize() method and pass client machine IP and Port and there we call ConnectTS() method, In
    this method we Create() method and finally it returns the error code as mention in macro 7.
    Logs after running the program: -
    --------ConnectTS has been called ------------
    ConnectTS is calling Create [is going to call]
    Image System  0
    Note: - According to logs, problem is coming in Create method(). Here
    0 is errorMessage received in catch block. And from catch block it returns macro value 7. And when we run same method individually from same machine, same environment through same dll from different exe, it is working fine and we are facing any kind of problem.
    While same problem application was working properly earlier but now continuously it showing problem.
     Kindly assist us to resolve the issue.

  • Load multiple files using the same data load location

    has anybody tried loading multiple files using the same load locations. I need to do this as the data in these multiple files will need to be exported from FDM as a single export file. the problem i am facing is more user related. since these files will be received at different points of time, users will need a way to tell them what has been loaded and what is yet to be loaded.
    is it possible to throw a window on the web broser with OK and Cancel buttons from an event script?
    any pointers to possible solutions will be helpful

    was able to resolve this. the implementation method is as follows
    take a back up of previously imported data in the befcleardata event script. then in the beffileimport event append the data to the import file. there are many other intricacies but this is the broad implementation logic. it allowed my users to load multiple files without worrying about append or replace import type choices

Maybe you are looking for

  • If statement in JSP

    Hello, I need help with the following . The problem is with the 'If statement'. The query and everything else is working. The value 'reservoir' is something that I want key in manually. Must I declare this value ? if yes, how? Thank you for your time

  • Is it time to upgrade from CS3 to CS4?

    I currently use CS3 but have a version of CS4.  I edit full HD XD CAM EX and Cineform 25p.   The reason I have not yet switched to CS4 is because I am waiting for the bugs to be worked out.  I am now checking in to see how things have moved forward o

  • SSRS 2008 R2 - Missing Data when Exporting to Excel or CSV (Row Count is 500)

    Hey Folks, When exporting SSRS 2008 R2 report  to an csv or excel file not all the rows are being exported. Any suggestions on why this is occurring. The number of rows is less then 500 and it seems to be a pretty straight forward export. Any help is

  • External  Hard Drive stuck on Read Only

    I just moved an external hard drive that had been attached to a Vista PC over to my Mac. However, I can't edit anything on the disk from my Mac, because it's in Read Only mode. I'm sure Vista set some sort of security on it, but from Vista I gave eve

  • Iphone 6 "other errors" message keep popping out

    Hi, my phone keep getting this error and it keep pops up randomly and i will have to press the "dismiss" button every time it pops up. This message does not give me any details on what errors i'm having with my phone and I have no idea what causing i