Topic
9 replies Latest Post - ‏2009-05-19T21:24:46Z by waterlily
waterlily
waterlily
5 Posts
ACCEPTED ANSWER

Pinned topic Problem creating BO from schema

‏2009-04-16T03:13:26Z |
Hi,

I am trying to create a diffgram message to submit to a .NET server and following the example specified in this url: http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r1mx/index.jsp?topic=/com.ibm.wbit.610.help.sib.mediation.ui.doc/topics/tdiffgram.html

But when I get to this part:

DataObject schemaBO = null;
try {
+ BOXMLSerializer boXMLSerializer = (BOXMLSerializer) ServiceManager.INSTANCE.locateService("com/ibm/websphere/bo/BOXMLSerializer");+
+ InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("NewDataSet.xsd");+
+ schemaBO = (DataObject) boXMLSerializer.readXMLDocument(inputStream).getDataObject();+
}
catch(java.io.FileNotFoundException ex){
}
catch(java.io.IOException ex2){
}

I get an IOException:

16/04/09 14:48:08:311 NZST 0000004c SystemErr R java.io.IOException: Error reading XML
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.bo.service.BOXMLSerializerImpl.load(BOXMLSerializerImpl.java:252)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.bo.service.BOXMLSerializerImpl.readXMLDocument(BOXMLSerializerImpl.java:206)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at sca.component.mediation.java.Custom1238119684049.doMediate(Custom1238119684049.java:125)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at sca.component.mediation.java.Custom1238119684049.mediate(Custom1238119684049.java:78)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.performInvocation(JavaMediationPrimitive.java:323)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.invoke(JavaMediationPrimitive.java:217)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sibx.scax.mediation.engine.MediationPrimitive.invokeConnections(MediationPrimitive.java:311)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sibx.scax.mediation.engine.Input.invoke(Input.java:137)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sibx.scax.mediation.engine.RequestFlow.invokeFlow(RequestFlow.java:132)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sibx.scax.mediation.engine.MediationFlow.invokeRequestFlow(MediationFlow.java:141)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean.invokeRequestFlow(MediationFlowBean.java:230)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wsspi.sibx.mediation.flow.ejb.EJSLocalStatelessJustAnotherTestModule_bbf51e18.invokeRequestFlow(EJSLocalStatelessJustAnotherTestModule_bbf51e18.java:127)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sibx.scax.mediation.component.ejb.EJBMediationFlowComponentImpl.invokeRequestFlow(EJBMediationFlowComponentImpl.java:223)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sibx.scax.runtime.handler.MFCImplementationHandler.processMessage(MFCImplementationHandler.java:199)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:714)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:843)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:338)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionRequiredActivitySessionNotSupported(ModuleSessionBean.java:311)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionRequiredActivitySessionNotSupported(EJSLocalStatelessModule_43132892.java:233)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionGlobalActivitySessionFalse(UOWStrategyImpl.java:311)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:165)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processMessage(ModuleSessionBean.java:149)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.processMessage(EJSLocalStatelessModule_43132892.java:97)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.invocation.impl.AdhocInvoker.processMessage(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.invocation.impl.Invoker.managedInvoke(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.invocation.impl.Invoker.invoke(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.invocation.impl.BaseInvocationHandler.invoke(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager.doInvoke(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager.invoke(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.command.impl.BaseInteractiveEventHandler.processEvent(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.command.impl.BaseCommandHandler.doCommand(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.command.impl.CommandProcessor.doCommand(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.command.impl.CommandProcessor.doCommand(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.servlet.TestControllerServlet.process(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.wbit.comptest.controller.servlet.TestControllerServlet.doPost(Unknown Source)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
16/04/09 14:48:08:311 NZST 0000004c SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Class 'schema' not found. (file:///c:/IBM/WID61/pf/wps2/, 2, 412)
+ at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:80)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:189)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:179)+
+ at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)+
+ at com.ibm.ws.bo.bomodel.util.SerializerUtil$2.run(SerializerUtil.java:171)+
+ at java.security.AccessController.doPrivileged(AccessController.java:246)+
+ at com.ibm.ws.bo.bomodel.util.SerializerUtil.privilegedLoad(SerializerUtil.java:162)+
+ at com.ibm.ws.bo.service.BOXMLSerializerImpl.load(BOXMLSerializerImpl.java:248)+
+ at com.ibm.ws.bo.service.BOXMLSerializerImpl.readXMLDocument(BOXMLSerializerImpl.java:206)+
+ at sca.component.mediation.java.Custom1238119684049.doMediate(Custom1238119684049.java:125)+
+ at sca.component.mediation.java.Custom1238119684049.mediate(Custom1238119684049.java:78)+
+ at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.performInvocation(JavaMediationPrimitive.java:323)+
+ at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.invoke(JavaMediationPrimitive.java:217)+
+ at com.ibm.ws.sibx.scax.mediation.engine.MediationPrimitive.invokeConnections(MediationPrimitive.java:311)+
+ at com.ibm.ws.sibx.scax.mediation.engine.Input.invoke(Input.java:137)+
+ at com.ibm.ws.sibx.scax.mediation.engine.RequestFlow.invokeFlow(RequestFlow.java:132)+
+ at com.ibm.ws.sibx.scax.mediation.engine.MediationFlow.invokeRequestFlow(MediationFlow.java:141)+
+ at com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean.invokeRequestFlow(MediationFlowBean.java:230)+
+ at com.ibm.wsspi.sibx.mediation.flow.ejb.EJSLocalStatelessJustAnotherTestModule_bbf51e18.invokeRequestFlow(EJSLocalStatelessJustAnotherTestModule_bbf51e18.java:127)+
+ at com.ibm.ws.sibx.scax.mediation.component.ejb.EJBMediationFlowComponentImpl.invokeRequestFlow(EJBMediationFlowComponentImpl.java:223)+
+ at com.ibm.ws.sibx.scax.runtime.handler.MFCImplementationHandler.processMessage(MFCImplementationHandler.java:199)+
+ at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:714)+
+ at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)+
+ at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:843)+
+ at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:338)+
+ at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionRequiredActivitySessionNotSupported(ModuleSessionBean.java:311)+
+ at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionRequiredActivitySessionNotSupported(EJSLocalStatelessModule_43132892.java:233)+
+ at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionGlobalActivitySessionFalse(UOWStrategyImpl.java:311)+
+ at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:165)+
+ at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)+
+ at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)+
+ at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)+
+ at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processMessage(ModuleSessionBean.java:149)+
+ at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.processMessage(EJSLocalStatelessModule_43132892.java:97)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.AdhocInvoker.processMessage(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.Invoker.managedInvoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.Invoker.invoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.BaseInvocationHandler.invoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager.doInvoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager.invoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.command.impl.BaseInteractiveEventHandler.processEvent(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.command.impl.BaseCommandHandler.doCommand(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.command.impl.CommandProcessor.doCommand(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.command.impl.CommandProcessor.doCommand(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.servlet.TestControllerServlet.process(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.servlet.TestControllerServlet.doPost(Unknown Source)+
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)+
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)+
+ at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)+
+ at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)+
+ at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)+
+ at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)+
+ at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)+
+ at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)+
+ at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)+
+ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)+
+ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)+
+ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)+
+ at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)+
+ at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)+
+ at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)+
+ at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)+
+ at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)+
+ at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)+
+ at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)+
+ at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)+
+ at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)+
+ at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)+
Caused by: org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'schema' not found. (file:///c:/IBM/WID61/pf/wps2/, 2, 412)
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.validateCreateObjectFromFactory(XMLHandler.java:1999)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1176)+
+ at com.ibm.ws.bo.bomodel.util.BOXMLHandler.createTopObjectByType(BOXMLHandler.java:266)+
+ at com.ibm.ws.bo.bomodel.util.BOXMLHandler.createTopObject(BOXMLHandler.java:246)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:633)+
+ at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)+
+ at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)+
+ at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)+
+ at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)+
+ at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)+
+ at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)+
+ at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)+
+ at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)+
+ at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)+
+ at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:179)+
+ ... 66 more+

