Fork me on GitHub
#xtdb
<
2024-04-09
>
peter hull18:04:05

Hi, I wanted to have a quick look at XTDB v2 using the instructions here https://docs.xtdb.com/drivers/java/getting-started.html but got a maven error when I copied those snippets into my pom.xml. The error was "Could not transfer artifact com.xtdb:xtdb-api:pom:2.0.0-SNAPSHOT from/to ossrh-snapshots (https://s01.oss.sonatype.org/content/repositories/snapshots): Received close_notify during handshake"

jarohen19:04:47

Hey @U7KD4HQ1W, thanks for giving it a go 🙂 That sounds like a connection error, potentially?

seancorfield19:04:34

Recent pom and jar artifacts are present there https://s01.oss.sonatype.org/content/repositories/snapshots/com/xtdb/xtdb-api/2.0.0-SNAPSHOT/ so I agree it sounds like a connectivity issue and could be retried? (maybe clean any com/xtdb stuff out of your local ~/.m2/repository to force a refetch?)

peter hull19:04:40

Hi both. There were some com/xtdb entries in my local repository, I deleted and retried maven, it just recreated them. Also yesterday and today I tried in 2 separate locations and on 2 separate computers so it looks like it must be a connection problem. @U04V70XH6 if you put that URL into a web browser does it show anything to you? For me I just get "An error occurred during a connection to http://s01.oss.sonatype.org. PR_END_OF_FILE_ERROR"

seancorfield19:04:43

Works for me (tm):

seancorfield19:04:08

Are you behind a corporate firewall perhaps?

peter hull19:04:09

Currently at home! I am in the UK. Could it be some kind of certificate error? I'm not an expert at that kind of thing

seancorfield19:04:34

Me neither. But those errors do indicate some sort of SSL-related problem. What mvn version are you using and what O/S etc?

peter hull19:04:38

mvn 3.9.1, macos (I also tried on Win 11)

peter hull19:04:19

I see some internet reports of people getting those PR_... errors if their ISP has blocked the site. Maybe it's that. I will investigate.

peter hull19:04:56

Hmm yes I can browse to that site on my phone if I turn wifi off & use mobile data - must be being blocked by my ISP, do you agree?

seancorfield19:04:21

Bizarre... Who is your ISP?

peter hull19:04:56

Alright I added the site to the allowed list at my ISP and now I can browse to that site. Weird though it was also blocked in the other location because I know they use a different provider. Anyway fingers crossed it'll be OK now

1
peter hull20:04:19

Failure... and then success... I also needed to add clojars to the repositories in my pom.xml - maybe @U050V1N74 you could add that to your instructions on the site?

jarohen20:04:55

ah, yep. we're https://github.com/xtdb/xtdb/issues/3161 to remove the dependency on Clojars in the near future but should include the workaround in the docs for now

👍 2
peter hull18:04:47

The POM was just a 'blank' one I generated from mvn archetype:generate

peter hull18:04:01

Any help welcome, thanks!