From: Farrukh N. <Farrukh.Najmi@Sun.COM> - 2006-01-24 15:39:07
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=us-ascii" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> YILDIRAY KABAK wrote: <blockquote cite="mid004001c620f6$e779f150$4fe...@sr..." type="cite"> <pre wrap="">Dear All, I got the attached exception when trying to invoke the stored query "urn:freebxml:registry:query:BusinessQuery". The query I sent to the registry is as follows: </pre> </blockquote> Hi Yildray,<br> <br> Attached is the corrected example. Note that I usually run the XML through a validating parser to catch these type of bugs.<br> In NetBeans IDE it is as simple as Right Click and select Validate XML in the editor for the XML file.<br> <br> I have also checked it under misc/samples dir.<br> BTW can you pleae update following wiki page with info on where in the spec was the incorrect example please.<br> <br> <a class="moz-txt-link-freetext" href="http://ebxmlrr.sourceforge.net/wiki/Spec/regrep#Bugs_in_ebXML_Registry_specs">http://ebxmlrr.sourceforge.net/wiki/Spec/regrep#Bugs_in_ebXML_Registry_specs</a><br> <br> Thank you for your help.<br> <blockquote cite="mid004001c620f6$e779f150$4fe...@sr..." type="cite"> <pre wrap=""> -------------------------------------------------------------------- <?xml version = '1.0' encoding = 'UTF-8'?> <AdhocQueryRequest xmlns = 'urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0' xmlns:lcm='urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0' xmlns:query='urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0' xmlns:rim='urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0' xmlns:rs='urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0' xmlns:xsi='<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>' xsi:schemaLocation='urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0'> <query:ResponseOption returnComposedObjects="true" returnType="LeafClassWithRepositoryItem"/> <rim:Slot name="urn:oasis:names:tc:ebxml-regrep:3.0:rs:AdhocQueryRequest:queryId"> <rim:ValueList> <rim:Value>urn:freebxml:registry:query:BusinessQuery</rim:Value> </rim:ValueList> </rim:Slot> <rim:Slot name="$name "> <rim:ValueList> <rim:Value>%ebXML%</rim:Value> </rim:ValueList> </rim:Slot> </AdhocQueryRequest> -------------------------------------------------------------------- From the error, I suspect that the "Slot" objects should not be directly under AdhocQueryRequest. I think the query I'm using is the same one in the ebRS document. I will appreciate if you could provide me a sample query to invoke the stored query. Thanks in advance. With best regards, YILDIRAY KABAK Software Research and Development Center Department of Computer Eng. Middle East Technical University 06531 Ankara TURKEY PHONE: +90 (312) 2102076 FAX: +90 (312) 2101004 <a class="moz-txt-link-abbreviated" href="mailto:E-MAIL:yil...@sr...">E-MAIL:yil...@sr...</a> WEB: <a class="moz-txt-link-freetext" href="http://www.srdc.metu.edu.tr/~yildiray">http://www.srdc.metu.edu.tr/~yildiray</a> [java] <SOAP-ENV:Envelope xmlns:SOAP-ENV=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a>><SOAP-ENV:Header/ </pre> <blockquote type="cite"> <pre wrap=""><SOAP-ENV:Bo </pre> </blockquote> <pre wrap=""><!---->dy><SOAP-ENV:Fault><faultcode>urn:oasis:names:tc:ebxml-regrep:rs:exception:j avax.xml.registry.JAXRException</faultcode>< faultstring>Unable to Unmarshall request</faultstring><detail><rs:StackTrace xmlns:rs="urn:oasis:names:tc:ebxml-regrep:x sd:rs:3.0">javax.xml.registry.JAXRException: Unable to Unmarshall request&#13; [java] at org.freebxml.omar.common.BindingUtility.getRequestObject(BindingUtility.java :377)&#13; [java] at org.freebxml.omar.server.interfaces.soap.RegistrySOAPServlet.onMessage(Regis trySOAPServlet.java:196)& #13; [java] at org.freebxml.omar.server.interfaces.common.SOAPServlet.doPost(SOAPServlet.ja va:207)&#13; [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)&#13; [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)&#13; [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:237)&#13 ; [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157)&#13; [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214)&#13; [java] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104)&#13; [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)& #13; [java] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:198)&#13; [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:152)&#13; [java] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104)&#13; [java] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:462)&#13; [java] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102)&#13; [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)& #13; [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 )&#13; [java] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104)&#13; [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 )&#13; [java] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102)&#13; [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)& #13; [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109)&#13; [java] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104)&#13; [java] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)&#1 3; [java] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102)&#13; [java] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)& #13; [java] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)&#13; [java] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)&#13; [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790)&# 13; [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java :709)&#13; [java] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572)&# 13; [java] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:644)&#13; [java] at java.lang.Thread.run(Thread.java:595)&#13; [java] Caused by: javax.xml.bind.UnmarshalException: Unexpected element {urn:oasis:names:tc:ebxml-regrep:xsd:rim:3. 0}:Slot&#13; [java] at org.oasis.ebxml.registry.bindings.cms.impl.runtime.SAXUnmarshallerHandlerImp l.handleEvent(SAXUnmarsha llerHandlerImpl.java:577)&#13; [java] at org.oasis.ebxml.registry.bindings.cms.impl.runtime.AbstractUnmarshallingEven tHandlerImpl.reportError( AbstractUnmarshallingEventHandlerImpl.java:139)&#13; [java] at org.oasis.ebxml.registry.bindings.cms.impl.runtime.AbstractUnmarshallingEven tHandlerImpl.reportError( AbstractUnmarshallingEventHandlerImpl.java:136)&#13; [java] at org.oasis.ebxml.registry.bindings.cms.impl.runtime.AbstractUnmarshallingEven tHandlerImpl.unexpectedEn terElement(AbstractUnmarshallingEventHandlerImpl.java:147)&#13; [java] at org.oasis.ebxml.registry.bindings.cms.impl.runtime.AbstractUnmarshallingEven tHandlerImpl.enterElement (AbstractUnmarshallingEventHandlerImpl.java:60)&#13; [java] at org.oasis.ebxml.registry.bindings.query.impl.AdhocQueryRequestTypeImpl$Unmar shaller.enterElement(Adho cQueryRequestTypeImpl.java:563)&#13; [java] at org.oasis.ebxml.registry.bindings.cms.impl.runtime.AbstractUnmarshallingEven tHandlerImpl.revertToPare ntFromEnterElement(AbstractUnmarshallingEventHandlerImpl.java:329)&#13; [java] at org.oasis.ebxml.registry.bindings.query.impl.ResponseOptionImpl$Unmarshaller .enterElement(ResponseOpt ionImpl.java:196)&#13; [java] at org.oasis.ebxml.registry.bindings.cms.impl.runtime.SAXUnmarshallerHandlerImp l.startElement(SAXUnmarsh allerHandlerImpl.java:125)&#13; [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Un known Source)&#13; [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartEl ement(Unknown Source)&#13 ; [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm entContentDispatcher.disp atch(Unknown Source)&#13; [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD ocument(Unknown Source)&# 13; [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)&#13; [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)&#13; [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)&#13; [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)&#13; [java] at org.oasis.ebxml.registry.bindings.cms.impl.runtime.UnmarshallerImpl.unmarsha l(UnmarshallerImpl.java:1 40)&#13; [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshall erImpl.java:131)&#13; [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshall erImpl.java:99)&#13; [java] at org.freebxml.omar.common.BindingUtility.getRequestObject(BindingUtility.java :374)&#13; [java] ... 32 more&#13; [java] </rs:StackTrace></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelop e>Elapsed time in seconds: 0 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642</a> _______________________________________________ ebxmlrr-tech mailing list <a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ebxmlrr-tech">https://lists.sourceforge.net/lists/listinfo/ebxmlrr-tech</a> </pre> </blockquote> <br> <br> <pre class="moz-signature" cols="72">-- Regards, Farrukh </pre> </body> </html> |