SNMP traps configuration doesn't work in CUSTOMER-CONTEXT

Hi evryone;
I'm having some issues configurin SNMP traps on a ASA5520 USER-CONTEXT  (Cisco Adaptive Security Appliance Software Version 8.2(4)):
I had already configured SNMP traps on ADMIN-CONTEXT and traps were getting the correspondig NETCOOL SERVERS (10.105.27.115 and 10.105.27.118) as you can see in point 2).
Cuold you please give me any clue of why I get this output for a non ADMIN-CONTEXT and why I do not even see SNMP packets output
1) CUST-09-CONTEXT
name 10.105.27.115 Netcool1_TESTBED description Netcool1_TESTBED SNMP server.
name 10.105.27.118 Netcool2_TESTBED description Netcool2_TESTBED SNMP server.
snmp-server community sjnemdhqksptabld
snmp-server host CUST-09-HCS-MNGT-TRANSIT Netcool1_TESTBED community sjnemdhqksptabld version 2c
snmp-server host CUST-09-HCS-MNGT-TRANSIT Netcool2_TESTBED community sjnemdhqksptabld version 2c
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
snmp-server enable traps syslog
route CUST-09-HCS-MNGT-TRANSIT 10.105.27.0 255.255.255.0 192.168.228.1 1
CAPTURES
Lab-asa1-p/CUST-09-CONTEXT/act# capture TEST1 interface CUST-09-HCS-MNGT-TRANSIT match ip host 10.105.27.115 any
Lab-asa1-p/CUST-09-CONTEXT/act# show capture TEST1 trace detail
23 packets captured
   1: 15:17:16.373927 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 9815)
   2: 15:17:18.370433 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 10598)
   3: 15:17:20.370433 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 27648)
   4: 15:17:22.370433 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 3518)
   5: 15:17:24.370433 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 18995)
   6: 15:17:43.015258 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 2110)
   7: 15:17:45.010436 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 11567)
   8: 15:17:47.010436 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 25551)
   9: 15:17:49.010436 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 3716)
  10: 15:17:51.010436 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 20820)
  11: 15:48:16.998483 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 25423)
  12: 15:48:18.990366 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 30357)
  13: 15:48:20.990366 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 31174)
  14: 15:48:22.990366 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 10878)
  15: 15:48:39.735527 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 8146)
  16: 15:48:41.730354 1200.0314.0600 0000.0c9f.fc14 0x8100 118: 802.1Q vlan#3092 P0 192.168.228.4 > 10.105.27.115: icmp: echo request (ttl 255, id 1803)
  17: 15:49:01.881134 1200.0314.0600 0000.0c9f.fc14 0x8100 46: 802.1Q vlan#3092 P0 192.168.228.4.49175 > 10.105.27.115.33434:  [udp sum ok] udp 0 [ttl 1] (id 15279)
  18: 15:49:01.881744 1200.0314.0600 0000.0c9f.fc14 0x8100 46: 802.1Q vlan#3092 P0 192.168.228.4.49175 > 10.105.27.115.33435:  [udp sum ok] udp 0 [ttl 1] (id 20090)
  19: 15:49:01.884201 1200.0314.0600 0000.0c9f.fc14 0x8100 46: 802.1Q vlan#3092 P0 192.168.228.4.49175 > 10.105.27.115.33436:  [udp sum ok] udp 0 [ttl 1] (id 24847)
  20: 15:49:01.886672 1200.0314.0600 0000.0c9f.fc14 0x8100 46: 802.1Q vlan#3092 P0 192.168.228.4.49175 > 10.105.27.115.33437:  [udp sum ok] udp 0 (ttl 2, id 8822)
  21: 15:49:04.880356 1200.0314.0600 0000.0c9f.fc14 0x8100 46: 802.1Q vlan#3092 P0 192.168.228.4.49175 > 10.105.27.115.33438:  [udp sum ok] udp 0 (ttl 2, id 20949)
  22: 15:49:07.880371 1200.0314.0600 0000.0c9f.fc14 0x8100 46: 802.1Q vlan#3092 P0 192.168.228.4.49175 > 10.105.27.115.33439:  [udp sum ok] udp 0 (ttl 2, id 9126)
  23: 15:49:10.880340 1200.0314.0600 0000.0c9f.fc14 0x8100 46: 802.1Q vlan#3092 P0 192.168.228.4.49175 > 10.105.27.115.33440:  [udp sum ok] udp 0 (ttl 3, id 24404)
