[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.ohf] Re: Xds.b submit tests have the same errors

Hi Robert,

The more I think about this, the more I don't think it's related to the document being submitted. At the point of failure in the call to toOM(...), the document being submitted is not connected to what is being "transformed" (and it's not in the SOAP transformation either). The error indicates the "ihe" namespace declaration does not exist - which may be a problem with the DOM implementation that OHF is picking up.

Please, could you add the following line of code to org.eclipse.ohf.ihe.xds.source/src/B_Source.java at line 165 (right above the sender.send(...) call):

     logger.debug(new String(XDSUtils.serialize(ebXMLMetadata)));

Re-run your test and post the output. Also post what version of Java you're using.

Thanks,
-Matt

RobertHua wrote:
  I runned the test that the OHF provided,it occured the same the error.
Always it said :Undeclared namespace prefix "ihe".

The whole errors are here:
Eishay comment: output file is D:\eclipse\WorkBench\OHFWorkBench\org.eclipse.ohf.ihe.xds.source\resources\logs\source.log with append attribute = true
[DEBUG][B_SourceMesaTest.java:43] ***************** SUBMIT TEST ************************
[DEBUG][B_SourceMesaTest.java:44] 2008/8/8 10:14:41
[DEBUG][Mesa12046.java:77] BEGIN MESA 12046
[DEBUG][Mesa12046.java:79] Secure URL is: http://129.6.24.109:9080/axis2/services/xdsrepositoryb
[DEBUG][Mesa12046.java:83] Adding input document, and metadata.
[DEBUG][Document.java:109] Created new Document from File=D:\eclipse\WorkBench\OHFWorkBench\org.eclipse.ohf.ihe.xds.source\.\resources\sample_files\test1\input.xml Descriptor=CDA-R2!text/xml MimeType=text/xml
[DEBUG][SubmitTransactionData.java:257] loadDocumentWithMetadata() adding D:\eclipse\WorkBench\OHFWorkBench\org.eclipse.ohf.ihe.xds.source\resources\sample_files\test1\input.xml


[DEBUG][InputStreamDocumentEntryExtractor.java:62] Loading MetadataPackage.
[DEBUG][InputStreamDocumentEntryExtractor.java:68] Loading Resources.
[DEBUG][InputStreamDocumentEntryExtractor.java:79] Creating DocumentEntry metadata with object from InputStream java.io.FileInputStream@19b5393
[DEBUG][SubmitTransactionData.java:278] DocumentEntry entryUUID generated.
[DEBUG][SubmitTransactionData.java:299] Document metadata loaded. Current DocumentEntry entryUUID: urn:uuid:00f196ea-40f0-7440-e09e-001d7dab48a4.
[DEBUG][SubmitTransactionData.java:304] loadDocumentWithMetadata() document was successfully added.
[DEBUG][SubmitTransactionData.java:587] DocumentEntry metadata found for entryUUID: urn:uuid:00f196ea-40f0-7440-e09e-001d7dab48a4.
[DEBUG][SubmitTransactionData.java:587] DocumentEntry metadata found for entryUUID: urn:uuid:00f196ea-40f0-7440-e09e-001d7dab48a4.
[DEBUG][Mesa12046.java:94] Done setting documentEntry metadata for: org.eclipse.ohf.ihe.xds.metadata.impl.DocumentEntryTypeImpl@4e79f1 (availabilityStatus: <unset>, creationTime: 20060614, entryUUID: urn:uuid:00f196ea-40f0-7440-e09e-001d7dab48a4, hash: null, languageCode: en-US, mimeType: text/xml, repositoryUniqueId: null, serviceStartTime: null, serviceStopTime: null, size: null, uniqueId: 1.2.3.4.133072049007104050.1218161682718.1, uri: null, existing: <unset>)
[DEBUG][Mesa12046.java:98] Applying Submission Set Metadata to the Submission.
[DEBUG][InputStreamSubmissionSetExtractor.java:67] Loading MetadataPackage.
[DEBUG][InputStreamSubmissionSetExtractor.java:73] Loading Resources.
[DEBUG][InputStreamSubmissionSetExtractor.java:84] Creating SubmissionSet metadata with object from InputStream java.io.FileInputStream@5a9de6
[DEBUG][SubmitTransactionData.java:943] Previous Submission entryUUID: urn:uuid:00f175f2-40f0-7440-6816-001d7dab48a4.
[DEBUG][SubmitTransactionData.java:954] Submission Set metadata loaded. Current Submission entryUUID: urn:uuid:00f175f2-40f0-7440-6816-001d7dab48a4.
[DEBUG][Mesa12046.java:116] Submitting Document.
[DEBUG][EbXML_3_0SubmissionSetTransformer.java:115] Setting attributes on the Registry Package.
[DEBUG][EbXML_3_0SubmissionSetTransformer.java:121] Setting Description on the Registry Package.
[DEBUG][EbXML_3_0SubmissionSetTransformer.java:127] Setting Name on the Registry Package.
[DEBUG][EbXML_3_0SubmissionSetTransformer.java:133] Setting Slots on the Registry Package.
[DEBUG][EbXML_3_0SubmissionSetTransformer.java:139] Setting Classifications on the Registry Package.
[DEBUG][EbXML_3_0SubmissionSetTransformer.java:145] Setting External Identifiers on the Registry Package.
[DEBUG][EbXML_3_0SubmissionSetTransformer.java:401] No Submission Set Associated Documents.
[DEBUG][EbXML_3_0SubmissionSetTransformer.java:429] No Submission Set Associated Folders.
[DEBUG][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:343] All submission set metadata added.
[DEBUG][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:117] Adding document metadata to submission set. There are 1 documents to add.
[DEBUG][EbXML_3_0DocumentEntryTransformer.java:113] Setting attributes on the Extrinsic Object.
[DEBUG][EbXML_3_0DocumentEntryTransformer.java:119] Setting Name on the Extrinsic Object.
[DEBUG][EbXML_3_0DocumentEntryTransformer.java:125] Setting Description on the Extrinsic Object.
[DEBUG][EbXML_3_0DocumentEntryTransformer.java:132] Setting Slots on the Extrinsic Object.
[DEBUG][EbXML_3_0DocumentEntryTransformer.java:138] Setting Classifications on the Extrinsic Object.
[DEBUG][EbXML_3_0DocumentEntryTransformer.java:144] Setting ExternalIdentifiers on the Extrinsic Object.
[DEBUG][EbXML_3_0DocumentEntryTransformer.java:197] No parentDocumentID for urn:uuid:00f196ea-40f0-7440-e09e-001d7dab48a4.
[DEBUG][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:324] All document metadata added to submission set.
[INFO ][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:127] Submission set contains no folders.
[DEBUG][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:142] Verifying Submission Set associated documents and associated folders.
[DEBUG][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:431] Verifying associated documents
[DEBUG][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:480] Number of "forgotten" submission set existing associated documents: 0
[DEBUG][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:485] Verifying associated folders
[DEBUG][EbXML_3_0ProvideAndRegisterDocumentSetTransformer.java:526] Number of "forgotten" submission set existing associated folders: 0
[DEBUG][Loader.java:132] Trying to find [org/apache/axis2/deployment/axis2_default.xml] using sun.misc.Launcher$AppClassLoader@82ba41 class loader.
[DEBUG][Phase.java:96] Handler RequestURIBasedDispatcher added to Phase Transport
[DEBUG][Phase.java:96] Handler SOAPActionBasedDispatcher added to Phase Transport
[DEBUG][Phase.java:96] Handler AddressingBasedDispatcher added to Phase Addressing
[DEBUG][Phase.java:96] Handler RequestURIBasedDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler SOAPActionBasedDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler RequestURIOperationDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler SOAPMessageBodyBasedDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler HTTPLocationBasedDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler AddressingBasedDispatcher added to Phase Addressing
[DEBUG][Phase.java:96] Handler RequestURIBasedDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler SOAPActionBasedDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler RequestURIOperationDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler SOAPMessageBodyBasedDispatcher added to Phase Dispatch
[DEBUG][Phase.java:96] Handler HTTPLocationBasedDispatcher added to Phase Dispatch
[INFO ][Utils.java:191] Created temporary file : C:\DOCUME~1\postgres\LOCALS~1\Temp\_axis2\axis255416addressing-1.3.jar
[DEBUG][ProjectResourceBundle.java:236] getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
[DEBUG][ProjectResourceBundle.java:412] loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis2.resource, locale zh_CN
[DEBUG][ProjectResourceBundle.java:289] Created org.apache.axis2.i18n.resource, linked to parent null
[DEBUG][ProjectResourceBundle.java:236] getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
[DEBUG][ProjectResourceBundle.java:70] org.apache.axis2.i18n.resource::handleGetObject(addingnewmodule)
[DEBUG][DeploymentEngine.java:465] Adding new module
[DEBUG][ProjectResourceBundle.java:70] org.apache.axis2.i18n.resource::handleGetObject(deployeingmodule)
[INFO ][ModuleDeployer.java:72] Deploying module: addressing-1.3
[INFO ][Utils.java:191] Created temporary file : C:\DOCUME~1\postgres\LOCALS~1\Temp\_axis2\axis255417addressing-1.3.mar
[DEBUG][ProjectResourceBundle.java:70] org.apache.axis2.i18n.resource::handleGetObject(addingnewmodule)
[DEBUG][DeploymentEngine.java:465] Adding new module
[DEBUG][ProjectResourceBundle.java:70] org.apache.axis2.i18n.resource::handleGetObject(deployeingmodule)
[INFO ][ModuleDeployer.java:72] Deploying module: addressing-1.3
[DEBUG][AxisService.java:716] mapActionToOperation: Mapping Action to Operation: action: anonRobustOp; operation: org.apache.axis2.description.RobustOutOnlyAxisOperation@b1aebf
[DEBUG][AxisService.java:716] mapActionToOperation: Mapping Action to Operation: action: urn:anonRobustOp; operation: org.apache.axis2.description.RobustOutOnlyAxisOperation@b1aebf
[DEBUG][AxisService.java:716] mapActionToOperation: Mapping Action to Operation: action: anonOutonlyOp; operation: org.apache.axis2.description.OutOnlyAxisOperation@1c65216
[DEBUG][AxisService.java:716] mapActionToOperation: Mapping Action to Operation: action: urn:anonOutonlyOp; operation: org.apache.axis2.description.OutOnlyAxisOperation@1c65216
[DEBUG][AxisService.java:716] mapActionToOperation: Mapping Action to Operation: action: anonOutInOp; operation: org.apache.axis2.description.OutInAxisOperation@1b6101e
[DEBUG][AxisService.java:716] mapActionToOperation: Mapping Action to Operation: action: urn:anonOutInOp; operation: org.apache.axis2.description.OutInAxisOperation@1b6101e
[DEBUG][AbstractXDSSoapClient.java:113] Beginning XDS SOAP Send
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "ihe"
at [row,col {unknown-source}]: [2,42]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239)
at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:130)


at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:359)

at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:533)
at org.eclipse.ohf.ihe.xds.soap.AbstractXDSSoapClient.send(AbstractXDSSoapClient.java:116)


at org.eclipse.ohf.ihe.xds.source.B_Source.submit(B_Source.java:166)
at org.eclipse.ohf.ihe.xds.source.test.mesa.Mesa12046.test(Mesa12046.java:117)
at org.eclipse.ohf.ihe.xds.source.test.mesa.Mesa12046.main(Mesa12046.java:136)
Caused by: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "ihe"
at [row,col {unknown-source}]: [2,42]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:467)
at com.ctc.wstx.sr.NsInputElementStack.resolveAndValidateElement(NsInputElementStack.java:368)


at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2945)

at com.ctc.wstx.sr.BasicStreamReader.handleRootElem(BasicStreamReader.java:2093)

at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2073)

at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:153)
... 7 more