org.xml.sax.SAXException: Parsing Error : The element type "event-script" must be terminated by the matching end-tag "</event-script>". You're missing the closing </event-script> tag. ________________________________ From: opennms-discuss-bounces@... [mailto:opennms-discuss-bounces@...] On Behalf Of Bruno Vieira Sent: Thursday, November 08, 2007 6:48 AM To: General OpenNMS Discussion Subject: Re: [opennms-discuss] Categories on discovery Hi Will. Thank you for the input. I've been trying to do what you said, to use the scriptd-configuration.xml and add some logic for the discovered nodes but without success. Bellow you can see my scriptd-configuration.xml : <?xml version="1.0"?> <scriptd-configuration> <engine language="beanshell" className="bsh.util.BeanShellBSFEngine" extensions="bsh"/> <start-script language="beanshell"> import org.opennms.protocols.snmp.SnmpPduTrap; import java.net.InetAddress; import java.net.UnknownHostException ; log = bsf.lookupBean("log"); snmpTrapHelper = new org.opennms.netmgt.scriptd.helper.SnmpTrapHelper(); </start-script> <stop-script language="beanshell"> snmpTrapHelper.stop(); log.debug("executing a stop script"); </stop-script> <event-script language="beanshell"> event = bsf.lookupBean("event"); if ((event.uei.equals("uei.opennms.org/nodes/nodeAdded")) { log.debug("MYDEBUG - Event nodeAdded."); } </scriptd-configuration> I think that this file is correct but I always get the following error: Starting OpenNMS: Started OpenNMS, but it stopped running: check output.log output.log: Executing command: /opt/opennms/bin/runjava -r -- -Dopennms.home=/opt/opennms -Xmx512m -jar /opt/opennms/lib/opennms_bootstrap.jar start Caused by: An error occurred while attempting to start the "OpenNMS:Name=Scriptd" service (class org.opennms.netmgt.scriptd.jmx.Scriptd). S hutting down and exiting. javax.management.RuntimeMBeanException : RuntimeException thrown in operation init at com.sun.jmx.mbeanserver.StandardMetaDataImpl.wrapRuntimeException(Standa rdMetaDataImpl.java:994) at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke( StandardMetaDataImpl.java:430) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea nServerInterceptor.java :815)

