1 View linked to 2 CompCont: NullPointer Exception

Hi,
Here is the architecture of my app :
MainView --> CompContA --> ModelA (RFC function A)
........|
........|---> IntCompB --> CompContB --> Model B (RFC function B)
And here is the content of the MainView :
AdviceNumber : [
Z2_I_Rechercher_Avis_Input.AdviceNumber) | RefreshButton1
UserId : [Z2_I_Rechercher_Bottin_Input.UserId) | RefreshButton2
Name : [Z2_I_Rechercher_Avis_Input.Output.It_Infos_Bottin.Name) 
Now, my application works when I populate an AdviceNumber and press the RefreshButton1.  At the return, the name field is refreshed and I use some Java code to move the UserId that my function returned to the UserId of the screen. This works well.
Then if I change the value of the UserId in the screen and press the RefreshButton2, the second function returns me another name, and I use some Java code to move this name into the Name field of the screen. This works well too.
The problem is that I can't use the refreshButton2 first!  I get a NullPointer exception.
And I know why, it's because the « Output » structure of my Z2_I_Rechercher_Avis_Input is not initialized (since the refreshButton1 has not been used yet).
But I can't find the right way to code it.
Can you help me, thanks!
Message was edited by:
        Emanuel Champagne

I want the user to click on the button he wants.
I just need to know how to initialize the Output.Struc1 when the user decides to click on the RefreshButton2 First.
It's the line in bold that give me the error (but that line works well when the RefreshButton1 is used first!)
  public void onActionRafraichirAvis(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionRafraichirAvis(ServerEvent)
     //$$begin ActionButton(-775562010)
     wdThis.wdGetAvisCompController().executeZ2_I_Rechercher_Avis_Input();
     //$$end
     // At the return, we need to refresh the values of the screen with the ones returned by the function.
     // Access to the structure showed on the screen
IIt_Infos_BottinElement AvisInfosBottinEl = wdContext
                                                              .nodeIt_Infos_Bottin()
                                                              .currentIt_Infos_BottinElement();
    // Access to the structure received by the RFC function
    IIt_Z2I053TElement BottinEl = wdContext
                                                         .nodeIt_Z2I053T()
                                                         .currentIt_Z2I053TElement();
     <b>AvisInfosBottinEl.setName(BottinEl.getName());</b>
Message was edited by:
        Emanuel Champagne

Similar Messages

  • Add/remove view links at runtime !?

    Hi,
    how can i add/remove a view link to an already published RowSet and make the RowSet adapt to the new condition ??? (without loosing it's own linked Details)
    The scenario: I have lot's of details which are linked to the same master. I remove the details from the session (sessionInfo.removeRowSet) when I don't need them to keep the active number of views in the session as small as possible ! When removing the Details from the Session I also have to remove their links to the master (to avoid exceptions). Further I want to establish the links again when the detail is added to the session again !?
    I add links before publishing:
    ViewLinkInfo view_12aLink = new ViewLinkInfo(master, "package1.LinkDef");
    view_12a.addMasterLink(view_12aLink);
    I can remove links after publishing with:
    view_12aLink.removeViewLink(sessionInfo1.getApplicationModule());
    but how to establish the link again ?:
    ApplicationModule appMod = ....;
    ViewObject vo = appMod.findViewObject(view_12a.getQueryInfo().getName());
    view_12aLink.createViewLink(appMod,vo);
    doesn't work !
    if (view_12a.isOpen())
    view_12a.close();
    view_12a.addMasterLink(view_12aLink);
    works !, but all the links where view_12a is master are broken !!!!
    So what to Do ????
    Thanks for every answer !
    null

    Your results are as expected per the imlementation. Basically you've established (two) ViewLinks between two sets of two instances of VOs.
    Now you try and get an accessor to return a set of details. You need to establish a link between that detail set and it's details to use the accessor on the second detail to get the desired results. Basically you've to establish the chaining between appropriate instances of VOs and not just the outer VOs or VO members of your AM.

  • Bug in bc4j?, view links at runtime, multi table relationships, accessor name

    The following seems like a bug in the business components framework
    to me:
    To make things simple, I will use view objects aV, bV, cV,
    corresponding rows aR, bR, cR and row iterators aI (not used though),
    bI, cI.
    I create two view links from aV to bV and from bV to cV at runtime,
    with the accessor names "Bs" and "Cs".
    ViewLink a2b = createViewLinkBetweenViewObjects(..., "Bs", ...);
    ViewLink b2c = createViewLinkBetweenViewObjects(..., "Cs", ...);
    First of all this code works perfectly fine:
    ViewObject aV = a2b.getSource();
    ViewObject bV = a2b.getDestination();
    ViewObject cV = b2c.getDestination();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    while(bV.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    while(cV.hasNext())
    Row cR=cI.next();
    System.err.println(" cR");
    Using the accessor name "Bs" at the first level is ok, too:
    ViewObject aV = a2b.getSource();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    RowIterator bI=(RowIterator)aR.getAttribute("Bs");
    while(bI.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    HOWEVER, USING THE ACCESSOR "Cs" AT THE SECOND LEVEL OF THE MULTITABLE
    RELATIONSHIP IN THE FOLLOWING CODE, GIVES ME AN EXCEPTION
    oracle.jbo.NoDefException: JBO-25002: Definition Cs of type Attribute
    not found. THE SEEMS LEGAL USAGE OF THE ACCESSOR "Cs" TOO ME THOUGH,
    THEREFORE MY SUSPICION OF A BUG.
    ViewObject aV = a2b.getSource();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    RowIterator bI=(RowIterator)aR.getAttribute("Bs");
    while(bI.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    RowIterator cI=(RowIterator)bR.getAttribute("Cs");
    while(cI.hasNext())
    Row cR=cI.next();
    System.err.println(" cR");
    (By the way, could make your window for filling in the message a little bit wider,
    making it easier to cope with the line breaks).
    Feedback is appreciated.
    Andreas Reuleaux
    Klopotek & Partner
    [email protected]
    null

    Your results are as expected per the imlementation. Basically you've established (two) ViewLinks between two sets of two instances of VOs.
    Now you try and get an accessor to return a set of details. You need to establish a link between that detail set and it's details to use the accessor on the second detail to get the desired results. Basically you've to establish the chaining between appropriate instances of VOs and not just the outer VOs or VO members of your AM.

  • Error when Setting value to Bind variable in View Link used in HGrid

    Hi
    I have requirement to pass profile id as bind variable, I have created a VO based on below Query.
    select 'N' Is_Selected, 'N' Is_Already_Selected, 'N' Is_Selected_Copy, a.*
    from XXPA_STATE_CONST_DTLS_V a, xxpa_state_const_dtls b
    where a.child_id = b.child_id(+)
    and b.profile_id(+) = :1
    View Link Query that is being generated is
    SELECT * FROM (select 'N' Is_Selected, 'N' Is_Already_Selected, 'N' Is_Selected_Copy, a.*
    from XXPA_STATE_CONST_DTLS_V a, xxpa_state_const_dtls b
    where a.child_id = b.child_id(+)
    and b.profile_id(+) = :1) QRSLT WHERE PARENT_ID = :Bind_ChildId
    it Shows Errors as
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    could anyone tell what could be the wrong. Do we need to set bind variable in view link Explicitly? or any other alternative.
    Its very Urgent.
    Regards
    Vimal

    Hi,
    I have faced similar problem some time ago. I could not find any solution except removing bind parameters in where clause. I tried to change binding style but it also didn't work. I think the problem is caused by view link's where clause.

  • Java.lang.NullPointer Exception in File-RFC-File wtihout BPM scenario

    Hi All,
    I have implemented scenario File - RFC - File without BPM in PI7.1 according to below link by bhavesh
    [File - RFC - File without a BPM - Possible from SP 19.;
    but I am getting error java.lang.NullPointer Exception  in Audit log of sender communication channel when it enters in ResponseOnewayBean.
    I had implemented the same in PI 7.0 but there it was working fine.
    Is there any limitations on the use of the above beans in PI7.1 as I could see two more threads on the same unanswered yet.
    Please help me in resolving as it is priority task for me
    Thanks,
    Amit

    Sometime back I saved this SAP Note 1261159 for this error. Not sure if it is still valid. Try to get it implemented.
    Regards,
    Prateek

  • Create dynamic view link

    my problem is
    I build the first view link by using createViewObjectFromQueryStmt method on my application module instance ,then I build the second view link by using createViewObjectFromQueryStmt method on my application module instance,now when I use myAppModule.createViewLink(),he give me an exception about the definition of the viewLink.
    please can you explain the first parameter of the method createViewLink() and how I can get it.
    thanks in advance

    In that case, the first parameter is the name of the ViewLink which you can freely assign. Later you can retrieve the VL from the AM by calling findViewLink( name ).
    But if you create your VOs dynamically from a statement, then you probably need to use createViewLinkBetweenViewObjects() since you don't have a prepared VL definition. Haven't done it myself yet, but it should work.
    Like explained here:
    BC4J Master-Detail-Detail
    Sascha

  • Create View Link Definitions - Problem

    Hi,
    I was trying to define a relationship between two view objects using the view link icon, but I always get this error messages:
    BME-99004:A java runtime exception has occurred,
    BME-02038:Exception thrown during validation.
    Can anyone help me? It's very important!!
    Thanks
    null

    Ok, I'm not Lisa but do you still want my help? ;o)
    We need to go back to basics for this and also provide more information.
    I assume you are using ADF Business Compoments,
    What version - I'll assume 10.1.3
    How are you creating the link; what are you actually doing when yuo get this error - are you running.
    Here is what I would do - create two default EOs EMP and DEPT and create two default VOs on them, drag the VOs onto a Business Components diagram and add a link to it - does that work - if so, what is different. If that doesn't work then we have something to go on.
    Regards
    Grant Ronald
    Oracle Product Management

  • Error with view link and ADF table Tree

    Hello
    ( Note: View objects are created based on static data but not from database tables)
    I created two view objects "SuiteViewObject" and "FamilyViewObject" which are based on static data( stored in collection) but not on database entity. A veiw link "SuiteFamilyViewLink" is created from the above two view objects. An ADFTreeTable is created from the above view objects and view link. When run the jspx page containing ADFTreeTable, following error is occured in the browser.
    JBO-30003: The application pool (staticviewobjects.staticappLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26016: Cannot set user query to view "FamilyViewObj2" because it is a destination in a view link
    Any help on the above error message.?
    Thanks in Advance
    Kristi
    Bangalore
    Message was edited by:
    user576892

    Hello
    The above error is coming becuase view link's SQL query expects tables. But in my case I dont have tables, view objects are created from static data source(collection).
    How to create a view link from view objects which are created based on static data source(collection)?

  • View links

    Hi,
    I have defined a view link between 2 entity objects, based on the primary key of the source(master), and the foreign key of the destination(details) which have a one-many relationship. I am trying to traverse from a destination row to the master row by using the getXXXview() on the detail row.
    Any ideas on the following stack trace of the exception that is thrown:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT PerEo.PERIDN, PerEo.NATOFPER, PerEo.PERSTAT, PerEo.PERSTATCHGD, PerEo.PERXMTSTAT, PerEo.NATNPOPGRPCD, PerEo.POSTADDR1, PerEo.POSTADDR2, PerEo.POSTADDR3, PerEo.POSTADDR4, PerEo.POSTADDR5, PerEo.POSTCDPOST, PerEo.POSTADDRCORIND, PerEo.ADDRCHGD, PerEo.STREETADDR1, PerEo.STREETADDR2, PerEo.STREETADDR3, PerEo.STREETADDR4, PerEo.POSTCDSTREET, PerEo.DCEEADDR, PerEo.BUSORSURNAME, PerEo.HOLDCMPREGTN, PerEo.TRADENAME, PerEo.PERIDNPROX, PerEo.PERIDNREP, PerEo.NOFBRANCHES, PerEo.INITIALS, PerEo.AREACD, PerEo.PERMOVEIND, PerEo.PERSUSPECTIND, PerEo.DTOWN, PerEo.TIMESTAMP, PerEo.RECSTAT FROM NATIS.PER PerEo WHERE (? = AliasEo.PERIDN)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:607)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:2600)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:521)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2197)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1141)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2240)
         at oracle.jbo.server.AssociationDefImpl.get(AssociationDefImpl.java:287)
         at oracle.jbo.server.ViewAttributeDefImpl.get(ViewAttributeDefImpl.java:302)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:800)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:570)
         at enatis.per.AliasViewRowImpl.getPerView(AliasViewRowImpl.java:297)
         at enatis.per.PerIdSmImpl.doBrGetPerRow(PerIdSmImpl.java:827)
         at enatis.per.PerIdSmImpl.isValidIdDocN(PerIdSmImpl.java:372)
         at enatis.per.PerIdSmImpl.doBrPerIdVoOnSet(PerIdSmImpl.java:265)
         at enatis.per.PerIdSmImpl.setPerIdVo(PerIdSmImpl.java:226)
         at enatis.per.PerChangeParticularsTmImpl.setPerIdVo(PerChangeParticularsTmImpl.java:96)
         at enatis.per.ui.actions.PerIdPost.execute(PerIdPost.java:62)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:536)
    ## Detail 0 ##
    java.sql.SQLException: ORA-00904: "ALIASEO"."PERIDN": invalid identifier
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:241)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1477)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:888)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2267)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2525)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:452)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:382)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:549)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:2600)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:521)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2197)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1141)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2240)
         at oracle.jbo.server.AssociationDefImpl.get(AssociationDefImpl.java:287)
         at oracle.jbo.server.ViewAttributeDefImpl.get(ViewAttributeDefImpl.java:302)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:800)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:570)
         at enatis.per.AliasViewRowImpl.getPerView(AliasViewRowImpl.java:297)
         at enatis.per.PerIdSmImpl.doBrGetPerRow(PerIdSmImpl.java:827)
         at enatis.per.PerIdSmImpl.isValidIdDocN(PerIdSmImpl.java:372)
         at enatis.per.PerIdSmImpl.doBrPerIdVoOnSet(PerIdSmImpl.java:265)
         at enatis.per.PerIdSmImpl.setPerIdVo(PerIdSmImpl.java:226)
         at enatis.per.PerChangeParticularsTmImpl.setPerIdVo(PerChangeParticularsTmImpl.java:96)
         at enatis.per.ui.actions.PerIdPost.execute(PerIdPost.java:62)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:536)

    Thanks,
    (I removed irrelevent attributes on the following XML files.)
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <Entity
    Name="PerEo"
    DBObjectType="table"
    DBObjectName="NATIS.PER"
    AliasName="PerEo"
    BindingStyle="Oracle"
    UseGlueCode="false"
    CodeGenFlag="4"
    RowClass="enatis.per.PerEoImpl" >
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.10.7" />
    <AttrArray Name="_publishEvents">
    </AttrArray>
    </DesignTime>
    <Attribute
    Name="PerIdN"
    IsNotNull="true"
    Precision="12"
    Type="java.lang.String"
    ColumnName="PERIDN"
    ColumnType="CHAR"
    SQLType="VARCHAR"
    TableName="NATIS.PER"
    PrimaryKey="true"
    RetrievedOnUpdate="true"
    RetrievedOnInsert="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="12" />
    </DesignTime>
    </Attribute>
    <ViewLinkAccessor
    Name="AliasView"
    ViewLink="enatis.per.PerAliasVl"
    ViewLinkEnd="enatis.per.PerAliasVl.AliasView"
    ViewLinkOtherEnd="enatis.per.PerAliasVl.PerView"
    Type="PerViewRowImpl"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <Key
    Name="SysC006164" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.PerEo.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C006164" />
    <Attr Name="_checkCondition" Value="&#34;PERIDN&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    </DesignTime>
    </Key>
    <Key
    Name="PereoPrimaryKey" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.PerEo.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="PEREO_PRIMARY_KEY" />
    <Attr Name="_isPrimary" Value="true" />
    </DesignTime>
    </Key>
    </Entity>
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <Entity
    Name="AliasEo"
    DBObjectType="table"
    DBObjectName="NATIS.ALIAS"
    AliasName="AliasEo"
    BindingStyle="Oracle"
    UseGlueCode="false"
    CodeGenFlag="4"
    RowClass="enatis.per.AliasEoImpl" >
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.10.7" />
    <AttrArray Name="_publishEvents">
    </AttrArray>
    </DesignTime>
    <Attribute
    Name="IdDocTypeCd"
    IsNotNull="true"
    Precision="2"
    Type="java.lang.String"
    ColumnName="IDDOCTYPECD"
    ColumnType="CHAR"
    SQLType="VARCHAR"
    TableName="NATIS.ALIAS"
    PrimaryKey="true"
    RetrievedOnUpdate="true"
    RetrievedOnInsert="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="2" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="IdDocN"
    IsNotNull="true"
    Precision="13"
    Type="java.lang.String"
    ColumnName="IDDOCN"
    ColumnType="CHAR"
    SQLType="VARCHAR"
    TableName="NATIS.ALIAS"
    PrimaryKey="true"
    RetrievedOnUpdate="true"
    RetrievedOnInsert="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="13" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="PerIdN"
    IsNotNull="true"
    Precision="12"
    Type="java.lang.String"
    ColumnName="PERIDN"
    ColumnType="CHAR"
    SQLType="VARCHAR"
    TableName="NATIS.ALIAS"
    RetrievedOnUpdate="true"
    RetrievedOnInsert="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="12" />
    </DesignTime>
    </Attribute>
    <ViewLinkAccessor
    Name="PerView"
    ViewLink="enatis.per.PerAliasVl"
    ViewLinkEnd="enatis.per.PerAliasVl.PerView"
    ViewLinkOtherEnd="enatis.per.PerAliasVl.AliasView"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <Key
    Name="SysC005807" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasEo.IdDocTypeCd" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C005807" />
    <Attr Name="_checkCondition" Value="&#34;IDDOCTYPECD&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    </DesignTime>
    </Key>
    <Key
    Name="SysC005808" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasEo.IdDocN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C005808" />
    <Attr Name="_checkCondition" Value="&#34;IDDOCN&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    </DesignTime>
    </Key>
    <Key
    Name="SysC005809" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasEo.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C005809" />
    <Attr Name="_checkCondition" Value="&#34;PERIDN&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    </DesignTime>
    </Key>
    <Key
    Name="AliaseoPrimaryKey" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasEo.IdDocTypeCd" />
    <Item Value="enatis.per.AliasEo.IdDocN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="ALIASEO_PRIMARY_KEY" />
    <Attr Name="_isPrimary" Value="true" />
    </DesignTime>
    </Key>
    </Entity>
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE ViewLink SYSTEM "jbo_03_01.dtd">
    <ViewLink
    Name="PerAliasVl"
    Where="? = AliasEo.PERIDN" >
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.10.7" />
    </DesignTime>
    <ViewLinkDefEnd
    Name="PerView"
    Cardinality="1"
    Owner="enatis.per.PerView"
    Source="true" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.PerView.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_minCardinality" Value="1" />
    <Attr Name="_isUpdateable" Value="true" />
    <Attr Name="_finderName" Value="PerView" />
    <Attr Name="_accessor" Value="true" />
    <Attr Name="_entityAccessor" Value="true" />
    </DesignTime>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="AliasView"
    Cardinality="-1"
    Owner="enatis.per.AliasView" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasView.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_isUpdateable" Value="true" />
    <Attr Name="_finderName" Value="AliasView" />
    <Attr Name="_accessor" Value="true" />
    <Attr Name="_entityAccessor" Value="true" />
    </DesignTime>
    </ViewLinkDefEnd>
    </ViewLink>
    The code for the create etc has been removed but it looked like this.
    ViewLinkImpl perAliasVl = (ViewLinkImpl) getPerAliasVl1();
    PerViewImpl perView = (PerViewImpl) perAliasVl.getSource();
    AliasViewImpl aliasView = (AliasViewImpl) perAliasVl.getDestination();
    PerViewRowImpl perRow = (PerViewRowImpl) perView.createRow();
    AliasViewRowImpl aliasRow = (AliasViewRowImpl) aliasView.createRow();
    perRow.setPerIdN("new key");
    perView.insertRow(perRow);
    aliasRow.setIdDocTypeCd("1");
    aliasRow.setIdDocN("new doc");
    aliasView.insertRow(aliasRow);
    AttributeValException: AliasEo.PerIdN.....

  • JDev11.1.1.4 IDE error:  not displaying view link in  service's Data Model

    Greetings,
    I was trying to update master-detail relationship in the Data Model tab of the Service definition tab.
    Got an 'unexpected error happened' and Jdeveloper shut down.
    After I re-opened it, I do not see my adf view links under the packages in the Available View Objects multiselect in the Data Model tab of the visual editor for service definition file.
    Also there was an uncaught exception thrown:
    'Performing action Clean All [ from oracle.ide.......CodeEditor]
    Performing action Optn ... [  from  from oracle.ide.......CodeEditor]
    Uncaught Exception
    IllligalArgumentException: component not found in tabbed pane......
    Also in the message log:
    Business Components: Load error.
    Any help is appreciated.
    Thanks,

    Click on the Proxy Service in your ALSB project to go to Proxy Service Configuration page. On this page, you will see an endpoint URI, something like /myservice. To get the wsdl in browser, use the URL like http://mymachine:7001/myservice?wsdl

  • ArrayList nullpointer exception

    I'm creating a game called bubblebreaker in Java, with the principle off model, view and controller classes.
    In my model class I create a list of bubble objects. In the view I make these bubbles visible and in the controller class I react on external events (mouseclicks, ...)
    My design is almost finished but I'm having some troubles removing my selected bubbles.
    When I have selected my bubbles I want to remove them with another click on that bubble.
    In the method deleteBub(Bubble delete) I will use the "set" method from the arraylist and make the bubble object "null":
    protected void deleteBub(Bubble delete) {
            bubbleList.set(delete.getNumber(), null);
    }This is the error:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    +     at Model.deleteBub(Model.java:69)+
    It also points to this method:
    In the view class I check if the object is null:
    protected void drawBub(Bubble bubb, Graphics g) {
                if(bubb!=null) {
                    g.setColor(bubb.getColor());
                    g.fillOval(20*bubb.getX(), 20*bubb.getY(), 20*model.getRadius(), 20*model.getRadius());
                else System.out.println(bubb.getNumber() + " is null");
    }There are no compilation errors. I just get a nullpointer exception when I click the second time on a bubble, so when it should be made null.
    Edited by: Lektroluv on May 5, 2009 2:22 AM

    I think I'm not on the same level as you.
    The set command replaces the original bubble object with null, wright?
    So for example the list changes from this:
    new Bubble(.....)
    new Bubble(.....)
    new Bubble(.....)
    new Bubble(.....)
    ...to this:
    new Bubble(.....)
    null
    new Bubble(.....)
    null
    new Bubble(.....)
    new Bubble(.....)
    ...The second list isn't good, because it has "nulls" in it?!?!? --> nullpointer exception?
    What I've done next is in stead off replacing it with null, replacing it with new Bubble(BLACK ...)
    new Bubble(.....)
    new Bubble(BLACK ...)
    new Bubble(.....)
    new Bubble(BLACK ...)
    new Bubble(.....)
    new Bubble(.....)
    ...Edited by: Lektroluv on May 5, 2009 8:37 AM
    Edited by: Lektroluv on May 5, 2009 8:37 AM

  • Use View Object with Alternative Data Sources in View Link

    In my case, I created a view object based on alternative data source (not with SQL query). I have setQuery(null) in the override create() function for this View Object. When I use this View Object at the destination end of the View Link, the setQuery(null) will raise Jbo-26016 exception (You cannot set customer query (calling setQuery()) on a view object if it is the detail view object in a master detail view link.) which does not allow me to do that. I looked Avrom's Framework for Database API-Based ADF BC, in which he override the DBTransaction and CallableStatement in order to intercept the default query clause set by the View Link. I'd like to see if there is any alternative ways to achieve my objective?

    Just following up what I found so far. I'm trying to use customized View Object based on alternative data source at the destination end of View Link with ADF 10.1.3.
    1. For the View Object at the destination end of View Link, I can not call setQuery() which will raise Jbo-26016 exception.
    2. I can omit the setQuery(null) call in my customized ViewObjectImpl, and as long as there is no SQL statement in the View Definition XML, it won't cause problem when calling the executeQueryForCollection() of the super class.
    3. The override executeQueryForCollection() must call the super.executeQueryForCollection() in order to get appropriate result (I tried to skip the call and it does not give back any results)
    4. The funny thing is, when I make getQuery() call in my customized ViewObjectImpl (I'm just trying to double check if the Query object is clean or not), the query object is set to "SELECT FROM" following the getQuery() call, and which causes the exceptions when I call super.exeuteQueryForCollection(). I found out later from the Javadoc API which is implemented in that way.
    So I guess my case is resolved by not making specific call to setQuery(null).

  • JUTreeNodeBinding question (nullpointer exception in getAttribute)

    Hi,
    I've got a question about a piece of code. I've used a JTree which displays a recursive tree, which is working fine. I want to do something when a node is selected. I have the following piece of code:
    jTree1.addTreeSelectionListener(
       new TreeSelectionListener()
         public void valueChanged(TreeSelectionEvent e)
           DefaultMutableTreeNode node = (DefaultMutableTreeNode)jTree1.getLastSelectedPathComponent();
           if (node != null)
             JUTreeNodeBinding tnb = (JUTreeNodeBinding)(node.getUserObject());
             if (tnb!=null)
       });this code is taken from some example I've read on this forum and slightly modified (I can't find the original posting).
    Now, according to the sourcecompletion feature, tnb has methods like getAttribute, getAttributeDef. But when I call one of these methods on tnb (where the '...' is in the example above), I always get a nullpointer exception , somewhere inside the getAttribute call. (the variable 'tnb' itself is not null)
    Why wouldn't this work? Shouldn't the getAttribute calls give me access to the attributes of the row from the view that corresponds the selected element?
    The logwindow shows this for the nullpointer exception:
    Exception occurred during event dispatching:
    java.lang.NullPointerException
         oracle.jbo.AttributeDef[] oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDefs()
              JUCtrlValueBinding.java:173
         oracle.jbo.AttributeDef oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(int)
              JUCtrlValueBinding.java:239
         void mypackage.PMyData$1.valueChanged(javax.swing.event.TreeSelectionEvent)
              PMyData.java:332
         void javax.swing.JTree.fireValueChanged(javax.swing.event.TreeSelectionEvent)
              JTree.java:2269
         void javax.swing.JTree$TreeSelectionRedirector.valueChanged(javax.swing.event.TreeSelectionEvent)
              JTree.java:2575
         void javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(javax.swing.event.TreeSelectionEvent)
              DefaultTreeSelectionModel.java:612
         void javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(java.util.Vector, javax.swing.tree.TreePath)
              DefaultTreeSelectionModel.java:1006
         void javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(javax.swing.tree.TreePath[])
              DefaultTreeSelectionModel.java:288
         void javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(javax.swing.tree.TreePath)
              DefaultTreeSelectionModel.java:171
         void javax.swing.JTree.setSelectionPath(javax.swing.tree.TreePath)
              JTree.java:1088
         void javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(javax.swing.tree.TreePath, java.awt.event.MouseEvent)
              BasicTreeUI.java:2117
         void javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed(java.awt.event.MouseEvent)
              BasicTreeUI.java:2683
         void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
              Component.java:3712
         void java.awt.Component.processEvent(java.awt.AWTEvent)
              Component.java:3544
         void java.awt.Container.processEvent(java.awt.AWTEvent)
              Container.java:1164
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
              Component.java:2593
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1213
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
              Container.java:2451
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
              Container.java:2210
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
              Container.java:2125
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1200
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
              Window.java:926
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:339
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85

    Bit of a coincidence.. I was just running into the same problem. But if you check getAttributeDefs(), you'll see that there only is one attribute available, namely the one that is being displayed in the tree. (the 'description'-attribute)
    Or at least, that's the case with my sitation.
    I would love to be able to address all available attributes, eg. foreign key fields, but that doesn't seem possible.
    At the moment, I'm using the following work-around, which of course is far from ideal:
    Key key = tnb.getRowKey();
    ViewObject vo = panelBinding.getApplicationModule().findViewObject("SomeVO");
    Row[] rows = vo.findByKey(key);
    if (rows == null || rows.length != 1)
      System.out.println("Notice: not 1 rows");
      return;
    Row row = rows[0];
    // now you can fetch all the attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • NullPointer Exception in  SetCharacterEncodingFilter

    Hi All..!
    Can any one help me out in Fixing the Nullpointer Exception raised from SetCharacterEncodingFilter class which was taken by me from the Tomact ServletExamples. What should be the reason for this exception ? and how to fix this problem. Thanks in Advance to all the Gurus..!
    Please find the Stacktrace of the generated Exception
    java.lang.NullPointerException
    at org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:65)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at MalikJspPackages.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:595)
    NotifyUtil::java.net.SocketException: Software caused connection abort: recv failed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:606)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:571)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:928)
    at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:248)

    Look up the createImage(int width, int height) method in the Component api abd follow the link to its description in the Method Detail section. Note that this method will return null if the component is not displayable. Try placing your inspection code after the call to setVisible.

  • Advance Table in advance table via view link

    Hi All,
    I have implemented advance table in advance table to show details region data by creating View Link between master and child View Object.
    I have followed all the steps mention in following link
    http://oracleanil.blogspot.com/2010/06/advanced-table-in-advanced-table-via.html
    Now when I am using child VO in details table region it is giving me null pointer exception.
    Please Help.
    Regards,SHD

    Any Clue?

