-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0, 1.3.0, 1.4.0
-
merlin
-
generic, x86
-
generic, windows_98, windows_nt
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)
======================================================================
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)
======================================================================
- duplicates
-
JDK-4392056 TypeCodes don't correctly handle wchars in Anys
- Closed
- relates to
-
JDK-4418763 Stream duplication can cause INTERNAL
- Resolved