Action handler for timeout session

Hi experts,
     When any web dynpro application stays inactive for a long time its session gets ended. When you want to access it you will get a error like The following error text was processed in the system ECN : User session (HTTP/SMTP/..) closed after timeout .
Any idea how to catch this event i.e. when it is getting timedout?
Thanks & Regards,
Monishankar C

Hi Aditya ,
  I have created a ui element 'Timed Trigger' in my view and also created a action. Now i have put a debugger in that and executed  my application. After some time the user session is get closed when i have tried use the application but the debugger not popped up.
So how can i come to know this action has been triggered.
Thanks & Regards,
Monishankar C

Similar Messages

  • Configure no. of session handled for same sql

    hi, experts,
    hi, if there is one report (only fire 1 sql by this report).
    if only one internet explorer to run this report , it use 3 minutes to get it.
    I use 3 internet explorers to run the same report but not running the report at the same time.
    firstly, I run the report on first internet explorer.
    then after 10 seconds, I run the report on 2nd internet explorer.
    then after 10 seconds, I run the report on 3rd internet explorer.
    after result on all internet explorer came, I check the sessions on the "Manage Sessions"
    there are 2 sessions for same report.
    How to configure no. of session handled for same sql on OBIEE?
    thank you very much!

    shipon_97 wrote:
    Here I see that at a particular time of the database , the number of session from v$session is "271" where as the number of session in the "v$resource_limit" is "280" . Here I get some differ among these parameters .
    Would anybody plz tell why the no of sessions differ between v$session and v$resource_limit parameters .
    The v$session views shows current sessions (which change rapidly), while the v$resource_limit shows the maximum resource utilization, like a high-water mark.
    http://download-east.oracle.com/docs/cd/A97630_01/server.920/a96536/ch3155.htm

  • Implementation of session handling for using web services

    Hi,
    I would like to use session handling in web services using ABAP stack in order to start the session with an user login function followed by other RFC calls till a user logout. So far, I found only the following help note in the SAP online help:
    Interface Profile
    In the interface profile, choose the required processing type: Stateful or Stateless.
    A stateful service retains its status within the framework of a HTTP session throughout several calls form the same service consumer. The standard value for services is Stateless.If you require stateful communication, you can choose this instead.
    [http://help.sap.com/saphelp_nwpi71/helpdata/de/45/25291b5a2657c0e10000000a1553f7/content.htm |http://help.sap.com/saphelp_nwpi71/helpdata/en/45/25291b5a2657c0e10000000a1553f7/content.htm]
    Please, could someone explain me the further required steps of SAPs session handling idea cause just settting the status to stateful is still not the solution itself...
    Regards,
    Jens

    Now, I found the possible scenarios, suggest by SAP Help, regarding security for Web Services ([http://help.sap.com/saphelp_nw73/helpdata/en/48/8ebbba66be06b2e10000000a42189b/content.htm|http://help.sap.com/saphelp_nw73/helpdata/en/48/8ebbba66be06b2e10000000a42189b/content.htm]):
    - SAML & WS SecureConversation -> SSO
    - WS Security UsernameToken & WS SecureConversation
    - User ID and Password in HTTP Header & HTTPS
    - SAP Authentication Assertion Ticket & HTTPS -> SSO
    - X.509 SSL Client Certificate through HTTPS
    - WS Security: X.509 Certificate Authentication at Message Level
    Are scenarios with SSO the solution for creating sessions!?

  • Latest Error Handling for Dynamic Actions

    Is there any documentation on the Latest Error Handling for Dynamic Actions?

    BillC,
    Interesting that I was looking around for the same thing after seeing a Foreign Key violation in my application.
    I found this article by Patrick Wolf:
    APEX 4.1 – Error Handling Improvements – Part 1
    http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-1/
    I believe you need to be on 4.1 or later though.
    Thanks,
    Joe

  • Timeout Session - Expiration time of Webdynpro application

    Hello,
    I set the sap.expirationTime property of my application to 1 hour,  know the expiration time of my application is one hour. After time out (one hour) I am getting default 500 internal server error page. But as per the requirement we need to display a custom message instead of 500 internal server Error.
    i.e.need to Redirect to Custom page with custom message instead of 500 internal server error page.
    i try to follow as per this link [Timeout of a WebDynpro session;
    but found that in NW 7.0 the parameter sap.sessionExpiredURL is not available anymore. How can archive this?
    Conclusion: If there is a timeout session, instead of 500 internal error page how to display a custom messages?
    Thanks & Regards
    Maha
    Edited by: Maha Hussain on Feb 10, 2009 12:00 PM

    Hi Maha,
                 With sap.expirationTime property, the application will certainly be expired.
    If your requirement suits for the scenario just try out the following workaround.
    If you want show a custom message only, you can use TimedTrigger UI Element instead of setting expirationTime just set dealy for this and in the action kust navigate to the view and displaye the custom message in that.
    Regards,
    Siva

  • Error with paging action handler

    We are using the proposed action handler from Steve Muench's book for stateless paging to our highest confidence.
    The problem is that after some days the paging parameter p gets always a wrong value. We think it is the total rowcount, because we implemented a test-parameter.
    From then displaying a page starts always (?) with the last page. If this situation occurs it happens in different (!) applications, so it isn't a parameter side effect.
    There is not p session or cookie parameter who could override the silent work of the action handler.
    We are using the XSQL servlet 1.0.4.1 under Red Hat Linux 7.0 with an Oracle 8.1.7 database. Servlet container is Tomcat 3.2 with JDK 1.3 from Sun.
    Stopping Tomcat and restarting it solves the problem (for some time).
    Do you have any hint for us ?
    Best regards
    Andreas Saake
    null

    As I can see it's an error from Paging.jar.
    I do an initial call to a XSQL page with a select resultset of 38 rows, for example. With a pagesize of 20 rows I should get 2 pages and having current-page set to 1.
    But what I get is a corrected value (by Paging.jar) of current-page, which starts with page 2. The further paging in my application is ok.
    I've extended the paging handler with a variable called test-paged, which reads the paramater p and stores it in the output tree. Then I dislay the XSQL-page without any stylesheet and get a value of 38 in test-page.
    Below is an excerpt of my paging.jar:
    ---- Start excerpt
    import oracle.xml.xsql.*;
    import oracle.xml.parser.v2.*;
    import org.w3c.dom.*;
    import java.net.*;
    import java.util.StringTokenizer;
    import java.sql.SQLException;
    public class Paging extends XSQLActionHandlerImpl {
    private static final String PAGE_PARAM_NAME = "p";
    private static final String ROWSPERPAGE = "rows-per-page";
    private static final String TARGETPAGEARGS = "url-params";
    private static final String TARGETSORTARGS = "sort-params";
    public void handleAction(Node root) throws SQLException {
    XSQLPageRequest req = getPageRequest();
    Element actElt = getActionElement();
    // Get the count query from the action element content
    String query = getActionElementContent();
    // Get the number of rows per page, defaulting to 10
    long pageSize = longVal(getAttributeAllowingParam(ROWSPERPAGE,actElt),10);
    long totalRows = longVal(firstColumnOfFirstRow(root,query),0);
    long curPage = longVal(variableValue(PAGE_PARAM_NAME,actElt),1);
    long testPage = longVal(variableValue(PAGE_PARAM_NAME,actElt),1);
    // Get the name of the current page to use as the target
    String pageName = curPageName(req);
    // Get any URL parameter names that need to be echoed into paging URL's
    String pageArgs = getAttributeAllowingParam(TARGETPAGEARGS,actElt);
    // Get any URL parameter names that need to be echoed into paging URL's
    // FOR SORTING
    String sortArgs = getAttributeAllowingParam(TARGETSORTARGS,actElt);
    // Calculate the total number of pages
    long totalPages = totalRows / pageSize;
    long fract = totalRows % pageSize;
    if (fract > 0) totalPages++;
    // Make sure current page is between 1 < cur < totalPages
    if (curPage < 1) curPage = 1;if (curPage > totalPages) curPage = totalPages;
    // Create the <paging> fragment to add to the "data page"
    Document d = actElt.getOwnerDocument();
    Element e = d.createElement("paging");
    root.appendChild(e);
    addResultElement(e,"total-rows",Long.toString(totalRows));
    addResultElement(e,"total-pages",Long.toString(totalPages));
    addResultElement(e,"test-page",Long.toString(testPage));
    addResultElement(e,"current-page",Long.toString(curPage));
    --- END Excerpt
    Thanks,
    Andreas
    null

  • LMS3.2: is it possible to modify timeout session

    Hi,
    On windows, is it possible to modify the default timeout session ?
    What is the default value ?
    Many thanks for your help,
    Elisabeth

    which timeout?? - I assume you are talking about the web server timeout !?
    I found this in one of my notes I made years ago ...
    ... the entry is still there in LMS 4.1 so I believe it is still valid...
    (I do not know if you have to restart dmgtd afterwards)
    make a backup of the following file:
        NMSROOT/MDC/tomcat/webapps/classic/WEB-INF/web.xml
    open the file in a text editor and look for the tag below; the session-timeout is given in minutes (default: 2h);
    keep in mind that changing the value has impact on the web server load (i.e. do not make it too long..)
    the tag should be at the very end of the file:
            120

  • Impossible to call a action handler in managed bean

    Hello! I’d developed simple jsf-application using JDeveloper 10.1.3.3 that doesn’t use faces-config.xml for a nafigation.
    Simple jsf page (page1.jspx) has only one command button:
    <af:commandButton text="commandButton 1"
    binding="#{backing_page1.commandButton1}"
    id="commandButton1"
    action="#{backing_page1.commandButton1_action}"
    immediate="true"/>
    Action is handled programmatically in managed bean Page1.java:
    public String commandButton1_action() {
    ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
    ec.redirect("page2.jspx");
    return null;
    The sample application works fine.
    Then I’d tried to use the same jsf app to develop PDK Portlet (Oracle PDK, not jsr-168). I used Portal 10.1.4 and OC4J 10.1.3.3.
    The part of provider.xml:
    <showPage class="oracle.portal.provider.v2.render.http.ResourceRenderer">
    <resourcePath>/faces/page1.jspx</resourcePath>
    </showPage>
    Action is handled programmatically in managed bean Page1.java:
    public String commandButton1_action() {
    ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
    ec.redirect("http://<hostname>:7778/portal/page/portal/SampleGroup/Sample6");
    return null;
    Unfortunately, the jsf page doesn’t call an action after submit of the button. It’s impossible to call any handler in managed bean. Although, it’s possible in usual jsf app.
    I wonder that af:goLink on the page1.jspx works fine:
    <af:goLink text="goLink 1" binding="#{backing_page1.goLink1}"
    id="goLink1"
    destination=" http://<hostname>:7778/portal/page/portal/SampleGroup/Sample6"/>
    The ask: why jsf page can’t call an action handler in managed bean in case of a portlet development?
    Thank you. Andrew

    Thank you, Frank! I’d expected an answer from you:) I and my colleagues is your big funs:)
    I’d understood Portal intercepts any event on a portal page before jsf event.
    But, it’s possible to use struts for portlet development. I’d hoped there is the same approach for Faces too (oracle.portal.provider.v2.render.http.FacesRenderer - http://www.oracle.com:80/technology/products/webcenter/files/pdk_downloads/jpdk/oracle/portal/provider/v2/render/http/FacesRenderer.html).
    WebCenter is fine product but one is expensive. May be, is there a way to develop jsf portlet outside webcenter?
    Thanks, Andrew

  • How to enable remote debugging for a session other than the current one

    Hi all,
    I am trying to figure out how to enable remote debugging for a session other than the one I am currently using.
    More specifically, we have an application that is making database calls to Oracle 11gR2. Something is causing an exception during this invocation. My system is currently not set up to recompile said application, so I can't just add the debug call to the code and recompile. Therefore I would like to be able to log into the database (as sys, if necessary) and invoke dbms_debug_jdwp.connect_tcp on the desired session.
    The docs indicate that I should be able to do so:
    dbms_debug_jdwp.connect_tcp(
    host IN VARCHAR2,
    port IN VARCHAR2,
    session_id IN PLS_INTEGER := NULL,
    session_serial IN PLS_INTEGER := NULL,
    debug_role IN VARCHAR2 := NULL,
    debug_role_pwd IN VARCHAR2 := NULL,
    option_flags IN PLS_INTEGER := 0,
    extensions_cmd_set IN PLS_INTEGER := 128);
    But when I try (even as sys), I get the following:
    exec dbms_debug_jdwp.connect_tcp('1.2.3.4',5678,<session id>,<session serial>);ORA-00022: invalid session ID; access denied
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 1
    00022. 00000 - "invalid session ID; access denied"
    *Cause:    Either the session specified does not exist or the caller
    does not have the privilege to access it.
    *Action:   Specify a valid session ID that you have privilege to access,
    that is either you own it or you have the CHANGE_USER privilege.
    I've tried granting the 'BECOME USER' privilege for the relevant users, but that didn't help. I read something about having to set some kind of ACL as of 11gR1, but the reference documentation was very confusing.
    Would someone be able to point me in the right direction? Is this even possible, or did I misread the documentation?

    Interesting deduction, that would be very useful indeed. I hate recompiling just to add the debug call, and it can't be done in our production environment. But it seems unlikely to me it would be implemented this way.
    I would cross-post this in the SQL AND PL/SQL forum though, as this is really a database issue, not with the SQL Developer tool. Do add the links to the other posts in each.
    Regards,
    K.

  • "Message Rejection Handler" for the file/ftp adapter using fault policy

    Hi guys,
    We are trying to implement "Message Rejection Handler" for the file/ftp adapter using following fault policy configuration.
    Fault Policy:
    `````````````
    <?xml version='1.0' encoding='UTF-8'?>
    <faultPolicies xmlns="http://schemas.oracle.com/bpel/faultpolicy">
    <faultPolicy version="2.0.1" id="ProcessNameGenericPolicy"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Conditions>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    name="bpelx:remoteFault">
    <condition>
    <action ref="ora-retry"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    name="bpelx:bindingFault">
    <condition>
    <action ref="ora-rethrow-fault"/>
    </condition>
    </faultName>
    </Conditions>
    <Actions>
    <Action id="ora-retry">
    <retry>
    <retryCount>3</retryCount>
    <retryInterval>1</retryInterval>
    <retryFailureAction ref="ora-rethrow-fault"/>
    </retry>
    </Action>
    <Action id="ora-rethrow-fault">
    <rethrowFault/>
    </Action>
    <Action id="ora-human-intervention">
    <humanIntervention/>
    </Action>
    <Action id="ora-terminate">
    <abort/>
    </Action>
    </Actions>
    </faultPolicy>
    <faultPolicy version="2.0.1" id="ProcessNameHumanInterventionPolicy"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Conditions>
    <faultName xmlns:medns="http://schemas.oracle.com/mediator/faults"
    name="medns:mediatorFault">
    <condition>
    <test>contains($fault.mediatorErrorCode, "TYPE_TRANSIENT")</test>
    <action ref="ora-retry-with-intervention"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    name="bpelx:remoteFault">
    <condition>
    <action ref="ora-retry-with-intervention"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    name="bpelx:bindingFault">
    <condition>
    <action ref="ora-rethrow-fault"/>
    <!--<action ref="ora-retry-with-intervention"/>-->
    </condition>
    </faultName>
    </Conditions>
    <Actions>
    <Action id="ora-retry-with-intervention">
    <retry>
    <retryCount>3</retryCount>
    <retryInterval>1</retryInterval>
    <retryFailureAction ref="ora-human-intervention"/>
    </retry>
    </Action>
    <Action id="ora-retry">
    <retry>
    <retryCount>3</retryCount>
    <retryInterval>1</retryInterval>
    <retryFailureAction ref="ora-rethrow-fault"/>
    </retry>
    </Action>
    <Action id="ora-rethrow-fault">
    <rethrowFault/>
    </Action>
    <Action id="ora-human-intervention">
    <humanIntervention/>
    </Action>
    <Action id="ora-terminate">
    <abort/>
    </Action>
    </Actions>
    </faultPolicy>
    <faultPolicy version="2.0.1" id="RejectedMessages">
    <Conditions> <!-- All the fault conditions are defined here -->
    <faultName xmlns:rjm="http://schemas.oracle.com/sca/rejectedmessages" name="rjm:PartnerLinkName">
    <!-- local part of fault name should be the service name-->
    <condition>
    <action ref="writeToFile"/> <!-- action to be taken, refer to Actions section for the details of the action -->
    </condition>
    </faultName>
    </Conditions>
    <Actions> <!-- All the actions are defined here -->
    <Action id="writeToFile">
    <fileAction>
    <location>Server/Loc/path</location>
    <fileName>Rejected_AJBFile_%ID%_%TIMESTAMP%.xml</fileName>
    </fileAction>
    </Action>
    </Actions>
    </faultPolicy>
    </faultPolicies>
    Fault Binding:
    ``````````````
    <?xml version='1.0' encoding='UTF-8'?>
    <faultPolicyBindings version="2.0.1"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <composite faultPolicy="ProcessNameGenericPolicy"/>
    <service faultPolicy="RejectedMessages">
    <name>PartnerLinkName</name>
    </service>
    <reference faultPolicy="RejectedMessages">
    <name>PartnerLinkName</name>
    </reference>
    </faultPolicyBindings>
    We have SyncFileRead partner link.
    The expectation is: when the message read by SyncFileRead partner link is rejected,
    that rejected message should come to particular directory in the server.
    Could you please help us fixing this.
    TIA.

    HI..
    Have a look at this blog :
    3) Error: HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized
    Description: The request requires user authentication
    Possible Tips:
    u2022 Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
    u2022 If the error is in XI Adapter, then your port entry should J2EE port 5<System no>
    u2022 If the error is in Adapter Engine
    u2013then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    u2022 May be wrong password for user XIISUSER
    u2022 May be wrong password for user XIAFUSER
    u2013 for this Check the Exchange Profile and transaction SU01, try to reset the password -Restart the J2EE Engine to activate changes in the Exchange Profile After doing this, you can restart the message
    Http* Errors in XI
    Thanks,
    Pooja

  • How to add event handling for a menu?

    hi,
    I have created a menu and few mneu items.
    for eachmenu itme , i did event handling and it is workign fine.
    it was like this
    menuItem = new JMenuItem("Exit",KeyEvent.VK_X);
    menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.ALT_MASK));
    menuItem.addActionListener(this);
    menu.add(menuItem);
         public void actionPerformed(ActionEvent e)
    JMenuItem source = (JMenuItem)(e.getSource());
    String s = "Action event detected. Event source: " + source.getText();
    System.out.println(s);     
    public void itemStateChanged(ItemEvent e)
    JMenuItem source = (JMenuItem)(e.getSource());
    String s = "Item event detected. Event source: " + source.getText();
    System.out.println(s);
    now int he second menu i don't have any menu item and i want to do the event handling for the menu itself. any ideas how to do it. following is the code for the menu
    //Build the second menu.
    menu2 = new JMenu("Options");
    menu2.setMnemonic(KeyEvent.VK_O);
    menuBar.add(menu2);
    menu2.addActionListener(this);     //this does nto work

    You were on the right track. However, selecting a menu is different from selecting a menu item. MenuItem chucks an ActionEvent and Menu will send an ItemEvent.
    If you pile all action output to one actionPerformed method then be careful of your assumptions on what the source type will be. If by any chance the Menu has sent an ActinoEvent then your code will have caused a ClassCastException.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MenuTest implements ActionListener, ItemListener {
        JMenuItem menuItem;
        JMenu menu1, menu2;
        JMenuBar menubar;
        JFrame frame;
        public MenuTest() {
            frame = new JFrame("MenuTest");
            frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
            menubar = new JMenuBar();
            frame.setJMenuBar(menubar);
            menu1 = new JMenu("File");
            menu1.setMnemonic(KeyEvent.VK_F);
            menuItem = new JMenuItem("Exit",KeyEvent.VK_X);
            menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.ALT_MASK));
            menuItem.addActionListener(this);
            menu1.addItemListener(this);
            menu1.add(menuItem);
            menubar.add(menu1);
            //Build the second menu.
            menu2 = new JMenu("Options");
            menu2.setMnemonic(KeyEvent.VK_O);
            menu2.addActionListener(this); //this does not work
            menu2.addItemListener(this); // use this instead
            menubar.add(menu2);
            JPanel panel = new JPanel();
            panel.setPreferredSize(new Dimension(100,100));
            frame.getContentPane().add(panel);
            frame.pack();
            frame.show();
        public void actionPerformed(ActionEvent e)
            String s = "Action event detected. Event source: " + e.getSource();
            System.out.println(s);
        public void itemStateChanged(ItemEvent e)
            String s = "Item event detected. Event source: " + e.getSource();
            System.out.println(s);
        public static void main(String[] args) {
            new MenuTest();
    }

  • Option for error handling for DTP, ' no updata, no reporting" and "deactiva

    Hello Gurus,
         option for error handling for DTP, ' no updata, no reporting" and "deactivated" , please give some explanation and instance for them?
    Many Thanks,

    On the Update tab page, specify how you want the system to respond to data records with errors:
                                a.      No update, no reporting (default)
    If errors occur, the system terminates the update of the entire data package. The request is not released for reporting. However, the system continues to check the records.
                                b.      Update valid records, no reporting (request red)
    This option allows you to update valid data. This data is only released for reporting after the administrator checks the incorrect records that have not been updated and manually releases the request by setting the overall status on the Status tab page in the monitor (QM action).
                                c.      Update valid records, reporting possible
    Valid records can be reported immediately. Automatic follow-up actions, such as adjusting the aggregates, are also carried out.
    http://help.sap.com/saphelp_smehp1/helpdata/en/42/fbd598481e1a61e10000000a422035/content.htm
    Hope it helps.
    rgds, Ghuru

  • How to configure Send Handler for BizTalk 2013 Dynamic Send Port on deployment?

    Hi,
    I do know how to manually configure a send handler for a dynamic send port in BizTalk 2013 Administration console. Though, once you export your application's configuration to a binding file, the dynamic send port's configuration does not
    contain any information regarding the send handler. When you try to use this binding file when deploying your application your dynamic port's send handler falls back to the default host instance.
    So my question is, how could we automate this process to avoid manual step in a dynamic port configuration during deployment?
    Thank you,
    --Vlad

    Hey vlad,
    As discussed at work in the office.. I woudl take the powershelll approach for now as a workaround.  Here's a trivial script for my local dev box (all in one biztalk & SQL)  (must be run in an x86 powershell session):
    param
     [string] $bizTalkDbServer = ".",    
     [string] $bizTalkDbName = "BizTalkMgmtDb",
     [string] $fileHostInstance = "SendingHost",
     [string] $sendPortName = "sm_dynamic_sp_test"
    [System.reflection.Assembly]::LoadWithPartialName("Microsoft.BizTalk.ExplorerOM") | Out-Null
    $catalog = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer
    $catalog.ConnectionString = "SERVER=$bizTalkDbServer;DATABASE=$bizTalkDbName;Integrated Security=SSPI"
    foreach($sp in $catalog.SendPorts)
     if($sp.Name -eq $sendPortName)
      "Found send port $($sp.Name), analyzing send handler"
      foreach($sh in $sp.DynamicSendHandlers)
       if($sh.SendHandler.TransportType.Name -eq "FILE")
        if($sh.SendHandler.Host.Name -ne $fileHostInstance)
         "Changing $($sh.Name) send handler to '$fileHostInstance' from '$($sh.SendHandler.Host.Name)'"
         $sp.SetSendHandler("FILE", $fileHostInstance)
        else
         "Send handler for $($sp.Name) is already '$fileHostInstance' ignorning .. "
    $catalog.SaveChanges()

  • No handler for system event CustomHourlyEvent has been registered

    I have written a scheduled event to trigger on daily basis using CustomDaily event mentioned in the ScheduledEvent component. I have referred HowToComponents in order to write this filter. But I am getting following error in my logs and my scheduled event is not getting executed.
    <!-- IDCLOG: Error: (8/23/12 12:01 PM) !csScheduledEventUnhandled,CustomHourlyEvent!$stack trace -->
    <tr><td>Error</td><td>8/23/12 12:01 PM</td><td>No handler for system event CustomHourlyEvent has been registered. stack trace [ <a href="javascript:if(typeof show!='undefined')show('0.31115227955456604')">Details</a> ]
    <div id="0.31115227955456604" style="display:none;" class="details"><pre><code>An error has occurred. The stack trace below shows more information.
    !csScheduledEventUnhandled,CustomHourlyEvent!$stack trace
    !$stack trace
    at intradoc.common.IdcLogWriter.doMessageAppend(IdcLogWriter.java:85)
    at intradoc.common.Log.addMessage(Log.java:279)
    at intradoc.common.DefaultReportHandler.message(DefaultReportHandler.java:508)
    at intradoc.common.DefaultReportDelegator.message(DefaultReportDelegator.java:140)
    at intradoc.common.Report.messageInternal(Report.java:172)
    at intradoc.common.Report.message(Report.java:145)
    at intradoc.common.Report.error(Report.java:408)
    at intradoc.server.ScheduledSystemEvents.processWork(ScheduledSystemEvents.java:600)
    at intradoc.server.ScheduledSystemEvents.run(ScheduledSystemEvents.java:489)
    at java.lang.Thread.run(Thread.java:619)
    </code></pre></div></td></tr>
    Please let me know if anybody has countered the same problem while writing ScheduledEvent filter.

    I was able to solve this issue by updating the state of the event. HowToComponents - ScheduledEvent has the following method:
    * Update the state of the event. Must be done at least once to tell the content server
    * when the scehduled event is finished.
    protected void update(String action, String msg, Workspace workspace) throws ServiceException, DataException
         long curTime = System.currentTimeMillis();
         ScheduledSystemEvents sse = IdcSystemLoader.getOrCreateScheduledSystemEvents(workspace);
         sse.updateEventState(action, msg, curTime);
    Making a call to update() when my scheduled event ran solved the issue for me.

  • After action script for Solaris

    Hi,
    I'm having trouble with an after action script for the solaris box.
    my script reads..
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='after-create'>
    <ResTypeAction restype='Solaris' timeout='60000'>
    <act>
    #!/bin/ksh
    echo "$WSUSER_accountId says Hello World!"
    PATH=/usr/lib/nis:$PATH; export PATH
    nisaddcred -p [email protected] -P keerthi2.example.com. des
    exit 0
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>
    I have edited the tabbed user form to include the following field:
    <Field name='global.create after action'>
    <Expansion>
    <s>after-create</s>
    </Expansion>
    </Field>
    Now when i am trying to create a user in my IDM n assigning the Solaris resource i'm getting the following error..
    com.waveset.util.WavesetException: An error occurred adding user 'client1' to resource 'Solaris Client'. com.waveset.util.WavesetException: Script failed waiting for "_,)#+(:" in response "" com.waveset.util.WavesetException: Script processor timed out with nothing to read and the following unprocessed text: "".
    the account is created in IDM.
    please help me out!
    Regards
    Sanjeev

    Hi-
    Did you ever get a resolution to this issue? I am seeing the exact same error in IDM 8.0 patch 3
    Error
    com.waveset.util.WavesetException: An error occurred adding user 'testusr15' to resource 'idm_client'. com.waveset.util.WavesetException: Script failed waiting for "$" in response "_,)#+(:" com.waveset.util.WavesetException: Script processor timed out with nothing to read and the following unprocessed text: "_,)#+(:".
    My action script looks like this:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='after-create-nppasswd'>
    <ResTypeAction restype='Solaris'>
    <act>
    #!/bin/sh
    touch /tmp/idmtest
    release=`uname -r`
    if [ $release != "5.10" ]; then
         passwd -l $WSUSER_accountId
         sed "s/$WSUSER_accountId:\*LK\*/$WSUSER_accountId:NP/" /etc/shadow > /etc/shadow.new
         mv /etc/shadow.new /etc/shadow
    else
         passwd -N $WSUSER_accountId
    fi
    exit 0
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>

Maybe you are looking for