Hi Sofía,

seems Maven, fails to compile your sources. Have you tried commenting out the 
particular line of code that says:

     // domainEvent = AttachmentDomainEvent.class,

Cheers, Andi

On 2020/11/26 21:19:40, Sof��a Canio <canioso...@gmail.com> wrote: 
> Hi, my name is Sofía
> I’m working on a project to load a Truck Checklist; a requirement is 
> uploading photos of the truck to check the status. We use the code of the 
> page 
> https://isis.apache.org/vw/2.0.0-M4/features/blob-attachments.html#image-rendered
> And we had the next problem
> @javax.jdo.annotations.Persistent(defaultFetchGroup="false", columns = {
>         @javax.jdo.annotations.Column(name = "attachment_name"),
>         @javax.jdo.annotations.Column(name = "attachment_mimetype"),
>         @javax.jdo.annotations.Column(name = "attachment_bytes", jdbcType = 
> "BLOB", sqlType = "BLOB")
> })
> @Property(
>         domainEvent = AttachmentDomainEvent.class,
>         optionality = Optionality.OPTIONAL
> )
> private Blob attachment;
> 
> public Blob getAttachment() { return attachment; }
> public void setAttachment(final Blob attachment) { this.attachment = 
> attachment; }
> 
>  
> The Stacktrace is
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) 
> on project Sistema-Checklist-module-simple: Compilation
>  failure
> [ERROR] 
> /C:/Users/Soofi/PROYECTOS/Sistema-Checklist/module-simple/src/main/java/domainapp/modules/simple/dominio/checklist/Checklist.java:[100,27]
>  cannot find symbol
> [ERROR]   symbol:   class AttachmentDomainEvent
> [ERROR]   location: class domainapp.modules.simple.dominio.checklist.Checklist
> [ERROR]
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile 
> (default-compile) on project Sistema-Checklist-module-simple: Compilation 
> failure
> /C:/Users/Soofi/PROYECTOS/Sistema-Checklist/module-simple/src/main/java/domainapp/modules/simple/dominio/checklist/Checklist.java:[100,27]
>  cannot find symbol
>   symbol:   class AttachmentDomainEvent
>   location: class domainapp.modules.simple.dominio.checklist.Checklist
> 
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:215)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
>     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:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: 
> Compilation failure
> /C:/Users/Soofi/PROYECTOS/Sistema-Checklist/module-simple/src/main/java/domainapp/modules/simple/dominio/checklist/Checklist.java:[100,27]
>  cannot find symbol
>   symbol:   class AttachmentDomainEvent
>   location: class domainapp.modules.simple.dominio.checklist.Checklist
> 
>     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute 
> (AbstractCompilerMojo.java:858)
>     at org.apache.maven.plugin.compiler.CompilerMojo.execute 
> (CompilerMojo.java:129)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:137)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
>     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:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <goals> -rf :Sistema-Checklist-module-simple
>  
> We use the version 1.17 of Isis, is a problem? 
> 
> 

Reply via email to