WLSS3.0 and application code SNMP trap error

Hi,
I'm trying to generate SNMP traps through application code as described in the documentation at [url http://e-docs.bea.com/wlcp/wlss30/programming/snmptraps.html]. By using an SNMP manager I have verified that WLSS can send traps during startup and shutdown. My application code, however, fails to do so. When my SIP servlet is deployed, I get the following errors.
<17.apr.2007 kl 10.02 CEST> <Notice> <SNMP Agent> <000000> <The SNMP trap version is 1>
<17.apr.2007 kl 10.02 CEST> <Error> <SNMP> <BEA-320912> <Error during initialization while attempting to obtain MBeanServerConnection.
java.io.IOException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic.management.mbeanservers'
        at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:135)
        at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:79)
        at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:326)
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
        at weblogic.management.snmp.agent.ServerMap.createMBeanServerConnection(ServerMap.java:262)
        Truncated. see log file for complete stacktrace
javax.naming.NameNotFoundException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic.management.mbeanservers'; remaining n
ame 'domainruntime'
        at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
        at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
        at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:171)
        at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
        at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
        Truncated. see log file for complete stacktrace
>
<17.apr.2007 kl 10.02 CEST> <Error> <SNMP> <BEA-320909> <Error during initialization while attempting to obtain the required DomainRuntimeServer.>Using the example code, I fail to obtain the SipServletSnmpTrapRuntime MBean.
regards,
Jegern

Hi,
what you show us is not teh servlet mapping but the servlet definition. The servlet mapping maps a configured servlet to a URL. You can use the property editor in JDeveloper for this. Just select the web.xml file and choose "properties" from teh context menu
Frank

Similar Messages

  • Separte GUI and application code

    Below is my code to separate GUI and application code. When i try to execute the code i get message applet not initiated. Can any one point what mistake i am doing in the code.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    class ColorAction extends AbstractAction
         public ColorAction(String name, Icon icon,Color c, Component comp)
              putValue(Action.NAME, name);
              putValue(Action.SMALL_ICON,icon);
              putValue("Color",c);
              target = comp;
         public void actionPerformed(ActionEvent evt)
              Color c = (Color)getValue("Color");
              target.setBackground(c);
              target.repaint();
         private Component target;
    class ActionButton extends JButton
         public ActionButton(Action a)
              setText((String)a.getValue(Action.NAME));
              Icon icon = (Icon)a.getValue(Action.SMALL_ICON);
              if(icon != null)
                   setIcon(icon);
              addActionListener(a);
    public class SepGUI extends JApplet
         public void init()
              JPanel panel = new JPanel();
              Action blueAction = new ColorAction("Blue",new ImageIcon("a.gif"),Color.blue,panel);
              Action yellowAction = new ColorAction("Yellow",new ImageIcon("a.gif"),Color.yellow,panel);
              Action redAction = new ColorAction("Red",new ImageIcon("a.gif"),Color.red,panel);
              panel.add(new ActionButton(yellowAction));
              panel.add(new ActionButton(blueAction));
              panel.add(new ActionButton(redAction));
              Container contentPane = getContentPane();
              contentPane.add(panel);
    }

    public class SepGUI extends JApplet
      public void init()
        JPanel panel = new JPanel();
        try
          Action blueAction = new ColorAction("Blue",new ImageIcon(new java.net.URL (getCodeBase(),"a.gif")),Color.blue,panel);
          Action yellowAction = new ColorAction("Yellow",new ImageIcon(new java.net.URL (getCodeBase(),"a.gif")),Color.yellow,panel);
          Action redAction = new ColorAction("Red",new ImageIcon(new java.net.URL (getCodeBase(),"a.gif")),Color.red,panel);
          panel.add(new ActionButton(yellowAction));
          panel.add(new ActionButton(blueAction));
          panel.add(new ActionButton(redAction));
        catch(Exception e){}
        Container contentPane = getContentPane();
        contentPane.add(panel);
    }

  • UI and Application Code?

    I've been exposed to Java but without GUI. I've just started to learn swing and event handling. Normally in developing an application, the GUI code and the application code is preferrably separated. Now my question is, how do the application code and GUI are able to interact. How do I connect them? inheritance? i hope to get some sample codes to do this. I've bought books to learn java but none seem to tell me how to...Hope to get some replies soon. Thanks in advance

    See that link over at the left that says "Tutorials"? Click on it, it will lead you to a page full of links to guess what. One of those links says "The Swing Tutorial". Need I say more?

  • Link down and Link Up Snmp trap C#

    Hi i've configure my cisco router to receive the SNMP traps if the link goes up or down. However i found out that when i plugged out the cable i'm not receiving any link down on the network management system. Until i plugged in again the link will then show up or down state. May i know whats the reason why i can't receive the link down when i plugged out my cable?

    If your router has only fa0/0 as active interface, then this would be the interface that the router would use to communicate with the network management system. However when you unplug that interface now the router has no interface that it can use to send the link down trap to the network management system.
    HTH
    Rick

  • Satellite C660-1ZM Win 7 64bit: mousepad and USB - "code 52" driver error

    Hello,
    Having recently set up a new Satellite C660-1ZM running Windows 7 64bit (upgraded from Home Premium to Ultimate) for a friend, the mousepad and USB ports have suddenly stopped working. The drivers show an exclamation mark against them and the error is "code 52" which is related to driver signing. Windows doesn't seem to recognise the driver signatures for the published drivers that came on the machine's pre-installed disc, so the devices don't work. I've updated the drivers (Intel chipset [which includes USB]; Synaptics touchpad) to the latest ones publised on the Toshiba web site - and we have the same problem.
    Pressing F8 on boot allows you to select "disable checking of driver signing" in the WIndows 7 boot options, which then enables the drivers and all is well, until you reboot - at which point you have to hit F8 again.
    I think that one of the many recent Windows updates has somehow messed things up, but we can't easily prove that. The machine worked fine for a week or so, then the mousepad suddenly quit working around 8th August 2012.
    1) Are there valid signed drivers that pass whatever checks Microsoft impose on driver signing, including whatever checks they've potentially just imposed via some recently inflicted update?
    2) Does anyone know exactly how to disable the checking of driver signing permanently, so that a reboot will not require the F8 keypress and so on?
    Uninstalling the mousepad driver and rebooting gives the basic mouse functionality, without the Synaptics cleverness. However, the USB ports still don't work because their driver doesn't load, so an external mouse doesn't work.
    It's an infernal nusiance. Driving the system off the keyboard to uninstall drivers etc. is not much fun.
    Cheers, Colin.

    Hi
    Did you receive the error that windows cannot verify the digital signature for the drivers required for this device? Usually this means the error code 52
    Since the USB drivers are parts of the Windows OS, I dont think that this could be an signature issue I think some files are damaged.
    Try to uninstalling/reinstalling the driver and deleting the device and its drivers from device manager before reinstalling.
    Usually this should help, if not, well try to repair the system.
    Power up the unit and press F8. Then choose Repair my Computer.
    Now choose the first option which would help to repair the system.

  • SSRS 2012 ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

    I have a SSRS installation, I have deployed my connections to, but they fail with title message.  The drivers and ODBC on the box are setup and work fine with 32 bit ODBC conn manager. 
    When I run or configure my connections on the site, via the browser, I get errors connecting.
    I tried to find which app pool http://server/ReportServer application used, but I am not finding that, so my first ?
    How do I find in IIS what app pool SSRS application is using?
    I have 2008 server, running SQL 2012 V.S. 2010 and I think I need to enable my app pool to use 32 bit, but cannot figure out which one it uses?  I see default set to 32 bit = true, which I thought would be it.
    Can I set my SSRS project to use x86, platform? Like I did with SSIS? 
    If so, how?  SSRS and SQL 2012 somewhat new for me. Thanks
    Developer MS Reporting Services

    Hi DCady,
    To manage a data source that connects to a 32-bit driver under 64-bit platform, we use C:\Windows\SysWOW64\odbcad32.exe. To manage a data source that connects to a 64-bit driver, we use C:\Windows\System32\odbcad32.exe.
    Generally, if we use the 64-bit odbcad32.exe (C:\Windows\System32\odbcad32.exe) to configure or remove a DSN that connects to a 32-bit driver, for example, Driver do Microsoft Access (*.mdb), we will receive the following error message:
    The specified DSN contains an architecture mismatch between the Driver and Application
    To resolve this error, we need to use the 32-bit odbcad32.exe (C:\Windows\SysWOW64\odbacad32.exe) to configure or remove the DSN.
    Besides, please make sure there are no DSN using the same name in both 64-bit and 32-bit ODBC Data Source Administrator.
    Reference:
    Managing Data Sources
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Best Practices for NCS/PI Server and Application Monitoring question

    Hello,
    I am deploying a virtual instance of Cisco Prime Infrastructure 1.2 (1.2.1.012) on an ESX infrastructure. This is being deployed in an enterprise enviroment. I have questions around the best practices for moniotring this appliance. I am looking to monitor application failures (services down, db issues) and "hardware" (I understand this is a virtual machine, but statistics on the filesystem and CPU/Memory is good).
    Firstly, I have enabled via the CLI the snmp-server and set the SNMP trap host destination. I have created a notification receiver for the SNMP traps inside the NCS GUI and enabled the "System" type alarm. This type includes alarms like NCS_DOWN and PI database is down. I am trying to understand what the difference between enabling SNMP-SERVER HOST via the CLI and setting the Notification destination inthe GUI is? Also how can I generate a NCS_DOWN alarm in my lab. Doing NCS stop does not generate any alarms. I have not been able to find much information on how to generate this as a test.
    Secondly, how and which processes should I be monitoring from the Management Station? I cannot easily identify the main NCS procsses from the output of ps -ef when logged in the shell as root.
    Thanks guys!

    Amihan_Zerrudo wrote:
    1.) What is the cost of having the scope in a <jsp:useBean> tag set to 'session'? I am aware that there are a list of scopes like page, application, etc. and that if i use 'session' my variable will live for as long as that session is alive. (did i get this right?). You should rather look to the functional requirements instead of costs. If the bean need to be session scoped (e.g. maintain the logged in user), then do it so. If it just need to be request scoped (e.g. single page form data), then keep it request scoped.
    2.)If the JSP Page where i use that <useBean> is to be accessed hundred of times a day, will it compensate my server resources? Right now i am using the Sun Glassfish Server.It will certainly eat resources. Just supply enough CPU speed and memory to a server. You cannot expect that a webserver running at a Pentium 500MHz with 256MB of memory can flawlessly serve 100 simultaneous users at the same second. But you may expect that it can serve 100 users per 24 hour.
    3.) Can you suggest best practice in memory management given the architecture i described above?Just write code so that it doesn't unnecessarily eat memory. Only allocate memory if your application need to do so. You should rather let the hardware depend on the application requirements, not to let the application depend on the hardware specs.
    4.)Also, I have implemented connection pooling in my architecture, but my application is to be used by thousands of clients everyday.. Can the Sun Glassfish Server take care of that or will I have to purchase a powerful sever?Glassfish is just an application server software, it is not server hardware. Your concerns are rather hardware related.

  • Can custom standard MBean's properties be monitored to generate SNMP traps

    I am trying to setup a trap monitor (Counter) to detect the
    change in a property of my custom MBean, which gathers
    runtime statistics for our application.
    Here is the MBean interface:
    public interface BOStatusSummaryRuntimeMBean {
    public int getTotalClientRequestsCount();
    I've registered the implementation MBean, through the startup class, with the
    following code:
    MBeanHome wlmbsh = (MBeanHome) ctx.lookup("weblogic.management.adminhome");
    MBeanServer mbs = wlmbsh.getMBeanServer();
    ObjectName myName = new ObjectName("businessobjects:Location=bo_server,Name=BOStatusSummary,
    Type=BOStatusSummaryRuntime");
    BOStatusSummaryRuntime mbean = new BOStatusSummaryRuntime();
    mbs.registerMBean(mbean, myName);
    This is the setup for the Counter trap:
    MBean Type: BOStatusSummaryRuntime
    MBean Name: BOStatusSummary
    Attribute Name: TotalClientRequestsCount
    PollingInterval: 1
    Treshold: 1
    Offset: 1
    Modulus: 0
    The MBean is available and I can see the property changing, as I execute client
    applications, but SNMP traps are not generated.
    Applying the same monitor on a Weblogic's MBean (Type=EJBComponent, Attribute=DeploymentOrder)
    for one of the deployed EJBs, works fine and traps get generated.
    I would appreciate if someone can point me in the right direction ...
    Regards,
    Darko Bohinc
    Consultant

    I was hoping Adobe had something that could be used, or am I stuck using php or Javascript and just doing this with custom scripting?
    I think you will have to do the latter.  While you are thinking about writing the PDF file, don't overlook fpdf (google it)....

  • No SNMP traps from sun x4150 ILOM server

    Hi all,
    I have set up the ILOM alerts with SNMP traps (v2c,public) according to the ILOM user guide and pressed the "send test alerts". Nothing shows up in the SNMP trap monitor (using MG-SOFT software). When I add another alert of IPMI pet type (same destination ip as of SNMP trap alert) I see events in the trap monitor. It looks like the ILOM does not generate SNMP traps but only IPMI traps.
    In the ILOM user guide there is an explicit example of traps sent from the ILOM (in addition to the fact that the ILOM features include SNMP traps AS WELL as IPMI) so it seems this is possible...
    my ILOM version is
    SP Firmware Version     2.0.2.6
    Does anyone have any idea of any step I have missed ?
    Thanks in advance.
    Lior

    Once the Network Device (Linux server in this case) is discovered you will still need a rule that targets that class and accepts incoming SNMP Traps for that OID, or All OIDs if you prefer.  I found 2 links that may be of help, the first is just a basic
    overview of the SNMP listener in SCOM 2012 as it has changed from the OS Listener in 2007 to a dedicated one.
    http://systemcentertech.com/2012/05/17/scom-2012-built-in-snmp-trap-listener/
    The second link covers SNMP setup, but starting at Step 7 there is a great how-to on creating your own SNMP rule which will be needed to collect your traps.
    http://scom-2012.blogspot.com/2012/07/setting-up-snmp-monitoring-in-scom-2012.html
    www.Practice2Perfect.com

  • SNMP traps from EMC SRM to SCOM 2012 R2

    Hi,
    I'm trying to configure SCOM 2012 R2 as an SNMP trap listner.  I've seen many articles on setting this up but all are based around SNMP traps from network devices which must first be discovered and identified in the network device list.
    However in my scenario I am trying to monitor/listen for traps send by a Linux box hosting EMC SRM - this management software can be configured to send SNMP traps out so it is these that I need to try and listen for/capture.
    So can anyone explain how I can configure SCOM 2012 R2 to do this.  I have tried to just used the IP of the Linux box and discover it as a network device but it fails - in Network Devices Pending Mgmt it says No response Ping, even though I can
    ping the box from the Server OK - so I am guessing you cant cheat scom in discovering the Linux box as a network device in ths way?
    Can anyone offer any advice for setting this up.  Just to add I've ensured the RunAs Community String (public) and SNMP version is correct on both side...
    Cheers...

    Once the Network Device (Linux server in this case) is discovered you will still need a rule that targets that class and accepts incoming SNMP Traps for that OID, or All OIDs if you prefer.  I found 2 links that may be of help, the first is just a basic
    overview of the SNMP listener in SCOM 2012 as it has changed from the OS Listener in 2007 to a dedicated one.
    http://systemcentertech.com/2012/05/17/scom-2012-built-in-snmp-trap-listener/
    The second link covers SNMP setup, but starting at Step 7 there is a great how-to on creating your own SNMP rule which will be needed to collect your traps.
    http://scom-2012.blogspot.com/2012/07/setting-up-snmp-monitoring-in-scom-2012.html
    www.Practice2Perfect.com

  • CCMS agents, alert monitoring, SNMP traps

    Hi Guys,
    I have a question. There is a requirement about monitoring. Any documenation or links will be really appreciated.
    My client needs me to use CCMS agents, alert monitoring for both ABAP and JAVA stacks, SNMP traps, sending SNMP traps, interface CCMS with third party monitoring tools. Mostly, the ,monitoring is done thru RZ20.
    Anybody can point me in right direction or material.
    Thanks
    Venky

    Hi,
    Check these CCMS Weblogs. Really good ones...
    /people/federico.babelis2/blog/2006/04/26/ccms-rule-based-monitors-configuration-guide-for-dummies
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    Feel free to revert back.
    --Ragu

  • Enterprise Manager Grid Control can send SNMP Traps to third-party?

    GC 11.1
    It looks like a simple config, but I've got into a confusion about it.
    I'm trying to figure out the configuration to send SNMP traps to a third party server.
    My scenario is:
    Node A (managed, monitored) ---- GC box------ SNMP box (final destination).
    My understanding is that the traps (notification methods) configured on GC box are generated by the Agent on Node A, then received by the GC and distributed as e-mails.
    What is the config to set the traps from A to reach SNMP box?
    There is the help page from the GC page (confused about interpretation):
    "Add SNMP Trap pageThe Add SNMP Trap page enables you to provide the name of the host (machine) on which the SNMP Master Agent is running and other details so that SNMP traps can be sent through Notification Rules.
    An example is shown below.
    Name HP OpenView Console
    Description Notification method to send trap to HP openview console
    SNMP Trap Host Name litleguy.us.oracle.com
    SNMP Host Port 162
    SNMP Community public
    This SNMP host will receive your SNMP traps.
    Note: A Test Trap button exists for you to test your setup."
    Any suggestions are highly appreciated.
    Thx,

    Please reply with the specific questions around this.
    11.1
    EM can send SNMP traps to specific designated receivers. You create an advanced notification method (of type SNMP Trap) with the appropriate details about the receiver.
    (See Setup->Notification Methods)
    In the notification rules UI, you specify the alerts you are interested in forwarding and select the SNMP trap advanced notification method you created earlier.
    The SNMP receiver should be provided the correct MIB that defines the SNMP trap. There were some bugs with the MIB definition in one of the releases (don't recall which one off hand), so if the traps you are receiving don't match what the receiver expects - please let us know and we can point to the right one.
    regards

  • Experiences with sending SNMP-Traps to 3rd party (Nagios)

    Hello Colleagues,
    i'm working on a project where we would like to monitor our databases additionally sending SNMP-Traps to Nagios.
    At the moment i'm using net-snmp-utils and snmptt. The snmptt-traphandler is running in daemon-mode and passes incoming SNMP-Traps to Nagtrap.
    Now i want to create passive service checks. For example a passive service check for TBS_Usage for database 'exdb' which returns the values from the incoming SNMP-Trap.
    Has anyone experiences by implementing the SNMP Notifications (to Nagios)? Is there an easier way to implement this than using snmptt?
    Does anyone know, how the MIB (snmptt.conf) must be configured for the passive service check?
    I'm looking forward hearing from you soon!
    Best regards,
    Sönke

    Hi Nikhil!
    Basically I am trying to set trap forwarding to a
    a NNM on the network from sunMC 3.5 Update 1.
    I have followed all the directions in sunMC snmp FAQ
    and other threads on this forum but I am not able to
    set the trap destinations.<snip>
    Other thread having same question is
    http://forum.sun.com/thread.jspa?threadID=15625&tstart
    =0Have you reviewed the options in the other thread? (i.e. Halcyon SNMP integration or HP integration packages). Both are off-the-shelf and if you can understand SunMC SNMP infrastructure you certainly wouldn't have trouble configuring either. If you've looked at both packages, what parts made you decide not to use them? Note: I work for Halcyon.
    Building your own custom integration with direct traps may be difficult: the generic snmp faq doens't have all the info you need to do so (i.e. how to get NNM to go backwards to an Agent to request the details of an event like "Warning /op is 95% full" or "Critical: Power Supply 2 is Offline"). I'm not even sure how I'd go about it, and I've been using SunMC for years :)
    Regards,
    Mike
    ([email protected])

  • Snmp trap versus syslog message

    Hi,
    Most network devices will send snmp traps and syslog messages to a central server.
    For analyzing purpose this server runs software to display the messages or traps.
    My question is, what is the difference between syslog messages and snmp traps?
    What is best practise?
    Thank you very much.
    Hansruedi

    From the very basic level, traps and syslog differ in the encoding.  Syslog messages are typically text messages sent within a UDP packet.  There is a bit of binary encoding to indicate the syslog facility and severity.  SNMP traps have encoded ASN.1 fields (called variable bindings).  These varbinds are not ASCII text like syslog messages.  Instead they are encoded object identifiers that can be translated into object names using MIB definitions.
    More syslog messages exist than SNMP traps because syslog messages do not have as much governance associated with them.  However, we typically recommend that customers enable both as there are some details available in traps that you may not get in syslog messages.  Traps can also be processed in a more programmatic fashion because of the documentation that goes into the MIBs that define them.

  • ISR 3945 - SNMP trap set up to recieve option pings from ASR1006

    I am working on a set up : ISR 3945 - Receiving  option pings from another device (ASR) and sending a snmp trap (say ex: if a link down on a dial-peer ) to snmp server if those option ping fails.
    - Need inputs on SNMP config
    Thanks in advance.

    Hi.
    the easiest way is to get the snmp-server trap source command to work.
    when you say it's not working, do you mean the branches still use the external interface as the source? or that it's sourced properly from vlan1 but somehow doesn't get encrypted?
    what ios version are you running on the branches? maybe this is a bug and newer versions get it to work?
    if you want to through another way than snmp-server trap source, then an ipsec redesign might be needed. As you noticed dmvpn would be the easiest. another solution would be dynamic lan-to-lan from branch to headend with gre tunnels (similar to dmvpn), and then force the route to the management network via GRE, this way the snmp trap source would default to use the tunnel ip address.
    Regards,
    Fadi.

Maybe you are looking for