It would help if you would show the code

Von meinem iPad gesendet

> Am 23.01.2019 um 17:45 schrieb prabhakar gurram <[email protected]>:
> 
> Yes I tried to debug that. I am able to print object before passing after 
> passing it shows as null
> 
>> On Wed, 23 Jan 2019, 22:09 Ullrich Hafner <[email protected] wrote:
>> If you get a NPE then you did not pass the taskListener correctly. Did you 
>> try to debug your problem? There is no documentation that can help you 
>> here...
>> 
>>> Am 23.01.2019 um 15:13 schrieb prabhakar gurram 
>>> <[email protected]>:
>>> 
>>> Hi All,
>>> 
>>> I are doing plugin logging work currently in JAVA. We are receiving task 
>>> listener object from perform method but same object not able to pass to 
>>> other package classes which will be imported through POM dependencies.
>>> 
>>> Example:
>>> 
>>> I have a plugin code like  below.
>>> 
>>> Class A{
>>> 
>>> public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath filePath, 
>>> @Nonnull Launcher launcher, @Nonnull TaskListener taskListener) throws 
>>> InterruptedException, IOException {
>>>     
>>> 
>>> 
>>> Now taskListener object will work in current class A object and prints 
>>> output.
>>> 
>>> But when import code from xyz.jar and pass the taskListener to xyz.jar 
>>> Class B then it gives null pointer exception.
>>> 
>>> My aim is to print the xyz.jar logs in console output.
>>> 
>>> Could anyone please help me achieving this? Are there any documentation or 
>>> exiting code will be helpful to me.
>>> 
>>> Thank you,
>>> Prabhakar.
>>> 
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Jenkins Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-dev/b0ae045c-3ece-4405-8efe-c719cf6ebeb8%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-dev/E7F26C52-4E33-4194-9211-8AC3BCF2B26F%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CAH-gsScG%2BLEjUk4MHcY5AV67qNpsH%2BEUKaxNgc-TZdia7Txwfg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/DE4A1E6B-48C2-46D3-888B-E37ADB55270C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to