Package com.sun.star.lang

Examples of com.sun.star.lang.DisposedException


            try {
                sync = _iProtocol.writeRequest(
                    oid, TypeDescription.getTypeDescription(type), operation,
                    threadId, params);
            } catch (IOException e) {
                DisposedException d = new DisposedException(e.toString());
                dispose(d);
                throw d;
            }
            if (sync && Thread.currentThread() != _messageDispatcher) {
                result = _iThreadPool.enter(handle, threadId);
View Full Code Here


    }

    // This function must only be called while synchronized on this object:
    private synchronized void checkDisposed() {
        if (disposed) {
            throw new DisposedException("java_remote_bridge " + this
                                        + " is disposed");
        }
    }
View Full Code Here

        else
            bVoidValue= value == null;
        if (bVoidValue && (prop.Attributes & PropertyAttribute.MAYBEVOID) == 0)
            throw new com.sun.star.lang.IllegalArgumentException("The property must have a value; the MAYBEVOID attribute is not set!");
        if (bInDispose || bDisposed)
            throw new DisposedException("Component is already disposed");
       
        //Check if the argument is allowed
        boolean bValueOk= false;
        if (value instanceof Any)
            bValueOk= checkType(((Any) value).getObject());
View Full Code Here

                    }
                    _iThreadPool.putJob(
                        new Job(obj, java_remote_bridge.this, msg));
                }
            } catch (Throwable e) {
                dispose(new DisposedException(e.toString()));
            }
        }
View Full Code Here

                _iProtocol.flush(_outputStream);
                _outputStream.flush();
            }
        } catch (Exception e) {
            dispose(e);
            throw new DisposedException(getClass().getName()
                                        + ".sendReply - unexpected: " + e);
        } catch (Error e) {
            dispose(e);
            throw e;
        }
View Full Code Here

        try {
          _iProtocol.flush(_outputStream);
          _outputStream.flush();
        }
        catch(IOException iOException) {
                    DisposedException disposedException =
                        new DisposedException( iOException.getMessage() );
          dispose(disposedException);
                    throw disposedException;
        }
      }
View Full Code Here

  }

    // This function must only be called while synchronized on this object:
    private void checkDisposed() {
        if (state == STATE_DISPOSED) {
            throw new DisposedException("java_remote_bridge " + this
                                        + " is disposed");
        }
    }
View Full Code Here

        if(!_quit && DEBUG) {
          System.err.println(getClass() + " - reading message - exception occurred: \"" + eofException + "\"");
          System.err.println(getClass() + " - giving up");
        }

        throwable = new DisposedException( eofException.getMessage() );
      }
      catch(Exception exception) {
        if(DEBUG) {
          System.err.println(getClass() + " - reading message - exception occurred: \"" + exception + "\"");
          exception.printStackTrace();
          System.err.println(getClass() + " - giving up");
        }
          if(DEBUG)
          exception.printStackTrace();

        throwable = new DisposedException( exception.getMessage() );
      }

      // dispose this bridge only within an error
            if (!_quit) {
                java_remote_bridge.this.dispose(throwable);
View Full Code Here

        try {
            _iProtocol.writeReply(exception, threadId, result);
        } catch (IOException e) {
            dispose(e);
            throw new DisposedException("unexpected " + e);
        } catch (RuntimeException e) {
            dispose(e);
            throw e;
        } catch (Error e) {
            dispose(e);
View Full Code Here

            try {
                sync = _iProtocol.writeRequest(
                    oid, TypeDescription.getTypeDescription(type), operation,
                    threadId, params);
            } catch (IOException e) {
                DisposedException d = new DisposedException(e.toString());
                dispose(d);
                throw d;
            }
            if (sync && Thread.currentThread() != _messageDispatcher) {
                result = _iThreadPool.enter(handle, threadId);
View Full Code Here

TOP

Related Classes of com.sun.star.lang.DisposedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.