Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstalling the cache fails every time #11

Closed
helderm opened this issue Aug 4, 2012 · 1 comment
Closed

Reinstalling the cache fails every time #11

helderm opened this issue Aug 4, 2012 · 1 comment

Comments

@helderm
Copy link

helderm commented Aug 4, 2012

Use Case: User wants to clear all data stored in the cache.

To achieve that, I called HttpResponceCache.delete(). Everything worked as expected, but I lost the http cache in the process. After trying to install() again, I received the following exception:

08-04 17:59:37.270: E/AndroidRuntime(328): java.lang.RuntimeException: An error occured while executing doInBackground()
...
08-04 17:59:37.270: E/AndroidRuntime(328): Caused by: java.lang.Error: Attempt to set factory more than once.
08-04 17:59:37.270: E/AndroidRuntime(328): at java.net.URL.setURLStreamHandlerFactory(URL.java:139)
08-04 17:59:37.270: E/AndroidRuntime(328): at com.integralblue.httpresponsecache.HttpResponseCache.install(HttpResponseCache.java:186)

@candrews
Copy link
Owner

candrews commented Aug 7, 2012

Fixed, see c6f8eef

@candrews candrews closed this as completed Aug 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants