• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

client lookup java.lang.ClassCastException: $Proxy0

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I'm trying to establish a connection from a client application and JBoss 4.2.2
(on my laptop with JBoss 4.0.5 works fine).

I get this error:


317 [main] DEBUG eu.virtualLab.util.dataMigrator.remote.dao.EjbFactory - [setEjbObj] Looking up the ejb interface from context...
317 [main] DEBUG eu.virtualLab.util.dataMigrator.remote.dao.EjbFactory - [setEjbObj] JNDI federfarma/PharmacyBean/remote
560 [main] FATAL eu.virtualLab.util.dataMigrator.remote.dao.EjbFactory - java.lang.ClassCastException: $Proxy0
561 [main] FATAL eu.virtualLab.util.dataMigrator.remote.dao.EjbFactory - eu.virtualLab.util.dataMigrator.remote.dao.EjbFactoryException: java.lang.ClassCastException: $Proxy0



the code


On JMX console


+- federfarma (class: org.jnp.interfaces.NamingContext)
| +- PharmacyBean (class: org.jnp.interfaces.NamingContext)
| | +- local (proxy: $Proxy86 implements interface it.federfarma.modena.pharmacy.ejb.PharmacyLocal,interface org.jboss.ejb3.JBossProxy)
| | +- remote (proxy: $Proxy84 implements interface it.federfarma.modena.pharmacy.ejb.PharmacyRemote,interface org.jboss.ejb3.JBossProxy)



Any help?
Thanks in advance
[ April 15, 2008: Message edited by: Alessandro Ilardo ]
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, on my laptop, browsing the jmx-console I have got these interfaces


+- federfarma (class: org.jnp.interfaces.NamingContext)
| +- PharmacyBean (class: org.jnp.interfaces.NamingContext)
| | +- local (proxy: $Proxy88 implements interface it.federfarma.modena.pharmacy.ejb.PharmacyLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
| | +- remote (proxy: $Proxy86 implements interface it.federfarma.modena.pharmacy.ejb.PharmacyRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)



Something that I missed to configure on JBoss 4.2?
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I got it. I don't know if this is a bug or not (to me it looks like), but it seems that JBoss 4.2.2 is not backward compatible.

The J2EE EJBObject interface is not available.

Changing the class worked.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Alessandro.
I've the same problem in JBoss4.3.
How do you resolved it, please?
Veri
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Veri Strora:
Hi, Alessandro.
I've the same problem in JBoss4.3.
How do you resolved it, please?
Veri



Veri,

Let's continue this discussion in your other thread here
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic