Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jena's ARQ context initialization issue #243

Closed
jindrichmynarz opened this issue Nov 13, 2023 · 2 comments
Closed

Jena's ARQ context initialization issue #243

jindrichmynarz opened this issue Nov 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jindrichmynarz
Copy link
Contributor

When using this JDBC driver for querying an Amazon Neptune's SPARQL endpoint, the following error is shown:

java.sql.SQLException: Execute query has failed, error: java.lang.NullPointerException: Cannot invoke "shadow.org.apache.jena.sparql.util.Context.isTrue(shadow.org.apache.jena.sparql.util.Symbol)" because the return value of "shadow.org.apache.jena.query.ARQ.getContext()" is null.

I'm using the latest version of the driver (v3.0.2) with the all classifier.

@jindrichmynarz jindrichmynarz added the bug Something isn't working label Nov 13, 2023
@Cole-Greer
Copy link
Contributor

Hi @jindrichmynarz,
I'm looking into this issue, would you be able to provide a bit more context? A full stack trace would be helpful if available. Also could you provide the full connection string being used here (with redactions for the Neptune endpoint and other sensitive info)? Additionally what is the Neptune engine version in use? Is IAM auth enabled? How are you connecting to Neptune? Is the JDBC running from within the VPC or is it connecting through some other means such as an SSH tunnel?
Thanks.

@jindrichmynarz
Copy link
Contributor Author

The stack trace preceding the quoted error comes from our application. We use the Neptune engine version 1.2.1.0 with IAM authentication. We use JDBC URL of this format: jdbc:neptune:sparql://https://${HOST};port=${PORT};authScheme=IAMSigV4;serviceRegion=us-east-1;queryEndpoint=sparql;logLevel=trace. We connect to Neptune from the same VPC.

Cole-Greer added a commit that referenced this issue Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants