git: error pushing via HTTP (return code 22)

If you get a error: Cannot access URL http://github.com/xxxxxxx/, return code 22 when trying to push changes to a git repository via HTTP. This is probably because you are using an HTTP proxy to access the repo and that proxy doesn’t support WebDAV HTTP methods (especially PROPFIND). So when git issues a PROPFIND the http proxy answers back with a 500 Internal Server Error or something like that. It seems that PROPFIND is absolutely required so if you can use git:// directly or use a HTTP proxy which supports PROPFIND. Then I think the only option left is try use CONNECT in the proxy.

September 23, 2009

CGLib, NetBeans Modules and class loaders

My first try at using CGLib from a Netbeans RCP ended up in a ClassNotFoundException for net.sf.cglib.proxy.Factory I had two modules, MainModule and cglib and MainModule was depending on cglib. And the following snippet was raising the ClassNotFoundException. Enhancer enhancer = new Enhancer(); enhancer.setSuperclass(Graph.class); enhancer.setCallback(NoOp.INSTANCE); Graph g = (Graph) enhancer.create(new Class[]{FrameListener.class,InterpreterAbstraction.class},new Object[]{fl,ia}) ; As I later found out from Enhancer documentation and DevFaqClassLoaders it seems that Enhancer it taking the System class loader instead of taking the Module classloader. I explicitly set the classloader used by the Enhancer via the setClassLoader method and now it seems to work. ...

August 6, 2009

Subversion error: 503 Service unavailable

If you faced the following subversion message in windows: svn: PROPFIND request failed on '/repos/demosystemeic' svn: PROPFIND of '/repos/demosystemeic': 503 Service Unavailable (http://x.x.x.x) Probably the problem is caused because you are proxying your request via a proxy that doesn’t support HTTP methods like PROPFIND, etc. If you don’t really need the proxy to access the repository edit the file c:\Documents and Settings_username_\Application Data\Subversion\servers (Note: Subversion directory is hidden) and comment out the following items ...

March 7, 2007