Client_host('D:\ipconfig.bat');

Hi dear All
Hope that you all will be at the best of your health and knowlege...
i am facing a problem while running the oracle forms on the web... i want to execute a .bat file through Client_Host command...
while i run the form locally and use the HOST command . it works ...
but when i run it through server and use Client_host ... it does not work..
kindly help me out to solve this problem... Please
i will be very thankfull to you....
My .bat file :
@echo off
echo ipconfig /all
dir d:\test_ip
Pause
I want to show all info. when ipconfig/ all...but its doesnt show.
I take a button on that button , i wriete code
host('D:\ipconfig.bat');

Two things; first, your batch file has to exist on the client in order to execute it on the client. Rather than install the batch file on each client, you could test if the file exists and if not, then transfer the batch file to the client and then execute it.
Second, your post states you are using *"host('D:\ipconfig.bat'):"* but yet you say you are using the WebUtil Client_Host procedure. Your code sample doesn't match your statement. ;) Are you using Client_HOST and if so, did you configure WebUtil on your Application Server? Also, as spilgrim asked, are you getting any errors in the Java Console?
As spilgrim pointed out, in order to use CLIENT_HOST, you must have configured your application server to use the WebUtil Library. Also, typical Host calls will execute and terminate. If you want the Host call to keep the Host session active, I recommend you use the following:
  Client_Host('cmd /k d:\ipconfig.bat');Again, assuming that the D:\ipconfig.bat exists on each client computer. The */k* parameter to the CMD.exe program instructs CMD to remain active; where the */c* instructs the CMD.exe program to execute and then terminate. Google CMD.exe or open a CMD window and type CMD /? to see more information on the CMD.exe parameters.
A suggestion, you might want to consider changing your batch file so it writes the output to a text file. Then read the text file into your form and present the data to your user in the Form rather than in the command window. This is a much cleaner presentation and it enables you to perform a little error checking. If the output file doesn't exist, you can display a message to your user to indiate the command failed.
Change your batch file as follows:@echo off
ipconfig /all > d:\test_ip\your_file.txtThen change your code to:
DECLARE
  b_file_exists  BOOLEAN := FALSE;
  ft_handle      Client_Text_IO.FILE_TYPE;
  CRLF           CONSTANT VARCHAR2(15) := CHR(13)||CHR(10);
  v_line         VARCHAR2(1000);
BEGIN
  Client_Host('cmd.exe /c ipconfig.bat');
  b_file_exists := WebUtil_File.File_Exists('D:\test_ip\ipconfig_output.txt');
  IF ( b_file_exits ) THEN
    --Read the contents of the file and display in the multi-line text_item.
    ft_handle := Client_Text_IO.FOpen('D:\test_ip\ipconfig_output.txt','R');
    LOOP
      BEGIN
        --Read Line from File
        Client_Text_IO.Get_Line(ft_handle, v_line);
        :YOUR_BLOCK.YOUR_ITEM := v_line||CRLF;
      EXCEPTION WHEN NO_DATA_FOUND THEN
        EXIT;
      END;
    END LOOP;
  ELSE
    MESSAGE('Command failed - File doesn''t exits');
    Message(' ');
  END IF;