16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:80)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:189)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:179)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.bo.bomodel.util.SerializerUtil$2.run(SerializerUtil.java:171)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at java.security.AccessController.doPrivileged(AccessController.java:246)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.bo.bomodel.util.SerializerUtil.privilegedLoad(SerializerUtil.java:162)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.bo.service.BOXMLSerializerImpl.load(BOXMLSerializerImpl.java:248)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R ... 60 more
16/04/09 14:48:08:327 NZST 0000004c SystemErr R Caused by: org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'schema' not found. (file:///c:/IBM/WID61/pf/wps2/, 2, 412)
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.validateCreateObjectFromFactory(XMLHandler.java:1999)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1176)+
+ at com.ibm.ws.bo.bomodel.util.BOXMLHandler.createTopObjectByType(BOXMLHandler.java:266)+
+ at com.ibm.ws.bo.bomodel.util.BOXMLHandler.createTopObject(BOXMLHandler.java:246)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:633)+
+ at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)+
+ at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)+
+ at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)+
+ at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)+
+ at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)+
+ at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)+
+ at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)+
+ at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)+
+ at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)+
+ at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:179)+
+ at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:179)+
+ at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)+
+ at com.ibm.ws.bo.bomodel.util.SerializerUtil$2.run(SerializerUtil.java:171)+
+ at java.security.AccessController.doPrivileged(AccessController.java:246)+
+ at com.ibm.ws.bo.bomodel.util.SerializerUtil.privilegedLoad(SerializerUtil.java:162)+
+ at com.ibm.ws.bo.service.BOXMLSerializerImpl.load(BOXMLSerializerImpl.java:248)+
+ at com.ibm.ws.bo.service.BOXMLSerializerImpl.readXMLDocument(BOXMLSerializerImpl.java:206)+
+ at sca.component.mediation.java.Custom1238119684049.doMediate(Custom1238119684049.java:125)+
+ at sca.component.mediation.java.Custom1238119684049.mediate(Custom1238119684049.java:78)+
+ at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.performInvocation(JavaMediationPrimitive.java:323)+
+ at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.invoke(JavaMediationPrimitive.java:217)+
+ at com.ibm.ws.sibx.scax.mediation.engine.MediationPrimitive.invokeConnections(MediationPrimitive.java:311)+
+ at com.ibm.ws.sibx.scax.mediation.engine.Input.invoke(Input.java:137)+
+ at com.ibm.ws.sibx.scax.mediation.engine.RequestFlow.invokeFlow(RequestFlow.java:132)+
+ at com.ibm.ws.sibx.scax.mediation.engine.MediationFlow.invokeRequestFlow(MediationFlow.java:141)+
+ at com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean.invokeRequestFlow(MediationFlowBean.java:230)+
+ at com.ibm.wsspi.sibx.mediation.flow.ejb.EJSLocalStatelessJustAnotherTestModule_bbf51e18.invokeRequestFlow(EJSLocalStatelessJustAnotherTestModule_bbf51e18.java:127)+
+ at com.ibm.ws.sibx.scax.mediation.component.ejb.EJBMediationFlowComponentImpl.invokeRequestFlow(EJBMediationFlowComponentImpl.java:223)+
+ at com.ibm.ws.sibx.scax.runtime.handler.MFCImplementationHandler.processMessage(MFCImplementationHandler.java:199)+
+ at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:714)+
+ at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)+
+ at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:843)+
+ at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:338)+
+ at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionRequiredActivitySessionNotSupported(ModuleSessionBean.java:311)+
+ at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionRequiredActivitySessionNotSupported(EJSLocalStatelessModule_43132892.java:233)+
+ at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionGlobalActivitySessionFalse(UOWStrategyImpl.java:311)+
+ at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:165)+
+ at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)+
+ at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)+
+ at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)+
+ at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processMessage(ModuleSessionBean.java:149)+
+ at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.processMessage(EJSLocalStatelessModule_43132892.java:97)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.AdhocInvoker.processMessage(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.Invoker.managedInvoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.Invoker.invoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.BaseInvocationHandler.invoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager.doInvoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.invocation.impl.InvocationManager.invoke(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.command.impl.BaseInteractiveEventHandler.processEvent(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.command.impl.BaseCommandHandler.doCommand(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.command.impl.CommandProcessor.doCommand(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.command.impl.CommandProcessor.doCommand(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.servlet.TestControllerServlet.process(Unknown Source)+
+ at com.ibm.wbit.comptest.controller.servlet.TestControllerServlet.doPost(Unknown Source)+
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)+
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)+
+ at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)+
+ at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)+
+ at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)+
+ at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)+
+ at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)+
+ at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)+
+ at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)+
+ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)+
+ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)+
+ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)+
+ at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)+
+ at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)+
+ at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)+
+ at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)+
+ at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)+
+ at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)+
+ at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)+
+ at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)+
+ at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)+
+ at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)+

