Displaying Runtime Generated Files

We have a servlet that creates Excel Spreadsheets during runtime and deposits the
files on the server. Since the files are not part of the war file, how can I
create a html link to display the files in a browser?

fdfddf wrote:
Hi, I have a requirement that need to display multiple pdf files in same jsp file..
we are using Itext to generate PDF files.....
i have working exp on displaying single PDF file in jsp..but not multiple pdf files..
Can anyone suggest me how to approach...Not really no.
What do you mean display? Are you sending PDF content directly? Because I don't think this is going to be possible to do it that way...

Similar Messages

  • How to serve runtime generated file on WAS?

    Hi,
    In short: where (local path on application server) should I store a file (generated at runtime) in order to be able to offer it for downloading (via WAS)?
    Context: I have a BSP application and I want to generate a PDF file (in the BSP app) and store that PDF locally on the server. In which local folder do I need to store that pdf so that it will be available remotely via WAS? Is there some folder in the local system that serves as WAS root folder?
    Thanks!
    Jeroen

    Hi,
    I wouldn't open the file system of the WAS for the public and let the WAS read the file itself and serve it to the client.
    Eg
    Open the file
            OPEN DATASET file_path_pdf FOR input IN Binary mode message openmessage."text MODE encoding utf-8 .
            if sy-subrc <> 0.
            %>
                <%=openmessage%>
                <% mnavigation->response_complete( ).%>
            <%
            else.
                read dataset file_path_pdf inTO pdfcontent.
                CLOSE DATASET file_path_pdf.
            endif.
    Give it to the browser
            runtime->server->response->set_data( pdfcontent ).
            contentsize = xstrlen( pdfcontent ).
            runtime->server->response->set_header_field( name = 'Content-Length'
                                                 value = contentsize ).
            runtime->server->response->delete_header_field( name = 'Cache-Control' ).
            runtime->server->response->delete_header_field( name = 'Expires' ).
            runtime->server->response->delete_header_field( name = 'Pragma' ).
            runtime->server->response->set_header_field( name = 'Content-Type'
                                                     value = 'application/pdf' ).
    Eventual delet of the file
            delete dataset file_path_pdf.
    Set the reponse to complete to clear the buffers
            mnavigation->response_complete( ).
    Als take care when converting to PDF that you use unique file names in case you want to keep the files.
    Eddy

  • WEB.SHOW_DOCUMENT sometimes doesn't display the generated PDF file

    Hi all,
    I'm using the following code to generated my report from Forms:<br><br>
    V_REPORT_ID := FIND_REPORT_OBJECT(V_REPORT_NAME);
    V_REPORT_SERVER_JOB:= RUN_REPORT_OBJECT(V_REPORT_ID,P_LIST);
        V_JOB_ID := substr(V_REPORT_SERVER_JOB,length(:GLOBAL.REPORTS_SERVER)+2,length(V_REPORT_SERVER_JOB));
        V_REPORT_STATUS := REPORT_OBJECT_STATUS(V_REPORT_SERVER_JOB);
    LOOP
       IF V_REPORT_STATUS = 'FINISHED' THEN          
          V_TMP_PDF := :GLOBAL.APACHE_HTML_FOLDER ||'rpt'|| V_JOB_ID  ||'.pdf' ;
         COPY_REPORT_OBJECT_OUTPUT(V_REPORT_SERVER_JOB, V_TMP_PDF );
        WEB.SHOW_DOCUMENT(:GLOBAL.AS_HOME_URL ||  'rpt'|| V_JOB_ID  ||'.pdf' ,'_BLANK');     
        END IF;
    END LOOP; <br><br>
    Everything works fine except the WEB.SHOW_DOCUMENT part. In some clients, this command does what it required from it and opens a new browser window with the PDF report displayed on it. In some other clients, this command does nothing: now window dispalyed. When I refer to the Application Server, I see the PDF report successfully generated there. When I put the URL of the generated report manually in the browser address, I can see the report.
    <br><br>
    <b>Why the WEB.SHOW_DOCUMENT doesn't display the generated PDF report in some clients?</b>

    I agree with the previous 2 posters.
    Also firefox and ie handle it differently. Make sure you test on what your clients use.
    Sometimes acrotray.exe is completely retarded and doesn't work.

  • Store and Display doc/pdf files in the database using Forms

    Hi all,
    How can i store and display doc/pdf files in the database using Forms 10g?.
    Arif

    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
      and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
      Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      If the PLX is not generated, the Webutil.pll library would have to be attached with
      full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.sarah

  • Crystal Report 11, List of Runtime DLLs, Runtime.hlp File

    I am using Crystal Report 11 with my Delphi 7 application.
    I need the list of runtime dlls which I will need to distribute with my application.
    The Help file which comes with the Delphi 7 VCL Component (UCRPE32.hlp) says :
    QUOTE
    check RUNTIME.HLP in the Program Files\Seagate Software\Crystal Reports\Developer Files\Help folder
    and make sure you have all the files.
    UNQUOTE
      I could not find the RUNTIME.HLP file in any folder/subfolders on the machine  where Crystal Report 11 has been installed.
       Can somebody tell me where I can find RUNTIME.HLP file or the list of runtime DLLs which is required to be distributed
    along with my application(which is written in Delphi 7).
        Thanks in advance

    Hello Ramesh,
    Business Objects does not support manual deployment of their runtime files.  This started with the release of CR XI (v11.0).  Please see [Business Objects Note 1218571|https://bcp.wdf.sap.corp/sap/sapnotes/display/0001218571] - How to distribute the Report Designer Component (RDC) in Crystal Reports XI for more information.
    You may also want to review the RDC deployment article - [Creating an RDC Distribution Package|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/901c0761-cf1d-2b10-dea4-8e83937a9337] - that can be found on the SAP web site as well.
    The RDC merge modules do not include the CRPE32.dll.  Since you're using the VCL you'll probably have to add that file manually to your deployment package.
    The merge module links in these articles have probably changed.  Go to the [Business Objects Support Software Download|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm] page to find the RDC merge modules.
    Change the Selection Criteria to this:
    Software Product: Crystal Reports
    Product Version: XI, XI Release 1, or XI Release 2 (depending on your version of Crystal Reports)
    Software Type: Utility
    You should also be aware of the fact that the VCL is not being updated any longer.  I think the XI (v11.0) version is the last one that will be available.  Additionally, the Report Designer Component (RDC) has been retired with the release of CR 2008.  Going forward you'll have to migrate to .NET SDK or the Crystal Report Java SDK.
    I hope this helps,
    Sincerely,
    Dan Kelleher

  • Want to display a .bmp file in reports

    Hello there
    I am trying to display a .bmp file on reports which I think is simple.the main problem is that After making changes to report we transfer the report file to Unix and then generate the report in unix and print it and in that process the report stops printing.
    Thanks in advance.
    Jha

    make sure SOURCE FILENAME is valid in your LINK FILE pointing to the image.bmp
    Report compiles nicely even with wrong source filename, only when opening layout editor an error message will appear.

  • Not generate file using ItemAdded Event in SharePoint Online

    I develop a list item event receiver For Sharepoint online.I upload the .wsp file in solution and activate the feature On ItemAdded event I create/generate document on 15 document library based on library template.
    Some time it generate all 15 files and sometime it generate 8/10/12 files.
    i.e not generate files in all the document library.
    It work fine in my local server.
    Please Help me.

    &nbsp;****1.design_Pre_Order_Meeting_Template [=========== ] System.ArgumentException: Value does not fall within the expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****2.design_Checklist_T [=========== ] System.ArgumentException: Value does not fall within the expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****3.design_Drawing_Change_Schedule [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****4.design_Responsibility_Matrix_Template [=========== ] System.ArgumentException: Value does not fall within
    the expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****5.design_Review_Record_Template [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****6.design_Risk_Assesment_Template [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****7.design_Supplier_Material_Sheet [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****8.design_Team_Meeting_T [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****9.pc_Key_Isssue_Schedule [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****10.pc_Client_Progress_Report [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****11.pc_Design_Change_Register [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****12.pc_rfi_schedule [=========== ] System.ArgumentException: Value does not fall within the expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****13.pc_Drawing_Progress_Schedule_T [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****14.pc_Technical_Submittal_Schedule [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****16.pc_Drawing_Issue_Schedule [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****19.proc_Pre_Order_Meeting_T [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****20.proc_Preferred_Supplier_List [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties)

  • Filespaces in generated file names - unfortunate

    I'm trying to upload all the files generated by an export to directory. Many of the auto-generated file names use the name of a page (which is displayed in the navigation - so i don't want to remove the spaces).
    This creates files with blanks in the name, and most FTP implementations will choke on this.
    #1 - this should be fixed
    #2 - does anyone have a workaround for managing this?

    Spaces are not valid in web pages. If used, they have to be escaped with %20
    If you want to change the names of files before trying to use them with some web publishing program, this shell script might be of use. It changes spaces to _ makes upper case letters lower case, etc.
    #!/bin/bash
    # Pete keeps giving me photos with bad file names
    for i in *
    do
    OLDNAME="$i"
    NEWNAME=`echo "$i" | tr ' ' '_' | tr A-Z a-z | sed s/-/-/g`
    if [ "$NEWNAME" != "$OLDNAME" ]
    then
    TMPNAME="$i"_TMP
    echo ""
    mv -v -- "$OLDNAME" "$TMPNAME"
    mv -v -- "$TMPNAME" "$NEWNAME"
    fi
    done

  • How to display XML generated dynamically, as TREE in cluster environment

    hai guys,
    we are generating a tree.xml file in server side as follows.
    path = getServletConfig().getServletContext().getRealPath("/QBE/jsp/tree.xml");
    BufferedWriter out1 = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),"UTF8"));
    out1.write(xmlString + "</tree>");
    out1.close();
    "xmlString" holds the data in xml tag format.
    in order to display the xml file in TREE structure, we are using a function like
    function createTree()
         var tree = new WebFXLoadTree("SMQ/AMQ List", "tree.xml");
         document.write(tree);
    ALL THIS MECHANISM IS WORKING FINE IN DEVELOPMENT ENVIRONMENT ANS AS WELL AS WHEN WE DEPLOY THE RELEASE IN LOCAL MACHINE. BUT IT IS NOT WORKING WHEN THE RELEASE IS DEPLOYED IN CLUSTER ENVIRONMENT.
    Please help me out how to solve this...
    thanks in advance,
    Ranga
    Edited by: Ranganatha on Jun 5, 2008 5:18 AM

    Hey if you want any more information regarding this problem, i can provide.

  • Download/Display the image files stored at KM location: J2EE application

    Hi All
    Please let me know how to download/Display the image files stored at KM location on portal using J2EE application. Thanks.
    Best Regards
    P M

    You can use a servlet to deliver the image data to the <img tag, which allows you to get the data from something other than a file on the server (e.g. store the image data as a session attribute with a generated attribute key, the key being given in the serlvet's query string).

  • JSP Registry could not locate runtime property file

              At runtime, my JSP is throwing an exception claiming to be not able to find the property
              file. I have found the exact property file in the jar located on the server. I've
              tried extracting it and placing it in different places and adding the file and directory
              to the WebLogic classpath. I'm not sure what else to try.
              Here's the exception:
              Loading from CLASSPATH cat_test4_cat_pkg_Cat_pkgModule.properties
              java.lang.RuntimeException: JSP Registry could not locate runtime property file:
              cat_test4_cat_pkg_Cat_pkgModule.properties
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              Thanks.
              

    When you generate a webapp or use the JSP element wizard , a property file is created for you that contains some startup parameters. This file needs to be available in the classpath. This errors comes up becuase the file is not avalable in the classpath.

  • Display MS word file in Office control

    Hi all,
    I am using the Office control UI element to display a MS word file in WD application. I have created a Mime object for the word file and get this file data into a Xstring attribute, and bind this attribute with the datasource property of the Office control.
    But at the runtime I am not able to display the Word file, it displays only a White colour container with text SAP IOS. Can anyone suggest me how I can get the word file in WD component using office control.
    I have also checked SOIS pakage, but didn't get any solution from the example given in this package.
    For your reference I am using the below code to get the mime object in Xstring attribute.
    DATA:
      mime_repository TYPE REF TO if_mr_api,
      content TYPE xstring,
      url TYPE string VALUE '/SAP/BC/WEBDYNPRO/SAP/ZTEST_SAN5/TEST.docx'.
      mime_repository = cl_mime_repository_api=>get_api( ).
      CALL METHOD mime_repository->get
        EXPORTING
          i_url     = url
        IMPORTING
          e_content = content.
      DATA lo_nd_office TYPE REF TO if_wd_context_node.
      DATA lo_el_office TYPE REF TO if_wd_context_element.
      DATA ls_office TYPE wd_this->element_office.
      DATA lv_test TYPE wd_this->element_office-test.
    navigate from <CONTEXT> to <OFFICE> via lead selection
      lo_nd_office = wd_context->get_child_node( name = wd_this->wdctx_office ).
    get element via lead selection
      lo_el_office = lo_nd_office->get_element( ).
      lv_test = content.
    Set single attribute
      lo_el_office->set_attribute(
        EXPORTING
          name =  `TEST`
         value = lv_test ).
    This lv_test having the Xstring data after execution but didn't set this data as word file at runtime.
    Please suggest if anyone have any idea on this.
    Thanks
    Sanket

    hi,
    try this in browser..
    tools->internet options->security->custom level
    here you will find Active x controls and plugis..
    enable all of them and try your applications..
    if it is helpful pl give some points buddy:-)
    regards,
    Kranthi.

  • Sending Email after generating Files

    Hi Experts,
    My requirement is very specific , I am using PI 7.0 and  the scenario is outbound proxy to file.
    I am required to generate some files from the  incoming XML structure and place them on a destination folder.
    But it is also required that there must be an email sent to a set of id's as soon as the files are created , I have three questions :
    a) What is the mechanism by which SAP XI can get an acknowledgement back from the folder after the file creation to send an email ?? Is it possible to receive an acknowldgement in this scenario and send email via mail adapter
    b) Should SAP XI send an acknowledgement back to SAP after generating files or after the File receiver Adapter bean is excuted for SAP to send the email ?
    c) Do i have to use BPM essentialy for this ? and if yes .. can you please forward some links specific to this scenario , i have never done BPM
    thanks
    Dev

    Hi Praveen
    Thanks for your reply
    I request you to please help me with  some links on BPM as you said send step and requesting acknowledgement ,  since I am new to BPM ,,,
    how difficult is that , to accomplish ?
    Is there a blog or an article which displays a step by step for this or something similar to this ?
    it  will be really helpful
    thanks
    Dev

  • How to display dynamically generated SVG image

    Hello, I need some help on this issue...
    I need my page to display programmatically generated SVG image. but if i directly pass SVG string to the page like <h:outputText value="#{MyBean.SVGresult}"/> it will pop up a download dialog box. what should i do to properly include my svg into the page by using embed tag??

    The h:graphicImage does not appear to handle svg; maybe it should be extended. I'm still looking for the best way to do it. I don't know if I have the right solution but here is what I have done so far. This will throw up a x, y polyline graph.
    Put a panelGrid as place holder in the jsp
          <h:panelGrid  title="Report" style="color=black" border="0" id="dataReports" columns="1" binding="#{dataAnalysis.dataReport}">
          </h:panelGrid>Then take a 'template' svg and fill it in with the dynamic additions and changes in the backing bean. In a submit action
                    generateSVGGraph(twothetaArray, intensityArray);
                    UIColumn c=new UIColumn();
                    HtmlOutputText op=new HtmlOutputText();
                    op.getAttributes().put("style","color=black");
                    op.setTitle("header text");
                    op.setValue("header text");
                    c.setHeader(op);
                    //c.getFacets().put()
                    //c.getChildren().add("<embed src=\"../phase.svg\" align=\"left\" width=\"500\" height=\"500\" type=\"image/svg+xml\"/>");
                    //javax.faces.webapp.UIComponentBodyTag embed=new javax.faces.webapp.UIComponentBodyTag();
                    //javax.servlet.jsp.tagext.TagAdapter;
                    com.hypernex.jsf.ext.html.HtmlEmbedGraphic embedGraphic=new com.hypernex.jsf.ext.html.HtmlEmbedGraphic();
                    //embedGraphic.
                    embedGraphic.getAttributes().put("src","../session/phase"+phaseGraphCount+".svg");
                    embedGraphic.getAttributes().put("align","left");
                    embedGraphic.getAttributes().put("width","600");
                    embedGraphic.getAttributes().put("height","500");
                    embedGraphic.getAttributes().put("type","image/svg+xml");
                    c.getChildren().add(embedGraphic);
                     dataReport.getChildren().add(c);
                   c=new UIColumn();
                    op=new HtmlOutputText();
                    op.getAttributes().put("style","color=black");
                    op.setTitle("header text");
                    op.setValue("header text");
                    c.setHeader(op);
                    HtmlOutputText out=new HtmlOutputText();
                    out.getAttributes().put("style","color=black");
                    //out.setTitle("Figure 1.  Powder intensity as dependent on 2&theta;.");
                    out.setValue("Figure "+phaseGraphCount+".  Powder intensity as dependent on 2Theta.");
                    c.getChildren().add(out);
                    dataReport.getChildren().add(c);
    ...generateSVGGraph
        protected void generateSVGGraph(double[] x, double[] y)
            //FacesContext context = FacesContext.getCurrentInstance();
            //context.
            //Create an svg graph of the equation.
            org.apache.batik.dom.svg.SAXSVGDocumentFactory svgFactory=new org.apache.batik.dom.svg.SAXSVGDocumentFactory("org.apache.xerces.parsers.SAXParser");
               org.apache.batik.dom.svg.SVGDOMImplementation svgDOMImplementation=new org.apache.batik.dom.svg.SVGDOMImplementation();
            org.w3c.dom.DocumentType dt=null;//svgDOMImplementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN",f.toURI().toString());
            //System.out.println(dt);
         org.w3c.dom.svg.SVGDocument svgOMDocument=null;
            try
                System.out.println("dir "+(new java.io.File(".")).toURI().toString());
                svgOMDocument=(org.w3c.dom.svg.SVGDocument)svgFactory.createDocument((new java.io.File("../webapps/jsf-wita/siteadmin/templates/graph-template.svg")).toURI().toString(), new java.io.FileInputStream(new java.io.File("../webapps/jsf-wita/siteadmin/templates/graph-template.svg")));//new org.apache.batik.dom.svg.SVGOMDocument(dt, (org.w3c.dom.DOMImplementation)svgDOMImplementation);
                org.w3c.dom.svg.SVGSVGElement root=svgOMDocument.getRootElement();
                        org.apache.batik.dom.svg.SVGOMGElement primary_g=new org.apache.batik.dom.svg.SVGOMGElement("", (org.apache.batik.dom.AbstractDocument)svgOMDocument);
                        primary_g.setAttribute("style","stroke:black; fill:none; stroke-width:1");
                        root.appendChild(primary_g);
                        //double[] x=new double[4*90];
                        //double[] y=new double[x.length];
                        //x[0]=(double)(1)/4.0;
                            //methodArgs[0]=new Double(Math.toRadians(x[0]));
                        //y[0]=((Double)method.invoke(mathmlObject, methodArgs)).doubleValue();
                        double xMin=x[0];
                        double yMin=y[0];
                        double xMax=x[x.length-1];
                        double yMax=xMax;
                        double xOfyMax=yMin;
                        StringBuffer points=new StringBuffer();
                        for(int index=0;index<x.length-1;index++)
                            //System.out.println(x[index]+" "+y[index]);
                            //x[index]=(double)(index+1)/4.0;
                            //methodArgs[0]=new Double(Math.toRadians(x[index]));
                            //y[index]=((Double)method.invoke(mathmlObject, methodArgs)).doubleValue();
                            double cx=x[index];
                            double cy=y[index];
                            //if(xMin>cx)xMin=cx;
                            if(yMin>cy)yMin=cy;
                            //if(xMax<cx)xMax=cx;
                            if(yMax<cy)
                             xOfyMax=cx;
                             yMax=cy;
                        org.w3c.dom.svg.SVGTextElement xLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("xLabel");
                        xLabel.getFirstChild().setNodeValue("2?");//?");
                        org.w3c.dom.svg.SVGTextElement xMinimumLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("xMinimumLabel");
                        xMinimumLabel.getFirstChild().setNodeValue(ddf.format(xMin,4).toString());
                        org.w3c.dom.svg.SVGTextElement xMaximumLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("xMaximumLabel");
                        xMaximumLabel.getFirstChild().setNodeValue(ddf.format(xMax,4).toString());
                        org.w3c.dom.svg.SVGTextElement yMinimumLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("yMinimumLabel");
                        yMinimumLabel.getFirstChild().setNodeValue(ddf.format(yMin,4).toString());
                        org.w3c.dom.svg.SVGTextElement yMaximumLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("yMaximumLabel");
                        yMaximumLabel.getFirstChild().setNodeValue(ddf.format(yMax,4).toString());
                        for(int index=0;index<x.length-1;index++)
                            points.append((x[index]-xMin)*500/(xMax-xMin));
                            points.append(",");
                            points.append((y[index]-yMin)*500/(yMax-yMin));
                            points.append(" ");
                        //System.out.println(points);
                        org.apache.batik.dom.svg.SVGOMGElement g=new org.apache.batik.dom.svg.SVGOMGElement("", (org.apache.batik.dom.AbstractDocument)svgOMDocument);
                        g.setAttribute("id",(String)"data");
                        g.setAttribute("transform", "translate(100, 550)");
                        g.setAttribute("style","stroke:black; fill:none; stroke-width:1");
                        org.apache.batik.dom.svg.SVGOMPolylineElement polyLine=new org.apache.batik.dom.svg.SVGOMPolylineElement("", (org.apache.batik.dom.AbstractDocument)svgOMDocument);
                        polyLine.setAttribute("fill", "none");
                        polyLine.setAttribute("stroke", "blue");
                        polyLine.setAttribute("transform", "scale(1, -1)");
                        polyLine.setAttribute("stroke-width", "1");
                        polyLine.setAttribute("points", points.toString());
                        g.appendChild(polyLine);
                        primary_g.appendChild(g);
                       javax.xml.transform.TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance();
                       javax.xml.transform.Transformer intermediateTransformer=tFactory.newTransformer(new javax.xml.transform.stream.StreamSource("../webapps/jsf-wita/stylesheets/identity.xsl"));
                                    intermediateTransformer.setOutputProperty(OutputKeys.ENCODING, "iso-8859-1");
                                    intermediateTransformer.setOutputProperty(OutputKeys.INDENT, "yes");
                         intermediateTransformer.transform(new javax.xml.transform.dom.DOMSource(svgOMDocument), new javax.xml.transform.stream.StreamResult(new java.io.FileOutputStream("../webapps/jsf-wita/session/phase"+phaseGraphCount+".svg")));
            catch(javax.xml.transform.TransformerConfigurationException tce)
                System.out.println("tce err: "+tce.getMessage());
            catch(javax.xml.transform.TransformerException te)
                System.out.println("te err: "+te.getMessage());
            catch(java.io.FileNotFoundException fnfe)
                System.out.println("fnfe:"+fnfe.getMessage());
            catch(java.io.IOException ioe)
                System.out.println("io:"+ioe.getMessage());
        HtmlEmbedGraphic.java
    * HtmlEmbedGraphic.java
    * Created on May 16, 2004, 8:12 AM
    package com.hypernex.jsf.ext.html;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    * @author  hyperdev
    public class HtmlEmbedGraphic extends javax.faces.component.UIComponentBase
        /** Creates a new instance of HtmlEmbedGraphic */
        public HtmlEmbedGraphic()
            super();
        public String getFamily()
            return "javax.faces.Data";
        public boolean isRendered()
            return true;
    public void encodeBegin(FacesContext context,
      UIComponent component) throws java.io.IOException {
      if ((context == null) || (component == null)){
          System.out.println("encodeBegin NullPointerException "+context);
        throw new NullPointerException();
          System.out.println("encodeBegin "+context+" "+component);
      //MapComponent map=(MapComponent) component;
      ResponseWriter writer = context.getResponseWriter();
      writer.startElement("embed", this);
      writer.writeAttribute("src", getAttributes().get("src"),"id");
    public void encodeEnd(FacesContext context) throws java.io.IOException {
      if ((context == null)){
        throw new NullPointerException();
      //MapComponent map = (MapComponent) component;
      ResponseWriter writer = context.getResponseWriter();
      writer.startElement("embed", this);
      writer.writeAttribute("src", getAttributes().get("src"),"id");
      writer.writeAttribute("align", getAttributes().get("align"),"id");
      writer.writeAttribute("width", getAttributes().get("width"),"id");
      writer.writeAttribute("height", getAttributes().get("height"),"id");
      writer.writeAttribute("type", getAttributes().get("type"),"id");
      writer.endElement("embed");
    }graph-template.svg - More static parts of the graphic can be put in here.
    <?xml version="1.0" encoding="UTF-8"?>
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="text/ecmascript" width="100%" zoomAndPan="magnify" contentStyleType="text/css" viewBox="0 0 600% 600%" height="100%" preserveAspectRatio="xMidYMid meet" version="1.0">
    <g style="stroke:black; fill:none; stroke-width:1">
    <g id="visuals" style="stroke:black; fill:none; stroke-width:1" transform="translate(100, 550)">
    <rect id="box" transform="scale(1, -1)" x="1" y="1" width="500" height="500" fill="none" stroke="black" stroke-width="1.5"/>
    <g id="labels" transform="scale(1, 1)">
    <text id="xLabel" x="250" y="50" text-anchor="middle"
            font-family="Verdana" font-size="24" fill="blue" >x label</text>
    <text id="xMinimumLabel" x="0" y="20" text-anchor="middle"
            font-family="Verdana" font-size="18" fill="blue" >0.0</text>
    <text id="xMaximumLabel" x="500" y="20" text-anchor="middle"
            font-family="Verdana" font-size="18" fill="blue" >100.0</text>
    <text id="yMinimumLabel" x="-3" y="-3" text-anchor="end"
            font-family="Verdana" font-size="18" fill="blue" >0.0</text>
    <text id="yMaximumLabel" x="-3" y="-500" text-anchor="end"
            font-family="Verdana" font-size="18" fill="blue" >100.0</text>
    </g>
    </g>
    <g id="data" style="stroke:black; fill:none; stroke-width:1" transform="translate(10, 550)">
    </g>
    </g>
    </svg>

  • JAXB generated files problem

    Hi,
    I am posting a fragment from my XSD. JAXB generates the files and compiles fine, but during runtime, I get a NoClassDefFound error when it tries to look for a particular file. This is the xsd :
    <xs:element name="BillingAddress">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Name">
    <xs:complexType>
    <xs:choice>
    <xs:sequence>
    <xs:element name="First" type="xs:string"></xs:element>
    <xs:element name="Middle" minOccurs="0" type="xs:string"></xs:element>
    <xs:element name="Last" type="xs:string"></xs:element>
    <xs:element name="Title" type="xs:string"></xs:element>
    </xs:sequence>
    <xs:element name="FullName" type="xs:string"></xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    <xs:element name="AddressLines">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="AddressLine" maxOccurs="unbounded">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:string">
    <xs:attribute name="order" type="xs:string" default="0"></xs:attribute>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="City" type="xs:string"></xs:element>
    <xs:element name="State" type="xs:string"></xs:element>
    <xs:element name="ZipCode">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Zip" type="xs:string"></xs:element>
    <xs:element name="PlusFour" minOccurs="0" type="xs:string"></xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="PhoneNumber">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="AreaCode" type="xs:string"></xs:element>
    <xs:element name="Exchange" type="xs:string"></xs:element>
    <xs:element name="Number" type="xs:string"></xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    I see all the generated interfaces. But in impl folder, I do not see the class for AddressLine. Thus I get this error:
    java.lang.NoClassDefFoundError: com.abc.my.generated.files.impl.BillingAddressTypeImpl$AddressLinesTypeImpl$AddressLineTypeImpl
    I see the interface for BillingAddressType$AddressLinesType$AddressLineType but NO impl.
    Anyone know what the issue is. I am certain it is related to the way xsd is defined for AddressLine but am not sure whats the issue.
    Any help will be appreciated.
    Thanks,
    Ashish

    Dont bother looking into this. I found the issue.
    I saw that jaxb is generating the files and compiling them all well. But then, when i try to jar them or zip them, the files with names > 128 chars do not make it to the jar/zip. Windows does not recognize files name >128 chars. U cannot name a file that long. So, there were 2 files that were > 128 and thus were not making into the jar and thus NoClassDefFound error.
    Very interesting. Took 2 days of my time.

Maybe you are looking for

  • How do I show the location of songs in the normal list view?

    Hi, I always used J River Media Center to synch my ipod nano, because ITunes was tragically slow and having issues with all media being on an external drive. Also, Media Center plays everything and synchs everything. But now I've bought the Ipos Nano

  • Goods Receipt Acccounting document considers  condition price from PO

    Hi, During Goods Receipt with reference to an old PO, the accounting document created considers old overheads condition price from PO and not the updated condition price from condition record (Transaction MEK1) which was subsequently changed after cr

  • How to avoid the annoying little window that opens when I go to close a file?

    When I put my cursor near the x of a file tab to close a file, a little window opens over the x and I have to wait for it to dissappear before I can click on the x to close the file. The window that opens has the exact same text as the folder tab and

  • Automatic import problem

    Can someone tell me what I may be doing wrong. When I place a CD in my CD player it boots it to iTunes, names the songs and checks the songs. Howeverl, to import the songs I have to import the songs individually from the CD. Is there any way that I c

  • Every time I upgrade my iTunes software I get more  !  labeled music files

    I am really frustrated. Every time I update my iTunes software more of my music comes up with the ! label indicating that iTunes cannot find the file. The files have not been moved at all and are still in the same place they always were. When I attem