END;Note: This is just sample code, it has not been tested. You will need to modify the code to suit your needs.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Urgent!FTP command oracle 10g

    The msdos command (FTP) in oracle 10g don´t work.
    v_ficbat := client_text_io.fopen(v_tmpdir || '\' || 'execftp.bat', 'W');
              client_text_io.put_line(v_ficbat, v_tmpdir);
    client_text_io.put_line(v_ficbat, 'ftp -n -i -s:' || v_tmpdir || '\execftp.scr <ip ftp>');
              client_text_io.fclose(v_ficbat);
         -- execftp.scr
         v_ficscr := client_text_io.fopen(v_tmpdir || '\' || 'execftp.scr', 'W');
    client_text_io.put_line(v_ficscr, 'user');
    client_text_io.put_line(v_ficscr, '<user>');
    client_text_io.put_line(v_ficscr, '<passaword>');
    client_text_io.put_line(v_ficscr, 'cd directory1');
    client_text_io.put_line(v_ficscr, 'cd directory2');
              client_text_io.put_line(v_ficscr, 'get file.txt');
    client_text_io.put_line(v_ficscr, 'quit');
              client_text_io.fclose(v_ficscr);
              client_host(v_tmpdir || '\' || 'execftp.bat');
    What is the problem?
    thanks!!!

    try this.
    file_handle := CLIENT_TEXT_IO.FOPEN(lv_FtpScript_Path, 'W');
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'OPEN'||' '||lv_hostname|| ' '||ln_port);
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'USER'||' '||lv_user|| ' '||lv_pwd);
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'LCD' ||' '||lv_File_Dir);
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'GET '||' '||target_file||' '||source_file);
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'CLOSE');
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'BYE');
         CLIENT_TEXT_IO.FCLOSE(file_handle);
         WEBUTIL_HOST.HOST('FTP -d -n -s:'||lv_FtpScript_Path);
    replace the variables with your actual values. this works fine.
    good luck.

  • Problem with client_host('cmd /c c:\vbc.bat')

    Hi forum,
    I am working on Oracle 9i Release 2 Database on AIX 5L based operation system with Oracle 10g AS version 9.0.4 On Windows 2000 Advanced Server and webutil 1.0.6 package, Oracle 10g DS 9.0.4.0.19 for forms developement.
    I have developed a form which creates a .txt file in the DEFAULT O/S DIRECTORY
    and creats a batch file, which contains a single like command as shown in the subject, It is working fine in our testing environment, but it is not working in Production environment. Could you please help me out in this regard, or any work around for this.

    Dear Francosis,
    There is no much difference in Test and Production environment. Test Database is working on same Oracle Database Release but on Windows Platform, where the Production environment works on AIX platform. The Application server is running on Windows 2K Advanced Server in both.
    I have created a virtual printer in test environment. After invoking the print command from the application, I am monitoring the job queue of the virtual printer, By the status of the printer's job queue, I came to a conclusion that it is invoking the print job. But, this is not the scenario in production environment.
    Please post any suggestions or workarounds for this.
    Thanks,
    Kamesh

  • Open bat file on client machine using webutil

    Hi all.
    I'm on devsuite 10g.
    I want to run a bat file on client machine using client_host function of webutil.
    I have tried first to execute the bat file with mouse double-click in order to check if it is ok, and it works.
    Now I want to execute this file from my form using webutil.
    Here is my code:
    --> with this code I select a file from client machine
    Declare
         LC$Fichier Varchar2(1000):=null ;
         PC$Filtre Varchar2(2000) := '|All files|*.*|' ;
    Begin
         LC$Fichier := WEBUTIL_FILE.FILE_OPEN_DIALOG
         null,
         PC$Filtre,
         'Seleziona un file da caricare'
    If LC$Fichier is not null Then
    :output.apri_file := LC$Fichier ;
    End if ;
    End ;
    --> with this code I execute the file that I have opened
    declare
         cmd varchar2(30000) := null;
    BEGIN
         Cmd := 'cmd /c start "" "' || :output.apri_file || '"' ;
    CLIENT_HOST(cmd);
    END;
    When I execute my form I have this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: ....folder of file opened.
    Can anyone help me to solve this problem??
    Thanks in advance,
    Fabrizio

    Fabrizio Delli Priscoli wrote:
    Hi Tony.
    I have tried to run my bat file with double-click and everything is OK.
    When you say the DOS window opens for few second, is your batch file being executed?? did you see the results??
    The answer in NO for both of your questions.
    If I try to drag and drop the file I have error.
    How can I attach an image to this post, so that you can see the error??
    Thanks,
    FabrizioThis seems like a directory or OS level permission issue on the batch file, What is the error you got when you tried drag and drop the batch file in an DOS window???
    I think you need to upload the image to a site and use the markup for the image, include the full URL of the uploaded file between ! (exclamation marks) something like ! http://../post.gif ! without the spaces.
    Tony
    Edited by: Tony Garabedian on Sep 4, 2008 12:30 PM

  • How to run a batch file (.bat) from forms? WEBUTIL_HOST.NonBlocking?

    I need to execute a batch file on the clients pc. Right now, I'm using:
    WEBUTIL_HOST.NonBlocking('cmd.exe /c "' || :Test.Batch_File_Name || '"');
    where the :Test.Batch_File_Name is something like C:\run.bat.
    This works to some extent. When it runs, I see a blank cmd.exe window and when I check my processes, I can see that run.bat is running. However, I need to be able to see run.bat as it executes because it outputs messages to the screen. Is there a way to call client_host or webutil_host that will display the batch file screen?
    Thanks

    Hello,
    With the Webutil Get_Standard_Output() , you can get the output strings and display them into your own Forms canvas ;o)
    Francois

  • Webutil client_host question

    Hello,
    I have
    CLIENT_HOST('cmd /c START "" "fisier.bat" ');but if that file is located oln C:\forms\4.1.1\imp_ret, how can i specify this path in that command?
    Thanks

    try something like this:
    cmd /c cd /d <your_working_directory>&&<your_command>the +&&+ simply tells the cmd that it needs to execute another command; so the first it does is to change into your working directory ( /d is used if it is on another drive) and after changing the directory it executes your second command.
    cheers

  • Problem with client_host statement

    Hi all. I'm on devsuite 10g.
    I have a problem while executing client_host statement.
    With another application I have exported a job as script (.bat file).
    Now I want to execute this file from my form application.
    With webutil I'm able to locate file on the client machine.
    To execute it I issue this command:
    Client_host('cmd /c start ' ||my_file_directory\my_file.bat|| '' );
    I encountered an error.
    So I have created one .bat file in which there is this command: calc.exe;
    once I execute this file using the same client_host statement as before, I notice that it has executed from my desktop, and in the dos box appears this path:
    C:\Documents and Settings\dellipri\Desktop
    I have tried to execute my job script file both double clicking it and open manually a dos box and writing full path and name of file and everything is OK.
    So what I would know if there is an option that I must put in my client_host statement in order to execute my_file_name from the absolute path and not from my desktop.
    Thanks all for collaboration,
    Fabrizio

    When you double click on your batch file in explorer the cmd get's invoked with the working directory where you placed your batch file, so the batch file get's executed with this working directory.
    when calling cmd from somewhere else (like client_host) the shell get's invoked with the user home (c:\documents and settings\and_so_on) as working dir.
    So basing your calc sample you placed your testbatch file on the desktop?
    You don't need to put your batch file into any other directory, just force the shell to change the directory where your batch file lies within (wherever that is) and call the batch file.
    just a little sample to get this clear:
    create a file called test.txt in a directory e.g. c:\temp and put some text into it. In the same directory create a batch file called test.bat where you open your file with notepad:
    notepad test.txtdouble click it in explorer, the directory of the shell should be c:\temp, and notepad opens the file.
    then the next run it via start => run and type in
    cmd /c start c:\temp\test.bat
    and notepad prompts you if you want to create a new test.txt (as in c:\documents.... there is no test.txt)
    and the last
    open start => run and type in
    cmd /c cd c:\temp&&test.bat
    and notepad opens the file again. The shell get's invoked with workdir c:\documents..., then changes the directory to c:\temp and then in this directory it calls the batch file.
    It is the same as if you'd put the "cd c:\whatever" into your batch file, but as you said that's not possible, so force the cmd to do that before invoking your batch file (the && command simply tells the cmd to do more than one command; and the first command is to change the directory to c:\temp, and the second is to call the batch file).
    Actually I tried it with the notepad sample I provided above from forms, and it worked for me...
    regards

  • File.execute() not working for bat file

    Dear all,
    The purpose of my function copyToWinClipboard (text) is to get a string directly into the Windows Clipboard. The purpose is to allow the user of my project just to paste into the open-dialog of the application EndNote. I’m not certain whether the FM clipboard (supported by the copy/cut/paste methods for Doc) really fills into the Windows Clipboard also.
    In the PhotoShop script forum I found the idea how to do this.
    #target framemaker
    // note the blank in the path
    copyToWinClipboard ("E:\\_DDDprojects\\FM+EN escript\\FM-11-testfiles\\BibFM-collected.rtf");
    function copyToWinClipboard (text) {
      var theCmd, clipFile = new File(Folder.temp + "\\ClipBoardW.bat");
      clipFile.open('w');
    //  theCmd = "echo \"" + text + "\" | clip"; // this doesn’t help either
      theCmd = "echo " + text + " | clip";
      clipFile.writeln (theCmd);
      clipFile.close ();
      clipFile.execute ();
    Running this script provides a short flicker (the command prompt), but the clipboard does not contain the expected string. However, when double clicking on the generated I:\!_temp\ClipBoardW.bat the clipboard is filled correctly.
    IMHO the execute method does not work correctly for bat files. In another area of my project-script i run an exe file with this method correctly.

    Hi Klaus,
    sorry for my late response.
    execute definitely works witch batch-files
    Here's a "batch" - example you can test.
    There are two methods to prevent window from closing:
    "|more" - kind of pagebreak
    "pause"
    var oTemp = app.UserSettingsDir + "\\tmp";
        var MyDosCommand = "ipconfig.exe /a|more";
        var MyPath = new Folder (oTemp);
        if (!oTemp.exists)
            var MyPath = new Folder (oTemp);
            var lFehler = MyPath.create();
        oTemp = oTemp + "\\" +"nw.bat";
        var MyFile = new File (oTemp);
             MyFile.open ('w');
               if (MyFile.error > "")
                    alert("ERROR");
            MyFile.writeln(MyDosCommand);
            MyFile.writeln("pause");
            MyFile.close();
            MyFile.execute();

  • Client_host NOT PROPERLY WORK IN FORM

    ('type c:\local.txt > prn',NO_SCREEN);
    this command donot work do u have any idea
    client machine = c:\local.txt file exist
    create push button
    ==============
    client_host('type c:\local.txt > prn',NO_SCREEN);
    this command not working propery. if i can use client_host('notepad c:\local.txt') this work.
    problem is that when i push button press (auto send text file to printer)
    do u have any idea plz. reply

    type isn't a program its a dos command.
    You either need to put your commands in a .bat file or find a program you can use to do a print from the command line.
    My theory is. If it works from the run.. box in sthe start menu it will work with client_host.
    All the above assumes a windows client.
    Message was edited by:
    Matt Ball

  • Problem using CLIENT_HOST to FTP files from forms 10g

    Hi,
    I'm trying to use forms 10g ODS & webutil on NT to allow a user to select a file on their machine or the network and transfer the file to a DB server. I want to transfer the file to the file system on the server NOT to a BLOB column on a table. I've used webutil (client_get_file_name) to display the dialog box and allow the user to select a file. This works fine. However, when I try to use CLIENT_HOST to FTP the selected
    to the remote server it fails. I'm issuing the following
    command from within forms:
    CLIENT_HOST('CMD /C ftp -n -s:C:\test_ftp.txt');
    Something tries to kick off and a grey area the size of a dos window flashes on to the screen for a couple of seconds but the FTP does not happen. The test_ftp.txt script is a simple ftp script that transfers one file and I know it works as I can run it successfully from DOS or NT command prompt.
    Questions:
    (1) Does anyone know how to pause the DOS window so you
    can see what is actually happening ?
    (2) Has anyone implemented FTP functionality
    successfully using CLIENT_HOST in the same way that's
    I'm trying ?
    Any help would be appreciated.
    Declan.

    Okay...
    Try this. For testing put your command in a .bat-file. In this .bat-file spool the output to a text-file. I'm not sure about the spooling syntax under Windows, check the Windows documentation for that. Like:
    ftp.bat
    start spooling to ftp.out
    cmd /c .... (your ftp commando line)
    stop spooling
    Perhaps the problem is that it doesn't find the ftp commando? Try hardcode the path like c:\windows\ftp ... etc!

  • Running workbook from .bat fails to start application missing CORE40 dll

    I have been running several workbook via windows task scheduler / vbscript &/or bat files.
    I now have a new box which I access thru Remote Desktop Connection, so I can run all these automated updates without having my screen blinking everytime a shedule workbook starts.
    If I click on the actual Discoverer icon, or the discoverer workbook shortuct, all works well.
    If I click on the .bat file, or try to run the workbook via the cmd , it gives me the following error:
    DIS4USR.EXE – Unable To Locate Component
    “this application has failed to start because CORE40.DLL was not found. Re-installing the application may fix this problem.”
    The dll is under c/orant/bin/core40.dll, which is where I've read it should be, and it works fine in my regular box...
    Please help! URGENT :)
    Thanks!

    Hello
    Check the PATH environment variables for the machine you are on and the one you are connecting to.
    You might not have Discoverer's objects in the PATH.
    Another possibility is that you have more than one piece of ORACLE software on the machine and you may need to also set the ORACLE_HOME within the BAT file.
    Best wishes
    Michael

  • How to download a text, bat, excel file from a page

    Hi All,
    I have written a jsp code that will list all the present in a particular folder. Those are displayed as links and on click, I want to download the file (pop-up message with the option to open or save it)...
    But this is working properly for files like .exe, .pdf, .so etc. But when I am trying to download a .txt, .dat, .xls or .jpg (even .bat or .zip) files, it's getting opened in the same browser (files like .doc, .xls or .zip are opening in unreadable format). Even if, I right click on the link and click on 'Save Target As...', the file is getting saved as .html format.
    I am attaching the jsp code:
    <%@ page import = "java.io.File"%>
    <h3><u>Right-click on the link and select 'Save Target As...' to download</u></h3>
    <%
         String directory = "C:/My Drive/my_context/my testings/file upload 2/files/";
         File file = new File(directory);
         File[] content = file.listFiles();
         for (int i=0; i<content.length; i++)
    %>
              <a href="./files/<%=content.getName()%>"><%=content[i].getName()%></a>
              <br>
    <%
    %>
    <br><br>
    BACK
    But I don't think that there is anything to do with the code. Can anybody help me on this.
    Thanks in Advance,
    Ujjal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi All,
    I have written a jsp code that will list all the present in a particular folder. Those are displayed as links and on click, I want to download the file (pop-up message with the option to open or save it)...
    But this is working properly for files like .exe, .pdf, .so etc. But when I am trying to download a .txt, .dat, .xls or .jpg (even .bat or .zip) files, it's getting opened in the same browser (files like .doc, .xls or .zip are opening in unreadable format). Even if, I right click on the link and click on 'Save Target As...', the file is getting saved as .html format.
    I am attaching the jsp code:
    <%@ page import = "java.io.File"%>
    <h3><u>Right-click on the link and select 'Save Target As...' to download</u></h3>
    <%
         String directory = "C:/My Drive/my_context/my testings/file upload 2/files/";
         File file = new File(directory);
         File[] content = file.listFiles();
         for (int i=0; i<content.length; i++)
    %>
              <a href="./files/<%=content.getName()%>"><%=content[i].getName()%></a>
              <br>
    <%
    %>
    <br><br>
    BACK
    But I don't think that there is anything to do with the code. Can anybody help me on this.
    Thanks in Advance,
    Ujjal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error while running OBIA configuration configApps.bat

    I am receiving error while running configapps.bat.
    I have the following wnvironment installed:
    64 Bit windows
    Java 6 (JDK1.6.x)
    Weblogic server 10.3.6 in software only mode
    Ran OBIEE 11.1.1.7.0 RCU utility to create BIPLATFORM and MDS schemas.
    configured OBIEE 11.1.1.7
    Installed ODI 11.1.1.7 with All components and “Skip Repository Configuration”
    Ran OBI Apps RCU to create schemas for:
    ODI Master and Work Repositories (DEV_BIA_ODIREPO)
    Oracle Business Applications Components (DEV_BIACOMP)
    Oracle Business Analytics Datwarehouse (DEV_DW)
    Update to MDS schema.
    Installed BI Apps 11.1.1.7.1
    Applied FMW Platform Patches
    Updated BIACOMP Schema with ATGLite patch scripts
    Everything was up and running until now, when i try to configure OBIA via running configApps.bat, it is getting stuck at ODI configuration.
    Also the server seems to be going to idle/suspended state every now and after 5-6 mins of startup and i see this message repeated again and again in server log :
    <Warning> <oracle.mds> <BEA-000000> < The MDS session was created by the ADF framework with a transaction key for its "single flush" feature, and the call to flushchanges is restricted to that framework. This call does not use that transaction key and although working now, will fail with an exception in future. To find the originator of the call, set the log level for logger "oracle.mds.transkey" to FINEST. Note that the ADF framework manages the MDS session created for the request so an explicit call to flushchanges should be removed>
    Has anyone encountered this issue and any idea how to resolve this.
    Appreciate any help in advance ...

    The re-install has been successful. Didnt encounter any issues in any configuration.
    However the waring still appears
    <Warning> <oracle.mds> <BEA-000000> < The MDS session was created by the ADF framework with a transaction key for its "single flush" feature, and the call to flushchanges is restricted to that framework. This call does not use that transaction key and although working now, will fail with an exception in future. To find the originator of the call, set the log level for logger "oracle.mds.transkey" to FINEST. Note that the ADF framework manages the MDS session created for the request so an explicit call to flushchanges should be removed>
    Also in the log i am getting the following errors as well in the Weblogic server log
    BEA -101020  Servelet failed with exception Java.lang.illegalstateexception: Cannot forward a response that is already committed
    Oracle.as.management.mbeans.opmn  OPMN.queryProcessStatus failed with the following exception  oracle.as.management.opmn.optic.OpticBadConnectionException: Failed to create secure socket for OPMN
    All patches were applied successfully, including weblogic one's.
    Has anyone got any idea how to resolve these issues.
    Thanks in advance.

  • Running a Bat file from a stored procedure

    This is part II of Re: Need to run bat file from application express
    I thought I would open a new thread
    I thought I had this fiqured out but it still doesn't work
    1) I granted CREATE EXTERNAL JOB to my user
    2) startup the OracleJobScheduler Service
    3)
    create or replace
    PROCEDURE RUN_OS_COMMAND(p_cmd IN varchar2)
    is
    v_job_exists pls_integer:=0;
    begin
      select count(1)
      into  v_job_exists
      from  all_scheduler_jobs
      where job_name='JAVA_EXE';
      if v_job_exists>0 then 
        dbms_scheduler.drop_job(job_name =>'JAVA_EXE');
      end if;
      dbms_scheduler.create_job
      (   job_name          =>'JAVA_EXE'
        , job_action        =>p_cmd
        , job_type          =>'executable'
        , enabled           =>false
        , auto_drop         =>false
        , start_date        =>systimestamp
      dbms_scheduler.run_job(job_name =>'JAVA_EXE');
    end;test.bat is del test.csv
    I run this
    begin
      RUN_OS_COMMAND('C:\temp\test.bat');
    end;
    / anonymous block completed
    It runs with no errors but does not run the bat file... what am i missing, thanks Doug

    LLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\wblincoe\Application Data
    CLASSPATH=.;[ORACLE_HOME]\jdbc\lib\ojdbc6.jar;c:\myjar\xdocore.jar;c:\myjar\i18nAPI_v3.jar;c:\myjar\xdoparser.jar;c:\myjar\xmlparserv2.jar
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=WBLINCOELT
    ComSpec=C:\WINDOWS\system32\cmd.exe
    DEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\wblincoe
    LDMS_LOCAL_DIR=C:\Program Files\LANDesk\LDClient\Data
    LOGONSERVER=\\03N-DAYT-DC01
    NUMBER_OF_PROCESSORS=2
    OS=Windows_NT
    Path=C:\OraHome_1\jre\1.4.2\bin\client;C:\OraHome_1\jre\1.4.2\bin;C:\app\wblincoe\product\11.1.0\db_1\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PERL5LIB=C:\oracle\product\10.2.0\http_1\sysman\admin\scripts;C:\oracle\product\10.2.0\http_1\perl\site\5.6.1\lib;C:\oracle\product\10.2.0\http_1\perl\site\5.6.1;C:\oracle\product\10.2.0\http_1\perl\5.6.1\lib\MSWin32-x86;C:\oracle\product\10.2.0\http_1\perl\lib\5.6.1;C:\oracle\product\10.2.0\http_1\perl\lib\5.6.1\MSWin32-x86;
    PHPRC=C:\Program Files\PHP\
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0f02
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\wblincoe\LOCALS~1\Temp
    TMP=C:\DOCUME~1\wblincoe\LOCALS~1\Temp
    USERDNSDOMAIN=CACI.COM
    USERDOMAIN=CACI
    USERNAME=wblincoe
    USERPROFILE=C:\Documents and Settings\wblincoe
    VSEDEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
    windir=C:\WINDOWS

  • ATG Endeca CRS Integration baseline_update.bat fails

    Hi,
    I have deployed the CRS through cim.bat and after that I am trying to run the following scripts and fails with the below errors.
    I am able to deploy the dicsover application that comes with the Endeca.
    Here are the steps I am trying to do after deploying through CIM.
    F:\Endeca\apps\CRS\control>load_baseline_test_data.bat
    F:\Endeca\apps\CRS\control>baseline_update.bat
    F:\Endeca\apps\CRS\control>load_baseline_test_data.bat
    F:\Endeca\apps\CRS\config\script\..\..\test_data\baseline\data.txt
    1 file(s) copied.
    Setting flag 'baseline_data_ready' in the EAC.
    F:\Endeca\apps\CRS\control>baseline_update.bat
    [03.27.13 10:55:13] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
    [03.27.13 10:55:14] INFO: Definition has not changed.
    [03.27.13 10:55:14] INFO: Starting baseline update script.
    [03.27.13 10:55:14] INFO: Acquired lock 'update_lock'.
    [03.27.13 10:55:14] INFO: [ITLHost] Starting shell utility 'move_-toprocessing'.
    [03.27.13 10:55:15] INFO: [ITLHost] Starting copy utility 'fetch_config_to_input_for_forge_Forge'.
    [03.27.13 10:55:16] INFO: [ITLHost] Starting backup utility 'backup_log_dir_for_component_ConfigurationGeneratorForge'.
    [03.27.13 10:55:17] INFO: [ITLHost] Starting component 'ConfigurationGeneratorForge'.
    [03.27.13 10:55:35] INFO: [ITLHost] Starting copy utility 'CopyRecsearchConfig'.
    [03.27.13 10:55:35] INFO: [ITLHost] Starting backup utility 'backup_log_dir_for_component_Forge'.
    [03.27.13 10:55:36] INFO: [ITLHost] Starting component 'Forge'.
    [03.27.13 10:55:41] INFO: [ITLHost] Starting backup utility 'backup_log_dir_for_component_Dgidx'.
    [03.27.13 10:55:42] INFO: [ITLHost] Starting component 'Dgidx'.
    [03.27.13 10:55:43] SEVERE: Batch component 'Dgidx' failed. Refer to component logs in F:\Endeca\apps\CRS\config\script\..\..\.\logs\dgidxs\Dgidx on host ITLHost.
    Occurred while executing line 53 of valid BeanShell script:
    50|
    51| Dgidx.archiveLogDir();
    52|
    53| Dgidx.run();
    54|
    55|
    56|
    [03.27.13 10:55:43] SEVERE: Caught an exception while invoking method 'run' on object 'BaselineUpdate'. Releasing locks.
    Caused by java.lang.reflect.InvocationTargetException
    sun.reflect.NativeMethodAccessorImpl invoke0 - null
    Caused by com.endeca.soleng.eac.toolkit.exception.AppControlException
    com.endeca.soleng.eac.toolkit.script.Script runBeanShellScript - Error executing valid BeanShell script.
    Caused by com.endeca.soleng.eac.toolkit.exception.EacComponentControlException
    com.endeca.soleng.eac.toolkit.component.BatchComponent run - Batch component 'Dgidx' failed. Refer to component logs in F:\Endeca\apps\CRS\config\script\..\..\.\logs\dgidxs\Dgidx on host ITLHost.
    [03.27.13 10:55:43] INFO: Released lock 'update_lock'.
    Error in the Log file Dgidx.log
    ============================================================================
    === DGIDX: Version = "6.4.0.692722"
    === Start Time : Wed Mar 27 10:55:42 2013
    === Arguments : "F:\Endeca\MDEX\6.4.0\bin\dgidx.exe -v --compoundDimSearch --lang en --out F:\Endeca\apps\CRS\logs\dgidxs\Dgidx\Dgidx.log --dtddir F:\Endeca\MDEX\6.4.0\conf\dtd --tmpdir F:\Endeca\apps\CRS\data\temp F:\Endeca\apps\CRS\data\forge_output\CRS F:\Endeca\apps\CRS\data\dgidx_output\CRS"
    === Current Directory : F:\Endeca\apps\CRS
    === Host : ABONDALA-US2
    === Exec Path : F:\Endeca\MDEX\6.4.0\bin\dgidx.exe
    ============================================================================
    Language/collation in use is English (collation=endeca)
    WARN     03/27/13 15:55:42.950 UTC (1364399742949)     DGIDX     {dgidx,baseline}     Lexer/OLT log: level=-1: 2013/03/27 10:55:42 | INFO | Enabling log callback     
    No application configuration specified. Using "F:\Endeca\apps\CRS\data\forge_output\CRS" as the application configuration prefix.
    ============================================================================
    === DGIDX: Starting phase "Read raw dimensions, properties, and records"
    === Current Time : Wed Mar 27 10:55:42 2013
    === Total Elapsed : 0.0110 seconds
    === User CPU Time : 0.0156 seconds
    === System CPU Time : 0.0468 seconds
    === Memory Usage : 18.23 MB
    ============================================================================
    Parsing XML dimensions data with validation turned on
    Parsing project file "F:\Endeca\apps\CRS\data\forge_output\CRS.xml" (project="CRS")
    XMLParser: Reading dimensions, dvals, and synonyms from file "F:\Endeca\apps\CRS\data\forge_output\\CRS.dimensions.xml"
    ERROR     03/27/13 15:55:42.958 UTC (1364399742957)     DGIDX     {dgidx,baseline}     Internal error while decompressing input stream: null     
    FATAL     03/27/13 15:55:42.958 UTC (1364399742957)     DGIDX     {dgidx,baseline}     Fatal error at file , line 0, char 0; Message: An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=F:\Endeca\apps\CRS\data\forge_output\\CRS.dimensions.xml     
    WARN     03/27/13 15:55:42.958 UTC (1364399742957)     DGIDX     {dgidx,baseline}     Lexer/OLT log: level=-1: 2013/03/27 10:55:42 | INFO | Disabling log callback     
    Is this issue ""F:\Endeca\apps\CRS\data\forge_output\\CRS.dimensions.xml" file path. I am running on windows 7 and even tried giving the paths with back slash instead of forward slash. Not sure where to debug this issue. Please let me know if anyone has encountered this error.
    environment.properties
    LANGUAGE_ID=en
    EAC_PORT=8888
    HOSTNAME=localhost
    #CAS settings
    CAS_ROOT=F:/Endeca/CAS/3.1.1
    CAS_HOST=localhost
    CAS_PORT=8500
    CAS_CLIENT_ID=FORGE
    # PATH_SEP_VARNAME: for platform-independence, determine at runtime instead of build time:
    PATH_SEP_VARNAME=${path.separator}
    # CAS library directory for loading the jars to use in the record store commandline util into the class path
    RS_JAVA_LIB_DIR=F:/Endeca/CAS/3.1.1/lib/recordstore-cmd/
    # CAS recordstore-forge-adapter jar loads all necessary record store client dependencies through manifest file
    CAS_RS_CLASSPATH=F:/Endeca/CAS/3.1.1/lib/recordstore-forge-adapter/recordstore-forge-adapter-3.1.1.jar
    # Forge needs record store libraries as well as Spring to load record store adapter configuration files
    FORGE_CLASSPATH=${CAS_RS_CLASSPATH}${PATH_SEP_VARNAME}./config/lib/java/spring-2.5.6.jar${PATH_SEP_VARNAME}./config/lib/java/eacToolkit-3.1.1.jar${PATH_SEP_VARNAME}./config/lib/java/spring-delegate-adapter-1.0.1.jar${PATH_SEP_VARNAME}./config/script${PATH_SEP_VARNAME}.
    # Forges running FCM need to both read from record stores and run the FCM, ifdi-fcm.jar includes dependencies via manifest
    FORGE_FCM_CLASSPATH=${FORGE_CLASSPATH}${PATH_SEP_VARNAME}./config/lib/java/ifdi-fcm-1.0.0.20121016.jar
    Thanks for the help.
    Thanks
    Anil.
    Edited by: user552512 on Mar 27, 2013 9:08 AM

    That definitely doesn't look right - by default it would be reading the file data\forge_output\dimensions.xml, but you are getting a carriage return and CRS.dimensions.xml? Have you modified the Dimension Adapter and/or Indexer Adapter in your pipeline? The default settings are:
    -- Dimension Adapter --
    Format = XML - Internal
    URL = dimensions.xml (so relative to the pipeline.epx)
    Custom Compression Level = unchecked (if this is checked then URL will become dimensions.xml.gz)
    -- Indexer Adapter --
    URL = ../../data/forge_output/
    Regards
    Michael

Maybe you are looking for