23 packets shown
I had already configured SNMP traps on ADMIN-CONTEXT and traps were getting the correspondig NETCOOL SERVERS:
2) CONFIGURATION ADMIN-CONTEXT
IP Management  ASA-FW -->10.105.89.38
interface GigabitEthernet0/3.710
nameif management
security-level 100
ip address 10.105.89.38 255.255.255.192 standby 10.105.89.39
management-only
name 10.105.27.115 Netcool1_TESTBED description Netcool1_TESTBED SNMP server.
name 10.105.27.118 Netcool2_TESTBED description Netcool2_TESTBED SNMP server.
snmp-server community sjnemdhqksptabld
snmp-server host management Netcool1_TESTBED community sjnemdhqksptabld version 2c
snmp-server host management Netcool2_TESTBED community sjnemdhqksptabld version 2c
snmp-server enable traps snmp authentication linkup linkdown coldstart
snmp-server enable traps syslog
ip route 0.0.0.0 0.0.0.0 10.105.89.1
CAPTURES : I could see 206 SNMP packets output and traffic towards the NETCOOL SERVERS (10.105.27.115 AND 10.105.27.118)
Lab-asa1-p/ADMIN-CONTEXT/act# sh snmp statistics
0 SNMP packets input
    0 Bad SNMP version errors
    0 Unknown community name
    0 Illegal operation for community name supplied
    0 Encoding errors
    0 Number of requested variables
    0 Number of altered variables
    0 Get-request PDUs
    0 Get-next PDUs
    0 Get-bulk PDUs
    0 Set-request PDUs (Not supported)
206 SNMP packets output
    0 Too big errors (Maximum packet size 512)
    0 No such name errors
    0 Bad values errors
    0 General errors
    0 Response PDUs
    206 Trap PDUs
Lab-asa1-p/ADMIN-CONTEXT/act#
Lab-asa1-p/ADMIN-CONTEXT/act# capture TEST1 interface management match ip host 10.105.27.115 any
Lab-asa1-p/ADMIN-CONTEXT/act# show capture TEST1
5 packets captured
   1: 18:36:17.631070 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.115.162:  udp 356
   2: 18:36:18.491261 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.115.162:  udp 355
   3: 18:36:22.389338 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.115.162:  udp 266
   4: 18:36:29.491231 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.115.162:  udp 355
   5: 18:36:40.491246 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.115.162:  udp 355
5 packets shown
Lab-asa1-p/ADMIN-CONTEXT/act# capture TEST2 interface management match ip host 10.105.27.118 any
Lab-asa1-p/ADMIN-CONTEXT/act# show capture TEST2
13 packets captured
   1: 18:37:16.198094 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 356
   2: 18:37:24.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
   3: 18:37:35.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
   4: 18:37:46.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
   5: 18:37:57.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
   6: 18:38:08.491322 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
   7: 18:38:19.491292 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
   8: 18:38:30.491338 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
   9: 18:38:41.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
  10: 18:38:52.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
  11: 18:39:03.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
  12: 18:39:14.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
  13: 18:39:25.491307 802.1Q vlan#710 P0 10.105.89.38.162 > 10.105.27.118.162:  udp 355
13 packets shown
thanks
Ana

Hi guys coould you please help me out ??
BR
ANA

