001: /*
002: * RMI stub class
003: * for class org.apache.harmony.rmi.activation.Rmid
004: * Compatible with stub protocol version 1.1/1.2
005: *
006: * Generated by DRL RMI Compiler (rmic).
007: *
008: * DO NOT EDIT!!!
009: * Contents subject to change without notice!
010: */
011: package org.apache.harmony.rmi.activation;
012:
013: import org.apache.harmony.rmi.internal.nls.Messages;
014:
015: public final class Rmid_Stub extends java.rmi.server.RemoteStub
016: implements java.rmi.activation.ActivationSystem,
017: java.rmi.activation.ActivationMonitor,
018: java.rmi.activation.Activator, java.rmi.Remote {
019:
020: private static final long serialVersionUID = 2;
021:
022: private static final long interfaceHash = 8470858815147946311L;
023:
024: private static boolean useNewInvoke;
025:
026: private static final java.rmi.server.Operation[] operations = {
027: new java.rmi.server.Operation(
028: "java.rmi.MarshalledObject activate(java.rmi.activation.ActivationID, boolean)"), //$NON-NLS-1$
029: new java.rmi.server.Operation(
030: "java.rmi.activation.ActivationMonitor activeGroup(java.rmi.activation.ActivationGroupID, java.rmi.activation.ActivationInstantiator, long)"), //$NON-NLS-1$
031: new java.rmi.server.Operation(
032: "void activeObject(java.rmi.activation.ActivationID, java.rmi.MarshalledObject)"), //$NON-NLS-1$
033: new java.rmi.server.Operation(
034: "java.rmi.activation.ActivationDesc getActivationDesc(java.rmi.activation.ActivationID)"), //$NON-NLS-1$
035: new java.rmi.server.Operation(
036: "java.rmi.activation.ActivationGroupDesc getActivationGroupDesc(java.rmi.activation.ActivationGroupID)"), //$NON-NLS-1$
037: new java.rmi.server.Operation(
038: "void inactiveGroup(java.rmi.activation.ActivationGroupID, long)"), //$NON-NLS-1$
039: new java.rmi.server.Operation(
040: "void inactiveObject(java.rmi.activation.ActivationID)"), //$NON-NLS-1$
041: new java.rmi.server.Operation(
042: "java.rmi.activation.ActivationGroupID registerGroup(java.rmi.activation.ActivationGroupDesc)"), //$NON-NLS-1$
043: new java.rmi.server.Operation(
044: "java.rmi.activation.ActivationID registerObject(java.rmi.activation.ActivationDesc)"), //$NON-NLS-1$
045: new java.rmi.server.Operation(
046: "java.rmi.activation.ActivationDesc setActivationDesc(java.rmi.activation.ActivationID, java.rmi.activation.ActivationDesc)"), //$NON-NLS-1$
047: new java.rmi.server.Operation(
048: "java.rmi.activation.ActivationGroupDesc setActivationGroupDesc(java.rmi.activation.ActivationGroupID, java.rmi.activation.ActivationGroupDesc)"), //$NON-NLS-1$
049: new java.rmi.server.Operation("void shutdown()"), //$NON-NLS-1$
050: new java.rmi.server.Operation(
051: "void unregisterGroup(java.rmi.activation.ActivationGroupID)"), //$NON-NLS-1$
052: new java.rmi.server.Operation(
053: "void unregisterObject(java.rmi.activation.ActivationID)") //$NON-NLS-1$
054: };
055:
056: private static java.lang.reflect.Method $method_activate_0;
057: private static java.lang.reflect.Method $method_activeGroup_1;
058: private static java.lang.reflect.Method $method_activeObject_2;
059: private static java.lang.reflect.Method $method_getActivationDesc_3;
060: private static java.lang.reflect.Method $method_getActivationGroupDesc_4;
061: private static java.lang.reflect.Method $method_inactiveGroup_5;
062: private static java.lang.reflect.Method $method_inactiveObject_6;
063: private static java.lang.reflect.Method $method_registerGroup_7;
064: private static java.lang.reflect.Method $method_registerObject_8;
065: private static java.lang.reflect.Method $method_setActivationDesc_9;
066: private static java.lang.reflect.Method $method_setActivationGroupDesc_10;
067: private static java.lang.reflect.Method $method_shutdown_11;
068: private static java.lang.reflect.Method $method_unregisterGroup_12;
069: private static java.lang.reflect.Method $method_unregisterObject_13;
070:
071: static {
072: try {
073: java.rmi.server.RemoteRef.class
074: .getMethod(
075: "invoke", new java.lang.Class[] { java.rmi.Remote.class, java.lang.reflect.Method.class, java.lang.Object[].class, long.class }); //$NON-NLS-1$
076:
077: $method_activate_0 = java.rmi.activation.Activator.class
078: .getMethod(
079: "activate", new java.lang.Class[] { java.rmi.activation.ActivationID.class, boolean.class }); //$NON-NLS-1$
080: $method_activeGroup_1 = java.rmi.activation.ActivationSystem.class
081: .getMethod(
082: "activeGroup", new java.lang.Class[] { java.rmi.activation.ActivationGroupID.class, java.rmi.activation.ActivationInstantiator.class, long.class }); //$NON-NLS-1$
083: $method_activeObject_2 = java.rmi.activation.ActivationMonitor.class
084: .getMethod(
085: "activeObject", new java.lang.Class[] { java.rmi.activation.ActivationID.class, java.rmi.MarshalledObject.class }); //$NON-NLS-1$
086: $method_getActivationDesc_3 = java.rmi.activation.ActivationSystem.class
087: .getMethod(
088: "getActivationDesc", new java.lang.Class[] { java.rmi.activation.ActivationID.class }); //$NON-NLS-1$
089: $method_getActivationGroupDesc_4 = java.rmi.activation.ActivationSystem.class
090: .getMethod(
091: "getActivationGroupDesc", new java.lang.Class[] { java.rmi.activation.ActivationGroupID.class }); //$NON-NLS-1$
092: $method_inactiveGroup_5 = java.rmi.activation.ActivationMonitor.class
093: .getMethod(
094: "inactiveGroup", new java.lang.Class[] { java.rmi.activation.ActivationGroupID.class, long.class }); //$NON-NLS-1$
095: $method_inactiveObject_6 = java.rmi.activation.ActivationMonitor.class
096: .getMethod(
097: "inactiveObject", new java.lang.Class[] { java.rmi.activation.ActivationID.class }); //$NON-NLS-1$
098: $method_registerGroup_7 = java.rmi.activation.ActivationSystem.class
099: .getMethod(
100: "registerGroup", new java.lang.Class[] { java.rmi.activation.ActivationGroupDesc.class }); //$NON-NLS-1$
101: $method_registerObject_8 = java.rmi.activation.ActivationSystem.class
102: .getMethod(
103: "registerObject", new java.lang.Class[] { java.rmi.activation.ActivationDesc.class }); //$NON-NLS-1$
104: $method_setActivationDesc_9 = java.rmi.activation.ActivationSystem.class
105: .getMethod(
106: "setActivationDesc", new java.lang.Class[] { java.rmi.activation.ActivationID.class, java.rmi.activation.ActivationDesc.class }); //$NON-NLS-1$
107: $method_setActivationGroupDesc_10 = java.rmi.activation.ActivationSystem.class
108: .getMethod(
109: "setActivationGroupDesc", new java.lang.Class[] { java.rmi.activation.ActivationGroupID.class, java.rmi.activation.ActivationGroupDesc.class }); //$NON-NLS-1$
110: $method_shutdown_11 = java.rmi.activation.ActivationSystem.class
111: .getMethod("shutdown", new java.lang.Class[] {}); //$NON-NLS-1$
112: $method_unregisterGroup_12 = java.rmi.activation.ActivationSystem.class
113: .getMethod(
114: "unregisterGroup", new java.lang.Class[] { java.rmi.activation.ActivationGroupID.class }); //$NON-NLS-1$
115: $method_unregisterObject_13 = java.rmi.activation.ActivationSystem.class
116: .getMethod(
117: "unregisterObject", new java.lang.Class[] { java.rmi.activation.ActivationID.class }); //$NON-NLS-1$
118:
119: useNewInvoke = true;
120: } catch (java.lang.NoSuchMethodException e) {
121: useNewInvoke = false;
122: }
123: }
124:
125: public Rmid_Stub() {
126: super ();
127: }
128:
129: public Rmid_Stub(java.rmi.server.RemoteRef ref) {
130: super (ref);
131: }
132:
133: // Implementation of activate(ActivationID, boolean)
134: public java.rmi.MarshalledObject activate(
135: java.rmi.activation.ActivationID $param_ActivationID_1,
136: boolean $param_boolean_2)
137: throws java.rmi.activation.ActivationException,
138: java.rmi.activation.UnknownObjectException,
139: java.rmi.RemoteException {
140: try {
141: if (useNewInvoke) {
142: java.lang.Object $result = ref
143: .invoke(this , $method_activate_0,
144: new java.lang.Object[] {
145: $param_ActivationID_1,
146: new java.lang.Boolean(
147: $param_boolean_2) },
148: -8767355154875805558L);
149: return ((java.rmi.MarshalledObject) $result);
150: } else {
151: java.rmi.server.RemoteCall call = ref.newCall(
152: (java.rmi.server.RemoteObject) this ,
153: operations, 0, interfaceHash);
154:
155: try {
156: java.io.ObjectOutput out = call.getOutputStream();
157: out.writeObject($param_ActivationID_1);
158: out.writeBoolean($param_boolean_2);
159: } catch (java.io.IOException e) {
160: // rmi.26=Error marshalling arguments
161: throw new java.rmi.MarshalException(Messages
162: .getString("rmi.26"), e); //$NON-NLS-1$
163: }
164:
165: ref.invoke(call);
166:
167: java.rmi.MarshalledObject $result;
168:
169: try {
170: java.io.ObjectInput in = call.getInputStream();
171: $result = (java.rmi.MarshalledObject) in
172: .readObject();
173: } catch (java.io.IOException e) {
174: // rmi.27=Error unmarshalling return value
175: throw new java.rmi.UnmarshalException(Messages
176: .getString("rmi.27"), e); //$NON-NLS-1$
177: } catch (java.lang.ClassNotFoundException e) {
178: // rmi.27=Error unmarshalling return value
179: throw new java.rmi.UnmarshalException(Messages
180: .getString("rmi.27"), e); //$NON-NLS-1$
181: } finally {
182: ref.done(call);
183: }
184:
185: return $result;
186: }
187: } catch (java.lang.RuntimeException e) {
188: throw e;
189: } catch (java.rmi.RemoteException e) {
190: throw e;
191: } catch (java.rmi.activation.ActivationException e) {
192: throw e;
193: } catch (java.lang.Exception e) {
194: // rmi.0C=Undeclared checked exception
195: throw new java.rmi.UnexpectedException(Messages
196: .getString("rmi.0C"), e); //$NON-NLS-1$
197: }
198: }
199:
200: // Implementation of activeGroup(ActivationGroupID, ActivationInstantiator, long)
201: public java.rmi.activation.ActivationMonitor activeGroup(
202: java.rmi.activation.ActivationGroupID $param_ActivationGroupID_1,
203: java.rmi.activation.ActivationInstantiator $param_ActivationInstantiator_2,
204: long $param_long_3)
205: throws java.rmi.activation.UnknownGroupException,
206: java.rmi.activation.ActivationException,
207: java.rmi.RemoteException {
208: try {
209: if (useNewInvoke) {
210: java.lang.Object $result = ref.invoke(this ,
211: $method_activeGroup_1, new java.lang.Object[] {
212: $param_ActivationGroupID_1,
213: $param_ActivationInstantiator_2,
214: new java.lang.Long($param_long_3) },
215: -4575843150759415294L);
216: return ((java.rmi.activation.ActivationMonitor) $result);
217: } else {
218: java.rmi.server.RemoteCall call = ref.newCall(
219: (java.rmi.server.RemoteObject) this ,
220: operations, 1, interfaceHash);
221:
222: try {
223: java.io.ObjectOutput out = call.getOutputStream();
224: out.writeObject($param_ActivationGroupID_1);
225: out.writeObject($param_ActivationInstantiator_2);
226: out.writeLong($param_long_3);
227: } catch (java.io.IOException e) {
228: throw new java.rmi.MarshalException(Messages
229: .getString("rmi.26"), e); //$NON-NLS-1$
230: }
231:
232: ref.invoke(call);
233:
234: java.rmi.activation.ActivationMonitor $result;
235:
236: try {
237: java.io.ObjectInput in = call.getInputStream();
238: $result = (java.rmi.activation.ActivationMonitor) in
239: .readObject();
240: } catch (java.io.IOException e) {
241: // rmi.27=Error unmarshalling return value
242: throw new java.rmi.UnmarshalException(Messages
243: .getString("rmi.27"), e); //$NON-NLS-1$
244: } catch (java.lang.ClassNotFoundException e) {
245: // rmi.27=Error unmarshalling return value
246: throw new java.rmi.UnmarshalException(Messages
247: .getString("rmi.27"), e); //$NON-NLS-1$
248: } finally {
249: ref.done(call);
250: }
251:
252: return $result;
253: }
254: } catch (java.lang.RuntimeException e) {
255: throw e;
256: } catch (java.rmi.RemoteException e) {
257: throw e;
258: } catch (java.rmi.activation.ActivationException e) {
259: throw e;
260: } catch (java.lang.Exception e) {
261: // rmi.0C=Undeclared checked exception
262: throw new java.rmi.UnexpectedException(Messages
263: .getString("rmi.0C"), e); //$NON-NLS-1$
264: }
265: }
266:
267: // Implementation of activeObject(ActivationID, MarshalledObject)
268: public void activeObject(
269: java.rmi.activation.ActivationID $param_ActivationID_1,
270: java.rmi.MarshalledObject $param_MarshalledObject_2)
271: throws java.rmi.activation.UnknownObjectException,
272: java.rmi.RemoteException {
273: try {
274: if (useNewInvoke) {
275: ref.invoke(this , $method_activeObject_2,
276: new java.lang.Object[] { $param_ActivationID_1,
277: $param_MarshalledObject_2 },
278: 2543984342209939736L);
279: } else {
280: java.rmi.server.RemoteCall call = ref.newCall(
281: (java.rmi.server.RemoteObject) this ,
282: operations, 2, interfaceHash);
283:
284: try {
285: java.io.ObjectOutput out = call.getOutputStream();
286: out.writeObject($param_ActivationID_1);
287: out.writeObject($param_MarshalledObject_2);
288: } catch (java.io.IOException e) {
289: // rmi.26=Error marshalling arguments
290: throw new java.rmi.MarshalException(Messages
291: .getString("rmi.26"), e); //$NON-NLS-1$
292: }
293:
294: ref.invoke(call);
295:
296: ref.done(call);
297: }
298: } catch (java.lang.RuntimeException e) {
299: throw e;
300: } catch (java.rmi.RemoteException e) {
301: throw e;
302: } catch (java.rmi.activation.UnknownObjectException e) {
303: throw e;
304: } catch (java.lang.Exception e) {
305: // rmi.0C=Undeclared checked exception
306: throw new java.rmi.UnexpectedException(Messages
307: .getString("rmi.0C"), e); //$NON-NLS-1$
308: }
309: }
310:
311: // Implementation of getActivationDesc(ActivationID)
312: public java.rmi.activation.ActivationDesc getActivationDesc(
313: java.rmi.activation.ActivationID $param_ActivationID_1)
314: throws java.rmi.activation.ActivationException,
315: java.rmi.activation.UnknownObjectException,
316: java.rmi.RemoteException {
317: try {
318: if (useNewInvoke) {
319: java.lang.Object $result = ref
320: .invoke(
321: this ,
322: $method_getActivationDesc_3,
323: new java.lang.Object[] { $param_ActivationID_1 },
324: 4830055440982622087L);
325: return ((java.rmi.activation.ActivationDesc) $result);
326: } else {
327: java.rmi.server.RemoteCall call = ref.newCall(
328: (java.rmi.server.RemoteObject) this ,
329: operations, 3, interfaceHash);
330:
331: try {
332: java.io.ObjectOutput out = call.getOutputStream();
333: out.writeObject($param_ActivationID_1);
334: } catch (java.io.IOException e) {
335: // rmi.26=Error marshalling arguments
336: throw new java.rmi.MarshalException(Messages
337: .getString("rmi.26"), e); //$NON-NLS-1$
338: }
339:
340: ref.invoke(call);
341:
342: java.rmi.activation.ActivationDesc $result;
343:
344: try {
345: java.io.ObjectInput in = call.getInputStream();
346: $result = (java.rmi.activation.ActivationDesc) in
347: .readObject();
348: } catch (java.io.IOException e) {
349: // rmi.27=Error unmarshalling return value
350: throw new java.rmi.UnmarshalException(Messages
351: .getString("rmi.27"), e); //$NON-NLS-1$
352: } catch (java.lang.ClassNotFoundException e) {
353: // rmi.27=Error unmarshalling return value
354: throw new java.rmi.UnmarshalException(Messages
355: .getString("rmi.27"), e); //$NON-NLS-1$
356: } finally {
357: ref.done(call);
358: }
359:
360: return $result;
361: }
362: } catch (java.lang.RuntimeException e) {
363: throw e;
364: } catch (java.rmi.RemoteException e) {
365: throw e;
366: } catch (java.rmi.activation.ActivationException e) {
367: throw e;
368: } catch (java.lang.Exception e) {
369: // rmi.0C=Undeclared checked exception
370: throw new java.rmi.UnexpectedException(Messages
371: .getString("rmi.0C"), e); //$NON-NLS-1$
372: }
373: }
374:
375: // Implementation of getActivationGroupDesc(ActivationGroupID)
376: public java.rmi.activation.ActivationGroupDesc getActivationGroupDesc(
377: java.rmi.activation.ActivationGroupID $param_ActivationGroupID_1)
378: throws java.rmi.activation.ActivationException,
379: java.rmi.activation.UnknownGroupException,
380: java.rmi.RemoteException {
381: try {
382: if (useNewInvoke) {
383: java.lang.Object $result = ref
384: .invoke(
385: this ,
386: $method_getActivationGroupDesc_4,
387: new java.lang.Object[] { $param_ActivationGroupID_1 },
388: -8701843806548736528L);
389: return ((java.rmi.activation.ActivationGroupDesc) $result);
390: } else {
391: java.rmi.server.RemoteCall call = ref.newCall(
392: (java.rmi.server.RemoteObject) this ,
393: operations, 4, interfaceHash);
394:
395: try {
396: java.io.ObjectOutput out = call.getOutputStream();
397: out.writeObject($param_ActivationGroupID_1);
398: } catch (java.io.IOException e) {
399: // rmi.26=Error marshalling arguments
400: throw new java.rmi.MarshalException(Messages
401: .getString("rmi.26"), e); //$NON-NLS-1$
402: }
403:
404: ref.invoke(call);
405:
406: java.rmi.activation.ActivationGroupDesc $result;
407:
408: try {
409: java.io.ObjectInput in = call.getInputStream();
410: $result = (java.rmi.activation.ActivationGroupDesc) in
411: .readObject();
412: } catch (java.io.IOException e) {
413: // rmi.27=Error unmarshalling return value
414: throw new java.rmi.UnmarshalException(Messages
415: .getString("rmi.27"), e); //$NON-NLS-1$
416: } catch (java.lang.ClassNotFoundException e) {
417: // rmi.27=Error unmarshalling return value
418: throw new java.rmi.UnmarshalException(Messages
419: .getString("rmi.27"), e); //$NON-NLS-1$
420: } finally {
421: ref.done(call);
422: }
423:
424: return $result;
425: }
426: } catch (java.lang.RuntimeException e) {
427: throw e;
428: } catch (java.rmi.RemoteException e) {
429: throw e;
430: } catch (java.rmi.activation.ActivationException e) {
431: throw e;
432: } catch (java.lang.Exception e) {
433: // rmi.0C=Undeclared checked exception
434: throw new java.rmi.UnexpectedException(Messages
435: .getString("rmi.0C"), e); //$NON-NLS-1$
436: }
437: }
438:
439: // Implementation of inactiveGroup(ActivationGroupID, long)
440: public void inactiveGroup(
441: java.rmi.activation.ActivationGroupID $param_ActivationGroupID_1,
442: long $param_long_2)
443: throws java.rmi.activation.UnknownGroupException,
444: java.rmi.RemoteException {
445: try {
446: if (useNewInvoke) {
447: ref.invoke(this , $method_inactiveGroup_5,
448: new java.lang.Object[] {
449: $param_ActivationGroupID_1,
450: new java.lang.Long($param_long_2) },
451: -399287892768650944L);
452: } else {
453: java.rmi.server.RemoteCall call = ref.newCall(
454: (java.rmi.server.RemoteObject) this ,
455: operations, 5, interfaceHash);
456:
457: try {
458: java.io.ObjectOutput out = call.getOutputStream();
459: out.writeObject($param_ActivationGroupID_1);
460: out.writeLong($param_long_2);
461: } catch (java.io.IOException e) {
462: // rmi.26=Error marshalling arguments
463: throw new java.rmi.MarshalException(Messages
464: .getString("rmi.26"), e); //$NON-NLS-1$
465: }
466:
467: ref.invoke(call);
468:
469: ref.done(call);
470: }
471: } catch (java.lang.RuntimeException e) {
472: throw e;
473: } catch (java.rmi.RemoteException e) {
474: throw e;
475: } catch (java.rmi.activation.UnknownGroupException e) {
476: throw e;
477: } catch (java.lang.Exception e) {
478: // rmi.0C=Undeclared checked exception
479: throw new java.rmi.UnexpectedException(Messages
480: .getString("rmi.0C"), e); //$NON-NLS-1$
481: }
482: }
483:
484: // Implementation of inactiveObject(ActivationID)
485: public void inactiveObject(
486: java.rmi.activation.ActivationID $param_ActivationID_1)
487: throws java.rmi.activation.UnknownObjectException,
488: java.rmi.RemoteException {
489: try {
490: if (useNewInvoke) {
491: ref
492: .invoke(
493: this ,
494: $method_inactiveObject_6,
495: new java.lang.Object[] { $param_ActivationID_1 },
496: -4165404120701281807L);
497: } else {
498: java.rmi.server.RemoteCall call = ref.newCall(
499: (java.rmi.server.RemoteObject) this ,
500: operations, 6, interfaceHash);
501:
502: try {
503: java.io.ObjectOutput out = call.getOutputStream();
504: out.writeObject($param_ActivationID_1);
505: } catch (java.io.IOException e) {
506: // rmi.26=Error marshalling arguments
507: throw new java.rmi.MarshalException(Messages
508: .getString("rmi.26"), e); //$NON-NLS-1$
509: }
510:
511: ref.invoke(call);
512:
513: ref.done(call);
514: }
515: } catch (java.lang.RuntimeException e) {
516: throw e;
517: } catch (java.rmi.RemoteException e) {
518: throw e;
519: } catch (java.rmi.activation.UnknownObjectException e) {
520: throw e;
521: } catch (java.lang.Exception e) {
522: // rmi.0C=Undeclared checked exception
523: throw new java.rmi.UnexpectedException(Messages
524: .getString("rmi.0C"), e); //$NON-NLS-1$
525: }
526: }
527:
528: // Implementation of registerGroup(ActivationGroupDesc)
529: public java.rmi.activation.ActivationGroupID registerGroup(
530: java.rmi.activation.ActivationGroupDesc $param_ActivationGroupDesc_1)
531: throws java.rmi.activation.ActivationException,
532: java.rmi.RemoteException {
533: try {
534: if (useNewInvoke) {
535: java.lang.Object $result = ref
536: .invoke(
537: this ,
538: $method_registerGroup_7,
539: new java.lang.Object[] { $param_ActivationGroupDesc_1 },
540: 6921515268192657754L);
541: return ((java.rmi.activation.ActivationGroupID) $result);
542: } else {
543: java.rmi.server.RemoteCall call = ref.newCall(
544: (java.rmi.server.RemoteObject) this ,
545: operations, 7, interfaceHash);
546:
547: try {
548: java.io.ObjectOutput out = call.getOutputStream();
549: out.writeObject($param_ActivationGroupDesc_1);
550: } catch (java.io.IOException e) {
551: // rmi.26=Error marshalling arguments
552: throw new java.rmi.MarshalException(Messages
553: .getString("rmi.26"), e); //$NON-NLS-1$
554: }
555:
556: ref.invoke(call);
557:
558: java.rmi.activation.ActivationGroupID $result;
559:
560: try {
561: java.io.ObjectInput in = call.getInputStream();
562: $result = (java.rmi.activation.ActivationGroupID) in
563: .readObject();
564: } catch (java.io.IOException e) {
565: // rmi.27=Error unmarshalling return value
566: throw new java.rmi.UnmarshalException(Messages
567: .getString("rmi.27"), e); //$NON-NLS-1$
568: } catch (java.lang.ClassNotFoundException e) {
569: // rmi.27=Error unmarshalling return value
570: throw new java.rmi.UnmarshalException(Messages
571: .getString("rmi.27"), e); //$NON-NLS-1$
572: } finally {
573: ref.done(call);
574: }
575:
576: return $result;
577: }
578: } catch (java.lang.RuntimeException e) {
579: throw e;
580: } catch (java.rmi.RemoteException e) {
581: throw e;
582: } catch (java.rmi.activation.ActivationException e) {
583: throw e;
584: } catch (java.lang.Exception e) {
585: // rmi.0C=Undeclared checked exception
586: throw new java.rmi.UnexpectedException(Messages
587: .getString("rmi.0C"), e); //$NON-NLS-1$
588: }
589: }
590:
591: // Implementation of registerObject(ActivationDesc)
592: public java.rmi.activation.ActivationID registerObject(
593: java.rmi.activation.ActivationDesc $param_ActivationDesc_1)
594: throws java.rmi.activation.ActivationException,
595: java.rmi.activation.UnknownGroupException,
596: java.rmi.RemoteException {
597: try {
598: if (useNewInvoke) {
599: java.lang.Object $result = ref
600: .invoke(
601: this ,
602: $method_registerObject_8,
603: new java.lang.Object[] { $param_ActivationDesc_1 },
604: -3006759798994351347L);
605: return ((java.rmi.activation.ActivationID) $result);
606: } else {
607: java.rmi.server.RemoteCall call = ref.newCall(
608: (java.rmi.server.RemoteObject) this ,
609: operations, 8, interfaceHash);
610:
611: try {
612: java.io.ObjectOutput out = call.getOutputStream();
613: out.writeObject($param_ActivationDesc_1);
614: } catch (java.io.IOException e) {
615: // rmi.26=Error marshalling arguments
616: throw new java.rmi.MarshalException(Messages
617: .getString("rmi.26"), e); //$NON-NLS-1$
618: }
619:
620: ref.invoke(call);
621:
622: java.rmi.activation.ActivationID $result;
623:
624: try {
625: java.io.ObjectInput in = call.getInputStream();
626: $result = (java.rmi.activation.ActivationID) in
627: .readObject();
628: } catch (java.io.IOException e) {
629: // rmi.27=Error unmarshalling return value
630: throw new java.rmi.UnmarshalException(Messages
631: .getString("rmi.27"), e); //$NON-NLS-1$
632: } catch (java.lang.ClassNotFoundException e) {
633: //rmi.27=Error unmarshalling return value
634: throw new java.rmi.UnmarshalException(Messages
635: .getString("rmi.27"), e); //$NON-NLS-1$
636: } finally {
637: ref.done(call);
638: }
639:
640: return $result;
641: }
642: } catch (java.lang.RuntimeException e) {
643: throw e;
644: } catch (java.rmi.RemoteException e) {
645: throw e;
646: } catch (java.rmi.activation.ActivationException e) {
647: throw e;
648: } catch (java.lang.Exception e) {
649: // rmi.0C=Undeclared checked exception
650: throw new java.rmi.UnexpectedException(Messages
651: .getString("rmi.0C"), e); //$NON-NLS-1$
652: }
653: }
654:
655: // Implementation of setActivationDesc(ActivationID, ActivationDesc)
656: public java.rmi.activation.ActivationDesc setActivationDesc(
657: java.rmi.activation.ActivationID $param_ActivationID_1,
658: java.rmi.activation.ActivationDesc $param_ActivationDesc_2)
659: throws java.rmi.activation.ActivationException,
660: java.rmi.activation.UnknownObjectException,
661: java.rmi.activation.UnknownGroupException,
662: java.rmi.RemoteException {
663: try {
664: if (useNewInvoke) {
665: java.lang.Object $result = ref.invoke(this ,
666: $method_setActivationDesc_9,
667: new java.lang.Object[] { $param_ActivationID_1,
668: $param_ActivationDesc_2 },
669: 7128043237057180796L);
670: return ((java.rmi.activation.ActivationDesc) $result);
671: } else {
672: java.rmi.server.RemoteCall call = ref.newCall(
673: (java.rmi.server.RemoteObject) this ,
674: operations, 9, interfaceHash);
675:
676: try {
677: java.io.ObjectOutput out = call.getOutputStream();
678: out.writeObject($param_ActivationID_1);
679: out.writeObject($param_ActivationDesc_2);
680: } catch (java.io.IOException e) {
681: // rmi.26=Error marshalling arguments
682: throw new java.rmi.MarshalException(Messages
683: .getString("rmi.26"), e); //$NON-NLS-1$
684: }
685:
686: ref.invoke(call);
687:
688: java.rmi.activation.ActivationDesc $result;
689:
690: try {
691: java.io.ObjectInput in = call.getInputStream();
692: $result = (java.rmi.activation.ActivationDesc) in
693: .readObject();
694: } catch (java.io.IOException e) {
695: // rmi.27=Error unmarshalling return value
696: throw new java.rmi.UnmarshalException(Messages
697: .getString("rmi.27"), e); //$NON-NLS-1$
698: } catch (java.lang.ClassNotFoundException e) {
699: // rmi.27=Error unmarshalling return value
700: throw new java.rmi.UnmarshalException(Messages
701: .getString("rmi.27"), e); //$NON-NLS-1$
702: } finally {
703: ref.done(call);
704: }
705:
706: return $result;
707: }
708: } catch (java.lang.RuntimeException e) {
709: throw e;
710: } catch (java.rmi.RemoteException e) {
711: throw e;
712: } catch (java.rmi.activation.ActivationException e) {
713: throw e;
714: } catch (java.lang.Exception e) {
715: // rmi.0C=Undeclared checked exception
716: throw new java.rmi.UnexpectedException(Messages
717: .getString("rmi.0C"), e); //$NON-NLS-1$
718: }
719: }
720:
721: // Implementation of setActivationGroupDesc(ActivationGroupID, ActivationGroupDesc)
722: public java.rmi.activation.ActivationGroupDesc setActivationGroupDesc(
723: java.rmi.activation.ActivationGroupID $param_ActivationGroupID_1,
724: java.rmi.activation.ActivationGroupDesc $param_ActivationGroupDesc_2)
725: throws java.rmi.activation.ActivationException,
726: java.rmi.activation.UnknownGroupException,
727: java.rmi.RemoteException {
728: try {
729: if (useNewInvoke) {
730: java.lang.Object $result = ref.invoke(this ,
731: $method_setActivationGroupDesc_10,
732: new java.lang.Object[] {
733: $param_ActivationGroupID_1,
734: $param_ActivationGroupDesc_2 },
735: 1213918527826541191L);
736: return ((java.rmi.activation.ActivationGroupDesc) $result);
737: } else {
738: java.rmi.server.RemoteCall call = ref.newCall(
739: (java.rmi.server.RemoteObject) this ,
740: operations, 10, interfaceHash);
741:
742: try {
743: java.io.ObjectOutput out = call.getOutputStream();
744: out.writeObject($param_ActivationGroupID_1);
745: out.writeObject($param_ActivationGroupDesc_2);
746: } catch (java.io.IOException e) {
747: // rmi.26=Error marshalling arguments
748: throw new java.rmi.MarshalException(Messages
749: .getString("rmi.26"), e); //$NON-NLS-1$
750: }
751:
752: ref.invoke(call);
753:
754: java.rmi.activation.ActivationGroupDesc $result;
755:
756: try {
757: java.io.ObjectInput in = call.getInputStream();
758: $result = (java.rmi.activation.ActivationGroupDesc) in
759: .readObject();
760: } catch (java.io.IOException e) {
761: // rmi.27=Error unmarshalling return value
762: throw new java.rmi.UnmarshalException(Messages
763: .getString("rmi.27"), e); //$NON-NLS-1$
764: } catch (java.lang.ClassNotFoundException e) {
765: // rmi.27=Error unmarshalling return value
766: throw new java.rmi.UnmarshalException(Messages
767: .getString("rmi.27"), e); //$NON-NLS-1$
768: } finally {
769: ref.done(call);
770: }
771:
772: return $result;
773: }
774: } catch (java.lang.RuntimeException e) {
775: throw e;
776: } catch (java.rmi.RemoteException e) {
777: throw e;
778: } catch (java.rmi.activation.ActivationException e) {
779: throw e;
780: } catch (java.lang.Exception e) {
781: // rmi.0C=Undeclared checked exception
782: throw new java.rmi.UnexpectedException(Messages
783: .getString("rmi.0C"), e); //$NON-NLS-1$
784: }
785: }
786:
787: // Implementation of shutdown()
788: public void shutdown() throws java.rmi.RemoteException {
789: try {
790: if (useNewInvoke) {
791: ref.invoke(this , $method_shutdown_11, null,
792: -7207851917985848402L);
793: } else {
794: java.rmi.server.RemoteCall call = ref.newCall(
795: (java.rmi.server.RemoteObject) this ,
796: operations, 11, interfaceHash);
797:
798: ref.invoke(call);
799:
800: ref.done(call);
801: }
802: } catch (java.lang.RuntimeException e) {
803: throw e;
804: } catch (java.rmi.RemoteException e) {
805: throw e;
806: } catch (java.lang.Exception e) {
807: // rmi.0C=Undeclared checked exception
808: throw new java.rmi.UnexpectedException(Messages
809: .getString("rmi.0C"), e); //$NON-NLS-1$
810: }
811: }
812:
813: // Implementation of unregisterGroup(ActivationGroupID)
814: public void unregisterGroup(
815: java.rmi.activation.ActivationGroupID $param_ActivationGroupID_1)
816: throws java.rmi.activation.ActivationException,
817: java.rmi.activation.UnknownGroupException,
818: java.rmi.RemoteException {
819: try {
820: if (useNewInvoke) {
821: ref
822: .invoke(
823: this ,
824: $method_unregisterGroup_12,
825: new java.lang.Object[] { $param_ActivationGroupID_1 },
826: 3768097077835970701L);
827: } else {
828: java.rmi.server.RemoteCall call = ref.newCall(
829: (java.rmi.server.RemoteObject) this ,
830: operations, 12, interfaceHash);
831:
832: try {
833: java.io.ObjectOutput out = call.getOutputStream();
834: out.writeObject($param_ActivationGroupID_1);
835: } catch (java.io.IOException e) {
836: // rmi.26=Error marshalling arguments
837: throw new java.rmi.MarshalException(Messages
838: .getString("rmi.26"), e); //$NON-NLS-1$
839: }
840:
841: ref.invoke(call);
842:
843: ref.done(call);
844: }
845: } catch (java.lang.RuntimeException e) {
846: throw e;
847: } catch (java.rmi.RemoteException e) {
848: throw e;
849: } catch (java.rmi.activation.ActivationException e) {
850: throw e;
851: } catch (java.lang.Exception e) {
852: // rmi.0C=Undeclared checked exception
853: throw new java.rmi.UnexpectedException(Messages
854: .getString("rmi.0C"), e); //$NON-NLS-1$
855: }
856: }
857:
858: // Implementation of unregisterObject(ActivationID)
859: public void unregisterObject(
860: java.rmi.activation.ActivationID $param_ActivationID_1)
861: throws java.rmi.activation.ActivationException,
862: java.rmi.activation.UnknownObjectException,
863: java.rmi.RemoteException {
864: try {
865: if (useNewInvoke) {
866: ref
867: .invoke(
868: this ,
869: $method_unregisterObject_13,
870: new java.lang.Object[] { $param_ActivationID_1 },
871: -6843850585331411084L);
872: } else {
873: java.rmi.server.RemoteCall call = ref.newCall(
874: (java.rmi.server.RemoteObject) this ,
875: operations, 13, interfaceHash);
876:
877: try {
878: java.io.ObjectOutput out = call.getOutputStream();
879: out.writeObject($param_ActivationID_1);
880: } catch (java.io.IOException e) {
881: // rmi.26=Error marshalling arguments
882: throw new java.rmi.MarshalException(Messages
883: .getString("rmi.26"), e); //$NON-NLS-1$
884: }
885:
886: ref.invoke(call);
887:
888: ref.done(call);
889: }
890: } catch (java.lang.RuntimeException e) {
891: throw e;
892: } catch (java.rmi.RemoteException e) {
893: throw e;
894: } catch (java.rmi.activation.ActivationException e) {
895: throw e;
896: } catch (java.lang.Exception e) {
897: // rmi.0C=Undeclared checked exception
898: throw new java.rmi.UnexpectedException(Messages
899: .getString("rmi.0C"), e); //$NON-NLS-1$
900: }
901: }
902: }
|