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 "Kazushi KANESHIRO (JIRA)" <ji...@apache.org> on 2007/11/09 15:19:51 UTC

[jira] Updated: (AXIS2-3332) java.lang.IllegalStateException on org.apache.axis2.transport.TransportUtils.deleteAttachments.

     [ https://issues.apache.org/jira/browse/AXIS2-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kazushi KANESHIRO updated AXIS2-3332:
-------------------------------------

    Attachment: TransportUtils(pacth).java

This is my fixed file for this issue.

Please check and fix the problem. 

thanks,


> java.lang.IllegalStateException on org.apache.axis2.transport.TransportUtils.deleteAttachments.
> -----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3332
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3332
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.3
>         Environment: Axis2 1.3, JDK 1.5.0.0.9
>            Reporter: Kazushi KANESHIRO
>         Attachments: TransportUtils(pacth).java
>
>
> I using org.apache.axiom.attachments.IncomingAttachmentStreams in my business-logic.
> Tthe problem of java.lang.IllegalStateException is occurred with Axis2-13.
> Here are the callstack, 
> java.lang.IllegalStateException: The attachments stream can only be accessed once; either by using the IncomingAttachmentStreams class or by getting a collection of AttachmentPart objects. They cannot both be called within the life time of the same service request.
> 	at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:517)
> 	at org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:462)
> 	at org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.java:427)
> 	at org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.java:420)
> 	at org.apache.axis2.transport.TransportUtils.deleteAttachments(TransportUtils.java:481)
> 	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:189)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Thread.java:595)
> I will send my fixed file for the problem. 
> Please refer to fix.
> thanks,

-- 
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