Error #1009 at mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()

Hello.
At first sorry for my english.
I have encountered problem with DataGrid control.
There is DataGrid control, which have custom ItemRenderer
(MulticolorDataGridItemRenderer).
This DataGrid control has several properties:
1) click on a row changes it background color
2) click on "Filter ON" button, filter DataGrid by "status"
field
"TypeError: Error #1009: Cannot access a property or method
of a null object reference.
at
mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()"
This error occure when filter is ON, by click on a row. It
occures occasionally. I note that it
occur when DataGrid's vertical scrollbar is not in top
position.
If I remove recovering of scroll position, this bug
disappear.
Sample code:
~~~~~~~~~~~~
1. Application mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.List;
private var objPrevSelectedItem:Object = null;
private var arrList:Array = [{name: "Matt", lastname:
"Chotin", status: "0", selected: "0"},
{name: "Ely", lastname: "Greenfield", status: "1", selected:
"0"},
{name: "Christophe", lastname: "Coenraets", status: "2",
selected: "0"},
{name: "Sho", lastname: "Kuwamoto", status: "1", selected:
"0"},
{name: "Steven", lastname: "Webster", status: "4", selected:
"0"},
{name: "Alistair", lastname: "McLeod", status: "3",
selected: "0"},
{name: "Chafic", lastname: "Kazoun", status: "1", selected:
"0"},
{name: "Manish", lastname: "Jethani", status: "2", selected:
"0"},
{name: "Mike", lastname: "Chambers", status: "4", selected:
"0"},
{name: "Ted", lastname: "Patrick", status: "0", selected:
"0"},
{name: "Roger", lastname: "Gonzales", status: "1", selected:
"0"},
{name: "David", lastname: "Zuckerman", status: "3",
selected: "0"},
{name: "Alex", lastname: "Uhlmann", status: "3", selected:
"0"},
{name: "Peter", lastname: "Ent", status: "3", selected:
"0"},
{name: "Adobe", lastname: "Consulting", status: "2",
selected: "0"},
{name: "Marcel", lastname: "Boucher", status: "4", selected:
"0"},
{name: "Andrew", lastname: "Trice", status: "1", selected:
"0"},
{name: "Mike", lastname: "Morearty", status: "1", selected:
"0"},
{name: "Everything", lastname: "Flex", status: "0",
selected: "0"},
{name: "Jesse", lastname: "Warden", status: "3", selected:
"0"},
{name: "Richinternet", lastname: "Blog", status: "2",
selected: "0"},
{name: "Flex", lastname: "Daddy", status: "2", selected:
"0"},
{name: "Keun", lastname: "Lee", status: "0", selected: "0"},
{name: "David", lastname: "Koletta", status: "4", selected:
"0"},
{name: "Brian", lastname: "Deitte", status: "1", selected:
"0"},
{name: "Darron", lastname: "Schal", status: "2", selected:
"0"},
{name: "Narciso", lastname: "Jaramillo", status: "3",
selected: "0"},
{name: "Kiwi", lastname: "Teamblog", status: "4", selected:
"0"},
{name: "Anthony", lastname: "Rumsey", status: "0", selected:
"0"}];
[Bindable]
private var arrcollDP:ArrayCollection = new
ArrayCollection(arrList);
private function fnSelectRow(event:Event):void
if (objPrevSelectedItem != null)
objPrevSelectedItem["selected"] = new String("0");
ArrayCollection(DataGrid(event.target).dataProvider).itemUpdated(objPrevSelectedItem);
var numScrolPos:Number =
DataGrid(event.target).verticalScrollPosition;
Object(DataGrid(event.target).selectedItem)["selected"] =
new String("1");
ArrayCollection(DataGrid(event.target).dataProvider).itemUpdated(DataGrid(event.target).s electedItem);
objPrevSelectedItem =
Object(DataGrid(event.target).selectedItem);
if (arrcollDP.filterFunction != null)
arrcollDP.filterFunction = fnFilter;
arrcollDP.refresh();
DataGrid(event.target).verticalScrollPosition = numScrolPos;
private function fnFilter(item:Object):Boolean
var bResult:Boolean = new Boolean(false);
if (String(item["status"]) == "0")
bResult = true;
return bResult;
]]>
</mx:Script>
<mx:DataGrid
width="100%"
height="100"
dataProvider="{arrcollDP}"
itemRenderer="MulticolorDataGridItemRenderer"
draggableColumns="false"
rowHeight="17"
paddingTop="1"
paddingBottom="1"
horizontalGridLineColor="#a0a0a0"
horizontalGridLines="true"
change="fnSelectRow(event)">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="name"
width="250" textAlign="left" sortable="false"/>
<mx:DataGridColumn headerText="Last Name"
dataField="lastname" width="250" textAlign="left"
sortable="false"/>
<mx:DataGridColumn headerText="Status" dataField="status"
width="80" textAlign="center" sortable="false"/>
</mx:columns>
</mx:DataGrid>
<mx:Button label="Filter ON" y="110" x="5"
click="arrcollDP.filterFunction = fnFilter;
arrcollDP.refresh();"/>
<mx:Button label="Filter OFF" y="110" x="105"
click="arrcollDP.filterFunction = null; arrcollDP.refresh();"/>
</mx:Application>
2. MulticolorDataGridItemRenderer component mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:DataGridItemRenderer xmlns:mx="
http://www.adobe.com/2006/mxml"
background="true" dataChange="fnChangeColor(event);">
<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import mx.events.FlexEvent;
import mx.controls.Alert;
private function fnChangeColor(event:FlexEvent):void
if (Object(this.data) != null)
if (!(this.data is DataGridColumn))
var strTmp:String = String(Object(this.data)["status"]);
if (strTmp == "0")
this.backgroundColor = 0xccffcc;
else if (strTmp == "1")
this.backgroundColor = 0xffff99;
else if (strTmp == "2")
this.backgroundColor = 0x99ccff;
else if (strTmp == "3")
this.backgroundColor = 0xffcc99;
else if (strTmp == "4")
this.backgroundColor = 0xcc66ff;
if (String(Object(this.data)["selected"]) == "1")
this.backgroundColor = 0xff9933;
]]>
</mx:Script>
</mx:DataGridItemRenderer>
And one another question: why did disappear standard DataGrid
control selection mechanism, when I used custom
DataGridItemRenderer? Try to use the sample code above withou
fnSelectRow function.
TIA