sourceforge.net | 4 months ago
  1. 0

    OpenNMS / Mailing Lists

    sourceforge.net | 4 months ago
    org.xml.sax.SAXException: Parsing Error : The element type "event-script" must be terminated by the matching end-tag "</event-script>". You're missing the closing </event-script> tag. ________________________________ From: opennms-discuss-bounces@... [mailto:opennms-discuss-bounces@...] On Behalf Of Bruno Vieira Sent: Thursday, November 08, 2007 6:48 AM To: General OpenNMS Discussion Subject: Re: [opennms-discuss] Categories on discovery Hi Will. Thank you for the input. I've been trying to do what you said, to use the scriptd-configuration.xml and add some logic for the discovered nodes but without success. Bellow you can see my scriptd-configuration.xml : <?xml version="1.0"?> <scriptd-configuration> <engine language="beanshell" className="bsh.util.BeanShellBSFEngine" extensions="bsh"/> <start-script language="beanshell"> import org.opennms.protocols.snmp.SnmpPduTrap; import java.net.InetAddress; import java.net.UnknownHostException ; log = bsf.lookupBean("log"); snmpTrapHelper = new org.opennms.netmgt.scriptd.helper.SnmpTrapHelper(); </start-script> <stop-script language="beanshell"> snmpTrapHelper.stop(); log.debug("executing a stop script"); </stop-script> <event-script language="beanshell"> event = bsf.lookupBean("event"); if ((event.uei.equals("uei.opennms.org/nodes/nodeAdded")) { log.debug("MYDEBUG - Event nodeAdded."); } </scriptd-configuration> I think that this file is correct but I always get the following error: Starting OpenNMS: Started OpenNMS, but it stopped running: check output.log output.log: Executing command: /opt/opennms/bin/runjava -r -- -Dopennms.home=/opt/opennms -Xmx512m -jar /opt/opennms/lib/opennms_bootstrap.jar start Caused by: An error occurred while attempting to start the "OpenNMS:Name=Scriptd" service (class org.opennms.netmgt.scriptd.jmx.Scriptd). S hutting down and exiting. javax.management.RuntimeMBeanException : RuntimeException thrown in operation init at com.sun.jmx.mbeanserver.StandardMetaDataImpl.wrapRuntimeException(Standa rdMetaDataImpl.java:994) at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke( StandardMetaDataImpl.java:430) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea nServerInterceptor.java :815)
  2. 0

    OpenNMS / Mailing Lists

    sourceforge.net | 4 months ago
    org.xml.sax.SAXException: Parsing Error : The element type "event-script" must be terminated by the matching end-tag "</event-script>". You're missing the closing </event-script> tag. ________________________________ From: opennms-discuss-bounces@... [mailto:opennms-discuss-bounces@...] On Behalf Of Bruno Vieira Sent: Thursday, November 08, 2007 6:48 AM To: General OpenNMS Discussion Subject: Re: [opennms-discuss] Categories on discovery Hi Will. Thank you for the input. I've been trying to do what you said, to use the scriptd-configuration.xml and add some logic for the discovered nodes but without success. Bellow you can see my scriptd-configuration.xml : <?xml version=3D"1.0"?> <scriptd-configuration> <engine language=3D"beanshell" className=3D"bsh.util.BeanShellBSFEngine" extensions=3D"bsh"/> <start-script language=3D"beanshell"> import org.opennms.protocols.snmp.SnmpPduTrap; import java.net.InetAddress; import java.net.UnknownHostException ; log =3D bsf.lookupBean("log"); snmpTrapHelper =3D new org.opennms.netmgt.scriptd.helper.SnmpTrapHelper(); </start-script> <stop-script language=3D"beanshell">=20 snmpTrapHelper.stop(); log.debug("executing a stop script"); </stop-script> <event-script language=3D"beanshell"> event =3D bsf.lookupBean("event"); if ((event.uei.equals("uei.opennms.org/nodes/nodeAdded")) { log.debug("MYDEBUG - Event nodeAdded.");=20 } </scriptd-configuration> I think that this file is correct but I always get the following error: Starting OpenNMS: Started OpenNMS, but it stopped running: check output.log output.log: Executing command: /opt/opennms/bin/runjava -r -- -Dopennms.home=3D/opt/opennms -Xmx512m -jar /opt/opennms/lib/opennms_bootstrap.jar start=20 =20 Caused by: An error occurred while attempting to start the "OpenNMS:Name=3DScriptd" service (class org.opennms.netmgt.scriptd.jmx.Scriptd). S hutting down and exiting. javax.management.RuntimeMBeanException : RuntimeException thrown in operation init at com.sun.jmx.mbeanserver.StandardMetaDataImpl.wrapRuntimeException(Standa rdMetaDataImpl.java:994) at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke( StandardMetaDataImpl.java:430) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea nServerInterceptor.java :815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
  3. 0

    ColdFusion call to webservice gives org.xml.sax.SAXException

    Stack Overflow | 8 years ago | John Adams
    org.xml.sax.SAXException: Fatal Error: URI=null Line=11: The element type "META" must be terminated by the matching end-tag "&lt;/META&gt;".
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 5.78::e-adept-document-type-unknown s8

    hivmr.com | 6 months ago
    org.xml.sax.SAXException: Fatal E rror: URI=http://localhost/WSBpdc/HelloWorld.asmx Line=75: The element type "p" must be terminated by the matching end-tag "/p".
  6. 0

    WSDL2JAVA Problem

    Oracle Community | 1 decade ago | 843833
    org.xml.sax.SAXException: Fatal E rror: URI=http://localhost/WSBpdc/HelloWorld.asmx Line=75: The element type "p" must be terminated by the matching end-tag "</p>".

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xml.sax.SAXException

      Parsing Error : The element type "event-script" must be terminated by the matching end-tag "</event-script>". You're missing the closing </event-script> tag. ________________________________ From: opennms-discuss-bounces@... [mailto:opennms-discuss-bounces@...] On Behalf Of Bruno Vieira Sent: Thursday, November 08, 2007 6:48 AM To: General OpenNMS Discussion Subject: Re: [opennms-discuss] Categories on discovery Hi Will. Thank you for the input. I've been trying to do what you said, to use the scriptd-configuration.xml and add some logic for the discovered nodes but without success. Bellow you can see my scriptd-configuration.xml : <?xml version="1.0"?> <scriptd-configuration> <engine language="beanshell" className="bsh.util.BeanShellBSFEngine" extensions="bsh"/> <start-script language="beanshell"> import org.opennms.protocols.snmp.SnmpPduTrap; import java.net.InetAddress; import java.net.UnknownHostException ; log = bsf.lookupBean("log"); snmpTrapHelper = new org.opennms.netmgt.scriptd.helper.SnmpTrapHelper(); </start-script> <stop-script language="beanshell"> snmpTrapHelper.stop(); log.debug("executing a stop script"); </stop-script> <event-script language="beanshell"> event = bsf.lookupBean("event"); if ((event.uei.equals("uei.opennms.org/nodes/nodeAdded")) { log.debug("MYDEBUG - Event nodeAdded."); } </scriptd-configuration> I think that this file is correct but I always get the following error: Starting OpenNMS: Started OpenNMS, but it stopped running: check output.log output.log: Executing command: /opt/opennms/bin/runjava -r -- -Dopennms.home=/opt/opennms -Xmx512m -jar /opt/opennms/lib/opennms_bootstrap.jar start Caused by: An error occurred while attempting to start the "OpenNMS:Name=Scriptd" service (class org.opennms.netmgt.scriptd.jmx.Scriptd). S hutting down and exiting. javax.management.RuntimeMBeanException : RuntimeException thrown in operation init at com.sun.jmx.mbeanserver.StandardMetaDataImpl.wrapRuntimeException(Standa rdMetaDataImpl.java:994) at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke( StandardMetaDataImpl.java:430) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea nServerInterceptor.java :815)

      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke()
    2. Java RT
      JmxMBeanServer.invoke
      1. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
      1 frame
    3. org.opennms.netmgt
      Invoker.invoke
      1. org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:313)
      1 frame