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 "duanlei (JIRA)" <ji...@apache.org> on 2008/07/25 05:17:31 UTC
[jira] Created: (AXIS2-3944) conn't delete xml file
OMElement WebService
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3944) conn't delete xml file
OMElement WebService
Posted by "rathiika (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645462#action_12645462 ]
rathiika commented on AXIS2-3944:
---------------------------------
can u tell me on what purpose u r deleting it
> 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Closed: (AXIS2-3944) conn't delete xml file
OMElement WebService
Posted by "David Illsley (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (AXIS2-3944) conn't delete xml file
OMElement WebService
Posted by "duanlei (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646150#action_12646150 ]
duanlei commented on AXIS2-3944:
--------------------------------
OMElement WebService
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_131914_28212676.1226283890723"
X-Originating-IP: [220.174.225.178]
X-Priority: 3
X-Mailer: Coremail Webmail Server Version XT_Ux_snapshot build
080919(6068.1917.1874) Copyright (c) 2002-2008 www.mailtech.cn 163com
------=_Part_131914_28212676.1226283890723
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
I have solved it
=E5=9C=A82008-11-06=EF=BC=8C"rathiika (JIRA)" <ji...@apache.org> =E5=86=99=
=E9=81=93=EF=BC=9A
=09
[ https://issues.apache.org/jira/browse/AXIS2-3944?page=3Dcom.atlassian=
.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1264=
5462#action_12645462 ]=20
rathiika commented on AXIS2-3944:
---------------------------------
can u tell me on what purpose u r deleting it=20
utStream(path));
w time WHY?
--=20
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
------=_Part_131914_28212676.1226283890723
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
I have solved it<br><br><br>=E5=9C=A82008-11-06=EF=BC=8C"rathiika (JIRA)" &=
lt;jira@apache.org> =E5=86=99=E9=81=93=EF=BC=9A<br> <BLOCKQUOTE id=3D"is=
ReplyContent" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER=
-LEFT: #ccc 1px solid"><PRE>=09
[ https://issues.apache.org/jira/browse/AXIS2-3944?page=3Dcom.atlassian=
.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D=
12645462#action_12645462 ]=20
rathiika commented on AXIS2-3944:
---------------------------------
can u tell me on what purpose u r deleting it=20
> 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=3DStAXUtils.getXMLInputFactory();
> XMLStreamReader parser =3D inputFactory.createXMLStreamReader(new File=
InputStream(path));
> StAXOMBuilder builder =3D new StAXOMBuilder(parser);
> OMDocument doc =3D builder.getDocument();
> OMElement dt =3D (OMElement) doc.getFirstOMChild();
> use upper code to read a xml file to OMElement object =20
> =20
> // 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 =20
> =20
--=20
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
</PRE></BLOCKQUOTE><br><!-- footer --><br>=20
<hr>
<font style=3D"font-size:12px;line-height:15px;">[=E5=B9=BF=E5=91=8A] </fon=
t><font style=3D"font-size:12px;line-height:15px;">=E9=87=91=E7=A7=8B=E6=9C=
=80</font><a style=3D"font-size:12px;line-height:15px; color:blue; text-dec=
oration:underline;" href=3D"http://popme.163.com/link/003985_1010_7027.html=
">=E5=85=B3=E6=B3=A8=E6=A5=BC=E7=9B=98-=E6=88=BF=E4=B8=8D=E8=83=9C=E6=88=BF=
</a>
------=_Part_131914_28212676.1226283890723--
> 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org