Error Serializing Bo Business Objects
are available JR29610; serialization of business object generates ClassCastException exception WebSphere Process Server V6.1.2 Fix Pack 1 (v6.1.2.1) WebSphere Process Server V6.1.2 Fix Pack 3 (v6.1.2.3) WebSphere Process Server V6.1.0 Fix Pack 3 (6.1.0.3) WebSphere Enterprise Service Bus V6.1.0 Fix Pack 3 (6.1.0.3) Subscribe You can track all active APARs for this component. APAR status Closed as program error. Error description Serialization of a BO extracted from SOAP message throws classcastexception . Local fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Process Server 6.1.0.x users who * * use the Business Object serialize service. * **************************************************************** * PROBLEM DESCRIPTION: Serialization of business objects fails * * with a ClassCastException after they * * are extracted from a SOAP Body. * * * **************************************************************** * RECOMMENDATION: * **************************************************************** A business object is contained in a parenet business object with a feature map. When serialize a such business object using business object serialize service, it will fail with ClassCastException. java.lang.ClassCastException: com.ibm.ws.bo.bomodel.impl. DynamicBusinessObjectImpl incompatible with java.util.Collection at org.eclipse.emf.ecore.util.BasicFeatureMap.set (BasicFeatureMap.java:1026) at org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureFeatureMap. set(FeatureMapUtil.java:1093) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenSet (BasicEObjectImpl.java:723) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet (BasicEObjectImpl.java:658) at com.ibm.ws.bo.bomodel.util.EObjectIsolater.restore (EObjectIsolater.java:85) at com.ibm.ws.bo.service.BOXMLDocumentImpl.restore (BOXMLDocumentImpl.java:198) at com.ibm.ws.bo.service.BOXMLSerializerImpl.save (BOXMLSerializerImpl.java:424) at com.ibm.ws.bo.service.BOXMLSerializerImpl.writeDataObject (BOXMLSerializerImpl.java:161) Problem conclusion Applying this interim fix will resolve the issue. Temporary fix Comments APAR Information APAR numberJR29610 Reported component nameWEB PROC SERVER Reported component ID5724L0100 Reported release610 StatusCLOSED PER PENoPE HIPERNoHIPER Special AttentionNoSpecatt Submitted date2008-06-19 Closed date2008-06-25 Last modified
interfaces to convert a Business Object to an XML string and vice versa in WebSphere Integration Developer. Often times you will see a need to convert a given Business Object into an XML string and vice versa. You can serialize and deserialize a Business Object to and from a given XML string by using com.ibm.websphere.bo.BOXMLSerializer and com.ibm.websphere.bo.BOXMLDocument interfaces. BOXMLSerializer serializer = (BOXMLSerializer)new http://www.ibm.com/support/docview.wss?uid=swg1JR29610 ServiceManager().locateService("com/ibm/websphere/bo/BOXMLSerializer"); Sample Java code to convert a Business Object to an XML String: Let's say you have your Business Object stored in a variable ‘inputDataObject' (of type commonj.sdo.DataObject) ByteArrayOutputStream outputStream = newByteArrayOutputStream();serializer.writeDataObject(inputDataObject,inputDataObject.getType().getURI(),inputDataObject.getType().getName(),outputStream); String myXMLString = outputStream.toString("UTF-8"); "myXMLString" will hold the XML string corresponding to the Data Object http://blog.kandati.com/2010/05/often-times-you-will-see-need-to_26.html "inputDataObject". Sample Java code to convert a given XML String to a Business Object: Let's say you have the XML string stored in a variable named ‘inputXMLString' (of type java.lang.String) BOXMLDocument document = serializer.readXMLDocument(new ByteArrayInputStream(inputXMLString.getBytes("UTF-8")));commonj.sdo.DataObject myDataObject =document.getDataObject(); "myDataObject" will hold the Business Object corresponding to the XML string "inputXMLString". Note: Theschema definition (xsd) corresponding to the Business Object that you are trying to convert the XML string into, should be available during runtime. Posted by Hema Sagar Reddy Kandati at 3:00 PM Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Business Objects, Serialization and Deserialization No comments: Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) Subscribe To Posts Atom Posts Comments Atom Comments About Me Hema Sagar Reddy Kandati Sagar Kandati is an Enterprise Technology Consultant currently working for First Tennessee Bank. C
and SafetyAsset NetworkAsset https://scn.sap.com/thread/3231685 Operations and MaintenanceCommerceOverviewSubscription Billing and Revenue ManagementMaster Data Management for CommerceOmnichannel CommerceFinanceOverviewAccounting and Financial CloseCollaborative Finance OperationsEnterprise Risk and ComplianceFinancial Planning and AnalysisTreasury and Financial Risk ManagementHuman ResourcesOverviewCore Human Resources and PayrollHuman error serializing Capital AnalyticsTalent ManagementTime and Attendance ManagementManufacturingOverviewManufacturing NetworkManufacturing OperationsResponsive ManufacturingMarketingOverviewMarket with Speed and AgilityUnique Customer ExperiencesReal-Time Customer InsightsR&D/EngineeringOverviewDesign NetworkDesign OrchestrationProject and Portfolio ManagementSalesOverviewCollaborative Quote to CashSales Force AutomationSales Performance ManagementSelling Through Contact CentersServiceOverviewEfficient Field error serializing bo Service ManagementOmnichannel Customer ServiceTransparent Service Process and OperationsSourcing and ProcurementOverviewContingent Workforce ManagementDirect ProcurementSelf-Service ProcurementServices ProcurementStrategic Sourcing and Supplier ManagementSupply ChainOverviewDemand ManagementDemand NetworkLogistics NetworkManufacturing Planning and SchedulingResponse NetworkResponse and Supply ManagementSales, Inventory, and Operations PlanningTransportation ManagementWarehouse ManagementSustainabilityOverviewEnvironment, Health, and SafetyProduct Safety and Stewardship NetworkBrowse by IndustryAerospace and DefenseAutomotiveBankingChemicalsConsumer ProductsDefense and SecurityEngineering, Construction, and OperationsHealthcareHigh TechHigher Education and ResearchIndustrial Machinery and ComponentsInsuranceLife SciencesMediaMill ProductsMiningOil and GasProfessional ServicesPublic SectorRetailSports and EntertainmentTelecommunicationsTravel and TransportationUtilitiesWholesale DistributionBrowse Platform and TechnologyAnalyticsOverviewBusiness IntelligencePredictive AnalyticsGovernance, Risk, and ComplianceEnterprise Performance ManagementApplication Platform and InfrastructureOverviewApplication PlatformContent and CollaborationInterface ManagementProcess Management and IntegrationData ManagementOverviewBig Data on HadoopData War