You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Mark Saunders (JIRA)" <ji...@apache.org> on 2012/07/20 21:45:34 UTC

[jira] [Created] (FLEX-33142) embeddedFontRegistry Null reference error loading a module that has

Mark Saunders created FLEX-33142:
------------------------------------

             Summary: embeddedFontRegistry Null reference error loading a module that has <s:FormItem>
                 Key: FLEX-33142
                 URL: https://issues.apache.org/jira/browse/FLEX-33142
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: FTETextField
    Affects Versions: Apache Flex 4.8 (parity release)
         Environment: Windows 7 64 bit; FlashBuilder 4.5
            Reporter: Mark Saunders


Error below occurs when a module is loaded that has a <s:FormItem>.  The error is in class FTETextUtil method getEmbeddedFontContext() line 214.  The property embeddedFontRegistry is null


Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)	
	spark.utils::FTETextUtil$/getEmbeddedFontContext	
	spark.utils::FTETextUtil$/calculateFontBaseline	
	spark.components.supportClasses::GroupBase/get baselinePosition	
	spark.components::Group/get baselinePosition	
	spark.layouts::ConstraintLayout/parseElementConstraints	
	spark.layouts::ConstraintLayout/parseConstraints	
	spark.layouts::ConstraintLayout/measure	
	spark.components.supportClasses::GroupBase/measure	
	mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes	
	mx.core::UIComponent/validateSize	
	spark.components::Group/validateSize	
	mx.managers::LayoutManager/validateSize	
	mx.managers::LayoutManager/doPhasedInstantiation	
	mx.managers::LayoutManager/doPhasedInstantiationCallback	


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLEX-33142) embeddedFontRegistry Null reference error loading a module that has

Posted by "Mark Saunders (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLEX-33142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Saunders updated FLEX-33142:
---------------------------------

    Attachment: FTETextUtil.as

MY ATTEMPT AT A FIX FOR THIS.  This Is Not tested since I do not have build capabilities (local) yet.
                
> embeddedFontRegistry Null reference error loading a module that has <s:FormItem>
> --------------------------------------------------------------------------------
>
>                 Key: FLEX-33142
>                 URL: https://issues.apache.org/jira/browse/FLEX-33142
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: FTETextField
>    Affects Versions: Apache Flex 4.8 (parity release)
>         Environment: Windows 7 64 bit; FlashBuilder 4.5
>            Reporter: Mark Saunders
>         Attachments: FTETextUtil.as, test48.mxml, test48Mod.mxml
>
>
> Error below occurs when a module is loaded that has a <s:FormItem>.  The error is in class FTETextUtil method getEmbeddedFontContext() line 214.  The property embeddedFontRegistry is null
> Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)	
> 	spark.utils::FTETextUtil$/getEmbeddedFontContext	
> 	spark.utils::FTETextUtil$/calculateFontBaseline	
> 	spark.components.supportClasses::GroupBase/get baselinePosition	
> 	spark.components::Group/get baselinePosition	
> 	spark.layouts::ConstraintLayout/parseElementConstraints	
> 	spark.layouts::ConstraintLayout/parseConstraints	
> 	spark.layouts::ConstraintLayout/measure	
> 	spark.components.supportClasses::GroupBase/measure	
> 	mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes	
> 	mx.core::UIComponent/validateSize	
> 	spark.components::Group/validateSize	
> 	mx.managers::LayoutManager/validateSize	
> 	mx.managers::LayoutManager/doPhasedInstantiation	
> 	mx.managers::LayoutManager/doPhasedInstantiationCallback	

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLEX-33142) embeddedFontRegistry Null reference error loading a module that has

Posted by "Mark Saunders (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLEX-33142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428035#comment-13428035 ] 

Mark Saunders commented on FLEX-33142:
--------------------------------------

UPDATE: This Issue occurs only when using the Halo theme.
                
> embeddedFontRegistry Null reference error loading a module that has <s:FormItem>
> --------------------------------------------------------------------------------
>
>                 Key: FLEX-33142
>                 URL: https://issues.apache.org/jira/browse/FLEX-33142
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: FTETextField
>    Affects Versions: Apache Flex 4.8 (parity release)
>         Environment: Windows 7 64 bit; FlashBuilder 4.5
>            Reporter: Mark Saunders
>         Attachments: FTETextUtil.as, test48.mxml, test48Mod.mxml
>
>
> Error below occurs when a module is loaded that has a <s:FormItem>.  The error is in class FTETextUtil method getEmbeddedFontContext() line 214.  The property embeddedFontRegistry is null
> Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)	
> 	spark.utils::FTETextUtil$/getEmbeddedFontContext	
> 	spark.utils::FTETextUtil$/calculateFontBaseline	
> 	spark.components.supportClasses::GroupBase/get baselinePosition	
> 	spark.components::Group/get baselinePosition	
> 	spark.layouts::ConstraintLayout/parseElementConstraints	
> 	spark.layouts::ConstraintLayout/parseConstraints	
> 	spark.layouts::ConstraintLayout/measure	
> 	spark.components.supportClasses::GroupBase/measure	
> 	mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes	
> 	mx.core::UIComponent/validateSize	
> 	spark.components::Group/validateSize	
> 	mx.managers::LayoutManager/validateSize	
> 	mx.managers::LayoutManager/doPhasedInstantiation	
> 	mx.managers::LayoutManager/doPhasedInstantiationCallback	

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLEX-33142) embeddedFontRegistry Null reference error loading a module that has

Posted by "Carol Frampton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLEX-33142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419519#comment-13419519 ] 

Carol Frampton commented on FLEX-33142:
---------------------------------------

