Not implemented by SQLite JDBC driver

I have successfully created a ColdFusion data source for a SQLite database using sqlitejdbc-v056.jar . Then I added this request to my .cfm page

 <cfquery name="qry" datasource="Spiceworks"> SELECT id AS Ticket_Number, summary AS Summary, status AS Status, created_at AS Created_At, assigned_to AS Assigned_to FROM tickets WHERE status = 'open' AND assigned_to IS NULL ORDER BY Created_At DESC </cfquery> 

When I view my .cfm page in IE and Firefox, I get an error:

not implemented by SQLite JDBC driver

The error occurred in C: /Inetpub/wwwroot/intra/SmartTV/UnassignedTickets/Tickets.cfm: line 204

202:
203:
204:
205: SELECTION
206: id,

SQL SELECT id, summary, status, created_at, assign_to FROM tickets WHERE status = 'open' AND assign_to IS NULL ORDER BY created_at DESC DATASOURCE Resources Spiceworks:

 Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. 

Stack trace

 at cfTickets2ecfm1617356019.runPage(C:/Inetpub/wwwroot/intra/SmartTV/UnassignedTickets/Tickets.cfm:204) at cfTickets2ecfm1617356019.runPage(C:/Inetpub/wwwroot/intra/SmartTV/UnassignedTickets/Tickets.cfm:204) java.sql.SQLException: not implemented by SQLite JDBC driver at org.sqlite.jdbc3.JDBC3Statement.unused(JDBC3Statement.java:397) at org.sqlite.jdbc3.JDBC3Statement.execute(JDBC3Statement.java:414) at coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:359) at coldfusion.sql.Executive.executeQuery(Executive.java:1442) at coldfusion.sql.Executive.executeQuery(Executive.java:1201) at coldfusion.sql.Executive.executeQuery(Executive.java:1131) at coldfusion.sql.SqlImpl.execute(SqlImpl.java:406) at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:1056) at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:685) at cfTickets2ecfm1617356019.runPage(C:\Inetpub\wwwroot\intra\SmartTV\UnassignedTickets\Tickets.cfm:204) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:428) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)java.sql.SQLException: not implemented by SQLite JDBC driver at org.sqlite.jdbc3.JDBC3Statement.unused(JDBC3Statement.java:397) at org.sqlite.jdbc3.JDBC3Statement.execute(JDBC3Statement.java:414) at coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:359) at coldfusion.sql.Executive.executeQuery(Executive.java:1442) at coldfusion.sql.Executive.executeQuery(Executive.java:1201) at coldfusion.sql.Executive.executeQuery(Executive.java:1131) at coldfusion.sql.SqlImpl.execute(SqlImpl.java:406) at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:1056) at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:685) at cfTickets2ecfm1617356019.runPage(C:\Inetpub\wwwroot\intra\SmartTV\UnassignedTickets\Tickets.cfm:204) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:428) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) 

Update:

I have a .jar file under C:\ColdFusion10\cfusion\lib\ and C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib . In the sources of ColdFusion:

  • CF Data Source Name: Spiceworks
  • JDBC URL: jdbc: sqlite: \ spiceworks \ C $ \ Program Files \ Spiceworks \ db \ spiceworks_prod.db
  • Driver Class: org.sqlite.JDBC
  • Driver Name: sqlite-jdbc-3.7.15-M1.jar
  • Username: <user>
  • Password: <password>

As suggested in the comments, I tried simpler statements:

  • SELECT * FROM tickets
  • SELECT id, summary, status, assigned_to FROM tickets

... and different driver versions

  • sqllite-jdbc4-3.8.2-SNAPSHOT.jar
  • SQLite-3.7.15-JDBC-M1.jar

but still got the same error.

+6
source share
1 answer

I think the original error means exactly what it says. The data source is called by a method that is not used by the driver that you are using. In particular, the execute(..) org.sqlite.jdbc3.JDBC3Statement . The source of this driver indicates that the method does nothing. It just gives you the error message you see.

However, I think you have another version of the SQLite java driver in your class path. sqlitejdbc-v056.jar that you posted cannot cause this error because it does not even contain the JDBC3Statement class. It is likely that CF is loading another different version of the driver (that is, in your class path).

In my tests, sqlitejdbc-v056.jar worked fine with CF10. Before adding this jar again, make sure that you remove all versions of the SQLLite banner from your CF class path and restart CF. Otherwise, CF will load them automatically anyway, and you will continue to receive this error message.

To make sure that you have deleted all banks, after restarting, try creating an instance of the main class. If the line below throws a "Class not found" error, you know that you have successfully deleted everything. Once you do this, go on to install sqlitejdbc-v056.jar .

 <cfset obj = createObject("java", "org.sqlite.JDBC")> If you see this text, you still have a version of the jar in your class path. 

Here is what worked for me:

  • Created an empty C:/temp/sqlite/products.db database C:/temp/sqlite/products.db
  • Uploaded by sqlitejdbc-v056.jar to C:\ColdFusion10\cfusion\wwwroot\WEB-INF\lib
  • Reloaded CF
  • Created by "Other" DSN
  • DSN Settings
    • DS Name: SQLite
    • JDBC URL: jdbc: sqlite: C: /temp/sqlite/products.db
    • Driver Class: org.sqlite.JDBC
+3
source

Source: https://habr.com/ru/post/970577/


All Articles