trustAnchors parameter must be non-empty

2,395 views
Skip to first unread message

Kris Miller

unread,
Jun 25, 2018, 11:24:02 PM6/25/18
to OpenRefine
Hi-
This is my first post. I am fetching a url - census data - and in my newly created column I get this error "java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty". I'm using Ubuntu 18.04. How do I fix the error?

Thad Guidry

unread,
Jun 25, 2018, 11:26:13 PM6/25/18
to openr...@googlegroups.com
Hi Kris,

What version of OpenRefine did you download and use ?
Can you give us the url that you are fetching with, if you don't mind ?  It will help us troubleshoot.

-Thad

On Mon, Jun 25, 2018 at 10:24 PM Kris Miller <krisr...@gmail.com> wrote:
Hi-
This is my first post. I am fetching a url - census data - and in my newly created column I get this error "java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty". I'm using Ubuntu 18.04. How do I fix the error?

--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Antonin Delpeuch (lists)

unread,
Jun 26, 2018, 5:32:09 AM6/26/18
to openr...@googlegroups.com
Hi Chris,

That's an SSL error that is probably due to the fact that your Java
installation is too old. You should be able to fix the issue by
upgrading your Java JRE.

Antonin
> --
> You received this message because you are subscribed to the Google
> Groups "OpenRefine" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openrefine+...@googlegroups.com
> <mailto:openrefine+...@googlegroups.com>.

Kris Miller

unread,
Jun 26, 2018, 6:04:37 PM6/26/18
to OpenRefine
Hi-
I tried the same fetch on version 2.8 and 3.0. 

I also purged java and the certificates and reinstalled them. I'm using the default java for Ubuntu
java --version yields:
openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
 


This is a request to the Census API for 2016 ACS data. The request returns a JSON object when the url is put in Chrome. 

Hope this gives everyone more insight. Thanks
Kris

Antonin Delpeuch (lists)

unread,
Jun 27, 2018, 4:07:07 AM6/27/18
to openr...@googlegroups.com
Hi,

Have you tried copying the cacerts file from the Oracle distribution?
See this answer:
https://askubuntu.com/a/991636

Antonin
> it, send an email to openrefine+...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenRefine" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openrefine+...@googlegroups.com
> <mailto:openrefine+...@googlegroups.com>.

Kris Miller

unread,
Jun 27, 2018, 5:20:18 AM6/27/18
to OpenRefine
I found a fix. I removed default jre and jdk and the openjdk-11 and only installed openjdk 8.  

Eduardo Lanius

unread,
Mar 10, 2022, 7:58:01 AM3/10/22
to OpenRefine
Thank Kris 

Updating java solved our problem too.
Reply all
Reply to author
Forward
0 new messages