I just installed jboss and deployed the interest example jar, but when
running the client I got an exception written to System.out/err on the
client side at the line;

          Object ref = jndiContext.lookup("interest/Interest");

However, the client gets the ref object and goes on to successfully
calculate the interest amount.  (!?)

Has anyone else experienced this?


Detailed output from the client:

Got context
java.lang.NoSuchMethodException
     java.lang.Throwable()
     java.lang.Exception()
     java.lang.NoSuchMethodException()
     java.lang.reflect.Method java.lang.Class.getMethod0(java.lang.String,
java.lang.Class [], int)
     java.lang.reflect.Method java.lang.Class.getMethod(java.lang.String,
java.lang.Class [])
     java.lang.Class java.io.ObjectInputStream.loadClass0(java.lang.Class,
java.lang.String)
     java.lang.Class
java.io.ObjectInputStream.resolveClass(java.io.ObjectStreamClass)
     java.lang.Class
sun.rmi.server.MarshalInputStream.resolveClass(java.io.ObjectStreamClass)
     java.io.ObjectStreamClass
java.io.ObjectInputStream.inputClassDescriptor()
     java.lang.Object java.io.ObjectInputStream.readObject(boolean)
     java.lang.Object java.io.ObjectInputStream.readObject()
     int java.io.ObjectInputStream.inputObject(boolean)
     java.lang.Object java.io.ObjectInputStream.readObject(boolean)
     void java.io.ObjectInputStream.inputClassFields(java.lang.Object,
java.lang.Class, java.io.ObjectStreamField [])
     void java.io.ObjectInputStream.defaultReadObject()
     int java.io.ObjectInputStream.inputObject(boolean)
     java.lang.Object java.io.ObjectInputStream.readObject(boolean)
     java.lang.Object java.io.ObjectInputStream.readObject()
     java.lang.Object java.rmi.MarshalledObject.get()
     java.lang.Object
org.jnp.interfaces.NamingContext.lookup(javax.naming.Name)
     java.lang.Object
org.jnp.interfaces.NamingContext.lookup(java.lang.String)
     java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
     void InterestClient.main(java.lang.String [])

Got reference
Interest on 1000 units, at 10% per period, compounded over 2 periods is:
210.00000000000023



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to