I see the same output when building with either Adobe Flex 4.6 or Apache Flex 4.8?  Did you install the optional embedded font support?  You should have four jar files in your lib/external/optional directory: afe, aglj40, flex-fontkit and rideau
                
> embeddedFontRegistry Null reference error loading a module that has <s:FormItem>
> --------------------------------------------------------------------------------
>
>                 Key: FLEX-33142
>                 URL: https://issues.apache.org/jira/browse/FLEX-33142
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: FTETextField
>    Affects Versions: Apache Flex 4.8 (parity release)
>         Environment: Windows 7 64 bit; FlashBuilder 4.5
>            Reporter: Mark Saunders
>         Attachments: FTETextUtil.as, test48.mxml, test48Mod.mxml
>
>
> Error below occurs when a module is loaded that has a <s:FormItem>.  The error is in class FTETextUtil method getEmbeddedFontContext() line 214.  The property embeddedFontRegistry is null
> Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)	
> 	spark.utils::FTETextUtil$/getEmbeddedFontContext	
> 	spark.utils::FTETextUtil$/calculateFontBaseline	
> 	spark.components.supportClasses::GroupBase/get baselinePosition	
> 	spark.components::Group/get baselinePosition	
> 	spark.layouts::ConstraintLayout/parseElementConstraints	
> 	spark.layouts::ConstraintLayout/parseConstraints	
> 	spark.layouts::ConstraintLayout/measure	
> 	spark.components.supportClasses::GroupBase/measure	
> 	mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes	
> 	mx.core::UIComponent/validateSize	
> 	spark.components::Group/validateSize	
> 	mx.managers::LayoutManager/validateSize	
> 	mx.managers::LayoutManager/doPhasedInstantiation	
> 	mx.managers::LayoutManager/doPhasedInstantiationCallback	

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLEX-33142) embeddedFontRegistry Null reference error loading a module that has

Posted by "Mark Saunders (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLEX-33142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Saunders updated FLEX-33142:
---------------------------------

    Attachment: test48Mod.mxml
                test48.mxml

SAMPLE CODE TO RECREATE ISSUE.  The Application test48 loads the module test48Mod.
                
> embeddedFontRegistry Null reference error loading a module that has <s:FormItem>
> --------------------------------------------------------------------------------
>
>                 Key: FLEX-33142
>                 URL: https://issues.apache.org/jira/browse/FLEX-33142
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: FTETextField
>    Affects Versions: Apache Flex 4.8 (parity release)
>         Environment: Windows 7 64 bit; FlashBuilder 4.5
>            Reporter: Mark Saunders
>         Attachments: test48.mxml, test48Mod.mxml
>
>
> Error below occurs when a module is loaded that has a <s:FormItem>.  The error is in class FTETextUtil method getEmbeddedFontContext() line 214.  The property embeddedFontRegistry is null
> Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)	
> 	spark.utils::FTETextUtil$/getEmbeddedFontContext	
> 	spark.utils::FTETextUtil$/calculateFontBaseline	
> 	spark.components.supportClasses::GroupBase/get baselinePosition	
> 	spark.components::Group/get baselinePosition	
> 	spark.layouts::ConstraintLayout/parseElementConstraints	
> 	spark.layouts::ConstraintLayout/parseConstraints	
> 	spark.layouts::ConstraintLayout/measure	
> 	spark.components.supportClasses::GroupBase/measure	
> 	mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes	
> 	mx.core::UIComponent/validateSize	
> 	spark.components::Group/validateSize	
> 	mx.managers::LayoutManager/validateSize	
> 	mx.managers::LayoutManager/doPhasedInstantiation	
> 	mx.managers::LayoutManager/doPhasedInstantiationCallback	

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLEX-33142) embeddedFontRegistry Null reference error loading a module that has

Posted by "Sergey Tokarev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLEX-33142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451921#comment-13451921 ] 

Sergey Tokarev commented on FLEX-33142:
---------------------------------------

I found that if I change fontLookup in CSS of my project from "auto" to "device" all will work correctly.
                
> embeddedFontRegistry Null reference error loading a module that has <s:FormItem>
> --------------------------------------------------------------------------------
>
>                 Key: FLEX-33142
>                 URL: https://issues.apache.org/jira/browse/FLEX-33142
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: FTETextField
>    Affects Versions: Apache Flex 4.8 (parity release)
>         Environment: Windows 7 64 bit; FlashBuilder 4.5
>            Reporter: Mark Saunders
>         Attachments: FTETextUtil.as, test48Mod.mxml, test48.mxml
>
>
> Error below occurs when a module is loaded that has a <s:FormItem>.  The error is in class FTETextUtil method getEmbeddedFontContext() line 214.  The property embeddedFontRegistry is null
> Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)	
> 	spark.utils::FTETextUtil$/getEmbeddedFontContext	
> 	spark.utils::FTETextUtil$/calculateFontBaseline	
> 	spark.components.supportClasses::GroupBase/get baselinePosition	
> 	spark.components::Group/get baselinePosition	
> 	spark.layouts::ConstraintLayout/parseElementConstraints	
> 	spark.layouts::ConstraintLayout/parseConstraints	
> 	spark.layouts::ConstraintLayout/measure	
> 	spark.components.supportClasses::GroupBase/measure	
> 	mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes	
> 	mx.core::UIComponent/validateSize	
> 	spark.components::Group/validateSize	
> 	mx.managers::LayoutManager/validateSize	
> 	mx.managers::LayoutManager/doPhasedInstantiation	
> 	mx.managers::LayoutManager/doPhasedInstantiationCallback	

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira