-
Notifications
You must be signed in to change notification settings - Fork 146
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
Comments
@maxonfjvipon Please, take a look. |
@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 |
@maxonfjvipon The [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: |
@volodya-lombrozo in you log I didn't find confirmation of succeeded translation of files: |
@volodya-lombrozo my test with them passes as well. Please provide me all the XMIRs you're trying to translate to phi |
@volodya-lombrozo I suspect it can be |
@maxonfjvipon
|
@maxonfjvipon Actually all of the |
@volodya-lombrozo please run you pipeline again with version |
@volodya-lombrozo still an issue? |
@maxonfjvipon Yes, it's still an issue. I get the following exception:
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 |
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. |
@volodya-lombrozo isn't is a duplicate of #3189? |
I have the following configuration of
eo-maven-plugin
which executesxmir-to-phi
goal:Inside
jeo-xmir
I have the following files:OriginalException.xmir.txt
SomeException.xmir.txt
When I run the plugin I get the following exception:
Full log is here:
build.log
The text was updated successfully, but these errors were encountered: