Examples of initCause()


Examples of com.sun.ejb.codegen.GeneratorException.initCause()

                throw new GeneratorException("jaxrpc compilation exception");
            }
        } catch (Throwable t) {
            GeneratorException ge =
                new GeneratorException(t.getMessage());
            ge.initCause(t);
            throw ge;
  }
    }
   
    private void jaxrpcWebService(WebService webService, Vector files)
View Full Code Here

Examples of com.sun.enterprise.InjectionException.initCause()

                    + next + " into " + clazz;
                _logger.log(Level.FINE, msg, t);
                InjectionException ie = new InjectionException(msg);
                Throwable cause = (t instanceof InvocationTargetException) ?
                    ((InvocationTargetException)t).getCause() : t;
                ie.initCause( cause );
                throw ie;

            }
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.common.exception.DeploymentException.initCause()

            return getDeployableObjectType(moduleType);
        } catch (IOException ioe) {
            DeploymentException de = new DeploymentException(
                localStrings.getString(
                    "enterprise.deployment.ioexc_getting_archtype", filePath));
            de.initCause(ioe);
            throw de;
        } catch(Exception  ex) {
            DeploymentException de = new DeploymentException(
                localStrings.getString(
                    "enterprise.deployment.unknown.application.type", filePath));
View Full Code Here

Examples of com.sun.enterprise.admin.common.exception.JMSAdminException.initCause()

    * wil be  MBeanException and cause of that will be the
   * real exception we need
   */
  if ((e.getCause() != null) &&
      (e.getCause().getCause() != null)) {
      je.initCause(e.getCause().getCause().getCause());
  }
        handleException(je);
    }
       
 
View Full Code Here

Examples of com.sun.enterprise.admin.common.exception.MBeanConfigException.initCause()

                    props.getProperty(DeploymentProperties.NAME),
                    enabled,
                    props.getProperty(DeploymentProperties.VIRTUAL_SERVERS));
        } catch(Exception e) {
            MBeanConfigException m = new MBeanConfigException(e.getMessage());
            m.initCause(e);
            throw m;
        }
    }  
   
    /**
 
View Full Code Here

Examples of com.sun.enterprise.admin.common.exception.ServerInstanceException.initCause()

                }
            }
        } catch (Exception e) {
            ServerInstanceException sie =
                new ServerInstanceException(e.getLocalizedMessage());
            sie.initCause(e);
            throw sie;
        }
        return null;
    }
View Full Code Here

Examples of com.sun.enterprise.admin.event.AdminEventListenerException.initCause()

                connectorResourcesLoader= new ConnectorResourcesLoader();
                connectorResourcesLoader.loadRAConfigs(event.getModuleName());
            } catch (ConfigException e) {
                _logger.log(Level.WARNING, "" + e.getMessage());
                AdminEventListenerException aele = new AdminEventListenerException();
                aele.initCause(e);
                throw aele;
            }
           
            realDeployed(event);
View Full Code Here

Examples of com.sun.enterprise.connectors.ConnectorRuntimeException.initCause()

         
            return new MQJMXConnectorInfo[]{mqjmxForServer};
        } catch (Exception e) {
            //e.printStackTrace();
            ConnectorRuntimeException cre = new ConnectorRuntimeException(e.getMessage());
            cre.initCause(e);
            throw cre;
        }
    }

    /*
 
View Full Code Here

Examples of com.sun.enterprise.container.common.spi.util.InjectionException.initCause()

                    "Exception attempting invoke lifecycle method: {0}", lifecycleMethod);
            _logger.log(Level.FINE, msg, t);
            InjectionException ie = new InjectionException(msg);
            Throwable cause = (t instanceof InvocationTargetException) ?
                ((InvocationTargetException)t).getCause() : t;
            ie.initCause( cause );
            throw ie;
        }
       
        return;
View Full Code Here

Examples of com.sun.enterprise.deployment.annotation.AnnotationProcessorException.initCause()

                    processingResult =
                        HandlerProcessingResultImpl.getDefaultResult(
                        annotation.annotationType(), ResultType.FAILED);
                } catch(Throwable e){
                    AnnotationProcessorException ape = new AnnotationProcessorException(e.getMessage(), element);
                    ape.initCause(e);
                    throw ape;
                }
                result.addAll(processingResult);
            }
        } else {
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.