apache / royale-asjs

Apache Royale ASJS
Apache License 2.0
372 stars 116 forks source link

mxmlc error: IllegalArgumentException #893

Open nvkanaskar opened 4 years ago

nvkanaskar commented 4 years ago

hello

I am working on migrating Adobe Flex project to Javascript. I installed the binary version of Apache Royale. I tried running the mxmlc on one of my .mxml file. It gave me error Internal error: java.lang.IllegalArgumentException: expected one element but was: <C:\workspace\tissuebank-1.2\jboss-4.2.2.GA\server\default\deploy\catissuecore.war\flexclient_MigrationToJS\biospecimen\Layout.mxml, C:\workspace\tissuebank-1.2\jboss-4.2.2.GA\server\default\deploy\catissuecore.war\flexclient_MigrationToJS\biospecimen\Layout.mxml> com.google.common.collect.Iterators.getOnlyElement(Iterators.java:316)com.google.common.collect.Iterables.getOnlyElement(Iterables.java:254)org.apache.royale.compiler.clients.MXMLJSCRoyale.setupTargetFile(MXMLJSCRoyale.java:1009)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:329)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:265)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:222)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:369)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:304)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:262)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:244)

Can anyone please help/guide. I appreciate any help on this.

Thank you, Nitin Kanaskar

nvkanaskar commented 4 years ago

I am following the instructions on https://apache.github.io/royale-docs/migrate-an-existing-app/migrate-from-flex. Accordingly, I commented all my import flash API lines and tried to compile mxml file with mxmlc compiler. While doing so, I am getting the above error.

Thanks, Nitin Kanaskar