Hi all,
I have an error during the build in the
goal org.apache.isis.tool:isis-maven-plugin:1.11.1:swagger.

It seams relative to the metamodel build in the case of action Contributee
(in fact it come out only when I have same Domani Objects as action
parameters).

[ERROR] Failed to execute goal
org.apache.isis.tool:isis-maven-plugin:1.11.1:swagger (default) on project
superscore-dom: Execution default of goal
org.apache.isis.tool:isis-maven-plugin:1.11.1:swagger failed: No Session
opened for this thread -> [Help 1]
[INFO] finalizing reflector factory
org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault@635cb856
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.isis.tool:isis-maven-plugin:1.11.1:swagger (default) on
project superscore-dom: Execution default of goal
org.apache.isis.tool:isis-maven-plugin:1.11.1:swagger failed: No Session
opened for this thread
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
default of goal org.apache.isis.tool:isis-maven-plugin:1.11.1:swagger
failed: No Session opened for this thread
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: java.lang.IllegalStateException: No Session opened for this
thread
at
org.apache.isis.core.runtime.system.context.IsisContext.getSession(IsisContext.java:399)
at
org.apache.isis.core.runtime.system.context.IsisContext.getPersistenceSession(IsisContext.java:427)
at
org.apache.isis.core.runtime.persistence.internal.RuntimeContextFromSession.getPersistenceSession(RuntimeContextFromSession.java:260)
at
org.apache.isis.core.runtime.persistence.internal.RuntimeContextFromSession.access$000(RuntimeContextFromSession.java:60)
at
org.apache.isis.core.runtime.persistence.internal.RuntimeContextFromSession$2.adapterFor(RuntimeContextFromSession.java:101)
at
org.apache.isis.core.metamodel.specloader.specimpl.ObjectActionContributee.getServiceAdapter(ObjectActionContributee.java:328)
at
org.apache.isis.core.metamodel.specloader.specimpl.ObjectActionContributee.getParameters(ObjectActionContributee.java:139)
at
org.apache.isis.core.metamodel.specloader.specimpl.ObjectActionDefault.getParameterTypes(ObjectActionDefault.java:209)
at
org.apache.isis.core.metamodel.services.swagger.internal.ClassExcluder.exclude(ClassExcluder.java:44)
at
org.apache.isis.core.metamodel.services.swagger.internal.Util$2.accept(Util.java:145)
at
org.apache.isis.core.metamodel.services.swagger.internal.Util$2.accept(Util.java:142)
at org.apache.isis.applib.filter.Filters$6.apply(Filters.java:101)
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:647)
at
com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
at
com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
at com.google.common.collect.Iterators.addAll(Iterators.java:356)
at com.google.common.collect.Lists.newArrayList(Lists.java:147)
at
com.google.common.collect.Collections2$FilteredCollection.toArray(Collections2.java:217)
at java.util.ArrayList.addAll(ArrayList.java:577)
at
org.apache.isis.core.metamodel.specloader.specimpl.ObjectSpecificationAbstract.getObjectActions(ObjectSpecificationAbstract.java:761)
at
org.apache.isis.core.metamodel.services.swagger.internal.Util.actionsOf(Util.java:142)
at
org.apache.isis.core.metamodel.services.swagger.internal.Generation.appendObjectPathsAndDefinitions(Generation.java:183)
at
org.apache.isis.core.metamodel.services.swagger.internal.Generation.generate(Generation.java:116)
at
org.apache.isis.core.metamodel.services.swagger.internal.SwaggerSpecGenerator.generate(SwaggerSpecGenerator.java:44)
at
org.apache.isis.core.metamodel.services.swagger.SwaggerServiceDefault.generateSwaggerSpec(SwaggerServiceDefault.java:69)
at
org.apache.isis.tool.mavenplugin.IsisMojoSwagger.writeSwaggerSpec(IsisMojoSwagger.java:120)
at
org.apache.isis.tool.mavenplugin.IsisMojoSwagger.doExecute(IsisMojoSwagger.java:89)
at
org.apache.isis.tool.mavenplugin.IsisMojoAbstract.execute(IsisMojoAbstract.java:75)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more

here DomainService the subject of the error

https://github.com/ppanconi/superscore/blob/master/dom/src/main/java/domainapp/dom/superscore/Matches.java

Thanks for the support.

Paul

Reply via email to