Hello All, I am using opentaps-1.0.4. I am getting the following exception when I am trying to create a bill of material for a product org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh], line [47]: Sourced file: component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh : Typed variable declaration : at Line: 47 : in file: component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh : ( BOMNode ) treeQtyIt .next ( )
Target exception: java.lang.ClassCastException: Cannot cast org.opentaps.common.manufacturing.bom.BomNode to org.ofbiz.manufacturing.bom.BOMNode (Sourced file: component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh : Typed variable declaration) (Error running BSH script at [component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh], line [47]: Sourced file: component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh : Typed variable declaration : at Line: 47 : in file: component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh : ( BOMNode ) treeQtyIt .next ( ) Target exception: java.lang.ClassCastException: Cannot cast org.opentaps.common.manufacturing.bom.BomNode to org.ofbiz.manufacturing.bom.BOMNode (Sourced file: component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/BomSimulation.bsh : Typed variable declaration)) at org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:395) at org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:121) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:240) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:138) 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:81) can any one please tell me how to resolve this exception Thanks, Anil Sharma. -- View this message in context: http://www.nabble.com/Class-cast-Exception-from-org.ofbiz.manufacturing-to-org.opentaps.manufacturing-tp24716838p24716838.html Sent from the OFBiz - Dev mailing list archive at Nabble.com.