[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user-ja
Subject:    [jira] [Commented] (AXIS-2574) Reading an attachment (slowly) can cause resource deleted error
From:       "Robert Lazarski (Jira)" <axis-dev () ws ! apache ! org>
Date:       2022-05-26 15:50:00
Message-ID: JIRA.12353569.1161253002000.148043.1653580200068 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/AXIS-2574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17542545#comment-17542545 \
] 

Robert Lazarski commented on AXIS-2574:
---------------------------------------

This issue is for Axis 1.x that is only available in source form and is unrelated to \
Axis2.  

> Reading an attachment (slowly) can cause resource deleted error
> ---------------------------------------------------------------
> 
> Key: AXIS-2574
> URL: https://issues.apache.org/jira/browse/AXIS-2574
> Project: Axis
> Issue Type: Bug
> Components: Basic Architecture
> Affects Versions: 1.2.1
> Reporter: Steve Sowerby
> Assignee: Jochen Wiedmann
> Priority: Major
> Attachments: Call.diff, Call.diff, Call.java, axis-2574.patch
> 
> 
> When reading the data from an attachment we periodically get the following error:
> java.io.IOException: Resource has been deleted.
> at org.apache.axis.attachments.ManagedMemoryDataSource$Instream.read(ManagedMemoryDataSource.java:688)
>  Having run this throught a debugger and had a brief look at the code it seems to \
> me there is a race condition of sorts. The MemoryManagedDataSource that provides \
> the InputStream has been marked as deleted by the finalize method of \
> AttachmentPart. So basically if the client doesn't read off the attachment fast \
> enough then the writer will have finished and the AttachmentPart gets finalized and \
> blam, you've got a deleted MemoryManagedDataSource. I'm not sure what the best fix \
> is.  Perhaps the deletion should actually be some reference count rather than a \
> simple boolean.  That way the MemoryManagedDataSource gets deleted once all the \
> writers and readers are done?  Although perhaps then there would be an issue if the \
> client was very slow to even open the attachment?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic