Hi,
I am getting trouble in making the get-related-one relation in screen widget. Can anyone of you please tell me what i m doing wrong??? <set field="fixedAssetId" from-field="parameters.fixedAssetId" /> <entity-one entity-name="FixedAsset" value-name="fixedAsset"/> <get-related-one value-name="fixedAsset" relation-name="Product" to-value-name="product"/> One more think i want to know : I think this relation-name attribute in get-related one relation is the name of the rel-entity-name attribute given in the FixedAsset entity.Am i right or wrong on this info????? For the reference of relation you can check accounting/entitydef/entitymodel.xml file for the entity-name="FixedAsset". The error that i m getting is : 180768 (http-0.0.0.0-8443-Processor3) [ ModelScreenAction.java:555:ERROR] Problem getting related one from entity with name FixedAsset for the relation-name: Product: Could not find relation for relationName: Product for value [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()] org.ofbiz.entity.GenericModelException: Could not find relation for relationName: Product for value [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()] at org.ofbiz.entity.GenericDelegator.getRelatedOne(GenericDelegator.java:2087) at org.ofbiz.entity.GenericValue.getRelatedOne(GenericValue.java:312) at org.ofbiz.widget.screen.ModelScreenAction$GetRelatedOne.runAction(ModelScreenAction.java:551) at org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:240) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:137) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:108) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) at org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:77) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) 180775 (http-0.0.0.0-8443-Processor3) [ ModelScreen.java:140:ERROR] Error rendering screen [component://fixedasset/widget/AssetScreens.xml#BasicInfo]: java.lang.IllegalArgumentException: Problem getting related one from entity with name FixedAsset for the relation-name: Product: Could not find relation for relationName: Product for value [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()]. Rolling back transaction. 180777 (http-0.0.0.0-8443-Processor3) [ TransactionUtil.java:243:ERROR] [TransactionUtil.rollback] java.lang.Exception: Stack Trace at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:242) at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:224) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:143) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:108) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) at org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:77) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) 180782 (http-0.0.0.0-8443-Processor3) [ TransactionUtil.java:253:INFO ] [TransactionUtil.rollback] transaction rolled back 180784 (http-0.0.0.0-8443-Processor3) [ TransactionUtil.java:191:INFO ] [TransactionUtil.commit] Not committing transaction, status is STATUS_NO_TRANSACTION 180787 (http-0.0.0.0-8443-Processor3) [ ControlServlet.java:194:ERROR] Error in request handler: org.ofbiz.base.util.GeneralException: Error rendering screen [component://fixedasset/widget/AssetScreens.xml#BasicInfo]: java.lang.IllegalArgumentException: Problem getting related one from entity with name FixedAsset for the relation-name: Product: Could not find relation for relationName: Product for value [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()] (Problem getting related one from entity with name FixedAsset for the relation-name: Product: Could not find relation for relationName: Product for value [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()]) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:148) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:108) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) at org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:77) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) java.lang.IllegalArgumentException: Problem getting related one from entity with name FixedAsset for the relation-name: Product: Could not find relation for relationName: Product for value [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()] at org.ofbiz.widget.screen.ModelScreenAction$GetRelatedOne.runAction(ModelScreenAction.java:556) at org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:240) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:137) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:108) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) at org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:77) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) 180790 (http-0.0.0.0-8443-Processor3) [ ControlServlet.java:208:ERROR] An error occurred, going to the errorPage: /error/error.jsp Please do some help. Thanks in advance Ashish "You can't always get what you want but if you try real hard, you might just find that you get what you need" Regards Ashish ****************************************
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice. _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Ashish,
if there is a title attribute in the relation definition, it is prefixed to the entity name, so: <get-related-one value-name="fixedAsset" relation-name="InstanceOfProduct" to-value-name="product"/> it should work. Jacopo Ashish Vijaywargiya wrote: > Hi, > > I am getting trouble in making the get-related-one relation in screen > widget. > Can anyone of you please tell me what i m doing wrong??? > > <set field="fixedAssetId" from-field="parameters.fixedAssetId" /> > <entity-one entity-name="FixedAsset" value-name="fixedAsset"/> > <get-related-one value-name="fixedAsset" relation-name="Product" > to-value-name="product"/> > > One more think i want to know : I think this relation-name attribute in > get-related one relation is the name of the rel-entity-name attribute > given in the FixedAsset entity.Am i right or wrong on this info????? > > For the reference of relation you can check > accounting/entitydef/entitymodel.xml file for the entity-name="FixedAsset". > > The error that i m getting is : > 180768 (http-0.0.0.0-8443-Processor3) [ > ModelScreenAction.java:555:ERROR] Problem getting related one from > entity with name FixedAsset for the relation-name: Product: Could not > find relation for relationName: Product for value > [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 > GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()] > org.ofbiz.entity.GenericModelException: Could not find relation for > relationName: Product for value > [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 > GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()] > at > org.ofbiz.entity.GenericDelegator.getRelatedOne(GenericDelegator.java:2087) > at org.ofbiz.entity.GenericValue.getRelatedOne(GenericValue.java:312) > at > org.ofbiz.widget.screen.ModelScreenAction$GetRelatedOne.runAction(ModelScreenAction.java:551) > at > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) > at > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:240) > at > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:137) > at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:108) > at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) > at > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:77) > at > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) > at > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) > at > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Unknown Source) > 180775 (http-0.0.0.0-8443-Processor3) [ > ModelScreen.java:140:ERROR] Error rendering screen > [component://fixedasset/widget/AssetScreens.xml#BasicInfo]: > java.lang.IllegalArgumentException: Problem getting related one from > entity with name FixedAsset for the relation-name: Product: Could not > find relation for relationName: Product for value > [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 > GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()]. > Rolling back transaction. > 180777 (http-0.0.0.0-8443-Processor3) [ > TransactionUtil.java:243:ERROR] [TransactionUtil.rollback] > java.lang.Exception: Stack Trace > at > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:242) > at > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:224) > at > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:143) > at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:108) > at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) > at > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:77) > at > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) > at > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) > at > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Unknown Source) > 180782 (http-0.0.0.0-8443-Processor3) [ TransactionUtil.java:253:INFO > ] [TransactionUtil.rollback] transaction rolled back > 180784 (http-0.0.0.0-8443-Processor3) [ TransactionUtil.java:191:INFO > ] [TransactionUtil.commit] Not committing transaction, status is > STATUS_NO_TRANSACTION > 180787 (http-0.0.0.0-8443-Processor3) [ > ControlServlet.java:194:ERROR] Error in request handler: > org.ofbiz.base.util.GeneralException: Error rendering screen > [component://fixedasset/widget/AssetScreens.xml#BasicInfo]: > java.lang.IllegalArgumentException: Problem getting related one from > entity with name FixedAsset for the relation-name: Product: Could not > find relation for relationName: Product for value > [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 > GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()] > (Problem getting related one from entity with name FixedAsset for the > relation-name: Product: Could not find relation for relationName: > Product for value > [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 > GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()]) > at > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:148) > at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:108) > at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) > at > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:77) > at > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) > at > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) > at > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Unknown Source) > java.lang.IllegalArgumentException: Problem getting related one from > entity with name FixedAsset for the relation-name: Product: Could not > find relation for relationName: Product for value > [GenericEntity:FixedAsset][calendarId,null()][classEnumId,null()][createdStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][createdTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][dateAcquired,null()][dateLastServiced,null()][dateNextService,null()][fixedAssetId,VH0002(java.lang.String)][fixedAssetName,null()][fixedAssetTypeId,EQUIPMENT(java.lang.String)][instanceOfProductId,87 > GMC N9E064(java.lang.String)][lastUpdatedStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][lastUpdatedTxStamp,2006-05-06 > 01:51:01.0(java.sql.Timestamp)][parentFixedAssetId,ASSET_EQUIPMENT(java.lang.String)][partyId,GMC(java.lang.String)][productionCapacity,null()][roleTypeId,null()][serialNumber,1GDT9E4W9HV524983(java.lang.String)][uomId,null()] > at > org.ofbiz.widget.screen.ModelScreenAction$GetRelatedOne.runAction(ModelScreenAction.java:556) > at > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) > at > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:240) > at > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:137) > at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:108) > at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93) > at > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:77) > at > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) > at > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) > at > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Unknown Source) > 180790 (http-0.0.0.0-8443-Processor3) [ > ControlServlet.java:208:ERROR] An error occurred, going to the > errorPage: /error/error.jsp > > > Please do some help. > > Thanks in advance > > Ashish > > > > > > "You can't always get what you want but if you try real hard, > you might just find that you get what you need" > > Regards > Ashish > **************************************** > Image hosted by Photobucket.com > > ------------------------------------------------------------------------ > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries > <http://us.rd.yahoo.com/mail_us/taglines/postman9/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com/> > for just 2¢/min with Yahoo! Messenger with Voice. > > > ------------------------------------------------------------------------ > > > _______________________________________________ > Users mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/users _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Hmmmmmmmmm..............Thanks Jacapo its working now.
I spent lots of time on this issue but didn't figured out it anymore. Thanks Jacapo...You are soo nice man. Regards Ashish |
Free forum by Nabble | Edit this page |