Mxmlc error

I'm trying to set up an ant buildfile that will compile a bunch of small Actionscript projects and do some other small tasks. My problem is with mxmlc when specifying the output SWF file's location.
The relevant stuff from build.xml looks like this:
<exec executable="C:/Program Files (x86)/Adobe/Adobe Flash Builder 4/sdks/3.5.0/bin/mxmlc.exe"
               failonerror="true">
               <arg value="${minisrc}/movie/src/Movie.as"/>
               <arg value="-incremental"/>
               <arg value="-debug=true"/>
               <arg value="-load-config+=${MINIGAME_CONFIG}"/>
               <arg value="-output ${minidist}/blah/Movie.swf"/>
          </exec>
That last argument is what is giving me problems. If I leave it out, mxmlc runs fine but does not place the SWF where I want it. If I try to run it like the above then I get:
command line: Error: unknown configuration variable 'output D:\giantpath/../../dist/blah/Movie.swf'
I've tried putting the path in double quotes and single quotes but nothing seems to work.
I am actually doing the above because of another error with ant/flex/fb/mxmlc:
I would like to use this XML to run mxmlc:
<mxmlc file="${minisrc}/movie/src/Movie.as" output="${minidist}/movie/Movie.swf"
               fork="true" maxmemory="512m" incremental="false" debug="true">
               <load-config filename="${MINIGAME_CONFIG}"/>
          </mxmlc>
However, that gives me the following error:
    [mxmlc] java.lang.NoClassDefFoundError: flex2/tools/Compiler
    [mxmlc] Caused by: java.lang.ClassNotFoundException: flex2.tools.Compiler
    [mxmlc]      at java.net.URLClassLoader$1.run(Unknown Source)
    [mxmlc]      at java.security.AccessController.doPrivileged(Native Method)
    [mxmlc]      at java.net.URLClassLoader.findClass(Unknown Source)
    [mxmlc]      at java.lang.ClassLoader.loadClass(Unknown Source)
    [mxmlc]      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    [mxmlc]      at java.lang.ClassLoader.loadClass(Unknown Source)
    [mxmlc]      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    [mxmlc] Could not find the main class: flex2.tools.Compiler.  Program will exit.
    [mxmlc] Exception in thread "main"
I did some research and set fork to false, but then it is even worse, giving me:
  [mxmlc] D:\projectpath\client\src\com\blah\iface\minigames\IGame.as(1): col: 1 Error: The definition of base class Object was not found.
    [mxmlc] package com.blah.iface.minigames
    [mxmlc] ^
    [mxmlc] D:\projectpath\client\src\com\blah\iface\minigames\IGame.as(23): col: 33 Error: Interface IEventDispatcher was not found.
    [mxmlc] public interface IGame extends IEventDispatcher
    [mxmlc]                               ^
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IFlexDisplayObject)
    [mxmlc] Error: Type was not found or was not a compile-time constant: [flash.display]::IBitmapDrawable.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IFlexDisplayObject)
    [mxmlc] Error: Type was not found or was not a compile-time constant: [flash.events]::IEventDispatcher.
    [mxmlc] Movie_FBNormalFont.as(1): col: 1 Error: Namespace was not found or is not a compile-time constant.
    [mxmlc] ^
    [mxmlc] Movie_FBBoldFont.as(1): col: 1 Error: Namespace was not found or is not a compile-time constant.
    [mxmlc] ^
    [mxmlc] D:\projectpath\client\lib\FlexUnit1Lib.swc(mx/core/FontAsset)
    [mxmlc] Error: Type was not found or was not a compile-time constant: String.
    [mxmlc] D:\projectpath\client\lib\FlexUnit1Lib.swc(mx/core/FlexBitmap)
    [mxmlc] Error: Type was not found or was not a compile-time constant: String.
    [mxmlc] D:\projectpath\client\lib\FlexUnit1Lib.swc(mx/core/FlexBitmap)
    [mxmlc] Error: Type was not found or was not a compile-time constant: BitmapData.
    [mxmlc] D:\projectpath\client\lib\FlexUnit1Lib.swc(mx/core/FlexBitmap)
    [mxmlc] Error: Type was not found or was not a compile-time constant: String.
    [mxmlc] D:\projectpath\client\lib\FlexUnit1Lib.swc(mx/core/FlexBitmap)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Boolean.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/utils/NameUtil)
    [mxmlc] Error: Type was not found or was not a compile-time constant: DisplayObject.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/utils/NameUtil)
    [mxmlc] Error: Type was not found or was not a compile-time constant: String.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/utils/NameUtil)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Object.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/utils/NameUtil)
    [mxmlc] Error: Type was not found or was not a compile-time constant: String.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IRepeaterClient)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Array.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IRepeaterClient)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Array.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IRepeaterClient)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Boolean.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IRepeaterClient)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Array.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IRepeaterClient)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Array.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IRepeaterClient)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Array.
    [mxmlc] D:\projectpath\client\lib\Degrafa_Beta3.1_Flex3.swc(mx/core/IRepeaterClient)
    [mxmlc] Error: Type was not found or was not a compile-time constant: Array.
