CAS 5.2.1 Inspeckr jdbc mysql database not being populated.

40 views
Skip to first unread message

Mallory, Erik

unread,
Jan 30, 2018, 5:19:19 AM1/30/18
to cas-...@apereo.org

Inspektr or jdbc does not seem to be working properly. The database tables are not getting created on start, so there is nothing for Inspektr to write to.

The error:

PreparedStatementCallback; bad SQL grammar [SELECT AUD_DATE FROM COM_AUDIT_TRAIL WHERE AUD_CLIENT_IP = ? AND AUD_USER = ? AND AUD_ACTION = ? AND APPLIC_CD = ? AND AUD_DATE >= ? ORDER BY AUD_DATE DESC]; nested exception is java.sql.SQLSyntaxErrorException: Table 'casdb.COM_AUDIT_TRAIL' doesn't exist]>

org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT AUD_DATE FROM COM_AUDIT_TRAIL WHERE AUD_CLIENT_IP = ? AND AUD_USER = ? AND AUD_ACTION = ? AND APPLIC_CD = ? AND AUD_DATE >= ? ORDER BY AUD_DATE DESC]; nested exception is java.sql.SQLSyntaxErrorException: Table 'casdb.COM_AUDIT_TRAIL' doesn't exist

 

Relevant configuration information.

 

cas.authn.throttle.jdbc.ddlAuto=create-drop

cas.authn.throttle.jdbc.driverClass=com.mysql.jdbc.Driver

cas.authn.throttle.jdbc.dialect=org.hibernate.dialect.MySQL5Dialect

 

I am able to create a table as the cas user in the database.

 

Any help would be appreciated.

Thanks,

Erik Mallory

Server Analyst 

Wichita State University

 

Mallory, Erik

unread,
Jan 30, 2018, 5:19:19 AM1/30/18
to cas-...@apereo.org

Hello,

Mallory, Erik

unread,
Jan 30, 2018, 5:19:19 AM1/30/18
to cas-...@apereo.org

matrix development

unread,
Feb 1, 2018, 9:26:00 PM2/1/18
to cas-...@apereo.org
Try creating the table and change the ddlAuto to update
cas.authn.throttle.jdbc.ddlAuto=update


_Fazla


--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/AFDFBB13-AD53-4CB2-9002-99B33069D47C%40wichita.edu.



--
-Fazla.

Man H

unread,
Feb 2, 2018, 10:23:46 AM2/2/18
to cas-...@apereo.org
Just create table

run with
cas.jdbc.showSql=true
cas.jdbc.genDdl=true

cas.audit.jdbc.ddlAuto=create-none

See you output, if it isnt beeing created you could use log output to crete it.

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.



--
-Fazla.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

Man H

unread,
Feb 2, 2018, 1:27:09 PM2/2/18
to cas-...@apereo.org
Typo:
cas.audit.jdbc.ddlAuto=create-drop

Reply all
Reply to author
Forward
0 new messages