New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded error during code generation #257

Closed
mirkosertic opened this Issue Oct 22, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@mirkosertic

See the following maven log:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute HibernateDomainExporter

Embedded error: 1
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute HibernateDomainExporter
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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: Cannot execute HibernateDomainExporter
at ch.bedag.gba.maven.plugin.querydsl.HibernateExportMojo.execute(HibernateExportMojo.java:64)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at java.util.Arrays$ArrayList.get(Arrays.java:3381)
at com.mysema.query.codegen.TypeResolver.resolveTypeExtends(TypeResolver.java:96)
at com.mysema.query.codegen.TypeResolver.resolve(TypeResolver.java:44)
at com.mysema.query.codegen.TypeResolver.resolveWithParameters(TypeResolver.java:111)
at com.mysema.query.codegen.TypeResolver.resolve(TypeResolver.java:53)
at com.mysema.query.codegen.TypeResolver.resolveWithParameters(TypeResolver.java:111)
at com.mysema.query.codegen.TypeResolver.resolve(TypeResolver.java:53)
at com.mysema.query.codegen.Property.createCopy(Property.java:81)
at com.mysema.query.codegen.EntityType.include(EntityType.java:226)
at com.mysema.query.jpa.codegen.HibernateDomainExporter.addSupertypeFields(HibernateDomainExporter.java:269)
at com.mysema.query.jpa.codegen.HibernateDomainExporter.execute(HibernateDomainExporter.java:249)
at ch.bedag.gba.maven.plugin.querydsl.HibernateExportMojo.execute(HibernateExportMojo.java:62)

I didn't track the problem down to concrete types due to lack of time. Maybe you can reconstruct the problem. Maybe this has do do with nested generics,

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 24, 2012

Member

I am not 100% sure that this fixes your issue, but generics handling should in general be better now for the HibernateDomainExporter.

Member

timowest commented Oct 24, 2012

I am not 100% sure that this fixes your issue, but generics handling should in general be better now for the HibernateDomainExporter.

@mirkosertic

This comment has been minimized.

Show comment
Hide comment
@mirkosertic

mirkosertic Oct 26, 2012

It is the same problematic constellation as described in #231.

It is the same problematic constellation as described in #231.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 26, 2012

Member

But the Exception is different here.

Member

timowest commented Oct 26, 2012

But the Exception is different here.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 30, 2012

Member

Released in 2.8.2

Member

timowest commented Oct 30, 2012

Released in 2.8.2

@timowest timowest closed this Oct 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment