Announcement Announcement Module
No announcement yet.
Class Cast Exception on Client side Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Class Cast Exception on Client side

    Hi all,
    I am using RMIServiceExporter To export the Service. I have configured the bean according to the Steps given in Spring In Action latest book.

    And on client side i am using RMIProxyBeanFactory .
    But as i am running the RMI server its working fine . But when i am trying to get bean On client side and Type Casting it to RMIProxyBeanFactory its giving class cast exception. $Proxy1 can not be cast to RMIProxyBeanFactory. Please help me.

    Even what should i do to look up the Spring RMI Server by using simple RMI way ?
    Please assist as i am very new to Spring .

  • #2
    I suggest you readup on FactoryBeans.. You don't NEED to cast it to a RmiServiceProxyFactoryBean, you simply inject it as if it was your normal object.