ViewLink accessor attribute NULL when VO has bind vars

Hi! I noticed that a ViewLink accessor attribute returns a NullPointer when the ViewObject SQL has a bind variable. i have a data model with Dept and Employee ViewObjects that is connected via viewlink.
I inserted a bind parameter :pDept and added on the whereclause "DeptNo = :pDept" to filter the employee returned based on Department. I then created a new Dept Row and a new employee on the same transaction (no commiting yet). When I got a reference to the viewLink accessor on the EmployeeViewRowImpl, i got a null reference when i tried to reference the viewLInk accessor for the department view:
//code snippet inside EmployeeViewRowImpl
void setAnAttribute(Object value) {
   Row row = getDeptView(); //returns null
}I notice that when I removed the bind variables and the where clause, I get the correct ViewLink accessor.
Is this expected behavior? if this is a bug, how can i get around this problem?

hi anton.
Maybe this is also related to your issue:
"Difference Between View Link Attribute and View Link Instance in Data Model"
http://radio.weblogs.com/0118231/stories/2004/11/08/differenceBetweenViewLinkAttributeAndViewLinkInstanceInDataModel.html
success
Jan Vervecken

Similar Messages

  • ViewLink Accessor returning null when VO has a BindParameter

    I have DeptView and EmpView that is link with a DempEmpViewLink. the link is two way so DeptView has a RowIterator Viewlink accessor and EmpView has a Row ViewLInk accessor.
    However inside the employeViewRow code, I always get a Null value when I access the Dept accessor.
    //inside Employee View Row.java
    Row row = this.getDeptView(); //returns null
    ...This happens when The DeptView has a bindvariable because I need to filter the DeptView so I have a where clause on the SQL statement. However, when I remove the whereclause and the bindvariable, the Dept ViewLInk accessor returns the correct row.
    regards,
    Anton

    Hi Chris,
    My scenario is actually a Invoice Header and Details screen.
    I have a HeaderView, DetailsView, and a HeaderDetailLink defined by a Composition Assoc. The headerView has a BindParameter on it. So on my page, I can view/navigate invoices and its details. but at the same time using the same viewobjects and same page, I need to be able to create and save a record on the header and details at the same time by just one Commit/Save. (Similar to a Forms application (header Form, and Details table).
    On pageload i execute a methodaction that inserts a row on the header and the detail at the same time. Then on the jsp page, I put some values on the header. Next i put a value on a fieldA on the detail. But when I put a value on fieldA, I need to compute the value of fieldB on the detail based on fieldA and a field of the Header row, fieldHeader.
    So to compute fieldB, I put a code on the settermethod of fieldA in the DetailRowImpl.java file:
    //detailRowImp.java, setFieldA()
    public void setFieldA(Number value) {
    setAttributeInternal(FIELDA, value);
    ... Row row = getHeaderRow(); //returns null
    Number fieldbValue = compute(value, row.getAttribute("FieldC")); //NullPointerException
    }What are your thoughts? any suggestions?
    regards,
    Anton

  • QBE style(Find-Execute) Query not executing when VO has bind parameter

    I have an Entity Based ViewObject that is composed of 3 Entities so the entities are related through an Assoc. Then the ViewObject also has a bind paremeter defined and used in the WHERE clause.
    In my page everything is fine until when I use/click on the Find operation on the JSF page. When the Find operation is executed the page/form goes blank so I can enter by QBE query. Now when I Execute my search by executing the ExecuteWith params operation. Nothing is happening to the screen, it seems that query was not executed. Although there was no errors or exceptions displayed.
    However if I remove the bind parameter, and execute the Execute operation instead after going to Find mode, the query is executed properly and I get expected results.
    My problem is a bit general, but are there anyone who had a similar problem like this? Im still in the process of creating a test case.
    regards,
    Anton

    Hi Frank,
    But the "ExecuteWithParams" operation provides the bind variable right? (i had the value hardcoded on the pagedef). So it must have supplied a value. I also noticed that this is happening only when if the VIewObject contains two or more Entities. If the Viewobject has only 1 entity, the ViewObject queries properly.
    Anyway Frank, I had found a fix for this. I set an InvokeAction on the pagedef that binds to the ExecuteWithParams that is invoked during page load only(!postback condition). and then I just use the Find-Execute operations instead of the Find-ExecuteWithParams operations that I used previously.
    I will try to replicate the issue again to investigate what's really going on. I just want to know if its a bug or just an expected behavior or i just made a mistake.
    regards,
    Anton

  • ViewLInk Accessor unpredictable, sometimes null, sometimes with value

    When does a ViewLink Accessor gets initialized or assigned a value.
    consider the following code:
    setAnAttribute(Object value) {
       setAtttributeInternal(ATTRIBUTEINDEX, value);
       Row row = getViewLinkeAccessorView(); 
       if(row!= null)   //sometimes this one executes the if block, sometimes not.

    hi anton.
    Maybe this is also related to your issue:
    "Difference Between View Link Attribute and View Link Instance in Data Model"
    http://radio.weblogs.com/0118231/stories/2004/11/08/differenceBetweenViewLinkAttributeAndViewLinkInstanceInDataModel.html
    success
    Jan Vervecken

  • ViewLink accessor erratic; sometimes returning with value, sometimes null

    When does a ViewLink Accessor gets initialized or assigned a value.
    consider the following code:
    setAnAttribute(Object value) {
       setAtttributeInternal(ATTRIBUTEINDEX, value);
       Row row = getViewLinkeAccessorView(); 
       if(row!= null)   //sometimes this one executes the if block, sometimes not.
    }

    When does a ViewLink Accessor gets initialized or assigned a value.
    consider the following code:
    setAnAttribute(Object value) {
       setAtttributeInternal(ATTRIBUTEINDEX, value);
       Row row = getViewLinkeAccessorView(); 
       if(row!= null)   //sometimes this one executes the if block, sometimes not.
    }

  • [Office365][Calendar]When event has alot of attachments, sometimes value of subject is null.

    I use below Office365 rest API to get events of specified calendar.
    https://outlook.office365.com/api/v1.0/me/calendars/{calendar_id}/events
    When event has alot of attachments, sometimes value of subject is null.
    Is it bugs of REST API ?

    Hi LanNT,
    Thanks for your post!  The issue may be with returning Body for the specific item you are opening.  We just tried reproing and were unable to, when accessing an event with or without attachment.  The body displays fine.  Do you see
    this behavior occur with multiple events with attachments?
    Please let me know if you have any questions or need more info.
    Thanks,
    Venkat

  • Problem with viewLink accessor

    (ADF BC, JDeveloper 10.1.3 SU5)
    Hello,
    I have a master and a detail VO and a view link between them.
    Both VOs are entity based, master primary key is DBSequence.
    ViewLink cardinality is 1 to 0..1
    Let's say ViewLink accessor name is DetailLink.
    Master is inserted by ADF Faces table. Detail is inserted in code like below:
    Code in AppModuleImpl.java:
    ... get master row from master VO custom row set iterator ...
    detail = getDetail().createAndInitRow(master);
    ... init attributes ...
    getDetail().insertRow(detail)
    System.out.println("Master has detail: " + (getMaster().getDetailLink() != null));Even though the detail row has correctly set foreign key attribute, output of this code is not always "Master has detail: true". For example for newly started embedded OC4J it is "Master has detail: false".
    When I try to debug this code, getDetailLink() works correctly.
    What's wrong?
    Rado
    Message was edited by: RadoK
    (added omitted insertRow(detail))

    Strange is that getting detail entity from association accessor is successful.
    master.getMasterEntity().getDetailFromAssocAccessor() != null is true, but
    master.getDetailFromLinkAccessor() != null is false.
    The view link source and destination attributes are association from master detail association.
    Please help me find where the problem is.
    Rado

  • ViewLink Accessors generating faulty SQL

    It seems that ViewLink Accessors use a back-to-front WHERE clause when trying to accesses the linked view.
    ViewSource has attribute SourcePK used to link to ViewDest.DestFK representing a foreign-key 1-many relationship.
    We expose the accessor for the Source - getViewSource() - which is added to ViewDestRowImpl.java. We don't expose any accessor for the Dest.
    Examining the ViewLink SQL shows:
    Source attributes: EntitySource.SourcePK
    Where: ? = EntityDest.DestFK
    Query clause: EntitySource.SourcePK = EntityDest.DestFK
    When we call getViewSource() faulty SQL causes an exception:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement:
    SELECT EntitySource.SourcePK, EntitySource.SourceDataAtt WHERE (? = EntityDest.DestFK)
    This seems like the WHERE clause for the reverse accessor (ie getViewDest() to get the DEST rows for a particular SOURCE row).
    EntityDest is not in ViewSource at all.
    Is this a bug?
    Should I be defining a reverse-link (Source and Dest reversed)? - I thought ViewLinks were bi-directional else why allow the accessor to be exposed?
    Tony.

    This seems to be the same problem as
    View links
    I've managed to get things working by
    (a) setting both views' bind types to oracle rather than '?'. [Less than ideal, because I want to run against non-Oracle database.  I'll cross that bridge later, I guess...]
    (b) removing the "Where" clause from the ViewLink's XML file (as specified in other thread). It will come back if you edit anything...
    (c) I may also have had to delete my classes directories to ensure everything was recompiled from scratch. [I've got one project dependent upon another and there's a cross-compilation bug that might have caused problems.]
    BTW: I'm on 9.0.3.1035.
    There's definitely a bug or two wrapped up in here - hopefully they have been or are being fixed.
    Something else that concerns me that I haven't had time to validate yet: is the view link accessor giving me a row from the correct view? I'm wondering whether there's a problem because I wouldn't have expected any SQL to be run when I use the (e.g.) getMasterView1 accessor; the instance of the master view linked to the detail row from which I'm calling the accessor has already been executed, so the row ought to be in the cache.
    My master-instance isn't called MasterView1 though; is it possible that an instance called MasterView1 is being executed?
    I guess I'll look into it....
    Hope that's useful to someone,
    Mike.

  • [svn:fx-trunk] 8491: * Fixed NPE caused by SkinPart functionality when metadata has a typo.

    Revision: 8491
    Author:   [email protected]
    Date:     2009-07-09 13:03:59 -0700 (Thu, 09 Jul 2009)
    Log Message:
    Fixed NPE caused by SkinPart functionality when metadata has a typo.
    tests Passed: checkintests
    Needs QA: YES
    Needs DOC: NO
    Bug fixes: SDK-22073
    API Change: NO
    Is noteworthy for integration: No
    Code-level description of changes:
      Modified evaluate(Context cx, MetaDataNode node) to check for a null
      id before comparing it.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22073
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java

  • [svn:fx-trunk] 9407: Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties .

    Revision: 9407
    Author:   [email protected]
    Date:     2009-08-19 15:11:34 -0700 (Wed, 19 Aug 2009)
    Log Message:
    Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties.  This states test exposed this.
    We should rethink if we want to clear hostFormat rather than have a hostFormatChanged flag.  If there is no hostFormat at measure then it has to be fixed because there is no line break format to check for auto-size.
    QE notes:
    Doc notes:
    Bugs: SDK-22779
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22779
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

    Oh my god, it is too long! You definitely check out types, casting and especially ODP.Net (it does everything for you)... etc. They can help you to simplify your code. I do not have enough time to copy paste it to Studio and understand and solve your issue, so I got title of your message as your main question.
    In Oracle, you can create an autonumber field by using sequences object. This is really useful when you need to create a unique number to act as a primary key.
    Basically you can create a sequence simply typing;
    CREATE SEQUENCE MY_SEQUENCE;
    now you have a sequence called "MY_SEQUENCE"... Then, I advice you select a number from sequence;
    select MY_SEQUENCE.nextval from dual;
    I said I advice actually kinda must, although it called sequence, I cannot be sequential. Do not even try to predict the value. You can be sure that it is unique number so you can use it.
    Then insert you record and use that number part of your primary key. I think that's it. Have fun.

  • A NULL interface pointer has been dereferenced

    This was an answer to someone who had this error message. I scoured the web to see what I could find. This is what I wrote to him. Does anyone else have any answers or know a work around???
    Hello,
    After doing some research on the error message, "A NULL interface pointer has been dereferenced". There may be a work around.
    Are you on a Mac? If you are, you may want to try updating CS4 and Installing the 9.0.2 update either manually or using the Adobe Update Manager. However you mentioned you exported to AVI which I know is a PC codec. Still maybe there is a adobe update for the PC as well.
    Also, if you are using video footage that uses interframe compression in any of the video placeholders (mpeg, h.264, mp4, etc), or if you have one or two mp3 or aic audio files, that may be an issue as well.
    If that's the case, convert audio files to aiff or wav, and convert the video into something that doesn't use interframe compression. Maybe Photo Jpeg, Animation, or apple pro res.
    Are you using just pictures? If so, then that info won't help either.
    If you are just changing the text and using pictures, I'm not sure why you are getting the NULL interface error.
    Answer the questions above and I'll try and help you out some more.
    Thanks,
    Cassidy Bisher
    President
    DropDrop
    http://www.dropdrop.com
    Hello once again,
    If you could review this small issue I had with one of the templates or forward this to the customer service department.
    I have been attempting to render the Grid Warp Final Main Comp for some time now. It took me about 10 minutes to swap the text and pictures out, but the rendering process has taken me over 20 hours and I still havent been able to pinpoint the issue. I have tried rendering in After Effects CS3 and After Effects CS4 both which give the same result. The rendering process will get to anywhere from 400-600 frames and it will give me a warning saying: "After Effects warning: A NULL interface pointer has been dereferenced." Right after clicking OK on this warning another window comes up saying After Effects error: Quicktime export failed (14). This happens whether I export as FLV or if I use the render queue to do avi. Please advise on a possible solution when you have a chance as this heavily delayed our project time line. I have made sure there is no missing files in the project.
    David

    I got the same exact error in Windows 7. Seems to be a video inside the composition or a part of the composition itself thats the problem. I've tried increasing both the swap space and the ram usage. Still nothing but the video does push a solid 3 gigs of ram usage. I'm using cs3 myself.

  • Error creating index (trailing null missing from STR bind value)

    I'm having the following error:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    DRG-50857: oracle error in dreii0fsh
    ORA-01480: trailing null missing from STR bind value
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
    ORA-06512: at line 1
    my script is:
    create index IDX_XML on EN_TESTE_XML(TXT_XML_CURRICULO)
    indextype is ctxsys.context;
    My Oracle is 9.0.1
    TXT_XML_CURRICULO -> XMLTYPE then
    the section group is PATH_SECTION_GROUP by default.
    thanks.
    Marlon

    If you get an OCI error when simply updating a record in PL/SQL Developer, it sounds like a PL/SQL Developer issue, although not one I've come across. You might try Allround Automations tech support. They'll need your exact versions of Oracle server, Oracle client and PL/SQL Developer.
    SQL*Plus is part of the Oracle Client software so you should have it somewhere, or you can download it free.

  • UME change password in LDAP when this has expired

    Hello,
    I've configured SAP EP 2004 SP18, ume datasource is LDAP Active Directory, with SSL, and as administrator I can reset the password.
    The problem appears when password is expired and the flag "user must change password" is marked in Active Directory and in the portal dosen't appear the form to the user to change the password.
    If you read in ADS attribute "pwdLastSet" when is "0" means that the user must change password, I'm trying to map this attribute to ume attribute "passwordchangerequired", but it's not working, also are different formats.
    The result is that in the portal login is not appearing the form to change the password when it's necesary, any ideas to map this active directory password or workaround...
    Very thanks in advance.
    Xavi.

    same problem here ........ Iv'e set the UME expire date, and this works (kind of). The problem is that if both the Active Directory AND the UME are set to expire at 30 days, when the user logs on to the network on the 30th day, he is prompted to change his network password. Then as soon as he tries to log on to the portal he is prompted again (since the portal/ume doesnt know that the password has been changed in the active directory data source).
    The user is prompted 2 times to change his password, and this is obviously confusing. And now his network password is different that what he just changed it to (since the portal / ume pw change changes the Act Dir password).
    Any suggestions?
    Thanks.

  • Delete navigation attributes - error when reactivating MPOS

    Hi Gurus
    I have deleted some navigation attributes, and when I try to reactive the MPOS I get an error - however logging has not been switched on initially so I cannot see what's wrong. I have tried to run all possible consistency check on the MPOS, none showed any error. Have you encountered somewhat the same issue?
    I hope you can help me
    normally you have some good answers
    Best regards,
    Anders Thinggaard

    Are you atleast getting any error messages on the screen when you try to activate the MPOS? How do you know you are getting an error?
    Let us know the error messages which will be helpful in diagnosing the problem.
    cheers,
    Srinidhi

  • "Attribute Change Run" process has to follow process "Execute InfoPack

    Hi All,
             i created process chain for M.D SD area. here i created start varient, then execute info package process created and when i am checking that it showing some warning message like ....
    A type "Attribute Change Run" process has to follow process "Execute InfoPackage" var.ZPAK_4B9B5FH2BTQJOBTBAWHVM5ZY2 in the chain.
    Here i can't understand what i have to do....
    Any inputs for this...........
    Thanx in Advance
    Subbu.

    hi,
    Check master data objects in both process types "Excute info package" after start varianet and in attribut echange run process type.
    Both should match or system will throw error message.
    The concept is like Attribute change run has to run when ever new data is loaded to master data attributes.
    Regards,
    Arun Thangaraj

Maybe you are looking for

  • My speaker doesn't work. how can i do to make it work?

    Hello, My name is Anh and i think i need your help. I have bought my Notebook  Probook 4530s for a haft month, at first my speaker worked well, but after that a few days, it doesn't work well as the first. Now i am in Osaka, Japan for my work, but i

  • Firefox 3.6.x closing on start

    log of 3.6.4,1 *** loading ISO8601DateUtils Assertion failed: (db==0 || sqlite3_mutex_held(db->mutex)), function sqlite3DbFree, file sqlite3.c, line 16028. Abort trap (core dumped) but 3.5.10 work corect

  • Output type processing status

    Hello All, i have an output type for a delivery. whenever a new delivery is created or modified, i need to collect that information and write it to the application server, and also need to change the processing status of output type from yellow to gr

  • What is ORACLE Procedure Builder

    Hi, What is "Oracle Procudeure Builder" and where can I download it? Thanks, Alan

  • FaceTime snapshot photo and video

    Is it possible to take a photo snapshop while using a FaceTime call of that person? How about recording video conversations of FaceTime conversations? Can I hold both the sleep/wake button and the home button at the same time to take a screen snapsho