Searching Twice gives Object reference null
'Button1
Dim ex1 As New Threading.Thread(AddressOf ex1_sub)
Dim ex2 As New Threading.Thread(AddressOf ex2_sub)
ex1.Start()
ex2.Start()
'End Sub
Sub ex1_sub()
Dim result_ex1 As IWebResult
Dim client_ex1 As New GwebSearchClient("http://www.google.com")
Dim results_ex1 As IList(Of IWebResult) = client_ex1.Search("love", 2)
For Each result_ex1 In results_ex1
MsgBox(result_ex1.Title)
Next
End Sub
Sub ex2_sub()
Dim result_ex2 As IWebResult
Dim client_ex2 As New GwebSearchClient("http://www.google.com")
Dim results_ex2 As IList(Of IWebResult) = client_ex2.Search("hate", 2)
For Each result_ex2 In results_ex2
MsgBox(result_ex2.Title)
Next
End Sub
It points either to results_ex2 or results_ex1 and tells me Object reference not set to an instance of an object.
How could I fix that ?
'Button1
Dim ex1 As New Threading.Thread(AddressOf ex1_sub)
Dim ex2 As New Threading.Thread(AddressOf ex2_sub)
ex1.Start()
ex2.Start()
'End Sub
Sub ex1_sub()
Dim result_ex1 As IWebResult
Dim client_ex1 As New GwebSearchClient("http://www.google.com")
Dim results_ex1 As IList(Of IWebResult) = client_ex1.Search("love", 2)
For Each result_ex1 In results_ex1
MsgBox(result_ex1.Title)
Next
End Sub
Sub ex2_sub()
Dim result_ex2 As IWebResult
Dim client_ex2 As New GwebSearchClient("http://www.google.com")
Dim results_ex2 As IList(Of IWebResult) = client_ex2.Search("hate", 2)
For Each result_ex2 In results_ex2
MsgBox(result_ex2.Title)
Next
End Sub
It points either to results_ex2 or results_ex1 and tells me Object reference not set to an instance of an object.
How could I fix that ?
Hi,
Welcome to MSDN.
As Cor suggested, it needs to wait to get that data.
If any suggestion helpful, you could mark it as answer.
But in addition, issues related to calling api to third-party are not supported, I would suggest you consider connecting with its publisher to get supports.
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
Object reference NULL exception is occuring at the time of iterating the projectCustomFieldRows
Hi ,
I'm gettign object reference NULL exception in the following for each statement. Please help me to resolve this issue.
foreach (SvcProject.ProjectDataSet.ProjectCustomFieldsRow row in prjDataSetValues.ProjectCustomFields.Rows)
//check if the GUID is the same
//a93fa9de-98a8-4477-8b9b-760f7f7b7bb5
eventLog.WriteEntry("Inside the for each the value of row.MD_PROP_UID is :" + row.MD_PROP_UID);
if ((row.MD_PROP_UID == myCustomFieldId) && (row.PROJ_UID == myProjectId))
//if yes, write it into the container
row.NUM_VALUE = 12345;
eventLog.WriteEntry("Inside the equal condition");
//and set the indicater
updatedata = true;
break;getting the exception at the time of creating the user using opensso api
-
PopUpManager.centerPopUp gives Cannot access a property or method of a null object reference
Hello all,
The PopUpManager.centerPopUp(this); in my code gives out the following error:
Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)
mx.managers::PopUpManagerImpl/findPopupInfoByOwner
mx.managers::PopUpManagerImpl/centerPopUp
mx.managers::PopUpManager$/centerPopUp
com.mycom.view::LoginView/doInit
com.mycom.view::LoginView/___LoginView_TitleWindow1_creationComplete
flash.events::EventDispatcher/dispatchEventFunction [no source]
flash.events::EventDispatcher/dispatchEvent [no source]
mx.core::UIComponent/dispatchEvent
mx.core::UIComponent/set initialized
mx.managers::LayoutManager/doPhasedInstantiation
Function/http://adobe.com/AS3/2006/builtin::apply [no source]
mx.core::UIComponent/callLaterDispatcher2
mx.core::UIComponent/callLaterDispatcher
MyAppl.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
xmlns:view="com.mycom.view.*">
<mx:Panel id="applPanel" height="100%" width="100%" backgroundColor="#3CACCC">
<view:LoginView />
</mx:Panel>
</mx:Application>
LoginView.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="400" height="300" creationComplete="doInit()">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
private function doInit():void {
PopUpManager.centerPopUp(this);
private function login():void{
trace("login clicked");
]]>
</mx:Script>
<mx:Form id="loginForm" defaultButton="{loginBtn}">
<mx:HBox>
<mx:Button id="loginBtn" label="OK" click="login()" />
</mx:HBox>
</mx:Form>
</mx:TitleWindow>
Somebody please help me on this.
Thanks.
roshniPls find your solution Below.
MyAppl.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
creationComplete="onCreationComplete()">
<mx:Script>
<![CDATA[
import com.mycom.view.LoginView;
import mx.core.IFlexDisplayObject;
import mx.managers.PopUpManager;
private var popUp:IFlexDisplayObject;
private function onCreationComplete():void
popUp = PopUpManager.createPopUp(this, LoginView, true);
popUp.move(((this.width/2)-(popUp.width/2)),(((this.height/2)-(popUp.height/2))));
]]>
</mx:Script>
<mx:Panel id="applPanel" height="100%" width="100%" backgroundColor="#3CACCC"/>
</mx:Application>
LoginView.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="400" height="300">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
private function login():void{
trace("login clicked");
]]>
</mx:Script>
<mx:Form id="loginForm" defaultButton="{loginBtn}">
<mx:HBox>
<mx:Button id="loginBtn" label="OK" click="login()" />
</mx:HBox>
</mx:Form>
</mx:TitleWindow>
Pls let me know if you have any problem with this one code.
with Regards,
Shardul Singh Bartwal -
I am working on a standalone install Sharepoint 2013 (no Active Directory). I found newsfeed feature is not available and checked Distributed Cache service is stopped. When start it “cacheHostInfo is null” is returned.
I checked the Windows service “AppFabric caching service” is stopped because the default identity “Network Service” not work. Then I change the AppFabric service identity to use “.\administrator” (which is also the sp farm administrator) and the service can
be started.
However the “cacheHostInfo is null” when try to start Distributed Cache service in central admin.
I searched on web and found this blog: http://rakatechblog.wordpress.com/2013/02/04/sharepoint-2013-spdistributedcacheserviceinstance-cachehostinfo-is-null/
I tried to run the script but it return error:
Add-SPDistributedCacheServiceInstance : Object reference not set to an
instance of an object.
At C:\root\ps\test.ps1:8 char:13
+ $whatever = Add-SPDistributedCacheServiceInstance
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share…ServiceInstance:
SPCmdletAddDist…ServiceInstance) [Add-SPDistributedCacheServiceInstance]
, NullReferenceException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddDistr
ibutedCacheServiceInstance
I am not sure what went wrong. Please give me some idea? Thank you for any comment!Can you deploy Active Directory as installing without is not a supported installation scenario - http://support.microsoft.com/kb/2764086.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Hi Guru's,
i am new for WebDynpro programming.I am trying to use select-options tutorial.
System showing select options and table binding on screen when i test the application.
I have using search button to get the value which user will i/p.for that onaction method created, i have writen the code to get the values which user will input.
Method given below is of componentcontroler
method wddoinit .
data: lt_range_table type ref to data,
rt_range_table type ref to data,
read_only type abap_bool,
lt_range_table1 type ref to data.
data: lr_componentcontroller type ref to ig_componentcontroller,
l_ref_cmp_usage type ref to if_wd_component_usage.
create the used component
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
wd_this->m_handler->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false
i_display_btn_execute = abap_false ).
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_CARR_ID' ).
wd_this->m_handler->add_selection_field( i_id = 'CARRID'
it_result = lt_range_table i_read_only = read_only ).
call method wd_this->m_handler->add_horizontal_divider
exporting
i_id = 'LINE'.
endmethod.
Method given below is of VIEW.
method ONACTIONSEARCH .
DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
DATA: RT_CARRID TYPE REF TO DATA.
DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
DATA: WSFLIGHT TYPE SFLIGHT.
FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
Retrieve the data from the select option
RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
Assign it to a field symbol
ASSIGN RT_CARRID->* TO <FS_CARRID>.
CLEAR ISFLIGHT. REFRESH ISFLIGHT.
SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
WHERE CARRID IN <FS_CARRID>.
NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
endmethod.
while executing appln. error is trigger on line given below
RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
Err: The following error text was processed in the system BCD : Access via 'NULL' object reference not possible.
please help me out on this issue.
Thanks and Regards
Vinayak Sapkalhi ,
The attribute M_HANDLER is an attirbute of component controller (as told by your post) and so you cannot access it as you have done it.
You will have to access it as .
WD_COMP_CONTROLLER->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD(I_ID = 'S_CARR_ID' ).
Try doing it.
Or else , if you have created a similar attribute in your view itself , then it is "INITIAL" and hence you are getting the dump.
You will have to assign the view attribute "M_HANDLER" with the value of your component controller attribute "M_HANDLER" ,because all the initializations are done in WDDOINIT of comp controller and on component controller atribute "M_HANDLER".
Thanks,
aditya. -
Hi all,
I am new to ActionScript and Flash, and I am getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
at jessicaclucas_fla::MainTimeline/stopResumescroll()
I have several different clips in one movie that have scrolling content. When I click a button to move to a different clip that doesn’t have a certain scroll, it gives me this error. I cannot figure out how to fix this. You can see the site I am working on: http://www.jessicaclucas.com. I would really appreciate some help! Thank you in advance. Here is the code:
//Import TweenMax and the plugin for the blur filter
import gs.TweenMax;
import gs.plugins.BlurFilterPlugin;
//Save the content’s and mask’s height.
//Assign your own content height here!!
var RESUMECONTENT_HEIGHT:Number = 1500;
var RESUME_HEIGHT:Number = 450;
//We want to know what was the previous y coordinate of the content (for the animation)
var oldResumeY:Number = myResumecontent.y;
//Position the content on the top left corner of the mask
myResumecontent.x = myResume.x;
myResumecontent.y = myResume.y;
//Set the mask to our content
myResumecontent.mask = myResume;
//Create a rectangle that will act as the Resumebounds to the scrollMC.
//This way the scrollMC can only be dragged along the line.
var Resumebounds:Rectangle = new Rectangle(resumescrollMC.x,resumescrollMC.y,0,450);
//We want to know when the user is Resumescrolling
var Resumescrolling:Boolean = false;
//Listen when the user is holding the mouse down on the scrollMC
resumescrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startResumescroll);
//Listen when the user releases the mouse button
stage.addEventListener(MouseEvent.MOUSE_UP, stopResumescroll);
//This function is called when the user is dragging the scrollMC
function startResumescroll(e:Event):void {
//Set Resumescrolling to true
Resumescrolling = true;
//Start dragging the scrollMC
resumescrollMC.startDrag(false,Resumebounds);
//This function is called when the user stops dragging the scrollMC
function stopResumescroll(e:Event):void {
//Set Resumescrolling to false
Resumescrolling = false;
//Stop the drag
resumescrollMC.stopDrag();
//Add ENTER_FRAME to animate the scroll
addEventListener(Event.ENTER_FRAME, enterResumeHandler);
//This function is called in each frame
function enterResumeHandler(e:Event):void {
//Check if we are Resumescrolling
if (Resumescrolling == true) {
//Calculate the distance how far the scrollMC is from the top
var distance:Number = Math.round(resumescrollMC.y - Resumebounds.y);
//Calculate the percentage of the distance from the line height.
//So when the scrollMC is on top, percentage is 0 and when its
//at the bottom the percentage is 1.
var percentage:Number = distance / RESUME_HEIGHT;
//Save the old y coordinate
oldResumeY = myResumecontent.y;
//Calculate a new y target coordinate for the content.
//We subtract the mask’s height from the contentHeight.
//Otherwise the content would move too far up when we scroll down.
//Remove the subraction to see for yourself!
var targetY:Number = -((RESUMECONTENT_HEIGHT - RESUME_HEIGHT) * percentage) + myResume.y;
//We only want to animate the scroll if the old y is different from the new y.
//In our movie we animate the scroll if the difference is bigger than 5 pixels.
if (Math.abs(oldResumeY - targetY) > 5) {
//Tween the content to the new location.
//Call the function ResumetweenFinished() when the tween is complete.
TweenMax.to(myResumecontent, 0.3, {y: targetY, blurFilter:{blurX:22, blurY:22}, onComplete: ResumetweenFinished});
//This function is called when the tween is finished
function ResumetweenFinished():void {
//Tween the content back to “normal” (= remove blur)
TweenMax.to(myResumecontent, 0.3, {blurFilter:{blurX:0, blurY:0}});Hi again,
Thank you for helping. I really appreciate it! Would it be easier to say, if resumescrollMC exists, then execute these functions? I was not able to figure out the null statement from your post. Here is what I am trying (though I am not sure it is possible). I declared the var resumescrollMC, and then I tried to put pretty much the entire code into an if (resumescrollMC == true) since this code only needs to be completed when resumescrollMC is on the stage. It is not working the way I have tried, but I am assuming I am setting up the code incorrectly. Or, an if statement is not supposed to be issued to an object:
//Import TweenMax and the plugin for the blur filter
import gs.TweenMax2;
import gs.plugins.BlurFilterPlugin2;
//Save the content's and mask's height.
//Assign your own content height here!!
var RESUMECONTENT_HEIGHT:Number = 1500;
var RESUME_HEIGHT:Number = 450;
var resumescrollMC:MovieClip;
if (resumescrollMC == true) {
//We want to know what was the previous y coordinate of the content (for the animation)
var oldResumeY:Number = myResumecontent.y;
//Position the content on the top left corner of the mask
myResumecontent.x = myResume.x;
myResumecontent.y = myResume.y;
//Set the mask to our content
myResumecontent.mask = myResume;
//Create a rectangle that will act as the Resumebounds to the scrollMC.
//This way the scrollMC can only be dragged along the line.
var Resumebounds:Rectangle = new Rectangle(resumescrollMC.x,resumescrollMC.y,0,450);
//We want to know when the user is Resumescrolling
var Resumescrolling:Boolean = false;
//Listen when the user is holding the mouse down on the scrollMC
resumescrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startResumescroll);
//Listen when the user releases the mouse button
stage.addEventListener(MouseEvent.MOUSE_UP, stopResumescroll);
//This function is called when the user is dragging the scrollMC
function startResumescroll(e:Event):void {
//Set Resumescrolling to true
Resumescrolling = true;
//Start dragging the scrollMC
resumescrollMC.startDrag(false,Resumebounds);
//This function is called when the user stops dragging the scrollMC
function stopResumescroll(e:Event):void {
//Set Resumescrolling to false
Resumescrolling = false;
//Stop the drag
resumescrollMC.stopDrag();
//Add ENTER_FRAME to animate the scroll
addEventListener(Event.ENTER_FRAME, enterResumeHandler);
//This function is called in each frame
function enterResumeHandler(e:Event):void {
//Check if we are Resumescrolling
if (Resumescrolling == true) {
//Calculate the distance how far the scrollMC is from the top
var distance:Number = Math.round(resumescrollMC.y - Resumebounds.y);
//Calculate the percentage of the distance from the line height.
//So when the scrollMC is on top, percentage is 0 and when its
//at the bottom the percentage is 1.
var percentage:Number = distance / RESUME_HEIGHT;
//Save the old y coordinate
oldResumeY = myResumecontent.y;
//Calculate a new y target coordinate for the content.
//We subtract the mask's height from the contentHeight.
//Otherwise the content would move too far up when we scroll down.
//Remove the subraction to see for yourself!
var targetY:Number = -((RESUMECONTENT_HEIGHT - RESUME_HEIGHT) * percentage) + myResume.y;
//We only want to animate the scroll if the old y is different from the new y.
//In our movie we animate the scroll if the difference is bigger than 5 pixels.
if (Math.abs(oldResumeY - targetY) > 5) {
//Tween the content to the new location.
//Call the function ResumetweenFinished() when the tween is complete.
TweenMax.to(myResumecontent, 0.3, {y: targetY, blurFilter:{blurX:22, blurY:22}, onComplete: ResumetweenFinished});
//This function is called when the tween is finished
function ResumetweenFinished():void {
//Tween the content back to "normal" (= remove blur)
TweenMax.to(myResumecontent, 0.3, {blurFilter:{blurX:0, blurY:0}}); -
Cannot access null object reference in flex
Hi All,
Please provide me the solution ASAP....for the below error........
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Components::References/communicationServicesPort_resultHandler()[C:\Documents and Settings\xp\Adobe Flash Builder 4 Plug-in\LawPadPDA\src\Components\actionscript\ReferenceAS.as:345]
at Components::References/__communicationServicesPort_result()[C:\Documents and Settings\xp\Adobe Flash Builder 4 Plug-in\LawPadPDA\src\Components\References.mxml:40]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.fiber.services.wrapper::AbstractServiceWrapper/http://www.adobe.com/2008/flex/model/internal::propagateEvents()[C:\depot\DataServices\bra nches\lcds_modeler101\frameworks\projects\fiber-swc\src\com\adobe\fiber\services\wrapper\A bstractServiceWrapper.as:200]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractService/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\rpc\A bstractService.as:333]
at mx.rpc.soap.mxml::WebService/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\ rpc\soap\mxml\WebService.as:267]
at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.0.0\frameworks\pro jects\rpc\src\mx\rpc\AbstractOperation.as:254]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\4.0.0\frameworks\projec ts\rpc\src\mx\rpc\AbstractInvoker.as:318]
at mx.rpc::Responder/result()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:5 6]
at mx.rpc::AsyncRequest/acknowledge()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:84]
at DirectHTTPMessageResponder/completeHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:446]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
private function communicationServicesPort_resultHandler(event:ResultEvent):void{
str = new ArrayCollection();
if (event.token.result as ArrayCollection) { // When result contains more than one string
str = event.token.result as ArrayCollection;
if(str.length <= 15){
if(str.length<15)
nextLabel.enabled =false ; // Here i am getting error for not accessing nextlabel i.e id of next button
else {
nextLabel.enabled =true ;
referenceDG.dataProvider = str; //Here i am getting error
else {// When result contains single string or validation message
str = new ArrayCollection([event.result]);
if(str[0] == "NULL"){
str[0]= " Sorry! No Search Results Found... Please do search again.......... ";
nextLabel.enabled = false;
referenceDG.dataProvider = str;Hi,
Thanks for ur reply,,
I have posted u with some more code snippets .....please provide me solution ASAP
Reference.mxml
<s:HGroup width="1003" height="45" gap="2">
<mx:Image id="judgements" width="98" minHeight="10" click="this.createMenu('judgements',JudgementsXMLTag)" buttonMode="true"
maxHeight="350" maxWidth="250" height="41" source="assets/images/ReferencesImages/JudgementsImg.jpg" left="0"/>
</s:HGroup>
<mx:Canvas id="datagrid" width="100%" height="100%">
<mx:VBox width="100%" height="100%" paddingBottom="5" paddingLeft="1" paddingRight="0"
paddingTop="10" verticalScrollPolicy="off" horizontalScrollPolicy="off">
<mx:DataGrid id="referenceDG" itemClick="openFile(event)" //datagrid
width="100%" height="100%" showHeaders="false"
alternatingItemColors="[#ffffff,#ffffff]">
<mx:columns>
<mx:DataGridColumn dataField="*" fontWeight="normal" visible="false"
direction="ltr" fontGridFitType="pixel" color="#000000"
fontSize="12" fontStyle="normal" fontFamily="Verdana"
wordWrap="true" resizable="false" width="14"/>
<mx:DataGridColumn dataField="*" fontWeight="normal" labelFunction="SplitFunc"
direction="ltr" fontGridFitType="pixel" color="#000000"
fontSize="12" fontStyle="normal" fontFamily="Verdana"
wordWrap="true" resizable="false" width="14"/>
</mx:columns>
</mx:DataGrid>
<mx:HRule width="968"/>
<mx:HBox horizontalAlign="right" width="968">
<mx:LinkButton id="prevLabel" label="Prev" fontWeight="bold" enabled="{counter>1}" click="prv_clickHandler(event)" color="#FF8800"/> //Previous button
<mx:LinkButton id="nextLabel" label="Next" fontWeight="bold" click="nxt_clickHandler(event)" color="#FF8800"/>
//Next Button
</mx:HBox>
</mx:VBox>
</mx:Canvas>
private function createMenu(btnName:String,xmlTag:XML):void { //On click of judgements image
/*reader.htmlText="";*/
menu = new ScrollableArrowMenu();
menu = ScrollableArrowMenu.createMenu(null,xmlTag, false);
menu.labelField="@label";
menu.verticalScrollPolicy = ScrollPolicy.OFF;
menu.arrowScrollPolicy = ScrollPolicy.AUTO;
menu.maxHeight=350;
menu.maxWidth=250;
var pt:Point = new Point(0, 40);
menu.addEventListener(MenuEvent.ITEM_CLICK,JudgementsMenuBar_itemClickHandler); ///menu item click event listener
pt = judgements.localToGlobal(pt);
menu.show(pt.x, pt.y);
protected function JudgementsMenuBar_itemClickHandler(event:MenuEvent):void /// On dropdown menu item click
//Alert.show("Data under process","No Data");
searchTxt.text ="";
searchFlag = false;
judgementItemLabel = null;
var judgementItemLabel:String = null;
judgementItemLabel = event.item.@label;
var judgementItemLabelSplit:String = null;
var judgementItemLabelSplitArray:Array = new Array();
judgementItemLabelSplitArray = judgementItemLabel.split(" ");
judgemntItemLabelAfterSplit=judgementItemLabelSplitArray[0];
judgementsTtlWndw = PopUpManager.createPopUp(this, JudgementMenubarClickPopup, true) as JudgementMenubarClickPopup; /// opening a pop up.... once th user enters the I/P iam dispatching the event from popup
judgementsTtlWndw.addEventListener(ReferenceJudgementsEvent.SEARCH_CLICK_EVENT,searchButt onClickPopUp); //event listener for dispatched event from popup
judgementsTtlWndw.judgementMess.text = " Please Enter Furthur Keywords to be Searched with respect to " + event.item.@label;
judgementsTtlWndw.judgementitemlabelSplitPopUp.text = judgemntItemLabelAfterSplit+"btn";
PopUpManager.centerPopUp(judgementsTtlWndw);
private function searchButtonClickPopUp( event:ReferenceJudgementsEvent ) : void
judgementFileDownloadString = event.judgementUserIp;
searchButtonClick();
public function searchButtonClick():void {
RefTxtInput = StringUtils.stripTags(judgementFileDownloadString);
judgementFileDownloadString = null;
searchFlag = false;
counter = 1;
getSearchEngineForReferencePageResult.token = lawPadCommunicationServicesPort.getSearchEngineForReferencePage(RefTxtInput, 15, counter);
/////////////LawPad Search//////////////////////////
private function lawPadCommunicationServicesPort_resultHandler(event:ResultEvent):void{
str = new ArrayCollection();
if (event.token.result as ArrayCollection) { // When result contains more than one string
str = event.token.result as ArrayCollection;
if(str.length <= 15){
if(str.length<15)
nextLabel.enabled =false ;
else {
nextLabel.enabled =true ; //error at this point
referenceDG.dataProvider = str; //error at this point -
hello,
I am trying to load a menu as an external file .... and getting this : TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com::menu()
here is my code:
if(!menuLoader){
var menuRequest:URLRequest = new URLRequest("menu.swf");
var menuLoader:Loader = new Loader();
menuLoader.load(menuRequest);
container.addChild(menuLoader);
menuLoader.x = 700;
menuLoader.y = 50;
can anyone give me a helping hand?
thanks in advance.use:
here is my code:
if(menuLoader!=null){
var menuRequest:URLRequest = new URLRequest("menu.swf");
var menuLoader:Loader = new Loader();
menuLoader.load(menuRequest);
container.addChild(menuLoader);
menuLoader.x = 700;
menuLoader.y = 50; -
WebDynpro Abap MSS: Access via "NULL" object reference not possible
hi,
My customer send me the following link to Appraisal Documents (Manager) MSS
http://server.sap.portal:1810/sap/bc/webdynpro/sap/HAP_START_PAGE_POWL_UI_MSS/
http://a.imageshack.us/img685/5959/mss3.jpg (logon in Costumer SAP System)
http://a.imageshack.us/img225/4008/mss4.jpg (Appraisal Documents (Manager) MSS run succesful)
Link that also run by the SICF in my customer is correct.
But when I run in my SAP System see the following error
http://a.imageshack.us/img715/5355/mss1j.jpg (SCIF in my SAP System)
http://a.imageshack.us/img44/5346/mss2.jpg (SCIF - test service)
http://a.imageshack.us/img840/1677/mss2b.jpg (Error, without window logon)
<b> Access via "NULL" object reference not possible</b>
Other question is: In what part of MSS is this option? because the ESS is in Career and Jobs / Appraisals Documents
http://a.imageshack.us/img683/9900/careerjob3.jpg (Employee Self Service / Career and Jobs / Appraisals Documents)
thanks for your posts and answer
IvanHello
The most important information is (again) missing: which object reference is initial ("NULL")?
The ABAP dump will tell you.
Below I show an example how this can happen (and be avoided):
LOOP AT lt_accountings INTO ls_accounting.
lo_po_account ?= ls_accounting-accounting.
ENDLOOP.
" QUESTION: Are you sure that lo_po_account hold an instance ???
" If LO_PO_ACCOUNT is empty the following statement will give you the dump.
ls_mepoaccounting = lo_po_account->get_data( ).
" And that is how to avoid this (at least the dump. Whether your logic is still ok is another matter...)
CHECK ( lo_po_account IS BOUND ).
ls_mepoaccounting = lo_po_account->get_data( ).
Regards
Uwe -
Error when save project Access via 'NULL' object reference not possible PLM
Dear All,
we are using cProject (PLM)4.0
When i create project & try to save ,system gives me error 'Access via 'NULL' object reference not possible'
Steps
1.Create project & element
2.save
showing below error
Note
The following error text was processed in the system PLD : Access via 'NULL' object reference not possible.
The error occurred on the application server Ndimdev_PLD_20 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Error code: ICF-IE-http -c: 300 -u: PLMUSER1 -l: E -s: PLD -i: Ndimdev_PLD_20 -w: 0 -d: 20090702 -t: 164926 -v: RABAX_STATE -e: OBJECTS_OBJREF_NOT_ASSIGNED
Please do needful
Regards
RavindraHi,
Put a break point and check whther ur node and
element instantiation is properly done.
Thanks,
Divya.S -
Webservice end up in Access via 'NULL' object reference not possible error
Hello everyone,
I have a particular issue when I run a webservice on webclient but when i run on sap R/3 it works fine.
The dump which it give when I test the web service is
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "RPCTRSU0" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
The code where it ends up in error is
2607 data: l_wb_interface type ref to fp_wb_interface.
2609 data: p_interface_data type ref to
fb_interface_data.
2610 data: l_interface TYPE REF TO
if_fp_interface.
2611 data: l_exceptions type ref to cx_root.
2613 data: l_parameters type ref to
if_fp_parameters,
2614 l_parameter_table type tfpiopar.
2615 data: l_fpintf_name type fpname.
2616 data: wa_dd03p type dd03p,
2617 DD40V_WA type dd40v.
2618 data: l_intf_imp_item type line of tfpiopar.
2620 l_fpintf_name = i51t8_adb_fpint.
2621 TRY.
2622 l_wb_interface = cl_fp_wb_interface=>load(
2623 i_name = l_fpintf_name
2624 i_mode =
if_fp_wb_object=>c_mode_read
2626 i_language = sy-langu
2627 ).
2628 CATCH cx_fp_api_usage into l_exceptions.
2629 * RAISE error.
2630 CATCH cx_fp_api_repository into l_exceptions.
2631 * RAISE error.
2632 CATCH cx_fp_api_internal into l_exceptions.
2633 * RAISE error.
2634 ENDTRY.
2635
>>>>> l_interface ?= l_wb_interface->get_object
2637 p_interface_data = l_interface->get_interface_data( ).
2638 l_parameters = p_interface_data->get_parameters( ).
Please let me know how to go about twith this error
Regards,
Rajx
-
Web-UI error message "Access via 'NULL' object reference not possible"
I need some help, I'm not a Basis person but I need to get this connection problem resolve.
This problem is in our DEV ICWeb system. After logging in to Web-UI, I got a error message "Access via 'NULL' object reference not possible". We have 3 clients (100, 220, & 310) in DEV and all 3 clients are giving me the same error message.
From the help.sap.com, I found this topic http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
but in the document it asked to go to SM59 to check the ESH_APPL_WS_TEMPLATEENGINE destination. But we don't have that destination setup in all our systems.
Here is the complete error message:
Error when processing your request
What has happened?
The URL http://crm-dev.staff.copa:8000/sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do was not called due to an error.
Note
■The following error text was processed in the system CD1 : Access via 'NULL' object reference not possible.
■The error occurred on the application server CRM-DEV_CD1_00 and in the work process 0 .
■The termination type was: RABAX_STATE
■The ABAP call stack was:
Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
Method: EH_TRIGGER_NAVIGATION of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
Method: SET_WORKAREA_CONTENT of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
Method: PROCESS_NAV_QUEUE of program CL_BSP_WD_VIEW_MANAGER========CP
Method: DO_INIT of program CL_CRM_UI_FRAME_APP_CONTROLLERCP
Method: DO_INIT of program CL_BSP_CTRL_ADAPTER===========CP
Method: GET_PAGE_CONTEXT_CURRENT of program CL_BSP_CONTEXT================CP
Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
What can I do?
■If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CD1 in transaction ST22.
■If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server CRM-DEV_CD1_00 in transaction SM21.Hi Michael,
Refer to the link below and check the procedure.
http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
Regards,
Arjun -
Hi all ,
Im getting the below error , actually recently i created my own custom table zstudent, later i wrote select query to fetch data from the same and dump at internal table and then bind this to the table node.
But im getting below error, even i removed the select query still same error is occuring.
Error when processing your request
What has happened?
The URL http://********00.*****b.com:8000/sap/bc/webdynpro/sap/zdemo_student/ was not called due to an error.
Note
The following error text was processed in the system IDS : Access via 'NULL' object reference not possible.
The error occurred on the application server axsids00_IDS_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: WDDOINIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
Method: IF_WDR_COMPONENT_DELEGATE~WD_DO_INIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
Method: DO_INIT of program CL_WDR_DELEGATING_COMPONENT===CP
Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
Method: INIT_CONTROLLER of program CL_WDR_COMPONENT==============CP
Method: INIT of program CL_WDR_CONTROLLER=============CP
Method: INIT of program CL_WDR_CLIENT_COMPONENT=======CP
Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CPThanks Rama,
Acutally i accidentally commented the lo_nd_student = wd_context ....etc
this line was commented .
i have one small requirement to fetch data from local customised table and fill the same to internal table and bind that to table node.
my table node is student having attributes as name , city and number , all are of type strings.
now i created one custom table zstudent having ID - char of length 10,
name of type string
city of type string
num of type string
i have inserted records
but when i use select query to fill data from this zstudent to my internal table of type lt_student type wd_this->elements_student ,
im getting same above error. -
Dump - Access using NULL object reference is not possible!!!
Hi,
I'm using the BCS class for sending HTM format email so i use the below code for that its working,
DATA: gr_document TYPE REF TO cl_document_bcs,
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
Next task is to send the image so i'm creating an another object to the same class, below code
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
clear: lo_document.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
but it throws the dump " Access using NULL object reference is not possible" when i tries to access for method add_attachment...
Thanks,
SivaYes there is commit work after that, Below code
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
create object lo_document type cl_document_bcs.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
"Add document to send request
CALL METHOD gr_send_request->set_document( gr_document ).
TRY.
CALL METHOD gr_send_request->SET_SEND_IMMEDIATELY
EXPORTING
I_SEND_IMMEDIATELY = 'X'.
* CATCH CX_SEND_REQ_BCS INTO BCS_EXCEPTION .
**Catch exception here
ENDTRY.
DATA: LO_SENDER TYPE REF TO IF_SENDER_BCS VALUE IS INITIAL.
TRY.
LO_SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ). "sender is the logged in user
* Set sender to send request
gr_send_request->SET_SENDER(
EXPORTING
I_SENDER = LO_SENDER ).
* CATCH CX_ADDRESS_BCS.
****Catch exception here
ENDTRY.
"Send email
CALL METHOD gr_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = gv_sent_to_all ).
IF gv_sent_to_all = 'X'.
WRITE 'Email sent!'.
ENDIF.
"Commit to send email
COMMIT WORK.
"Exception handling
CATCH cx_bcs INTO gr_bcs_exception.
WRITE:
'Error!',
'Error type:',
gr_bcs_exception->error_type.
ENDTRY. -
SSAS Tabular - Adding Column to a table gives error "Object reference not set to instance of object"
If I make changes to a table in SSAS Tabular Visual Studio, the newly added column gives error as "Object
reference not set to instance of object"Hi VikasJain13,
According to your description, you get the "Object reference not set to instance of object" error when adding columns in Tabular. Right?
Generally, it throws this error when the internal code is accessing the property of an empty object. As you mentioned it happens when you make changes on a table, mostly it means that table is already a empty object. Please re-process your tabular to see
if this table is still existing.
If you have any question, please feel free to ask.
Simon Hou
TechNet Community Support
Maybe you are looking for
-
Workaround for Overdrive WMA Audiobooks on iOS 5
Hello - I stumbled across a workaround to the problem of Overdrive WMA library audiobooks appearing on the device as playlists rather than audiobooks in iOS 5. There are so many threads about this problem that I could not decide where to post this wh
-
Uninstall devices from a command prompt
Hello, I am creating a task sequence in SCCM to deploy a windows 7 image. One particulare hardware platform upon completion of the image, the sound card does not seem to be working correctly. It looks good in the device manager, and all the appropri
-
I have two apple Ids and two tablets. I need to consolidate in one tablet both Ids.
I have two tablets mad two apple Ids one of my tablets broke and I want to consolidate all pictures, apps etc. Amaya
-
GRUB Destroyed in Updating from OpenSolaris 134 to Solaris 11 Express
Following the instructions to upgrade from openSolaris to Solaris 11 Express, the system has destroyed the Grub menu The foloowing error messages are being printed Checksum verification failed. Assistance to correct this problem please.
-
Just updated to 5.7 and now get the message that amtlib.dll is missing, which I think means that Adobe has lost my licence file in the update process; any ideas?