Unmarshal stringbuffer gives null object

Hi,
I'm using jDeveloper 10.1.3. to develop a webservice that calls the Oracle Business Rules engine.
In order to do this, I take the carrental example from OTN as a starting point.
The supplied java file uses Unmarshalling to read xml from a file into an object like this:
******************************************************************************88
//* Unmarshall a file
JAXBContext jc = JAXBContext.newInstance("rent");
Unmarshaller um = jc.createUnmarshaller();
String fs = System.getProperty("file.separator");
String xmlpath = "C:\\Jdev10g\\jdev\\mywork\\Rules\\rent\\data" + fs + "carrental.xml" ;
Object root = um.unmarshal(new File(xmlpath));
This works fine.
I want to do the same but now with the xml in a stringbuffer i.o. a file, like this:
//Unmarshal a stringbuffer
JAXBContext jc = JAXBContext.newInstance("rent");
Unmarshaller um = jc.createUnmarshaller();
StringBuffer xmlStr = new StringBuffer(buf1);
Object root = um.unmarshal(new StreamSource (new StringReader(xmlStr.toString())));
In this case, the resulting Object root is null.
The String buf1 variable contains the same xmlstring as is found in the carrental.xml file :
<repository xmlns="http://rules.oracle.com/carrental"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance">
<driver>
<driver-license-number>d111</driver-license-number>
<name>Dave</name>
<age>50</age>
<vehicle-type>sports</vehicle-type>
<license-type>full</license-type>
<pre-convictions>0</pre-convictions>
<pre-accidents>1</pre-accidents>
<able-to-drive>true</able-to-drive>
</driver>
<driver>
<driver-license-number>d222</driver-license-number>
<name>Martien van den Akker</name>
<age>18</age>
<vehicle-type>truck</vehicle-type>
<license-type>full</license-type>
<pre-convictions>0</pre-convictions>
<pre-accidents>0</pre-accidents>
<able-to-drive>true</able-to-drive>
</driver>
<driver>
<driver-license-number>d222</driver-license-number>
<name>Rob de Haanr</name>
<age>39</age>
<vehicle-type>truck</vehicle-type>
<license-type>full</license-type>
<pre-convictions>0</pre-convictions>
<pre-accidents>1</pre-accidents>
<able-to-drive>true</able-to-drive>
</driver>
</repository>
I followed the examples from the Sun website:
http://java.sun.com/webservices/docs/1.6/api/javax/xml/bind/Unmarshaller.html
The complete java file is:
package carrental;
import java.io.File;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import javax.xml.transform.stream.StreamSource;
import oracle.rules.rl.RuleSession;
import oracle.rules.sdk.dictionary.RuleDictionary;
import oracle.rules.sdk.exception.RepositoryException;
import oracle.rules.sdk.repository.RepositoryContext;
import oracle.rules.sdk.repository.RepositoryManager;
import oracle.rules.sdk.repository.RepositoryType;
import oracle.rules.sdk.repository.RuleRepository;
public class TestXML
static public void main( String[] args )
String result;
     try
