Hi,

Did you have any problem with weblogic 8.1 and CMR using the code generated by
XDoclet. Here I've got the following problem : 
If I've got a one-to-many relation, and I want in a method to save the
information on the father and on some sons, there is the following exception :

<<[WEBDEA] 13:44:33,161 -53- ERROR [StockBD] RemoteException
java.rmi.RemoteException: EJB Exception: ; nested exception is:
        javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested 
exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception:; 
nested exception is: java.sql.SQLException: ORA-02291: integrity
 constraint (PF_TFSES_DEV.FK_BIEN_AUT_BIEN_AUTO_BIEN) violated - parent key 
not found

        at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException
(EJBRuntimeUtils.java:103)
        at weblogic.ejb20.internal.BaseEJBHome.handleSystemException
(BaseEJBHome.java:304)
        at weblogic.ejb20.internal.BaseEJBObject.postInvoke
(BaseEJBObject.java:253)
        at 
com.fimasys.finance.profinance.front.ejb.bso.webdealer.dealer.stock.StockFacade
_shuy8g_EOImpl.saveAutoVO(StockFacade_shuy8g_EOImpl.java:1321)
        at 
com.fimasys.finance.profinance.front.ejb.bd.webdealer.dealer.StockBD.saveAutoVO
(StockBD.java:198)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.stock.GoodDet
ailSubController.processEditTask(GoodDetailSubController.java:250)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.stock.GoodDet
ailSubController.process(GoodDetailSubController.java:113)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.DealerControl
ler.process(DealerController.java:171)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.WebdealerDeal
erMainController.process(WebdealerDealerMainController.java:118)
        at 
com.fimasys.finance.profinance.front.web.portal.control.MainServlet.doControlle
rRedirection(MainServlet.java:325)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.doIt
(AbstractMainServlet.java:814)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.doPost
(AbstractMainServlet.java:949)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.service
(AbstractMainServlet.java:956)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:402)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:305)
        at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
(WebAppServletContext.java:6350)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:317)
        at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:118)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3635)
        at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2585)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; 
nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB 
Exception:; nested exception is: java.sql.SQLException: ORA-02291: integr
ity constraint (PF_TFSES_DEV.FK_BIEN_AUT_BIEN_AUTO_BIEN) violated - parent key 
not found

        at 
weblogic.ejb20.internal.EJBRuntimeUtils.throwTransactionRolledbackLocal
(EJBRuntimeUtils.java:248)
        at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException
(BaseEJBLocalHome.java:247)
        at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke
(BaseEJBLocalObject.java:327)
        at 
com.fimasys.finance.profinance.front.ejb.bpo.good.GoodBPO_diubow_ELOImpl.saveAu
toVO(GoodBPO_diubow_ELOImpl.java:969)
        at 
com.fimasys.finance.profinance.front.ejb.bso.webdealer.dealer.stock.StockFacade
Bean.saveAutoVO(StockFacadeBean.java:231)
        at 
com.fimasys.finance.profinance.front.ejb.bso.webdealer.dealer.stock.StockFacade
_shuy8g_EOImpl.saveAutoVO(StockFacade_shuy8g_EOImpl.java:1311)
        ... 21 more
[WEBDEA] 13:44:33,193 -45- INFO  [StockBD] |   |   |   |   |   |   <---
com.fimasys.finance.profinance.front.ejb.bd.webdealer.dealer.StockBD:saveAutoVO
[WEBDEA] 13:44:33,193 -53- ERROR [DealerController] FMSApplicationException : 
SYS_02
java.rmi.RemoteException: EJB Exception: ; nested exception is:
        javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested 
exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception:; 
nested exception is: java.sql.SQLException: ORA-02291: integrity
 constraint (PF_TFSES_DEV.FK_BIEN_AUT_BIEN_AUTO_BIEN) violated - parent key 
not found

        at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException
(EJBRuntimeUtils.java:103)
        at weblogic.ejb20.internal.BaseEJBHome.handleSystemException
(BaseEJBHome.java:304)
        at weblogic.ejb20.internal.BaseEJBObject.postInvoke
(BaseEJBObject.java:253)
        at 
com.fimasys.finance.profinance.front.ejb.bso.webdealer.dealer.stock.StockFacade
_shuy8g_EOImpl.saveAutoVO(StockFacade_shuy8g_EOImpl.java:1321)
        at 
com.fimasys.finance.profinance.front.ejb.bd.webdealer.dealer.StockBD.saveAutoVO
(StockBD.java:198)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.stock.GoodDet
ailSubController.processEditTask(GoodDetailSubController.java:250)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.stock.GoodDet
ailSubController.process(GoodDetailSubController.java:113)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.DealerControl
ler.process(DealerController.java:171)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.WebdealerDeal
erMainController.process(WebdealerDealerMainController.java:118)
        at 
com.fimasys.finance.profinance.front.web.portal.control.MainServlet.doControlle
rRedirection(MainServlet.java:325)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.doIt
(AbstractMainServlet.java:814)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.doPost
(AbstractMainServlet.java:949)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.service
(AbstractMainServlet.java:956)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:402)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:305)
        at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
(WebAppServletContext.java:6350)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:317)
        at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:118)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3635)
        at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2585)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; 
nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB 
Exception:; nested exception is: java.sql.SQLException: ORA-02291: integr
ity constraint (PF_TFSES_DEV.FK_BIEN_AUT_BIEN_AUTO_BIEN) violated - parent key 
not found

        at 
weblogic.ejb20.internal.EJBRuntimeUtils.throwTransactionRolledbackLocal
(EJBRuntimeUtils.java:248)
        at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException
(BaseEJBLocalHome.java:247)
        at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke
(BaseEJBLocalObject.java:327)
        at 
com.fimasys.finance.profinance.front.ejb.bpo.good.GoodBPO_diubow_ELOImpl.saveAu
toVO(GoodBPO_diubow_ELOImpl.java:969)
        at 
com.fimasys.finance.profinance.front.ejb.bso.webdealer.dealer.stock.StockFacade
Bean.saveAutoVO(StockFacadeBean.java:231)
        at 
com.fimasys.finance.profinance.front.ejb.bso.webdealer.dealer.stock.StockFacade
_shuy8g_EOImpl.saveAutoVO(StockFacade_shuy8g_EOImpl.java:1311)
        ... 21 more
com.fimasys.finance.profinance.front.ejb.bd.webdealer.BDException
        at 
com.fimasys.finance.profinance.front.ejb.bd.webdealer.dealer.StockBD.saveAutoVO
(StockBD.java:202)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.stock.GoodDet
ailSubController.processEditTask(GoodDetailSubController.java:250)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.stock.GoodDet
ailSubController.process(GoodDetailSubController.java:113)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.DealerControl
ler.process(DealerController.java:171)
        at 
com.fimasys.finance.profinance.front.web.webdealer.dealer.control.WebdealerDeal
erMainController.process(WebdealerDealerMainController.java:118)
        at 
com.fimasys.finance.profinance.front.web.portal.control.MainServlet.doControlle
rRedirection(MainServlet.java:325)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.doIt
(AbstractMainServlet.java:814)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.doPost
(AbstractMainServlet.java:949)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at com.fimasys.services.j2ee.control.web.AbstractMainServlet.service
(AbstractMainServlet.java:956)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:402)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:305)
        at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
(WebAppServletContext.java:6350)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:317)
        at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:118)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3635)
        at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2585)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>>

If I remove the cmr it work perfectly.

Have you ever met that ?

Regards,
Denis Boutin.



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to