[ 
https://issues.apache.org/jira/browse/HTTPASYNC-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13688129#comment-13688129
 ] 

Oleg Kalnichevski commented on HTTPASYNC-46:
--------------------------------------------

James,

I am getting an NPE with your HttpClient patch

---
-------------------------------------------------------------------------------
Test set: org.apache.http.impl.client.cache.TestCachingExec
-------------------------------------------------------------------------------
Tests run: 59, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.232 sec <<< 
FAILURE!
testReturns200ForOptionsFollowedByGetIfAuthorizationHeaderAndSharedCache(org.apache.http.impl.client.cache.TestCachingExec)
  Time elapsed: 0.008 sec  <<< ERROR!
java.lang.NullPointerException
        at 
org.apache.http.impl.client.cache.CacheValidityPolicy.contentLengthHeaderMatchesActualLength(CacheValidityPolicy.java:217)
        at 
org.apache.http.impl.client.cache.CachedResponseSuitabilityChecker.canCachedResponseBeUsed(CachedResponseSuitabilityChecker.java:152)
        at 
org.apache.http.impl.client.cache.CachingExec.handleCacheHit(CachingExec.java:276)
        at 
org.apache.http.impl.client.cache.CachingExec.execute(CachingExec.java:262)
        at 
org.apache.http.impl.client.cache.TestCachingExecChain.testReturns200ForOptionsFollowedByGetIfAuthorizationHeaderAndSharedCache(TestCachingExecChain.java:820)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
---

Oleg
                
> httpasyncclient-cache Has No Test Cases
> ---------------------------------------
>
>                 Key: HTTPASYNC-46
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-46
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.0-beta4
>            Reporter: James Leigh
>            Priority: Minor
>              Labels: patch
>             Fix For: 4.0-beta5
>
>         Attachments: HTTPASYNC-46-httpasyncclient.patch, 
> HTTPASYNC-46-httpclient.patch
>
>
> Many of the httpclient-cache are applicable to httpasyncclient-cache, but use 
> a different client interface. However, the httpasyncclient interface could be 
> called from an httpclient adapter to allow the test suite to be used for both.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to