Saturday, September 06, 2014

Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

If you get this error, do not worry:
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
This just means that your ssl certs are not correct for the java version you have installed. In my case I was also getting the following error:
$ ls -l /etc/ssl/certs/java/cacerts ls: cannot access /etc/ssl/certs/java/cacerts: No such file or directory
So this comman fixed my issue:
scp -pr root@a_different_box_with_working_certs:/etc/ssl/certs/java/cacerts /etc/ssl/certs/java/.
Hope that helps you too.

This was found using the following version of java: $ java -version openjdk version "1.8.0_20" OpenJDK Runtime Environment (build 1.8.0_20-b23) OpenJDK 64-Bit Server VM (build 25.20-b22, mixed mode)

Friday, January 31, 2014

Element is not currently visible and so may not be interacted with

This page was somewhat helpful, but did not mention the "transform" style needing to be checked. Then I found this fellow using C# who mentioned the transform value. When I put the two together I came up with this solution:
((JavascriptExecutor)driver).executeScript(
   "arguments[0].style.transform = 'none';",
   myFavoriteElement
);
After setting transform = 'none', myFavoriteElement.sendKeys() did not fail with the infamous error:
Element is not currently visible and so may not be interacted with(..)
So I guess we should add transform != 'none' to the list as follows:
  • visibility != hidden
  • display != none (is also checked against every parent element)
  • opacity != 0 (in rc2 this is no longer checked for clicking an element)
  • height and width are both > 0
  • for an input, the attribute type != hidden
  • transform != 'none'
This issue was found using selenium.version = 2.35.0

NOTE: myFavoriteElement was an input type=file generated by the PrimeFaces fileUpload tag. PrimeFaces 4.0 looks like it introduced the transform. Also, when I checked to see what the transform value was before setting it to none, it logged: myFavoriteElement.getCssValue("transform") = matrix(4, 0, 0, 4, -300, 0).

Hope that helps.

Saturday, August 17, 2013

Sunday, March 10, 2013

Loan's Beautiful Thoughts


Click to enlarge

* Feeding children, and taking them out for fun is easy. But teaching children to know and to follow in righteousness is hard.
* Cho con ăn ngon thì dể, cho con đi chơi thật thú vị cũng dể. Nhưng dạy con biết và làm theo dúng phải thì khó.

And from Billy Graham:
* Pleasures are the things that appeal to our flesh and to our lust. But joy is something else. Joy runs deep.
* Vui thích là điều xuất phát trong xác thịt và tình dục. Nhưng vui mừng thì khác hẵn. Vui mừng thật sâu đậm.

You can find more inspiration from Loan's musings and some of her favorite quotes here in English, and here in Vietnamese.

In Him.

Friday, March 08, 2013

Gnome3 Terminal does not execute my .bash_profile

If you have ever had this issue where changes to your .bash_profile do not take effect the next time you launch the gnome-terminal.  Well, do not worry.  Just open the gnome-terminal and go to Edit -> Profile Preferences _> Title and Command (tab), and you will see this:

Click to enlarge

Make sure that the "Run commnad as a login shell" is checked.  Then close, and close the terminal, and relaunch gnome-terminal, and you should see that your .bash_profile has been executed.

Hope that helps.