Problems with configuration properties and the java plugin

Hello

I have test the java plugin from the hyperic documents. Autodiscover works very well. Now, I had the problem if I want to change all "configuration properties" I get following error message:
' The configuration has not been set for this resource due to: invalid configuration: error reported by Agent @ 141.73.130.146:2144: java.lang.NullPointerException.
Wait I use properties by default, then I don't get any errors.

What is the problem?

MyAutoDiscoveryServerDetector.java
---------------------------------------------------------------------------------------------------------------------------
SerializableAttribute public class MyAutoDiscoveryServerDetector extends ServerDetector implements

{AutoServerDetector}

public list getServerResources (ConfigResponse platformConfig)

get {PluginException}

Server list = new ArrayList();

Server ServerResource = createServerResource ("My Auto-Discovery Server->" + (x + 1));

ConfigResponse productConfig = new ConfigResponse();

productConfig.setValue ("myTimeout", String.valueOf ((x+1) * 1000));
productConfig.setValue ("myUrl", "http://127.0.0." + (x + 1));
productConfig.setValue ('Description', 'Description - my Auto Discovery Description->' + (x + 1));
productConfig.setValue ("myValue", 10);

server.setProductConfig (productConfig);

Servers.Add (Server);

return of the servers;

}
---------------------------------------------------------------------------------------------------------------------------

HQ - plugin.xml
---------------------------------------------------------------------------------------------------------------------------
<? XML version = "1.0"? >
< package = "com.citytechinc.articles.hyperic.plugin plugin" >

< name of the filter = "domain" value = "My Auto Discovery" / >

< name of the server = "MyAutoDiscoverServer" version = "0.1 c" platforms = "Unix, Win32" >

< plugin type = "autoinventory" class = "MyAutoDiscoveryServerDetector" / >
< plugin type = 'measure' class = "MyAutoDiscoveryServerMeasurementPlugin" / >

< config >

< name of option = 'myUrl '.

Description = "Enter the URL for this resource"

" default = ' http://127.0.0.1 "/>

< name of option = "Description".

Description = "enter a description of this plugin"

default = "default my Auto Discovery Description" / >

< name of option = "myTimeout."

Description = "time-out for something in my plug-in.

default = "0" / >

< name of option = "myValue"

Description = "a metric value.

default = "10" / >


< / config >


< name metric = "availability".
alias = 'availability '.
Template = "System.avail:type = Platform:Availability"
category = "AVAILABILITY".
indicator = 'true '.
collectionType = "dynamic".
units = "percentage" / >

< name metric = 'value '.
alias = 'value '.
model = "" MyPlugin:Type = value: value ' "
category = 'USE '.
indicator = 'true '.
collectionType = "dynamic".
units = "none" / >

< / Server >

< / plugin >
---------------------------------------------------------------------------------------------------------------------------

UM,.

This must be due to an incompatibility between the definitions of plugin in the server (and/or of the database) and the agent.

First of all, always check the server log, errors that appear it should lead to the cause.

The plugin xml initialized ok on the server, or any error appear?

You go to Administration-> default trace and see your plugin (Server Type: MyAutoDiscoverServer) and everything is there?
If this isn't the case, errors occurred when starting the server, check the log.

Did you start to shave - created the plugin, added to both server and agent, autodiscovery, the platform/server added in Hyperic - or you already had the server/platform added in Hyperic and who has made some changes in the xml plugin that may be in conflict with what is already in the Hyperic database?

Generally the pitfalls that come from these errors.

Been there, done that.

Tags: VMware

Similar Questions

  • I have problems with my application of the java language.

    I have problems with my application of the java language. It will be open only for about one second, and it won't let me write all programs, it looks like the command prompt when opening. what the * is underway and what can I do to solve this problem.

    Hey Kevin,

    The description of the problem seems a little unclear and I wish I had a better understanding before you start working on it.

    I would really appreciate if you could answer the following questions:

    1. is the specific question of the application of the Java language?

    2. did you of recent changes made to your computer before the show?

    3. you receive an error code or message?

    Please provide us with more information on the specific question to help you to fix as soon as possible.

    If the problem is specific to the Java application, then I suggest you to contact Java support from the links below:

    http://www.Java.com/en/download/support.jsp

    Java Help Center:

    http://www.Java.com/en/download/help/

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • Anyone having problems with Windows 7 and the HP LaserJet P2035n?

    It seems, after a few months of service, there are several problems with this printer and Windows 7 only.  We have several offices that use this printer and almost each one has similar problems.  It will printer randomly disappear, not being able to print anything at random times of the day, to the spooler crashing every two minutes or more.  There is no problem at all with Windows XP or Vista, only 7.  Reinsalling the printer driver takes care of the problem for a few days, but the questions up all over again.

    Hello

    The Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the Technet forums below:

    TechNet forums

  • Problem with PSE - 2 and the new 1.5 TB drive

    Hi all. First of all, I use my PSE - 2 recorded for several years without problem. AMD Athlon 7750 2.7 Ghz, 2.0 G memory bicoeur. WD 1 .5TB primary and WD 500 GB secondary drive. Win XP SP3. I recently had a disk fails and installed a new freshly formatted WD 1.5 TB as my boot drive. New installation of Windows XP and updates. When I install the elements, it now seems to install fine. The problem comes when I try to run the first time that I get "could not initialize Photoshop Elements because scratch disks are full '. Then elements shut, not allowing no not me nothing to do with configuring internal program. I tried unistalling and installing on the 500 GB drive, but still not the same error. I increased my page file memory does anyone know of a problem with the installation of the elements on a large drive or can anyone offer a possible solution to what I see? Thanks in advance for suggestions...


    JohnR.

    I think Barbara meant photoshop 7, which was a little before pse2.

    If you hold them Alt + right Ctrl keys after starting pse2, a dialog box

    should appear allowing you to choose the drive working (keep holding

    keys until the dialog box is displayed)

    If you have a recovery partition on your hard drive, try this to choose

    the drive working, then exit pse2. Then restart pse2 and

    Preferences > Plug-ins and Scratch Disks choose your hard drive regularly to the scratch disk.

    Newer versions of the EPS, the newer less than 3 or 4 don't seem to have this problem.

    MTSTUNER

  • Problems with external monitor and the Satellite U200 - 10 d

    I have a Satellite U200 - 10 d running Vista Business Edition. When I attach an external display screen flickers (horizontal lines on the screen)... It's worse when you move the mouse on the screen. The monitor on the laptop is fine I just have problems with the external display.

    The screen that I is a model VG1930WM viewsonic (widescreen) here is the specs of res for this screen...

    PC VGA up to 1440 x 900 non-interlaced
    Analog analog/digital RGB (75 Ohm, 0.7 Vc - c) / DVI - D

    Anyone have any ideas? I checked the graphics driver for vista and this is the latest version...

    HM, it's a nice solution, I have a friend with a similar problem.

    We will try your suggestion, snipe and perhaps give feedback if it worked for us.

    Welcome them

  • Problem with Windows Explorer and the recorded files

    When I save files from the internet and then open the folder with Windows Explorer in the backed up files, I find that WE consider not save them on my hard drive "change" more. I know it's strange, but I tend to retain files roughly in the order that I saved them, rather than by the name of the file or anything else. So now to manually change the files in a certain way, then save them to get them organized as I want. Of course, this can become very painful and long if I have a lot of files to organize this way. My question is: How can I get Windows to consider saving a file on my HDD as change? I use Firefox and updated recently, which may be the cause of the problem.

    Hi Flingle,

    Were you able to save and access files correctly before you update Firefox?

    You can create a new folder & try to download the file inside of Internet Explorer & check if the problem persists.

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problem with VMWare Tools and the virtual drive

    Hello

    I installed the test version of "Workstation" and installed a windows 7 x 86 non-virtual DVD drive mapped, which is mounted on D:\.

    Subsequently, I installed all Windowsupdates and after that I tried to install the VMWare Tools.

    But every time I get the message that I should look on the 'virtual' drive on D:\.

    But there is no virtual drive, it is my DVD of the hostsystem.

    Is there a way to mount a virtual drive with tools or install them in another way?

    Thanks in advance

    Taldrit

    Hello

    You can directly install the VMware tool configuration by copying the setting in the machine and manually install the same.

    Try VMware on another machine tool in which you will get the installation... Copies on disk and then move it to your new VM and do a manual configuration.

  • I was wondering if there were other problems with Adobe CC and the last IOS El captain?

    I've recently updated to IOS Yosemite to El Capitan, when I went to launch Premiere Pro for the first time, there were a few very visible differences of how things went, if not, the program has worked very well.

    Thinking that this might just be a problem after installing just El Capitan, I thought that a reboot would clear things up. When I went to restart, I could not go beyond the initial start-up of the grey Apple screen, I ended up having to wipe the drive and reinstall El Capitan, nd, then migrate my data from my backup of TM, what a shot, it took hours to complete.

    Anyone else having similar problems? Anyone know when Adobe get out their CC to CE upgrade?

    I don't know about Apple (I'm on Windows), but I read that Microsoft has a way to restore the previous operating system if an upgrade to Win10 does not work

    I don't want to know about it, because my Win8.1 works with all my current software... I have read Win10 problems with the software that I have now, so I will NOT go to Win10

    If Apple does not offer a way back to the BONE you had before, I think you're stuck with problems until 'the 3rd party vendors' make changes to work with El Capitan

    And, if you do a "time machine" backup before the upgrade, be aware that TM backups do NOT work with Adobe because of... hidden folders software then you would need to uninstall and reinstall

    And just so you know, Microsoft has also problems with Mac 10.11 El Capitan

    -http://www.macrumors.com/2015/10/05/microsoft-office-2016-el-capitan-bugs/

  • Problem with my account and the Group of

    Hey there,

    I have some difficulties to group by my result, and I ask for assistance in this forum.

    My table is really simple, have an Ilie and a COM domain that contain the string with line breaks. I want to count the number of group ResId by COM.

    My data in my table store have look like this:

    RESOURCE TABLE:
    ResId. COM
    1. Server: Walcot15.\nCOD M50
    2. Server: Walcot15.\nCOD M55
    3. Server: Walcot16.\nCOD M55

    I would like to get as a result:

    Count (RESID) | COM
    2. Server: Walcot15.
    1. Server: Walcot16.

    First of all, I did substr in order to keep only the string that contains the server and not the \nCOD...


    SELECT
    County (RES. (' ' ID ') as "ResId".
    substr (RES. CMT, 0, instr (RES. CMT, Chr (10))) as 'COM '.

    Of

    RES THE RESOURCE

    WHERE

    REGEXP_LIKE (RES. ("' CMT ', 'Server', 'i')

    Group (RES. "" THE ID ", RES. CMT)
    order by
    1

    The problem is not count and group by server. Anyone help me, please?

    Kind regards
    Jarod.

    Hello

    When you assign a column alias (for example, COM) in a query, you can't reference this alias in the same query (except in the ORDER BY clause). It is necessary to repeat the expression or affect the aliases in a subquery. Then, you can use the alias in any part of the request of the mother.
    For example:

    WITH     got_com          AS
    (
         SELECT     id
         ,     SUBSTR ( cmt
                     , 1
                     , INSTR (cmt, '\') - 1
                     )     AS com          -- Alias defined
         FROM     resources
         WHERE     INSTR ( UPPER (cmt)
                    , 'SERVER'
                    )     > 0
    )
    SELECT       COUNT (id)     AS count_resid
    ,       com                         -- Alias referenced
    FROM       got_com
    GROUP BY  com                         -- Alias referenced
    ORDER BY  com                         -- Alias referenced
    ;
    

    Output:

    COUNT_RESID COM
    ----------- ------------------------------
              2 Server : Walcot15.
              1 Server : Walcot16.
    

    If the idea is to have a production line for evry value distinct from com, the GROUP BY clause should not contain anything except com

    You will notice that I used SUBSTR and INSTR, above, in the places where you can also use regular expressions. This is because regular expressions tend to be much slower. If the speed is not a problem, and you prefer to use REGEXP_SUBSTR or REGEXP_LIKE, then it is fine to use.

  • Help with Essbase 9 and the Java API

    Hi, I am trying to connect to Essbase to a Java desktop app and I'm unable to do so. I need to know if I'm in principle do the right things and if I have the good environment set up.

    We have a server with Essbase version 9.3.1. We normally use essbase through the Excel add-in, and I already wrote it Excel applications that can use both the add-in and the Essbase API in VB. Now, I need to connect to Essbase but out of Excel and using the Java API. I have no idea what is APS don't my Essbase administrator.

    My request has the following (adapted from a post on this forum)-
    Public Shared Sub main (String [] args) {}
    String s_userName = 'user ';
    String s_password = "password";
    String s_olapSvrName = "ustca111";
    String s_provider = "http://localhost:13080/aps/JAPI ';
    try {}
    ESS IEssbase = IEssbase.Home.create (IEssbase.JAPI_VERSION);
    DOM IEssDomain = ess.signOn (s_userName s_password, s_provider, null, false);
    IEssOlapServer olapSvr = (s_olapSvrName) dom.getOlapServer;
    olapSvr.connect ();
    System.out.println ("connection to the server Analyic '" + olapSvr.getName () + "' has been a success.");
    olapSvr.disconnect ();
    } catch (EssException exp) {}
    System.out.println (exp.getMessage ());
    } }

    I'm running my app on my computer, not on the Essbase server, and the user name that I use is the same one I use (as a user of Essbase) through the Essbase Addin in Excel, not an admin login.

    When I run the application, I get:
    "Cannot connect to the Server.Make provider ensure that access code settings are correct and the server of the provider is running."

    Please can you confirm:
    (1) do I need an admin login for my client application to connect to the Essbase server or can I use a dial-up connection in normal play, like the one I use in Excel?
    (2) is the same provider regardless of the computer, i.e. "http://localhost:13080/aps/JAPI '; How can I know what this could be? Where can I get this information?
    (3) how can I make sure that the server is running the server needed 'provider', it's just a service that appears on the server services.msc? What should I ask the Essbase administrator for him to tell me what I need?

    Thank you very much.

    Leo

    Leo,

    You have APS and Shared Services running on your server? It would be the first question to answer. If you put in the url (http://localhost:13080/aps/JAPI, in your program) in a browser, you get a generic APS screen, or you get an error "page is not available. Unless you connect to APS that is running on the same computer that is running your Java application, the section 'localhost' should be the name of your APS Server.

    (1) for this Java program, you connect just to read only access that ID is OK
    (2) the supplier would be the same for every customer. The provider is the URL of your APS Server. Unless you run in embedded mode, you must APS to connect with the Essbase server. In embedded mode, you talk with the Essbase server, see [this thread | http://forums.oracle.com/forums/thread.jspa?messageID=3314485?].

    (3) APS - Analytic Provider Services, I'm not sure what it would show on a Windows Server. I suppose it would be something on Hyperion System 9 Analytic Provider Services. If you have installed APS, I would try the embedded road because it's the only way you will get to work.

    Published by: rjgideon on June 2, 2010 16:18

  • Windows 7 starts problems with black screen and the cursor because of power failure

    I'm on a Windows 7 64-bit Home Premium OS. Start-up problems arose after the power failure (accidentally unplugged the charger, the battery was not in place) during a video call in Skype. Accessories attached to the laptop at the time were a Logitech Webcam, a dongle Bluetooth, microphone and headphones.

    When starting my laptop Asus N81VP, he'll go as far as the 'Starting Windows' logo, then I meet a black screen with a mobile cursor. I don't then right click, CTRL + ALT + DELETE.

    I tried the things:

    Start Up Repair = "cannot automatically repair."

    System Restore = no available restore points

    Windows Memory Diagnostic = at 100%, no screen of detected problems, then black with mobile cursor

    Networking Mode Safe Mode/Safe = black screen with cursor mobile

    Activate video low resolution (640 x 480) = black screen with cursor mobile

    Good known Configuration = black screen with cursor mobile list

    Start Windows normally = black screen with cursor mobile

    Please help me. I've had this laptop for less than a year, and it would break my heart to have to re - format.

    You seem to have exhausted most of the options available in such cases, except two:
    D ' log in under a different account.
    -To restore your registry files manually. See below for more details.

    On your heart that could get broken: have you considered using the imaging facility that is integrated with Windows 7? You can find it in the control panel / backup and restore. This is somewhat marginal in the feature and it can be finicky, but it saved my butt several times.

    You can restore your registry files manually to a previous point through the steps described below. The process is complex and requires some careful typing. Ask a computer-savvy friend to help you if you lack experience in this field. Note that it may reset your password to a previous value.
    1. keep tapping F8 during the first phase of startup.
    2. Select repair in the menu that looks like this:
    http://Windows.Microsoft.com/en-us/Windows-Vista/advanced-startup-options-including-safe-mode
    3 log in as administrator if you are prompted.
    4. Select repair when prompted.
    5. Select the command line in the menu that looks like this:
    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7
    6. identify the correct drive letter for your Windows installation. It could be one drive other than c, but it will not X:. You do this by typing commands
    DIR C:\Win*
    Dir D:\Win*
    dir E:\Win*
    until you find the Windows folder.
    I'll call this "Q:" drive
    7 type these commands:
    CD /d Q:\windows\System32\config
    xcopy *. * Q:\MyRegBack\
    CD RegBack
    dir
    8. review the dates of the software, system, and SAM files. The files created before or after that is your problem?
    9. If they were made before the problem appeared, you can then type these commands:
    copy software / y...
    /y copy system...
    /y copy Sam...
    (the two points are part of each order)
    10. restart normally. If things don't work then you can go back by copying files from the original register of Q:\MyRegBack to Q:\Windows\System32\config.

  • Problem with Active Directory and the NAC

    Hello.

    Please I need help.

    I have my server with the "Active Directory SSO" began, but when a user tries to connect to the network with its credentials in Active Directory, the PC agent say that 'Invalid username and password.

    My server is tuned by the 8910 port.

    I conectivity with CBS and active directory.

    kpass command runs successfully.

    Thks.

    Jorge,

    If the service is running, then you must put emphasis on the communication client/AD and see where the break occurs.

    Can you ensure that the unauthenticated role, you have all the required TCP/UDP ports open, and ICMP and IP FRAGMENTS to all your domain controllers?

    HTH,

    Faisal

    --

    If you find this article useful, please note so that others can easily find the answer

  • Oracle Weblogic domain creation problem with Webcenter portal and the content of the products.

    Hello

    I tried to create a new domain weblogic support webcenter portal and content products. However, I got the following error on the progression of 70%:

    --------------------------------------------------------------------------------------------------------------------------

    Preparing...

    Extract the contents of field...

    Creating new domain security information...

    Failed to create in the domain!

    Location of area: C:\Oracle\Middleware\user_projects\domains\base_domain

    Reason: null

    Exception:

    Traceback (innermost last):

    "< Iostream >" file, line 86, in there?

    ImportError: no module named javaos

    --------------------------------------------------------------------------------------------------------------------------

    Server operating system: Windows Server 2012 R2

    FMW Version: 11.1.1.8

    Your help would be greatly appreciated.

    Thank you

    Cyrus

    Hello

    Did you add the name of your operating system (Windows Server 2012) in the javashell.py file?

    After you add the name of your os you must re-create the jython file - modules.jar.

    Use after command to generate the jar again

    jar - cvf jython - module.jar Lib META_INF (records created after extraction of the jar file)

    I have also been facing same problem, solved by above to get around.

    -Prashant

  • Problem with BPM (JDeveloper) and the turtle

    Hello

    I have a strange error when you try to open a project of 11g BPM using JDeveloper. The project is under tortoise svn and whenever I try to open the BPM process, JDev crushes.

    Someone at - it do in this kind of mistake?

    Thank you all for the reply

    Fairlie

    Hi Fairlie,

    In JDeveloper, you can disable Versioning in JDeveloper by clicking on "Versioning" in the main menu-> click on 'Configure'-> uncheck the box.

    Dan

  • Problem with TextArea htmlText and the height/num lines

    I am trying to create a text box showing the code html and auto sizes the height so that there is no scroll bar. I got this works with the .text property, although when using.htmlText, the values returned are broadly. Assuming that 'field' is in the text box, I use the following coding:

    var nlines:int is field.mx_internal::getTextField (.numLines);.

    And then to get the height of each line (assuming that I is the index of the line):

    var lineHeight:int is field.mx_internal::getTextField () .getLineMetrics (i) .height;.

    When you do it with .text, it works fine. The presentation of html in the TextArea, my value "nLigne" (the number of rows in the TextArea) return very high values. It seems as if numlinesrequired returns the amount of lines that the TextArea component would be if she didn't analyze the HTML code.

    What can I do to get the real value of numlinesrequired when you use htmlText? Thank you

    I saw numlinesrequired wrong until after rendering.  We use a callLater to get after.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for