[jboss-cvs] JBossAS SVN: r65666 - branches/Branch_4_2/iiop/src/main/org/jboss/proxy/ejb.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Sep 27 19:20:46 EDT 2007
Author: bdecoste
Date: 2007-09-27 19:20:46 -0400 (Thu, 27 Sep 2007)
New Revision: 65666
Modified:
branches/Branch_4_2/iiop/src/main/org/jboss/proxy/ejb/HomeHandleImplIIOP.java
Log:
[JBAS-4572] stubClass not transient - was causing NPE when proxy was marshalled
Modified: branches/Branch_4_2/iiop/src/main/org/jboss/proxy/ejb/HomeHandleImplIIOP.java
===================================================================
--- branches/Branch_4_2/iiop/src/main/org/jboss/proxy/ejb/HomeHandleImplIIOP.java 2007-09-27 23:11:40 UTC (rev 65665)
+++ branches/Branch_4_2/iiop/src/main/org/jboss/proxy/ejb/HomeHandleImplIIOP.java 2007-09-27 23:20:46 UTC (rev 65666)
@@ -56,7 +56,7 @@
private String ior;
/** The stub class */
- private transient Class<?> stubClass = EJBHome.class;
+ private Class<?> stubClass = EJBHome.class;
/**
* Constructs a <code>HomeHandleImplIIOP</code>.
@@ -66,6 +66,7 @@
public HomeHandleImplIIOP(String ior)
{
this.ior = ior;
+ System.out.println("!!! new HomeHandleImplIIOP1");
}
/**
@@ -76,6 +77,7 @@
public HomeHandleImplIIOP(EJBHome home)
{
this((org.omg.CORBA.Object)home);
+ System.out.println("!!! new HomeHandleImplIIOP2");
}
/**
@@ -87,6 +89,7 @@
{
this.ior = CorbaORB.getInstance().object_to_string(home);
this.stubClass = home.getClass();
+ System.out.println("!!! new HomeHandleImplIIOP3");
}
// Public --------------------------------------------------------
@@ -123,6 +126,7 @@
return null;
// Already the correct type
+ System.out.println("!!!! narrow " + stubClass + " " + obj);
if (stubClass.isAssignableFrom(obj.getClass()))
return (EJBHome) obj;
@@ -147,6 +151,7 @@
{
HandleDelegate delegate = HandleDelegateImpl.getDelegate();
delegate.writeEJBHome(getEJBHome(), oostream);
+ System.out.println("!!!! writeObject " + stubClass );
}
public void readObject(ObjectInputStream oistream) throws IOException, ClassNotFoundException
@@ -155,5 +160,6 @@
EJBHome obj = delegate.readEJBHome(oistream);
this.ior = CorbaORB.getInstance().object_to_string((org.omg.CORBA.Object) obj);
this.stubClass = obj.getClass();
+ System.out.println("!!!! readObject " + stubClass );
}
}
More information about the jboss-cvs-commits
mailing list