TestNg exception and hanging

When I try to run a test in testng launcher I get  the following exception and it hangs:

2011-01-06 14:11:19,604 [ 127410]  ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 9.0.4  Build #IU-95.627
2011-01-06 14:11:19,604 [ 127410]  ERROR - pplication.impl.LaterInvocator - JDK: 1.6.0_17
2011-01-06 14:11:19,604 [ 127410]  ERROR - pplication.impl.LaterInvocator - VM: Java HotSpot(TM) Client VM
2011-01-06 14:11:19,604 [ 127410]  ERROR - pplication.impl.LaterInvocator - Vendor: Apple Inc.
2011-01-06 14:11:19,604 [ 127410]  ERROR - pplication.impl.LaterInvocator - OS: Mac OS X
2011-01-06 14:11:19,604 [ 127410]  ERROR - pplication.impl.LaterInvocator - Last Action: RunClass
2011-01-06 14:11:19,604 [ 127410]  ERROR - pplication.impl.LaterInvocator - Original exception:  
java.lang.NullPointerException
    at org.testng.log4testng.Logger.initialize(Logger.java:322)
    at org.testng.log4testng.Logger.getLogger(Logger.java:147)
    at org.testng.TestNG.<clinit>(TestNG.java:92)
    at com.theoryinpractice.testng.configuration.SearchingForTestsTask.composeTestSuiteFromClasses(SearchingForTestsTask.java:202)
    at com.theoryinpractice.testng.configuration.SearchingForTestsTask.writeTempFile(SearchingForTestsTask.java:142)
    at com.theoryinpractice.testng.configuration.SearchingForTestsTask.onSuccess(SearchingForTestsTask.java:100)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$6$2.run(ProgressManagerImpl.java:368)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
    at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:627)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:508)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:405)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2011-01-06 14:11:43,434 [ 151240]   INFO - s.communicator.p2p.NetworkUtil - Call [http://10.8.124.152:2864/] AddOnlineUser.addOnlineUser([10.8.126.80, gharp, 2864, [traffic-patterns], [AVAILABLE, 0]]) connect timed out
2011-01-06 14:12:05,473 [ 173279]   INFO - s.communicator.p2p.NetworkUtil - Call [http://10.8.126.163:2864/] AddOnlineUser.addOnlineUser([10.8.126.80, gharp, 2864, [traffic-patterns], [AVAILABLE, 0]]) connect timed out

How do I resolve this

Please sign in to leave a comment.