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:17:50 UTC
[jira] Created: (AXIS2-3332) java.lang.IllegalStateException on
org.apache.axis2.transport.TransportUtils.deleteAttachments.
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
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
[jira] Updated: (AXIS2-3332) java.lang.IllegalStateException on
org.apache.axis2.transport.TransportUtils.deleteAttachments.
Posted by "Kazushi KANESHIRO (JIRA)" <ji...@apache.org>.
[ 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 based on SVN 594272).java
I have created a patch file based on lastest version in subversion.
I send the file with this message.
Thanks,
Kazuhi.
> 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 based on SVN 594272).java, 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
[jira] Updated: (AXIS2-3332) java.lang.IllegalStateException on
org.apache.axis2.transport.TransportUtils.deleteAttachments.
Posted by "Kazushi KANESHIRO (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (AXIS2-3332) java.lang.IllegalStateException on
org.apache.axis2.transport.TransportUtils.deleteAttachments.
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-3332:
------------------------------------
Fix Version/s: 1.4
> 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
> Fix For: 1.4
>
> Attachments: TransportUtils(pacth based on SVN 594272).java, 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
[jira] Commented: (AXIS2-3332) java.lang.IllegalStateException on
org.apache.axis2.transport.TransportUtils.deleteAttachments.
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579209#action_12579209 ]
Davanum Srinivas commented on AXIS2-3332:
-----------------------------------------
Fixed in svn revision 637619
> 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
> Fix For: 1.4
>
> Attachments: TransportUtils(pacth based on SVN 594272).java, 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
[jira] Commented: (AXIS2-3332) java.lang.IllegalStateException on
org.apache.axis2.transport.TransportUtils.deleteAttachments.
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541837 ]
Deepal Jayasinghe commented on AXIS2-3332:
------------------------------------------
Will you be able to send the SVN diff , then we can just apply that. I am bit worried about just coping the java files you have attached. So please get a svn update and create a patch and attach.
Thanks
Deepal
> 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
[jira] Resolved: (AXIS2-3332) java.lang.IllegalStateException on
org.apache.axis2.transport.TransportUtils.deleteAttachments.
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas resolved AXIS2-3332.
-------------------------------------
Resolution: Fixed
> 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
> Fix For: 1.4
>
> Attachments: TransportUtils(pacth based on SVN 594272).java, 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