[Issue 938] New - StreamMessage has been already consumed

View: New views
9 Messages — Rating Filter:   Alert me  

[Issue 938] New - StreamMessage has been already consumed

by daveronge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938
                 Issue #|938
                 Summary|StreamMessage has been already consumed
               Component|wsit
                 Version|1.3
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|rm
             Assigned to|m_potociar
             Reported by|daveronge






------- Additional comments from daveronge@... Thu Jun 19 10:04:19 +0000 2008 -------
With all RM request-response and from-java-built one-way cases as well following
error appears with build from
 http://kohsuke.sfbay/hudson/job/wsit-javanet/3220/artifact/dist/metro.zip
(June 18, after fix to #919 one-way errors)
java.lang.AssertionError: StreamMessage has been already consumed. See the
nested exception for where it's consumed
        at com.sun.xml.ws.message.stream.StreamMessage.unconsumed(StreamMessage.java:477)
        at com.sun.xml.ws.message.stream.StreamMessage.consume(StreamMessage.java:270)
        at com.sun.xml.ws.rm.runtime.PacketAdapter.consume(PacketAdapter.java:166)
        at
com.sun.xml.ws.rm.runtime.Rm10ClientSession.terminateOutboundSequence(Rm10ClientSession.java:187)
        at com.sun.xml.ws.rm.runtime.ClientSession.close(ClientSession.java:209)
        at com.sun.xml.ws.rm.runtime.ClientRmTube.preDestroy(ClientRmTube.java:180)
        at
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl.preDestroy(AbstractFilterTubeImpl.java:93)
        at
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl.preDestroy(AbstractFilterTubeImpl.java:93)
        at
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl.preDestroy(AbstractFilterTubeImpl.java:93)
        at
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl.preDestroy(AbstractFilterTubeImpl.java:93)
        at
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl.preDestroy(AbstractFilterTubeImpl.java:93)
        at com.sun.xml.ws.client.Stub.close(Stub.java:312)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:122)
        at $Proxy37.close(Unknown Source)
        at
tango2tango.add605soap2rsd2krequestresponse.client.ReliableRoundtripTest.sendEchoCore(ReliableRoundtripTest.java:184)
        at
tango2tango.add605soap2rsd2krequestresponse.client.ReliableRoundtripTest.sendEcho(ReliableRoundtripTest.java:229)
        at
tango2tango.add605soap2rsd2krequestresponse.client.ReliableRoundtripTest.testSendEcho1(ReliableRoundtripTest.java:97)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:136)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:167)
        at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:118)
        at
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41)
Caused by: java.lang.Exception
        at com.sun.xml.ws.message.stream.StreamMessage.unconsumed(StreamMessage.java:481)
        at
com.sun.xml.ws.message.stream.StreamMessage.readPayloadAsJAXB(StreamMessage.java:242)
        at
com.sun.xml.ws.rm.runtime.PacketAdapter.unmarshallMessage(PacketAdapter.java:430)
        at
com.sun.xml.ws.rm.runtime.Rm10ClientSession.terminateOutboundSequence(Rm10ClientSession.java:174)
        ... 33 more

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 938] StreamMessage has been already consumed

by daveronge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938



User daveronge changed the following:

                What    |Old value                 |New value
================================================================================
                     URL|                          |http://beetle.czech.sun.co
                        |                          |m/~dr199838/results/938-te
                        |                          |st/
--------------------------------------------------------------------------------




------- Additional comments from daveronge@... Thu Jun 19 10:42:18 +0000 2008 -------
Added URL to test results including logs.

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 938] StreamMessage has been already consumed

by m_potociar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938



User m_potociar changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|m_potociar                |jitu
--------------------------------------------------------------------------------
              QA contact|daveronge                 |jbenoit
--------------------------------------------------------------------------------
            Subcomponent|rm                        |jaxws-runtime
--------------------------------------------------------------------------------




------- Additional comments from m_potociar@... Fri Jun 20 09:23:09 +0000 2008 -------
Reassigning to the jaxws runtime:

The exception is raised in a StreamMessage as a result of (probably multiple)
calls to Message.consume() method. However, in the method definition and javadoc
there is no warning that it is illegal to call the method multiple times:

  /**
   * Marks the message as consumed, without actually reading the contents.
   *
   * <p>
   * This method provides an opportunity for implementations to reuse
   * any reusable resources needed for representing the payload.
   */
  public void consume() {}

More, I didn't find any method via which I would be able to tell, whether a
message was already consumed or not (something like Message.isConsumed()). Jitu,
could you clarify this?

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 938] StreamMessage has been already consumed

by jitu-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938






------- Additional comments from jitu@... Fri Jun 20 19:12:54 +0000 2008 -------
I will clarify the semantics of consume(). But what's the need for RM to call
consume() method ?

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 938] StreamMessage has been already consumed

by m_potociar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938



User m_potociar changed the following:

                What    |Old value                 |New value
================================================================================
     Attachment is patch|                          |Created an attachment (id=
                        |                          |616)
Patch that should fix
                        |                          | the issue (+ few others)

--------------------------------------------------------------------------------




------- Additional comments from m_potociar@... Thu Jul  3 16:54:04 +0000 2008 -------
Created an attachment (id=616)
Patch that should fix the issue (+ few others)


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 938] StreamMessage has been already consumed

by m_potociar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938






------- Additional comments from m_potociar@... Thu Jul  3 16:55:07 +0000 2008 -------
Hello Jitu,
I have created a patch for you. Please review it and check it in.

Thanks,
Marek

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 938] StreamMessage has been already consumed

by jitu-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938






------- Additional comments from jitu@... Tue Jul  8 00:20:43 +0000 2008 -------
I think we shouldn't touch readXXX methods now. But just fix that consume() can
be called multiple times. Does that work for you ?

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 938] StreamMessage has been already consumed

by jitu-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938



User jitu changed the following:

                What    |Old value                 |New value
================================================================================
        Target milestone|not determined            |1.4
--------------------------------------------------------------------------------




------- Additional comments from jitu@... Sat Jul 12 01:08:23 +0000 2008 -------
Pretty risky for 1.3. Targeting for 1.4

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 938] StreamMessage has been already consumed

by jitu-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=938



User jitu changed the following:

                What    |Old value                 |New value
================================================================================
        Target milestone|1.4                       |1.5
--------------------------------------------------------------------------------




------- Additional comments from jitu@... Fri Sep  5 22:48:43 +0000 2008 -------
will target for 1.5

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...

LightInTheBox - Buy quality products at wholesale price