Skip to content

An object to be cloned is not in the closed state. #517

@markwoon

Description

@markwoon

I am getting this while trying to compile a WDL script:

  [error] InvalidState: An object to be cloned is not in the closed state. Successfully cloned from project: None
        at com.dnanexus.exceptions.DXAPIException$ApiExceptionClass$4.generateException(DXAPIException.java:51)
        at com.dnanexus.exceptions.DXAPIException.getInstance(DXAPIException.java:125)
        at com.dnanexus.DXHTTPRequest.requestImpl(DXHTTPRequest.java:383)
        at com.dnanexus.DXHTTPRequest.request(DXHTTPRequest.java:246)
        at com.dnanexus.DXAPI.projectClone(DXAPI.java:23945)
        at dx.api.DxApi.$anonfun$projectClone$1(DxApi.scala:621)
        at dx.api.DxApi.callObject(DxApi.scala:424)
        at dx.api.DxApi.projectClone(DxApi.scala:621)
        at dx.api.DxApi.cloneDataObject(DxApi.scala:1115)
        at dx.compiler.ApplicationCompiler.createRunSpec(ApplicationCompiler.scala:263)
        at dx.compiler.ApplicationCompiler.apply(ApplicationCompiler.scala:553)
        at dx.compiler.Compiler$BundleCompiler.maybeBuildApplet(Compiler.scala:357)
        at dx.compiler.Compiler$BundleCompiler.$anonfun$apply$1(Compiler.scala:471)
        at scala.collection.IterableOnceOps.foldLeft(IterableOnce.scala:646)
        at scala.collection.IterableOnceOps.foldLeft$(IterableOnce.scala:642)
        at scala.collection.AbstractIterable.foldLeft(Iterable.scala:926)
        at dx.compiler.Compiler$BundleCompiler.apply(Compiler.scala:441)
        at dx.compiler.Compiler.apply(Compiler.scala:494)
        at dxCompiler.Main$.compile(Main.scala:538)
        at dxCompiler.Main$.dispatchCommand(Main.scala:791)
        at dxCompiler.Main$.main(Main.scala:922)
        at dxCompiler.MainApp$.delayedEndpoint$dxCompiler$MainApp$1(Main.scala:927)
        at dxCompiler.MainApp$delayedInit$body.apply(Main.scala:926)
        at scala.Function0.apply$mcV$sp(Function0.scala:39)
        at scala.Function0.apply$mcV$sp$(Function0.scala:39)
        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
        at scala.App.$anonfun$main$1(App.scala:76)
        at scala.App.$anonfun$main$1$adapted(App.scala:76)
        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
        at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
        at scala.collection.AbstractIterable.foreach(Iterable.scala:926)
        at scala.App.main(App.scala:76)
        at scala.App.main$(App.scala:74)
        at dxCompiler.MainApp$.main(Main.scala:926)
        at dxCompiler.MainApp.main(Main.scala)

I'm using 2.13.0.

I can compile (the same scripts) to one project but not another.

Any idea what the problem might be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions