2 Replies Latest reply on Jun 6, 2013 6:46 AM by udayatom

    Failed to manually import resource

    udayatom

      Hello friends,

       

                     I got the error while i import the resource  "Failed to manually import resource"  and I mentioned  in my plugin descriptor supportManualAdd="true". Any other specification is required??? Help me friends.

       

       

       

       

      java.lang.RuntimeException:[1370434224492] org.rhq.core.clientapi.agent.PluginContainerException:Failed to add resource with type [Services] and parent resource id [39043] -> org.rhq.core.util.exception.WrappedRemotingException:Discovery component invocation failed. -> org.rhq.core.util.exception.WrappedRemotingException:null
      --- STACK TRACE FOLLOWS ---
      [1370434224492] org.rhq.core.clientapi.agent.PluginContainerException:Failed to add resource with type [Services] and parent resource id [39043] -> org.rhq.core.util.exception.WrappedRemotingException:Discovery component invocation failed. -> org.rhq.core.util.exception.WrappedRemotingException:null
         at Unknown.RuntimeException_0(Unknown Source)
         at Unknown.instantiate_32(Unknown Source)
         at Unknown.$instantiate_0(Unknown Source)
         at Unknown.$instantiate(Unknown Source)
         at Unknown.$readObject(Unknown Source)
         at Unknown.$onResponseReceived(Unknown Source)
         at Unknown.onResponseReceived_6(Unknown Source)
         at Unknown.$fireOnResponseReceived(Unknown Source)
         at Unknown.onReadyStateChange_0(Unknown Source)
         at Unknown.this$static.onreadystatechange<(Unknown Source)
         at Unknown.apply(Unknown Source)
         at Unknown.entry0(Unknown Source)
         at Unknown.anonymous(Unknown Source)
         at Unknown.anonymous(Unknown Source)

       

       

       

      Regards,

       

      Udaya

        • 1. Re: Failed to manually import resource
          jayshaughnessy

          The supportManualAdd="true" Allows you to try to perform a manual import.  And it seems you were able to try to perfom a manual import of the type, so I think that is working.  It does not mean that your import will succeed.  That is dependent on the supporting plugin code being correct, as well as the values specified for the to-be-added resource.

           

          You may want to check your agent log for more details on why it failed.

          1 of 1 people found this helpful
          • 2. Re: Failed to manually import resource
            udayatom

            Thanks jay, I understand.

             

            I have two doubts

             

            one

            ===

            In my case the parent resource component had holding variable string parent_variable1=""; then the parent_variable1 value initialize in the start ( ) of the parent resource component. It is working. But there is another discovery component class, this is the child of the above class. when i retreiving the value of the parent_variable_1 from parent resource component, It returns the null value. How to access the parent resource components's present value.

             

             

            two
            ===

            How to retrieve the value from the parent resource component's plugin configuration to the child discovery resource component.

             

            I tried to retrieved the parent resource plugin configuration values in the child discovery component ,i used like this

             

             

            ResourceContext<ParentResourceComponent> context=null;

            Configruraton configuration=context.getPluginConfiguration();

             

             

            var_one=config.getSimple("value1").getStringValue();

            var_two=config.getSimple("value2").getStringValue();

            var_three=config.getSimple("value3").getStringValue();

             

                           but here it throws the null pointer exception in configuration

             

                     give me the solution.

             

             

            Regards,

             

            Udaya