com.google.inject.util.Objects.notNull() has been replaced by
com.google.inject.internal.base.Preconditions.checkNotNull() but now
the tests are failing with:
[testng] FAILED: conversationScopingOfInstances
[testng] com.google.inject.ProvisionException: Guice provision
errors:
[testng]
[testng] 1) Error at [unknown source]:
[testng] Error in custom provider, java.lang.NullPointerException
[testng] while locating
com.wideplay.warp.servlet.conversation.Conversation
Test$TestConvObject
[testng]
[testng] 1 error[s]
[testng] at com.google.inject.InjectorImpl
$8.get(InjectorImpl.java:1015)
[testng] at
com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:
1042)
[testng] at
com.wideplay.warp.servlet.conversation.ConversationTest.conve
rsationScopingOfInstances(ConversationTest.java:61)
[testng] Caused by: java.lang.NullPointerException
[testng] at com.google.inject.InjectorImpl
$LateBoundConstructor.get(Injec
torImpl.java:478)
[testng] at com.google.inject.ProviderToInternalFactoryAdapter
$1.call(Pro
viderToInternalFactoryAdapter.java:43)
[testng] at
com.google.inject.InjectorImpl.callInContext(InjectorImpl.jav
a:1065)
[testng] at
com.google.inject.ProviderToInternalFactoryAdapter.get(Provid
erToInternalFactoryAdapter.java:40)
[testng] at
com.wideplay.warp.servlet.conversation.ConversationManagerImp
l.getAndPutIfAbsent(ConversationManagerImpl.java:63)
[testng] at com.wideplay.warp.servlet.Servlets
$5$1.get(Servlets.java:205)
[testng] at
com.google.inject.InternalFactoryToProviderAdapter.get(Intern
alFactoryToProviderAdapter.java:47)
[testng] at com.google.inject.InjectorImpl
$8$1.call(InjectorImpl.java:100
4)
[testng] at
com.google.inject.InjectorImpl.callInContext(InjectorImpl.jav
a:1057)
[testng] at com.google.inject.InjectorImpl
$8.get(InjectorImpl.java:998)
[testng] ... 23 more
[testng] ... Removed 21 stack frames
[testng] FAILED: continueConvAcrossRequests
[testng] com.google.inject.ProvisionException: Guice provision
errors:
[testng]
[testng] 1) Error at [unknown source]:
[testng] Error in custom provider, java.lang.NullPointerException
[testng] while locating
com.wideplay.warp.servlet.conversation.CookieContin
uationsTest$TestConvObject
[testng]
[testng] 1 error[s]
[testng] at com.google.inject.InjectorImpl
$8.get(InjectorImpl.java:1015)
[testng] at
com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:
1042)
[testng] at
com.wideplay.warp.servlet.conversation.CookieContinuationsTes
t$3.doFilter(CookieContinuationsTest.java:200)
[testng] at
com.wideplay.warp.servlet.FilterChainInvocation.doFilter(Filt
erChainInvocation.java:54)
[testng] at
com.wideplay.warp.servlet.ManagedFilterPipeline.dispatch(Mana
gedFilterPipeline.java:50)
[testng] at
com.wideplay.warp.servlet.WebFilter.doFilter(WebFilter.java:6
4)
[testng] at
com.wideplay.warp.servlet.conversation.CookieContinuationsTes
t.continueConvAcrossRequests(CookieContinuationsTest.java:103)
[testng] Caused by: java.lang.NullPointerException
[testng] at com.google.inject.InjectorImpl
$LateBoundConstructor.get(Injec
torImpl.java:478)
[testng] at com.google.inject.ProviderToInternalFactoryAdapter
$1.call(Pro
viderToInternalFactoryAdapter.java:43)
[testng] at
com.google.inject.InjectorImpl.callInContext(InjectorImpl.jav
a:1065)
[testng] at
com.google.inject.ProviderToInternalFactoryAdapter.get(Provid
erToInternalFactoryAdapter.java:40)
[testng] at
com.wideplay.warp.servlet.conversation.ConversationManagerImp
l.getAndPutIfAbsent(ConversationManagerImpl.java:63)
[testng] at com.wideplay.warp.servlet.Servlets
$5$1.get(Servlets.java:205)
[testng] at
com.google.inject.InternalFactoryToProviderAdapter.get(Intern
alFactoryToProviderAdapter.java:47)
[testng] at com.google.inject.InjectorImpl
$8$1.call(InjectorImpl.java:100
4)
[testng] at
com.google.inject.InjectorImpl.callInContext(InjectorImpl.jav
a:1057)
[testng] at com.google.inject.InjectorImpl
$8.get(InjectorImpl.java:998)
[testng] ... 27 more
[testng] ... Removed 21 stack frames
Taking a look at InjectorImpl.java line 478 I'm not sure why
injectionPoint.getKey().getRawType() throws NPE. I suspect
injectionPoint.getKey() is null but I'm having a hard time debugging
this. Can you please help me figure this out?
Gili