XSLT Exception: FATAL ERROR:  'Could not compile stylesheet'

Hi....
Am getting Folowing Exception while parsing the XSL file. Am using java 1.4 and MSXML4.2 SP2 parser andSDK.
but when I installed SQLServer2005, with that MSXML 6.0 Parser is Installed.
It is working fine before instalation of SQLServer2005.
java.lang.NullPointerException
     at com.sun.org.apache.xalan.internal.xsltc.compiler.FunctionCall.translate(FunctionCall.java:826)
     at com.sun.org.apache.xalan.internal.xsltc.compiler.ValueOf.translate(ValueOf.java:114)
     at com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
     at com.sun.org.apache.xalan.internal.xsltc.compiler.XslAttribute.translate(XslAttribute.java:252)
Compiler warnings:
file:///F:/Data/JRun4/servers/ABC/MainXSL.xsl: line 155: Attribute 'LenderBranchIdentifier' outside of element.
file:///F:/Data/JRun4/servers/ABC/MainXSL.xsl: line 156: Attribute 'LenderRegistrationIdentifier' outside of element.
ERROR: 'null'
FATAL ERROR: 'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
     at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:753)
     at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:548)
     at com.ls.lsglobal.common.CLOUTSQLXML.TransXml2Xml(CLOUTSQLXML.java:274)
And My XSL is
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.5" xmlns:lsjava1="com.ls.lsglobal.common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="lsjava1" >
     <xsl:output method="xml" indent="yes" encoding="utf-8" doctype-system="MyRequest.1.3.DTD"/>
     <xsl:template match="/" >
          <REQUEST_GROUP>
                                   <TRANSMITTAL_DATA>
                                        <xsl:if test="AppraisedVal!=''">
                                             <xsl:attribute name="AppraisedValueAmount"><xsl:value-of select="AppraisedVal"/></xsl:attribute>
                                        </xsl:if>
                                        <xsl:if test="StatedVal!=''">
                                             <xsl:attribute name="EstimatedValueAmount"><xsl:value-of select="StatedVal"/></xsl:attribute>
                                        </xsl:if>
                                        <xsl:for-each select="ROOT/AppMain/MyLoop/Liab">
                                             <xsl:if test=" normalize-space(LiabTypCd) = 'SMG' and (normalize-space(PresFutTypCd) = 'BOTH' or normalize-space(PresFutTypCd) = 'PRES') and PresLienPos='1' and normalize-space(RefCd) != 'LOAN'">
                                                  <xsl:attribute name="CurrentFirstMortgageHolderType"><xsl:value-of select="LiabId"/></xsl:attribute>
                                             </xsl:if>
                                        </xsl:for-each>
                                        <xsl:attribute name="LenderBranchIdentifier">0001</xsl:attribute>
                                        <xsl:attribute name="LenderRegistrationIdentifier"><xsl:value-of select="ROOT/AppMain/MyNum"/></xsl:attribute>
                                   </TRANSMITTAL_DATA>
          </REQUEST_GROUP>
     </xsl:template>
</xsl:stylesheet>
And My Java Code is
public String TransXml2Xml(String xmlInFile, String xslFile, String xmlOutFile) throws Exception
          try
               DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
               factory.setIgnoringElementContentWhitespace(true);
               Document document;
               File stylesheet = new File(xslFile);
               File dataInfile = new File(xmlInFile);
               DocumentBuilder builder = factory.newDocumentBuilder();
               document = builder.parse(dataInfile);
               System.err.println("-->AVC:::xslFile="+xslFile+" xmlInFile="+xmlInFile+" xmlOutFile="+xmlOutFile);
               StreamSource stylesource = new StreamSource(stylesheet);
               TransformerFactory t=TransformerFactory.newInstance();
               Transformer transformer = t.newTransformer(stylesource);
               DOMSource source = new DOMSource(document);
               javax.xml.transform.stream.StreamResult result = new javax.xml.transform.stream.StreamResult(new File(xmlOutFile));
               transformer.setOutputProperty(javax.xml.transform.OutputKeys.INDENT , "yes");
               transformer.setOutputProperty(javax.xml.transform.OutputKeys.ENCODING, "UTF-8");
               transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
               if(strCLUTDTD_PATH.equals(""))
                    java.util.Properties props = new java.util.Properties();
                    java.io.FileInputStream fis = new java.io.FileInputStream("DataFileBasePath.properties");
                    props.load(fis);
                    fis.close();
                    strCLUTDTD_PATH = checkNull(props.get("CLUTREQDTD_PATH"));
               transformer.setOutputProperty(javax.xml.transform.OutputKeys.DOCTYPE_SYSTEM , strCLUTDTD_PATH);
               transformer.transform(source, result);
          catch(Exception e)
               e.printStackTrace();
               throw e;
          return "";