Similar Messages

  • Rollback doesn't work in custom BAPI

    Hi all,
    i have a custom bapi that modify a custom dictionary table; modify goes well, but after that, if i get any problems and i would make rollback, it doesn't work and code in table remains modified !!!!
    Custom bapi is called as follows:
                do.
                  call function 'ZCA_BPXIFDELTA'
                    starting new task gs_file-partnerexternal
                    destination in group p_rfcgr
                    performing return_rfc on end of task
                    exporting
                      data               = gt_data
                      category           = gs_file-partn_cat
                      rec_file           = gs_file_edwh
                      flusso             = flusso
                      g_text             = g_text
                      g_open_log         = g_open_log
                      p_log_l            = p_log_l
                      file_seq           = file_seq
                    exceptions
                      resource_failure      = 4
                      communication_failure = 8
                      system_failure        = 16.
                  case sy-subrc.
                    when 0 .
                      exit .
                    when 4 .    
                    wait until ireturnedtask > istartedtask .
                    when others.
                      exit.
                  endcase.
                enddo.
    may U help me ?
    Please, it's urgent !!!!!
    Kind regards,
    Francesco

    Hi Maksim,
    Based on your description, my understanding is that you want to use custom styles in multiple lines of text field.
    I recommend to check if the column is allowed to use rich text in the custom list.
    Go to List settings > click the column under Columns > check if the Enhanced rich text (Rich text with pictures, tables, and hyperlinks) is selected.
    By the way, you can refer the link below to add custom styles to the ribbon in SharePoint:
    http://rules.ssw.com.au/SoftwareDevelopment/RulesToBetterSharePoint/Pages/CustomStylesForRichHtmlEditor.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Copy/Paste Audio Configuration doesn't work for me. What am I doing wrong?

    I've read all the other threads on this topic. Some say you have to save before you copy, etc., but nothing works for me. I open up a Logic song that has various Audio tracks, Aux tracks, and VI tracks. I open the Mixer and select Copy Audio Configuration. I close the project file, open up a new blank file, open the Mixer and hit Paste Audio Configuration. The only thing that happens is a single empty track gets pasted, that's it. This couldn't be broken in 8.01 AND 8.02, could it? Tell me I'm doing something wrong, please.

    Hi,
    if you want to copy the actual channel strips, you need to go to the Environment window, select them, press copy, and paste them into the Environment window of the other song.
    Audio configuration doesn't equal channel strips, but refers to how these channel stripes are configured (eg. which plugins they use).
    Or you could create the audio objects (channel strips) you need to use in the new song manually, and then copy the audio configuration, because then that copy/paste process would have some objects to paste the configuration into.
    You could probably even create the audio objects after you have pasted over the configuration, but I haven't checked if this works.

  • Why EL doesn't work with custom tags ?!

    I don't know why expression lang. doesn't work with me.
    here's an example, and please tell me why :
    --- the jsp page with EL ==> doesn't work :
    <%-- In the name of ALLAH most gacious most merciful --%>
    <%@ page language="java" %>
    <%@ taglib uri="/cartlib" prefix="cart" %>
    <html>
    <jsp:useBean id="product" class="ch16.cart.ProductCatalog" scope="application" />
    <cart:showCatalog productCatalog="${product}" addToShoppingCartUri="<%= response.encodeURL("AddToShoppingCart.jsp") %>" />
    </html>
    when using expressions instead, the page works .
    the new page is :
    <%-- In the name of ALLAH most gacious most merciful --%>
    <%@ page language="java" %>
    <%@ taglib uri="/cartlib" prefix="cart" %>
    <html>
    <jsp:useBean id="product" class="ch16.cart.ProductCatalog" scope="application" />
    <cart:showCatalog productCatalog="<%= product %>"
    addToShoppingCartUri="<%=
    response.encodeURL("AddToShoppingCart.jsp") %>" />
    </html>
    The error was :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: jsp.error.beans.property.conversion
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper
    .java:512)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: jsp.error.beans.property.conversion
    org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(Js
    pRuntimeLibrary.java:885)
    org.apache.jsp.ShowProductCatalog_jsp._jspService(ShowProductCatalog_jsp.java:77
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.

    Regarding setup, see this post reply #6
    http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0
    Other potential things to check: make sure you are getting the right value passed in
    productCatalog="${applicationScope.product}"
    ${product} by preference would take a pageContext, request or session attribute before the application level one (it uses pageContext.findAttribute).
    What do you get if you just print out ${product} on the screen?
    It should call a toString() on it for rendering purposes.

  • DataGrid tooltip doesn't work for customized itemRenderer

    I have a DataGrid with one column is a customized renderer,
    when I try to use the dataTripFunc, it is not showing tooltips,
    same function works for the other non-customized column, here is
    the code:
    <mx:DataGrid id="myDataGrid" dataProvider="{dataContent}"
    width="100%" height="100%">
    <mx:columns>
    <mx:DataGridColumn dataField="name" headerText=""/>
    <mx:DataGridColumn dataField="DateTime"
    headerText="DateTime" showDataTips="true"
    dataTipFunction="cellDataTipFunc"/>
    <mx:DataGridColumn dataField="ImgBar" headerText="ImgBar"
    itemRenderer="ImgBarCell" minWidth="40" showDataTips="true"
    dataTipFunction="cellDataTipFunc"/>
    </mx:columns>
    </mx:DataGrid>
    public function cellDataTipFunc(item:Object):String {
    return "hello world";
    Where the itemRenderer -- "ImgBarCell" is a customized HBox
    component with a label and image on it.
    The tooltip -- "helloworld" shows up for column "DateTime",
    but not for customized ImgBar.
    Does this one have anything to do with event generation for
    customized itemRenderer? Or a bug in flex2?

    Hi
    The TREX server (service) must started and be contactable by RFC - this can be checked by carrying out the actions listed above. (Refer OSS Note - 866547 Error when accessing TREX server for more details )
    <b>Please have a look at the following SAP OSS Note, which will help -></b>
    Note 851106 - Search in catalog from SRM leads to "Service not reachable"
    <u>Other related OSS Notes</u>
    Note 973594 Cross Catalog Search - Configuration
    Note 894717 Items from Cross Catalogs Result does not appears in step 2
    Note 803731 Cross-category search returns no result
    Note 847137 OCI, cross-catalog search: detail display
    Note 996885 Cross Catalog Search - Timeout while accessing MDM Catalog
    1023487 cross-catalog-serach in portal opens up a duplicate window
    1020025 Item detail display in Cross Catalog Search
    1027352 Item detail display in Cross Catalog Search
    Note 866547 - Error when accessing TREX server
    Note 988427 - Update to TREX 6.1 Rev 27
    Note 994623 - Hierarchy Buffer and BIA
    Note 1030056 - Improvement in the Search within Results feature of CSE
    Note 798988 CCM/CSE: Sorting sometimes returns no results
    Note 778688 TREX_INDEX_MANAGER unit test update_view(): incorrect search
    Note 808754 Display sequence of the characteristics is not changeable
    Note 794325 - Error in OCI transfer in the BAdI /CCM/OCI_SCALEPRI
    Note 745235 Search ability changes to cross-catalog characteristics
    Note 724097 - Search of the comp. in case of structured characteristics
    Note 743643 Search ability change in cross-catalog characteristics
    Note 847551 Displaying date, time, and timestamp in the CSE
    Note 750756 Program for the deletion/clean up of TREX indexes
    Do update me as well.
    Regards
    - Atul

  • Resize JComboBox dropdown doesn't work without customized ListCellRenderer

    Based on the forum thread Horizontal scrollbar for JComboBox across multiple look and feel , the following code will work, if only I provide a customized ListCellRenderer (A JPanel with several JLabels).
    FYI, here is my ListCellRenderer code [http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/yccheok/jstock/gui/ResultSetCellRenderer.java?view=markup]
    Here is the code which adjust the drop down list width. The setup instruction is exactly same as the one mentioned in forum by Kleopatra
        private void adjustPopupWidth() {
            if (this.getItemCount() == 0) return;
            Object comp = this.getUI().getAccessibleChild(this, 0);
            if (!(comp instanceof JPopupMenu)) {
                return;
            JPopupMenu popup = (JPopupMenu) comp;
            JScrollPane scrollPane = (JScrollPane) popup.getComponent(0);
            Object value = this.getItemAt(0);
            Component rendererComp = this.getRenderer().getListCellRendererComponent(null, value, 0, false, false);       
            if (rendererComp instanceof JXTable) {
                scrollPane.setColumnHeaderView(((JTable) rendererComp).getTableHeader());
            Dimension prefSize = rendererComp.getPreferredSize();
            Dimension size = scrollPane.getPreferredSize();
            size.width = Math.max(size.width, prefSize.width);
            scrollPane.setPreferredSize(size);
            scrollPane.setMaximumSize(size);
            scrollPane.revalidate();
        }However, when come to a JComboBox, without explicitly provided it a list cell renderer, the above code will have NPE being thrown at line
           Component rendererComp = this.getRenderer().getListCellRendererComponent(null, value, 0, false, false);
           // Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
           // at javax.swing.plaf.basic.BasicComboBoxRenderer.getListCellRendererComponent(BasicComboBoxRenderer.java:94)Hence, I modify the code as follow and hoping it will work.
        private void adjustPopupWidth() {
            if (this.getItemCount() == 0) return;
            Object comp = this.getUI().getAccessibleChild(this, 0);
            if (!(comp instanceof JPopupMenu)) {
                return;
            JPopupMenu popup = (JPopupMenu) comp;
            JScrollPane scrollPane = (JScrollPane) popup.getComponent(0);
            Object value = this.getItemAt(0);
            //Component rendererComp = this.getRenderer().getListCellRendererComponent(null, value, 0, false, false);
            Component rendererComp = this.getRenderer().getListCellRendererComponent((JList)scrollPane.getViewport().getView(), value, 0, false, false);       
            if (rendererComp instanceof JXTable) {
                scrollPane.setColumnHeaderView(((JTable) rendererComp).getTableHeader());
            Dimension prefSize = rendererComp.getPreferredSize();
            Dimension size = scrollPane.getPreferredSize();
            size.width = Math.max(size.width, prefSize.width);
            scrollPane.setPreferredSize(size);
            scrollPane.setMaximumSize(size);
            scrollPane.revalidate();
        }No more exception being thrown this time. Just that my dropdown list doesn't resize at all when I have a long String. It remains normal size as usual, with horizontal scrollbar being shown to catter the long String.
    Is there anything I had missed out?
    Thanks
    Edited by: yccheok on Oct 23, 2010 9:40 PM
    Edited by: yccheok on Oct 23, 2010 9:41 PM

    Yes. The problem solved. Out of curiosity, is it necessary to have statement? As I remove it, it just work as well.
    scrollPane.revalidate();I include SSCCE for this problem.
    package sandbox;
    import java.awt.Component;
    import java.awt.Dimension;
    import javax.swing.JList;
    import javax.swing.JPopupMenu;
    import javax.swing.JScrollPane;
    import javax.swing.plaf.basic.BasicComboPopup;
    * @author yccheok
    public class NewJFrame extends javax.swing.JFrame {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jComboBox1 = new javax.swing.JComboBox();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            getContentPane().setLayout(new java.awt.FlowLayout());
            jComboBox1.setEditable(true);
            jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Long Long Long Long Item 4" }));
            jComboBox1.setPreferredSize(new java.awt.Dimension(80, 20));
            jComboBox1.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
                public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
                public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
                    jComboBox1PopupMenuWillBecomeVisible(evt);
            getContentPane().add(jComboBox1);
            pack();
        }// </editor-fold>
        private void jComboBox1PopupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            adjustPopupWidth();
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        private void adjustPopupWidth() {
            if (jComboBox1.getItemCount() == 0) return;
            Object comp = jComboBox1.getUI().getAccessibleChild(jComboBox1, 0);
            if (!(comp instanceof JPopupMenu)) {
                return;
            JPopupMenu popup = (JPopupMenu) comp;
            JScrollPane scrollPane = (JScrollPane) popup.getComponent(0);
            Object value = jComboBox1.getItemAt(0);
            Component rendererComp = jComboBox1.getRenderer().getListCellRendererComponent((JList)scrollPane.getViewport().getView(), value, 0, false, false);
            //if (rendererComp instanceof JXTable) {
            //    scrollPane.setColumnHeaderView(((JTable) rendererComp).getTableHeader());
            //Dimension prefSize = rendererComp.getPreferredSize();
            BasicComboPopup basic = (BasicComboPopup)comp;
            Dimension prefSize = basic.getList().getPreferredSize();
            Dimension size = scrollPane.getPreferredSize();
            size.width = Math.max(size.width, prefSize.width);
            scrollPane.setPreferredSize(size);
            scrollPane.setMaximumSize(size);
            //scrollPane.revalidate();
        // Variables declaration - do not modify
        private javax.swing.JComboBox jComboBox1;
        // End of variables declaration
    }

  • QTP doesn't work with custom SparkList ItemRenderer

    I am trying to support our QA department which uses QTP for automation testing. QTP is failing miserably at recognizing custom item renderers for Spark List (and DataGroup too). There is nothing special going on in the custom item renderer. There is a basic Group layout with some labels and buttons. I would like to be able to click on a button inside the item renderer; but, QTP sees the whole item renderer as a SparkListLabel. QTP is not able to recognize anything inside the item renderer.
    I know there are custom automation delegates that need to be created for some components; but this is basic layout inside an ItemRenderer. I would expect that to work with out creating custom automation classes to support it.

    Well the Hierarchy for 0GLACCEXT is designed in such a way ,am not sure how you have defined the custom hierarchy.
    For Insights you may wish to refer below-
    http://help.sap.com/saphelp_nw04/helpdata/en/04/7b95fb42b0f94aba334c0890dbbda4/content.htm
    The hierarchy for characteristic 0GLACCEXT is used as the financial statement version in BW queries. To technically enable the particular exception aggregation for contra items, the hierarchy table of characteristic 0GLACCEXT contains the attribute Balance-Dependency of a Hierarchy Node (technical name 0BAL_DEPEND).
    The attribute 0BAL_DEPEND can take three different values:
    ·         Normal aggregation on the hierarchy node of 0GLACCEXT(“ “, default value):
    The financial statement item is always either on the assets side or the liabilities side of the financial statement. This is the case for almost all financial statement items.
    ·         Aggregation on the hierarchy node for 0GLACCEXT is only performed if the balance is positive (“1”):
    First, the system determines the total for those financial statement items that are subordinate to the hierarchy node of 0GLACCEXT. If this total is positive, the subordinate financial statement items are aggregated on the hierarchy node of 0GLACEXT. If this total is negative, no aggregation occurs, and the values on the subordinate financial statement items are set to zero.
    ·         Aggregation on the hierarchy node of 0GLACCEXT is only performed if the balance is negative (“2”):
    The exception aggregation is performed in the same way as for case “1”, except that the +/- signs of the balance are reversed.
    Hope it Helps
    Chetan
    @CP..

  • Workarea rule to include configuration doesn't work

    Hi,
    I created a workarea with the rule 'INCLUDE_CONFIG(Test R1 Int Test{MAIN;1}=Configuration)', however the workarea doesn't show the included configuration in the navigator, even after refresh and requery. The configuration and its member though can be seen.
    I use 9i SCM (9.0.2.80.10).
    Am I missing something ?

    Stephan,
    You probably have not included the owning folders of the files. If they are not in this, or an additional configuration you will never see the files.
    regards,
    David

  • Std::list::sort() doesn't work with custom class

    The following example doesn't order a list the way I'd expect. Is this being done wrong? Sun Studio 12 (not update 1). Current patches as of Monday.
    #include <list>
    class CMyClass
    public:
    CMyClass(long a) : m_Sec(a) { }
    bool operator<(const CMyClass* rhs)
    return (m_Sec < rhs->m_Sec);
    long m_Sec;
    typedef std::list<CMyClass*> TLogList;
    int
    main(int argc, char* argv[])
    TLogList logList;
    CMyClass* name = new CMyClass(0x4A833E79);
    logList.push_back(name);
    name = new CMyClass(0x4A85E144);
    logList.push_back(name);
    name = new CMyClass(0x4A85E66F);
    logList.push_back(name);
    name = new CMyClass(0x4A85E66F);
    logList.push_back(name);
    name = new CMyClass(0x4A85B2C2);
    logList.push_back(name);
    name = new CMyClass(0x4A85D6EF);
    logList.push_back(name);
    name = new CMyClass(0x4A69F9AD);
    logList.push_back(name);
    name = new CMyClass(0x4A85DC92);
    logList.push_back(name);
    name = new CMyClass(0x4A817316);
    logList.push_back(name);
    name = new CMyClass(0x4A85DEEB);
    logList.push_back(name);
    name = new CMyClass(0x4A846329);
    logList.push_back(name);
    name = new CMyClass(0x4A85E39D);
    logList.push_back(name);
    name = new CMyClass(0x4A85D41D);
    logList.push_back(name);
    name = new CMyClass(0x4A89CC17);
    logList.push_back(name);
    name = new CMyClass(0x4A85DC19);
    logList.push_back(name);
    logList.sort();
    TLogList::iterator logListIter = logList.begin();
    TLogList::iterator logListEnd = logList.end();
    for (; logListIter != logListEnd; ++logListIter)
    CMyClass* name = *logListIter;
    cout << hex << name->m_Sec << endl;
    return 0;
    which produces
    4a833e79
    4a85e144
    4a85e66f
    4a85e66f
    4a85b2c2
    4a85d6ef
    4a69f9ad
    4a85dc92
    4a817316
    4a85deeb
    4a846329
    4a85e39d
    4a85d41d
    4a89cc17
    4a85dc19

    The program as you wrote it will sort the contents of the list. The list consists of the addresses of CMyClass objects, and after sorting, will contain those addresses in sorted order.
    If you want to sort by the contents of the classes that are pointed to, you need to provide a comparison operator that compares the contents, and use the other form of the list::sort function that takes a comparison function as an argument. That is, add the function
    bool comp(const CMyClass* l, const CMyClass* r)
       return l->m_Sec < r->m_Sec;
    }and change
    logList.sort(); to
    logList.sort(comp); This version of list::sort will not compile using the default libCstd, because it requires member templates in the library implementation. For more information about this limitation, refer to the C++ FAQ section on library compatibility.
    [http://developers.sun.com/sunstudio/documentation/ss12u1/mr/READMEs/c++_faq.html#LibComp]
    The revised code will compile with the optional STLport library, or with other 3rd-party libraries like Apache stdcxx. To use STLport, add the option -library=stlport4 to every CC command, compiling and linking. You cannot mix code compiled for the default libCstd with STLport code in the same program.

  • The roll over feature doesn't work for customizing, is there a way I can fix this

    I always have to change my browsers theme to see what it looks like, instead of just roll over. Is there a way to fix this?

    Previewing a persona only works on sites that are whitelisted via an allow exception.
    You can see the permissions for the domain in the current tab in:
    * Tools > Page Info > Permissions > [X] Install Extensions or Themes
    * Tools > Options > Security : "Warn me when sites try to install add-ons": Exceptions
    Make sure that you do not use [[Clear Recent History]] to clear the 'Site Preferences'.
    See http://kb.mozillazine.org/Themes#Lightweight_theme

  • Custom styles in Rich Text Editor doesn't work in custom list

    Hello, i have list, where one of collumns is formatted multiline text and while i edit in collumn i can't use all rich text styles, and custom RTE styles too. So how i can activate full features of RTE?

    Hi Maksim,
    Based on your description, my understanding is that you want to use custom styles in multiple lines of text field.
    I recommend to check if the column is allowed to use rich text in the custom list.
    Go to List settings > click the column under Columns > check if the Enhanced rich text (Rich text with pictures, tables, and hyperlinks) is selected.
    By the way, you can refer the link below to add custom styles to the ribbon in SharePoint:
    http://rules.ssw.com.au/SoftwareDevelopment/RulesToBetterSharePoint/Pages/CustomStylesForRichHtmlEditor.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Jython procedure doesn't work on defined context

    Hi all.
    I have procedure with few steps. Most of them have Oracle technology, but one is jython script. When I start this procedure I can set different context, but I want that step to execute on exact context. I defined context in "Command on target" tab, but it still uses context which is setted when procedure starts.

    Hi all.
    I have procedure with few steps. Most of them have Oracle technology, but one is jython script. When I start this procedure I can set different context, but I want that step to execute on exact context. I defined context in "Command on target" tab, but it still uses context which is setted when procedure starts.

  • SNMP Traps is not being sent clear event when DB is UP

    Test Traps everything else is also coming fine. Listener, Database Errors, down etc are all coming in fine thru' SNMP. SNMP traps and OEM all working ok. Question is for database up event there is no CLEAR event being sent. Is there anything else that needs to be configured?
    SQL> SELECT owner, name, enqueue_enabled, dequeue_enabled FROM dba_queues
    2 WHERE name like '%NOTIFY%';
    OWNER NAME ENQUEUE DEQUEUE
    SYS AQ_PROP_NOTIFY YES YES
    SYSMAN AQ$_MGMT_NOTIFY_QTABLE_E NO NO
    SYSMAN MGMT_NOTIFY_Q YES YES
    SYSMAN AQ$_MGMT_NOTIFY_INPUT_QTABLE_E NO NO
    SYSMAN MGMT_NOTIFY_INPUT_Q YES YES

    Hello,
    Under interface for specific interface: snmp trap link-status
    http://www.cisco.com/en/US/docs/ios/12_0/configfun/command/reference/frmonitr.html#wp1023375
    Also in newer IOS
    The snmp-server enable traps snmp [ linkup] [linkdown] form of this command replaces the snmp trap link-status interface configuration mode command.
    http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a05.shtml
    HTH
    Saju
    Pls rate helpful posts

  • Odd SNMP trap - anyone else seen this?

    Hi, all!
    Just got and implemented a couple of C300s and they're making my life a lot easier than my old Marshal servers, but I'm seeing an odd alert in my SNMP traps that doesn't appear to be getting translated by the MIB, and since my traps generate emails to me unless it's a critical, it's leading to something like 125 emails a night.
    Just wondering if anyone had seen this trap before and could tell me A) What the hell it is (I -think- it might be related to definition updates or quarantined messages, but I can't find anything to prove that) and B) If it's not in the MIB, if anyone else wrote a custom MIB entry to cover it so I can get some better reporting.
    NodeName=(appliance)
    Application=SNMPTraps
    Severity=16
    Tally=1
    MessageText=Virus Outbreak Filters
    NodePlatform=other
    NodeOperatingSystem=other
    MessageNumber=22562b36-5453-71dc-1ce3-0a69c6460000
    MessageGroup=ACM
    Object=(UNAVAILABLE EVENT PARAMETER $2)
    Source=Ironport
    TimeCreated=8/27/2007 00:08:15
    TimeReceived=8/27/2007 00:08:15
    TimeLastReceived=8/27/2007 11:28:19
    Thanks!

    The message above should be comming from the traps that we translate into messages
    SNMPTraps-IronPort Update failure for (Sophos Antivirus)
    SNMPTraps-IronPort Update failure for (Virus Outbreak Filters)
    SNMPTraps-IronPort Update failure for (IronPort Anti-Spam)
    Where original traps are these below, and meaning should be that attempted update from ironport.com failed.
    Generic: 6; Specific: 6; Enterprise: .1.3.6.1.4.1.15497.1.1.2.0.6;
    Variables:
    [1] private.enterprises.IronPort.AsyncOSAppliances.AsyncOSMail.AsyncOSMailObjects.updateTable.updateEntry.updateServiceName (OctetString): Sophos Antivirus
    Generic: 6; Specific: 6; Enterprise: .1.3.6.1.4.1.15497.1.1.2.0.6;
    Variables:
    [1] private.enterprises.ironPort.asyncOSAppliances.asyncOSMail.asyncOSMailObjects.updateTable.updateEntry.updateServiceName (OctetString): Virus Outbreak Filters
    Generic: 6; Specific: 6; Enterprise: .1.3.6.1.4.1.15497.1.1.2.0.6;
    Variables:
    [1] private.enterprises.IronPort.AsyncOSAppliances.AsyncOSMail.AsyncOSMailObjects.updateTable.updateEntry.updateServiceName (OctetString): IronPort Anti-Spam

  • Enabling SNMP traps in WebLogic6.1

    I work with a WebLogic server ver 6.1, trying to use its SNMP capabilities.
    - I succeed in GET requests (I see it both in the manager and in the log)
    - The traps mechanism doesn't work at all (no traps are sent, at least according
    to the log, which is on highest debug level).
    I noticed that in the log there was a debug message saying "Trap targets enabled
    =0". I defined one target, and I can't find a way to enable it.
    Can you help?

    Deer lovely Nurit T.
    As U're probably know we in Kabul are specialize in those TRAPS that U're trying
    to put.
    I just wanted to clearify the U won't succeed in your mission even if with WLS
    17.5 version.
    Insha'ala that your project will crush and you company will be closed.
    BiLsalam Alecum Vu Rahmat ALLA.
    "Nurit T" <[email protected]> wrote:
    >
    I work with a WebLogic server ver 6.1, trying to use its SNMP capabilities.
    - I succeed in GET requests (I see it both in the manager and in the
    log)
    - The traps mechanism doesn't work at all (no traps are sent, at least
    according
    to the log, which is on highest debug level).
    I noticed that in the log there was a debug message saying "Trap targets
    enabled
    =0". I defined one target, and I can't find a way to enable it.
    Can you help?

Maybe you are looking for