Examples of TckInternalError


Examples of test.tck.TckInternalError

    try {
      return createRequest(Request.REGISTER, riAddressFactory,
          riHeaderFactory, riMessageFactory, riSipProvider,
          tiSipProvider, null, null, null);
    } catch (Throwable exc) {
      throw new TckInternalError(
          "Failed to create an RI->TI register request", exc);
    }
  }
View Full Code Here

Examples of test.tck.TckInternalError

      Address address = riAddressFactory.createAddress(srcSipURI);
      address.setDisplayName("RI Contact");
      contact.setAddress(address);
      return contact;
    } catch (Exception ex) {
      throw new TckInternalError(ex.getMessage());
    }
  }
View Full Code Here

Examples of test.tck.TckInternalError

      } catch (SipException ex) {
        throw new TiUnexpectedError(
            "A SipExceptionOccurred while trying to send request!",
            ex);
      } catch (TooManyListenersException ex) {
        throw new TckInternalError(
            "Failed to regiest a SipListener with an RI SipProvider",
            ex);
      }
      waitForMessage();
      RequestEvent inviteReceivedEvent = eventCollector
View Full Code Here

Examples of test.tck.TckInternalError

      } catch (SipException ex) {
        throw new TiUnexpectedError(
            "A SipExceptionOccurred while trying to send request!",
            ex);
      } catch (TooManyListenersException ex) {
        throw new TckInternalError(
            "Failed to regiest a SipListener with an RI SipProvider",
            ex);
      }
      waitForMessage();
      RequestEvent inviteReceivedEvent = eventCollector
View Full Code Here

Examples of test.tck.TckInternalError

      } catch (SipException ex) {
        throw new TiUnexpectedError(
            "A SipExceptionOccurred while trying to send request!",
            ex);
      } catch (TooManyListenersException ex) {
        throw new TckInternalError(
            "Failed to regiest a SipListener with an RI SipProvider",
            ex);
      }
      waitForMessage();
      RequestEvent inviteReceivedEvent = eventCollector
View Full Code Here

Examples of test.tck.TckInternalError

  }
  private SipListener getSipListener(EventObject sipEvent) {
    SipProvider source = (SipProvider) sipEvent.getSource();
    SipListener listener = (SipListener) providerTable.get(source);
    if (listener == null)
      throw new TckInternalError("Unexpected null listener");
    return listener;
  }
View Full Code Here

Examples of test.tck.TckInternalError

            tiFactory.resetFactory();
            tiFactory.setPathName( getImplementationPath() );
            tiSipStack = tiFactory.createSipStack(getTiProperties());
            if (riSipStack == tiSipStack) {
                throw new TckInternalError("riSipStack should not the same as tiSipStack");
            }
        } catch (TckInternalError ex){
            throw ex;
        } catch (Exception ex) {
            fail("initialization failed");
View Full Code Here

Examples of test.tck.TckInternalError

                continue;
            }
            break;
        }
        if (tries >= RETRY_OBJECT_DELETES)
            throw new TckInternalError("Failed to delete riSipProvider!");

        // Delete RI ListeningPoint
        for (tries = 0; tries < RETRY_OBJECT_DELETES; tries++) {
            try {
                riSipStack.deleteListeningPoint(riListeningPoint);
            } catch (ObjectInUseException ex) {
                // System.err.println("Retrying delete of riListeningPoint!");
                sleep(RETRY_OBJECT_DELETES_AFTER);
                continue;
            }
            break;
        }
        if (tries >= RETRY_OBJECT_DELETES)
            throw new TckInternalError("Failed to delete riListeningPoint!");

        riSipProvider = null;
        riListeningPoint = null;

        // Delete TI SipProvider
View Full Code Here

Examples of test.tck.TckInternalError

        try {
            return createRequest(Request.INVITE, riAddressFactory,
                    riHeaderFactory, riMessageFactory, riSipProvider,
                    tiSipProvider, contentType, contentSubType, content);
        } catch (Throwable exc) {
            throw new TckInternalError(
                    "Failed to create an RI->TI invite request", exc);
        }
    }
View Full Code Here

Examples of test.tck.TckInternalError

        try {
            return createRequest(Request.REGISTER, riAddressFactory,
                    riHeaderFactory, riMessageFactory, riSipProvider,
                    tiSipProvider, null, null, null);
        } catch (Throwable exc) {
            throw new TckInternalError(
                    "Failed to create an RI->TI register request", exc);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.