Package javax.naming

Examples of javax.naming.CommunicationException


          }
        } //end of if(rowId[i] != null && !rowId[i].equals(""))
      } //end of for (int i=0; i<rowId.length; i++)
    } catch(CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
    }
    if (!deleteLog.isEmpty())
    {
      ActionErrors allErrors = new ActionErrors();
      allErrors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.freeForm", "You do not have permission to delete one or more of the records you selected."));
View Full Code Here


          }
        }
      }
    } catch(CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
    }
    if (!deleteLog.isEmpty())
    {
      ActionErrors allErrors = new ActionErrors();
      allErrors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.freeForm", "You do not have permission to delete one or more of the records you selected."));
View Full Code Here

      }//end of for (int i=0; i<recordID.length; i++)
    }//end of try block
    catch( CreateException e )
    {
      logger.error("[Exception] AddressList.deleteElement( int indvID, String rowId[] ) ", e);
      throw new CommunicationException(e.getMessage());
    }//end of catch( CreateException e )
    this.setDirtyFlag(true);

    return resultDeleteLog;
  }// end of deleteElement
View Full Code Here

      }//end of for (int i=0; i<recordID.length; i++)
    }//end of try block
    catch( CreateException e )
    {
      logger.error("[Exception] GroupMemberList.deleteElement( int indvID, String rowId[] ) ", e);
    throw new CommunicationException(e.getMessage());
    }//end of catch( CreateException e )
    this.setDirtyFlag(true);

    return resultDeleteLog;
  }// end of deleteElement( int indvID, String rowId[] ) throws CommunicationException,NamingException
View Full Code Here

        {
            ne = new NamingException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapProtocolErrorException )
        {
            ne = new CommunicationException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapReferralException )
        {
            ne = new WrappedReferralException( ( LdapReferralException ) t );
        }
View Full Code Here

        provider.authenticate(joe);
    }

    @Test(expected = org.springframework.ldap.CommunicationException.class)
    public void nonAuthenticationExceptionIsConvertedToSpringLdapException() throws Exception {
        provider.contextFactory = createContextFactoryThrowing(new CommunicationException(msg));
        provider.authenticate(joe);
    }
View Full Code Here

        {
            ne = new NamingException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapProtocolErrorException )
        {
            ne = new CommunicationException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapReferralException )
        {
            ne = new WrappedReferralException( ( LdapReferralException ) t );
        }
View Full Code Here

                        ? new ServiceUnavailableException()
                : (e instanceof ConnectIOException)
               || (e instanceof ExportException)
               || (e instanceof MarshalException)
               || (e instanceof UnmarshalException)
                        ? new CommunicationException()
                : (e instanceof ActivateFailedException)
               || (e instanceof NoSuchObjectException)
               || (e instanceof java.rmi.server.SkeletonMismatchException)
               || (e instanceof java.rmi.server.SkeletonNotFoundException)
               || (e instanceof StubNotFoundException)
View Full Code Here

        try {
            return new LdapClient(factory, host, port);

        } catch (IOException e) {
            CommunicationException ex = new CommunicationException();
            ex.setRootCause(e);
            throw ex;
        }
    }
View Full Code Here

        SearchOp search = new SearchOp(targetDN, searchControls, filter);

        try {
            client.doOperation(search, requestControls);
        } catch (IOException e) {
            CommunicationException ex = new CommunicationException(e
                    .getMessage());
            ex.setRootCause(e);
            if (search.getSearchResult().isEmpty()) {
                throw ex;
            }
            search.getSearchResult().setException(ex);
        }
View Full Code Here

TOP

Related Classes of javax.naming.CommunicationException

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.