Java.util.concurrent
im trying to run Runnable classes but i still get NullPointerException, i use WebSpheres commonj.workmanager to get executorService instance This is the code im using.
executorService.execute(new Runnable()
{
public void run()
{
System.out.println("Inside run ()method..");
}
});
ANY IDEAS?
0
cduggan
source
to share
2 answers
Are you checking if the value executorService
is null before calling execute()
? If not, it looks like you need to check the WebSphere docs.
+3
Jon Skeet
source
to share
thanks for the answer, its executorService which is null. Im using Spring to inject a property
+1
cduggan
source
to share