Example usage for javax.naming OperationNotSupportedException printStackTrace

List of usage examples for javax.naming OperationNotSupportedException printStackTrace

Introduction

In this page you can find the example usage for javax.naming OperationNotSupportedException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

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

Usage

From source file:gov.nih.nci.ispy.web.ajax.IdLookup.java

public String createPatientList(String[] list, String name) {
    String success = "fail";
    /*/*from  w w  w . jav a2  s .c  om*/
    //create list w/ type=patient
    String success = "fail";
    ISPYListManager um = ISPYListManager.getInstance();
    try   {
     UserList ul = um.createList(ListType.PatientDID, name, Arrays.asList(list));
     ISPYUserListBeanHelper ulbh = new ISPYUserListBeanHelper();
     ulbh.addList(ul);
     success = "success";
    }
    catch (Exception e) {
     // TODO: handle exception
    }
    return success;
    */
    try {
        success = DynamicListHelper.createPatientList(list, name);

    } catch (OperationNotSupportedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    return success;
}

From source file:org.kalypso.ui.wizard.wfs.ImportWfsSourceWizard.java

@Override
public boolean performFinish() {
    final IKalypsoLayerModell mapModell = getMapModel();
    if (mapModell == null)
        return true;

    try {//from   w  w w .  j av  a 2 s . com
        final WFSFeatureType[] layers = m_importWFSPage.getChoosenFeatureLayer();
        for (final WFSFeatureType featureType : layers) {
            final Filter complexFilter = m_importWFSPage.getFilter(featureType);
            final Filter simpleFilter = m_filterWFSPage.getFilter();
            final Filter mergedFilter = FilterUtilites.mergeFilters(complexFilter, simpleFilter);

            final String xml = buildXml(featureType, mergedFilter);

            // TODO here the featurePath is set to featureMember because this is
            // the top feature of the GMLWorkspace
            // it must be implemented to only set the name of the feature
            // (relative path of feature)

            final StringBuffer source = new StringBuffer();
            final QualifiedName qNameFT = featureType.getName();
            source.append("#").append(WfsLoader.KEY_URL).append("=").append(m_importWFSPage.getUri()); //$NON-NLS-1$ //$NON-NLS-2$
            source.append("#").append(WfsLoader.KEY_FEATURETYPE).append("=").append(qNameFT.getLocalName()); //$NON-NLS-1$ //$NON-NLS-2$
            final String namespaceURI = qNameFT.getNamespace().toString();
            if (namespaceURI != null && namespaceURI.length() > 0)
                source.append("#").append(WfsLoader.KEY_FEATURETYPENAMESPACE).append("=").append(namespaceURI); //$NON-NLS-1$ //$NON-NLS-2$

            if (xml != null)
                source.append("#").append(WfsLoader.KEY_FILTER).append("=").append(xml); //$NON-NLS-1$ //$NON-NLS-2$
            if (m_filterWFSPage.doFilterMaxFeatures()) {
                final int maxfeatures = m_filterWFSPage.getMaxFeatures();
                source.append("#").append(WfsLoader.KEY_MAXFEATURE).append("=") //$NON-NLS-1$//$NON-NLS-2$
                        .append(Integer.toString(maxfeatures));
            }

            final String featurePath = "featureMember[" + qNameFT.getLocalName() + "]"; //$NON-NLS-1$ //$NON-NLS-2$
            String title = featureType.getTitle();
            if (title == null || title.isEmpty())
                title = qNameFT.getLocalName();
            final AddThemeCommand command = new AddThemeCommand(mapModell, title, "wfs", featurePath, //$NON-NLS-1$
                    source.toString());
            postCommand(command, null);
        }
    } catch (final OperationNotSupportedException e) {
        e.printStackTrace();
        m_filterWFSPage.setErrorMessage(e.getMessage());
        return false;
    }

    return true;
}

From source file:org.jbuilt.utils.ValueClosure.java

public Object execute(Object... args) {
    try {/*from w  ww.j a  v a  2 s  . c om*/
        throw new OperationNotSupportedException();
    } catch (OperationNotSupportedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    // return null;
    return args;
}