Example usage for java.rmi RemoteException printStackTrace

List of usage examples for java.rmi RemoteException printStackTrace

Introduction

In this page you can find the example usage for java.rmi RemoteException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public LicenseCheckContainer getHasRevokedFishingLicense(String shipID) {
    GetersviptingElement parameters = new GetersviptingElement(new BigDecimal(shipID));
    try {//from   www. j a v a2s  . c o m
        GetersviptingResponseElement res = getLicensePort().getersvipting(parameters);

        LicenseCheckContainer ret = null;
        if (res.getResult().getIsok().intValue() > 0) {
            ret = new LicenseCheckContainer(true, res.getResult().getMessage());
        } else {
            ret = new LicenseCheckContainer(false, res.getResult().getMessage());
        }

        return ret;

    } catch (RemoteException e) {
        e.printStackTrace();
    }
    return new LicenseCheckContainer(false, "error_from_web_service");
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public String getFishingArea(String shipId, Timestamp validFrom) {

    StringBuilder period = new StringBuilder();
    IWTimestamp stamp = new IWTimestamp(validFrom);
    period.append(stamp.getDateString("yy"));
    stamp.addYears(1);//  w w w.j  a  v a 2s  . c  om
    period.append(stamp.getDateString("yy"));

    GetstrandvlcodeforskipElement parameters = new GetstrandvlcodeforskipElement(new BigDecimal(shipId),
            period.toString());
    try {
        GetstrandvlcodeforskipResponseElement res = getLicensePort().getstrandvlcodeforskip(parameters);
        return res.getResult().getText();
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return "error_from_web_service";
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public LicenseCheckContainer getHasValidGeneralFishingLicense(String shipID) {
    GethefurveidileyfiElement parameters = new GethefurveidileyfiElement(new BigDecimal(shipID),
            IWTimestamp.RightNow().getCalendar());
    try {/*  w  w w .  ja  v a  2  s. c o m*/
        GethefurveidileyfiResponseElement res = getLicensePort().gethefurveidileyfi(parameters);

        LicenseCheckContainer ret = null;
        if (res.getResult().getIsok().intValue() > 0) {
            ret = new LicenseCheckContainer(true, res.getResult().getMessage());
        } else {
            ret = new LicenseCheckContainer(false, res.getResult().getMessage());
        }

        return ret;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return new LicenseCheckContainer(false, "error_from_web_service");
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public LicenseCheckContainer getHasValidCoastFishingLicense(String shipID) {
    GethefurstrandveidileyfiElement parameters = new GethefurstrandveidileyfiElement(new BigDecimal(shipID),
            IWTimestamp.RightNow().getCalendar());
    try {/*from  ww  w  .  j a  va  2 s.c  om*/
        GethefurstrandveidileyfiResponseElement res = getLicensePort().gethefurstrandveidileyfi(parameters);

        LicenseCheckContainer ret = null;
        if (res.getResult().getIsok().intValue() > 0) {
            ret = new LicenseCheckContainer(true, res.getResult().getMessage());
        } else {
            ret = new LicenseCheckContainer(false, res.getResult().getMessage());
        }

        return ret;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return new LicenseCheckContainer(false, "error_from_web_service");
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public LicenseCheckContainer getIfDragnotVessel(BigDecimal shipID, String validFrom) {
    GetskipekkiflokkurdragnotElement parameters = new GetskipekkiflokkurdragnotElement(shipID, validFrom);

    try {/*w ww  . j a  v a 2s. co  m*/
        GetskipekkiflokkurdragnotResponseElement res = getLicensePort().getskipekkiflokkurdragnot(parameters);

        LicenseCheckContainer ret = null;
        if (res.getResult().getIsok().intValue() > 0) {
            ret = new LicenseCheckContainer(true, res.getResult().getMessage());
        } else {
            ret = new LicenseCheckContainer(false, res.getResult().getMessage());
        }

        return ret;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return new LicenseCheckContainer(false, "error_from_web_service");
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public LicenseCheckContainer getHasValidQuotaLimitFishingLicenseDragnot(String shipID) {
    GethefuraflamarksveidileyfiElement parameters = new GethefuraflamarksveidileyfiElement(
            new BigDecimal(shipID), IWTimestamp.RightNow().getCalendar());
    try {/* w  w  w .ja  v a 2  s .c o  m*/
        GethefuraflamarksveidileyfiResponseElement res = getLicensePort()
                .gethefuraflamarksveidileyfi(parameters);

        LicenseCheckContainer ret = null;
        if (res.getResult().getIsok().intValue() > 0) {
            ret = new LicenseCheckContainer(true, res.getResult().getMessage());
        } else {
            ret = new LicenseCheckContainer(false, res.getResult().getMessage());
        }

        return ret;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return new LicenseCheckContainer(false, "error_from_web_service");
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public LicenseCheckContainer getHasValidQuotaLimitFishingLicense(String shipID) {
    GethefuraflamarksveidilgrslElement parameters = new GethefuraflamarksveidilgrslElement(
            new BigDecimal(shipID), IWTimestamp.RightNow().getCalendar());
    try {//from  www. ja v a  2 s .c  o  m
        GethefuraflamarksveidilgrslResponseElement res = getLicensePort()
                .gethefuraflamarksveidilgrsl(parameters);

        LicenseCheckContainer ret = null;
        if (res.getResult().getIsok().intValue() > 0) {
            ret = new LicenseCheckContainer(true, res.getResult().getMessage());
        } else {
            ret = new LicenseCheckContainer(false, res.getResult().getMessage());
        }

        return ret;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return new LicenseCheckContainer(false, "error_from_web_service");
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public LicenseCheckContainer getHasValidHookQuotaLimitFishingLicense(String shipID) {
    GethefurkrokaaflamarksveidilElement parameters = new GethefurkrokaaflamarksveidilElement(
            new BigDecimal(shipID), IWTimestamp.RightNow().getCalendar());
    try {// w ww.j  a v  a2s  .  c o m
        GethefurkrokaaflamarksveidilResponseElement res = getLicensePort()
                .gethefurkrokaaflamarksveidil(parameters);

        LicenseCheckContainer ret = null;
        if (res.getResult().getIsok().intValue() > 0) {
            ret = new LicenseCheckContainer(true, res.getResult().getMessage());
        } else {
            ret = new LicenseCheckContainer(false, res.getResult().getMessage());
        }

        return ret;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return new LicenseCheckContainer(false, "error_from_web_service");
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public BigDecimal createFishingLicense(String shipNr, String areaID, IWTimestamp from, IWTimestamp to,
        String info) {/*from  w  w  w  .j  a v  a2  s.  c o m*/
    String user = IWMainApplication.getDefaultIWApplicationContext().getApplicationSettings()
            .getProperty(LICENSE_UPDATE_USER, "");

    String password = IWMainApplication.getDefaultIWApplicationContext().getApplicationSettings()
            .getProperty(LICENSE_UPDATE_PASSWORD, "");

    CreateveidileyfiWithPasswordElement parameters = new CreateveidileyfiWithPasswordElement(
            new BigDecimal(shipNr), areaID, from.getCalendar(), (to == null) ? null : to.getCalendar(), info,
            user, password);

    try {
        CreateveidileyfiWithPasswordResponseElement res = getLicenseUpdatePort()
                .createveidileyfiWithPassword(parameters);
        return res.getResult();
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return new BigDecimal(-1);
}

From source file:is.idega.idegaweb.egov.gumbo.webservice.client.business.DOFWSClientRealWebservice.java

public LicenseCheckContainer getHasValidSeafaringLicense(String shipID) {
    IWTimestamp now = new IWTimestamp();
    // now.setDay(14);

    GetskiphefurgilthaffaeriElement parameters = new GetskiphefurgilthaffaeriElement(new BigDecimal(shipID),
            now.getCalendar());//from w  w w  .  ja v  a 2s .  com
    try {
        GetskiphefurgilthaffaeriResponseElement res = getShipPort().getskiphefurgilthaffaeri(parameters);

        LicenseCheckContainer ret = null;
        if (res.getResult().getIsok().intValue() > 0) {
            ret = new LicenseCheckContainer(true, res.getResult().getMessage());
        } else {
            ret = new LicenseCheckContainer(false, res.getResult().getMessage());
        }

        return ret;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return new LicenseCheckContainer(false, "error_from_web_service");
}