4 Replies Latest reply on Dec 17, 2002 8:14 AM by stevek

    Proxy Error

    stevek Newbie

      I get the error below when I try to return an object from a session bean (using the home/remote interface). The object is returned from OJB and contains objects within it that are retrieved by OJB references. If I just return the top-level object (by removing all the references to other tables so OJB does not retrieve the other table entries) it works. Any ideas?

      Thanks for any help

      Caught an unexpected exception!
      java.lang.reflect.UndeclaredThrowableException
      at $Proxy1.findCustomer(Unknown Source)
      at customermanager.Frame1.retrieveCustomer(Frame1.java:134)
      at customermanager.Frame1$3.actionPerformed(Frame1.java:75)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
      64)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
      ctButton.java:1817)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
      .java:419)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
      )
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
      istener.java:245)
      at java.awt.Component.processMouseEvent(Component.java:5093)
      at java.awt.Component.processEvent(Component.java:4890)
      at java.awt.Container.processEvent(Container.java:1566)

        • 1. Re: Proxy Error
          Adrian Brock Master

          What is the undeclared throwable?

          You don't show the full stacktrace.

          Regards,
          Adrian

          • 2. Re: Proxy Error
            stevek Newbie

            I think this is all of it:

            Caught an unexpected exception!
            java.lang.reflect.UndeclaredThrowableException
            at $Proxy1.findCustomer(Unknown Source)
            at customermanager.Frame1.retrieveCustomer(Frame1.java:134)
            at customermanager.Frame1$3.actionPerformed(Frame1.java:75)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
            64)
            at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
            ctButton.java:1817)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
            .java:419)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
            )
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
            istener.java:245)
            at java.awt.Component.processMouseEvent(Component.java:5093)
            at java.awt.Component.processEvent(Component.java:4890)
            at java.awt.Container.processEvent(Container.java:1566)
            at java.awt.Component.dispatchEventImpl(Component.java:3598)
            at java.awt.Container.dispatchEventImpl(Container.java:1623)
            at java.awt.Component.dispatchEvent(Component.java:3439)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
            )
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)

            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
            at java.awt.Container.dispatchEventImpl(Container.java:1609)
            at java.awt.Window.dispatchEventImpl(Window.java:1585)
            at java.awt.Component.dispatchEvent(Component.java:3439)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
            read.java:197)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
            ad.java:150)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)

            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)

            at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
            Caused by: java.lang.ClassNotFoundException: org.apache.ojb.broker.util.collecti
            ons.ManageableVector (no security manager: RMI class loader disabled)
            at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
            at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
            at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
            at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
            at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.jav
            a:200)
            at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
            3)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            626)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
            45)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)

            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            646)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
            at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo
            kerProxy.java:139)
            at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
            a:108)
            at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
            java:77)
            at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:8
            0)
            at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSession
            Interceptor.java:117)
            at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
            ... 26 more

            • 3. Re: Proxy Error
              Adrian Brock Master

              java.lang.ClassNotFoundException: org.apache.ojb.broker.util.collections.ManageableVector

              I guess you don't have that class in the client's
              classpath.

              Regards,
              Adrian

              • 4. Re: Proxy Error
                stevek Newbie

                Thanks, I see the "class not found" exception now. I guess I did not look far enough down the trace. Now I need to figure out what OJB is doing.