Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8276927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:31:59+00:00 2026-06-08T08:31:59+00:00

Scenario – Jena API Play framework 2 Database server – fuseki Database – TDB

  • 0

Scenario –

  1. Jena API
  2. Play framework 2
  3. Database server – fuseki
  4. Database – TDB

Problem – I have insert query in module, when I fill information in HTML form I am getting error like [NullPointerException: null] error points at where I am closing my datasource which is at the bottom of method ds.close(); interesting thing is that when I commented //ds.close(); error shifts to the UpdateAction.parseExecute(query1, graph); and because of this I am not able to see filled form information.

Most interesting thing is that when I am writing select * where {?a ?b ?n} on fuseki database server I can see inserted data. Means data is getting stored.

Am I supposed to do any changes in conf/application.conf file in play framework?, guys your help will be appreciated.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:32:01+00:00Added an answer on June 8, 2026 at 8:32 am

    Generally speaking, if you want to debug a NullPointerException you need to look at the stack trace to see where the error is occurring. Based on what you’ve told us so far, if commenting out ds.close() moves the NPE somewhere else in your code, then the value of variable ds must be null.

    If you can’t tell just from looking at the code why ds has the wrong value, run in a debugger and single-step through that method. Or, even better, write some JUnit tests to check that the contract you have for each object in your system is correct.

    But in answer to your direct question, no: changing conf/applicaton.conf is highly unlikely to solve your NPE.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I have configured SQOOP on my PC. But I am facing some problem
Scenario: I have imported the data from SQl Server to HDFS. The data stored
Scenario: I have got a client, php script and a MySQL database. I am
Scenario. I have a library shelf, library, user, application tables in the database. One
Scenario: I have a MySQL database of people and all their various features as
Scenario first :- I'm using Entity Framework to do some queries, to build my
Scenario: Every page on the website will have a menu bar at the top
Scenario 1: If I have a Great Grandpa ancestor (let's name him A); And
Scenario: WAMP server, InnoDB Table, auto-increment Unique ID field [ INT(10) ], 100+ concurrent
Scenario: Most smartphones have a high resolution camera that generates photos that may range

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.