Wednesday, July 25, 2012

MessagingException: 501 HELO requires domain address

Solution:

 Dump out the response from executing: InetAddress.getLocalHost().getHostName()

 the host name that was returned did not exist in the /etc/hosts file
So I added the unknown hostname into the hosts file and it worked.

Apparently, Java will use the hostname as configured in /etc/sysconfig/network or /etc/sysconfig/systemid

 

Reference:

http://www.oracle.com/technetwork/java/faq-135477.html#helo

Sunday, July 15, 2012

net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods

Using the SSHJ library I encountered the following error:

net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods

It turns out, I need to include the bouncycastle libraries in my class path as well, which can be found here:

http://www.bouncycastle.org/latest_releases.html

You will need the following JARs:





Tuesday, July 3, 2012

Liferay this WAR does not contain a liferay-plugin-package.xml file

 ERROR: Liferay this WAR does not contain a liferay-plugin-package.xml file

This error was very misleading

In this case, the issue ending being that upon deployment a database connection could not be established through the plugin on liferay

Once the database configuration was corrected, the portlet WAR deployed successfully

Monday, July 2, 2012

Postgres not asking for password

Problem


After creating a new user with password in postgres and trying to login using the new user, postgres never asks for a password

 Solution

Modify the pg_hba.conf file and change trust to md5, as follows:

local   all         all                               md5
# IPv4 local connections:
host    all         all         127.0.0.1/32          md5
# IPv6 local connections:
host    all         all         ::1/128               md5