It looks like this is the key piece of the exception:

Caused by: org.dbunit.dataset.NoSuchTableException: Request

It looks as though your sample data refers to a table called Request yet no
such table exists?

Mike


On 7/19/07, Srini Bobbala <[EMAIL PROTECTED]> wrote:

 HI,

Got 3 pojos (employee, task, employeetask) with many to one relationship
in employeetask pojo with rest,



I am able to generate & install pojos, creating db tables:



When try to run mvn install or mvn test –e  getting error



Thanks a lot,



[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Error executing database operation: CLEAN_INSERT



Embedded error: Request

[INFO]
------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
database

 operation: CLEAN_INSERT

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:564)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi

fecycle(DefaultLifecycleExecutor.java:480)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau

ltLifecycleExecutor.java:459)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:311)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:278)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi

fecycleExecutor.java:143)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.

java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces

sorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(
Launcher.java:430)



        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
datab

ase operation: CLEAN_INSERT

        at org.codehaus.mojo.dbunit.OperationMojo.execute(
OperationMojo.java:110

)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi

nManager.java:443)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:539)

        ... 16 more

Caused by: org.dbunit.dataset.NoSuchTableException: Request

        at org.dbunit.database.DatabaseDataSet.getTableMetaData
(DatabaseDataSet.

java:192)

        at org.dbunit.operation.DeleteAllOperation.execute(
DeleteAllOperation.ja

va:98)

        at org.dbunit.operation.CompositeOperation.execute(
CompositeOperation.ja

va:67)

        at org.dbunit.ant.Operation.execute(Operation.java:183)

        at org.codehaus.mojo.dbunit.OperationMojo.execute(
OperationMojo.java:101

)

Reply via email to