java

Convert Leptonica PIX data to Java BufferedImage

This snippet allows us to convert Leptonica PIX data into Java BufferedImage, in my case the pix->data could be compressed using zlib so I am decompressing before recreating image. We are assuming here that this is bi-tonal image(1 bpp) Sample Usage BufferedImage image = LeptonicaUtil.convert(zlibData, width, height, 1); ImageIO.write(image, "png", new File("C:/temp/test.png")); BufferedImage image = …

Convert Leptonica PIX data to Java BufferedImage Read More »

Encrypting application configuration files – Java AES

There other day I needed to encrypt certain properties in our XML configuration files. But there were few challanges that needed to be addressed Use existing Java installation !!! How will Master Encryption Key be derives and stored !!! First restriction is very important as it limits us to what algorithmic and key sizes can …

Encrypting application configuration files – Java AES Read More »

java.lang.ClassNotFoundException: org.springframework.web.context.support.StandardServletEnvironment

While upgrading from Spring 3.0.5 to 3.1.1.RELEASE I started getting following exception. java.lang.ClassNotFoundException: org.springframework.web.context.support.StandardServletEnvironment at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.springframework.web.servlet.HttpServletBean.<init>(HttpServletBean.java:90) at org.springframework.web.servlet.FrameworkServlet.<init>(FrameworkServlet.java:211) at org.springframework.web.servlet.DispatcherServlet.<init>(DispatcherServlet.java:323) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308)java.lang.ClassNotFoundException: org.springframework.web.context.support.StandardServletEnvironment at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.springframework.web.servlet.HttpServletBean.<init>(HttpServletBean.java:90) at org.springframework.web.servlet.FrameworkServlet.<init>(FrameworkServlet.java:211) at org.springframework.web.servlet.DispatcherServlet.<init>(DispatcherServlet.java:323) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) …

java.lang.ClassNotFoundException: org.springframework.web.context.support.StandardServletEnvironment Read More »

PhantomSQL released

Finally I have released my PhantomSQL project. PhantomSQL is a domain specific language designed for mining content from static and dynamic sources, It closely resembles SQL with features borrowed from other popular dynamic languages. It can be run as a interpreter or ‘server’ mode, it comes with type 4 JDBC driver for ease of integration …

PhantomSQL released Read More »