Click to See Complete Forum and Search --> : Odd Java Marshalling error


BrianDrozd
06-13-2001, 04:23 PM
I am trying to convert a program so that some components run on the J2EE Application Server. What I currently loads everything correctly, but crashes the instant I try to send a normal message across to the Bean.
The exact Error is:

Error in register CORBA MARSHAL 0 No; nested exception is:
org.omg.CORBA.MARSHAL: minor code: 0 completed: No
java.rmi.MarshalException: CORBA MARSHAL 0 No; nested exception is:
org.omg.CORBA.MARSHAL: minor code: 0 completed: No
org.omg.CORBA.MARSHAL: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java, Compiled Code)
at com.sun.corba.ee.internal.iiop.ReplyMessage.getSys temException(ReplyMessage.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl. getSystemException(ClientResponseImpl.java:82)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.i nvoke(GenericPOAClientSC.java:194)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectIm pl.java:247)
at mains._MessageBridge_Stub.register(Unknown Source)
at ddo.DDOBean.register(DDOBean.java:136)
at ddo.DDOBean.setUp(DDOBean.java:66)
at ddo.GaugeBean.setupBean(GaugeBean.java, Compiled Code)
at ddo.GaugeBean.<init>(GaugeBean.java:146)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java, Compiled Code)
at java.beans.Beans.instantiate(Beans.java:211)
at gauge_30.addFormat(gauge_30.java, Compiled Code)
at mains.SenderaRuntime.add_display(SenderaRuntime.ja va, Compiled Code)
at mains.SenderaRuntime.sendCmd(SenderaRuntime.java, Compiled Code)
at mains.SenderaDisplay.actionPerformed(SenderaDispla y.java:175)
at ddo.AsciiBean.fireAction(AsciiBean.java, Compiled Code)
at ddo.TextFieldBean$mykeyadapter.keyReleased(TextFie ldBean.java:838)
at java.awt.Component.processKeyEvent(Component.java: 3130)
at javax.swing.JComponent.processKeyEvent(JComponent. java:1582)
at java.awt.Component.processEvent(Component.java, Compiled Code)
at java.awt.Container.processEvent(Container.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.jav a, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.jav a, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.LightweightDispatcher.processKeyEvent(Con tainer.java:1791)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.jav a, Compiled Code)
at java.awt.Window.dispatchEventImpl(Window.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEventForCompon ent(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.pumpEventsForComponen t(EventDispatchThread.java:95)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:90)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:82)


As far as I know org.omg.CORBA.MARSHAL isn't suppossed to have a minor value of 0, so I have no idea why this message gets generated.

The MessageBridge is a Entity Bean, with all methods set to Required transactions. The method call above is defined as:

public boolean register (Message m)

Message is defined as

public class Message implements Serializable
{
protected String server;
protected String key;
protected Serializable source;
protected byte messageType;
protected Serializable[] data;
protected Serializable[] RTDA;
protected Number[] MinMax;
protected Number[] Thresholds;
protected Number[] Targets;
protected Number Scale;
protected Number[] TableLocation;
}

Since everything in Message is serializable, it should be easily marshalled and transmitted across a network right? Or does CORBA expect me to do my own marshalling (I don't think it does, but I could be wrong).

Any help anyone can give me on this would be appriciated.