[jboss-cvs] jboss-seam/src/remoting/org/jboss/seam/remoting ...

Shane Bryzak sbryzak at redhat.com
Mon Oct 1 22:54:17 EDT 2007


  User: sbryzak2
  Date: 07/10/01 22:54:17

  Modified:    src/remoting/org/jboss/seam/remoting  Call.java
  Log:
  better exception
  
  Revision  Changes    Path
  1.5       +6 -0      jboss-seam/src/remoting/org/jboss/seam/remoting/Call.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Call.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/remoting/org/jboss/seam/remoting/Call.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- Call.java	4 Jul 2007 03:36:48 -0000	1.4
  +++ Call.java	2 Oct 2007 02:54:17 -0000	1.5
  @@ -141,6 +141,12 @@
        // Create an instance of the component
        Object instance = Component.getInstance(componentName, true);
   
  +     if (instance == null)
  +     {
  +        throw new RuntimeException(String.format(
  +              "Could not create instance of component %s", componentName));
  +     }
  +
        Class type = null;
   
        if (component.getType().isSessionBean() &&
  
  
  



More information about the jboss-cvs-commits mailing list