Results 1 to 5 of 5

Thread: Error upgrading Architect App from 3.04 to 3.10 - Mixed-Mode x-compile and microload

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2013
    Posts
    46
    Vote Rating
    4
      0  

    Default Error upgrading Architect App from 3.04 to 3.10 - Mixed-Mode x-compile and microload

    Hi, I'm getting this error after upgrading an app from 3.0.4 to 3.1.0:

    Exception in thread "Thread-22" com.sencha.exceptions.BasicException: The following error occurred while executing this line:

    /Users/mattkim/Dropbox/work/bridgetax/qi/.sencha/app/build-impl.xml:378: The following error occurred while executing this line:
    /Users/mattkim/Dropbox/work/bridgetax/qi/.sencha/app/init-impl.xml:303: com.sencha.exceptions.ExBuild: Mixed-Mode x-compile and microload markup is currently unsupported
    at com.sencha.exceptions.BasicException.wrap(BasicException.java:54)
    at com.sencha.ant.AntScript.execute(AntScript.java:121)
    at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
    at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
    at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:252)
    at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:593)
    at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:92)
    at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:329)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
    at com.sencha.cli.Command.dispatch(Command.java:43)
    at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:148)
    at com.sencha.cli.Commands.dispatch(Commands.java:64)
    at com.sencha.cli.Commands.dispatch(Commands.java:64)
    at com.sencha.command.Sencha.dispatch(Sencha.java:73)
    at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:124)
    at com.sencha.tools.server.service.tasks.DispatchTask.execute(DispatchTask.java:48)
    at com.sencha.tools.server.service.tasks.BaseServiceTask$1.run(BaseServiceTask.java:38)
    at com.sencha.util.ThreadUtil$1.run(ThreadUtil.java:143)
    at java.lang.Thread.run(Thread.java:745)


    Is this a sencha cmd error? What can I do here to continue building?

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Vote Rating
    185
      0  

    Default

    Hi--

    Please see this thread: https://www.sencha.com/forum/showthr...=1#post1015539

    Thanks!
    Joel

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2013
    Posts
    46
    Vote Rating
    4
      0  

    Default

    Have tried both putting everything in app.json and just using x-compile in index.html. Either way builds fine, but my apps don't launch.

  4. #4
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Vote Rating
    185
      0  

    Default

    Quote Originally Posted by mattkim View Post
    Have tried both putting everything in app.json and just using x-compile in index.html. Either way builds fine, but my apps don't launch.
    Now that the builds are working, are you receiving any errors in the console when you try to run the application?

    Thanks
    Joel

  5. #5
    Sencha Premium Member
    Join Date
    Oct 2013
    Posts
    46
    Vote Rating
    4
      0  

    Default

    I finally see the issue...the app doesn't work in the built version because one of the external dependencies is referenced after my models. The models require this dependency as it's a custom proxy

    Screen Shot 2016-09-26 at 3.25.23 PM.jpg

    Is used by all the models. This file does get included in the app.js file but after the models are defined. Therefore the launch function is never called because I'm assuming it's waiting for this object. I moved this code to before my models are defined and it works:

    (proxy file)
    Ext.define('QI.proxy.QIProxy', {
    extend: Ext.data.proxy.Ajax,
    alias: 'proxy.qiproxy',



    Ext.define('QI.model.EntryCogDetail', {
    extend: Ext.data.Model,
    fields: [
    {
    mapping: 'company.ownership',
    name: 'ownership'
    }

    ],
    proxy: {
    type: 'qiproxy',
    idParam: '_id',
    url: '/datasets/:datasetId/entries/cogDetail',
    reader: {
    type: 'json',
    idProperty: '_id',
    root: 'data'
    }
    }
    });

    Since app.js is automatically built, how do I define my outside resources before my models?

    This is my index.html:

    <!DOCTYPE HTML>


    <html>
    <head>
    <meta charset="UTF-8">
    <title>QI</title>
    <!-- <x-compile> -->
    <!-- <x-bootstrap> -->
    <link rel="stylesheet" href="bootstrap.css">
    <script src="ext/ext-dev.js"></script>
    <script src="bootstrap.js"></script>
    <script src="app/proxy/QIProxy.js"></script>
    <script src="app/util/Utilities.js"></script>
    <!-- </x-bootstrap> -->
    <script type="text/javascript" src="app.js"></script>
    <!-- </x-compile> -->
    <link rel="stylesheet" href="style.css">
    </head>
    <body>
    </body>
    </html>

Similar Threads

  1. Mixed-Mode x-compile and microload markup is currently unsupported
    By bsougias in forum Sencha Architect 3.x: Bugs
    Replies: 30
    Last Post: 2 Jul 2015, 8:48 AM
  2. Replies: 2
    Last Post: 11 Dec 2014, 1:14 PM
  3. Replies: 2
    Last Post: 19 Feb 2014, 12:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •