Tuesday, November 10, 2015

Cannot find function addEventListener in object [object HTMLDocument]

If you get this error, do not worry. The answer is not difficult to understand.
   do not initialize your HtmlUnit WebClient like this: 
      new WebClient();
   instead, initialize it like this: 
      new WebClient(BrowserVersion.FIREFOX_38);
The default "browser" that the HtmlUnit WebClient gives you does not have some of the basic JavaScript functions available to call such as "addEventListener".

See also: HtmlUnit issue tracker non-issue 1615.

Wednesday, September 23, 2015

None of the wicked shall understand, but those who are wise shall understand.  -- Daniel 12;10

Wednesday, September 02, 2015

Friday, July 03, 2015

Author: (no author) not defined in ../authors.txt file

If you are using svn2git and get this error:
Author: (no author) not defined in ../authors.txt file
Do not worry. Simply add this line to your authors.txt file:
(no author) = no_author <no_author@yourdomain.com>
Hope that helps.

Wednesday, January 28, 2015

When compiling mojarra ... javac: invalid target release: 1.8

If you go to compile mojarra, the JSF reference implementation, and get this error: javac: invalid target release: 1.8 Do not worry.

It just means that you are trying to compile mojarra with an older version of java. Mojarra requires java 1.8 at least as of this blog post. Just change your JAVA_HOME to point to a java 1.8+ version and try again.

Hope that helps.