Hi, I will try to explain what i have undestood about this issue.
I have an application that loads at runtime some modules, and in my project configuration (Flex Modules), i specified some modules to compile optimizing to main application. Besides that, my project uses RSL to the framework linkage, and i perceived that the compiler output reports some warning messages just like "The CSS type selector 'DataGrid' was not processed, because the type was not used in the application." or others similars "The CSS type selector 'TextArea' was not processed, because the type was not used in the application.".
When i run the application, and click the first time in some grid column, the error "Type Coercion failed: cannot convert ......@abcda2 to ........." happens.
It happens because, these controls or components has not been linked in the main application compilation, and so, when you use the first module that uses one of these components, only the module loads an instance of these components and maintain on its part of memory.
Dispite of being loaded in the main application, each module and main application has its SystemManager instance to register and load components, and because of it, when the application try to cast instances of the same component, but at differents SystemManager's singleton implementations, the above error occurs.
So my solution was to add some reference of the controls or components that appears at the warning messages that was not compiled, to force the main application compilation to add these components at its SystemManager singletons first than any module.
Only add the name of the component and import its package. Do not have to add to the stage. See below.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" ....>
<mx:Script>
        <![CDATA[
                    DataGrid;
                    TextArea;
        ]]>
    </mx:Script>
</mx:Application>

