Forum Discussion
Jim_Morgan_4481
Aug 27, 2010Nimbostratus
Web Accelerator not responding to iControl invalidation commands
We have an eCommerce site and need to be able to invalidate the cache programatically under certain conditions (e.g. a product goes out of stock and we don't want the product page to show a Buy Now bu...
Jim_Morgan_4481
Sep 07, 2010Nimbostratus
Well, I found out I was indeed crashing the Invalidation Server process. After restarting Tomcat, I'm able to invalidate the cache using both soapUI and Perl, but not with the iControl assembly java library.
I'm using the org.apache.commons.codec.binary.Base64 library to do the encoding. I'm reading the invalidation message into a StringBuffer from a file. Here are the pertinent lines of code:
m_interfaces.initialize(F5address, 443, UserName, Password);
m_interfaces.getWebAcceleratorProxy().esi_invalidate_content(Base64.encodeBase64(sb.toString().trim().getBytes()));
The compiles just fine and as far as I can tell, should work fine. However, everytime I run this I get the Null Pointer exception and need to restart Tomcat.
I'm also outputting the encoded message as a string. If I take this and paste it into soapUI, it works fine. The content gets invalidated and there are no exceptions.
At this point, I'm wondering if anybody is doing this using Java and the iControl assembly code?
Thanks in advance
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects