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 is.fiskistofa.webservices.aflaheimildskerding.FSWebserviceAFLAHEIMILDSKERDING_wsdl.SkipInfoTypeUser[] getCatchDelimiterShips(
        String personalID) {/*from w ww . j a va2 s.co m*/
    try {
        OstadfestSkipEigandaElement parameters = new OstadfestSkipEigandaElement(personalID);
        return getCatchDelimiterPort().ostadfestSkipEiganda(parameters);
    } catch (RemoteException re) {
        re.printStackTrace();
        return null;
    }
}

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

public LondunTypeUser[] getLatestCatchInfoByShip(BigDecimal shipNumber, int numberOfResults) {
    try {/*from ww w  .j  a v a  2  s .  com*/
        GetlastlandanirbyskipElement parameter = new GetlastlandanirbyskipElement(shipNumber,
                new BigDecimal(numberOfResults));
        return getCatchPort().getlastlandanirbyskip(parameter);
    } catch (RemoteException re) {
        re.printStackTrace();
    }

    return null;
}

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

public CodeTypeUser getFishingAreaForDraganotaveidi(String shipId) {
    GetdragnotvlcodeforskipElement parameters = new GetdragnotvlcodeforskipElement(new BigDecimal(shipId));

    try {/* w w w  . ja  va 2 s . c  o m*/
        GetdragnotvlcodeforskipResponseElement res = getLicensePort().getdragnotvlcodeforskip(parameters);
        return res.getResult();
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return null;
}

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

public CodeTypeUser getFishingAreaStrandveidi(String postNr) {

    GetstrandvlcodeforpostnrElement parameters = new GetstrandvlcodeforpostnrElement(new BigDecimal(postNr),
            null);/*from   www.j av  a2 s  .c o  m*/
    try {
        GetstrandvlcodeforpostnrResponseElement res = getLicensePort().getstrandvlcodeforpostnr(parameters);
        return res.getResult();
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return null;
}

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

public CheckReplyTypeUser getQuotaTransferCheckForShip(String vesselID) {
    GetaflamflutningstekkforskipElement parameters = new GetaflamflutningstekkforskipElement(
            new BigDecimal(vesselID));
    try {//from w  ww  .j  a  v  a2  s  .c om
        GetaflamflutningstekkforskipResponseElement res = getLicensePort()
                .getaflamflutningstekkforskip(parameters);
        return res.getResult();
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return null;
}

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

public AflaHeimildSkerdingAlltTypUser sendCatchDelimiter(AflaHeimildSkerdingAlltTypUser delimiter) {
    try {/*from w  w  w . j  a  v  a2 s .  c  om*/
        String user = IWMainApplication.getDefaultIWApplicationContext().getApplicationSettings()
                .getProperty(LICENSE_UPDATE_USER, "");

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

        StadfestaElement parameters = new StadfestaElement(delimiter, user, password);
        return getCatchDelimiterPort().stadfesta(parameters).getResult();
    } catch (RemoteException re) {
        re.printStackTrace();
        return null;
    }
}

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

public boolean cancelFishingLicense(BigDecimal fishingLicenseID) {
    String user = IWMainApplication.getDefaultIWApplicationContext().getApplicationSettings()
            .getProperty(LICENSE_UPDATE_USER, "");

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

    EydaOgilduVeidileyfiElement parameters = new EydaOgilduVeidileyfiElement(fishingLicenseID, user, password);
    try {/*from   ww  w . j  av  a2 s .c  o m*/
        getLicenseUpdatePort().eydaOgilduVeidileyfi(parameters);
        return true;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return false;
}

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

public boolean activateFishingLicense(BigDecimal fishingLicenseID) {
    String user = IWMainApplication.getDefaultIWApplicationContext().getApplicationSettings()
            .getProperty(LICENSE_UPDATE_USER, "");

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

    VirkjaveidileyfiWithPasswordElement parameters = new VirkjaveidileyfiWithPasswordElement(fishingLicenseID,
            user, password);/* www .ja  v  a  2  s.  c  om*/
    try {
        getLicenseUpdatePort().virkjaveidileyfiWithPassword(parameters);
        return true;
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    return false;
}

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

public LicenseCheckContainer getMaximumLength(BigDecimal shipID) {
    try {//from   ww w  .  java 2  s  .  co  m
        GetmestalengdyfirmorkumElement parameters = new GetmestalengdyfirmorkumElement(shipID);
        GetmestalengdyfirmorkumResponseElement res = getLicensePort().getmestalengdyfirmorkum(parameters);
        CheckReplyTypeUser result = res.getResult();

        if (result.getIsok().intValue() > 0) {
            return new LicenseCheckContainer(true, result.getMessage());
        } else {
            return new LicenseCheckContainer(false, result.getMessage());
        }
    } catch (RemoteException re) {
        re.printStackTrace();
    }

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

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

public LicenseCheckContainer getMaximumPower(BigDecimal shipID) {
    try {/*  w  ww.j  a  v  a  2s  . co m*/
        GetmestiaflvisirElement parameters = new GetmestiaflvisirElement(shipID);
        GetmestiaflvisirResponseElement res = getLicensePort().getmestiaflvisir(parameters);
        CheckReplyTypeUser result = res.getResult();

        if (result.getIsok().intValue() > 0) {
            return new LicenseCheckContainer(true, result.getMessage());
        } else {
            return new LicenseCheckContainer(false, result.getMessage());
        }
    } catch (RemoteException re) {
        re.printStackTrace();
    }

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