Maybe you are looking for

  • A600 setup with Verizon TV

    I wanted to start this subject to see if any end users have gone from Direct TV to Verizon Cable TV successfully. I had a customer that was sold the Motorola QIP2500-3 Set Top Terminal. After going through Windows media center setup the customer was

  • HT1918 Apple ID Account content now unretrievable

    I had an Apple ID account that got shut down when I wrongly answered security questions.  I decided to open a new account and start fresh, but didn't realize all the songs,apps, and store credit I had from the old account would not transfer to my new

  • My iPod touch is not recognised by iTunes

    Really frustrating now that Apple make you buy all this needless software which is not necessary with any other external drives or sticks. Then it doesn't work and the solution is not to be found immediately on the net. Is this what I can expect in t

  • How do I merge a contacts archive with the contacts on my mac?

    I have a Mac Mini.  I have my own Contacts in Version 8.0 (1371.2).  I want to add Contacts that I received from someone else in the form of a Contacts Archive (.abbu) to my existing contacts.  When I do this: Import contacts from an archive file Imp

  • PReqs with sales order stock couldn't be adpoted by PO with acc. assignmnt

    I use MD50 to generate PReqs for MTO, these PReqs couldn't be adpoted by ME21N with message 06251: Requisition &, item & , assigned to other order account but if I use ME21, it's ok. I find the following notes. But I don't understand in my case I don