Unable to load embedded fonts in TLF using SWFContext
Hi,
We are having issues with embedding/renderring fonts in swf.
Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters -- "-static-link-runtime-shared-libraries". and using Flash player version 10.1, 10.2 & 10.3.
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
public static const calibri:Class;
[Embed("slide1/sldBg1.png", mimeType="image/png")]
public static const bg:Class;
[Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
public static const slide:Class;
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
Using Flex 4.1 SDK:--
When I load the slide1.swf in FB4 ActionScript Project it shows the embedded text. // Output is fine
But, when I load the slide1.swf in FB4 MX+Spark Flex Project, it gives an error :
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
Below is the code where the exception occurs.
var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("Slide1") as Class;
textFlow.flowComposer.swfContext = new fontClass(); // Exception occurs here
textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));
textFlow.flowComposer.updateAllControllers();
textFlow.flowComposer.composeToPosition();
And, when I load the slide1.swf in FB4 MX Flex Poject, it shows the embedded text. // Output is fine
Using Flex 4.5 SDK:--
With FB4 MX+ Spark and MX only Flex Project we get following errors
VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.
We use this for fonts ---- textFormat.fontLookup = FontLookup.EmbedCFF;
For showing the fonts we use the line of code :--
textFlow.flowComposer.swfContext = new fontClass();
which throws an error
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
Similar Messages
-
Unable to load embedded fonts in TlF / FlowLeafElement
dears,
I use TextFlowUtil.importFromString and FlowLeafElement to make each some text have its own style, every some words have diffirent color, fontFamily, fontSize....etc
that is done here in the text attribute in this xml tag, and TextFlowUtil.importFromString and FlowLeafElement make taht perfect:
<TextArea text="<div direction="rtl">
 <p textAlign="right">
 <span fontFamily="ttf" fontSize="16" color="#FFE000E0" >Welcome to Android Training. Here you'll find a collection of classes that aim to help you build great apps for </span>
 <span fontFamily="Arial" fontSize="16" color="#FFE000E0" >Android, using best practices in a variety of framework topics.</span>
 </p>
 <p></p>
 <p textAlign="right">
 <span fontFamily="Arial" fontSize="16" color="#FFE00000">Each class explains the steps required to solve a problem or implement a feature using code snippets and </span>
 <span fontFamily="Arial" fontSize="16" color="#FFE00000">sample code for you to use in your apps.</span>
 </p>
 <p></p>
 <p textAlign="right">
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">What you see now is just the beginning. We plan to add many more classes, expand and refine existing </span>
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">classes, and build Training Courses that help you enhance your apps using objective-oriented collections of </span>
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">classes.</span>
 </p>
