Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4324936

Marshaling exception for wstring fields of structure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.3.0, 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      merlin
    • CPU:
      generic, x86
    • OS:
      generic, windows_98, windows_nt

      Description

      This affects wstrings of structs in anys.

      Name: rlT66838 Date: 03/24/2000


      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

      1. create IDL like:

         module event
         {
            enum EventType
            {
               metric_created,
               metric_changed,
               metric_deleted,
      metric_error
            };

            struct MetricEvent {
              EventType type;
              wstring metric;
            };
         };

      2. pass instance of MetricEvent as any parameter:

      Any any = _orb().create_any();
      MetricEventHelper.insert(any, new MetricEvent(_event, name));
      pushConsumer.push(any);

      3. receive any and extract like:

      MetricEvent me = MetricEventHelper.extract(_any);

      Notice exception below:


      org.omg.CORBA.MARSHAL: minor code: 999 completed: No
      at com.sun.corba.se.internal.iiop.CDRInputStream.grow
      (CDRInputStream.java:219)
      at com.sun.corba.se.internal.iiop.CDRInputStream.alignAndCheck
      (CDRInputStream.java:210)
      at com.sun.corba.se.internal.iiop.CDRInputStream.read_wstring
      (CDRInputStream.java:494)
      at net.systemi.systemi.distributed.event.MetricEventHelper.read
      (MetricEventHelper.java:72)
      at net.systemi.systemi.distributed.event.MetricEventHelper.extract
      (MetricEventHelper.java:25)
      at net.systemi.systemi.server.alert.Manager$AlertConsumer.push
      (Manager.java:58)
      at org.omg.CosEventComm._PushConsumerImplBase._invoke
      (_PushConsumerImplBase.java:42)
      at com.sun.corba.se.internal.corba.ServerDelegate.dispatch
      (ServerDelegate.java:223)
      at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:227)
      at com.sun.corba.se.internal.iiop.CachedWorkerThread.doWork
      (IIOPConnection.java:262)
      at com.sun.corba.se.internal.iiop.CachedWorkerThread.run
      (IIOPConnection.java:230)

      4. in case replacing wstring by strin, all works fine
      (Review ID: 102622)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eandersosunw Everett Anderson (Inactive)
              Reporter:
              rlewis Roger Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: