-
Notifications
You must be signed in to change notification settings - Fork 29
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
Issue loading sqlite file #30
Comments
Thanks for the report. Could you help us by posting the code snippet that is causing this exception? |
Hi Stephencurran, Please find the git repo for the code and image as attached, looking for your suggestions Here i connected postgres & sqlite(sqlite is file size is big, missed in the project directory) Along with that i have created another thread(#33). without spring boot, openlr working fine but(please refer #33) Thanks |
Thanks for providing more information and the screenshot. The stack-trace suggests that the map loader is not able to establish a connection to the database. It would be great if you could check that the file
You can find out the schema of the database by opening a shell, changing into the directory containing the database file and executing
|
Hi, Thanks for your kind response. Please find the attached screen shot(file not able to attached, because of size). Here i have 2 things to tell. same file i can able to do with normal java project. I just want try to implement spring boot, And also i have serious issue with Decode Method, return response is very slow. Please look my Thanks |
I have used openlr to load sqlite file to generate openlr.map.MapDatabase using Spring boot application, I can able to convert if i used normal java project. But if i use with spring boot i am facing the below issue,
Can pleas help, below is the stack trace.
openlr.map.loader.OpenLRMapLoaderException: Cannot load SQLite database
at openlr.map.sqlite.loader.SQLiteMapLoader.load(SQLiteMapLoader.java:73)
at com.stee.trafficdata.service.impl.TrafficDataServiceImpl.loadSqLiteData(TrafficDataServiceImpl.java:72)
at com.stee.trafficdata.starter.TrafficDataStarter.run(TrafficDataStarter.java:20)
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:775)
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:765)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:322)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at com.stee.trafficdata.TrafficdataApplication.main(TrafficdataApplication.java:12)
Caused by: java.lang.IllegalStateException: Unable to open database connection.
at openlr.map.sqlite.impl.MapDatabaseImpl.(MapDatabaseImpl.java:179)
at openlr.map.sqlite.loader.SQLiteMapLoader.load(SQLiteMapLoader.java:71)
... 8 more
Caused by: java.sql.SQLException: Cannot change read-only flag after establishing a connection. Use SQLiteConfig#setReadOnly and SQLiteConfig.createConnection().
at org.sqlite.jdbc3.JDBC3Connection.setReadOnly(JDBC3Connection.java:112)
at openlr.map.sqlite.impl.MapDatabaseImpl.getDatabaseConnection(MapDatabaseImpl.java:343)
at openlr.map.sqlite.impl.MapDatabaseImpl.(MapDatabaseImpl.java:175)
... 9 more
The text was updated successfully, but these errors were encountered: