Enabling logging in mapper throws UndeclaredThrowableException instead of SQLException
How to reproduce:
- Enable logging in MapperSpecs
- Run tests and watch "enforce NOT NULL" fail
- Cause: the expected SQL Exception is not thrown, instead an UndeclaredThrowableException is thrown:
org.specs.runner.UserError: java.lang.reflect.UndeclaredThrowableException: null
at $Proxy5.executeQuery(Unknown Source)
at net.liftweb.mapper.PostgreSqlDriver$$anonfun$performInsertWithGenKeys$2.apply(Driver.scala:267)
at net.liftweb.mapper.PostgreSqlDriver$$anonfun$performInsertWithGenKeys$2.apply(Driver.scala:265)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$2.apply(DB.scala:548)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$2.apply(DB.scala:547)
at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:247)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:34)
at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:546)
at net.liftweb.mapper.DB$.prepareStatement(DB.scala:489)
at net.liftweb.mapper.PostgreSqlDriver$.performInsertWithGenKeys(Driver.scala:264)
at net.liftweb.mapper.DriverType.performInsert(Driver.scala:81)
at net.liftweb.mapper.MetaMapper$$anonfun$15.apply(MetaMapper.scala:749)
at net.liftweb.mapper.MetaMapper$$anonfun$15.apply(MetaMapper.scala:694)
at net.liftweb.mapper.DB$$anonfun$use$1.apply(DB.scala:570)
at net.liftweb.util.DynoVar$class.run(ThreadGlobal.scala:95)
at net.liftweb.mapper.DB$currentConn$.run(DB.scala:557)
at net.liftweb.mapper.DB$.use(DB.scala:567)
at net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala:693)
at net.liftweb.mapper.SampleModel$.save(MapperSpecs.scala:385)
at net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:87)
at net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:87)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.mapper.Safe$.runSafe(Safe.scala:45)
at net.liftweb.mapper.Mapper$class.runSafe(Mapper.scala:53)
at net.liftweb.mapper.SampleModel.runSafe(MapperSpecs.scala:399)
at net.liftweb.mapper.Mapper$class.save(Mapper.scala:86)
at net.liftweb.mapper.SampleModel.save(MapperSpecs.scala:399)
at net.liftweb.mapper.MapperSpecs$$anonfun$2$$anonfun$apply$1$$anonfun$apply$40.apply(MapperSpecs.scala:148)
at org.specs.specification.LifeCycle$class.withCurrent(ExampleLifeCycle.scala:64)
at org.specs.specification.Examples.withCurrent(Examples.scala:52)
at org.specs.specification.Examples$$anonfun$specifyExample$1.apply(Examples.scala:108)
at org.specs.specification.Examples$$anonfun$specifyExample$1.apply(Examples.scala:108)
at org.specs.specification.ExampleExecution$$anonfun$3$$anonfun$apply$5.apply(ExampleLifeCycle.scala:195)
at scala.Option.getOrElse(Option.scala:61)
at org.specs.specification.LifeCycle$class.executeExpectations(ExampleLifeCycle.scala:86)
at org.specs.specification.BaseSpecification.executeExpectations(BaseSpecification.scala:55)
at org.specs.specification.LifeCycle$$anonfun$executeExpectations$1.apply(ExampleLifeCycle.scala:86)
at org.specs.specification.LifeCycle$$anonfun$executeExpectations$1.apply(ExampleLifeCycle.scala:86)
at scala.Option.map(Option.scala:70)
at org.specs.specification.LifeCycle$class.executeExpectations(ExampleLifeCycle.scala:86)
at org.specs.specification.BaseSpecification.executeExpectations(BaseSpecification.scala:55)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1$$anonfun$apply$2.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1$$anonfun$apply$2.apply(ExampleContext.scala:58)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$class.id$1(ExampleContext.scala:31)
at org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:32)
at org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:32)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2.apply(ExampleContext.scala:57)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleContext$class.executeExpectations(ExampleContext.scala:57)
at org.specs.specification.Examples.executeExpectations(Examples.scala:52)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1$$anonfun$apply$2.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1$$anonfun$apply$2.apply(ExampleContext.scala:58)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$class.id$1(ExampleContext.scala:31)
at org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:32)
at org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:32)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2.apply(ExampleContext.scala:57)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleContext$class.executeExpectations(ExampleContext.scala:57)
at org.specs.specification.Examples.executeExpectations(Examples.scala:52)
at org.specs.specification.ExampleExecution$$anonfun$3.apply(ExampleLifeCycle.scala:195)
at org.specs.specification.ExampleExecution$$anonfun$3.apply(ExampleLifeCycle.scala:182)
at org.specs.specification.ExampleExecution$$anonfun$2.apply(ExampleLifeCycle.scala:165)
at org.specs.specification.ExampleExecution.execute(ExampleLifeCycle.scala:215)
at org.specs.specification.SpecificationExecutor$$anonfun$executeExample$1.apply(SpecificationExecutor.scala:51)
at org.specs.specification.SpecificationExecutor$$anonfun$executeExample$1.apply(SpecificationExecutor.scala:51)
at scala.Option.map(Option.scala:70)
at org.specs.specification.SpecificationExecutor$class.executeExample(SpecificationExecutor.scala:51)
at org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:55)
at org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:55)
at org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:124)
at org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:124)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleLifeCycle$class.executeExample(ExampleLifeCycle.scala:124)
at org.specs.specification.Examples.executeExample(Examples.scala:52)
at org.specs.specification.Examples.executeExample(Examples.scala:52)
at org.specs.specification.Examples$$anonfun$executeExamples$1.apply(Examples.scala:80)
at org.specs.specification.Examples$$anonfun$executeExamples$1.apply(Examples.scala:80)
at scala.Option.map(Option.scala:70)
at org.specs.specification.Examples.executeExamples(Examples.scala:80)
at org.specs.specification.ExampleStructure$class.examples(ExampleStructure.scala:77)
at org.specs.specification.Examples.examples(Examples.scala:52)
at org.specs.runner.ExamplesTestSuite$$anonfun$initialize$4.apply(JUnit.scala:157)
at org.specs.runner.ExamplesTestSuite$$anonfun$initialize$4.apply(JUnit.scala:153)
at scala.List.foreach(List.scala:841)
at org.specs.runner.ExamplesTestSuite.initialize(JUnit.scala:153)
at org.specs.runner.JUnitSuite$class.init(JUnit.scala:53)
at org.specs.runner.ExamplesTestSuite.init(JUnit.scala:143)
at org.specs.runner.JUnitSuite$class.getName(JUnit.scala:65)
at org.specs.runner.ExamplesTestSuite.getName(JUnit.scala:143)
at org.specs.runner.TestDescription$class.asDescription(JUnitSuiteRunner.scala:116)
at org.specs.runner.JUnitSuiteRunner.asDescription(JUnitSuiteRunner.scala:32)
at org.specs.runner.TestDescription$class.makeDescription(JUnitSuiteRunner.scala:125)
at org.specs.runner.JUnitSuiteRunner.makeDescription(JUnitSuiteRunner.scala:32)
at org.specs.runner.TestDescription$$anonfun$makeDescription$1.apply(JUnitSuiteRunner.scala:127)
at org.specs.runner.TestDescription$$anonfun$makeDescription$1.apply(JUnitSuiteRunner.scala:126)
at scala.List.foreach(List.scala:841)
at org.specs.runner.TestDescription$class.makeDescription(JUnitSuiteRunner.scala:126)
at org.specs.runner.JUnitSuiteRunner.makeDescription(JUnitSuiteRunner.scala:32)
at org.specs.runner.JUnitSuiteRunner.getDescription(JUnitSuiteRunner.scala:57)
at org.junit.runner.Runner.testCount(Runner.java:38)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.countTestCases(JUnit4TestClassReference.java:30)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.countTests(RemoteTestRunner.java:487)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:455)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.liftweb.mapper.DBLog$LoggedStatementHandler.chain(LoggingStatementWrappers.scala:330)
at net.liftweb.mapper.DBLog$LoggedPreparedStatementHandler$$anonfun$invoke$68.apply(LoggingStatementWrappers.scala:394)
at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:247)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:34)
at net.liftweb.mapper.DBLog$class.logStatement(LoggingStatementWrappers.scala:53)
at net.liftweb.mapper.DBLog$LoggedStatementHandler.logStatement(LoggingStatementWrappers.scala:110)
at net.liftweb.mapper.DBLog$LoggedPreparedStatementHandler.invoke(LoggingStatementWrappers.scala:393)
... 114 more
Caused by: org.postgresql.util.PSQLException: ERROR: null value in column "notnull_c" violates not-null constraint
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)
... 124 more
- Enable logging in MapperSpecs
- Run tests and watch "enforce NOT NULL" fail
- Cause: the expected SQL Exception is not thrown, instead an UndeclaredThrowableException is thrown:
org.specs.runner.UserError: java.lang.reflect.UndeclaredThrowableException: null
at $Proxy5.executeQuery(Unknown Source)
at net.liftweb.mapper.PostgreSqlDriver$$anonfun$performInsertWithGenKeys$2.apply(Driver.scala:267)
at net.liftweb.mapper.PostgreSqlDriver$$anonfun$performInsertWithGenKeys$2.apply(Driver.scala:265)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$2.apply(DB.scala:548)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$2.apply(DB.scala:547)
at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:247)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:34)
at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:546)
at net.liftweb.mapper.DB$.prepareStatement(DB.scala:489)
at net.liftweb.mapper.PostgreSqlDriver$.performInsertWithGenKeys(Driver.scala:264)
at net.liftweb.mapper.DriverType.performInsert(Driver.scala:81)
at net.liftweb.mapper.MetaMapper$$anonfun$15.apply(MetaMapper.scala:749)
at net.liftweb.mapper.MetaMapper$$anonfun$15.apply(MetaMapper.scala:694)
at net.liftweb.mapper.DB$$anonfun$use$1.apply(DB.scala:570)
at net.liftweb.util.DynoVar$class.run(ThreadGlobal.scala:95)
at net.liftweb.mapper.DB$currentConn$.run(DB.scala:557)
at net.liftweb.mapper.DB$.use(DB.scala:567)
at net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala:693)
at net.liftweb.mapper.SampleModel$.save(MapperSpecs.scala:385)
at net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:87)
at net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:87)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.mapper.Safe$.runSafe(Safe.scala:45)
at net.liftweb.mapper.Mapper$class.runSafe(Mapper.scala:53)
at net.liftweb.mapper.SampleModel.runSafe(MapperSpecs.scala:399)
at net.liftweb.mapper.Mapper$class.save(Mapper.scala:86)
at net.liftweb.mapper.SampleModel.save(MapperSpecs.scala:399)
at net.liftweb.mapper.MapperSpecs$$anonfun$2$$anonfun$apply$1$$anonfun$apply$40.apply(MapperSpecs.scala:148)
at org.specs.specification.LifeCycle$class.withCurrent(ExampleLifeCycle.scala:64)
at org.specs.specification.Examples.withCurrent(Examples.scala:52)
at org.specs.specification.Examples$$anonfun$specifyExample$1.apply(Examples.scala:108)
at org.specs.specification.Examples$$anonfun$specifyExample$1.apply(Examples.scala:108)
at org.specs.specification.ExampleExecution$$anonfun$3$$anonfun$apply$5.apply(ExampleLifeCycle.scala:195)
at scala.Option.getOrElse(Option.scala:61)
at org.specs.specification.LifeCycle$class.executeExpectations(ExampleLifeCycle.scala:86)
at org.specs.specification.BaseSpecification.executeExpectations(BaseSpecification.scala:55)
at org.specs.specification.LifeCycle$$anonfun$executeExpectations$1.apply(ExampleLifeCycle.scala:86)
at org.specs.specification.LifeCycle$$anonfun$executeExpectations$1.apply(ExampleLifeCycle.scala:86)
at scala.Option.map(Option.scala:70)
at org.specs.specification.LifeCycle$class.executeExpectations(ExampleLifeCycle.scala:86)
at org.specs.specification.BaseSpecification.executeExpectations(BaseSpecification.scala:55)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1$$anonfun$apply$2.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1$$anonfun$apply$2.apply(ExampleContext.scala:58)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$class.id$1(ExampleContext.scala:31)
at org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:32)
at org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:32)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2.apply(ExampleContext.scala:57)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleContext$class.executeExpectations(ExampleContext.scala:57)
at org.specs.specification.Examples.executeExpectations(Examples.scala:52)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1$$anonfun$apply$2.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1$$anonfun$apply$2.apply(ExampleContext.scala:58)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2$$anonfun$apply$1.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$class.id$1(ExampleContext.scala:31)
at org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:32)
at org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:32)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2.apply(ExampleContext.scala:58)
at org.specs.specification.ExampleContext$$anonfun$executeExpectations$2.apply(ExampleContext.scala:57)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleContext$class.executeExpectations(ExampleContext.scala:57)
at org.specs.specification.Examples.executeExpectations(Examples.scala:52)
at org.specs.specification.ExampleExecution$$anonfun$3.apply(ExampleLifeCycle.scala:195)
at org.specs.specification.ExampleExecution$$anonfun$3.apply(ExampleLifeCycle.scala:182)
at org.specs.specification.ExampleExecution$$anonfun$2.apply(ExampleLifeCycle.scala:165)
at org.specs.specification.ExampleExecution.execute(ExampleLifeCycle.scala:215)
at org.specs.specification.SpecificationExecutor$$anonfun$executeExample$1.apply(SpecificationExecutor.scala:51)
at org.specs.specification.SpecificationExecutor$$anonfun$executeExample$1.apply(SpecificationExecutor.scala:51)
at scala.Option.map(Option.scala:70)
at org.specs.specification.SpecificationExecutor$class.executeExample(SpecificationExecutor.scala:51)
at org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:55)
at org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:55)
at org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:124)
at org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:124)
at scala.Option.map(Option.scala:70)
at org.specs.specification.ExampleLifeCycle$class.executeExample(ExampleLifeCycle.scala:124)
at org.specs.specification.Examples.executeExample(Examples.scala:52)
at org.specs.specification.Examples.executeExample(Examples.scala:52)
at org.specs.specification.Examples$$anonfun$executeExamples$1.apply(Examples.scala:80)
at org.specs.specification.Examples$$anonfun$executeExamples$1.apply(Examples.scala:80)
at scala.Option.map(Option.scala:70)
at org.specs.specification.Examples.executeExamples(Examples.scala:80)
at org.specs.specification.ExampleStructure$class.examples(ExampleStructure.scala:77)
at org.specs.specification.Examples.examples(Examples.scala:52)
at org.specs.runner.ExamplesTestSuite$$anonfun$initialize$4.apply(JUnit.scala:157)
at org.specs.runner.ExamplesTestSuite$$anonfun$initialize$4.apply(JUnit.scala:153)
at scala.List.foreach(List.scala:841)
at org.specs.runner.ExamplesTestSuite.initialize(JUnit.scala:153)
at org.specs.runner.JUnitSuite$class.init(JUnit.scala:53)
at org.specs.runner.ExamplesTestSuite.init(JUnit.scala:143)
at org.specs.runner.JUnitSuite$class.getName(JUnit.scala:65)
at org.specs.runner.ExamplesTestSuite.getName(JUnit.scala:143)
at org.specs.runner.TestDescription$class.asDescription(JUnitSuiteRunner.scala:116)
at org.specs.runner.JUnitSuiteRunner.asDescription(JUnitSuiteRunner.scala:32)
at org.specs.runner.TestDescription$class.makeDescription(JUnitSuiteRunner.scala:125)
at org.specs.runner.JUnitSuiteRunner.makeDescription(JUnitSuiteRunner.scala:32)
at org.specs.runner.TestDescription$$anonfun$makeDescription$1.apply(JUnitSuiteRunner.scala:127)
at org.specs.runner.TestDescription$$anonfun$makeDescription$1.apply(JUnitSuiteRunner.scala:126)
at scala.List.foreach(List.scala:841)
at org.specs.runner.TestDescription$class.makeDescription(JUnitSuiteRunner.scala:126)
at org.specs.runner.JUnitSuiteRunner.makeDescription(JUnitSuiteRunner.scala:32)
at org.specs.runner.JUnitSuiteRunner.getDescription(JUnitSuiteRunner.scala:57)
at org.junit.runner.Runner.testCount(Runner.java:38)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.countTestCases(JUnit4TestClassReference.java:30)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.countTests(RemoteTestRunner.java:487)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:455)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.liftweb.mapper.DBLog$LoggedStatementHandler.chain(LoggingStatementWrappers.scala:330)
at net.liftweb.mapper.DBLog$LoggedPreparedStatementHandler$$anonfun$invoke$68.apply(LoggingStatementWrappers.scala:394)
at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:247)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:34)
at net.liftweb.mapper.DBLog$class.logStatement(LoggingStatementWrappers.scala:53)
at net.liftweb.mapper.DBLog$LoggedStatementHandler.logStatement(LoggingStatementWrappers.scala:110)
at net.liftweb.mapper.DBLog$LoggedPreparedStatementHandler.invoke(LoggingStatementWrappers.scala:393)
... 114 more
Caused by: org.postgresql.util.PSQLException: ERROR: null value in column "notnull_c" violates not-null constraint
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)
... 124 more
Leave a comment
on 2010-02-26 15:51 *
By dpp
Status changed from Test to Fixed
Work remaining changed from 2.0 to 0.0
(In revision:8fd53affe1139364c4489dac4dcb119c3e6dc1de) Closes #369. Throw the correct exception from invocation
Branch: master
Branch: master