airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-2219) With groovey scripts some of the post job commands with special characters are failing
Date Wed, 04 Jan 2017 21:26:58 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15799391#comment-15799391
] 

Marcus Christie commented on AIRAVATA-2219:
-------------------------------------------

Eroma's error just now

{noformat}
2017-01-04 16:25:12 [pool-7-thread-9] ERROR o.a.a.g.i.t.DefaultJobSubmissionTask - JobSubmission
failed
groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain
an error
 or be trying to use expressions not currently supported): startup failed:
GStringTemplateScript55.groovy: 2: unexpected token: . @ line 2, column 66.
   > out << """abq_job=${baseinp%.*}"""}}
                                 ^

1 error

        at groovy.text.GStringTemplateEngine$GStringTemplate.<init>(GStringTemplateEngine.java:198)
        at groovy.text.GStringTemplateEngine.createTemplate(GStringTemplateEngine.java:110)
        at groovy.text.TemplateEngine.createTemplate(TemplateEngine.java:41)
        at org.apache.airavata.gfac.core.GFacUtils.parseCommands(GFacUtils.java:764)
        at org.apache.airavata.gfac.core.GFacUtils.lambda$createGroovyMap$3(GFacUtils.java:595)
...
{noformat}

> With groovey scripts some of the post job commands with special characters are failing
> --------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-2219
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2219
>             Project: Airavata
>          Issue Type: Bug
>         Environment: https://dev.seagrid.org
>            Reporter: Eroma
>            Assignee: Shameera Rathnayaka
>             Fix For: 0.17
>
>
> when running application Abaqus which has pre job command
> abq_job=${baseinp%.*}
> job submission fails with error  [1] in gfac log.
> [1]
> 2016-11-09 14:46:40 [pool-7-thread-41] ERROR o.a.airavata.gfac.core.GFacUtils - Error
while creating groovy map
> groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may
contain an error or be trying to use expressions not currently supported): startup failed:
> GStringTemplateScript74.groovy: 2: unexpected token: . @ line 2, column 66.
>    > out << """abq_job=${baseinp%.*}"""}}
>                                  ^
> 1 error
>         at groovy.text.GStringTemplateEngine$GStringTemplate.<init>(GStringTemplateEngine.java:198)
>         at groovy.text.GStringTemplateEngine.createTemplate(GStringTemplateEngine.java:110)
>         at groovy.text.TemplateEngine.createTemplate(TemplateEngine.java:41)
>         at org.apache.airavata.gfac.core.GFacUtils.parseCommands(GFacUtils.java:788)
>         at org.apache.airavata.gfac.core.GFacUtils.lambda$createGroovyMap$3(GFacUtils.java:599)
>         at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
>         at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:352)
>         at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
>         at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
>         at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
>         at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>         at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
>         at org.apache.airavata.gfac.core.GFacUtils.createGroovyMap(GFacUtils.java:600)
>         at org.apache.airavata.gfac.impl.task.DefaultJobSubmissionTask.execute(DefaultJobSubmissionTask.java:75)
>         at org.apache.airavata.gfac.impl.GFacEngineImpl.executeTask(GFacEngineImpl.java:773)
>         at org.apache.airavata.gfac.impl.GFacEngineImpl.executeJobSubmission(GFacEngineImpl.java:469)
>         at org.apache.airavata.gfac.impl.GFacEngineImpl.executeTaskListFrom(GFacEngineImpl.java:345)
>         at org.apache.airavata.gfac.impl.GFacEngineImpl.executeProcess(GFacEngineImpl.java:245)
>         at org.apache.airavata.gfac.impl.GFacWorker.executeProcess(GFacWorker.java:227)
>         at org.apache.airavata.gfac.impl.GFacWorker.run(GFacWorker.java:86)
>         at org.apache.airavata.common.logging.MDCUtil.lambda$wrapWithMDC$0(MDCUtil.java:21)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> 2016-11-09 14:46:40 [pool-7-thread-41] ERROR o.a.a.g.i.t.DefaultJobSubmissionTask - JobSubmission
failed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message