16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLHandler.validateCreateObjectFromFactory(XMLHandler.java:1999)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1176)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.bo.bomodel.util.BOXMLHandler.createTopObjectByType(BOXMLHandler.java:266)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at com.ibm.ws.bo.bomodel.util.BOXMLHandler.createTopObject(BOXMLHandler.java:246)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:633)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
16/04/09 14:48:08:327 NZST 0000004c SystemErr R at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:179)
===============
Has anybody encountered this type of problem before?

I am new to SOA and web services stuff so would be great if someone could help me out on this.

I am using:

WebSphere Integration Developer
Version: 6.1.2
Build id: 6.1.2ifix003-20090306_1920

Business Process Choreographer 6.1.2.2
ND 6.1.0.19
WPS 6.1.2.2
Updated on 2009-05-19T21:24:46Z at 2009-05-19T21:24:46Z by waterlily
  • Olli_Tietavainen
    Olli_Tietavainen
    41 Posts
    ACCEPTED ANSWER

    Re: Problem creating BO from schema

    ‏2009-04-16T09:50:24Z  in response to waterlily
    Hard to say without seeing the file, but I've seen "error reading xml" happen when the xsd isn't valid.
  • waterlily
    waterlily
    5 Posts
    ACCEPTED ANSWER

    Re: Problem creating BO from schema

    ‏2009-04-16T20:06:08Z  in response to waterlily
    Hi Olli,

    I have attached the xsd file. It is using a top level anonymous complex type definition. Though I have read from somewhere that it is not best practice to use this type of schema but it is the same type as the example schema (NewDataset) as defined in the documentation(see url in previous message). Have tried loading other schema files but I still get the same error.

    Is there any configuration I need to do for BOXMLSerializer to successfully load this file?
    Regards.
  • SystemAdmin
    SystemAdmin
    6092 Posts
    ACCEPTED ANSWER

    Re: Problem creating BO from schema

    ‏2009-04-17T01:25:29Z  in response to waterlily
    Something you can do to just validate the XML Schema is instead of reading it from a file, try to create an instance using the BOFactory. If you can create an instance and populate a couple of fields, i would say the XSD is fine. I've seen some quarky things when just trying to create a new DO from the file system. A general question i've always had is, if the BO isn't loaded in the SDO repository at startup, then does the XMLSerializer add it automatically when it parses it?
    • shanec
      shanec
      74 Posts
      ACCEPTED ANSWER

      Re: Problem creating BO from schema

      ‏2009-04-17T03:03:20Z  in response to SystemAdmin
      Hi,

      Does adding an import to the xsd for the schema namespace help?

      For example:

      <?xml version="1.0" encoding="utf-8"?>
      <xs:schema ...>
      <xs:import namespace="http://www.w3.org/2001/XMLSchema" />
      <xs:element msdata:IsDataSet="true" name="NewTransactionDataset">
      ...
      </xs:schema>

      Thanks, Shane
      • waterlily
        waterlily
        5 Posts
        ACCEPTED ANSWER

        Re: Problem creating BO from schema

        ‏2009-04-17T04:06:22Z  in response to shanec
        Thanks Shane, but still got same error message.
        • dvisentin
          dvisentin
          14 Posts
          ACCEPTED ANSWER

          Re: Problem creating BO from schema

          ‏2009-05-12T00:21:48Z  in response to waterlily
          I have this problem too.
          Do you find a solution/fix?
          If don't, have you already open a PMR?

          Thanks, Diego
          • waterlily
            waterlily
            5 Posts
            ACCEPTED ANSWER

            Re: Problem creating BO from schema

            ‏2009-05-12T00:28:50Z  in response to dvisentin
            Hi,

            No solution for this yet but have already logged a PMR. They are able to recreate the issue and are still working on it. Will update this thread once I get a solution from them.
            Cheers
  • MikeZilbergleyt
    MikeZilbergleyt
    26 Posts
    ACCEPTED ANSWER

    Re: Problem creating BO from schema

    ‏2009-05-12T13:32:16Z  in response to waterlily
    Why are you loading an XSD document in XMLSerializer?
    • waterlily
      waterlily
      5 Posts
      ACCEPTED ANSWER

      Re: Problem creating BO from schema

      ‏2009-05-19T21:24:46Z  in response to MikeZilbergleyt
      Hi,

      The problem has been identified and an APAR has been created and is targeted for 6.1.0.1 iFix003, 6.1.2 iFix004, 6.2.0.1 iFix003 release. Changes will also be made on the WID infocenter sample documentation.

      The real cause of the issue is the incorrect generation of the WSDL file. Nothing wrong with the XSD file.

      Work around is to modify the WSDL file:

      First add,

      ...
      <wsdl:types>
      <s:schema ....
      <s:import namespace="http://www.w3.org/2001/XMLSchema" />
      <s:import ...
      second change is

      <s:element name="ProcessTransaction">
      <s:complexType>
      <s:sequence>
      <s:element minOccurs="1" maxOccurs="1"
      name="transactionHandle" type="s:int" />
      <s:element minOccurs="0" maxOccurs="1" name="transaction">
      <s:complexType>
      <s:sequence>
      <s:element ref="s:schema" />
      <s:any
      namespace="http://www.paymentgateway.co.nz/_schemas/Transaction.xsd" />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:sequence>
      </s:complexType>
      </s:element>