TestXML myObject = new TestXML();
result = myObject.testRule("rob");
catch( Throwable t )
t.printStackTrace();
public String testRule (String buf)
String buf1 =
"<?xml version=\"1.0\"?><repository xmlns=\"http://rules.oracle.com/carrental\"\n" +
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" +
" <driver>\n" +
" <driver-license-number>d111</driver-license-number>\n" +
" <name>Dave</name>\n" +
" <age>50</age>\n" +
" <vehicle-type>sports</vehicle-type>\n" +
" <license-type>full</license-type>\n" +
" <pre-convictions>0</pre-convictions>\n" +
" <pre-accidents>1</pre-accidents>\n" +
" <able-to-drive>true</able-to-drive>\n" +
" </driver>\n" +
"</repository>\n" ;
try
//Unmarshal a stringbuffer
JAXBContext jc = JAXBContext.newInstance("rent");
Unmarshaller um = jc.createUnmarshaller();
StringBuffer xmlStr = new StringBuffer(buf1);
System.out.println("buf = " + buf1);
Object root = um.unmarshal(new StreamSource (new StringReader(xmlStr.toString())));
//* Unmarshall a file
JAXBContext jc = JAXBContext.newInstance("rent");
Unmarshaller um = jc.createUnmarshaller();
String fs = System.getProperty("file.separator");
String xmlpath = "C:\\Jdev10g\\jdev\\mywork\\Rules\\rent\\data" + fs + "singlecarrental.xml" ;
Object root = um.unmarshal(new File(xmlpath));
//load dictionary
String repoPath = "C:\\Jdev10g\\jdev\\mywork\\Rules\\rent\\dict" + fs + "CarxmlRepository";
final String jarstoreKey = "oracle.rules.sdk.store.jar";
// file based repository
RepositoryType jarType = RepositoryManager.getRegisteredRepositoryType( jarstoreKey );
RuleRepository repo = RepositoryManager.createRuleRepositoryInstance( jarType );
//fill in init property values
RepositoryContext jarCtx = new RepositoryContext();
jarCtx.setProperty( oracle.rules.sdk.store.jar.Constants.I_PATH_BASE, repoPath );
//init the repository instance. If the init is successful,
//we shall get a useable repository instance
repo.init( jarCtx );
RuleDictionary dict = repo.loadDictionary( "RobFileXML", "INITIAL" );
//init a rule session
String rsname = "vehicleRent";
String dmrl = dict.dataModelRL();
String rsrl = dict.ruleSetRL( rsname );
RuleSession session = new RuleSession();
session.executeRuleset( dmrl );
session.executeRuleset( rsrl );
List argList = new ArrayList(3);
argList.add( "rent" );
argList.add( root );
argList.add( "//*" );
session.callFunctionWithArgumentList( "assertXPath", argList );
return ("Klaar, resultaat = " + session.callFunctionWithArgument( "run", rsname )).toString();
catch( Throwable t )
t.printStackTrace();
return t.getMessage() + " Buf1 = " + buf1;
public String version() {
return "1.0";
As stated above: if I unmarshal the file all goes well.
Any help would be greatly appreciated
Regards, Rob

Yes, you cannot do that work outside of a function. This is
because of the way mxml is generated into AS and compiled.
Declare the variable in instance scope as you have it, but do
the assignment in a function called by the Application initialize
or creationComplete event,
Tracy

Similar Messages

  • POSTING TO JSP FORMS GIVES NULL OBJECT RATHER THAN EMPTY STRING

    This post is for Dan Norris of DOE. He brought this up in a submitted tar, but it is addressed by the PDK community here.
    We arehaving problems using the standard HTTPServletRequest getParameter
    methodinside of the portal.
    The standard for this method is as follows:
    *If you usethis method to read from a text field without any text in it, you
    get an empty string. ( "" )
    *If you use it to read from a text field with text in it youwould get the
    corresponding text.
    *If you try to read from a field that doesn'texist then and only then would
    you get a Null object.
    On our portal server itis behaving differently inside of portlets.
    * If you use this method to readfrom a text field without any text in it, you
    get a Null Object
    * If you use itto read from a text field with text in it you would get the
    correspondingtext.
    * If you try to read from a field that doesn't exist you also would youget a
    Null object.
    Also, on the same server If you access a simple JSP directlywithout the it
    being a portlet, it behaves as defined by standard Javadocumentation.
    Test case:
    Create test.jsp with these contents:
    ========start test.jsp
    <%@pageimport = "oracle.portal.provider.v1.*,
    oracle.portal.provider.v1.http.*"%>
    Form to test submission of empty form field.<br>
    Text Field Value ="<%=request.getParameter("testField")%>"
    <form name="test" action="<%=
    HttpPortletRendererUtil.htmlFormActionLink(request,PortletRendererUtil.PAGE_LINK
    ) %>">
    <%=
    HttpPortletRendererUtil.htmlFormHiddenFields(request,PortletRendererUtil.PAGE_LI
    NK) %>
    <INPUT type="text" name="testField">
    <INPUT type="Submit"name="Submit">
    </form>
    ========end test.jsp
    =================startprovider.xml
    <provider class="oracle.portal.provider.v1.http.DefaultProvider"
    session="true">
    <portlet class="oracle.portal.provider.v1.http.DefaultPortlet" version="1" >
    <id>1</id>
    <name>TestPortlet</name>
    <title>Test</title>
    <description>Test</description>
    <timeout>100</timeout>
    <timeoutMsg>Test Portlet timed out.</timeoutMsg>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentTypes>
    <item>text/html</item>
    </acceptContentTypes>
    <portletRenderer class="oracle.portal.provider.v1.http.PageRenderer" >
    <appPath>/</appPath>
    <appRoot>/u01/app/oracle/product/ias1021/Apache/Apache/htdocs</appRoot>
    <renderContainer>false</renderContainer>
    <showPage>test.jsp</showPage>
    <pageParameterName>next_page</pageParameterName >
    </portletRenderer>
    </portlet>
    </provider>
    =================end provider.xml
    After you have theprovider added to the portal, login to the portal as
    portal30 and go toAdminister Tab->Display Portlet Repository and display the
    portlet.
    1.Enter "test" in the text field and submit.
    2. Returns Text Field Value ="test"
    3. Submit form leaving the text field empty.
    4. Returns Text FieldValue = "null"
    Submitting the form with the text field empty should returnvalue of "", and
    not "null".

    fyi in case anyone else ever wants to know:
    I found it... the details I was looking for were in the OC4J 9.0.2 Release Notes:
    Display of null values in JSP.
    In Oracle9iAS, a null value printed from a JSP page displays, by default, as
    the string "null." To display nothing instead, set the attribute jsp-print-null
    to false in the <web-app> element of
    global-web-app.xml or orion-web.xml.

  • 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.
    roshni

    Pls 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

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

    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}});

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

    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;

  • How can I apply a timestretch to different null objects and then use them to parent layers?

    I am using several hundred stills which are held on screen for different lengths of time. Is there a way to create null objects with various timestretch values and then use them to parent my stills?
    I'm trying to find an equivalent to the 'paste attributes' function in Final Cut Pro.
    Thanks in advance
    A

    If you have movement on the stills you can set up expressions based on in and out points. That's what I do. I then drop all my stills in order into a comp then set the out point for all stills for the longest duration. I then set group colors for layers that I want to make different lengths, do a group select and then adjust the out points for those layers. When I'm done I sequence the layers using the keyframe assistant.
    The other way I work is to use an audio track with markers for timing. I have an expression that reads the markers and sets opacity for the layers based on pairs of markers. The motion is also controlled by expressions. That's an even faster way to set up an animated slide show.
    The last way I work is just to set in an out points for all layers, sequence the layers, use expressions to do the motion and then use time remapping on a pre-comp to adjust the timing of the slide show. All methods are quick and easy.
    Here's a fly in bounce and then drop out fxx preset that will give you an idea of how expressions based on in and out point work for slide shows. You just drag the layer to it's resting position, apply the animatiokn preset and the layer flys in, bounces, and then drops out the bottom of the comp. Works in 2D and 3D space.

  • 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
    Ivan

    Hello
    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

  • Column chart dataprovider null object refrerence #1009

    hi
    i have one column chart whose data provider initially is set to httpservice's lastresult . i have created one function to load chart with new data on one button click. when i click that button the chart should be loaded with new data so i have written in click function of button.... chart.dataprovider=gettdata.lastresult.people.person;..... but when i run the code and click the button i gives the error
    TypeError: Error #1009: Cannot access a property or method of a null object reference...... but when i again click dismiss button of error and click the button to get new data the chart gets loaded with new data........
    i am using flexlib's mdIWINDOW as parent of column chart... please help

    Thanks Arthur.
    Your first suggestion is effectively what I'm doing as a
    workaround. But it is a bit of a pain to have to account for this
    each time when displaying a chart. It's a particular problem when
    you don't know in advance what "categories" might be returned by
    the data and that have to be charted.
    My biggest concern is that this looks like a bug, and the
    fact that it seems to occur intermittently is a bit worrying. (I
    also know that eight out of ten reported "bugs" are user error,
    which is why I was wondering if anyone else had experienced this.)
    About your second suggestion, I think the interpolateValues
    property only applies to lineSeries.

  • 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
    Ravindra

    Hi,
    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,
    Raj

    x

  • 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

  • Null object not centred, why?

    Create a null object and it's not centred to its location. Why?
    Seems like that would be the most obvious position to put the visual representation of a null object. So the least likely place for Adobe to put it?
    Or is there some logical reason?

    dissidently wrote:
    Rick, all other apps that have Null objects use them far more wisely than Adobe does. Mylenium has confirmed my suspicion, that these things weren't thought through, simply created (probably in a panic or out of laziness) as a half way house to what Null objects actually can be.
    I get your point about the anchor point, but that's not what I'm talking about. In ALL other apps with a Null object, the visual representation of that Null object is centred. There's a tonne of reasons to do that, and I'm not contending the placement of the Null objects "anchor", it's in the right spot. It's the visual representation of the Null object that's utterly wrong.
    That it's a deformable visual representation only compounds this problem.
    Your usual presumptuous assumptions.
    The null object was a remarkable improvement over how, in the olden days, we created invisibly small or transparent objects to do roughly the same thing.AE's were the first nulls I ever encountered. I learned how to use them when introduced and never really thought about how they might have been better. AE's nulls made perfectly good sense to me. And I don't use the other applications you are alluding to so I don't really need AE's null to be any different. I have, more than once, moved the null's anchor to its geometric center to help my project contributors grasp the concept. But they had no prior experience with nulls, either, so once they got it, I moved things back to their default because that works for me. Why are you still using After Effects?

  • Null object not following 3D camera tracking points.

    After applying the 3d camera tracker I right click between three targets and select "create null and camera", this creates a null object correctly aligned with the selected target and a camera, however, when I scrub through the timeline the null object is not tracking along with the selected target in the scene, it just stays in the one spot on the screen. It only just started to have this problem, it had been working fine before and all of a sudden its not working. Is there a way of fixing this? Did i accidentally deactivate the feature some how? Cheers Luke.

    I'm not sure I follow your description. When you say the null does not track with the target, that would be correct if the target is something that is moving in the scene because the 3D camera tracker solves for a moving camera solution by analyzing the change in parallax of fixed geometry in the scene. IOW, it's looking for things like buildings and roads and rocks that do not move. The camera is then added to the scene and 3D object you add to the scene should stick to the plane in the scene where it was placed. In other words, if you stuck a null to the sidewalk or to a wall, the null would stay stuck to the wall.
    If, on the other hand, you want to attach a null to something moving through the scene, like someone walking or a car driving, then Camera tracking is not the right tool. You need to use AE's motion tracker or Mocha to track the moving object inside the scene. That tracking data is what you must use to attach a null, or a layer, or text to something that is moving through the scene.

  • What's the difference between a not-initialed object and a null object

    hi guys, i wanna know the difference between a not-initialed object and a null object.
    for eg.
    Car c1;
    Car c2 = null;after the 2 lines , 2 Car obj-referance have been created, but no Car obj.
    1.so c2 is not refering to any object, so where do we put the null?in the heap?
    2.as no c2 is not refering to any object, what's the difference between c2 and c1?
    3.and where we store the difference-information?in the heap?

    For local variables you can't have "Car c1;" the compiler will complain.That's not true. It will only complain if you try to use it without initializing it.
    You can have (never used, so compiler doesn't care):
    public void doSomething()
       Car c1;
       System.out.println("Hello");
    }or you can have (definitely initialized, so doesn't have to be initialized where declared):
    public void doSomething(boolean goldClubMember)
       Car c1;
       if (goldClubMember)
           c1 = new Car("Lexus");
       else
           c1 = new Car("Kia");
       System.out.println("You can rent a " + c1.getMake());
    }

  • The following error text was processed in the system IDS : Access via 'NULL' object reference not possible.

    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===CP

    Thanks 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.

Maybe you are looking for

  • Windows won't detect audio after installing windows 7.

    I have a hp pavilion dv9610us notebook pc with windows vista home premium  and i recently install windows 7. Now windows won't detect the audio device. I try different software but it said that it can't find the media or device.

  • Itunes wont load!!!

    when i click on itunes the license agreement thing pops up nd then go es away. i did the msconfig thing nd itunes started working but then internet explorer stopped working. i did system restore nd now everything is back to the way when itunes didnt

  • About using hibernate with mysql

    hi all, i have used hibernate with hsqldb(database given by default) and it works fine.but when i tried to use it with mysql then i have encountered a problem xception org.hibernate.TransactionException: Transaction not successfully started      org.

  • Windows 8 Deleted Recovery Partition and Saved but No Boot

    Hi I ve Hp Pavilion G6 - 2336el , i bought it 5 months before and 2 days before i installed Ubuntu but by mistake ubuntu deleted all partitions (included recovery partition)  and created one for itself. by using DiskTest tool on ubuntu i recovered so

  • Am i supposed to let the battery go dead

    am i supposed to let the battery go dead