Urgent: Bug in Document Source when trying to submit a large CDA_R2 XML document [message #34946] |
Mon, 15 October 2007 16:53  |
Eclipse User |
|
|
|
I am trying to submit a large CDA_R2(xml)Document using Document source
OHF API.
It seems there is a problem in axis2-saaj-1.1.1.jar, A method in
SAAJDataSource.flushToDisk() try to create a temporary file (temp) when
the size of document is beyond some limit and it fails.
"java.lang.IllegalArgumentException: Illegal Argument"
[2007-10-15 16:02:58,930][INFO ][Source.java:339] Submitting Provide and
Register Document Set transaction to Repository:
http://lswin10.dfw.ibm.com:9080/IHIIRepository/SubmissionSet Receiver
[2007-10-15 16:34:42,076][ERROR][Source.java:343] Error sending SOAP
message to the repository. Error was Illegal Argument
java.lang.IllegalArgumentException: Illegal Argument
at
org.apache.axis2.saaj.AttachmentPartImpl.setContent(Attachme ntPartImpl.java:218)
at javax.xml.soap.SOAPMessage.createAttachmentPart(SOAPMessage. java:257)
at
org.eclipse.ohf.ihe.xds.soap.XDSSoapClientAXIS2.send(XDSSoap ClientAXIS2.java:243)
at org.eclipse.ohf.ihe.xds.source.Source.submit(Source.java:340 )
at
com.sage.ohfservice.handler.DocumentSourceService.submitDocu ment(DocumentSourceService.java:65)
at
com.sage.ohfservice.impl.IHETransactionImpl.submitDocument(I HETransactionImpl.java:89)
at
com.sage.controller.DocumentSourceController.submitDocument( DocumentSourceController.java:155)
at
com.sage.controller.DocumentSourceController.actionPerformed (DocumentSourceController.java:105)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unk nown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknow n Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
During debug i found an error message throws (java.io.IOException: The
system cannot find the path specified) from the method
SAAJDataSource.flushToDisk()
Do we have an urgent fix for this.
Thanks,
Umesh Shaw
|
|
|
|
|
Re: Urgent: Bug in Document Source when trying to submit a large CDA_R2 XML document [message #35084 is a reply to message #35015] |
Tue, 16 October 2007 13:49  |
Eclipse User |
|
|
|
Hi Venkat -
This process works the same as submitting a CDA document, just make sure
you choose the appropriate DocumentDescriptor (if you use plugins). I
believe the OHF Bridge this is the documentType parameter. If the
document is a pure PDF (ie. not B64 encoded inside a CDA) then the
automatic metadata extraction routine won't pull additional information
from the document. You would have to complete this information your self
(via the plugin apis) ... or live with the minimal set (if you are using
the bridge).
Additonally, the XDS-SD (Cross Enterprise Sharing of Scanned Documents)
profile can be found here:
http://www.ihe.net/Technical_Framework/upload/IHE_ITI_TF_Sup plement_XDS_Scanned_Docs_TI_2007_08_20.pdf
Hope this helps,
Sarah
Umesh Shaw wrote:
> Sarah
> I just realized that this issue was already fixed. Sorry about that. I
> just had another question. Is there any documentation on how to submit a
> PDF/Scanned Document to the repository? Let me know. Thanks
> Venkat
>
|
|
|
Re: Urgent: Bug in Document Source when trying to submit a large CDA_R2 XML document [message #582114 is a reply to message #34946] |
Mon, 15 October 2007 17:05  |
Eclipse User |
|
|
|
Hi Umesh -
I'll look into this as soon as my meeting is over and respond through
Bugzilla.
- Sarah
Umesh Shaw wrote:
> I am trying to submit a large CDA_R2(xml)Document using Document source
> OHF API.
> It seems there is a problem in axis2-saaj-1.1.1.jar, A method in
> SAAJDataSource.flushToDisk() try to create a temporary file (temp) when
> the size of document is beyond some limit and it fails.
>
> "java.lang.IllegalArgumentException: Illegal Argument"
>
> [2007-10-15 16:02:58,930][INFO ][Source.java:339] Submitting Provide and
> Register Document Set transaction to Repository:
> http://lswin10.dfw.ibm.com:9080/IHIIRepository/SubmissionSet Receiver
> [2007-10-15 16:34:42,076][ERROR][Source.java:343] Error sending SOAP
> message to the repository. Error was Illegal Argument
> java.lang.IllegalArgumentException: Illegal Argument
> at
> org.apache.axis2.saaj.AttachmentPartImpl.setContent(Attachme ntPartImpl.java:218)
>
> at
> javax.xml.soap.SOAPMessage.createAttachmentPart(SOAPMessage. java:257)
> at
> org.eclipse.ohf.ihe.xds.soap.XDSSoapClientAXIS2.send(XDSSoap ClientAXIS2.java:243)
>
> at org.eclipse.ohf.ihe.xds.source.Source.submit(Source.java:340 )
> at
> com.sage.ohfservice.handler.DocumentSourceService.submitDocu ment(DocumentSourceService.java:65)
>
> at
> com.sage.ohfservice.impl.IHETransactionImpl.submitDocument(I HETransactionImpl.java:89)
>
> at
> com.sage.controller.DocumentSourceController.submitDocument( DocumentSourceController.java:155)
>
> at
> com.sage.controller.DocumentSourceController.actionPerformed (DocumentSourceController.java:105)
>
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unk nown
> Source)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at javax.swing.JComponent.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknow n
> Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
>
> During debug i found an error message throws (java.io.IOException: The
> system cannot find the path specified) from the method
> SAAJDataSource.flushToDisk()
>
> Do we have an urgent fix for this.
>
> Thanks,
>
> Umesh Shaw
>
>
>
>
|
|
|
|
Re: Urgent: Bug in Document Source when trying to submit a large CDA_R2 XML document [message #582180 is a reply to message #35015] |
Tue, 16 October 2007 13:49  |
Eclipse User |
|
|
|
Hi Venkat -
This process works the same as submitting a CDA document, just make sure
you choose the appropriate DocumentDescriptor (if you use plugins). I
believe the OHF Bridge this is the documentType parameter. If the
document is a pure PDF (ie. not B64 encoded inside a CDA) then the
automatic metadata extraction routine won't pull additional information
from the document. You would have to complete this information your self
(via the plugin apis) ... or live with the minimal set (if you are using
the bridge).
Additonally, the XDS-SD (Cross Enterprise Sharing of Scanned Documents)
profile can be found here:
http://www.ihe.net/Technical_Framework/upload/IHE_ITI_TF_Sup plement_XDS_Scanned_Docs_TI_2007_08_20.pdf
Hope this helps,
Sarah
Umesh Shaw wrote:
> Sarah
> I just realized that this issue was already fixed. Sorry about that. I
> just had another question. Is there any documentation on how to submit a
> PDF/Scanned Document to the repository? Let me know. Thanks
> Venkat
>
|
|
|
Powered by
FUDForum. Page generated in 0.04632 seconds