Skip to Content
0
Former Member
Jan 11, 2012 at 02:30 AM

Webdyn and EJB Relational Entity Bean Problem

47 Views

Hello

i've been work with this problem for a few days.

the problem is:

Generate Two Relational Table with Entity in EJB

1.Company Table

2.User Table

and Generate Session Bean CRUD Template

User

and Create a Webdyn Relate With Bean...(Everything is Drag and Drop with out coding)

add excute function for the Bean in wdInit() in Component Controller

and i got this Error

The initial exception that caused the request to fail, was: 


com.sap.tc.webdynpro.progmodel.context.ContextException: NodeElement(.New1Comp.Request_CsrUserFacadeLocal_findAllCsrCompany): model node element cannot be created without a model instance 
    at com.sap.tc.webdynpro.progmodel.context.ModelNodeElement.<init>(ModelNodeElement.java:63)
    at com.csr2.csr2.ui.wd.wd.comp.new1comp.wdp.IPublicNew1Comp$IRequest_CsrUserFacadeLocal_findAllCsrCompanyElement.<init>(IPublicNew1Comp.java:349)
    at com.csr2.csr2.ui.wd.wd.comp.new1comp.wdp.IPublicNew1Comp$IContextNode.doCreateElement(IPublicNew1Comp.java:55)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.createElement(NodeInfo.java:1269)
    at com.sap.tc.webdynpro.progmodel.context.Node.createElementInternal(Node.java:1104)
    ... 60 more

See full exception chain for details. 

the Important thing is the two table are Relate for One to Many

and when i generate the Entity also reted two entity with One to Many

is there anything tutorial for doing this associate with Related Entity..?