Run Time Error in AIR...but the same code works in Flex...

Hi,
It seems that I am having a big problem with shaders in AIR, when I try to instance,
Here is my code:
                  import flash.display.Shader;
                  import flash.filters.ShaderFilter;
                  [Embed(source="crossStitch.pbj", mimeType="application/octet-stream")]
                  public var MyShaderClass:Class;
                  //this works on flex/flash but not in AIR run time...
                  private function onClick() : void
                        var shader:Shader = new Shader();
                        shader.byteCode = new MyShaderClass();
                        // Configure desired input parameters of shader.
                        shader.data.size = [4];
                        myImg.filters = [new ShaderFilter(shader)];
When running this code in Flex it works great!!
When I try to use this code under AIR I get:
ReferenceError: Error #1065: Variable Shader is not defined.
Ion both Flex and AIR projects I use the same Flex SDK (3.4.1) ( I have tried 3.4, 3.5 and more) but
Changing the SDK still didn’t worked, I have started to think maybe it’s related to this that in Flex project
There is the playerglobal.swc and in AIR there is the airglobal.swc but why shouldn’t this airglobal.swb support in Shader?
I have Adobe AIR 1.5.3 and I have tested that my app.xml has
<application xmlns="http://ns.adobe.com/air/application/1.5.1">
I have zipped a small demo and sent it to my friend and he told me that it’s work for him
In AIR app… (attached...)
Guys I have spent all day figuring what is wrong but nothing!!…can someone shade some light here?

Hi,
        There is not value in that field for PO quantity / Value it is missing while doing MIGO. Check whether you have maintained values for all required fields.
Kiran