</div>" direction="rtl" styleName=".textAreaTitle" editable="false" selectable="true" scrollable="false" mainReferance="UI.Components.Basics.TextArea" />
The problem is that i need to embed fonts, by this fontFamily="Arial" you can set font name which you want, but if i set font name which is embedded it won't work, like : fontFamily="ttf"
the embedded code is :
[Embed(source='/Resources/majallab.ttf',fontName='ttf',mimeType='application/x-font',embed AsCFF='true')]
var font1:Class; //This is only used to compile the code
I use Flex SDK 4.5,
what can i do ?
Thank you in advance,
amtTo use embedded fonts in a Flex component, the fontFamily for the component needs to be set to an embedded font that is in the same SWF as the other embedded fonts in the TextFlow. See my blog for more details
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui -
Unable to load embedded fonts in Textlayout Framework using SWFContext.
Hi,
We are having issues with embedding/renderring fonts in swf.
Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters -- "-static-link-runtime-shared-libraries".
and checked with Flash player version 10.1 and 10.2 and 10.3.
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
public static const calibri:Class;
[Embed("slide1/sldBg1.png", mimeType="image/png")]
public static const bg:Class;
[Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
public static const slide:Class;
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
Using Flex 4.1 SDK:--
When I load the slide1.swf in ActionScript Project it shows the embedded text.
But, when I load the slide1.swf in MX+Spark Flex Project, it gives an error :
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
Below red colored text is the code where the exception occurs.
var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("slide1") as Class;
textFlow.flowComposer.swfContext = new fontClass();
textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));
textFlow.flowComposer.updateAllControllers();
And, when I load the slide1.swf in Only MX Flex Poject, it shows the embedded Font.
Using Flex 4.5 SDK:--
With MX+ Spark and MX only Flex Project we get following errors
VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.Hi Jin-Huang
But when I use Simple ASProject with SDK 4.1 then it works fine but when I create Flex project then it give error
with SWFContext.
I think it's a issue of swfcontext or AS comunication with Spark components.
Please let me know if any solution.
Thanks -
Embedded Fonts, how to use in all controls?
When I embed either external fonts or system fonts they work
great for say the label control but not for others such as the
progressBar, on top of this any control that wont use an embedded
font cant be used in conjunction with an alpha related effect as
the font will be 100% alpha the entire time. Whats the deal with
some controls not using the specified embedded font?Hi again....
I must ask again..because I dont think I understand completly how to get speedfan to work in my other profil...( User).
I installed speed fan as admin and configured it proper according to this forum.....
It seems to work just fine.......
Before I logout and switch user I make sure that speedfan is not running and that there is nothing in its autostart.
I then logout and switch to the other profil.......there I put an speedfan-ikon on its desk....
When I try to launch speedfan in this profil I get a warning:
UNABLE TO SAVE TO C:\program\speedfan\speedfanparams.cfg
It seems that I only can run speedfan as admin......
Am sorry to bother u guys again...but u seem to be wise in this matter.....
I want to be able to run the computer in this other profil, not in admin.
In this other profil I would like to have speedfan running and showing me the temps of the computer.....
As I understand its the most secure way to run computers......
Best regards
Mr W -
How to use dynamic loaded embeded font?
I have loaded fonts.swf on startup. I don't use TextLayout
Embeded fonts feature. Then i have loaded some xml and assign xml
to TextLayout. How I can use loaded font for display?Are you using Flash CS4 or Flex?
Check out the following blog post, it contains instructions
for font embedding that may help you out:
Embedded
Font Subsetting Using DefineFont4 -
Module not unloading if embedded font was ever used
So, I have a test app that uses modules with the font embeded. Using ModuleManager I am able to load up the module. Once I call IModuleInfo.factory.create(), I am then able to setStyle("fontFamily", "BPDiet") and the font does show up. The issue I am now having is that once I have used a font from a module, even if my TextArea is no longer using it (I even tried removing the textArea, and replacing it with a new one), the module will not unload.
I read through this "What We Know About Unloading Modules" and I think I am not leaving any references around.They are loaded using the load() defaults. There is no code (that is used) in the module. The modules are not being added to the display, so they never receive focus.
Note that I am unable to run the profiler as suggested in the article as I don't have the premium Flash Builder 4. <grrr>
Note that the first module that is loaded, I can never get to unload, even if I never used the font embedded in it, but all subsequent modules will unload, if I do not use the embedded font. I can live with the first one being pinned as long as I can unload the others that are not in use.
Here is the code from one of my modules:
<?xml version="1.0" encoding="utf-8"?>
<mx:Module 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 spark.components.TextArea;
[Embed(source='assets/BPDiet.otf',
fontName='BPDiet',
mimeType='application/x-font')]
public static var BPDietNormal:Class;
public function GetSampleTextArea():TextArea {
var SampleTextArea:TextArea = new TextArea();
SampleTextArea.text = "Test BPDiet please!";
SampleTextArea.setStyle("fontFamily", 'BPDiet');
return SampleTextArea;
]]>
</fx:Script>
</mx:Module>
And here is the App that is loading and using the modules:
<?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" minWidth="400" minHeight="400">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.core.UIComponent;
import mx.events.FlexEvent;
import mx.events.ModuleEvent;
import mx.managers.SystemManager;
import mx.modules.IModule;
import mx.modules.IModuleInfo;
import mx.modules.Module;
import mx.modules.ModuleManager;
import spark.components.TextArea;
private var _ta:TextArea = null;
protected var _moduleInfo:IModuleInfo;
private function LoadFontTextArea(fontSwf:String):void {
status.text = "Loading the font pack";
_moduleInfo = ModuleManager.getModule(fontSwf);
// add some listeners
_moduleInfo.addEventListener(ModuleEvent.READY, onModuleReady);
_moduleInfo.addEventListener(ModuleEvent.ERROR, moduleLoadErrorHandler);
_moduleInfo.addEventListener(ModuleEvent.UNLOAD, moduleUnloadHandler);
_moduleInfo.load();
private function onModuleReady(event:ModuleEvent):void {
status.text = "The font pack swf Ready \n" + event.module.url;
//All I had todo was create the module, then I could access the embeded font by name
var fontMod:* = event.module.factory.create();
//_ta = fontMod.GetSampleTextArea();
//panelToStuff.addElement(_ta);
fontMod = null;
//fontNameForSample = event.module.url.replace(".swf", "");
private function moduleLoadErrorHandler(event:ModuleEvent):void {
status.text = "Font Module Load Error. \n" +
event.module.url + "\n"+ event.errorText;
private function moduleUnloadHandler(event:ModuleEvent):void {
status.text = "Font Module Unload Event. \n" + event.module.url;
private function fontChangedHandler():void {
unloadCurrentFont();
LoadFontTextArea(String(availFonts.selectedItem));
private function unloadCurrentFont():void {
if (_ta != null) {
panelToStuff.removeElement(_ta);
_ta = null;
panelToStuff.removeElement(sampleTextArea);
sampleTextArea = null;
sampleTextArea = new TextArea();
sampleTextArea.id = "sampleTextArea";
sampleTextArea.text = "Some text for your viewing pleasure. " + colorForBK.toString(16);
panelToStuff.addElement(sampleTextArea);
if (_moduleInfo != null)
_moduleInfo.release();
//_moduleInfo.unload();
_moduleInfo = null;
System.gc();
private function DoNonImportantWork():void {
colorForBK -= 0xFAA;
if (colorForBK < 0x0) colorForBK = 0xFFFFFF;
var foo:* = {prop1: "yea" + colorForBK.toString(), prop2:"boo" + colorForBK.toString()};
var hmm:String = foo.prop1 + " " + foo.prop2;
regedFonts = new ArrayCollection(Font.enumerateFonts(false));
[Bindable]
private var colorForBK:int = 0xFFFFFF;
[Bindable]
private var fonts:ArrayCollection =
new ArrayCollection(new Array("AlexandriaFLF.swf", "BPDiet.swf", "ChanpagneFont.swf", "KidsFont.swf"));
[Bindable]
private var regedFonts:ArrayCollection;
[Bindable]
private var fontNameForSample:String = "";
]]>
</fx:Script>
<s:VGroup id="panelToStuff">
<s:HGroup>
<s:Label id="status" text="status area" backgroundColor="{colorForBK}"/>
<s:VGroup>
<s:DropDownList id="availFonts" dataProvider="{fonts}" change="fontChangedHandler()" />
<s:Button label="UnLoad" enabled="true" click="unloadCurrentFont()"/>
<s:Button label="doSome" enabled="true" click="DoNonImportantWork()"/>
</s:VGroup>
</s:HGroup>
<s:HGroup>
<s:Button click="fontNameForSample = 'BPDiet';" label="BPDiet"/>
<s:Button click="fontNameForSample = 'Champagne';" label="Champagne"/>
<s:Button click="fontNameForSample = 'Kids';" label="Kids"/>
</s:HGroup>
<s:Label text="{regedFonts.length} reg'ed"/>
<s:TextArea id="sampleTextArea" fontFamily="{fontNameForSample}" text="Some Sample text for your viewing"/>
</s:VGroup>
</s:Application>
A couple things to note; I am calling System.rc() in the unloadCurrentFont() method just to speed up seeing the SWF unload in the debug console. The DoNonImportantWork() is there to just cause some events to happen and to create some objects that will need to be GC'ed. It also let me know that the fonts are not getting registered in Font.
I'm going to have 30 fonts (and more, that designer is busy) that I will need to be able to dynamically load, but right now, loading them with CSS style modules blows up after about 15 because style modules register the font so I cannot unload the CSS swf.To help eliminate the question of whether the TextArea is being held by something else, I have removed it from the MXML, and now programatically create it. That did not help.
So, I got the trial version of Flash Builder 4 installed on another machine in the office so that I can use the profiler. (The profiler is pretty cool by the way).
After a lot of profiing, I found four paths to the module's FlexModuleFactory.
Two of those paths go to EmbeddedFontRegistry, whose data is static. I could get into it and remove font entry and free up the moduleFactory from there. This is a hack, that entry in/on EmbeddedFontRegistry.font should have been cleaned up by the code removing the fontFamily from the TextArea. (Note that EmbeddedFontRegistry is marked [ExcludeClass], which I assume means I should not really be messing with it.
The other two I cannot get to as they are anonymous. They also don't appear to be referenced, as the Object References shows them both as GC root objects. Here is a screen shot:
I did a search through the sdk code and 'fbs' only shows up as a parameter on the init function of various Marshal support classes, but is not used in the init()
Anyway, these references to the FlexModuleFactory do not get held if I do not use the embeded font in the module.
Here is the updated code:
<?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" minWidth="400" minHeight="400">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.core.EmbeddedFont;
import mx.core.EmbeddedFontRegistry;
import mx.core.IEmbeddedFontRegistry;
import mx.core.UIComponent;
import mx.events.FlexEvent;
import mx.events.ModuleEvent;
import mx.managers.SystemManager;
import mx.modules.IModule;
import mx.modules.IModuleInfo;
import mx.modules.Module;
import mx.modules.ModuleManager;
import spark.components.TextArea;
private var _ta:TextArea = null;
protected var _moduleInfo:IModuleInfo;
private function LoadFontTextArea(fontSwf:String):void {
status.text = "Loading the font pack";
_moduleInfo = ModuleManager.getModule(fontSwf);
// add some listeners
_moduleInfo.addEventListener(ModuleEvent.READY, onModuleReady);
_moduleInfo.addEventListener(ModuleEvent.ERROR, moduleLoadErrorHandler);
_moduleInfo.addEventListener(ModuleEvent.UNLOAD, moduleUnloadHandler);
_moduleInfo.load();
private function onModuleReady(event:ModuleEvent):void {
status.text = "The font pack swf Ready \n" + event.module.url;
//All I had todo was create the module, then I could access the embeded font by name
var fontMod:* = event.module.factory.create();
fontMod = null;
private function moduleLoadErrorHandler(event:ModuleEvent):void {
status.text = "Font Module Load Error. \n" +
event.module.url + "\n"+ event.errorText;
private function moduleUnloadHandler(event:ModuleEvent):void {
status.text = "Font Module Unload Event. \n" + event.module.url;
private function fontChangedHandler():void {
unloadCurrentFont();
LoadFontTextArea(String(availFonts.selectedItem));
private function unloadCurrentFont():void {
if (_ta != null && _moduleInfo != null) {
var fontName:String = _ta.getStyle("fontFamily");
_ta.setStyle("fontFamily", "");
_ta.validateProperties();
if (_ta.textDisplay) {
_ta.textDisplay.validateProperties();
panelToStuff.removeElement(_ta);
_ta = null;
//This I should not have to do, but the framework is not doing it
var embFontReg:IEmbeddedFontRegistry = EmbeddedFontRegistry.getInstance();
var embFonts:Array = embFontReg.getFonts();
for each (var curEmbFont:EmbeddedFont in embFonts){
if (curEmbFont.fontName == fontName){
embFontReg.deregisterFont(curEmbFont, _moduleInfo.factory);
if (_moduleInfo != null)
_moduleInfo.unload();
_moduleInfo = null;
System.gc();
private function AddTA():void {
_ta = new TextArea();
_ta.text = "Some text for your viewing pleasure. " + colorForBK.toString(16);
panelToStuff.addElement(_ta);
private function DoNonImportantWork():void {
colorForBK -= 0xFAA;
if (colorForBK < 0x0) colorForBK = 0xFFFFFF;
var foo:* = {prop1: "yea" + colorForBK.toString(), prop2:"boo" + colorForBK.toString()};
var hmm:String = foo.prop1 + " " + foo.prop2;
[Bindable]
private var colorForBK:int = 0xFFFFFF;
[Bindable]
private var fonts:ArrayCollection =
new ArrayCollection(new Array("AlexandriaFLF.swf", "BPDiet.swf", "ChanpagneFont.swf", "KidsFont.swf"));
]]>
</fx:Script>
<s:VGroup id="panelToStuff">
<s:HGroup>
<s:Label id="status" text="status area" backgroundColor="{colorForBK}"/>
<s:VGroup>
<s:DropDownList id="availFonts" dataProvider="{fonts}" change="fontChangedHandler()" />
<s:Button label="UnLoad" enabled="true" click="unloadCurrentFont()"/>
<s:Button label="AddTA" enabled="true" click="AddTA()"/>
<s:Button label="doSome" enabled="true" click="DoNonImportantWork()"/>
</s:VGroup>
</s:HGroup>
<s:Button click="_ta.setStyle('fontFamily', 'BPDiet');" label="BPDiet"/>
</s:VGroup>
</s:Application>
I really think I've reached the end of what I can do. This really seems like a bug. -
Unable to apply embedded font swf to text in text layout framework
Hello,
We have created a swf for a given font (for e.g., Calibri.swf) which contains all the styles (Regular, Italic, Bold, BoldItalic).
We have created a xml which lists the name of the font and the corresponding swf file path. The names from the xml are loaded into a combo box in the application.
When we try to apply the selected font to a text in the text layout framework, it does not apply the same. It sets the font to default "Times" font.
Following is a snippet of code to apply the font to the text:
private function selectFont(fontXML:XML):void {
var path:String = fontXML.@source;
var myEvent:IEventDispatcher = styleManager.loadStyleDeclarations(FlexGlobals.topLevelApplication.url.substring(0,FlexGl obals.topLevelApplication.url.lastIndexOf("/"))+"/"+path);
myEvent.addEventListener(StyleEvent.COMPLETE, function(event:StyleEvent):void{
var editManager:EditManager = textFlow.interactionManager as EditManager;
var itextLayout:TextLayoutFormat = new TextLayoutFormat();
itextLayout.fontSize = 20;
var fontName:String = fontXML.@name;
Alert.show(fontName);
itextLayout.fontFamily = fontName;
Alert.show( "itext = " + itextLayout.fontFamily);
editManager.applyFormat(itextLayout,itextLayout,itextLayout);
var flowLeafElement:FlowElement = textFlow.findLeaf(editManager.anchorPosition) as FlowElement;
editManager.changeStyleName(fontName,flowLeafElement);
Can anyone please let us know what is missing in the implementation?
Thanks in advance.
VikramMy recommendation: unless you really care about ISWFContext implementations and the application domain issues, ignore Alex's post about embedded fonts.
It is a nice discussion about the inner workings of the domain and security of how this works but it is imho broken and is an insane concept to require an ISWFContext to just use an embedded font. It also breaks runtime CSS loading that has fonts embedded in it because the Flex compiler (last I checked) was also busted – it doesn't include the function necessary to create within context the font embed so that it may be applied. You can't create an ISWFContext with a compiled CSS file.
These issues were introduced in the last Flex SDK beta before FB4 was released in final form. There are multiple bugs logged against the issue of applying loaded font files to TLF text (in short, SWFContext is broken and you have to override GlobalSettings.resolveFontLookupFunction to return embedded or null, all the time).
Here's some more details to get you started - with links to at least one of the SDK bugs that were filed:
http://forums.adobe.com/message/2656152
For example:
import flashx.textLayout.elements.GlobalSettings;
import flash.text.engine.FontLookup;
GlobalSettings.resolveFontLookupFunction = function makeValid():String { return FontLookup.EMBEDDED_CFF };
And you may need to do this after your font is loaded:
yourTextBlock.textFlow.invalidateAllFormats();
Disclaimer: I haven't seen the latest Flex SDK release to see if this was fixed. I have an AIR application with native process that builds embedded font SWF files for use and stub code for FB4 usage but haven't updated to the latest SDK yet to see if it's working properly.
Anyhow, your best bet is to look at the Flash Builder forums. I think this is/was a Flex team issue, not TLF. -
Unable to load the data into Cube Using DTP in the quality system
Hi,
I am unable to load the data from PSA to Cube using DTP in the quality system for the first time
I am getting the error like" Data package processing terminated" and "Source TRCS 2LIS_17_NOTIF is not allowed".
Please suggest .
Thanks,
SatyaprasadHi,
Some Infoobjects are missing while collecting the transport.
I collected those objects and transported ,now its working fine.
Many Thanks to all
Regards,
Satyaprasad -
Unable to load data in to table using sqlloader
Hi,
Oracle Version :10.2.0.1
Operating system:windows Xp
I was unable to load the data in to table from csv file .Can any one please help me .
Here is the output of my log file
SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jun 3 12:43:22 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: ach_staging.ctl
Data File: E:\SQL LOADER\ACH_STAGING.csv
Bad File: E:\SQL LOADER\load_bad.bad
Discard File: E:\SQl LOADER\emp.dsc
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table ACH_STAGING, loaded from every logical record.
Insert option in effect for this table: INSERT
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
ACH_CODE FIRST * , O(") CHARACTER
LOAN_CODE NEXT * , O(") CHARACTER
LOAN_TYPE NEXT * , O(") CHARACTER
TRAN_ID NEXT * , O(") CHARACTER
BO_CODE NEXT * , O(") CHARACTER
BO_NAME NEXT * , O(") CHARACTER
ST_CODE NEXT * , O(") CHARACTER
ACH_TYPE NEXT * , O(") CHARACTER
ACH_EFFECTIVE_DATE NEXT * , O(") CHARACTER
AMT NEXT * , O(") CHARACTER
CHECK_ACCNT_NO NEXT * , O(") CHARACTER
ABA_CODE NEXT * , O(") CHARACTER
ACH_STATUS NEXT * , O(") CHARACTER
TRAN_STATUS NEXT * , O(") CHARACTER
IS_HOLD NEXT * , O(") CHARACTER
IS_CANCELLED NEXT * , O(") CHARACTER
COMMENTS NEXT * , O(") CHARACTER
UPDATED_BY NEXT * , O(") CHARACTER
DATE_UPDATED NEXT * , O(") CHARACTER
CREATED_BY NEXT * , O(") CHARACTER
DATE_CREATED NEXT * , O(") CHARACTER
LOAN_TRAN_CODE NEXT * , O(") CHARACTER
ACH_AUTH NEXT * , O(") CHARACTER
REBATE_AMT NEXT * , O(") CHARACTER
PROMOTION_AMT NEXT * , O(") CHARACTER
TDC_ACH_NO NEXT * , O(") CHARACTER
INST_NUM NEXT * , O(") CHARACTER
DISABLE_ACH NEXT * , O(") CHARACTER
STMT_NO NEXT * , O(") CHARACTER
NEW_LOAN_TRAN_CODE NEXT * , O(") CHARACTER
REVOKED_BY NEXT * , O(") CHARACTER
REVOKED_DATE NEXT * , O(") CHARACTER
CHECK_STATUS NEXT * , O(") CHARACTER
value used for ROWS parameter changed from 64 to 30
Record 1: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 2: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 3: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 4: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 5: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 6: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 7: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 8: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 9: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 10: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 11: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 12: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 13: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 14: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 15: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 16: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 17: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 18: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 19: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 20: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 21: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 22: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 23: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 24: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 25: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 26: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 27: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 28: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 29: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 30: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 31: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 32: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 33: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 34: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 35: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 36: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 37: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 38: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 39: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 40: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 41: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 42: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 43: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 44: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 45: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 46: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 47: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 48: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 49: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 50: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
Record 51: Rejected - Error on table ACH_STAGING, column ACH_EFFECTIVE_DATE.
ORA-01830: date format picture ends before converting entire input string
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table ACH_STAGING:
0 Rows successfully loaded.
51 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 255420 bytes(30 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 60
Total logical records rejected: 51
Total logical records discarded: 0
Run began on Thu Jun 03 12:43:22 2010
Run ended on Thu Jun 03 12:43:23 2010
Elapsed time was: 00:00:00.17
CPU time was: 00:00:00.10
{code}
and the data from the CSV file is
{code}
1767641 7537506 ILP ADV 506703 MICHELLE WHITE -40 CRE 07-NOV-08 01.36.04.000000000 PM 650 INP PRO N N 54564 06-NOV-08 06.06.28.000000000 PM 54562 06-NOV-08 01.36.04.000000000 PM 2060997 PPD 0 0 0 N 1 ACH
1767642 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 01-DEC-08 12.00.00.000000000 AM 76.5 INP PRO N N Updated During EOD PAY : ACH 1 28-NOV-08 09.00.17.000000000 PM 54562 06-NOV-08 01.36.04.000000000 PM 2061201 PPD 0 0 1 N 1 ACH
1767643 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 16-DEC-08 12.00.00.000000000 AM 76.5 INP PRO N N Updated During EOD PAY : ACH 1 15-DEC-08 09.00.16.000000000 PM 54562 06-NOV-08 01.36.04.000000000 PM 2061614 PPD 0 0 2 N 1 ACH
1767644 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 02-JAN-09 12.00.00.000000000 AM 76.5 INP PRO N N Updated During EOD PAY : ACH 1 31-DEC-08 09.00.55.000000000 PM 54562 06-NOV-08 01.36.04.000000000 PM 2063375 PPD 0 0 3 N 1 ACH
1767645 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 16-JAN-09 12.00.00.000000000 AM 76.5 INP PRO N N Updated During EOD PAY : ACH 1 15-JAN-09 09.01.10.000000000 PM 54562 06-NOV-08 01.36.04.000000000 PM 2064023 PPD 0 0 4 N 1 ACH
1767646 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 02-FEB-09 12.00.00.000000000 AM 76.5 INP PRO N N Updated During EOD PAY : ACH 1 30-JAN-09 09.00.22.000000000 PM 54562 06-NOV-08 01.36.04.000000000 PM 2064639 PPD 0 0 5 N 1 ACH
1767647 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 17-FEB-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 6 N 1 ACH
1767648 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 02-MAR-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 7 N 1 ACH
1767649 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 16-MAR-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 8 N 1 ACH
1767650 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 01-APR-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 9 N 1 ACH
1767651 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 16-APR-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 10 N 1 ACH
1767652 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 01-MAY-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 11 N 1 ACH
1767653 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 18-MAY-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 12 N 1 ACH
1767654 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 01-JUN-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 13 N 1 ACH
1767655 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 16-JUN-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 14 N 1 ACH
1767656 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 01-JUL-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 15 N 1 ACH
1767657 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 16-JUL-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 16 N 1 ACH
1767658 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 03-AUG-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 17 N 1 ACH
1767659 7537506 ILP PAY 506703 MICHELLE WHITE -40 DEB 17-AUG-09 12.00.00.000000000 AM 76.5 NOP NOP N Y Cancelled during Payment By -> BUY : ACH 54605 13-FEB-09 09.03.23.000000000 AM 54562 06-NOV-08 01.36.04.000000000 PM 1778544 PPD 0 0 18 N 1 ACH
{CODE}
Thanks & Regards,
Poorna Prasad.Hi,
At last i was able to insert the data into the table but here i am facing another problem i the csv file i am having some null values in the data because of that only few records was inserted and remaining data was not inserted.
Here is the syntax what i am using to insert even null values are present
ACH_EFFECTIVE_DATE "to_timestamp(:ACH_EFFECTIVE_DATE,'DD-MON-RR HH.MI.SSXFF AM')" NULLIF ACH_EFFECTIVE_DATE=BLANKSand the error what i am getting is
E:\SQL LOADER>sqlldr userid=rr/rr control=ach_staging.ctl log=ss1.log
SQL*Loader: Release 10.2.0.1.0 - Production on Fri Jun 4 12:24:32 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-350: Syntax error at line 16.
Expecting "," or ")", found keyword nullif.
EFFECTIVE_DATE,'DD-MON-RR HH.MI.SSXFF AM')" NULLIF ACH_EFFECTIVE_DATE=
^
{code}
can any one please help me what is the correct syntax i need to user here .
Thanks & Regards,
Poorna Prasad. -
Unable to load LabVIEW VI into TestStand using LV Run Time only
I'm unable to load some of my VIs into TestStand from LabVIEW. I am using:
TestStand 4.2.1
LabVIEW 2010
I have the appropriate patches installed for both TestStand and LabVIEW, and I still get the error.
Attached is a message that I get when I hover over the "!" to explain my error. The VI has the "Simple Error Handler.vi" as part of the build, and when I eliminate this VI from my VI, TestStand then loads correctly.
Thanks,
Eric
Solved!
Go to Solution.
Attachments:
TestStand_LoadError_Hover.png 16 KBThis fixed my issue as well. Thank you for posting this. I have repaired LabVIEW 2010 sp1, LabVIEW FPGA, LabVIEW RT, DAQmx, and VISA 5.0. These are not small programs to do repairs on. Even after doing all of these repairs I still had issues with just labview coming up.
Just by clicking on my lv shortcut to run the labview.exe I would get a loading screen for gws_int.vi This was before opening any projects or VI's. Labview was having many issues. Once the loading vi screen went away the standard labview 2010 startup page was present. But this page was dysfunctional. For example if you clicked tools and then options it would just totally crash LabVIEW, no error message or warning.
Many people are suggesting to mass compile to fix this, but that is not an option. If you went to tools>advance>mass compile the same loading vi screen would come up (pic A), but then the mass compile program would have a broken arrow (pic b) I included a image to show people this.
The error list will always pop up, but there are no errors.
I called NI tech support and they suggested that I repair all of my programs starting with the largest programs first. During the repairs I found this forum. I have over 30 different NI modules installed on this machine, I would have been at this for the next two days.
Thank you very much for this.
A good question is why didn't the repairs of these large programs find this, and would any repair of any module have fixed this?
Attachments:
b.png 116 KB
a.png 46 KB -
Unable to load wingdings font to button
Hello Everyone,
Need help. I tried to load wingdings font to button, to display symbol. However seems like the button still display wording and unable to load the wingdings font. I 'm able to load other font except wingdings, wingdings 2.
Button btn = new Button();
//Font lcd = Font.loadFont(JFXTestButton.class.getResourceAsStream("wingding.ttf"),14);
Font lcd = new Font("Wingdings",54);
btn.setText("abc");
btn.setFont(lcd);
ThanksWingdings does not appear to work => bugs can be filed at http://javafx-jira.kenai.com
-
Unable to load multiple files to Essbase using MaxL and wildcards
I have multiple data files to load:
Files:
Filename.txt
Filename_1.txt
Filename_2.txt
According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
However, when I try to run the following I receive the following error:
MaxL:
import database MyApp.DB data from server text data_file "../../MyApp/Filename*.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
Error:
ERROR - 1003027 - Unable to open file [DB01/oracleEPM/user_projects/epmsystem2/EssbaseServer/essbaseserver1/app/MyApp/DB/../../Filename*.txt].
ERROR - 1241101 - Unexpected Essbase error 1003027.
I can run the following fine without any problem, but this only deals with the first of several files, and I’d rather not hard-code multiple files since the number might vary in the future:
MaxL:
import database MyApp.DB data from server text data_file "../../MyApp/Filename.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
Any ideas? And how about ASO databases?JamesD wrote:
According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
That is the tech ref for 11.1.2.2, are you on 11.1.2.2?
Import Data
11.1.2.2 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_imp_data.html
11.1.2.1 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref_1112100/frameset.htm?maxl_imp_data.html
Cheers
John
http://john-goodwin.blogspot.com/ -
Unable to load data into Essbase cube using Essbase Studio
Hi
We are creating an essbase cube using Essbase Studio using flat files as data sources.
We have taken different hierarchies into different flat files and created one fact file having dimension intersection along with data.
We are able to create the cube and the hierarchy but not able to load any data.
We are getting the following error
Failed to deploy Essbase cube.
Caused by: Unable to perform dataload from more than one flat file.
Could anyone please help on this?Oh this was killing me, so I did this test in 11.1.1.3:
1) Excel 2007 format -- no go, Essbase didn't see it
2) Excel 2003 format, three sheets -- only the first sheet was read into an empty rule
3) Excel 2003 format, one sheet -- the first sheet was read into an empty rule
4) Excel 95 format, one sheet -- the first sheet was read into an empty rule
The lesson?
1) Excel 2007/2010 sheets don't work (no surprise there as the .xlsx format isn't supported).
2) Excel 2003 and lower (hey, if you have Excel 4, I'll bet that works as well) work, but only the first sheet is recognized.
Regards,
Cameron Lackpour -
Unable to load embedded PDF - must change settings for all users
Hello. We recently updated to Adobe Reader X on our three terminal servers. Since the update we have found that a lot of our users are having an issue loading PDF's that are embedded in web sites.
They access different websites that have such features and the PDF must be displayed in the browswer for it to load correctly. Anyways, I have properly found what settings to adjust in Adobe Reader, my issue is that I need these settings adjusted for all 50 something employees and I really don't want to log into each user account and change the settings.
The settings that must be adjusted are as follows:
Edit > Preferences > General > Uncheck Enable Protected Mode at Startup
Edit > Preferences > Internet > Uncheck Display in Read Mode by Default
Edit > Preferences > Internet > Uncheck Allow fast web view
Edit > Preferences > Internet > Uncheck Allow speculative downloading in the background
I have found the registry files for the Protected Mode startup and Display in Read Mode, but am unable to find the other two registry settings. Does anyone have any idea where those might be? Or if you have a better suggestion on how to deploy Adobe with these settings already configured? I have looked in the Customization Tool but was unable to find all the settings there as well. Thanks!Acrobat is not permitted to run as a server process.
Licenses are assigned to individual users, each of whom must have their own serialized copy. -
Unable to load metada into Hyperion Planning using ODI
HI All,
I am using ODI 11g and trying to load the metadata for Hyperion Planning application 11.1.2.1. But I couldnt load all the Product members in Product Dimension.
Could able to load few members but was able to run the interface successfully but thrown error while loading few members(Most of the members are shared members, verified that base members existed). Please find the below error log.
2011-11-17 06:18:06,534 INFO [SimpleAsyncTaskExecutor-2]: Oracle Data Integrator Adapter for Hyperion Planning
2011-11-17 06:18:06,550 INFO [SimpleAsyncTaskExecutor-2]: Connecting to planning application [xxxx] on [xxxx]:[11333] using username [xxxx].
2011-11-17 06:18:06,675 INFO [SimpleAsyncTaskExecutor-2]: Successfully connected to the planning application.
2011-11-17 06:18:06,706 INFO [SimpleAsyncTaskExecutor-2]: The load options for the planning load are
Dimension Name: Product Sort Parent Child : false
Load Order By Input : false
Refresh Database : false
2011-11-17 06:18:06,768 INFO [SimpleAsyncTaskExecutor-2]: Begining the load process.
2011-11-17 06:18:06,878 DEBUG [SimpleAsyncTaskExecutor-2]: Number of columns in the source result set does not match the number of planning target columns.
2011-11-17 06:18:07,440 INFO [SimpleAsyncTaskExecutor-2]: Load type is [Load dimension member].
2011-11-17 06:18:07,487 ERROR [SimpleAsyncTaskExecutor-2]: Record [[D090, Mobile Mice Cordless_Prod type, D090-Flores DJ, null, Shared, null, null, null, null, null, null, null, +, null]] was rejected by the Planning Server.
2011-11-17 06:18:07,503 ERROR [SimpleAsyncTaskExecutor-2]: Record [[D091, Mobile Mice Cordless_Prod type, D091-Fiji BT, null, Shared, null, null, null, null, null, null, null, +, null]] was rejected by the Planning Server.
2011-11-17 06:18:07,518 ERROR [SimpleAsyncTaskExecutor-2]: Record [[D093, Mobile Mice Cordless_Prod type, D093-New York, null, Shared, null, null, null, null, null, null, null, +, null]] was rejected by the Planning Server.
2011-11-17 06:18:07,550 ERROR [SimpleAsyncTaskExecutor-2]: Record [[D060, Mobile Mice Cordless_Prod type, D060-Corbusier Vista, null, Shared, null, null, null, null, null, null, null, +, null]] was rejected by the Planning Server.
2011-11-17 06:18:07,565 ERROR [SimpleAsyncTaskExecutor-2]: Record [[D064, Mobile Mice Cordless_Prod type, D064-Sardinia Laser, null, Shared, null, null, null, null, null, null, null, +, null]] was rejected by the Planning Server.
2011-11-17 06:18:07,581 ERROR [SimpleAsyncTaskExecutor-2]: Record [[D065, Mobile Mice Cordless_Prod type, D065-Ibiza Optical, null, Shared, null, null, null, null, null, null, null, +, null]] was rejected by the Planning Server.
Regards,
SPCan you check the error log file as you have posted the log file, it should give more information to why the records were rejected.
Cheers
John
http://john-goodwin.blogspot.com/
Maybe you are looking for
-
Placing Order = Nothing but a PAIN
I've been trying to order a new iPhone 6, but the hurdles are nothing short of endless... 1) I'm on a family plan that my mother manages. So the Verizon website wouldn't let me order a phone for MY number. ( I'm 31! ) 2) When my mother gave me the ac
-
Movies skip in drive/like stop-and-go motion; transcoded FFmpeg do same!?
Hi folks. I have been ripping some DVDs as of late and I am in the midst of transfering them to Apple TV on my network. However I seem to have run into a problem. Today I went to rip a DVD and then loaded into iTunes and trans to Apple TV. I was noti
-
The middle crease with a shadow between two columns
Hi, I'm looking at ibooks and see a middle crease with a shadow, like it's a book. How do I put that in my book? Now there's nothing there. The crease makes it look more like a book. Thanks, Elaine
-
Hi, Has any one worked on extending/enhancing the BillerDirect other than changing texts/images. Please send me the links of threads/blogs.Also documents if any regarding the applications workflow. also please let me know if any other forum where i c
-
Two seperate class files can not resolve (pls help me) THANKS!
When i compile UseMusic.java i get the following: i can't figure it out.. Thank You for Time! D:\java\cENG310\Ass2>javac UseMusic.java UseMusic.java:29: cannot resolve symbol symbol : variable middlec location: class UseMusic mm.c