Question

im trying to kick off a Runnable classes run method however i keep getting a NullPointerException, Im using WebSpheres commonj.workmanager to get an instance of executorService.this is the code im using.

executorService.execute(new Runnable()
        {
            public void run()
            {
                System.out.println("Inside run ()method..");
            }
        });

ANY IDEAS?

Was it helpful?

Solution

Are you checking whether executorService is null before calling execute()? If not, it sounds like you need to check the WebSphere docs.

OTHER TIPS

thanks for the reply, its the executorService that is null. Im using Spring to inject the property

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top