You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "David Illsley (JIRA)" <ji...@apache.org> on 2008/12/17 21:32:44 UTC
[jira] Closed: (AXIS2-3944) conn't delete xml file
OMElement WebService
[ https://issues.apache.org/jira/browse/AXIS2-3944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Illsley closed AXIS2-3944.
--------------------------------
Resolution: Invalid
This doesn't look like an Axis2/Axiom problem as it's a file handle that's been opened by standard java code. I'd try looking at the FileInputStream docs and googling for related problems. Off the top of my head I'd make sure that you call close() on the FileInputStream to tell the JVM to release the resources.
> conn't delete xml file OMElement WebService
> -----------------------------------------------------
>
> Key: AXIS2-3944
> URL: https://issues.apache.org/jira/browse/AXIS2-3944
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: axis2
> Reporter: duanlei
>
> XMLInputFactory inputFactory=StAXUtils.getXMLInputFactory();
> XMLStreamReader parser = inputFactory.createXMLStreamReader(new FileInputStream(path));
> StAXOMBuilder builder = new StAXOMBuilder(parser);
> OMDocument doc = builder.getDocument();
> OMElement dt = (OMElement) doc.getFirstOMChild();
> use upper code to read a xml file to OMElement object
>
> // WebService method
> public OMElement RevokeRequest(OMElement soapBody) {
> //
> //
> return object ;//the object is read from xml file
> }
> when client method invoke over , I cann't delete xml file after a few time WHY?
> I am beginner
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.