Increase heartbeat for virtualized nodes?

hello,
we have a 3node ncs with sles10sp3 + oes2sp3 (64bit).
all servers are virtualized (vmware).
We had to remove the servers from the vranger backup, because the creation of snapshots for the backups regularly kills our non-master nodes. They are then on 100% cpu load and not responsive. The time we received cluster notifications about failed nodes was exactly the time that vmware was creating snapshort for the automatic backups.
Removing the vms from backups solved the problem.
Now my questions is:
Is it a good idea to increase the tolerance for heartbeat & watchdogs to perhaps something like 16 or 32 seconds?
Has someone any experience on this subject?
thx,
hugo

If you experience false alarms a lot, you may want to increase the tolerance.
From your description, its a legitimate case for fencing a node.
Increasing the tolerance can reduce false alarms. But it will also prolong resource downtime in case a node is having real problems.
Best regards,
Changju
Originally Posted by susehoush
hello,
we have a 3node ncs with sles10sp3 + oes2sp3 (64bit).
all servers are virtualized (vmware).
We had to remove the servers from the vranger backup, because the creation of snapshots for the backups regularly kills our non-master nodes. They are then on 100% cpu load and not responsive. The time we received cluster notifications about failed nodes was exactly the time that vmware was creating snapshort for the automatic backups.
Removing the vms from backups solved the problem.
Now my questions is:
Is it a good idea to increase the tolerance for heartbeat & watchdogs to perhaps something like 16 or 32 seconds?
Has someone any experience on this subject?
thx,
hugo

