java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: CATALOG

JIRA | Ken Barber | 2 years ago
  1. 0

    `in` and `extract` queries that include a hyphenated field name fail due to lack of conversion to hyphens. This exists in 2.2.x, and the new code in master shows this symptom, but it doesn't show it for non-sql extracts/projections. {code} root@puppetdb1:~# curl -vv 'http://localhost:8080/v4/nodes?query=\["in","catalog-environment",\["extract","catalog-environment",\["select-nodes",\["=","certname","foo"\]\]\]\]' * About to connect() to localhost port 8080 (#0) * Trying ::1... * connected * Connected to localhost (::1) port 8080 (#0) > GET /v4/nodes?query=["in","catalog-environment",["extract","catalog-environment",["select-nodes",["=","certname","foo"]]]] HTTP/1.1 > User-Agent: curl/7.26.0 > Host: localhost:8080 > Accept: */* > * additional stuff not fine transfer.c:1037: 0 0 * HTTP 1.1 or later with persistent connection, pipelining supported < HTTP/1.1 200 OK < Date: Mon, 10 Nov 2014 18:40:50 GMT < Warning: v4 query API is experimental and may change without warning. For stability use the v3 api. < Content-Type: application/json; charset=utf-8 < Content-Length: 0 < Server: Jetty(9.1.z-SNAPSHOT) < * Connection #0 to host localhost left intact * Closing connection #0 root@puppetdb1:~# tail -n 100 /var/log/puppetdb/puppetdb.log at com.puppetlabs.jdbc$with_query_results_cursor_STAR_.invoke(jdbc.clj:320) ~[na:na] at com.puppetlabs.puppetdb.query$streamed_query_result.invoke(query.clj:1140) ~[na:na] at com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999$fn__13000.invoke(nodes.clj:32) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762$fn__6763.invoke(jdbc.clj:290) ~[na:na] at clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:204) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762.invoke(jdbc.clj:290) ~[na:na] at clojure.java.jdbc.internal$with_connection_STAR_.invoke(internal.clj:186) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761.invoke(jdbc.clj:287) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741$fn__6742.invoke(jdbc.clj:259) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741.invoke(jdbc.clj:258) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740.invoke(jdbc.clj:250) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn.invoke(jdbc.clj:286) ~[na:na] at com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999.invoke(nodes.clj:30) ~[na:na] at com.puppetlabs.http$stream_json_response$fn__7475.invoke(http.clj:234) ~[na:na] at ring.util.io$piped_input_stream$fn__7339.invoke(io.clj:25) [na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1910) [puppetdb.jar:na] at clojure.lang.AFn.call(AFn.java:18) [puppetdb.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_65] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65] Caused by: org.hsqldb.HsqlException: user lacks privilege or object not found: CATALOG at org.hsqldb.error.Error.error(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.error.Error.error(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ExpressionColumn.checkColumnsResolved(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableSubqueryOrNull(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.readTableOrSubquery(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableReference(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadFromClause(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserCommand.compilePart(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserCommand.compileStatement(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.Session.compileStatement(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.StatementManager.compile(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.Session.execute(Unknown Source) ~[puppetdb.jar:na] ... 26 common frames omitted 2014-11-10 18:29:11,419 INFO [c.p.p.c.services] Starting sweep of stale reports (threshold: 14 days) 2014-11-10 18:29:11,442 INFO [c.p.p.c.services] Finished sweep of stale reports (threshold: 14 days) 2014-11-10 18:29:11,442 INFO [c.p.p.c.services] Starting database garbage collection 2014-11-10 18:29:11,449 INFO [c.p.p.c.services] Finished database garbage collection 2014-11-10 18:40:50,250 WARN [c.p.p.h.server] v4 query API is experimental and may change without warning. For stability use the v3 api. 2014-11-10 18:40:50,267 ERROR [c.p.http] Error streaming response java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: CATALOG at org.hsqldb.jdbc.Util.sqlException(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.jdbc.Util.sqlException(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source) ~[puppetdb.jar:na] at com.jolbox.bonecp.ConnectionHandle.prepareStatement(ConnectionHandle.java:820) ~[puppetdb.jar:na] at com.puppetlabs.jdbc$with_query_results_cursor_STAR_$fn__6780.invoke(jdbc.clj:321) ~[na:na] at clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:223) ~[na:na] at com.puppetlabs.jdbc$with_query_results_cursor_STAR_.invoke(jdbc.clj:320) ~[na:na] at com.puppetlabs.puppetdb.query$streamed_query_result.invoke(query.clj:1140) ~[na:na] at com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999$fn__13000.invoke(nodes.clj:32) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762$fn__6763.invoke(jdbc.clj:290) ~[na:na] at clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:204) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762.invoke(jdbc.clj:290) ~[na:na] at clojure.java.jdbc.internal$with_connection_STAR_.invoke(internal.clj:186) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761.invoke(jdbc.clj:287) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741$fn__6742.invoke(jdbc.clj:259) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741.invoke(jdbc.clj:258) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740.invoke(jdbc.clj:250) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn.invoke(jdbc.clj:286) ~[na:na] at com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999.invoke(nodes.clj:30) ~[na:na] at com.puppetlabs.http$stream_json_response$fn__7475.invoke(http.clj:234) ~[na:na] at ring.util.io$piped_input_stream$fn__7339.invoke(io.clj:25) [na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1910) [puppetdb.jar:na] at clojure.lang.AFn.call(AFn.java:18) [puppetdb.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_65] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65] Caused by: org.hsqldb.HsqlException: user lacks privilege or object not found: CATALOG at org.hsqldb.error.Error.error(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.error.Error.error(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ExpressionColumn.checkColumnsResolved(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableSubqueryOrNull(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.readTableOrSubquery(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableReference(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadFromClause(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserCommand.compilePart(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserCommand.compileStatement(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.Session.compileStatement(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.StatementManager.compile(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.Session.execute(Unknown Source) ~[puppetdb.jar:na] ... 26 common frames omitted {code}

    JIRA | 2 years ago | Kenneth Barber
    java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: CATALOG
  2. 0

    `in` and `extract` queries that include a hyphenated field name fail due to lack of conversion to hyphens. This exists in 2.2.x, and the new code in master shows this symptom, but it doesn't show it for non-sql extracts/projections. {code} root@puppetdb1:~# curl -vv 'http://localhost:8080/v4/nodes?query=\["in","catalog-environment",\["extract","catalog-environment",\["select-nodes",\["=","certname","foo"\]\]\]\]' * About to connect() to localhost port 8080 (#0) * Trying ::1... * connected * Connected to localhost (::1) port 8080 (#0) > GET /v4/nodes?query=["in","catalog-environment",["extract","catalog-environment",["select-nodes",["=","certname","foo"]]]] HTTP/1.1 > User-Agent: curl/7.26.0 > Host: localhost:8080 > Accept: */* > * additional stuff not fine transfer.c:1037: 0 0 * HTTP 1.1 or later with persistent connection, pipelining supported < HTTP/1.1 200 OK < Date: Mon, 10 Nov 2014 18:40:50 GMT < Warning: v4 query API is experimental and may change without warning. For stability use the v3 api. < Content-Type: application/json; charset=utf-8 < Content-Length: 0 < Server: Jetty(9.1.z-SNAPSHOT) < * Connection #0 to host localhost left intact * Closing connection #0 root@puppetdb1:~# tail -n 100 /var/log/puppetdb/puppetdb.log at com.puppetlabs.jdbc$with_query_results_cursor_STAR_.invoke(jdbc.clj:320) ~[na:na] at com.puppetlabs.puppetdb.query$streamed_query_result.invoke(query.clj:1140) ~[na:na] at com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999$fn__13000.invoke(nodes.clj:32) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762$fn__6763.invoke(jdbc.clj:290) ~[na:na] at clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:204) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762.invoke(jdbc.clj:290) ~[na:na] at clojure.java.jdbc.internal$with_connection_STAR_.invoke(internal.clj:186) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761.invoke(jdbc.clj:287) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741$fn__6742.invoke(jdbc.clj:259) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741.invoke(jdbc.clj:258) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740.invoke(jdbc.clj:250) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn.invoke(jdbc.clj:286) ~[na:na] at com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999.invoke(nodes.clj:30) ~[na:na] at com.puppetlabs.http$stream_json_response$fn__7475.invoke(http.clj:234) ~[na:na] at ring.util.io$piped_input_stream$fn__7339.invoke(io.clj:25) [na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1910) [puppetdb.jar:na] at clojure.lang.AFn.call(AFn.java:18) [puppetdb.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_65] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65] Caused by: org.hsqldb.HsqlException: user lacks privilege or object not found: CATALOG at org.hsqldb.error.Error.error(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.error.Error.error(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ExpressionColumn.checkColumnsResolved(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableSubqueryOrNull(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.readTableOrSubquery(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableReference(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadFromClause(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserCommand.compilePart(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserCommand.compileStatement(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.Session.compileStatement(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.StatementManager.compile(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.Session.execute(Unknown Source) ~[puppetdb.jar:na] ... 26 common frames omitted 2014-11-10 18:29:11,419 INFO [c.p.p.c.services] Starting sweep of stale reports (threshold: 14 days) 2014-11-10 18:29:11,442 INFO [c.p.p.c.services] Finished sweep of stale reports (threshold: 14 days) 2014-11-10 18:29:11,442 INFO [c.p.p.c.services] Starting database garbage collection 2014-11-10 18:29:11,449 INFO [c.p.p.c.services] Finished database garbage collection 2014-11-10 18:40:50,250 WARN [c.p.p.h.server] v4 query API is experimental and may change without warning. For stability use the v3 api. 2014-11-10 18:40:50,267 ERROR [c.p.http] Error streaming response java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: CATALOG at org.hsqldb.jdbc.Util.sqlException(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.jdbc.Util.sqlException(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source) ~[puppetdb.jar:na] at com.jolbox.bonecp.ConnectionHandle.prepareStatement(ConnectionHandle.java:820) ~[puppetdb.jar:na] at com.puppetlabs.jdbc$with_query_results_cursor_STAR_$fn__6780.invoke(jdbc.clj:321) ~[na:na] at clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:223) ~[na:na] at com.puppetlabs.jdbc$with_query_results_cursor_STAR_.invoke(jdbc.clj:320) ~[na:na] at com.puppetlabs.puppetdb.query$streamed_query_result.invoke(query.clj:1140) ~[na:na] at com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999$fn__13000.invoke(nodes.clj:32) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762$fn__6763.invoke(jdbc.clj:290) ~[na:na] at clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:204) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762.invoke(jdbc.clj:290) ~[na:na] at clojure.java.jdbc.internal$with_connection_STAR_.invoke(internal.clj:186) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761.invoke(jdbc.clj:287) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741$fn__6742.invoke(jdbc.clj:259) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741.invoke(jdbc.clj:258) ~[na:na] at com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740.invoke(jdbc.clj:250) ~[na:na] at com.puppetlabs.jdbc$with_transacted_connection_fn.invoke(jdbc.clj:286) ~[na:na] at com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999.invoke(nodes.clj:30) ~[na:na] at com.puppetlabs.http$stream_json_response$fn__7475.invoke(http.clj:234) ~[na:na] at ring.util.io$piped_input_stream$fn__7339.invoke(io.clj:25) [na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1910) [puppetdb.jar:na] at clojure.lang.AFn.call(AFn.java:18) [puppetdb.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_65] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65] Caused by: org.hsqldb.HsqlException: user lacks privilege or object not found: CATALOG at org.hsqldb.error.Error.error(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.error.Error.error(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ExpressionColumn.checkColumnsResolved(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableSubqueryOrNull(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.readTableOrSubquery(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableReference(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadFromClause(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserCommand.compilePart(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.ParserCommand.compileStatement(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.Session.compileStatement(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.StatementManager.compile(Unknown Source) ~[puppetdb.jar:na] at org.hsqldb.Session.execute(Unknown Source) ~[puppetdb.jar:na] ... 26 common frames omitted {code}

    JIRA | 2 years ago | Ken Barber
    java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: CATALOG
  3. 0

    Spring @TestExecutionListeners failing on JPA Schema generation

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: Check JPQL for query select r.id from com.sw.system4.data.geo.Region r where r.area='GB'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HSQLDB: java.sql.SQLSyntaxErrorException: user lacks privilege or object not found

    Stack Overflow | 2 years ago | noob
    java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: USER. I found that in my file store script the code for the PRODUCT table create was there however I have created the USER table the same way I did with the PRODUCT table - using the HSQL Database Manager. This is my error code: java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: USER
  6. 0

    HA-JDBC / Discussion / Open Discussion:Configure HA-JDBC to use/replace Tomcat 7.0.35 JDBC pooling

    sourceforge.net | 1 year ago
    java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: USERS Error Code: -5501 Call: UPDATE USERS SET LAST_LOGIN_DT = ?, LAST_LOGOUT_DT = ? WHERE (USER_NAME = ?) bind => Query: UpdateObjectQuery(jpa.entities.Users )

  1. marcbouvierdav 1 times, last 1 month ago
  2. andyglick 2 times, last 3 weeks ago
  3. WoodenDoors 67 times, last 7 months ago
