not implemented by SQLite JDBC driver -
i have created coldfusion datasource sqlite database using sqlitejdbc-v056.jar
. added query .cfm page
<cfquery name="qry" datasource="spiceworks"> select id ticket_number, summary summary, status status, created_at created_at, assigned_to assigned_to tickets status = 'open' , assigned_to null order created_at desc </cfquery>
when browse .cfm page in ie , firefox, error:
not implemented sqlite jdbc driver
the error occurred in c:/inetpub/wwwroot/intra/smarttv/unassignedtickets/tickets.cfm: line 204
202 :
203 :
204 :
205 : select
206 : id,sql select id, summary, status, created_at, assigned_to tickets status = 'open' , assigned_to null order created_at desc datasource spiceworks resources:
check coldfusion documentation verify using correct syntax. search knowledge base find solution problem.
stack trace
at cftickets2ecfm1617356019.runpage(c:/inetpub/wwwroot/intra/smarttv/unassignedtickets/tickets.cfm:204) @ cftickets2ecfm1617356019.runpage(c:/inetpub/wwwroot/intra/smarttv/unassignedtickets/tickets.cfm:204) java.sql.sqlexception: not implemented sqlite jdbc driver @ org.sqlite.jdbc3.jdbc3statement.unused(jdbc3statement.java:397) @ org.sqlite.jdbc3.jdbc3statement.execute(jdbc3statement.java:414) @ coldfusion.server.j2ee.sql.jrunstatement.execute(jrunstatement.java:359) @ coldfusion.sql.executive.executequery(executive.java:1442) @ coldfusion.sql.executive.executequery(executive.java:1201) @ coldfusion.sql.executive.executequery(executive.java:1131) @ coldfusion.sql.sqlimpl.execute(sqlimpl.java:406) @ coldfusion.tagext.sql.querytag.executequery(querytag.java:1056) @ coldfusion.tagext.sql.querytag.doendtag(querytag.java:685) @ cftickets2ecfm1617356019.runpage(c:\inetpub\wwwroot\intra\smarttv\unassignedtickets\tickets.cfm:204) @ coldfusion.runtime.cfjsppage.invoke(cfjsppage.java:244) @ coldfusion.tagext.lang.includetag.dostarttag(includetag.java:444) @ coldfusion.filter.cfincludefilter.invoke(cfincludefilter.java:65) @ coldfusion.filter.ipfilter.invoke(ipfilter.java:64) @ coldfusion.filter.applicationfilter.invoke(applicationfilter.java:428) @ coldfusion.filter.requestmonitorfilter.invoke(requestmonitorfilter.java:48) @ coldfusion.filter.monitoringfilter.invoke(monitoringfilter.java:40) @ coldfusion.filter.pathfilter.invoke(pathfilter.java:112) @ coldfusion.filter.exceptionfilter.invoke(exceptionfilter.java:94) @ coldfusion.filter.clientscopepersistencefilter.invoke(clientscopepersistencefilter.java:28) @ coldfusion.filter.browserfilter.invoke(browserfilter.java:38) @ coldfusion.filter.nocachefilter.invoke(nocachefilter.java:46) @ coldfusion.filter.globalsfilter.invoke(globalsfilter.java:38) @ coldfusion.filter.datasourcefilter.invoke(datasourcefilter.java:22) @ coldfusion.filter.cachingfilter.invoke(cachingfilter.java:62) @ coldfusion.cfmservlet.service(cfmservlet.java:219) @ coldfusion.bootstrap.bootstrapservlet.service(bootstrapservlet.java:89) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ coldfusion.monitor.event.monitoringservletfilter.dofilter(monitoringservletfilter.java:42) @ coldfusion.bootstrap.bootstrapfilter.dofilter(bootstrapfilter.java:46)java.sql.sqlexception: not implemented sqlite jdbc driver @ org.sqlite.jdbc3.jdbc3statement.unused(jdbc3statement.java:397) @ org.sqlite.jdbc3.jdbc3statement.execute(jdbc3statement.java:414) @ coldfusion.server.j2ee.sql.jrunstatement.execute(jrunstatement.java:359) @ coldfusion.sql.executive.executequery(executive.java:1442) @ coldfusion.sql.executive.executequery(executive.java:1201) @ coldfusion.sql.executive.executequery(executive.java:1131) @ coldfusion.sql.sqlimpl.execute(sqlimpl.java:406) @ coldfusion.tagext.sql.querytag.executequery(querytag.java:1056) @ coldfusion.tagext.sql.querytag.doendtag(querytag.java:685) @ cftickets2ecfm1617356019.runpage(c:\inetpub\wwwroot\intra\smarttv\unassignedtickets\tickets.cfm:204) @ coldfusion.runtime.cfjsppage.invoke(cfjsppage.java:244) @ coldfusion.tagext.lang.includetag.dostarttag(includetag.java:444) @ coldfusion.filter.cfincludefilter.invoke(cfincludefilter.java:65) @ coldfusion.filter.ipfilter.invoke(ipfilter.java:64) @ coldfusion.filter.applicationfilter.invoke(applicationfilter.java:428) @ coldfusion.filter.requestmonitorfilter.invoke(requestmonitorfilter.java:48) @ coldfusion.filter.monitoringfilter.invoke(monitoringfilter.java:40) @ coldfusion.filter.pathfilter.invoke(pathfilter.java:112) @ coldfusion.filter.exceptionfilter.invoke(exceptionfilter.java:94) @ coldfusion.filter.clientscopepersistencefilter.invoke(clientscopepersistencefilter.java:28) @ coldfusion.filter.browserfilter.invoke(browserfilter.java:38) @ coldfusion.filter.nocachefilter.invoke(nocachefilter.java:46) @ coldfusion.filter.globalsfilter.invoke(globalsfilter.java:38) @ coldfusion.filter.datasourcefilter.invoke(datasourcefilter.java:22) @ coldfusion.filter.cachingfilter.invoke(cachingfilter.java:62) @ coldfusion.cfmservlet.service(cfmservlet.java:219) @ coldfusion.bootstrap.bootstrapservlet.service(bootstrapservlet.java:89) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ coldfusion.monitor.event.monitoringservletfilter.dofilter(monitoringservletfilter.java:42) @ coldfusion.bootstrap.bootstrapfilter.dofilter(bootstrapfilter.java:46)
update:
i have .jar file under c:\coldfusion10\cfusion\lib\
, c:\coldfusion10\cfusion\wwwroot\web-inf\lib
. in coldfusion datasources:
- 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
- user name:
<user>
- password:
<password>
as suggested in comments, tried simpler statements:
select * tickets
select id, summary, status, assigned_to tickets
... , different driver versions
- sqllite-jdbc4-3.8.2-snapshot.jar
- sqlite-jdbc-3.7.15-m1.jar
but still got same error.
i think original error means says. datasource invoked method not implemented driver using. execute(..)
method of org.sqlite.jdbc3.jdbc3statement
. the source driver shows method nothing. throws error message seeing.
however think have version of sqlite driver jar in class path. sqlitejdbc-v056.jar
posted not cause error because not contain jdbc3statement
class. happening cf loading other version of driver (that in class path) instead.
in tests, sqlitejdbc-v056.jar
worked fine cf10. before adding jar again, make sure have removed all versions of sqllite jar cf class path, , restart cf. otherwise, cf still load them automatically , continue error message.
to ensure have removed all of jars, after restarting, try , create instance of main class. if line below throws "class not found" error, know have removed them all. once have done that, go ahead reinstall sqlitejdbc-v056.jar
.
<cfset obj = createobject("java", "org.sqlite.jdbc")> if see text, still have version of jar in class path.
here worked me:
- created empty database
c:/temp/sqlite/products.db
- downloaded
sqlitejdbc-v056.jar
c:\coldfusion10\cfusion\wwwroot\web-inf\lib
- restarted cf
- created "other" dsn
- dsn settings
- ds name: sqlite
- jdbc url: jdbc:sqlite:c:/temp/sqlite/products.db
- driver class: org.sqlite.jdbc
Comments
Post a Comment