Skip to Content

Service is null @WebServiceRef : Null Pointer Exception

Hi Guys,

I am using @WebServiceRef in my EJB WebModule,

@WebServiceRef (name="DataBrowserOB") DataBrowserService service;


When it is invoked from the same EJB it gets Executed, But when it is triggered from another EJB the "service" is null, Service is not getting Instantiated.

Could anyone let me know is there any other way we could Instantiate?


Thanks,

Nagishetty

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 18, 2016 at 06:42 AM

    Hi,

    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
    public String businessMethodFromOtherEJB(Strig someFancyInput){
        //TODO implement; call webServiceRef injected service
        return null
    }
    
    

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 18, 2016 at 07:44 AM

    Have you verified that your service is up and running. Maybe check if can finde and execute it in the WSNavigator.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.