5 Replies Latest reply on Mar 13, 2013 3:31 AM by Arun Raj

    Getting ERROR While writting my Plugin

    Arun Raj Expert

      hi Developers,

       

          I created a simple plugin as a sample. But It is not working to me. It putting errors in my server's command prompt. I cant fix it out. Please help me to create this plugin. Here I have attached my entire code too. If possible, Please edit it and share with me. I want to familiar with plugin writing. I have created four different times. That is why, I have got four error messages. Please push me up in writing plugin. Those errors are following

       

      20,320 ERROR [AgentPluginDescriptorUtil] Validation fatal error while parsing [rhq-HardCode-plugin-4.5.1.jar:META-INF/rhq-plugin.xml] at line 21, column 34: cvc-enumeration-valid: Value 'numeric' is not facet-valid with respect to enumeration '[measurement, trait, calltime]'. It must be a value from the enumeration.
      20,321 WARN  [PluginDeploymentScanner] Does not look like [F:\rhq-server-4.5.1\plugins\rhq-HardCode-plugin-4.5.1.jar] is a plugin jar -(Cause: java.lang.NullPointerException:no xml descriptor found in jar). It will be ignored. Please fix that file or remove it.
      20,754 ERROR [AgentPluginDescriptorUtil] Validation fatal error while parsing [rhq-HardCode-plugin-4.5.1.jar:META-INF/rhq-plugin.xml] at line 21, column 34: cvc-enumeration-valid: Value 'numeric' is not facet-valid with respect to enumeration '[measurement, trait, calltime]'. It must be a value from the enumeration.
      20,755 WARN  [PluginDeploymentScanner] Does not look like [F:\rhq-server-4.5.1\plugins\rhq-HardCode-plugin-4.5.1.jar] is a plugin jar -(Cause: java.lang.NullPointerException:no xml descriptor found in jar). It will be ignored. Please fix that file or remove it.
      25,079 INFO  [RtFilter] -- Filter openFile: Writing response-time log for webapp with context root 'coregui' to 'F:\rhq-server-4.5.1\logs\rt\coregui_rt.log' (hashCode=566968833)...
      44,562 INFO  [[/coregui]] org.rhq.enterprise.gui.coregui.CoreGUI PluginFileUploadServlet: file was uploaded: rhq-HardCode-plugin-4.5.1.jar
      44,594 INFO  [PluginFileUploadServlet] A new plugin [rhq-HardCode-plugin-4.5.1.jar] has been uploaded to [C:\Users\admin\AppData\Local\Temp\rhq-HardCode-plugin-4.5.1.jar3461868262202419247.tmp]
      44,620 INFO  [PluginFileUploadServlet] A new plugin has been deployed [F:\rhq-server-4.5.1\plugins\rhq-HardCode-plugin-4.5.1.jar]. A scan is required now in order to register it.
      48,048 ERROR [AgentPluginDescriptorUtil] Validation fatal error while parsing [rhq-HardCode-plugin-4.5.1.jar:META-INF/rhq-plugin.xml] at line 21, column 34: cvc-enumeration-valid: Value 'numeric' is not facet-valid with respect to enumeration '[measurement, trait, calltime]'. It must be a value from the enumeration.
      48,049 WARN  [PluginDeploymentScanner] Does not look like [F:\rhq-server-4.5.1\plugins\rhq-HardCode-plugin-4.5.1.jar] is a plugin jar -(Cause: java.lang.NullPointerException:no xml descriptor found in jar). It will be ignored. Please fix that file or remove it.
      55,817 ERROR [AgentPluginDescriptorUtil] Validation fatal error while parsing [rhq-HardCode-plugin-4.5.1.jar:META-INF/rhq-plugin.xml] at line 21, column 34: cvc-enumeration-valid: Value 'numeric' is not facet-valid with respect to enumeration '[measurement, trait, calltime]'. It must be a value from the enumeration.
      55,818 WARN  [PluginDeploymentScanner] Does not look like [F:\rhq-server-4.5.1\plugins\rhq-HardCode-plugin-4.5.1.jar] is a plugin jar -(Cause: java.lang.NullPointerException:no xml descriptor found in jar). It will be ignored. Please fix that file or remove it.
      21,224 ERROR [AgentPluginDescriptorUtil] Validation fatal error while parsing [rhq-HardCode-plugin-4.5.1.jar:META-INF/rhq-plugin.xml] at line 21, column 34: cvc-enumeration-valid: Value 'numeric' is not facet-valid with respect to enumeration '[measurement, trait, calltime]'. It must be a value from the enumeration.
      21,225 WARN  [PluginDeploymentScanner] Does not look like [F:\rhq-server-4.5.1\plugins\rhq-HardCode-plugin-4.5.1.jar] is a plugin jar -(Cause: java.lang.NullPointerException:no xml descriptor found in jar). It will be ignored. Please fix that file or remove it.
      

       

       

      Thanks in advanace

       

      Regards,

      ArunRaj