Similar Messages

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • When I sync with my iphone i get an error reporting message but the sync still works.  After trying to download 10.6.3 Mac OSX Snow Leopard, this message appears every few seconds until I quit Entourage.  How do I turn this message off?.

    Question: 
    When I sync with my iphone I get an error reporting message but the sync still works.  After trying to download 10.6.3 Mac OSX Snow Leopard, this message appears every few seconds as long as Entourage is open.  This continues until I quit Entourage.  How do I turn this message off? It interferes with any other work I am doing.   I appreciate any suggestions.

    I only have one video project that I ever published to iDisk. It didn't have any music or photo files attatched to it, just a few clips stitched together. I can play these clips right now in the Event Library (so I know the source files are on my computer), but strangely, under the Project Library, the project is not there. I'm almost certain that I didn't store the project on iDisk; I just completed the video and published it to iDisk (as a .mov file I think) for family to see. I've tried to figure out how to get iDisk to stop looking for this project to no avail.
    I don't know if others have experienced this, but if I click on any project and on the menu bar select Share --> Remove From --> Media Browser... it lists iPod, iPhone, iPad, tv, Computer and MobileMe. Why would MobileMe be an option here? This is the case for any video project I select. Didn't iLife '11 and/or OSX 10.8 remove all mention of MobileMe? I wonder if this is part of the problem too.
    Edit: I just removed every project I have from the Media Browser. Still no luck.

  • Run time error occured while clicking the Log off

    Hello Experts,
    I have customized masthead file. In the masthead, when i click the log off link, the pop-up window will showing the Runtime error message. Its not working properly. I didnt make any changes in log off method. I traced the error,
    <%if (!isPreview){%>
              if (EPCM.getUAType() == EPCM.MSIE)
                   if(EPCM.getGlobalDirty())
                         // unsaved data on the page, display modified dialog
                        var val = window.showModalDialog('<%=GetLogoffConfirmUnsavedMsgURL(componentRequest)%>', '', '<%=LOGOFF_CONFIRM_MSG_ARGS_IE%>');
                        if (val == 'logoff')
                             disableWorkProtectCheck = true;
                             logoff();
                   else //no unsaved data
                        // data saved, nothing get lost on the page, display normal dialog
                      var val = window.showModalDialog('<%=GetLogoffConfirmMsgURL(componentRequest)%>', '', '<%=LOGOFF_CONFIRM_MSG_ARGS_IE%>');
                      if (val == 'logoff')
                          logoff();
              else
                   if(EPCM.getGlobalDirty())
                      window.open('<%=GetLogoffConfirmUnsavedMsgURL(componentRequest)%>', '<%=LOGOFF_CONFIRM_WINDOW_NAME%>', '<%=LOGOFF_CONFIRM_MSG_ARGS_NS%>');
                   else
                      window.open('<%=GetLogoffConfirmMsgURL(componentRequest)%>', '<%=LOGOFF_CONFIRM_WINDOW_NAME%>', '<%=LOGOFF_CONFIRM_MSG_ARGS_NS%>');
         <%}%>
    In this code having if condition if(EPCM.getGlobalDirty()) is set as true means, then only properly executed and it shows the Log off message. In my part it goes to the else part. Then it shows run time error message.
    I cannt able to find out the solution.Pls help me in this regarding.
    Regards
    Prakash T

    Hi,
    see if running SFC /Scannow helps. This basically restores missing/corrupt system files.
    Click Start/Run and type CMD
    Type SFC /Scannow
    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe):
    http://support.microsoft.com/kb/310747/EN-US/
    Please Reward Points if Helpful.
    Kind Regards,
    Vamsi.

  • Portal run time error while accessing R/3 transaction code

    Hi all,
    We have configured R/3 system and BW system to the Portal.
    In R/3 system we have user ids named "ADMIN" and "FIAR" . ADMIN is for adminstrator and FIAR is for FIAR module. I created the same user ids in Portal , for ADMIN i have assigned ADMINSTRATOR role and for FIAR BI as it is also for our BW system.
    But when iam checking the r/3 iviews for FIAR , it shows PORTAL RUN TIME ERROR , while for ADMIN it works fine.
    Can any body have some ideas about this , pts will be assigned,
    Thanks ..

    Have you collected the error log details which looks similar to the below one??
    "The initial exception that caused the request to fail was:
    User has no RFC authorization for function group SDIFRUNTIME.
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: User has no RFC authorization for function group SDIFRUNTIME.
    at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:455)
    at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1442)
    at com.sap.mw.jco.JCO$Client.execute(JCO.java:3979)
    at com.sap.mw.jco.JCO$Client.execute(JCO.java:3416)
    at com.sap.mw.jco.JCO$Repository.execute(JCO.java:20471)"

  • Run time error in MIGO after maintaining tax code

    Hello Experts,
    I had configured the new tax code ,which is working fine for the PO document ZLOC domestic and the account category Z.
    While doing the MIGO for purchase document type ZGEN general purchase , I am getting run time error:
      "Division by 0 (type P) in program "SAPLJ1IEX".
    When I debugged the code i found that inside FM: 'J_1IEX_DEFAULT_EXCISE_DUTY'
    one another FM is being called: 'J_1I6_UNIT_CONVERSION' which is returning the value "ls_ekpo-menge" as 0(Zero).
    later in the code when "ls_ekpo-menge" used in calculation then divide by 0 runtime error is coming.
    Please suggest what need to be done.
    Is there anything related to tax code? How should I correct it?

    Hi,
            There is not value in that field for PO quantity / Value it is missing while doing MIGO. Check whether you have maintained values for all required fields.
    Kiran

  • Unable to login to Facetime / Messages but the same id works fines on iTunes?

    I am unable to connect to the Facetime / Messenger using my Apple Id where as the same id works fine on iTunes. I am correctly using an ADSL wifi at home. And I have upgrade my iPod generation 4 to OSi5. Would appreciate if you all could help me fix this issue.

    LesHarg wrote:
    Hello
    I use Windows Live Mail to download my emails. This is working fine on two computers for other BT Internet and Gmail accounts. But one of my main BT accounts consistently receives the following messages on both computers:
    Unable to send or receive messages for the Btinternet (xxx) account. 
    Server Error: 0x800CCC90
    Server Response: -ERR inactivity timeout
    Server: 'mail.btinternet.com'
    Windows Live Mail Error ID: 0x800420CD
    Protocol: POP3
    Port: 110
    Secure(SSL): No
    Unable to send or receive messages for the Btinternet (xxx) account. Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems or a long period of inactivity.
    Server: 'mail.btinternet.com'
    Windows Live Mail Error ID: 0x800CCC0F
    Protocol: POP3
    Port: 110
    Secure(SSL): No
    The messages for this account are available via webmail, and sending an email works. 
    I've tried BT Desktop Help, but this simply sends me in the direction of standard advice pages. I have no reason to think the settings are wrong. 
    Could anyone suggest what is going on here please?
    Hi. Welcome to the forums.
    For starters, the recommendation by many people is to uninstall BT Desktop help.
    If this has always been the case, rather than a sporadic issue, then it could be an account problem that seems to plague some accounts - and has done for years. Hopefully the changeover from Yahoo! to Critical Path will cure this particular issue. Try the other settings mentioned by Keith.
    Even though some accounts are fine, there is still a possibility that your local security software can interfere. For example if you have email scanning turned on - then this can be turned off to see if that helps.
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • HT201269 I am trying to set up my new iPhone 5c using the iTunes backup from my iPhone4. It keeps getting stuck of step 2 of 5 "syncing calendars". I waited 18 hours last time and have restarted but the same thing is happening. I hardly use the calendar a

    Trying to set up my new iphone 5c using the iTunes back up from my iPhone 4. It keeps getting stuck on step 2 of 5 "syncing calendars" Considering I hardly use the calendar I don't know why it would take so long. (18 hours and counting)
    Any advice would be greatly appreciated!

    Did you ever resolve the iCloud problem.I am in the same position and its driving me mad!!! If you have a link to an solution I would appreciate it.

  • All is fine with JFrame, but the same code doesn't work in JApplet?

    I try to manage XML files using Xerces-perser,
    and all is ok if I work with JFrame,
    but when I try to do the same thing in JApplet,
    I get ClassDefNotFound error at the initializing
    of applet. It writes that the problem is with
    Xerces-classes (org.w3c.dom.Node f.e.),
    it seems to me that "appletviewer" (1.3.01) which
    I use to launch JApplet doesn't see these classes,
    while "java" does when I do the same with JFrame.
    May be, do you have some ideas?

    add "crimson.jar" and "jaxp.jar" in your archive list in your html, which lunch your applet.

  • All videos I play through Firefox are skipping but the same videos work fine in Safari. I am using the latest versions and patches. Help?

    Other details? Umm, I'm using a Mac. Never had problems before version 4.0. It happens on Netflix, YouTube, Hulu, GomTV, among other video sites. I loaded the same videos in Safari and they play fine.

    Please try to re-install your firefox browser or maybe you must get the latest version of mozilla firefox browser, here >> [https://www.mozilla.org/en-US/firefox/new]
    And you can try to re-install your Adobe Flash Player too and get the latest version here >> [http://example.com http://get.adobe.com/flashplayer/]

  • Wrong XML parsing in Java  6.0 , the same code works fine with Java 5.0

    I have the following xml data in a file ( C:\_rf\jrebug.xml ) :
    <?xml version="1.0" encoding="UTF-8"?>
    <rs>
         <data
              input3='aa[1]'
              input4='bb[1]'
              input6='cc[2]'
              input8='dd[7]'
              output2='ee[7]'
              output4='ff[511]'
              output6='gg[15]'
              output7='hh[1]'
         />
    </rs>
    I have the following code to parse this XML data :
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import org.xml.sax.SAXException;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.SAXParseException;
    public class DomParserBug {
         Document dom;
         public void runExample() {
    parseXmlFile("C:\\_rf\\jrebug.xml");
              parseDocument();
         private void parseXmlFile(String filename){
              //get the factory
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              //dbf.setValidating(true);
    dbf.setValidating(false);
              try {
                   //Using factory get an instance of document builder
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   db.setErrorHandler(new MyErrorHandler());
                   //parse using builder to get DOM representation of the XML file
                   dom = db.parse(filename);
              }catch(ParserConfigurationException pce) {
                   pce.printStackTrace();
              catch(SAXParseException spe) {
                   spe.printStackTrace();
              catch(IOException ioe) {
                   ioe.printStackTrace();
              catch(SAXException se) {
                   se.printStackTrace();
    private void parseDocument()
    Element docEle = dom.getDocumentElement();
    NodeList nl = docEle.getElementsByTagName("data");
    if(nl != null && nl.getLength() > 0)
    for(int i = 0 ; i < nl.getLength();i++)
    Element el = (Element)nl.item(i);
    NamedNodeMap attrsssss = el.getAttributes();
    for (int ii=0; ii<attrsssss.getLength(); ++ii)
    Node attr = attrsssss.item(ii);
    System.out.println("Attribute name is =" attr.getNodeName() " AND Attribute value is ="+attr.getNodeValue());
         public static void main(String[] args){
              DomParserBug dpe = new DomParserBug();
              dpe.runExample();
         class MyErrorHandler implements ErrorHandler {
              public void error(SAXParseException e) {
              System.out.println("error : " +e.toString());
         // This method is called in the event of a non-recoverable error
         public void fatalError(SAXParseException e) {
         System.out.println("fatalError : " +e.toString());
         // This method is called in the event of a warning
         public void warning(SAXParseException e) {
         System.out.println("warning : " +e.toString());
    The parsed output is :
    Attribute name is =input3 AND Attribute value is =aa[1]
    Attribute name is =input4 AND Attribute value is =bb[1]
    Attribute name is =input6 AND Attribute value is =cc[2]
    Attribute name is =input8 AND Attribute value is =dd[7]
    Attribute name is =output2 AND Attribute value is =ee[7]
    Attribute name is =output4 AND Attribute value is =ff[511]
    Attribute name   is  =output6 AND Attribute value  is =hh[1]]
    Attribute name   is  =output7 AND Attribute value  is =hh[1]
    THE LAST TWO LINES ARE SIMPLY WRONG.
    With java 5.0 the last two lines are parsed correctly :
    Attribute name   is  =output6 AND Attribute value  is =gg[15]
    Attribute name   is  =output7 AND Attribute value  is =hh[1]
    I have seen this issue only after I upgraded to java 6.0. I have searched the java 6.0 bug database but there is nothing there.
    I have also submitted a bug to the bugdatabase last month but have not heared anything.
    Anybody have any clue about this ???
    Thanks
    Edited by: skaushik on Jan 4, 2008 12:40 AM
    Edited by: skaushik on Jan 4, 2008 6:38 PM

    I have seen similar issue. I found that if you remove the square brackets from the first line in teh XML file, the last two lines are parsed correctly.
    Replace the follwing line : :
    Attribute name is =input3 AND Attribute value is =aa[1]
    with :
    Attribute name is =input3 AND Attribute value is =aa
    and the output is CORRECT :
    Attribute name is =input3 AND Attribute value is =aa
    Attribute name is =input4 AND Attribute value is =bb[1]
    Attribute name is =input6 AND Attribute value is =cc[2]
    Attribute name is =input8 AND Attribute value is =dd[7]
    Attribute name is =output2 AND Attribute value is =ee[7]
    Attribute name is =output4 AND Attribute value is =ff[511]
    Attribute name   is  =output6 AND Attribute value  is =gg[15]
    Attribute name   is  =output7 AND Attribute value  is =hh[1]

  • Run time error occuring due to  the exception "CX_SY_CONVERSION_OVERFLOW",

    hi,
            Programme which is present in process  chain,is getting the error  the exception "CX_SY_CONVERSION_OVERFLOW",like this.
    Can any body please help me out on this.
    Thanks & Regards,
    Aswini.

    Hi,
    Check the shot dump (ST22) and post the logic block where exactly you are getting error.
    regards,
    raju

  • Can't edit an excel file and can't save it in excel 2010, but the same file works fine in 2007.

    I am trying to save an excel file in 2010 version but I am getting the following error:
    Errors were detect while saving <File Name>.Microsoft excel may be able to save the file by removing or repairing some features. To make repairs in the file, Click continue. To cancel saving the file, click Cancel.
    On clicking continue, I am asked to save it again and then finally I get the following error:
    Excel encountered errors during save. However, excel was able to minimally save your file to <file Location>.
    This file is saved successfully in 2007 version of the software.
    Any help on this error would be highly appreciated

    Hi,
    Based on my research, this behavior can occur under any of the following conditions:
    You save an Excel file to a network drive where you have restricted permissions.
    You save an Excel file to a location that does not have sufficient drive space.
    The connection to the Excel file has been lost.
    There is a conflict with an antivirus software program.
    You save an Excel file that is shared.
    The 218-character path limitation has been exceeded when you save an Excel file.
    The Transition Formula Evaluation feature is turned on in Excel.
    The file was created from a template that contains embedded objects.                               
    To troubleshoot an Excel save issue, you can refer to the following links:
    http://support.microsoft.com/kb/271513/en-us
    Hope it helps
    Best regards

  • Firefox gives 500 internal server error when i upload a javascript file with .js extention the same code works in Chrome

    hi love, i was surprised to see this and lack of my knowledge brought me here. below is my code
    HTML
    <pre><nowiki> <form id="form" name="form" action="http://123.21.111.51:8081/v1/AUTH_beta27/peter/" method="POST" enctype="multipart/form-data">
    <input type="file" id="fileToUpload" name="fileToUpload" />
    <input type="hidden" id="auth" name="auth" value="AUTH_tk7f679e48c7074a06bf28ca3a999f3dda" />
    <input type="hidden" id="fileSize" name="fileSize" value="" />
    </form>
    <p>
    <input type="button" value="Upload" onclick="upload_files()" />
    </p>
    JAVASCRIPT:
    function upload_files() {
    var file = document.getElementById('fileToUpload');
    fileName = file.files.item(0).name;
    fileSize = file.files.item(0).size;
    var fm = document.getElementById("form");
    var action = 'http://123.21.111.51:8081/v1/AUTH_beta27/peter/' + fileName;
    console.log('action = ' + action);
    document.getElementById('form').action = action;
    document.getElementById('fileSize').value = fileSize;
    fm.submit();
    }</nowiki></pre>

    Which security software (firewall, anti-virus) do you have?
    Did you make sure that your firewall or anti-virus software isn't blocking such uploaded content?

  • Run time error when set filter on the request id in the output query.

    Hi all,
    I am getting a run time error when I select the request id and set filter on that and  when i am selecting all the request id it contains around 2lacs values in that If i cliked ok on that .
    It popped up a msg like this
    " Run time error 61706
    Insufficient memory to perform operation "

    User was educated not to select the entire data in the filter

Maybe you are looking for

  • Problems with Photoshop CS6 Recognizing Multiple Graphics Cards

    Hi, I have a quad monitor setup with two graphics cards with the latest drivers downloaded today and installed directly off of the manufacturer's websites: 1) AMD Radeon R9 200 Series 4GB GDDR5 2) NVIDIA GeForce GTX 460 1GB GDDR5 I have Photoshop CS6

  • Rendering Photo Gallery

    Our Goal is to render a business catalyst photo gallery with java script inside a muse layout. We used this Manual without success. Rendering a Photo Gallery XML feed using jQuery – we copy/paste the code into a new document, but it does't works The

  • Advantages and disadvantages of macbook air

    im about to buy a late 2010 macbook air 11" 1.4ghz intel core 2 duo , 2gb , 1066mhz , with 64gb flash  (comes with superdrive) what are the disadvantages of this model ? and should i have any problems syncing my iphone 5 ? or getting itunes 11 ? and

  • Oracle Business Analytics Fusion Edition Data Model Reference

    Dear All, I want to make a study of the pre-built warehouse data schema, and there's a book named <Oracle Business Analytics Fusion Edition Data Model Reference> from the installation and configuration guide, but i cannot found it in the metalink and

  • SAP HR Renewal 1.0 Activation

    Dear Team, We are planning to implement HR Renewal 1.0 on EHP 6.0. I would like to know from your experience that if there will be any impact on existing ABAP/Java Applications if we activate HR REnewal 1.0 switch. Please do share you views so that w