87 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hsqldb.HsqlException

    user lacks privilege or object not found: CATALOG

    at org.hsqldb.error.Error.error()
  2. HyperSQL Database
    Error.error
    1. org.hsqldb.error.Error.error(Unknown Source)[puppetdb.jar:na]
    2. org.hsqldb.error.Error.error(Unknown Source)[puppetdb.jar:na]
    2 frames
  3. HSQLDB
    JDBCConnection.prepareStatement
    1. org.hsqldb.ExpressionColumn.checkColumnsResolved(Unknown Source)[puppetdb.jar:na]
    2. org.hsqldb.ParserDQL.XreadTableSubqueryOrNull(Unknown Source)[puppetdb.jar:na]
    3. org.hsqldb.ParserDQL.readTableOrSubquery(Unknown Source)[puppetdb.jar:na]
    4. org.hsqldb.ParserDQL.XreadTableReference(Unknown Source)[puppetdb.jar:na]
    5. org.hsqldb.ParserDQL.XreadFromClause(Unknown Source)[puppetdb.jar:na]
    6. org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source)[puppetdb.jar:na]
    7. org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source)[puppetdb.jar:na]
    8. org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source)[puppetdb.jar:na]
    9. org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source)[puppetdb.jar:na]
    10. org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source)[puppetdb.jar:na]
    11. org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source)[puppetdb.jar:na]
    12. org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source)[puppetdb.jar:na]
    13. org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source)[puppetdb.jar:na]
    14. org.hsqldb.ParserCommand.compilePart(Unknown Source)[puppetdb.jar:na]
    15. org.hsqldb.ParserCommand.compileStatement(Unknown Source)[puppetdb.jar:na]
    16. org.hsqldb.Session.compileStatement(Unknown Source)[puppetdb.jar:na]
    17. org.hsqldb.StatementManager.compile(Unknown Source)[puppetdb.jar:na]
    18. org.hsqldb.Session.execute(Unknown Source)[puppetdb.jar:na]
    19. org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source)[puppetdb.jar:na]
    20. org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source)[puppetdb.jar:na]
    20 frames
  4. BoneCP :: Core Library
    ConnectionHandle.prepareStatement
    1. com.jolbox.bonecp.ConnectionHandle.prepareStatement(ConnectionHandle.java:820)[puppetdb.jar:na]
    1 frame
  5. com.puppetlabs
    jdbc$with_query_results_cursor_STAR_$fn__6780.invoke
    1. com.puppetlabs.jdbc$with_query_results_cursor_STAR_$fn__6780.invoke(jdbc.clj:321)[na:na]
    1 frame
  6. notificationagent
    internal$transaction_STAR_.invoke
    1. clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:223)[na:na]
    1 frame
  7. com.puppetlabs
    jdbc$with_query_results_cursor_STAR_.invoke
    1. com.puppetlabs.jdbc$with_query_results_cursor_STAR_.invoke(jdbc.clj:320)[na:na]
    1 frame
  8. com.puppetlabs.puppetdb
    nodes$produce_body$fn__12996$fn__12999$fn__13000.invoke
    1. com.puppetlabs.puppetdb.query$streamed_query_result.invoke(query.clj:1140)[na:na]
    2. com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999$fn__13000.invoke(nodes.clj:32)[na:na]
    2 frames
  9. com.puppetlabs
    jdbc$with_transacted_connection_fn$fn__6761$fn__6762$fn__6763.invoke
    1. com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762$fn__6763.invoke(jdbc.clj:290)[na:na]
    1 frame
  10. notificationagent
    internal$transaction_STAR_.invoke
    1. clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:204)[na:na]
    1 frame
  11. com.puppetlabs
    jdbc$with_transacted_connection_fn$fn__6761$fn__6762.invoke
    1. com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761$fn__6762.invoke(jdbc.clj:290)[na:na]
    1 frame
  12. notificationagent
    internal$with_connection_STAR_.invoke
    1. clojure.java.jdbc.internal$with_connection_STAR_.invoke(internal.clj:186)[na:na]
    1 frame
  13. com.puppetlabs
    jdbc$with_transacted_connection_fn.invoke
    1. com.puppetlabs.jdbc$with_transacted_connection_fn$fn__6761.invoke(jdbc.clj:287)[na:na]
    2. com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741$fn__6742.invoke(jdbc.clj:259)[na:na]
    3. com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740$fn__6741.invoke(jdbc.clj:258)[na:na]
    4. com.puppetlabs.jdbc$eval6739$retry_sql_STAR___6740.invoke(jdbc.clj:250)[na:na]
    5. com.puppetlabs.jdbc$with_transacted_connection_fn.invoke(jdbc.clj:286)[na:na]
    5 frames
  14. com.puppetlabs.puppetdb
    nodes$produce_body$fn__12996$fn__12999.invoke
    1. com.puppetlabs.puppetdb.http.nodes$produce_body$fn__12996$fn__12999.invoke(nodes.clj:30)[na:na]
    1 frame
  15. com.puppetlabs
    http$stream_json_response$fn__7475.invoke
    1. com.puppetlabs.http$stream_json_response$fn__7475.invoke(http.clj:234)[na:na]
    1 frame
  16. kifshare
    io$piped_input_stream$fn__7339.invoke
    1. ring.util.io$piped_input_stream$fn__7339.invoke(io.clj:25)[na:na]
    1 frame
  17. Clojure
    AFn.call
    1. clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1910)[puppetdb.jar:na]
    2. clojure.lang.AFn.call(AFn.java:18)[puppetdb.jar:na]
    2 frames
  18. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)[na:1.7.0_65]
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_65]
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_65]
    4. java.lang.Thread.run(Thread.java:745)[na:1.7.0_65]
    4 frames