Similar Messages

  • TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::AdvancedDataGrid/findHeaderRenderer()

    Can anyone throw any light on this obscure Flex error?...
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls::AdvancedDataGrid/findHeaderRenderer()[...path...\projects\datavisualisation\ src\mx\controls\AdvancedDataGrid.as:1350]
    at mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()[...path...\projects\datavisualis ation\src\mx\controls\AdvancedDataGrid.as:1315]
    at mx.controls.listClasses::AdvancedListBase/mouseMoveHandler()[...path...\projects\datavisu alisation\src\mx\controls\listClasses\AdvancedListBase.as:8091]
    I found a related bug reported on Jira: https://bugs.adobe.com/jira/browse/FLEXDMV-1631
    But in our case, we have no zoom effect.  It may be timing related, as there is a lot of computation going on when this page, and the ADG is first initialised.
    Please?... Any suggestions or workarounds?  We don't want this falling over in the hands of our customers.
    <rant> And people wonder why I hate Flex!?  These obscure instabilities never happen when I develop Pure ActionScript.  The Flash platform is wonderfully stable.  But as soon as you bring Flex into play, things take longer to develop, it's a struggle to extend or change the behaviour of the bloated components, and everything falls apart as these bugs begin to surface.</rant>

    facing the same problem... sdk 4.1. no solution for about 2 years ????

  • Error #1009:  while loading datagrid in to appl

    Below exeption showing while trying to load datagrid in to my application..
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls::DataGrid/createItemEditor()[E:\dev\4.0.0\frameworks\projects\framework\src\m x\controls\DataGrid.as:4325]
    at mx.controls::DataGrid/itemEditorItemEditBeginHandler()[E:\dev\4.0.0\frameworks\projects\f ramework\src\mx\controls\DataGrid.as:5237]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at mx.controls::DataGrid/commitEditedItemPosition()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\controls\DataGrid.as:4093]
    at mx.controls::DataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\controls\DataGrid.as:1804]
    at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\ framework\src\mx\controls\listClasses\ListBase.as:3962]
    at mx.managers::LayoutManager/validateClient()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\managers\LayoutManager.as:932]
    at mx.core::UIComponent/validateNow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core \UIComponent.as:7631]
    at mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\managers\PopUpManagerImpl.as:485]
    at mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.0.0\frameworks\projects\framework\src\m x\managers\PopUpManager.as:213]

    this is my code for datagrid... please check..
    <commoncomponents:ListDatagrid id="reportGroupDetailsListDG"
                                                   dataProvider="{ReportGroupDetailsModelLocator.getInstance().reportGroupVO.reportDefinitio nList}"
                                                   width="100%"
                                                   keyDown="{reportGroupDetailsHelper.handleDataGridKeyDown(event,
                                                             Constants.VIEW_REPORT_GROUP,modelLocator.reportGroupVO.reportDefinitionList,ReportGroupDe tailComponent,'EX', -1);}"
                                                   keyUp="{reportGroupDetailsHelper.handleHotKeys(modelLocator.reportGroupVO.reportDefinitio nList,event,
                                                                                     EventConstants.REPORT_GROUP_EVENT,Constants.LIST_REPORT_GROUP_DETAILS,
                                                                                         reportGroupDetailsHelper.displayError, Constants.PAGE_REPORT_GROUP, -1);}"
                                                   >
                        <commoncomponents:columns>
                            <mx:DataGridColumn width="20"
                                               headerText=""
                                               dataField="userAction"
                                               rendererIsEditor="true"
                                               visible="{(reportGroupDetailsHelperVO.state == Constants.STATE_EDIT ||
                                               reportGroupDetailsHelperVO.state == Constants.STATE_ADD_NEW) ? true : false}">
                                <mx:itemRenderer>
                                    <mx:Component>
                                        <commoncomponents:BDCUserActionTextInput height="10"
                                                      width="10"
                                                      fontFamily="Arial"
                                                      fontWeight="bold"
                                                      textAlign="center"
                                                      maxChars="1"
                                                      restrict="XE"
                                                      text="{data.userAction}"
                                                      includeInLayout="{parentDocument.reportGroupDetailsHelperVO.state == Constants.STATE_EDIT ? true : false}">
                                            <commoncomponents:keyDown>
                                                    <![CDATA[
                                                        ListItemVO(ReportGroupDetailsModelLocator.getInstance().reportGroupVO.reportDefinitionLis t.getItemAt
                                                            (event.currentTarget.document.reportGroupDetailsListDG.selectedIndex)).userAction
                                                        = event.target.text;
                                                      ]]>
                                            </commoncomponents:keyDown>
                                        <mx:Script>
                                            <![CDATA[
                                            import com.bnymellon.bds.bdc.ui.model.reportgroup.ReportGroupDetailsModelLocator;;
                                            import com.bnymellon.bds.bdc.ui.vos.ListItemVO;
                                            import com.bnymellon.bds.bdc.ui.utility.Constants;
                                            ]]>
                                        </mx:Script>
                                        </commoncomponents:BDCUserActionTextInput>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
                            <mx:DataGridColumn editable="false"
                                               headerText="Report Name"
                                               dataField="command" width="120">
                                <mx:itemRenderer>
                                    <mx:Component>
                                        <mx:HBox paddingLeft="5">
                                            <mx:Text styleName="normalText"
                                                     text="{data.command}"/>
                                        </mx:HBox>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
                            <mx:DataGridColumn editable="false"
                                               headerText="Access Level Id"
                                               dataField="accountScopeID" width="150">
                                <mx:itemRenderer>
                                    <mx:Component>
                                        <mx:HBox paddingLeft="5">
                                            <mx:Text styleName="normalText"
                                                     text="{data.reportGroupScopeId}"/>
                                        </mx:HBox>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
                            <mx:DataGridColumn editable="false"
                                               headerText="Security ID"
                                               dataField="security" width="140">
                                <mx:itemRenderer>
                                    <mx:Component>
                                        <mx:HBox paddingLeft="5">
                                            <mx:Text styleName="normalText"
                                                     text="{data.security}"/>
                                        </mx:HBox>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
                            <mx:DataGridColumn editable="false"
                                               headerText="Qualifier"
                                               dataField="reportParam">
                                <mx:itemRenderer>
                                    <mx:Component>
                                        <mx:HBox paddingLeft="5">
                                            <mx:Text styleName="normalText" width="100%"
                                                     text="{data.parameter}"/>
                                        </mx:HBox>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
                            <mx:DataGridColumn editable="false"
                                               headerText="FileType"
                                               dataField="fileFormat" width="80">
                                <mx:itemRenderer>
                                    <mx:Component>
                                        <mx:HBox paddingLeft="5">
                                            <mx:Text styleName="normalText"
                                                     text="{'.' + data.fileFormat}"/>
                                        </mx:HBox>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
                        </commoncomponents:columns>
                    </commoncomponents:ListDatagrid>

  • Error Message:  Unable to load Acrobat Reader control

    Error Message:  Unable to load Acrobat Reader control.  Please make sure it is correctly installed. The user I am dealing with has Adobe_Reader_9.4.4 & AdobeAcrobatStd911-L.  Can you give me some assistance as to why she is unable to open her file.

    That file only? And before version X, Adobe did not recommend having Acrobat and Reader installed in the same Win computer...

  • JavaScript Error : Can't move focus to the control because it is invisible,

    I have one JSP page in my project where i am putting all input to save personal details of a person.
    This personal details header contains button(to collapse or expand).
    I input all details and save. It works fine but when i collapse the header and name, age etc are not visible.
    Only Save and cancel button is visible. so i click on save and following javascript error show up :
    Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
    In case of expand mode,If there is any error while providing input in text boxes , i have given pop up to display that like " Name field is mandatory " and control focus to that field again. it works fine.
    In case of collapse, as fields are not visible and if i directly click on save button. Pop up is displayed as usual "Name field is mandatory" but it pop up again javascript error
    "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
    Please let me know how to reolve this?

    1) there is a JSP forum
    2) that still doesn't make it a forum to ask javascript questions
    Please let me know how to reolve this?Who says that you can resolve it? If it isn't allowed, don't try it. Likely you'll have to rethink the design of your page.

  • DataGrid - Error #1009: Cannot access a property or method of a null object reference.

    I am getting a runtime error when I click a button that fires
    the addPerson function.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at main/addPerson()[C:\Documents and Settings\edunn\My
    Documents\Flex Builder 3\workspace2\Test-1\src\main.mxml:178]
    at main/___main_Button4_click()[C:\Documents and
    Settings\edunn\My Documents\Flex Builder
    3\workspace2\Test-1\src\main.mxml:228]
    I am new to Action Script - and object programming - so
    understand...
    I do not understand what I have done wrong here...
    I have a result list coming from an external web service that
    populates in a datagrid. I'd like to be able to update that
    datagrid and then push back to the web service the new array.
    Any ideas?????
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.collections.ArrayCollection;
    import generated.webservices.FxAppiaUserFeaturesService;
    import generated.webservices.UserSimRingConfig;
    import generated.webservices.SimRingType;
    public var plist:ArrayCollection
    //Updated Function to populate the data from WS
    public function
    retrieveUserSimRingConfig(e:ResultEvent):void {
    var UsrSimRngCfgNumList:Array = new
    UserSimRingConfig().simRingNumberList;
    var plist:ArrayCollection = e.result.simRingNumberList;
    dgSimPhoneList.dataProvider = plist;
    if (e.result.active) {
    chboxSimultaneousRingPhones.selected=true;
    } else {
    chboxSimultaneousRingPhones.selected=false;
    if (e.result.simRingType == "NO_RING_WHILE_ONCALL") {
    chboxSimultaneousRing.selected=true;
    } else {
    chboxSimultaneousRing.selected = false;
    // Add a person to the ArrayCollection.
    public function addPerson():void {
    plist.addItem({simRingNumberList:txtPhoneNumber1.text});
    I posted this in the General Section first by
    mistake...

    can u explain abt this line
    var plist:ArrayCollection = e .
    result.simRingNumberList;

  • Error calling a method of the tree control in BDC

    I'm connecting two systems Iplan(project management tool) with SAP PS using SAP XI.
    I've written an BDC(RFC) to assign people for the activity in an project(cj20n) it works fine in the foreground. But it doesn't work in the background.It doesn't give me error also.I've sap all authorization.
    When I connect with XI its throwing me an error "Error calling a method of the tree control" message type A (using the same user to connect r3). I believe something we should do prior handling the tree control in a BDC. IF any body come across this situation please let me know. your help is appreciated.
    Regards
    Anand

    BDCs over enjoy transactions do not get along together.  The containers and controls is more of a gui thing, and in background sometimes the BDC has a hard time with them.  I would suggest using the non-enjoy tcode instead, CJ20.
    Regards,
    Rich Heilman

  • Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported.

    SharePoint 2007 custom (VS 2008) solution is upgraded to SharePoint 2013 using (VS 2012). I followed this approach.
    I had created new empty project (solution) in SharePoint 2013 using (VS 2012) compiled and deployed successfully. All safe controls are registered in the web.config file. After deploying solution i Restarted IIS also, still getting this error. How to resolve
    Error
    Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe. Correlation ID: 5d217c9c-1827-7083-80cd-e095a30befee.
    Show Error Details
    Hide Error Details
    [UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]
      at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Boolean isAppWeb, Guid guid, Guid solutionId, Nullable`1 solutionWebId, String assemblyFullName, String typeFullName, Boolean throwIfNotSafe)
      at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
    <menu class="ms-hide" id="MSOMenu_WebPartMenu"><ie:menuitem id="MSOMenu_Minimize" text="Minimize" title="Collapse this web part." type="option"></ie:menuitem><ie:menuitem
    id="MSOMenu_Restore" text="Restore" title="Expand this web part." type="option"></ie:menuitem><ie:menuitem id="MSOMenu_Close" text="Close" title="Close this Web Part. You can still
    find it under closed Web Parts section in the insert ribbon. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/DelItem.gif" id="MSOMenu_Delete" text="Delete"
    title="Delete this Web Part from the page. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem type="separator"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/EditItem.gif"
    id="MSOMenu_Edit" text="Edit Web Part" title="Change properties of this shared Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem id="MSOMenu_Connections"
    text="Connections" title="Show connections options for this Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem type="separator"></ie:menuitem><ie:menuitem
    id="MSOMenu_Export" text="Export..." title="Export this Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/HelpIcon.gif" id="MSOMenu_Help"
    style="display:none;" text="Help" type="option"></ie:menuitem> </menu>        

    Hi Ashok,
    According to your description, my understanding is that you got an error after you re-built a SharePoint 2007 solution with VS2012, and deployed it.
    Make sure the Namespace and Type Name are consistent across all files where indicated. Also with matching case sensitivity. Verify web.config file and assembly in GAC or virtual directory bin folder in post deployment.
    More information, please refer to the link below:
    http://roykimsharepoint.wordpress.com/2013/04/27/classic-web-part-errors/
    Here is a similar post for you to take a look at:
    http://stackoverflow.com/questions/1689707/sharepoint-web-part-type-could-not-be-found-registered-as-safe
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

    We have an SharePoint services 3.0 installation that uses custom web parts on 100s of subsites.  The custom web parts on any website is presenting this error
    Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.
    This past weekend we decided to create a new database server and migrate the databases to the new server in an effort to retire an old box. 
    INitially we attempted to go through the configuration wizard which didnt do anything but add a new database server to our farm.  What we have done is remove the new database server from the farm and use an alias on the SP server to continue to use
    the same name but actually get its data from the new database server.
    Everything works with the site except these custom webparts. 
    Any thoughts on where to go to first, should i redeploy what i think are the webparts from VS 2005 (solutions are VS 2005 slns.)? 
    Tony Spaulding

    You need to make Safe Control enteries in your web.config for the particular web application.
    Open web.config
    Locate the SafeControls Tag
    Make a safe control entry
    <SafeControl Assembly="Assembly name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d8eb6481d8b4beec" Namespace="your webpart namespace" TypeName="*" Safe="True" />
    In order to find the assembly details, Open the GAC. Right click on your dll and then click properties.

  • Adobe form Error "Memory protection fault in OLE container control"

    Hi,
       I am getting the error "Memory protection fault in OLE container control" while trying to open the layout tab of adobe forms.
      I am getting this error for all the adobe forms.Please let me know the solution.
    Thanks in advance.
    Thanks,
    Nuthan.

    I can reproduce this error consistently.. This is how: Install Microsoft SQL Server 2008.
    As soon as I remove SQL 2008 the error went away. Adobe LiveCycle Designer was invoked via OLE2 interface. Apparently SQL Server 2008 (as in my case or some other applications in your case) modified the way OLE2 behaves and therefore causes this error.

  • How to Get DataGrid ItemRenderer Controls?

    Dear, I want to get Controls (Radio Buttons) from DataGrid within itemRenderer on Item Click event.
    Can you give me a sample code?
    =====================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
        <mx:Script>
            <![CDATA[
                import mx.events.*;
                import mx.controls.Alert;
                private function P4R_Y_change(e:Event):void
                    Alert.show(e.toString());
                private function P4R_N_change(e:Event):void
                    Alert.show(e.toString());
                private function onItemClick_gvPendingForReceipt(e:ListEvent):void
                    // want to get radio buttons here
                   Alert.show((e.target as DataGrid).columns[e.columnIndex].toString());
            ]]>
        </mx:Script>
        <mx:Panel title="Pending for Receipt (NGO only)">
            <mx:DataGrid id="gvPendingForReceipt" itemClick="onItemClick_gvPendingForReceipt(event)">
                <mx:dataProvider>
                    <mx:Object Case_No="cn8385738" JS_Name="Peter Wong" Remarks="" >
                    </mx:Object>
                    <mx:Object Case_No="cn4428255" JS_Name="Mary Queen" Remarks="Referal from SWD Special team!!">
                    </mx:Object>       
                </mx:dataProvider>   
                <mx:columns>
                    <mx:DataGridColumn headerText="Case #" width="150" dataField="Case_No" >
                    </mx:DataGridColumn>
                    <mx:DataGridColumn headerText="Job Seeker Name" width="150" dataField="JS_Name" >
                    </mx:DataGridColumn>       
                    <mx:DataGridColumn headerText="Accept Case?" width="200" >
                        <mx:itemRenderer>
                            <mx:Component>
                                <mx:VBox>
                                    <mx:RadioButton id="rdoP4R_Y" label="Yes" group="{IsAccepted}" >
                                    </mx:RadioButton>
                                    <mx:RadioButton id="rdoP4R_N" label="No" group="{IsAccepted}" >
                                    </mx:RadioButton>       
                                    <mx:RadioButtonGroup id="IsAccepted">
                                    </mx:RadioButtonGroup>           
                                </mx:VBox>   
                            </mx:Component>
                        </mx:itemRenderer>
                    </mx:DataGridColumn>
                    <mx:DataGridColumn headerText="Remarks">
                        <mx:itemRenderer>
                            <mx:Component>
                                <mx:TextInput text="{data.Remarks}">
                                </mx:TextInput>
                            </mx:Component>
                        </mx:itemRenderer>
                    </mx:DataGridColumn>                       
                </mx:columns>   
            </mx:DataGrid>
        </mx:Panel>
        <mx:Panel title="Pending for Intake (NGO only)">
        </mx:Panel>
        <mx:Panel title="Active Case List (NGO/ Case Management">
        </mx:Panel>
    </mx:VBox>
    Regards,
    Man Pak Hong, Dave
    [email protected]
    Analyst Programmer.

    This code may help.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%">
    <mx:Script>
    <![CDATA[
    import mx.controls.DataGrid;
    import mx.events.ListEvent;
    [Bindable]
    private var nameStr:String;
    public function getName(event:ListEvent):void {
    var dg:DataGrid = DataGrid(event.target);
    nameStr = dg.selectedItem.cn;
    ]]>
    </mx:Script>
    <mx:ArrayCollection id="acEmaillist">
    <mx:Object>
    <mx:cn>Bob Smith</mx:cn>
    <mx:mail>[email protected]</mx:mail>
    </mx:Object>
    <mx:Object>
    <mx:cn>Ted Alan</mx:cn>
    <mx:mail>[email protected]</mx:mail>
    </mx:Object>
    <mx:Object>
    <mx:cn>Fred Tobs</mx:cn>
    <mx:mail>[email protected]</mx:mail>
    </mx:Object>
    </mx:ArrayCollection>
    <mx:DataGrid dataProvider="{acEmaillist}"
    itemClick="getName(event)">
    <mx:columns>
    <mx:DataGridColumn headerText="Full Name" dataField="cn"
    width="150"/>
    <mx:DataGridColumn headerText="Email" dataField="mail"
    width="150"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Label text="{nameStr}"/>
    </mx:Application>

  • I want to share files from iMac to MacBookPro.  In "Sharing" setup I want to check "screen Sharing" but get the error message"Screen Sharing is currently being controlled by the Remote Management service."  What do I need to FIX???

    I want to share files from iMac to MacBookPro.  In "Sharing" setup I want to check "screen Sharing" but get the error message"Screen Sharing is currently being controlled by the Remote Management service."  What do I need to FIX???

    Care to share which OS you are using? 
    Have you read for possible solutions over in the "More Like This" thread over here?-----------------------> 

  • Error - control indicators for control area do not exist

    Hi All,
    When I am trying to hire a person and entering his personal data, I am getting this error:
    control indicators for control area XXXX do not exist
    Please help

    I'm guessing this error is out of the Coding Block check for Controlling.. ie the function call COBL_EX_CODINGBLOCK_CHECK.. put a break-point inside this function call & verify if any settings are missing..
    ~Suresh

  • Custom itemRenderer component based on cell value: error 1009

    I'm working on an item renderer for a dataGrid that has different states depending on the cell and row values.
    The cell value is a toggle (true or null), and sets whether content should be shown in the cell or not
    The row properties determine what is shown when the cell value is true.
    The dataGrid dataProvider is populated based on user id input.
    I created the itemRenderer as a custom actionscript component, closely following this example:
    360Flex Sample: Implementing IDropInListItemRenderer to create a reusable itemRenderer
    However, my component results in Error #1009 (Cannot access a property or method of a null object reference) when a user id is submitted.
    package components
         import mx.containers.VBox;
         import mx.controls.*;     import mx.controls.dataGridClasses.DataGridListData;
         import mx.controls.listClasses.BaseListData;
         import mx.core.*;
         public class toggleCellRenderer extends VBox
              public function ToggleCellRenderer()
              {super();}
              private var _listData:BaseListData;   
                   private var cellState:String;
                   private var cellIcon:Image;
                   private var imagePath:String;
                   private var imageHeight:int;
                   private var qty:String = data.qtyPerTime;
                   private var typ:String = data.type;
              public function get listData():BaseListData
                   {return _listData;}
              public function set listData(value:BaseListData):void
                   {_listData = value;}
              override public function set data(value:Object):void {
                   super.data = value;
                   if (value != null)
                   //errors on next line: Error #1009: Cannot access a property or method of a null object reference.
                   {cellState = value[DataGridListData(_listData).dataField]}
              override protected function createChildren():void {
                   removeAllChildren();
                   if(cellState=='true'){
                        cellIcon = new Image();
                        addChild(cellIcon);
                   //there is another state here that adds another child...
              //next overrides commitProperties()...
    There are no errors if I don't use an itemRenderer--the cells correctly toggle between "true" and empty when clicked.
    I also tried a simple itemRenderer component that disregards the cell value and shows in image based off row data--this works fine without errors or crashing. But I need to tie it to the cell value!
    I have very limited experience programming, in Flex or any other language. Any help would be appreciated.

    Your assumption that the xml file either loads with "true" or nothing  is right.
    After modifying the code to the following, I don't get the error, but it's still not reading the cell value correctly.
    package components
         import mx.containers.VBox;
         import mx.controls.*;   
         import mx.controls.dataGridClasses.DataGridListData;
         import mx.controls.listClasses.BaseListData;
         import mx.core.*;
         public class toggleCellRenderer extends VBox
              public function ToggleCellRenderer()
               super();
              private var _listData:BaseListData;   
              private var cellState:Boolean;
              private var cellIcon:Image;
              private var imagePath:String;
              private var imageHeight:int;
              private var qty:String;
              private var typ:String;
               public function get listData():BaseListData
                 return _listData;
              override public function set data(value:Object):void {
                   cellState = false;
                   if (listData && listData is DataGridListData && DataGridListData(listData).dataField != null){
                       super.data = value;
                       if (value[DataGridListData(this.listData).dataField] == "true"){
                           cellState = true;
              override protected function createChildren():void {
                   removeAllChildren();
                   if(cellState==true){
                        cellIcon = new Image();
                        addChild(cellIcon);
                   //there is another state here that adds another child...
              //next overrides commitProperties()...
    - didn't set the value of qty or typ in the variable declarations (error 1009 by this too--I removed this before but wanted to point out in case its useful)
    - added back in the get listData() function so I could use the listData
    - changed the null check
    All cells are still returning cellState = false when some are set to true, even if I comment out [if (value[DataGridListData(this.listData).dataField] == "true")] and just have it look for non-null data. That shouldn't make a difference anyway, but it confirms that all cells are returning null value.
    Swapping out the first if statement in set data with different variables results in the following:
    [if (listData != null)]  all cells return null (cellState=false for all)
    both [if (value != null)] and  [if (DataGridListData != null)]  results in error 1009 on a line following the if, so I assume they return non-null values.
    All rows have data, just not all fields in all rows, so shouldn't listData be non-null?  Could it be that the xml file hasn't fully loaded before the itemRenderer kicks in?
    I also realized  I had removed the item renderer from many of the columns for testing, and since some columns are hidden by default only one column in the view was using the itemRenderer--hence the single alert per row I was worried about earlier.
    Thanks for your help so far.

  • Error 1009 when dragging and dropping

    Hello All,
    I have a problem in a large application with dragging and dropping between datagrids. I created a simple example of the issue below. Basically, when I press the button I get a pop-up with 2 datagrids. When Initially try to drag an item from the source grid to the destination grid I get a serious of errors:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    ..etc
    If I then try and drag and drop again, it works without error. Can anyone shed light on this? Code below:
    The Main App:
    <?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/halo" minWidth="1024" minHeight="768">
        <fx:Script>
            <![CDATA[
                import mx.core.FlexGlobals;
                import mx.core.IFlexDisplayObject;
                import mx.managers.PopUpManager;
                import mx.managers.DragManager;
                private var popUpManager:PopUpManager;
                private var dragManager:DragManager;
                protected function button1_clickHandler(event:MouseEvent):void
                        var largePanelWindow:IFlexDisplayObject = PopUpManager.createPopUp(FlexGlobals.topLevelApplication as DisplayObject, testDrop, true);
                        var largeSimPanelInstance:testDrop = largePanelWindow as testDrop;
                        PopUpManager.centerPopUp(largeSimPanelInstance);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Button x="546" y="59" label="Button" click="button1_clickHandler(event)"/>
    </s:Application>
    The Component:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/halo" width="400" height="300" creationComplete="creationCompleteHandler()">
        <fx:Script>
            <![CDATA[
            private function creationCompleteHandler():void
                srcGrid.dataProvider = ['cat','dog','bird'];
                destGrid.dataProvider =[];
            ]]>
        </fx:Script>
        <s:Panel x="10" y="0" width="380" height="290">
            <mx:DataGrid id="srcGrid" dragEnabled="true" dragMoveEnabled="true" x="58" y="44">
                <mx:columns>
                    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                </mx:columns>
            </mx:DataGrid>
            <mx:DataGrid id="destGrid" dragEnabled="false" dropEnabled="true" x="226" y="44">
                <mx:columns>
                    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                </mx:columns>
            </mx:DataGrid>
        </s:Panel>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </s:Group>

    I can confirm this error. I'm using Firefox, Windows Vista, Flash Player 10, SDK build 11250. There are two error boxes that appear when you try to drag an item on the first attempt and on successive attempts (but only if you drag over the destgrid, then back to the srcgrid and then back again to the destgrid). It's gotta be a bug, here are the stack traces:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at mx.controls.listClasses::ListBase/hideDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:8548]
         at mx.controls::DataGrid/hideDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\DataGrid.as:5670]
         at mx.controls.listClasses::ListBase/dragDropHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:10428]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/mouseUpHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:580]
         at mx.managers.dragClasses::DragProxy/mouseLeaveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:530]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.managers::SystemManager/mouseLeaveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\SystemManager.as:3314]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:342]
         at mx.managers.dragClasses::DragProxy/mouseMoveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:509]
    and
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at mx.core::UIComponent/drawFocus()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:9008]
         at mx.controls.dataGridClasses::DataGridBase/showDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:2954]
         at mx.controls::DataGrid/showDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\DataGrid.as:5640]
         at mx.controls.listClasses::ListBase/dragEnterHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:10337]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:342]
         at mx.managers.dragClasses::DragProxy/mouseMoveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:509]
    - e

Maybe you are looking for

  • Is there a download that will allow me to play videos requiring Adobe Flash?

    Is there a download that will allow me to play videos on my iPad2 that require adobe flash?

  • HT3728 I can't get the full speed of my internet

    My internet is fiber optics and it's 100 mbps and when I do a speed test I only get 30 mbps, while if I connect direct to the internet without using the airport I got the full speed, there is something wrong with my airport and I did the reset but no

  • "Create Simple document" from other objects

    Scenario: Creating a document using option "Create Simple document" from other objects I have created a document type and defined the object link for Functional Location with option "create simple document" When clicking on create icon on the additio

  • EJB 3.0 NativeQuery

    I' trying to execute a native sql query, but always fails. If a use the next sentence obtains a nullpoiter em.createNativeQuery("select sum(totalm3) from warehousefloors where warehouse=1); ot when i use em.createNativeQuery("select sum(totalm3) from

  • Nokia ASHA 503..ERROR IN CERTIFICATES

    whenever i try to download an app from store it wont hapoen and there is a message staring that the certificate is untrusted please check with your app provider....pls help