Java Code Examples for org.omg.CORBA.portable.RemarshalException

The following are top voted examples for showing how to use org.omg.CORBA.portable.RemarshalException. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: javify   File: _DemoTesterStub.java   Source Code and License 6 votes vote down vote up
/**
 * One way call of the remote method.
 */
public void sayHello()
{
  InputStream in = null;
  try
    {
      // As we do not expect any response, the second
      // parameter is 'false'.
      OutputStream out = _request("sayHello", false);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      sayHello();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 2
Project: javify   File: _DemoTesterStub.java   Source Code and License 6 votes vote down vote up
/**
 * Set the field value.
 */
public void theField(int newTheField)
{
  InputStream in = null;
  try
    {
      // The special name of operation instructs just to set
      // the field value rather than calling the method.
      OutputStream out = _request("_set_theField", true);
      out.write_long(newTheField);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      theField(newTheField);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 3
Project: javify   File: _PolicyStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("destroy", true);
      input = _invoke(output);
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 4
Project: javify   File: _PolicyStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public Policy copy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("copy", true);
      input = _invoke(output);
      return PolicyHelper.read(input);
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      return copy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 5
Project: javify   File: _IDLTypeStub.java   Source Code and License 6 votes vote down vote up
/**
 * Get the definition kind of the remote IDL type object. The method is
 * written following OMG specification, treating the typecode
 * as a read only attribute rather than a method. This means,
 * the operation name is "_get_def_kind".
 *
 * @return a definition kind, returned by remote IDL type object.
 */
public DefinitionKind def_kind()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("_get_def_kind", true);
      in = _invoke(out);
      return DefinitionKindHelper.read(in);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new org.omg.CORBA.MARSHAL(ex.getId());
    }
  catch (RemarshalException rex)
    {
      return def_kind();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 6
Project: javify   File: _IDLTypeStub.java   Source Code and License 6 votes vote down vote up
/**
 * Destroy the remote IDL type object.
 */
public void destroy()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("destroy", true);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new org.omg.CORBA.MARSHAL(ex.getId());
    }
  catch (RemarshalException rex)
    {
      destroy();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 7
Project: javify   File: _NamingContextStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public NamingContext new_context()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("new_context", true);
      in = _invoke(out);

      NamingContext __result = NamingContextHelper.read(in);
      return __result;
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException remarsh)
    {
      return new_context();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 8
Project: javify   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void components_established(IORInfo info)
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("components_established", true);
      output.write_Object(info);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      components_established(info);
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 9
Project: javify   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void establish_components(IORInfo info)
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("establish_components", true);
      output.write_Object(info);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      establish_components(info);
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 10
Project: javify   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("destroy", true);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 11
Project: jvm-stm   File: _DemoTesterStub.java   Source Code and License 6 votes vote down vote up
/**
 * One way call of the remote method.
 */
public void sayHello()
{
  InputStream in = null;
  try
    {
      // As we do not expect any response, the second
      // parameter is 'false'.
      OutputStream out = _request("sayHello", false);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      sayHello();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 12
Project: jvm-stm   File: _DemoTesterStub.java   Source Code and License 6 votes vote down vote up
/**
 * Set the field value.
 */
public void theField(int newTheField)
{
  InputStream in = null;
  try
    {
      // The special name of operation instructs just to set
      // the field value rather than calling the method.
      OutputStream out = _request("_set_theField", true);
      out.write_long(newTheField);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      theField(newTheField);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 13
Project: jvm-stm   File: _PolicyStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("destroy", true);
      input = _invoke(output);
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 14
Project: jvm-stm   File: _PolicyStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public Policy copy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("copy", true);
      input = _invoke(output);
      return PolicyHelper.read(input);
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      return copy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 15
Project: jvm-stm   File: _IDLTypeStub.java   Source Code and License 6 votes vote down vote up
/**
 * Get the definition kind of the remote IDL type object. The method is
 * written following OMG specification, treating the typecode
 * as a read only attribute rather than a method. This means,
 * the operation name is "_get_def_kind".
 *
 * @return a definition kind, returned by remote IDL type object.
 */
public DefinitionKind def_kind()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("_get_def_kind", true);
      in = _invoke(out);
      return DefinitionKindHelper.read(in);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new org.omg.CORBA.MARSHAL(ex.getId());
    }
  catch (RemarshalException rex)
    {
      return def_kind();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 16
Project: jvm-stm   File: _IDLTypeStub.java   Source Code and License 6 votes vote down vote up
/**
 * Destroy the remote IDL type object.
 */
public void destroy()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("destroy", true);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new org.omg.CORBA.MARSHAL(ex.getId());
    }
  catch (RemarshalException rex)
    {
      destroy();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 17
Project: jvm-stm   File: _NamingContextStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public NamingContext new_context()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("new_context", true);
      in = _invoke(out);

      NamingContext __result = NamingContextHelper.read(in);
      return __result;
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException remarsh)
    {
      return new_context();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 18
Project: jvm-stm   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void components_established(IORInfo info)
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("components_established", true);
      output.write_Object(info);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      components_established(info);
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 19
Project: jvm-stm   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void establish_components(IORInfo info)
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("establish_components", true);
      output.write_Object(info);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      establish_components(info);
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 20
Project: jvm-stm   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("destroy", true);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 21
Project: JamVM-PH   File: _DemoTesterStub.java   Source Code and License 6 votes vote down vote up
/**
 * One way call of the remote method.
 */
public void sayHello()
{
  InputStream in = null;
  try
    {
      // As we do not expect any response, the second
      // parameter is 'false'.
      OutputStream out = _request("sayHello", false);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      sayHello();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 22
Project: JamVM-PH   File: _DemoTesterStub.java   Source Code and License 6 votes vote down vote up
/**
 * Set the field value.
 */
public void theField(int newTheField)
{
  InputStream in = null;
  try
    {
      // The special name of operation instructs just to set
      // the field value rather than calling the method.
      OutputStream out = _request("_set_theField", true);
      out.write_long(newTheField);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      theField(newTheField);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 23
Project: JamVM-PH   File: _PolicyStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("destroy", true);
      input = _invoke(output);
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 24
Project: JamVM-PH   File: _PolicyStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public Policy copy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("copy", true);
      input = _invoke(output);
      return PolicyHelper.read(input);
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      return copy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 25
Project: JamVM-PH   File: _IDLTypeStub.java   Source Code and License 6 votes vote down vote up
/**
 * Get the definition kind of the remote IDL type object. The method is
 * written following OMG specification, treating the typecode
 * as a read only attribute rather than a method. This means,
 * the operation name is "_get_def_kind".
 *
 * @return a definition kind, returned by remote IDL type object.
 */
public DefinitionKind def_kind()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("_get_def_kind", true);
      in = _invoke(out);
      return DefinitionKindHelper.read(in);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new org.omg.CORBA.MARSHAL(ex.getId());
    }
  catch (RemarshalException rex)
    {
      return def_kind();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 26
Project: JamVM-PH   File: _IDLTypeStub.java   Source Code and License 6 votes vote down vote up
/**
 * Destroy the remote IDL type object.
 */
public void destroy()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("destroy", true);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new org.omg.CORBA.MARSHAL(ex.getId());
    }
  catch (RemarshalException rex)
    {
      destroy();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 27
Project: JamVM-PH   File: _NamingContextStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public NamingContext new_context()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("new_context", true);
      in = _invoke(out);

      NamingContext __result = NamingContextHelper.read(in);
      return __result;
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException remarsh)
    {
      return new_context();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 28
Project: JamVM-PH   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void components_established(IORInfo info)
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("components_established", true);
      output.write_Object(info);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      components_established(info);
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 29
Project: JamVM-PH   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void establish_components(IORInfo info)
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("establish_components", true);
      output.write_Object(info);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      establish_components(info);
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 30
Project: JamVM-PH   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("destroy", true);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 31
Project: classpath   File: _DemoTesterStub.java   Source Code and License 6 votes vote down vote up
/**
 * One way call of the remote method.
 */
public void sayHello()
{
  InputStream in = null;
  try
    {
      // As we do not expect any response, the second
      // parameter is 'false'.
      OutputStream out = _request("sayHello", false);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      sayHello();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 32
Project: classpath   File: _DemoTesterStub.java   Source Code and License 6 votes vote down vote up
/**
 * Set the field value.
 */
public void theField(int newTheField)
{
  InputStream in = null;
  try
    {
      // The special name of operation instructs just to set
      // the field value rather than calling the method.
      OutputStream out = _request("_set_theField", true);
      out.write_long(newTheField);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      theField(newTheField);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 33
Project: classpath   File: _PolicyStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("destroy", true);
      input = _invoke(output);
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 34
Project: classpath   File: _PolicyStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public Policy copy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("copy", true);
      input = _invoke(output);
      return PolicyHelper.read(input);
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      return copy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 35
Project: classpath   File: _IDLTypeStub.java   Source Code and License 6 votes vote down vote up
/**
 * Get the definition kind of the remote IDL type object. The method is
 * written following OMG specification, treating the typecode
 * as a read only attribute rather than a method. This means,
 * the operation name is "_get_def_kind".
 *
 * @return a definition kind, returned by remote IDL type object.
 */
public DefinitionKind def_kind()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("_get_def_kind", true);
      in = _invoke(out);
      return DefinitionKindHelper.read(in);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new org.omg.CORBA.MARSHAL(ex.getId());
    }
  catch (RemarshalException rex)
    {
      return def_kind();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 36
Project: classpath   File: _IDLTypeStub.java   Source Code and License 6 votes vote down vote up
/**
 * Destroy the remote IDL type object.
 */
public void destroy()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("destroy", true);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new org.omg.CORBA.MARSHAL(ex.getId());
    }
  catch (RemarshalException rex)
    {
      destroy();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 37
Project: classpath   File: _NamingContextStub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public NamingContext new_context()
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("new_context", true);
      in = _invoke(out);

      NamingContext __result = NamingContextHelper.read(in);
      return __result;
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException remarsh)
    {
      return new_context();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 38
Project: classpath   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void components_established(IORInfo info)
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("components_established", true);
      output.write_Object(info);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      components_established(info);
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 39
Project: classpath   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void establish_components(IORInfo info)
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("establish_components", true);
      output.write_Object(info);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      establish_components(info);
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 40
Project: classpath   File: _IORInterceptor_3_0Stub.java   Source Code and License 6 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("destroy", true);
      input = _invoke(output);

    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();
      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 41
Project: OpenJSharp   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output)
    throws
        ApplicationException,
        RemarshalException
{
    ClientRequestDispatcher subcontract = getClientRequestDispatcher();
    return (InputStream)
        subcontract.marshalingComplete((Object)self, (OutputObject)output);
}
 
Example 42
Project: openjdk-jdk10   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output)
    throws
        ApplicationException,
        RemarshalException
{
    ClientRequestDispatcher subcontract = getClientRequestDispatcher();
    return (InputStream)
        subcontract.marshalingComplete((Object)self, (OutputObject)output);
}
 
Example 43
Project: openjdk9   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
public InputObject marshalingComplete(java.lang.Object self,
                                      OutputObject outputObject)
    throws
        ApplicationException,
        org.omg.CORBA.portable.RemarshalException
{
    ORB orb = null;
    CorbaMessageMediator messageMediator = null;
    try {
        messageMediator = (CorbaMessageMediator)
            outputObject.getMessageMediator();

        orb = (ORB) messageMediator.getBroker();

        if (orb.subcontractDebugFlag) {
            dprint(".marshalingComplete->: " + opAndId(messageMediator));
        }

        InputObject inputObject =
            marshalingComplete1(orb, messageMediator);

        return processResponse(orb, messageMediator, inputObject);

    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".marshalingComplete<-: " + opAndId(messageMediator));
        }
    }
}
 
Example 44
Project: openjdk9   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output)
    throws
        ApplicationException,
        RemarshalException
{
    ClientRequestDispatcher subcontract = getClientRequestDispatcher();
    return (InputStream)
        subcontract.marshalingComplete((Object)self, (OutputObject)output);
}
 
Example 45
Project: lookaside_java-1.8.0-openjdk   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
public InputObject marshalingComplete(java.lang.Object self,
                                      OutputObject outputObject)
    throws
        ApplicationException,
        org.omg.CORBA.portable.RemarshalException
{
    ORB orb = null;
    CorbaMessageMediator messageMediator = null;
    try {
        messageMediator = (CorbaMessageMediator)
            outputObject.getMessageMediator();

        orb = (ORB) messageMediator.getBroker();

        if (orb.subcontractDebugFlag) {
            dprint(".marshalingComplete->: " + opAndId(messageMediator));
        }

        InputObject inputObject =
            marshalingComplete1(orb, messageMediator);

        return processResponse(orb, messageMediator, inputObject);

    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".marshalingComplete<-: " + opAndId(messageMediator));
        }
    }
}
 
Example 46
Project: lookaside_java-1.8.0-openjdk   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output)
    throws
        ApplicationException,
        RemarshalException
{
    ClientRequestDispatcher subcontract = getClientRequestDispatcher();
    return (InputStream)
        subcontract.marshalingComplete((Object)self, (OutputObject)output);
}
 
Example 47
Project: jdk8u_corba   File: CorbaClientRequestDispatcherImpl.java   Source Code and License 5 votes vote down vote up
public InputObject marshalingComplete(java.lang.Object self,
                                      OutputObject outputObject)
    throws
        ApplicationException,
        org.omg.CORBA.portable.RemarshalException
{
    ORB orb = null;
    CorbaMessageMediator messageMediator = null;
    try {
        messageMediator = (CorbaMessageMediator)
            outputObject.getMessageMediator();

        orb = (ORB) messageMediator.getBroker();

        if (orb.subcontractDebugFlag) {
            dprint(".marshalingComplete->: " + opAndId(messageMediator));
        }

        InputObject inputObject =
            marshalingComplete1(orb, messageMediator);

        return processResponse(orb, messageMediator, inputObject);

    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".marshalingComplete<-: " + opAndId(messageMediator));
        }
    }
}
 
Example 48
Project: jdk8u_corba   File: CorbaClientDelegateImpl.java   Source Code and License 5 votes vote down vote up
public InputStream invoke(org.omg.CORBA.Object self, OutputStream output)
    throws
        ApplicationException,
        RemarshalException
{
    ClientRequestDispatcher subcontract = getClientRequestDispatcher();
    return (InputStream)
        subcontract.marshalingComplete((Object)self, (OutputObject)output);
}
 
Example 49
Project: javify   File: _DemoTesterStub.java   Source Code and License 5 votes vote down vote up
/**
  Passes and returns the string sequence.
  */
public String[] passStrings(String[] arg)
{
  InputStream in = null;
  try
    {
      // Get the stream where the parameters must be written:
      OutputStream out = _request("passStrings", true);

      // Wrap the string array using the string sequence helper.
      StringSeqHelper.write(out, arg);

      // Invoke the method.
      in = _invoke(out);

      // Read the returned result using the string sequence helper.
      String[] result = StringSeqHelper.read(in);
      return result;
    }
  catch (ApplicationException ex)
    {
      // Handle the exception, thrown on remote side.
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      return passStrings(arg);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 50
Project: javify   File: _DemoTesterStub.java   Source Code and License 5 votes vote down vote up
/**
  Passes and returns the structures.
  */
public StructureToReturn passStructure(StructureToPass in_structure)
{
  InputStream in = null;
  try
    {
      // Get the stream where the parameters must be written.
      OutputStream out = _request("passStructure", true);

      // Write the structure, using its helper.
      StructureToPassHelper.write(out, in_structure);

      // Invoke the method.
      in = _invoke(out);

      // Read the returned structer, using another helper.
      StructureToReturn result = StructureToReturnHelper.read(in);
      return result;
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      return passStructure(in_structure);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 51
Project: javify   File: _DemoTesterStub.java   Source Code and License 5 votes vote down vote up
/**
 * Pass and return the tree structure
 */
public void passTree(TreeNodeHolder tree)
{
  InputStream in = null;
  try
    {
      // Get the stream where the parameters must be written.
      OutputStream out = _request("passTree", true);

      // Write the tree (TreeNode with its chilred, grandchildren and so on),
      // using the appropriate helper.
      TreeNodeHelper.write(out, tree.value);

      // Call the method.
      in = _invoke(out);

      // Read the returned tree.
      tree.value = TreeNodeHelper.read(in);
    }
  catch (ApplicationException ex)
    {
      // Handle eception on remote side.
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      passTree(tree);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 52
Project: javify   File: _DemoTesterStub.java   Source Code and License 5 votes vote down vote up
/**
 * Get the field value.
 */
public int theField()
{
  InputStream in = null;
  try
    {
      // The special name of operation instructs just to get
      // the field value rather than calling the method.
      OutputStream out = _request("_get_theField", true);
      in = _invoke(out);

      int result = in.read_long();
      return result;
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();
      throw new MARSHAL(ex.getId());
    }
  catch (RemarshalException _rm)
    {
      return theField();
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 53
Project: javify   File: _DemoTesterStub.java   Source Code and License 5 votes vote down vote up
/**
 * The server side exception tests.
 *
 * @param parameter the server throws the user exception in the case
 * of the positive value of this argument, and system
 * exception otherwise.
 *
 * @throws WeThrowThisException
 */
public void throwException(int parameter)
                    throws WeThrowThisException
{
  InputStream in = null;
  try
    {
      // Get stream.
      OutputStream out = _request("throwException", true);

      // Write parameter.
      out.write_long(parameter);

      // Call method.
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      // Get the exception id.
      String id = ex.getId();

      // If this is the user exception we expect to catch, read and throw
      // it here. The system exception, if thrown, is handled by _invoke.
      if (id.equals("IDL:gnu/classpath/examples/CORBA/SimpleCommunication/communication/WeThrowThisException:1.0")
         )
        throw WeThrowThisExceptionHelper.read(in);
      else
        throw new MARSHAL(id);
    }
  catch (RemarshalException _rm)
    {
      throwException(parameter);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 54
Project: javify   File: _PolicyStub.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public int policy_type()
{
  InputStream input = null;
  try
    {
      OutputStream output = _request("policy_type", true);
      input = _invoke(output);

      int returns = input.read_long();

      return returns;
    }
  catch (ApplicationException ex)
    {
      input = ex.getInputStream();

      String id = ex.getId();
      throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      return policy_type();
    }
  finally
    {
      _releaseReply(input);
    }
}
 
Example 55
Project: javify   File: _NamingContextExtStub.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public org.omg.CORBA.Object resolve_str(String a_name_string)
                                 throws NotFound, CannotProceed, InvalidName
{
  InputStream in = null;
  try
    {
      OutputStream _out = _request("resolve_str", true);
      StringNameHelper.write(_out, a_name_string);
      in = _invoke(_out);

      return ObjectHelper.read(in);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String id = ex.getId();
      throw4(in, id);

      // Should never happen.
      throw new InternalError();
    }
  catch (RemarshalException _rm)
    {
      return resolve_str(a_name_string);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 56
Project: javify   File: _NamingContextExtStub.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public String to_url(String an_address, String a_name_string)
              throws InvalidAddress, InvalidName
{
  InputStream in = null;
  try
    {
      OutputStream _out = _request("to_url", true);
      AddressHelper.write(_out, an_address);
      StringNameHelper.write(_out, a_name_string);
      in = _invoke(_out);

      return URLStringHelper.read(in);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String id = ex.getId();
      if (id.equals(InvalidAddressHelper.id()))
        throw InvalidAddressHelper.read(in);
      else if (id.equals(InvalidNameHelper.id()))
        throw InvalidNameHelper.read(in);
      else
        throw new MARSHAL(id);
    }
  catch (RemarshalException _rm)
    {
      return to_url(an_address, a_name_string);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 57
Project: javify   File: _NamingContextStub.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public void bind(NameComponent[] a_name, org.omg.CORBA.Object an_object)
          throws NotFound, CannotProceed, InvalidName, AlreadyBound
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("bind", true);
      NameHelper.write(out, a_name);
      ObjectHelper.write(out, an_object);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String id = ex.getId();
      throw5(in, id);
    }
  catch (RemarshalException remarsh)
    {
      bind(a_name, an_object);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 58
Project: javify   File: _NamingContextStub.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public void bind_context(NameComponent[] a_name, NamingContext a_context)
                  throws NotFound, CannotProceed, InvalidName, AlreadyBound
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("bind_context", true);
      NameHelper.write(out, a_name);
      NamingContextHelper.write(out, a_context);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String id = ex.getId();
      throw5(in, id);
    }
  catch (RemarshalException remarsh)
    {
      bind_context(a_name, a_context);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 59
Project: javify   File: _NamingContextStub.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public NamingContext bind_new_context(NameComponent[] a_name)
                               throws NotFound, AlreadyBound, CannotProceed,
                                      InvalidName
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("bind_new_context", true);
      NameHelper.write(out, a_name);
      in = _invoke(out);

      NamingContext __result = NamingContextHelper.read(in);
      return __result;
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String id = ex.getId();
      throw5(in, id);
      throw new InternalError();
    }
  catch (RemarshalException remarsh)
    {
      return bind_new_context(a_name);
    }
  finally
    {
      _releaseReply(in);
    }
}
 
Example 60
Project: javify   File: _NamingContextStub.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public void destroy()
             throws NotEmpty
{
  InputStream in = null;
  try
    {
      OutputStream out = _request("destroy", true);
      in = _invoke(out);
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String id = ex.getId();
      if (id.equals(NotEmptyHelper.id()))
        throw NotEmptyHelper.read(in);
      else
        throw new MARSHAL(id);
    }
  catch (RemarshalException remarsh)
    {
      destroy();
    }
  finally
    {
      _releaseReply(in);
    }
}