Skip to content
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

Failed to execute goal org.eolang:eo-maven-plugin:0.35.9:xmir-to-phi (convert-xmir-to-phi) #2938

Open
volodya-lombrozo opened this issue Mar 13, 2024 · 13 comments
Assignees
Labels

Comments

@volodya-lombrozo
Copy link
Member

I have the following configuration of eo-maven-plugin which executes xmir-to-phi goal:

<plugin>
  <groupId>org.eolang</groupId>
  <artifactId>eo-maven-plugin</artifactId>
  <version>0.35.9</version>
  <executions>
    <execution>
      <id>convert-xmir-to-eo</id>
      <phase>process-classes</phase>
      <goals>
        <goal>print</goal>
      </goals>
      <configuration>
        <printSourcesDir>${project.build.directory}/generated-sources/jeo-xmir</printSourcesDir>
        <printOutputDir>${project.build.directory}/generated-sources/jeo-eo</printOutputDir>
      </configuration>
    </execution>
    <execution>
      <id>convert-xmir-to-phi</id>
      <phase>process-classes</phase>
      <goals>
        <goal>xmir-to-phi</goal>
      </goals>
      <configuration>
        <phiInputDir>${project.build.directory}/generated-sources/jeo-xmir</phiInputDir>
        <phiOutputDir>${project.build.directory}/generated-sources/jeo-phi</phiOutputDir>
      </configuration>
    </execution>
  </executions>
</plugin>

Inside jeo-xmir I have the following files:
OriginalException.xmir.txt
SomeException.xmir.txt

When I run the plugin I get the following exception:

[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.35.9:xmir-to-phi (convert-xmir-to-phi) on project jeo-it: 'org.eolang.maven.PhiMojo@69f3e556' execution failed: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..8694..      </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eolang:eo-maven-plugin:0.35.9:xmir-to-phi (convert-xmir-to-phi) on project jeo-it: 'org.eolang.maven.PhiMojo@69f3e556' execution failed
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: org.apache.maven.plugin.MojoFailureException: 'org.eolang.maven.PhiMojo@69f3e556' execution failed
    at org.eolang.maven.SafeMojo.exitError (SafeMojo.java:386)
    at org.eolang.maven.SafeMojo.execute (SafeMojo.java:291)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: java.util.concurrent.ExecutionException: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..8694..      </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at java.util.concurrent.FutureTask.report (FutureTask.java:122)
    at java.util.concurrent.FutureTask.get (FutureTask.java:205)
    at org.eolang.maven.SafeMojo.execWithTimeout (SafeMojo.java:338)
    at org.eolang.maven.SafeMojo.execute (SafeMojo.java:273)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..8694..      </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:58)
    at org.cactoos.iterator.Mapped$1.next (Mapped.java:68)
    at org.cactoos.iterator.IteratorEnvelope.next (IteratorEnvelope.java:59)
    at org.cactoos.scalar.Folded.value (Folded.java:82)
    at org.cactoos.number.NumberOfScalars.lambda$new$1 (NumberOfScalars.java:68)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.number.NumberOfScalars.intValue (NumberOfScalars.java:93)
    at org.cactoos.number.NumberEnvelope.intValue (NumberEnvelope.java:55)
    at org.eolang.maven.PhiMojo.exec (PhiMojo.java:132)
    at org.eolang.maven.SafeMojo.lambda$execWithTimeout$4 (SafeMojo.java:335)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.io.IOException: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..8694..      </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at org.cactoos.func.UncheckedFunc.lambda$apply$0 (UncheckedFunc.java:56)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.func.UncheckedFunc.apply (UncheckedFunc.java:57)
    at org.cactoos.scalar.Checked.wrappedException (Checked.java:100)
    at org.cactoos.scalar.Checked.value (Checked.java:85)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.iterator.Mapped$1.next (Mapped.java:68)
    at org.cactoos.iterator.IteratorEnvelope.next (IteratorEnvelope.java:59)
    at org.cactoos.scalar.Folded.value (Folded.java:82)
    at org.cactoos.number.NumberOfScalars.lambda$new$1 (NumberOfScalars.java:68)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.number.NumberOfScalars.intValue (NumberOfScalars.java:93)
    at org.cactoos.number.NumberEnvelope.intValue (NumberEnvelope.java:55)
    at org.eolang.maven.PhiMojo.exec (PhiMojo.java:132)
    at org.eolang.maven.SafeMojo.lambda$execWithTimeout$4 (SafeMojo.java:335)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..8694..      </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at java.util.concurrent.FutureTask.report (FutureTask.java:122)
    at java.util.concurrent.FutureTask.get (FutureTask.java:191)
    at org.cactoos.scalar.Mapped.lambda$new$0 (Mapped.java:58)
    at org.cactoos.scalar.ScalarEnvelope.value (ScalarEnvelope.java:53)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.iterator.Mapped$1.next (Mapped.java:68)
    at org.cactoos.iterator.IteratorEnvelope.next (IteratorEnvelope.java:59)
    at org.cactoos.scalar.Folded.value (Folded.java:82)
    at org.cactoos.number.NumberOfScalars.lambda$new$1 (NumberOfScalars.java:68)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.number.NumberOfScalars.intValue (NumberOfScalars.java:93)
    at org.cactoos.number.NumberEnvelope.intValue (NumberEnvelope.java:55)
    at org.eolang.maven.PhiMojo.exec (PhiMojo.java:132)
    at org.eolang.maven.SafeMojo.lambda$execWithTimeout$4 (SafeMojo.java:335)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)