Similar Messages

  • How do I add compute nodes to increase resources for virtual routers?

    I am running CML.vT328 on ESXi 5.5.  How do I add resources for virtual routers using other ESXi hosts in my compute environment?

    Welcome to the group, glkkaufma.  Some folks will stop by your thread shortly and probably ask you some more questions.  In the meantime you may well be able to get some additional assistance by checking out some of the videos in the video section of the group.  Also, check out the documentation links in the Links section on the group home page too.
    David N Martin
    Community Manager

  • Increase disk size for virtual server

    Hi,
    A virtual server system drive is currently at 90%full. How to safely allocate more disk space to the system drive of that virtual server without causing issues to the installed Operating systems on that drive.
    I read through the Virtual Iron documentation and nothing mention about increasing disk space for virtual server.
    Thanks in advance for response.

    Hi,
    I was hoping to increase the virtual storage of the drive attached to virtual servers and not the actually physical storage.
    I was looking around in it and found was able to increase the disk space by by editing the virtual storage disk.
    I tested creating a new disk (5GB), increase the disk space(10GB) and login to virtual server and extend the new disk with the unallocated disk space.
    It does seem to work and appear as 15GB.
    I just concern if windows operating is installed on that disk, will it cause any issue if I extend it with the unallocated disk space?
    Or it's safe to do so?
    Many thanks.

  • Set up Virtual IP and Private IP for each node in RAC installation

    I am new to Oracle 10G RAC installation, based on the documentation, I need to assign a public IP, Virtual IP, private IP for each node, I know how to assign public IP for each node, I can assign the IP from the router, but I don't know how to assign the Virtual IP and private IP, since the private network is only connected by a switch, the switch is not able to assign IP to server, should I just go to the host file
    %SystemRoot%\system32\drivers\etc\hosts
    of each node to put IP in the file? what else should I do? I already read through the document from Oracle "Oracle Real Application Clusters, Quick Installation Guide for Oracle Database Standard Edition 10g Release 1 for window".

    I am still keep thinking why each node need a virtual IP address? if each mode has a virtual IP, which IP address the client can be specified? I have multiple application servers work as clients.

  • Hyper-V could not replicate changes for virtual machine 'machinename': The connection with the server was terminated abnormally (0x00002EFE).

    I have a 3 node cluster that has replica setup to replicate to another cluster off-site.
    Suddenly one of the servers is not replicating with the error:
    Hyper-V could not replicate changes for virtual machine 'machinename': The connection with the server was terminated abnormally (0x00002EFE). (Virtual Machine ID CC0FD4CC-F9B7-4C68-ABE8-B7D52A87899F)
    All other servers are replicating fine so there cannot be a permissions or connectivity issue between the 2 clusters.
    This server has 2TB of data so I'd rather not have to start the replication again.
    Does anyone have any pointers?
    Thanks.

    Hi drensta,
    Based on my knowledge , "hyper-v replica broker " is needed for failover cluster replica .
    Here is a link for "Why is the "Hyper-V Replica Broker" required?"
    http://blogs.technet.com/b/virtualization/archive/2012/03/27/why-is-the-quot-hyper-v-replica-broker-quot-required.aspx
    Hope this hleps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Support for virtual IP in WKA list

    I am attempting to implement Coherence Grid Edition 3.5.3 Patch 7 . It's running on Sun Java 1.6.06 on a Solaris 5.10 machine (which I will call machine A1) which has an ip address 1.2.3.261. Also, there is a virtual IP address 1.2.3.260 which points to this same machine A1, as well as a hostname that maps to the virtual IP address of the machine A1.
    (Note: I have mocked up the IP addresses in this post for security reasons).
    I am using WKA due to concerns of the local network admins regarding multicast (debatable, but for now let's please assume I need to go with WKA).
    If this production machine A1 develops any problem, we can quickly switch to an alternate machine A2. The alternate machine A2 contains automatically replicated copies of all of our important sub-directories (including the coherence xml configuration files), but it does have a different IP.
    During a failure of machine A1, we would shut down machine A1, start up machine A2, and reroute the virtual IP to alternate machine A2's true IP. Machine A2 would be supplied a copy of the file-system that A1 had when A1 was shutdown.
    We would seek to not have to edit any configuration files on A2. It is difficult to maintain alternate configuration files using our current replication scheme, and any machine-specific customizations are problematic.
    Therefore, we would prefer to list the virtual IP of machines A1 and A2 in the WKA list, rather than the true IP of these machines.
    However, when I attempt to list the virtual IP in the WKA list...
                   <well-known-addresses>
                        <socket-address id="1">
                        <address>1.2.3.260</address> <!--virtual ip -->
                        <port>8088</port>
                        </socket-address>
                   </well-known-addresses>
    ... I get the error below.
    2010-09-03 12:01:51.464/1.401 Oracle Coherence GE 3.5.3/465p7 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
    2010-09-03 12:01:54.760/4.697 Oracle Coherence GE 3.5.3/465p7 <Error> (thread=Cluster, member=n/a): Node myhostname/1.2.3.261:8088 is not allowed to create a new cluster; WKA list: [1.2.3.260:8088]
    2010-09-03 12:01:54.760/4.697 Oracle Coherence GE 3.5.3/465p7 <D5> (thread=Cluster, member=n/a): Service Cluster left the cluster
    Exception in thread "main" java.lang.RuntimeException: Failed to start Service "Cluster" (ServiceState=SERVICE_STOPPED, STATE_ANNOUNCE)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:38)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:38)
    at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:395)
    at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
    at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
    at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7)
    at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:27)
    at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
    at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:905)
    at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:139)
    at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:60)
    2010-09-03 12:01:54.763/4.700 Oracle Coherence GE 3.5.3/465p7 <Error> (thread=main, member=n/a): Error while starting cluster: java.lang.RuntimeException: Failed to start Service "Cluster" (ServiceState=SERVICE_STOPPED, STATE_ANNOUNCE)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:38)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:38)
    at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:395)
    at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
    What exactly is being checked here? Does each Coherence instance expect to see it's own IP listed in the WKA list, and refuse to run if it can't find it's own IP on the list?
    Is the instance detecting it's own IP via an operating system call, or is there some way I can influence the instance's sense of what IP it is running on?
    Is there any advice for supporting this kind of virtual IP scenario?
    I have tried listing the hostname with no better success, because the hostname points to the virtual IP, and therefore has the same effect as listing the virtual IP.
    As a workaround, I have altered the WKA list to list of the true IPs of both machines...
                   <well-known-addresses>
                        <socket-address id="1">
                        <address>1.2.3.261</address> <!-- A1 -->
                        <port>8088</port>
                        </socket-address>
                        <socket-address id="2">
                        <address>1.2.3.262</address> <!-- A2 -->
                        <port>8088</port>
                        </socket-address>
                   </well-known-addresses>
    ... even though both machines will never be up and running at the same time. This workaround avoids the error and the cluster appears to come up. I am not sure if there's any ill effect that at any given time one of these two IPs will never be up and running.
    Despite my workaround, true support for virtual IPs would be superior; listing all the true non-virtual IPs in the WKA list means re-editing the list as the hardware changes.
    Thanks for any advice!
    P.S. I tried the above with Coherence 3.5.2 with the same results.
    Edited by: user11114413 on Sep 3, 2010 11:45 AM

    Hi user11114413,
    The issue you are seeing actually has little to do with VIP, and more to do with there being multiple IP addresses for us to choose from on your box. For such multi-IP boxes, you'll want to tell us the IP to use, and in your case you want to tell as a VIP. This can be done either by editing your operational configuration file, and including an <address> element within the <unicast-listener> element, or via the tangosol.coherence.localhost system property. For example:
    <unicast-listener>
        <well-known-addresses>
            <socket-address id="1">
                <address>1.2.3.260</address> <!--virtual ip -->
                <port>8088</port>
            </socket-address>
        </well-known-addresses>
        <address>1.2.3.260</address> <!--virtual ip -->
        <port>8088</port>
    </unicast-listener>or
    java ... -Dtangosol.coherence.localhost=1.2.3.260If you are using the same operational configuration on all nodes in your cluster then the system property approach is likely preferable, and would only be necessary on the two machines sharing the VIP.
    As for using VIP or an extended WKA list, the choice is yours, either will work. If you do go the VIP route, it would obviously be a very bad idea to simultaneously use the same VIP and port at the same time from the two machines.
    thanks,
    Mark
    Oracle Coherence

  • Getting ipaddress or host name for virtual server

    I want to get the ipaddress or host name for virtual server in a cluster environment. If i do
    java.net.InetAddress.getLocalHost().getHostName()
    it returns the ipaddress of the physical node currently running virtual server.
    Is there any way to get the ipaddress or host name for virtual server ?

    You can get the hostname by clicking on the account properties in outlook, but the port you connect to must be opened by your system admin.

  • CCMS and virtual nodes

    Can I set a Autoreaction Method in a virtual node?
    I am getting a message:
    "No properties can be maintained for the selected nodes(MTE)" when trying to display to methods associated to this node.
    Thxs!

    Hi,
    I am not sure but CCMS configuration including custom node creation as well as autoreaction method explained in XI monitoring guide, which you can get from service market place and from How-to section also.
    I hope it will help you with your configuration.
    Regards,
    Gourav

  • Customizations are disabled for the node "ProposedJobVO.xml"

    Hi,
    We are trying to add extensions to a fusion Application. When i have created an Application 'Fusion Customizations Application'.
    In the Role 'Oracle Fusion Applications Administratror Customizations', and in Customizable Archive, Some Business Components are Not customizable while some of them are Customizable.
    getting below error in Log file
    Customizations are disabled for the node "ProposedJobVO.xml" because it is not part of the project contentset.
    Does this mean we cannot modify this VO or we need to do anything else to get these components included in Project Content Set?
    Thanks
    Kaja

    "Customizations are disabled for the node xxxx because it is not part of the project contentset". This warning is logged if you try to open a node for customization in customizaion role IN FA environment from Application Resources->connections->customizable archive ,
    as this node is not a part of project. In order to add it to the project you will have to right click on the node and select customize this will add the node to the virtual content set of project.
    Now this node will be available under project and can be customized.

  • Starting global heartbeat for cluster "d8aed2bb8ab9381d": Failed

    When I tries to start the O2cb it can't find the heartbeat region..
    The heartbeat regions is on /dev/mapper/360060e8006d044000000d0440000012b, And as you can see it has "Bad magic number in inode",
    Soo What can I do about that? Can I clear this disk and create a new one? Any suggestions?
    # /etc/init.d/o2cb start
    Setting cluster stack "o2cb": OK
    Registering O2CB cluster "d8aed2bb8ab9381d": OK
    Setting O2CB cluster timeouts : OK
    Starting global heartbeat for cluster "d8aed2bb8ab9381d": Failed
    o2cb: Heartbeat region could not be found 0004FB000005000018DD9ACEA2B4B918
    Stopping global heartbeat on cluster "d8aed2bb8ab9381d": OK
    [root@u139gw poolfsmnt]# mounted.ocfs2 -f
    Device Stack Cluster F Nodes
    /dev/sdb o2cb d8aed2bb8ab9381d G Unknown: Bad magic number in inode
    /dev/sdc o2cb d8aed2bb8ab9381d G u139gw
    /dev/sdd o2cb d8aed2bb8ab9381d G Unknown: Bad magic number in inode
    /dev/sde o2cb d8aed2bb8ab9381d G u139gw
    /dev/sdg o2cb d8aed2bb8ab9381d G u139gw
    /dev/mapper/360060e8006d044000000d0440000012b o2cb d8aed2bb8ab9381d G Unknown: Bad magic number in inode
    /dev/mapper/360060e8006d044000000d0440000008a o2cb d8aed2bb8ab9381d G u139gw
    /dev/mapper/360060e8016503600000150360000000d o2cb d8aed2bb8ab9381d G u139gw
    /dev/sdf o2cb d8aed2bb8ab9381d G u139gw

    Magnus wrote:
    The heartbeat regions is on /dev/mapper/360060e8006d044000000d0440000012b, And as you can see it has "Bad magic number in inode",
    Soo What can I do about that? Can I clear this disk and create a new one? Any suggestions?Open an SR with Oracle Support. You could try dismounting that disk on all servers and running fsck.ocfs2 to see if it fixes the inode issue for you as well.

  • Set up reverse DNS for virtual mail hosting

    I need a bit of server configuation advice.
    I have a static IP and two public domains on a Snow Leopard server connected using NAT behind a firewall - with the necessary port forwarding to ensure all works. 
    1. abc.com is my primary domain on the server - server.abc.com
    2. I have xyz.com set up as a virtual domain and also as a virtual mail host
    This setup has worked well for a long time but I have found that emails to [email protected] are going missing.  If I check my mx records using one of the web based tools it show an error on the reverse dns for server.xyz.com showing a reverse DNS of server.abc.com.
    So the question - is it possible to have secondary 'virtual' DNS record on the server so reverse DNS works for the virtual mail host xyz.com?  If not how do I handle the reverse DNS problem which i think is causing some external mail server to reject mail due to the inconsistency on the reverse DNS lookup?
    Many thanks for any suggestions

    SMTP requires a DNS A record.
    A DNS A record is also known as a machine record.
    A DNS A record inherently means that forward DNS and reverse DNS will match.
    The forward translation translates the host name to the IP address.
    The reverse translation translates the IP address to host name.
    When the full translation produces the same host name, that's an A record.
    DNS CNAME records are aliases, and are used for virtual hosts.
    CNAME records inherently do not match the reverse DNS translations.
    To get your configuration to work, your server must have an A record.
    That means forward and reverse DNS will match.
    Any of the virtual hosts within your mail server then all use an MX pointing at the A record host.
    If you have your DNS hosted somewhere other than your ISP, then you'll need your ISP to set up a DNS PTR.
    The DNS PTR is the reverse translation; address to name.
    If you have your own DNS services within your network (as would be typical with a privately-addressed NAT'd network), set that up as a virtual host within SMTP.
    Here is some related reading on external (public) DNS, as related to SMTP servers and such.

  • There is no more space for virtual disk ServerName_2.vmdk. You might be able to continue this session by freeing disk space on the relevant volume, and clicking Retry. Click Cancel to terminate this session.   Time: 30/05/2014 1:16:20 AM

    Recently, our mail server crashed at about 7pm one night, with the error 'There is no more space for virtual disk ServerName_2.vmdk. You might be able to continue this session by freeing disk space on the relevant volume, and clicking Retry. Click Cancel to terminate this session.'
    When we click Retry, the server starts up OK.
    There are no snapshots listed in Snapshot manager for any of the virtual machines on the host.
    There is also free disk space available on the host and for the VM with the disk errors.
    This happened at least three more times, often at bad times. Each time, we were able to click 'Retry' and the disk/system would allow the VM to start-up successfully.
    I checked the Forums, the VMware support articles and the internet as I had not seen this problem before. I have completed the VSphere 5.1 - Fast Track course and this issue was NOT covered in the training.
    Most of the advice on-line and even that on the VMware web-site was pointing to snapshots being the cause of this issue. There are no snapshots enabled and I cannot see evidence of snapshots ever being used.
    - We are running VMware vsphere (5.1.0) and there are (were) 4 virtual machines running on the ESX host. We are using the free version of VMware/ESXi.
    - The Hard disk types we are using for this Virtual Machine are 'Thin Provisioned'.
    - There are 4 [Thin Provisioned] Hard Disks for this virtual machine.
    - There are 6 CPUs
    - There is 20GB of RAM (memory)
    - The VM is running Windows Server 2008 R2 as the guest/VM operating system. It is an Exchange 2010 SP1 mail server. There is plenty of available disk space on all the drives. The [Exchange] log files are cleaned out regularly (automated).
    I decided to move one of our non-critical servers off this host and on to another host to see if this helped the problem. This took quite some time, as we are not using HA or vmotion, nor do we have VCenter Server...nonetheless, I finally managed to get the non-critical server on to another host (n.b. This was a much smaller machine with less virtual resources assigned to it).
    After moving the non-critical server off this host, we decided to monitor the Host and see if the issue resolved itself.
    I checked the host about 6-10 times a day, from first thing in the morning till last thing at night - monitoring the performance of not only the Virtual Machine, but the ESXi host also.
    There were no adverse performance issues. The only thing I did note, was in the Summary page on the ESX Host, under Storage, was If I right-clicked on the datastore and clicked refresh, then the free disk space would drop (ie from 140GB to 125GB).
    After monitoring the host and VM for about 2 weeks, we did NOT have another instance of the above error.
    Sorry for the long winded post, but I wanted to give as much detail given this error has been raised before and snapshots are usually blamed as the cause.
    My question is this:
    If the ESX host had plenty of available disk capacity and there were no snapshots enabled on the VM (or any other VM's on the same host), then why did our Virtual machine crash with the error that 'there is not more space for virtual disk Servername_2.vmdk'?
    How do we prevent this issue from happening if we don't know the underlying cause?
    I would greatly appreciate any advice or suggestions.
    If I have not provided enough info on the specs or environment, please let me know and I will provide more information.
    Thanks all,
    Kurt

    The type of storage is really based on your requirements, and your ability to withstand downtime.
    iSCSI as you are using with a NAS such as Synology or QNAP.  NAS Selector - Support - Synology - Network Attached Storage (NAS)
    I wouldn't use iSCSI for Exchange or any database.  It's a bit slow.
    Do you have a single physical host?  Then I'd probably to an external direct attached storage.  This would be a card inserted in your host server that gives you multilane SAS/SATA connectivity (www.techcable.com/SAS-SATA/SAS-SATA.pps) and an external disk enclosure/array.
    For multiple hosts to a single array, I recommend a fibre channel connection to a FC capable switch, and on to a FC connected array.
    We used to use a HP P2000 (on old G1), but it's since been retired.  Worked pretty well once firmware was upgraded.  http://www8.hp.com/us/en/products/disk-storage/product-detail.html?oid=4118559#!tab=features.  They can be connected via iSCSI, Fibre Channel or 6GB SAS so they are flexible and reasonably priced.
    Recommendations:
         Use RAID 6 with your large disk arrays.  With large disks there is a measurable failure rate when rebuilding a failed RAID5 array based on MTBF.
         Use smaller 15K disks in RAID 0+1 for speed on databases/Exchange.
         Use slower 7.2K disks in RAID6 for file storage.
    We are a small hospital and we have 3 VMware servers with dual CNA (FC and Ethernet in a single twinax cable) connections to 2 redundant Cisco Nexus 5K switches and then 4 Fibre Channel connections to an EMC VNX 5300.  It's extremely fast with about 50 virtual servers, but was quite an investment.  One thing we don't have to worry about is down time.  If there ever is an equipment failure, we have redundant everything, including power split between two UPSs.
    Our VNX has 3 tiers of performance.  3 100GB SSD "Fast Cache" in RAID 1 with hot spare, to keep the most used data ready, but it's not really a tier, however one could be built utilizing the same disks.  A second tier is performance tier with a 8 600GB RAID 0+1 and hot spare.  The third is a bunch of 7.2K 3TB disks in RAID6.  The VNX autotiers, placing data on disks depending on where it's needed.  The volumes are sliced and diced automatically in the background to make this happen and we never have to touch it.  I used a demo of Solarwinds Storage Manager to monitor performance for a while and the utilization was always low, meaning all data access was fast, througout the day.
    D

  • How build where clause in select statement in FM for Virtual provider

    Hi
    I looking for example of FM for Virtual provider where I find code how assign to select statement "where" clause value from query variable.
    In following code how build t_r_custtype range and how assign value to it.
    CODE********************************
    TYPE-POOLS: abap.
    initialize
      CLEAR: e_t_data, e_t_msg.
    this is specific to infoprovider VIRTPROV
      CHECK i_infoprov = 'VIRTPROV'.
      FIELD-SYMBOLS: <l_s_sbook> TYPE sbook,
                     <l_s_data>  TYPE ANY.
      DATA: l_t_component TYPE abap_compdescr_tab,
            l_t_sbook     TYPE TABLE OF sbook.
    initialize
      CLEAR e_t_data.
    Data selection / only Business Customer
      SELECT * FROM sbook
        INTO CORRESPONDING FIELDS OF TABLE l_t_sbook
        WHERE custtype in t_r_custtype.
    ENDCODE********************************
    Thanks a lot
    Adam

    Hello,
    Would you like fill the ranges in Customer exit for BEx..? 
    If Yes. please refer the attachment for the whole code...
    "Sample code in Customer Exit in BEx"
    IF i_step = 2.
    CASE i_vnam.
    WHEN 'ZDAY_CX'.
    LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDAY_IN'.
    CLEAR: l_s_range.
    ZT_DT1 = loc_var_range-low.
    ZT_DT2 = loc_var_range-HIGH.
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
    ANZAHL_JAHRE = 0
    ANZAHL_KALTAGE = 0
    ANZAHL_MONATE = '-1'
    ANZAHL_TAGE = 0
    DATUM_EIN = ZT_DT1
    DATUM_EIN_ULT = ' '
    ULTIMO_SETZEN = ' '
    IMPORTING
    DATUM_AUS = ZFIDAY .
    E_TT =
    E_ULTKZ =
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
    ANZAHL_JAHRE = 0
    ANZAHL_KALTAGE = 0
    ANZAHL_MONATE = '-1'
    ANZAHL_TAGE = 0
    DATUM_EIN = ZT_DT2
    DATUM_EIN_ULT = ' '
    ULTIMO_SETZEN = ' '
    IMPORTING
    DATUM_AUS = ZLSDAY.
    E_TT =
    E_ULTKZ =
    l_s_range-low = ZFIDAY .
    l_s_range-high = ZLSDAY .
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDLOOP.
    *****************************************End*************************************
    **To get the From date (For Text Variable) as per the user input date interval range**
    WHEN 'ZR_S'.
    LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDAY_IN'.
    CLEAR: l_s_range.
    ZT_DT1 = loc_var_range-low.
    ZT_DT2 = loc_var_range-HIGH.
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
    ANZAHL_JAHRE = 0
    ANZAHL_KALTAGE = 0
    ANZAHL_MONATE = 0
    ANZAHL_TAGE = 0
    DATUM_EIN = ZT_DT1
    DATUM_EIN_ULT = ' '
    ULTIMO_SETZEN = ' '
    IMPORTING
    DATUM_AUS = ZFIDAY .
    E_TT =
    E_ULTKZ =
    l_s_range-low0(2) = ZFIDAY6(2).
    l_s_range-low+2(1) = '.'.
    l_s_range-low3(2) = ZFIDAY4(2).
    l_s_range-low+5(1) ='.'.
    l_s_range-low6(4) = ZFIDAY0(4).
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDLOOP.
    *****************************************End*************************************
    Please let me know if any clarification required..
    Rinku..

  • Error "Lead selection not set for context node"

    Hi everyone,
    I've got a Tree control in WebDynpro ABAP and I've implemented an "expand all" button.
    Here's the coding:
    METHOD expand_node_rec.
      DATA lo_el_child TYPE REF TO if_wd_context_element.
      DATA lo_node_children TYPE  wdr_context_child_map.
      DATA wa_lo_node_children LIKE LINE OF lo_node_children.
      DATA lo_nd_child TYPE REF TO if_wd_context_node.
      DATA lo_kschl TYPE klschl.
      DATA lv_has_children TYPE boolean.
      lo_el_child = node->get_element( ).
      lo_node_children = node->get_child_nodes( ).
      node->get_attribute( EXPORTING name = 'KSCHL' IMPORTING value = lo_kschl ).
      node->get_attribute( EXPORTING name = 'HAS_CHILDREN' IMPORTING value = lv_has_children ).
      IF lv_has_children = abap_true.
        node->set_attribute( name = 'IS_EXPANDED' value = abap_true ).
      ENDIF.
      LOOP AT lo_node_children INTO wa_lo_node_children.
        lo_nd_child = wa_lo_node_children-node.
        me->expand_node_rec( node = lo_nd_child  ).
      ENDLOOP.
    ENDMETHOD.
    However I'm getting the error above: "Lead selection not set for context node".
    Any suggestions?
    Edited by: DEVELOPMENT THEMIS on Jul 7, 2011 6:34 PM

    hi developement Themis,
    I think u didn't diclare "node" as context node. So declare it as a context node before using as a context node..as below
    DATA node  TYPE REF TO if_wd_context_node.
    or u can use  "lo_nd_child " as ur context node in ur program in place of "node"
    then I think this error will be removed.
    thanks,
    simadri

  • Using animation as icon for JTree node

    Hi,
    I am using a custom tree cell renderer. I have a label in the renderer, the label have gif Image Icon, but the problem is it is not getting animated. But when I use a JLabel with gif icon some where else it is working fine, but it is not working for tree node.
    package com.gopi.utilities.gui;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.GridBagConstraints;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.TreeCellRenderer;
    import com.gopi.remfilebrowser.gui.GUIUtil;
    import com.gopi.remfilebrowser.util.FileBrowserConstants;
    public class CustomTreeCellRenderer implements TreeCellRenderer
         private JPanel panel;
         private JLabel label;
         private TreeCellRenderer defaultRenderer;
         public CustomTreeCellRenderer()
              super();
              panel = GUIUtil.createGridBagPanel();
              label = new JLabel();
              label.setHorizontalAlignment(JLabel.LEFT);
              System.out.println("New");
              GridBagConstraints gc = new GridBagConstraints();
              GUIUtil.fillComponent(panel,label);
              defaultRenderer = new DefaultTreeCellRenderer();
         public Component getTreeCellRendererComponent(JTree tree, Object value,
                     boolean sel,
                     boolean expanded,
                     boolean leaf, int row,
                     boolean hasFocus)
              if(value instanceof NewAbstractTreeNode)
                   NewAbstractTreeNode node = (NewAbstractTreeNode) value;
                   System.out.println("dr");
                   label.setText(value.toString());
                   label.setIcon(ImageLoader.getInstance().getIcon(node.getIconKey()));
                   if(hasFocus && sel)
                        panel.setBackground(FileBrowserConstants.TREE_NODE_SELECTED_COLOR);
                   else if(sel)
                        panel.setBackground(FileBrowserConstants.TREE_NODE_UNSELECTED_COLOR);
                   else
                        panel.setBackground(Color.white);
                   return panel;
              return defaultRenderer.getTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus);
    }

    JLabels using ImageIcons are designed to display the icon as is, including animation and all.
    A CellRenderer only paints the Icon once, when the cell is painted. Much ike a rubber stamp of the JComponent. Hence, its not designed to do the animation and all.
    If you really want it, you can probably use MediaTracker and a Timer to do your animation scheduling. Might not be very pretty code though
    ICE

Maybe you are looking for