can any one know what solution for this problem. It is very help full for me.

So look at your code and find out what you are passing to the TransformerFactory. Then find out why it's null. Don't just sit there and say "Duh", it's your code.
And remember that nobody but you can see it yet. If you like you could post it here and then others could see it and comment on it.

Similar Messages

  • Error while transforming XSLT,"Could not compile stylesheet"

    Hi,
    During transformation of my XSLT I needs to fetch data from method named *"myMethod(String str)"*, which is in *"mypackage.test.MyClass"* class. MyClass is in{color:#000000} XXX.jar. {color}
    This XXX.jar is not in context of my web application.*
    Following is part of XSLT which I am using.
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:aaa="mypackage.test.MyClass">
    <xsl:template match="/responseData">
    <xsl:for-each select="response">
    <XMLResponse>
    <xsl:for-each select="status">
    <xsl:variable name="Vvar_ResResponseType" select="."/>
    <xsl:attribute name="ResResponseType">
    <xsl:value-of select="aaa:myMethod($Vvar_ResResponseType)"/>
    </xsl:attribute>
    </xsl:for-each>
    </XMLResponse>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>So I tried to use reflection API to load XXX.jar file at runtime.
    But while transforming Transformer does not find "myMethod(String str)" and gives error like "Could not compile stylesheet"
    Following is full exception stacktrace
    ERROR:  'The first argument to the non-static Java function 'myMethod' is not a valid object reference.'
    FATAL ERROR:  'Could not compile stylesheet'
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:829)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:623)
    at com.actl.dxchange.utilities.Transformation.transform(Transformation.java:83)
    at com.actl.dxchange.base.BaseConnector.transform(BaseConnector.java:330)
    at com.actl.dxchange.connectors.KuoniConnector.doRequestProcess(KuoniConnector.java:388)
    at com.actl.dxchange.connectors.KuoniConnector.hotelAvail(KuoniConnector.java:241)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    ...........Please suggest is there any other way, so that Transformer can find required bean class from XXX.jar duruing transformation process.
    Thanks & Regards,
    Rohit Lad
    Edited by: Rohit_Lad on Jan 29, 2009 7:38 PM
    Edited by: Rohit_Lad on Jan 30, 2009 9:57 AM
    Edited by: Rohit_Lad on Jan 30, 2009 10:02 AM

    Got the solution from forum named
    "Reflections & Reference Objects"
    Following is link for whom encountered this issue.
    http://forums.sun.com/thread.jspa?threadID=5362426
    Edited by: Rohit_Lad on Jan 30, 2009 2:35 PM

  • Exception : Could not compile stylesheet

    Dear All,
    I'm using SimpleTransform.java (renamed as ReceiptTransformer.java for custom use) found in xalan-j_2_7_0 samples directory for transformations in my custom application. The program compiles successfully but gives the following error during runtime:
    ERROR: 'org/apache/avalon/framework/configuration/Configuration'
    FATAL ERROR: 'Could not compile stylesheet'
    Exception in thread "main" javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
    at ReceiptTransformer.main(ReceiptTransformer.java:29)
    Any help in this regard is greatly appreciated.

    StreamSource/Results are simple POJOs: the interpretation of the the system ID you construct them from is left to the interpretation of the object that will use them. This is why the behavior is not consistent.
    For this reason, I never use StreamSource/Result(String) constructors but prefer either the constructor that takes a File or a Reader.

  • NewTransformer - Could not compile stylesheet exception

    Using the following code:
    Transformer transformer = factory.newTransformer( new StreamSource(xsltFile) );
    If I fill the xsltFile string variable with "contents.xslt" it goes through fine.
    But, if I put the following into the xsltFile variable, it throws the following exception:
    "C:\\test\\src\\xslt\\contents.xslt"
    Failed to transform file C:\DB Documenter\output\xml\main.xml due to: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    I am formatting the the source and result strings in the actual transform the same way, and they work fine pointing to a c:\ directory. Any reason this blows up on the newTransformer call?
    Here is the whole code:
    public void performTransform(String xsltFile, String xmlFile, String htmlFile) {       
    try {           
    TransformerFactory factory = TransformerFactory.newInstance();
    /* xsltFile = "contents.xslt"; */
    xsltFile = "C:\\DB Documenter\\src\\xslt\\contents.xslt";
    Transformer transformer = factory.newTransformer( new StreamSource(xsltFile) );
    StreamSource xmlSource = new StreamSource(xmlFile);
    StreamResult htmlResult = new StreamResult(htmlFile);
    transformer.transform(xmlSource, htmlResult);
    } catch (Exception e) {
    JOptionPane.showMessageDialog(null, "Failed to transform file " + xmlFile + " due to: " + e);
    }

    StreamSource/Results are simple POJOs: the interpretation of the the system ID you construct them from is left to the interpretation of the object that will use them. This is why the behavior is not consistent.
    For this reason, I never use StreamSource/Result(String) constructors but prefer either the constructor that takes a File or a Reader.

  • TransformerConfigurationException...Could not compile stylesheet

    So far my XSLT stylesheet was executed in operations mapping without problems.
    However I had to make some changes (e.g. adding some additional xsl:choose elements) and now I get the following compilation error:
    TransformerConfigurationException occured when loading XSLT xxxxxxx; details: Could not compile stylesheet
    I develop and change the XSLT externally using XML Spy and there I could run a test transformation without problems or errors.
    Only after reimporting as IA archive and selecting the new version in operations mapping I get the error.
    How is this possible? How can I debug to find the root cause for the error?
    Edited by: Florian Guppenberger on Nov 13, 2009 6:05 PM

    Hello,
    what I have done is to add an additional <xsl:choose> to an already existing <xsl:choose> in the <xsl:otherwise> branch at several locations. Example below.
    I hope that there was not typo somwhere else, however what is very strange is that XML Spy says that the XSLT is well-formed and a test transformation executes successfully too.
    For that XSLT it is not such a big problem, because I can roll-back to the previous version but I am really concerned if you build a big XSLT from scratch in XML Spy an after import in PI you get a compilation error. So it would be really good to find a root cause for this.
    <xsl:choose>
    <xsl:when test="RET_DATE">
      <xsl:attribute name="nullFlavor"><xsl:value-of select="RET_DATE"/></xsl:attribute>
    </xsl:when>
    <xsl:otherwise>
        <xsl:choose>
            <xsl:when test="RET_DATE_VALUE='00000000'">
                 <xsl:attribute name="nullFlavor"><xsl:text>NA</xsl:text></xsl:attribute>
            </xsl:when>
            <xsl:otherwise>
                 <xsl:attribute name="value"><xsl:value-of select="RET_DATE_VALUE"/></xsl:attribute>
            </xsl:otherwise>
          </xsl:choose>  
    </xsl:otherwise>
    </xsl:choose>
    Edited by: Florian Guppenberger on Nov 16, 2009 11:05 AM
    Edited by: Florian Guppenberger on Nov 16, 2009 11:06 AM

  • 11g and Could not compile stylesheet

    Hello,
    I using Oracle 11g R2.
    I'm using a Java Stored Procedure.
    And I'm using the Oracle's XSL file example.
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:math="http://www.oracle.com/XSL/Transform/java/java.lang.Math">
    <xsl:template match="/">
    <xsl:value-of select="math:ceil('12')"/>
    </xsl:template>
    </xsl:stylesheet>
    And I get the following exception :
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
    Can anybody help me ?

    I believe you should ask this question at some XML forum.
    Aman....

  • ADF Faces: !-- ERROR: could not create stylesheet for oracle-desktop.xss

    Hi,
    I'm using ADF Faces EA6. Sometimes when I create the EAR, it doesn't include the file "oracle-desktop-ea6-ie-6-windows.css" which muest be present in the "adf/styles/cache" directory. If I check the source code from the browser, it starts like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html dir="ltr" lang="es-ES">
    <head><title>Sistema de Seguridad</title><meta name="generator" content="Oracle ADF Faces"><!-- ERROR: could not create stylesheet for oracle-desktop.xss --><script type="text/javascript" src="/fmv/adf/jsLibs/Commonea6.js"></script><script type="text/javascript">_defaultTZ()</script></head>
    Please note the comment: <!-- ERROR: could not create stylesheet for oracle-desktop.xss -->
    Does somebody know the reason?
    TIA,
    Brian

    If everything is set up properly the css will get generated if it doesn't exist. You do not have to be running in the IDE for the css to be correctly generated. Running the app first is generating the css before you deploy, so you've taken away the symptom but not solved the problem. If you try running on another browser, for example, you'll probably run into the same problem.
    Does your ear get unzipped when you deploy? Do you have a writable file system for the css to get written to? There is a known issue with WebLogic where it doesn't expand the EAR.
    Please check to see if there are errors in the logs.

  • Fatal Error: Could not find Feature AnalyticsLinks in sharepoint 2010 while migration from 2007 site using stsadm command

    Fatal Error: Could not find Feature AnalyticsLinks in sharepoint 2010 while migration from 2007 site using stsadm command

    Hi ,
    Firstly, I need to verify the followings:
    Whether you created a feature called AnalyticsLinks and activatated it at SharePoint 2007 site.
    Whether you installed the feature at SharePoint 2010 site.
    Please deactivate the feature AnalyticsLinks, then migrate SharePoint 2007 site to SharePoint 2010, compare the result.
    Also , please check whether you have installed the feature AnalyticsLinks at your SharePoint 2010 site. If not, please install and activate it, compare the result.
    Here are some similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/17b17bd3-126c-44d4-bd58-38dd613017a0/fatal-error-could-not-find-feature-reviewpublishingspd1055?forum=sharepointadminprevious
    http://mrin17.wordpress.com/2009/09/15/fatalerror-could-not-find-feature-s2siteadmin-while-importing-sites-from-different-server-at-sharepoint/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • XSLTC Giving Could Not Compile Stylesheet.

    Hi All,
    Till now i am using xalan.jar and my xsl is as fallows
    <xsl:stylesheet xmlns:js="javascriptcode" xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="js java" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lxslt="http://xml.apache.org/xslt" version="1.0">
    <xsl:template match="/">
    <xsl:apply-templates select="b"/>
    </xsl:template>
    <xsl:template match="b">
    <tar:target xmlns:tar="http://target">
    <tar:Element>
    <xsl:value-of select="js:fnMathematicalAbsolute(/b/b12)"/>
    </tar:Element>
    </tar:target>
    </xsl:template>
    <lxslt:component prefix="js">
    <lxslt:script lang="javascript">function fnMathematicalAbsolute(iNum) {return(Math.abs(iNum))}</lxslt:script>
    </lxslt:component>
    </xsl:stylesheet>
    This works fine Xalan . It is able to call the js extensions .
    I want to move from xalan to JDK 1.5 XSLTC .If ia m using this xsl It is giving Could not compile the stylesheet.
    Can anyone tell me why JDK1.5 doent compiling the stylesheet or is it a problem with my stylesheet. .This is urgent for me as i need to move to jdk 1.5 xsltc.
    Thanks in advance ,
    Sasi.A

    The problem is that J2SE 5 (unlike J2SE 6) does not include a JavaScript engine which is, however, required to interpret the JavaScript code embedded in XSLT stylesheets. You either have to keep on using Xalan (this utilizes Mozilla's Rhino JavaScript engine through the org.apache.bsf.BSFManager class) or switch to J2SE 6.
    Below are download links to three components that make up an applicable unit to compile your stylesheet:
    Xalan (xalan.jar, 3078601 bytes)
    http://apache.mirrors.ebizlab.hit.bme.hu/dist/xml/xalan-j/binaries/xalan-j_2_7_0-bin.zip
    Rhino JavaScript engine (js.jar, 708951 bytes)
    ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_6R5.zip
    Jakarta BSF (bsf.jar, 113369 bytes)
    http://apache.mirrors.crysys.hit.bme.hu/dist/jakarta/bsf/binaries/bsf-bin-2.4.0.zip

  • Could not compile stylesheet error on tomcat environment.

    I have created xslt for generating pdf report.It's working fine on OPM when I run through OPM.
    But when I deployed same XSL on tomcat enviroment it doesn't compile error.
    Following the XSLT I have created
    and it give me the error for this line
    i.e ERROR: 'Syntax error in 'name() eq'attribute' '.'
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
    <xsl:if test="name() eq'attribute' ">
              <fo:block margin-left="1cm">
              <xsl:for-each select="@question-text">
              <xsl:value-of select="."/>=
              </xsl:for-each>
              <xsl:if test="string-length(normalize-space(text())) > 0">
                             <xsl:value-of select="text()"/>
                   </xsl:if>
              </fo:block>
    </xsl:if>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>

    Not every xslt parser acts the same, the one in OPM is not so restrictive (unfortunately)
    Try adding a space between eq and 'attribute'.

  • ERROR: could not create stylesheet for blaf.xss

    I am suddenly getting this error when trying to run a jsp using the following tag in 9.0.3 :
    <uix:styleSheet>
    Any ideas as to why and how I can fix this problem?
    -Teri

    Teri,
    Can you please post some of the source for the UIX-JSP? Are you defining the uix namespace?
    Thanks,
    Ryan

  • Error: Could not find compiled resource bundle 'components' for locale 'en_US'

    We are porting a fairly large body of Flex3 code developed under FlexBuilder 3 to Flex4 under FlashBuilder 4.  Most of the conversion appears to be working fine, with one exception.  When I launch the Flex4 version, all my data interchanges with the server works.  Just as it is about to show the UI, the following error occurs:
         Error: Could not find compiled resource bundle 'components' for locale 'en_US'
    I am actually using a locale of fr_FR, but I assume it couldn't find that, reverted to en_US, failed again and then barfed.  If I look in
         ~Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\fr_FR
    I see a lot of swc files, and of course no 'components.swc'.  I believe the problem is that our Flex3 code is using mx components, and the compatibility mode is not properly handling it for some reason.  I think this is mostly from our in-house UI library.  The properties for that library (and for my main app I am testing now) have:
         - Use default SDK (currently "Flex 4.0")
         - Use Flex 3 compability mode
         - Use minimum version (Flash Player) required by the Flex SDK
         - Enable strict type checking
         - Enable warnings
    I also tried putting the compatibility flag in the mxmlc compile line, with no change in behavior.  This project is built by the following script:
    ruby scripts/concat_properties.rb -o resources.properties ^
         src/main/flex/locale/fr_common/res_myname_fr_common.properties ^
         src/main/flex/locale/fr_common/scout/res_myname_scout_fr_common.properties ^
         src/main/flex/locale/fr_fr/res_myname_fr_fr.properties ^
         ../../scout/common/src/locale/fr_common/mypals/resources.properties
    mxmlc -locale=fr_FR -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    copy src\main\resources\bundles\mypals\fr_fr_resources.swf ^
         bin-debug\bundles\mypals
    What have I missed???

    You have two posts. I will try to answer each completely.  Second one first. You say I should change my build to include the framework resources.  I am afraid I am not sure which and what to do there.  We combine all our properties file into one large one, then use the following build line:
    mxmlc -locale=fr_FR,en_US -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    I am assuming you are telling me to change the "-include-resource-bundles" line, but what to add?  The "sdks\4.0.0\frameworks\locale\en_US" holds 13 swf files.  I tried adding that entire folder (along with the fr_FR folder) to the project library path (in the project properties dialog), but that made no change.  I also tried reverting the library path tab back to "MX Only" instead of "MX + Spark", but again no change.
    ====================
    For your first message, I did a search for 'spark' in the entire project.  It only existed on 3 lines, each at the start of css files:
        @namespace s "library://ns.adobe.com/flex/spark";
    I had put those in based on reading needed changes to naming in CSS.  Since I was not actually using any spark ('s') components yet, I removed these lines.  The entire project now does not have the word 'spark' anywhere in it. No change in behavior (as I expected).
    I did a search for "s:" throughout the project.  That does exist in probably 100 places, but all are legitimate. Things like (xmlns:mx="http://www.adobe.com/2006/mxml") or variable names ("var matches:Object").  No reference to any s: object.  (While on the topic, why does FlashBuilder still not have a "whole word" box to limit searches??).
    Note that when I first reported this problem, the compiler was set to ONLY support fr_FR.  In fighting this, I changed it to "en_US,fr_FR" hoping that would tell the compiler to load whatever en_US items it was looking for.  We really do not want any English support in this version. (We do have another SWF created with only support for en_US, and another for en_UK, etc.  Each language is a separate node on our server, so there is no need to mix & match at runtime)
    The console shows a lot of swf loads that I do not understand...
    The console output shows (my comments after ==> indicator)
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 2,229,992 bytes after decompression
                 ==> our locale is set here, after the above load and before the next line
    Look for name file at: ./data/fr_fr/names.csv
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 21,200 bytes after decompression
    Loaded 2278 names.       ==> indicates successful load of data retrieved from server
    Loaded 154 bad words     ==> our second data set has been retrieved and loaded
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 58,777 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 322,606 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\bundles\mypals\fr_fr_resources.swf - 595,025 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
        ==> not sure what this next warning means.  I'm guessing I will later have to research it and return to 'secure' comm with server, but I'm ignoring for now
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    Resource bundle loaded for locale fr_fr  ==> at this point, we appear to have our French assets loaded successfully
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 1,303,976 bytes after decompression
    [Unload SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf  ==> some runs see this, but others do not. I expect it is a timing issue of whether it is reached or not before the crash
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 794,898 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 194,635 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 261,589 bytes after decompression
    ==> everything looks fine up to here.  This is then when the third call to installCompiledResourceBundles occurs
    Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.0.0\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:340]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.0.0\framework s\projects\framework\src\mx\resources\ResourceManagerImpl.as:269]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/docFrameHandler()
        at mx.core::FlexModuleFactory/docFrameListener()

  • Error: Could not find compiled resource bundle 'sparkEffects' for locale 'en_US'

    I have a multi-module application that I am building in Flash Builder 4.5 Premium.
    When I launch the application It starts with a basic login page and looks ok. After logging in, modules and style sheets are loaded dynamically and  I get this exception stack trace.
    Error: Could not find compiled resource bundle 'sparkEffects' for locale 'en_US'.
              at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()
              at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
              at mx.core::FlexModuleFactory/installCompiledResourceBundles()
              at mx.core::FlexModuleFactory/docFrameHandler()
              at mx.core::FlexModuleFactory/docFrameListener()
    Windows 7
    Flashbuilder 4.5 Premium
    Compiled with SDK 4.5.1
    Flex 3 Compatibility Mode: No
    Framework Linkage: RSL
    SWC Project Linkage: RSL
    Can anyone help me fix this?

    I have determined at least that it is the very first style sheet that I am loading into the application that is causing the exception as I modified to not load anything else.
    Style sheets are loadingusing this method. FlexGlobals.topLevelApplication.styleManager.loadStyleDeclarations

  • I'm getting an error "Could not find compiled resource bundle 'layout' for locale 'en_US'."

    I thought I would update to the latest trunk version of the sdk.  When I run my code I keep getting this Error being thrown:
    "Error: Could not find compiled resource bundle 'layout' for locale 'en_US'."
    It worked fine with the beta sdk and nightly builds from a long time before that.  The error occured in builds 7573 and 7830, so what ever changed happened before then.  I put a break point in there, and other resource bundles are being loaded ok.
    My project uses RSLs and modules. I'm using Flash Builder beta.
    I'm not familiar with resource bundles and not sure what to look for.  Any ideas as to what to try or where to look?
    Is there something I need to update to run the latest code?
    Is the the appropriate place to post questions regarding the nightly builds?  Or should I be asking somewhere else?
    Thanks!
    PS Here is the full stack trace if it gives anyone more ideas:
    Error: Could not find compiled resource bundle 'layout' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\trunk\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:339]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\trunk\framework s\projects\framework\src\mx\resources\ResourceManagerImpl.as:268]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/docFrameHandler()
        at flash.display::MovieClip/nextFrame()
        at mx.core::FlexModuleFactory/deferredNextFrame()
        at mx.core::FlexModuleFactory/update()
        at mx.core::FlexModuleFactory/moduleCompleteHandler()

    hi
    also add the following
    to my compiler auguments:
    -locale en_US    -source-path=locale/{locale}    -allow-source-path-overlap=true
    and to actionScriptProperties I have the following where path= is the location of your locale folder
    <compilerSourcePathEntry kind="1" linkType="1" path="/locale/{locale}"/>
    Not sure if this is the correct way to do it, but it stopped me getting any errors.

  • Error: Could not find compiled resource bundle 'logging' for locale 'fr_FR'

    Hello
    I'm developping a mobile application based on Flex  4.6 + Adobe AIR 3.5
    There is no error when compiling, but when the application starts it crashes whith this error message:
    Error: Could not find compiled resource bundle 'logging' for locale 'fr_FR'.
      at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.y\frameworks\p rojects\framework\src\mx\resources\ResourceManagerImpl.as:392]
      at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.y\frameworks\ projects\framework\src\mx\resources\ResourceManagerImpl.as:306]
      at mx.resources::ResourceManagerImpl/processInfo()[E:\dev\4.y\frameworks\projects\framework\ src\mx\resources\ResourceManagerImpl.as:450]
      at mx.resources::ResourceManagerImpl()[E:\dev\4.y\frameworks\projects\framework\src\mx\resou rces\ResourceManagerImpl.as:133]
      at mx.resources::ResourceManager$/getInstance()[E:\dev\4.y\frameworks\projects\framework\src \mx\resources\ResourceManager.as:117]
      at mx.styles::StyleManagerImpl()[E:\dev\4.y\frameworks\projects\framework\src\mx\styles\Styl eManagerImpl.as:380]
      at _ASMagnetoFute_iOS_FlexInit$/init()
      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2815]
      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2723]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/timerHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:542]
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()
    The application is in french, both for iOS and Android.
    It is split in several libs, an application for iOS and another one for android.
    I use the same SDK for another mobile application without any problem -but it does not use the mx.logging package.
    I tried many things, like the solution described in http://forums.adobe.com/thread/758619, but it did not solve the problem. After listing the bundles used I added
    -include-resource-bundles=MagnetoFute,collections,components,core,effects,fiber,layout,log ging,messaging,rpc,serializer,skins,sparkEffects,styles,textLayout,utils,validators
    to my compiler arguments.
    Help would be greatly appreciated.

    I don't know if Adobe has an fr_FR locale for the logging bundle.  You can try creating your own to see if that is the only one missing or if there is a whole resource swc missing.

Maybe you are looking for