jax-ws
  1. jax-ws
  2. JAX_WS-960

[Bug 8128780] CTS JAX-WS: XMLSTREAMREADERTOXMLSTREAMWRITER.BRIDGE INTERNALERROR

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: 2.2.6
    • Component/s: None
    • Labels:
      None

      Description

      Migration of existing WebLogic / Oracle bug: https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=8128780

      @ ---- Original "Title" (Abstract) from Clarify ----
      @ CTS JAX-WS: XMLSTREAMREADERTOXMLSTREAMWRITER.BRIDGE INTERNALERROR: PROCESSING
      @ EVENT: 8
      @ ---- End of Original "Title" (Abstract) from Clarify ----
      @ --------------------------------------------
      @ ----- Migrated Description from Clarify ----
      @ --------------------------------------------
      @ DESCRIPTION:
      @ (What were the symptoms? What was the user or application trying to do?)
      @
      @ Test case throws exception: processing event: 8
      @ *
      @ com/sun/ts/tests/jaxws/api/javax_xml_ws/Dispatch/Client.java#invokeOneWayNegTe
      @ stXML_from_wsappclient : Client_invokeOneWayNegTestXML_from_wsappclient
      @ *
      @ com/sun/ts/tests/jaxws/api/javax_xml_ws/Dispatch/Client.java#invokeOneWayNegTe
      @ stXML_from_wsejb : Client_invokeOneWayNegTestXML_from_wsejb
      @ *
      @ com/sun/ts/tests/jaxws/api/javax_xml_ws/Dispatch/Client.java#invokeOneWayNegTe
      @ stXML_from_wsservlet : Client_invokeOneWayNegTestXML_from_wsservlet
      @
      @ Stack trace:
      @
      @ 10-16-2006 16:34:15: SVR-ERROR: java.lang.InternalError: processing event: 8
      @ at
      @ com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter.bridge(XMLStreamReade
      @ rToXMLStreamWriter.java:109)
      @ at
      @ com.sun.xml.ws.message.stream.StreamMessage.writePayloadTo(StreamMessage.java:
      @ 219)
      @ at
      @ com.sun.xml.ws.message.source.PayloadSourceMessage.writePayloadTo(PayloadSourc
      @ eMessage.java:99)
      @ at
      @ com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:12
      @ 4)
      @ at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:91)
      @ at
      @ com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:170)
      @ at
      @ com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPi
      @ pe.java:110)
      @ at com.sun.xml.ws.protocol.soap.ClientMUPipe.process(ClientMUPipe.java:58)
      @ at com.sun.xml.ws.handler.HandlerPipe.process(HandlerPipe.java:107)
      @ at com.sun.xml.ws.handler.HandlerPipe.process(HandlerPipe.java:107)
      @ at com.sun.xml.ws.client.Stub.process(Stub.java:121)
      @ at
      @ com.sun.xml.ws.client.dispatch.DispatchImpl.invokeOneWay(DispatchImpl.java:199
      @ )
      @ at
      @ com.sun.ts.tests.jaxws.api.javax_xml_ws.Dispatch.Client.invokeOneWayNegTestXML
      @ (Client.java:581)
      @ at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;
      @ [Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      @ at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)
      @ Ljava.lang.Object;(Unknown Source)
      @ at com.sun.ts.lib.harness.EETest.run(EETest.java:495)
      @ at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:112)
      @ at
      @ com.sun.ts.tests.common.vehicle.wsejb.WSEJBVehicle.runTest(WSEJBVehicle.java:8
      @ 2)
      @ at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;
      @ [Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      @ at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)
      @ Ljava.lang.Object;(Unknown Source)
      @ at
      @ com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUs
      @ ingReflection(AopUtils.java:266)
      @ at
      @ com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocati
      @ on.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
      @ at
      @ com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocati
      @ on.proceed(ReflectiveMethodInvocation.java:148)
      @ at
      @ weblogic.ejb.container.injection.EnvironmentInterceptor.invoke(EnvironmentInte
      @ rceptor.java:32)
      @ at
      @ com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocati
      @ on.proceed(ReflectiveMethodInvocation.java:170)
      @ at
      @ com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterc
      @ eptor.invoke(ExposeInvocationInterceptor.java:95)
      @
      @ Filing this CR for tracking.
      @
      @ CONFIGURATION:
      @
      @
      @ WORKAROUND:
      @ --------------------------------------------
      @ - End of Migrated Description from Clarify -
      @ --------------------------------------------
      @ CPU Type: ALL PLATFORMS
      @ Original Reported-By: PFUNG
      @ Original Programmer (Owner): XIMENG
      @ Original Last Updated By: XIMENG
      @ Release Notes Flag: No
      @ ---------- Resolution Summary ----------
      @ Fix RI bug to conform to JAX-WS specification
      @ Test Class: Regression Test
      @ Time Spent: 1
      @ ---------------------------------------
      @ ---- Migrated History from Clarify ----
      @ ---------------------------------------
      @ >>> pfung Fri Oct 27 08:54:34 PDT 2006 <<<
      @ CR-Cloned-from-CR298633
      @
      @ >>> sedmonds Fri Nov 03 17:53:07 PST 2006 <<<
      @ The problem here is that the XML being processed is:
      @
      @ <HelloRequest
      @ xmlns="http://helloservice.org/types"><argument>foo</argument><HelloRequest>
      @ which has a start element tag at the end instead of a end element tag.
      @
      @ The test is actually testing bad xml.
      @
      @ I've sent an email to Ajay and Abhijit about whether this works against the
      @ JAX-WS RI.
      @
      @ +++ Changes +++
      @ Status: Co-Confirmed -> BF-Being Fixed
      @
      @ >>> yiluo Mon Nov 20 01:22:01 PST 2006 <<<
      @
      @
      @ +++ Changes +++
      @ Owner: sedmonds -> wtian
      @ CC List 2: -> bj-wls-dev
      @
      @ >>> yiluo Mon Nov 20 01:23:09 PST 2006 <<<
      @
      @
      @ +++ Changes +++
      @ Owner: wtian -> ximeng
      @
      @ >>> ximeng Tue Nov 21 18:12:21 PST 2006 <<<
      @ Hi Stuart,
      @ Could you please tell me whether this works against the JAX-WS RI.
      @ Thanks,
      @ Simon
      @
      @ +++ Changes +++
      @ CC List 1: pfung,wls-xml-dev -> pfung,wls-xml-dev,ximeng
      @
      @ >>> ximeng Tue Nov 21 23:14:56 PST 2006 <<<
      @ I read the JAX-WS specification 2.0. In section 4.3.2 of the spec, I find
      @ the content as bellow:
      @ Conformance (Failed Dispatch.invokeOneWay): When an operation is invoked
      @ using an invokeOneWay method, an implementation MUST throw a
      @ WebServiceException if there is any error in the configuration of the
      @ Dispatch instance or if an error is detected during the remote operation
      @ invocation.
      @ I investigate the sun JAX-WS RI source code. When an error is detected
      @ during the remote operation invocation, it throws a java.lang.InternalError.
      @ This behavior does not conform to specification. So I think JAX-WS RI can?t
      @ pass this test case.
      @ -Simon
      @
      @ >>> ximeng Thu Nov 30 18:29:19 PST 2006 <<<
      @
      @
      @ +++ Changes +++
      @ Status: BF-Being Fixed -> SD-Source Delivered
      @ Condition: Open -> Fixed
      @ Load Fixed: TBD -> Load11
      @ Release Note: Unknown -> No
      @ Resolution Sum: -> Fix RI bug to conform to JAX-WS specification
      @ Time Spent: -> 1
      @ P4 Changes: -> 870297
      @
      @ >>> ximeng Sun Dec 03 18:13:16 PST 2006 <<<
      @
      @
      @ +++ Changes +++
      @ Status: SD-Source Delivered -> ST-System Test
      @
      @ >>> ximeng Sun Dec 03 18:13:36 PST 2006 <<<
      @
      @
      @ +++ Changes +++
      @ Status: ST-System Test -> TP-Test Passed now
      @ Condition: Fixed -> Closed
      @
      @ >>> akaleemu Fri Apr 13 01:11:35 PDT 2007 <<<
      @ Mass-Update-2007-4-13-0-35-12
      @ Updating Release found from Dante to 10.0
      @
      @ +++ Changes +++
      @ Release Found: Dante -> 10.0
      @
      @ >>> akaleemu Fri Apr 13 03:05:34 PDT 2007 <<<
      @ Mass-Update-2007-4-13-2-15-26
      @ Updating Release Fixed from Dante to 10.0
      @
      @ +++ Changes +++
      @ Release Fixed: Dante -> 10.0
      @ --------------------------------------------
      @ — End of Migrated History from Clarify —
      @ --------------------------------------------

      1. jax_ws-960.patch
        0.6 kB
        rjeberhard_oracle

        Activity

        Hide
        rjeberhard_oracle added a comment -

        Proposed fix

        Show
        rjeberhard_oracle added a comment - Proposed fix
        Hide
        rjeberhard_oracle added a comment -

        Proposed fix

        Show
        rjeberhard_oracle added a comment - Proposed fix
        Hide
        ramapulavarthi added a comment -

        Should the error message say ("Cannot process event: " + event) instead of ("processing event: " + event);

        Show
        ramapulavarthi added a comment - Should the error message say ("Cannot process event: " + event) instead of ("processing event: " + event);
        Hide
        jitu added a comment -

        Apart from the current patch, the following code can also be added to give more meaniful error.

        case XMLStreamConstants.END_DOCUMENT:
        throw new XMLStreamException("Malformed XML at depth="depth", Reached EOF. Event="+event);

        Show
        jitu added a comment - Apart from the current patch, the following code can also be added to give more meaniful error. case XMLStreamConstants.END_DOCUMENT: throw new XMLStreamException("Malformed XML at depth=" depth ", Reached EOF. Event="+event);

          People

          • Assignee:
            rjeberhard_oracle
            Reporter:
            rjeberhard_oracle
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: