Advertisement
Guest User

Untitled

a guest
Mar 4th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.50 KB | None | 0 0
  1. params.max = Math.min(max ?: 10, 100)
  2. [checktypesInstanceList: Checktypes.list(params), checktypesInstanceTotal: Checktypes.count()]
  3.  
  4. dataSource {
  5. pooled = true
  6. driverClassName = "oracle.jdbc.OracleDriver"
  7. dialect = "org.hibernate.dialect.Oracle10gDialect"
  8. username = "TMS_DEV"
  9. password = "password"
  10. }
  11. hibernate {
  12. cache.use_second_level_cache = true
  13. cache.use_query_cache = false
  14. cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
  15. }
  16. development {
  17. dataSource {
  18. dbCreate = "update" // one of 'create', 'create-drop','update'
  19. url = "jdbc:oracle:thin:@server_name:1522:sid_name"
  20. }
  21. }
  22. production {
  23. dataSource {
  24. dbCreate = "update" // one of 'create', 'create-drop','update'
  25. url = "jdbc:oracle:thin:@server_name:1522:sid_name"
  26. }
  27. }
  28.  
  29. | Error 2012-08-27 14:41:03,469 [http-bio-8080-exec-9] ERROR util.JDBCExceptionReporter - Table "CHECKTYPES" not found; SQL statement:
  30. select * from ( select this_.CHECKTYPECODE as CHECKTYP1_21_0_, this_.active as active21_0_, this_.availabilitychecktype as availabi3_21_0_, this_.checktypecode as checktyp1_21_0_, this_.checktypedescr as checktyp4_21_0_, this_.TARGETTYPECODE as TARGETTY5_21_0_ from CHECKTYPES this_ ) where rownum <= ? [42102-164]
  31. | Error 2012-08-27 14:41:03,547 [http-bio-8080-exec-9] ERROR errors.GrailsExceptionResolver - JdbcSQLException occurred when processing request: [GET] /Tst7/checktypes/list
  32. Table "CHECKTYPES" not found; SQL statement:
  33. select * from ( select this_.CHECKTYPECODE as CHECKTYP1_21_0_, this_.active as active21_0_, this_.availabilitychecktype as availabi3_21_0_, this_.checktypecode as checktyp1_21_0_, this_.checktypedescr as checktyp4_21_0_, this_.TARGETTYPECODE as TARGETTY5_21_0_ from CHECKTYPES this_ ) where rownum <= ? [42102-164]. Stacktrace follows:
  34. Message: Table "CHECKTYPES" not found; SQL statement:
  35. select * from ( select this_.CHECKTYPECODE as CHECKTYP1_21_0_, this_.active as active21_0_, this_.availabilitychecktype as availabi3_21_0_, this_.checktypecode as checktyp1_21_0_, this_.checktypedescr as checktyp4_21_0_, this_.TARGETTYPECODE as TARGETTY5_21_0_ from CHECKTYPES this_ ) where rownum <= ? [42102-164]
  36. Line | Method
  37. ->> 329 | getJdbcSQLException in org.h2.message.DbException
  38. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  39. | 169 | get in ''
  40. | 146 | get . . . . . . . . . . . in ''
  41. | 4753 | readTableOrView in org.h2.command.Parser
  42. | 1080 | readTableFilter . . . . . in ''
  43. | 1686 | parseSelectSimpleFromPart in ''
  44. | 1793 | parseSelectSimple . . . . in ''
  45. | 1680 | parseSelectSub in ''
  46. | 1523 | parseSelectUnion . . . . in ''
  47. | 1022 | readTableFilter in ''
  48. | 1686 | parseSelectSimpleFromPart in ''
  49. | 1793 | parseSelectSimple in ''
  50. | 1680 | parseSelectSub . . . . . in ''
  51. | 1523 | parseSelectUnion in ''
  52. | 1511 | parseSelect . . . . . . . in ''
  53. | 405 | parsePrepared in ''
  54. | 279 | parse . . . . . . . . . . in ''
  55. | 251 | parse in ''
  56. | 217 | prepareCommand . . . . . in ''
  57. | 415 | prepareLocal in org.h2.engine.Session
  58. | 364 | prepareCommand . . . . . in ''
  59. | 1121 | prepareCommand in org.h2.jdbc.JdbcConnection
  60. | 71 | <init> . . . . . . . . . in org.h2.jdbc.JdbcPreparedStatement
  61. | 267 | prepareStatement in org.h2.jdbc.JdbcConnection
  62. | 281 | prepareStatement . . . . in org.apache.commons.dbcp.DelegatingConnection
  63. | 313 | prepareStatement in org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
  64. | 55 | <init> . . . . . . . . . in grails.orm.PagedResultList
  65. | 45 | list in tst7.ChecktypesController
  66. | 195 | doFilter . . . . . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter
  67. | 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter
  68. | 1110 | runWorker . . . . . . . . in java.util.concurrent.ThreadPoolExecutor
  69. | 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
  70. ^ 722 | run . . . . . . . . . . . in java.lang.Thread
  71.  
  72. def list(Integer max) {
  73.  
  74. def sql = Sql.newInstance("jdbc:oracle:thin:@server_name:1522:instance_name", "TMS_DEV",
  75. "password", "oracle.jdbc.driver.OracleDriver")
  76. sql.eachRow("select * from Dbdrivers"){
  77. println it.dbdrivercode
  78. }
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement