Opened 17 years ago
Last modified 17 years ago
#859 closed defect
Downloading file from web services fails if the filename in BASE starts with a number — at Initial Version
Reported by: | Martin Svensson | Owned by: | Martin Svensson |
---|---|---|---|
Priority: | critical | Milestone: | BASE 2.5 |
Component: | webservices | Version: | trunk |
Keywords: | Cc: |
Description
This is probably because the file name is used as an element name in the message.
The exception thrown on the client side looks like this:
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '2' (code 50) in content after '<' (malformed start element?).
at [row,col {unknown-source}]: [1,217]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239) at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:552) at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:563) at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstElement(OMElementImpl.java:823) at net.sf.basedb.ws.client.AbstractRPCClient.invokeFileBlocking(AbstractRPCClient.java:80) at net.sf.basedb.ws.client.RawBioAssayClient.downloadRawDataByType(RawBioAssayClient.java:125) at TestWebservices.test_getRawDataInExperiment(TestWebservices.java:416) at TestWebservices.test_all(TestWebservices.java:147) at TestWebservices.main(TestWebservices.java:80)
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '2' (code 50) in content after '<' (malformed start element?).
at [row,col {unknown-source}]: [1,217]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2852) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:153) ... 8 more