Categories
Software & Development

axis2 codegen wizard (Eclipse) – InvocationTargetException

There is a known problem with InvocationTargetException when you press Finish button in Eclipse’s Axis code generation wizard. I don’t know why there is no newer version available, however the steps are pretty straightforward. There is also a ready to deploy zip file available here. However, you have to register to download it.

I had trouble following the steps, because there is no backport-utils package anymore in axis2-bin/lib directory. Also, I tried to register the jar in plugin.xml over and over again just to find out that stupid PSPad didn’t save the changes, because there are windows7 permission and stuff.

By the way, funny thing is that the directory name is 1.3.0 even for version  1.4.1..

So, if you are as lazy as me, here get the fixed Axis2_Codegen_Wizard_1.4.1. Yes, it is a direct link, no more stupid forums where you need registration and wait 7 days until you are allowed to do anything.

 

DOWNLOAD

 

NOTE: please note there is a version 1.6.2 of the plugin that works just fine!

Categories
Hints

JWChat and Google Talk setup

Recently, I needed to access gtalk from behind a firewall that blocked access to sites like gmail, google talk, facebook etc.

So, I decided to prepare a workaround – jabber web client with its own http bind. Roughly said, it’s tunneling via http (port 80) to allowed host. The stupid firewall sees only http connection to unknown server (my own server somewhere else). The request is forwarded to whatever jabber you want – google talk in my case.

The web client is JWCHat (see the demo here), the http binding is done using JabberHTTPBind. I am not going to explain the installation steps here, you can find plenty of blog posts about that.

 

To connect to google talk you have to do it like this:

1. Fill in basic setup:

Backend: Open Relay
Server: gmail.com (or your domain if you have your own domain)

2. Click “Show more options” and fill the following:

Connect Port: 5222
Connect Host: talk.google.com

 

The reason is quite simple – the jabber domain is gmail.com. The jabber id is constructed as

username@server/resource

Usually, the jabber server and real server to connect to is the same (e.g. jabber.org), in case of google talk it’s not the same (which makes sense since you can have as many domains as you want).

Categories
Software & Development

ITunes/Quicktime is not a valid installation package for the product itunes/quicktime

If you have trouble to install newer version of iTunes or QuickTime you’ve probably searched for the solution and found that you should use Microsoft Cleanup to uninstall the old version (uninstallation of old version causes the failure). The tool is, however, not available anymore. You have to use Microsoft FixIt, then choose the method to “select the solution by yourself” and after a certain time (the application tries to find problem) click on Uninstall and choose iTunes and/or QuickTime.

FixIt: http://support.microsoft.com/kb/2438651

Alternative method is to open Registry editor and remove all folders containing keys with itunes.msi and quicktime.msi.

Categories
Software & Development

Unable to set new owner on filename. Access is denied

Are you unable to remove file or directory on your NTFS drive? Have you tried takeown, cacls, icacls and windows 2003 resource kit tools without any success, because the owner cannot be determined?

Then simply try to run checkdisk on that drive, somehow it’ll fix the problem even it keeps telling you no problems were found and fixed 🙂

chkdsk [your_drive]: /f

e.g.:

chkdsk d: /f