So, it'd be great if anyone could help me getting one of these two methods to work.

Thank you for the response,
I should have mentioned in my first post that I am running Windows 7 64-bit. Also, I was defining FLEX_HOME in this manner:
<property file="../build.properties"/>
And the contents of that file are:
FLEX_HOME=C:/Program Files (x86)/Adobe/Adobe Flash Builder 4/sdks/3.5.0
But I get the NoClassDefFoundError.
If I define FLEX_HOME inside build.xml with a property tag like this:
<property name="FLEX_HOME" location="C:/Program Files (x86)/Adobe/Adobe Flash Builder 4/sdks/3.5.0"/>
I get the same error, NoClassDefFoundError.

Similar Messages

  • Mxmlc: Error: Problem finding external Model

    Hi,
    I am currently trying to compile a flex project with the
    mxmlc compiler. Unfortunately I always get this error message:
    Error: Problem finding external Model: config.xml
    It seems as if this resource cannot be found by the compiler.
    All source-paths and libs are are set as in the
    .actionScriptProperties file. Other resources such as style sheets
    can be found without any problem.
    Furthermore, when I write the xml model inline or if I
    provide the relative path inline the compiler understands that and
    does not show the error.
    <mx:Model id="config" source="config.xml"/> => does
    not work
    <mx:Model id="config" source="../config/config.xml"/>
    => works
    What can I do to tell the parser where the config.xml file is
    located?

    How can changing the project's properties affect asdoc.exe if I run it from the command line?
    I've tried running it from the bin folder and from the project's src folder always getting the same error.
    I went to 'Flex Build Path' in the project's properties window. It contains two tabs: 'Source path' and 'Library Path'. No 'Assets' tab.

  • Context-root="" in ant script still reports missing in mxmlc

    Hi, I keep getting an error for this:
    <mxmlc
    file="${project.src}/main.mxml"
    output="${build.debug}/main.swf"
    locale="${LOCALE}"
    static-rsls="false"
    accessible="false"
    use-network="false"
    services="${flexRemotingServices}"
    incremental="true"
    context-root=""
    >
       [mxmlc] Error: The services configuration includes a channel-definition 'java-polling-amf' that has an endpoint with a context.root token but a context root has not been defined. Please specify a context-root compiler argument.

    the solution is to use a space ie
    context-root=" "

  • AddElement causes loader to freeze, but no error

    Hello all,
    I've got a fairly simple little component which extends spark.components.Group. It adds a VGroup instance using addElement(), and then a number of Buttons to the VGroup. The problem that I am encountering is that when I add the buttons using addElement to the VGroup, the preloader for the swf just freezes when it reaches 100%. No errors are reported on screen or in the log file, and the compiler runs cleanly. I've tried this on beta 2 and a release for a week or two ago (4.0.0.13368). I've also tried addChild(), but that does produce an error.
    This is basically what I am using:
    var tmp:spark.components.Button;
    var i:int, iLen:int;
    for ( i=0, iLen=5; i<iLen ; i++ )
         tmp = new spark.components.Button();
         tmp.width = unscaledWidth;
         tmp.height = iHeight;
         tmp.label = i;
         _vGroup.addElement( tmp );
    If I comment out the addElement line, then the swf completes and loads, but obviously my buttons aren't on the stage.
    I should also say that if I construct an array of the button elements and then set the mxmlContent property of _vGroup to be that array, it works well. But the documentation suggests that doing this is bad, and that the recommended API of addElement should be used...
    Can anyone suggest what I'm doing wrong?
    Many thanks,
    Allan

    Hi David,
    Thanks for following up on this!
    I tried your code, but mxmlc errors out for me:
    /Flex/tmp.mxml(14):  Error: Constructor functions must be instance methods.
    private var tmp:Button = new Button();
    However, making 'tmp' a local variable for the init complete function allows it to compile for me and run successfully. Here is an example code clip which shows the problem I'm seeing:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
         xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx" >
    <fx:Script>
    <![CDATA[
    import mx.events.FlexEvent;
    import spark.components.Button;
    import spark.components.VGroup;
    private var _vGroup:VGroup = null;
    override protected function createChildren():void
         super.createChildren();
         if ( !_vGroup )
              _vGroup = new VGroup();
              addElement( _vGroup );
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
         super.updateDisplayList(unscaledWidth, unscaledHeight);
         var tmp:Button;
         for ( var i:int=0,iLen:int=10 ; i<iLen ; i++ )
              tmp = new Button();
              tmp.width = unscaledWidth;
              tmp.height = 20;
              tmp.label = String(i);
              _vGroup.addElement( tmp );
    ]]>
    </fx:Script>
    </s:Application>
    Hopefully it will do the same for you! Sorry - I should have posted this in the first place...
    Regards,
    Allan

  • ASC 2.0 Preview 2 Bug - Conditional Compilation around a constructor fails

    Is this the right place to be reporting bugs?
    Source class:
    public class Something
    CONFIG::debug
    public function Something(id:uint)
    CONFIG::release
    public function Something()
    In another class:
    CONFIG::debug
    var q:Something = new Something(10);
    Compiling with Additional Compiler Arguments set to "-define+=CONFIG::debug,true -define+=CONFIG::release,false" results in the following warnings and errors:
        [mxmlc] Warning: return value for function 'Something' has no type declaration.
        [mxmlc]                               public function Something(id:uint)
        [mxmlc]                                               ^
        [mxmlc] Error: Incorrect number of arguments.  Expected no more than 0
        [mxmlc]                                         var q:Something = new Something(10);
        [mxmlc]                                                           ^

    I could reproduce this issue with ASC 2. I've logged this as bug 3339009.
    I'm guessing you have a more complex scenario in mind, but the workaround for this simple case might be to use default arguments to make the constructor parameter optional?
            public function Something(id:uint=0)
    The bug does seem to impact constructors. Another workaround for now is to use a conditional factory pattern?
    package
    public class Something
        public function Something(id:uint=0)
            this.id = id;
          private var id:uint;
        CONFIG::debug {
            public static function createInstance(id:uint):Something
                return new Something(id);
       CONFIG::release {
            public static function createInstance():Something
                return new Something();

  • ANT Tasks Fail with Flex 4.5 SDK

    Hi, I am trying to build the StrobeMediaPlayback project with the build.xml found in the trunk. I am using the ant -v to show you the output here:
    compile.unittest:
        [mkdir] Created dir: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build/StrobeMediaPlaybackTest
        [mxmlc] Loading configuration file /Users/dave/Code/svn/StrobeMediaPlayback/trunk/player/StrobeMediaPlaybackTest/StrobeMedia PlaybackTest-build-config.xml
        [mxmlc] /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.flexunit_4.0.1.277662/flexunitframework/libs/version4libs /Common/flexunit_0.9.swc(mx.core:ScrollControlBase)
        [mxmlc]
        [mxmlc] Error: Declaration of style 'textDecoration' conflicts with previous declaration in /Developer/SDKs/flex_sdk_4/frameworks/libs/spark.swc(spark.components.supportClasses:Grou pBase).
        [mxmlc]
        [mxmlc] /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.flexunit_4.0.1.277662/flexunitframework/libs/version4libs /Common/flexunit_0.9.swc(mx.controls:Button)
        [mxmlc]
        [mxmlc] Error: Declaration of style 'textDecoration' conflicts with previous declaration in /Developer/SDKs/flex_sdk_4/frameworks/libs/spark.swc(spark.components.supportClasses:Grou pBase).
        [mxmlc]
      [antcall] Exiting /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml.
      [antcall] Exiting /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml.
    BUILD FAILED
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:45: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:55: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:55: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    ... 17 more
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    ... 30 more
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at flex.ant.FlexTask.executeInProcess(Unknown Source)
    at flex.ant.FlexTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    ... 42 more
    --- Nested Exception ---
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:55: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    ... 30 more
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at flex.ant.FlexTask.executeInProcess(Unknown Source)
    at flex.ant.FlexTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    ... 42 more
    --- Nested Exception ---
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at flex.ant.FlexTask.executeInProcess(Unknown Source)
    at flex.ant.FlexTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    ... 42 more
    --- Nested Exception ---
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at flex.ant.FlexTask.executeInProcess(Unknown Source)
    at flex.ant.FlexTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Total time: 30 seconds
    dave$

    the flex tasks for 4.6 are pretty unreliable for me when deploying to networks

  • ASC2.0 & flash builder 4.7 inconsistencies

    I am trying to upgrade my Ant build script to build my project.
    First I managed to get the project to build and run fine within flash builder 4.7, fixing the errors that come up.
    But now when I installed the AIR 3.4 SDK with ASC2.0 and use the ant script, I get a new code error. This could possibly be that the ant script is building more things than flash builder but I don't think so.
    Anyways the error is in this file:
    http://code.google.com/p/as3yaml/source/browse/tags/0.4.1/org/as3yaml/Emitter.as line 134
      [mxmlc] Error: 'var' is not allowed here
        [mxmlc]         private static var defInit0 : Map = new HashMap();
        [mxmlc]         ^
    This code looks a bit strange, but any input would be good, I find it at least strange that this does not happen in flash builder 4.7 but happens when I use Air SDK 3.4 with ASC2.0
    UPDATE:
    Managed to fix it just by putting these static variables outside of the static scope. However now When I am trying to package the app (IOS packager) I get Initial window content is invalid.
    what is there now is the name of the SWF file, that I was building.
    Any ideas what maybe causing that?
    Are the parameter and compatability issues listed somewhere for the new command line tools (in this case adt packager)?

    Hi ,
    Were you able to build ipa successfully using AIR 3.1 in FB 4.6 ?
    Is the issue reproducible for a particular project or on all the projects ?
    Please share the build.xml , debug and release swf, app.xml file .
    You can also mail me at [email protected]
    Than

  • OutOfMemoryError when compiling my app with Ant

    I'm having a hard time compiling my application using Flex 3 Ant tasks. When I compile it in Flex Builder, using the default compiler, everything works fine. But when I try to build it from the command line, I always get the following error:
    [mxmlc] Error: Java heap space
    [mxmlc] java.lang.OutOfMemoryError: Java heap space
    I have already tried setting the following in FlexBuilder.ini and ANT_OPTS
    -Xms768m-Xmx1024m-XX:MaxPermSize=256m-XX:PermSize=64m
    Still giving the same error. Please let me know your suggestions.
    -Thanks in Advance.

    The FlexBuilder.ini has nothing to do with running a command line Ant build. Try specifying the jvmargs inside the <mxmlc> task. Example"
    <mxmlc ...>
    <jvmarg line="-Xmx512m"/>
    </mxmlc>
    Jason San Jose
    Software Engineer, Flash Builder

  • How to resolve the "Builld error mxmlc task failed" in flex4 web application

    hi all,
    I am using flex 4 mxml web application wiht as3. when i deploying this project i am facing the folling error.
    Environment:
    Flex 3.5 SDK
    Flash builder 4 .                 APPLICATION NAME: BillProcess
    Ant compile tasks
    ============
        <property name="FLEX_HOME" value="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0/>
        <property name="JAVA_HOME" value="C:\Program Files\Java\jdk1.6.0_06"/>
        <property name="JRE_HOME" value="C:\Program Files\Java\jre1.6.0_06"/>
    ERROR:
    init:
    [ippprojectproperties] qbServer = workplace.intuit.com
       [delete] Deleting directory C:\Documents and Settings\TIVL\Adobe Flash Builder 4\BillProcess\Dev
        [mkdir] Created dir: C:\Documents and Settings\TIVL\Adobe Flash Builder 4\BillProcess\Dev
    checkForCustomBuild:
    custombuild:
    dependentProjects:
    compile:
    [ippflexbuild] Parsing: C:\Documents and Settings\TIVL\Adobe Flash Builder 4\BillProcess/.actionScriptProperties
    BUILD FAILED
    C:\Documents and Settings\TIVL\Adobe Flash Builder 4\BillProcess\ippbuild.xml:101: mxmlc task failed
    Total time: 16 seconds.
    HOW TO RESOLVE THIS.
    please share your useful suggession,
    cheers,
    B.venkatesan.

    hello,
    Check out this link http://www.kirupa.com/forum/showthread.php?309387-ant-mxmlc-task-don-t-compile-with-FlexSD K-4 this may solve your problem.
                         Gajanan Hiroji | [email protected] | www.isacglobal.com

  • How to solve "Error: Invalid Embed directive in stylesheet - can't resolve source" while building using mxmlc.exe on command prompt

    Hi,
    Currently, I am developing a powershell script for Flex build automation.
    I found some problem and have been trying to search any references and tried any ways to fix it but It did not work.
    I am using compc.exe for compiling the libraries and it works fine.
    I compiled css files into swf files using mxmlc.exe and it works fine.
    However, I have a problem while building my main application (mxml file).
    It complains about embedded resources.
    I run this command, it works fine:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\styleLang.css" -output "C:\{somePath}\FlashClient_deploy\styleLang.swf"
    However, when I tried to run these command on cmd for testing:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\FlashClient.mxml" -load-config "C:\{somePath}\FlashClient\src\dump_config_temp.xml" -output "C:\{somePath}\FlashClient_deploy\flashclient_test.swf"
    I got a lot of this error message:
    this is my folder structure:
      FlashClient
      |
      |---assets
      |---src
          |
          |---FlashClient.mxml
          |---FlashClient.as
          |---FlashClientStyleLoopup.css
          |---styleLang
    Already tried to add / at the beginning of the relative paths but It did not work.
    Also tried to compile one of the image to a swc file and include it on the dump_config, but also did not work. something similar with Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding using Embed tag
    Does anyone know how flex builder resolve the relative path to make the embedded resources work? or how to fix this?
    I've been trying to work on it for days but haven't had any luck.
    Will be really appreciate it if someone could help me with this.
    Many Thanks.

    Hi,
    make sure you are using 32 bit Java JDK. Check that your systems variables CLASSPATH, JAVA_HOME are pointing to correct 32 bit Java JDK folder (e.g. CLASSPATH=C:\Program Files (x86)\Java\jdk1.8.0_25 and JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_25). Also make sure you have 32 bit Java JDK's "bin" folder in your system's variable PATH.

  • The mxmlc compiler displays the compilation errors in Japanese - and I want them in English!

    Working in a Japanese company I have to use a machine with
    Windows XP in Japanese. The thing is that I can barely read this
    language so it's really depressing when most Java apps (and Flex,
    through Eclipse, is one of them) outsmart themselves and default to
    displaying their UI strings/messages in Japanese
    without giving the user the ability to select another
    language.
    When compiling Flex apps using Flex Builder 2, the mxmlc
    compiler is internally called by the IDE to perform the compilation
    and then its output is displayed in the Problems View.
    Well, the English version of mxmlc, has all its messages
    (compilation warnings, errors etc) translated into Japanese (as far
    as I can tell, they are hardwired into the exe). So although I'm
    using the English version of the FB2,
    with -locale en_US specified as an argument for the
    compiler, all the compilation erros are reported in Japanese!
    Even after changes in "flex-config.xml" and "jvm.config" as
    you can see below, the compilation errors are still in Japanese. I
    started to doubt that there's a solution to this problem but I
    really hope there is one.
    TIA,
    .x.
    Here are the relevant portions of my config files and an
    example of mxmlc's output (Japanese might not display correctly):
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\frameworks\flex-config.xml --
    <flex-config>
    <compiler>
    <!-- Turn on generatation of accessible swfs. -->
    <accessible>false</accessible>
    <!-- Specifies the locale for internationalization.
    -->
    <locale>en_US</locale>
    </compiler>
    </flex-config>
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\bin\jvm.config --
    # Arguments to VM
    java.args=-Xmx384m -Dsun.io.useCanonCaches=false
    -Duser.language=en
    -- mxmlc invoked on the command line --
    mxmlc -o ASCIIArt -locale en_US ASCIIArt.mxml
    Loading configuration file C:\Program Files\Adobe\Flex
    Builder 2\Flex SDK 2\frameworks\flex-config.xml
    ASCIIArt\AsciiArtBuilder.as(7): col: 45 Error:
    定義
    com.example.programmingas3.asciiArt:BitmapToAsciiConverter
    が見つかりません。
    import
    com.example.programmingas3.asciiArt.BitmapToAsciiConverter;
    ^
    ASCIIArt\AsciiArtBuilder.as(8): col: 45 Error:
    定義 com.example.programmingas3.asciiArt:Image
    が見つかりません。
    import com.example.programmingas3.asciiArt.Image;

    inlineblue you are right about the "-locale" switch. I've
    just found this page on live docs:
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001500.html
    with all the compiler options
    I thought that "-metadata.language <code>" (alias
    "-language") sets the language, but it seems that it's only for
    metadata.
    So -locale is out. Thanks for clearing this for me. There's
    one more path left...
    As I wrote in my first message, besides the "-locale en_US"
    compiler option, I am also setting the "user.language" flag in
    jvm.config to "en":
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\bin\jvm.config --
    # Arguments to VM
    java.args=-Xmx384m -Dsun.io.useCanonCaches=false
    -Duser.language=en
    According to the docs:
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001462.html
    this is the standard (only?) way to pass arguments to the JVM. And
    AFAIK "-Duser.language=en" is supposed to set the user language to
    English. But it does not happen... I have to investigate this
    more...

  • Error when try to use cmd tools (copylocale, mxmlc, etc)

    Hi guys,
    I have a Windows 7 64Bits with Java Jdk 1.7.0_25 64Bits (with Jre).
    When I try to use cmd tools that came with Flash Builder 4.7, I get the following error:
    Command: copylocate en_US pt_PT
    Error:
         Error loading: D:\Software\Java\jdk1.7.0_25\jre\bin\server\jvm.dll
    The same error occore when try to use mxmlc.
    I have the JAVA_HOME defined with D:\Software\Java\jdk1.7.0_25
    I allready try to reinstall everything and show me the same error.
    Can anyone help me?
    Thanks,
    Pedro Quintas

    Hello again Joe Bo... and all of others,
    I´m with a doubt after installing the CPU patch, which is related to post-installation tasks. I´m in this momment install the SAP System and it was during this installation that sapinst asked me to install the database and all other activities after this installation that are related to the database, for example, the updating of database patches.
    At README file in chapter 3.3.2 Post Installation Instructions is described the following:
    After installing the patch, perform the following actions:
    1.Load modified .sql files into the database, as explained in Section 3.3.2.1.
    2.Recompile views in the database, if necessary, as explained in Section 3.3.2.2.
    In this momment, as you certainly know, I still don´t have a database because the sap system isn´t yet totally installed (I´m in phase 8 of sapinst wizard).
    I only have to do this "Post Installation Tasks" when I have a database, this database will be created after that phase 8 - so now I don´t need to perform the post steps... am I right?
    Thanks in advance,
    João Dimas - Portugal

  • Intermittent errors with mxmlc

    Hi All,
    I have recently begun to encounter intermittent errors when executing the mxmlc ant task.  This appears to be some sort of timing issue, because I can just re-run the task and have the build run to completion.  The errors that I get vary, but usually are either invalid implicit coercions (with a line number being reported of -1), or attempting to access fields or functions that don't exist (with an actual line number where the error supposedly occurs).  In each of these case, I get many errors, followed by a ton of invalid embed commands.
    As I mentioned before, simply re-running the task will either cause a successful compilation, or a completely different set of errors and line numbers being reported.  This is turning into a very high visibility issue because automated builds are failing, and the only thing that I can do is to tell them to run it again.
    Here is the list of options that I'm sending to mxmlc:
    static-link-runtime-shared-libraries=true
    debug=false
    keep-generated-actionscript=false (have changed to true in an attempt to find the problem)
    incremental=false
    We are using the 4.5.1 "full" SDK, ant 1.8.2, and JDK 1.6.0_30.
    Thank you for any help or insight!

    Hello, Flexers, this discussion has been moved from the Community Help application forum, I hope I did move it to the correct spot!

  • Mxmlc/compc error

    Hi
    I'm trying to setup a Ant script to compile my code, but I keep getting an error regarding an [Embed]
    Kol: 3: Fejl: '/../assets/images/info.png' kan ikke fortolkes til kodeoverførslen
        [compc]
        [compc]           [Embed(source="/../assets/images/info.png")]
        [compc]   ^
        [compc]
        [compc] C:\Documents and Settings\Administrator\.hudson\jobs\ProcessGuide\workspace\src\dafolo\processguide\core\components\AbstractModelCommitingUIComponent.as(46):
    Kol: 3: Fejl: Koden /../assets/images/info.png kan ikke overføres.
    I can't seem to get an english version of the error, but translated directly it says:
    Col: 3: Error:'/../ assets / images / info.png 'can not be interpreted to code transfer
    Col: 3: Error: Code / .. / assets / images / info.png cannot be transferred.
    I've also tried calling it directly from command, but I get the same error.
    I've tried changing the [Embed] a bunch of times, but it just keeps on failing.
    Thanks
    Martin

    Sry, I'll just post my Ant script:
    <project name="ProcessGuide" default="compile">
    <!-- load previously defined configuration properties file -->
    <property file="build.properties" />
    <!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
    <taskdef resource="flexTasks.tasks" classpath="C:/Documents and Settings/Administrator/Desktop/flexTasks.jar"/>
    <!-- Build and output the Main.swf-->
    <target name="compile">
    <compc output="Main.swc">
    <include-sources dir="./src" includes="**/*.as **/*.mxml" />
    <source-path path-element="C:/Documents and Settings/Administrator/Desktop/4.5.0.17689/frameworks"/>
    <compiler.debug>false</compiler.debug>
    <compiler.library-path dir="C:/Documents and Settings/Administrator/Desktop/4.5.0.17689/frameworks" append="true">
                    <include name="libs" />
                </compiler.library-path>
    </compc>
    </target>
     </project>

  • Error #1034 Type Coercion fail with registerClassAlias and nested Vectors

    I'm attempting to use flash.net.registerClassAlias and ByteArray.writeObject in order to serialize/deserialize data with static type information.  It works as you'd expect in the general case but I've run into problems with some nested Vectors that I don't understand.  Hopefully someone can point out if I'm just missing something.
    For what I understand, we must register both the scalar types and a one-deep specification of a Vector for that scalar type in order to use nested Vectors.  For example:
                flash.net.registerClassAlias("TestStructureInner", TestStructureInner);
                flash.net.registerClassAlias("VectorTestInner", Vector.<TestStructureInner> as Class);
    This should allow us to read/write objects of type TestStructureInner, Vector.<TestStructureInner>, and Vector.<Vector.<TestStructureInner>> into ByteArrays.  And in general it seems to work.
    Attached though is a simplified test case that fails, however.  The first time we deserialize the data it works.  The subsequent time, however, we encounter the following runtime error #1034.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304fcb9 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304fbc9 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304fdd1 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304fce1 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304fbf1 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304fec1 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304fad9 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304fa61 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304f9e9 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
        TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Object>@304f971 to __AS3__.vec.Vector.<__AS3__.vec::Vector.<Test0.as$30::TestStructureInner>>.
    Re-registering the class aliases again via flash.net.registerClassAlias works in this test case but isn't 100% for our actual application (I'm reticent to even mention it but it seems relevant).  Is there a step I'm missing here?  Any light shed would be appreciated.
    // mxmlc -debug Test0.as
    package
        import Base64; // http://code.google.com/p/jpauclair-blog/source/browse/trunk/Experiment/Base64/src/Base64.a s
        import flash.net.registerClassAlias;
        import flash.events.Event;
        import flash.utils.ByteArray;
        import flash.display.Sprite;
        import flash.display.Stage;
        import flash.system.System;
        public class Test0 extends Sprite
            static private const OPERATION_SERIALIZE:uint = 0;
            static private const OPERATION_DESERIALIZE_AND_FAIL:uint = 1;
            static private const OPERATION_DESERIALIZE_AND_SUCCEED:uint = 2;
            static private var staticStage:Stage;
            private var bar:Vector.<TestStructure>;
    * common functions
            static private function registerClassAliases():void
                flash.net.registerClassAlias("TestStructureInner", TestStructureInner);
                flash.net.registerClassAlias("VectorTestInner", Vector.<TestStructureInner> as Class);
                flash.net.registerClassAlias("TestStructure", TestStructure);
            static public function staticDeserialize():Object
                var byteArray:ByteArray = Base64.decode("EBUAG1Rlc3RTdHJ1Y3R1cmUKEwAHZm9vEAEAH1ZlY3RvclRlc3RJbm5lcgoBEAEABAoBEAEABA oBEAEABAoBEAEABAoBEAEABAoBEAEABAoBEAEABAoBEAEABAoBEAEABA==");
                byteArray.position = 0;
                return byteArray.readObject();
            public function Test0():void
                registerClassAliases();
                // Switching operation between the constants demonstrates failure/success in a couple of different ways.
                // SERIALIZE is just used to prepare the base64 string for subsequent tests.
                var operation:int = OPERATION_SERIALIZE_AND_FAIL;
                if (operation == OPERATION_SERIALIZE)
                    trace("Serializing");
                    // outputs base64 string for subsequent tests
                    serialize();
                else if (operation == OPERATION_DESERIALIZE_AND_FAIL)
                    trace("Fail case");
                    // perform successful one deserialization, then one failing one.
                    deserializeOnceThenFail();
                else if (operation == OPERATION_DESERIALIZE_AND_SUCCEED)
                    trace("Success via re-registration");
                    // perform successful one deserialization, then another successful one.
                    deserializeOnceThenSucceed();
    * serialize
            // outputs base64 string we use for subsequent tests.
            private function serialize():void
                var baz:Vector.<TestStructure> = new Vector.<TestStructure>;
                for (var i:int=0; i<10; ++i)
                    baz.push(new TestStructure);
                var byteArray:ByteArray = new ByteArray;
                byteArray.writeObject(baz);
                trace(Base64.encode(byteArray));
    * deserializeOnceThenFail
            // perform successful one deserialization, then one failing one.
            public function deserializeOnceThenFail():void
                // save stage
                staticStage = stage;
                // the first deserialize will proceed without error.
                staticDeserialize();
                trace("Successful deserialize");
                // add an event listener in order to invoke error on subsequent frame
                stage.addEventListener(Event.ENTER_FRAME, doEnterFrameOnceThenFail);
            // remove event listener and invoke again.
            static private function doEnterFrameOnceThenFail(e:Event):void
                staticStage.removeEventListener(Event.ENTER_FRAME, doEnterFrameOnceThenFail);
                staticDeserialize();
                trace("unsuccessful deserialize2");
    * deserializeOnceThenSucceed
    * Here, we re-call flash.net.registerClassAlias on all our class types when running.
            // perform successful one deserialization, then one failing one.
            public function deserializeOnceThenSucceed():void
                // save stage
                staticStage = stage;
                // the first deserialize will proceed without error.
                staticDeserialize();
                trace("Successful deserialize");
                // add an event listener in order to invoke error on subsequent frame
                stage.addEventListener(Event.ENTER_FRAME, doEnterFrameOnceThenSucceed);
            // remove event listener and invoke again.
            static private function doEnterFrameOnceThenSucceed(e:Event):void
                staticStage.removeEventListener(Event.ENTER_FRAME, doEnterFrameOnceThenSucceed);
                registerClassAliases();
                staticDeserialize();
                trace("successful deserialize2");
    internal class TestStructureInner
              public var value:int;
    internal class TestStructure
              public var foo:Vector.<Vector.<TestStructureInner>> = new Vector.<Vector.<TestStructureInner>>;

    The error would imply that ImageAssetEvent does not inherit
    DisplayEvent. Either modify the inheritance chain or listen for a
    basic Event object (flash.events.Event) and cast inside the
    function.

Maybe you are looking for