Caused by: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..8694..      </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at com.jcabi.xml.ListWrapper.get (ListWrapper.java:158)
    at org.eolang.maven.PhiMojo.translated (PhiMojo.java:158)
    at org.eolang.maven.PhiMojo.lambda$exec$0 (PhiMojo.java:121)
    at org.cactoos.scalar.CallableEnvelope.call (CallableEnvelope.java:53)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)

Full log is here:
build.log

@volodya-lombrozo
Copy link
Member Author

@maxonfjvipon Please, take a look.

@maxonfjvipon
Copy link
Member

maxonfjvipon commented Mar 15, 2024

@volodya-lombrozo I improved logging in EO 0.35.10, now it prints what exact file it's processing. Please update show me an error you'll get

@volodya-lombrozo
Copy link
Member Author

@maxonfjvipon The 0.35.10 version still has some problems:

[ERROR] XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..13086..     </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.705 s
[INFO] Finished at: 2024-03-15T11:31:50+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.35.10:xmir-to-phi (convert-xmir-to-phi) on project jeo-it: 'org.eolang.maven.PhiMojo@71f29d91' execution failed: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..13086..     </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eolang:eo-maven-plugin:0.35.10:xmir-to-phi (convert-xmir-to-phi) on project jeo-it: 'org.eolang.maven.PhiMojo@71f29d91' execution failed
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: org.apache.maven.plugin.MojoFailureException: 'org.eolang.maven.PhiMojo@71f29d91' execution failed
    at org.eolang.maven.SafeMojo.exitError (SafeMojo.java:386)
    at org.eolang.maven.SafeMojo.execute (SafeMojo.java:291)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: java.util.concurrent.ExecutionException: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..13086..     </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at java.util.concurrent.FutureTask.report (FutureTask.java:122)
    at java.util.concurrent.FutureTask.get (FutureTask.java:205)
    at org.eolang.maven.SafeMojo.execWithTimeout (SafeMojo.java:338)
    at org.eolang.maven.SafeMojo.execute (SafeMojo.java:273)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..13086..     </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:58)
    at org.cactoos.iterator.Mapped$1.next (Mapped.java:68)
    at org.cactoos.iterator.IteratorEnvelope.next (IteratorEnvelope.java:59)
    at org.cactoos.scalar.Folded.value (Folded.java:82)
    at org.cactoos.number.NumberOfScalars.lambda$new$1 (NumberOfScalars.java:68)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.number.NumberOfScalars.intValue (NumberOfScalars.java:93)
    at org.cactoos.number.NumberEnvelope.intValue (NumberEnvelope.java:55)
    at org.eolang.maven.PhiMojo.exec (PhiMojo.java:141)
    at org.eolang.maven.SafeMojo.lambda$execWithTimeout$4 (SafeMojo.java:335)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.io.IOException: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..13086..     </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at org.cactoos.func.UncheckedFunc.lambda$apply$0 (UncheckedFunc.java:56)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.func.UncheckedFunc.apply (UncheckedFunc.java:57)
    at org.cactoos.scalar.Checked.wrappedException (Checked.java:100)
    at org.cactoos.scalar.Checked.value (Checked.java:85)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.iterator.Mapped$1.next (Mapped.java:68)
    at org.cactoos.iterator.IteratorEnvelope.next (IteratorEnvelope.java:59)
    at org.cactoos.scalar.Folded.value (Folded.java:82)
    at org.cactoos.number.NumberOfScalars.lambda$new$1 (NumberOfScalars.java:68)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.number.NumberOfScalars.intValue (NumberOfScalars.java:93)
    at org.cactoos.number.NumberEnvelope.intValue (NumberEnvelope.java:55)
    at org.eolang.maven.PhiMojo.exec (PhiMojo.java:141)
    at org.eolang.maven.SafeMojo.lambda$execWithTimeout$4 (SafeMojo.java:335)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.util.concurrent.ExecutionException: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..13086..     </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at java.util.concurrent.FutureTask.report (FutureTask.java:122)
    at java.util.concurrent.FutureTask.get (FutureTask.java:191)
    at org.cactoos.scalar.Mapped.lambda$new$0 (Mapped.java:58)
    at org.cactoos.scalar.ScalarEnvelope.value (ScalarEnvelope.java:53)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.iterator.Mapped$1.next (Mapped.java:68)
    at org.cactoos.iterator.IteratorEnvelope.next (IteratorEnvelope.java:59)
    at org.cactoos.scalar.Folded.value (Folded.java:82)
    at org.cactoos.number.NumberOfScalars.lambda$new$1 (NumberOfScalars.java:68)
    at org.cactoos.scalar.Checked.value (Checked.java:76)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.number.NumberOfScalars.intValue (NumberOfScalars.java:93)
    at org.cactoos.number.NumberEnvelope.intValue (NumberEnvelope.java:55)
    at org.eolang.maven.PhiMojo.exec (PhiMojo.java:141)
    at org.eolang.maven.SafeMojo.lambda$execWithTimeout$4 (SafeMojo.java:335)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)
Caused by: com.jcabi.xml.ListWrapper$NodeNotFoundException: XPath 'phi/text()' not found in '<?xml version="1.0" encoding="UTF-8"?>\uA<program ..13086..     </o>\uA   </objects>\uA</program>\uA': Index (0) is out of bounds (size=0)
    at com.jcabi.xml.ListWrapper.get (ListWrapper.java:158)
    at org.eolang.maven.PhiMojo.translated (PhiMojo.java:167)
    at org.eolang.maven.PhiMojo.lambda$exec$0 (PhiMojo.java:127)
    at org.cactoos.scalar.CallableEnvelope.call (CallableEnvelope.java:53)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)

Full log:
build.log

@maxonfjvipon
Copy link
Member

maxonfjvipon commented Mar 15, 2024

@volodya-lombrozo in you log I didn't find confirmation of succeeded translation of files: org/eolang/innerclasses/Top$TopInnerInstance.xmir and org/eolang/innerclasses/Top$TopInnerStatic.xmir Could you please provide them to me?

@volodya-lombrozo
Copy link
Member Author

@maxonfjvipon
Archive.zip

@maxonfjvipon
Copy link
Member

@volodya-lombrozo my test with them passes as well. Please provide me all the XMIRs you're trying to translate to phi

@maxonfjvipon
Copy link
Member

maxonfjvipon commented Mar 15, 2024

@volodya-lombrozo I suspect it can be package-info.xmir that ruins all the build. Let's find out

@volodya-lombrozo
Copy link
Member Author

@maxonfjvipon package-info.java Is translated to:

{
  ⟦
    org ↦ ⟦
      eolang ↦ ⟦
        spring ↦ ⟦
          j$package-info ↦ ⟦
            access ↦ Φ.org.eolang.int(
              α0 ↦ Φ.org.eolang.bytes(
                Δ ⤍ 00-00-00-00-00-00-16-00
              )
            ),
            supername ↦ Φ.org.eolang.string(
              α0 ↦ Φ.org.eolang.bytes(
                Δ ⤍ 6A-61-76-61-2F-6C-61-6E-67-2F-4F-62-6A-65-63-74
              )
            ),
            interfaces ↦ Φ.org.eolang.tuple.empty
          ⟧,
          λ ⤍ Package
        ⟧,
        λ ⤍ Package
      ⟧,
      λ ⤍ Package
    ⟧
  ⟧
}

@volodya-lombrozo
Copy link
Member Author

@maxonfjvipon Actually all of the xmir files were translated to eo. The only exception is this two files:
org/eolang/innerclasses/Top$TopInnerInstance.xmir and org/eolang/innerclasses/Top$TopInnerStatic.xmir
They don't have corresponding .eo files

maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Mar 15, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Mar 15, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Mar 15, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Mar 15, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Mar 15, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Mar 15, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Mar 15, 2024
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Mar 15, 2024
@maxonfjvipon
Copy link
Member

@volodya-lombrozo please run you pipeline again with version 0.35.11. I hope it should say what exact file can't be processed

@maxonfjvipon
Copy link
Member

@volodya-lombrozo still an issue?

@volodya-lombrozo
Copy link
Member Author

@maxonfjvipon Yes, it's still an issue. I get the following exception:

[ERROR] net.sf.saxon.style.XSLMessage@a43feb: Attribute @line is absent at "access-j$d"
[ERROR] #fatalError(): Processing terminated by xsl:message at line 65 in add-refs.xsl; SystemID: file:///org/eolang/parser/add-refs.xsl; Line#: 65; Column#: 42

for the following object:

<o base="int" data="bytes" name="access-j$d">00 00 00 00 00 00 00 02</o>

The full log and processing file apply below

build.log
A.xmir.txt

@volodya-lombrozo
Copy link
Member Author

I don't clearly understand why I need to add lines to objects. Some objects might be auto-generated. Moreover I believe we don't have to leverage on line numbers during compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants