1. glassfish
  2. GLASSFISH-18402

EJB lookup problem with webstart; multithreaded use of same client-side proxy?


    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2_b18, 3.1.2_b19, 3.1.2_b20, 3.1.2_b21, 3.1.2_b22, 3.1.2_b23
    • Fix Version/s: None
    • Component/s: orb
    • Labels:


      Our enterprise application contains an EJB module and the application client. The remote jndi lookup in the application client works fine, if the client stub runs with the appclient shell script. But when the application is executed via webstart, the beans won't be located properly due to the following error:

      Caused by: javax.naming.NamingException: ejb ref resolution error for remote business interfacede.beans.einkauf.MyServiceBeanRemote [Root exception is java.lang.IllegalArgumentException: java.lang.ClassCastException@532c81b7]
      	at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(
      	at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(
      	at javax.naming.spi.NamingManager.getObjectInstance(
      	at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(
      	at com.sun.enterprise.naming.impl.SerialContext.lookup(
      	... 15 more
      Caused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@532c81b7
      	at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
      	at java.lang.reflect.Method.invoke(
      	at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(
      	... 19 more

      Maybe a cache issue, but we have no clue what goes wrong here.


        andydr created issue -
        marina vatkina made changes -
        Field Original Value New Value
        Comment [ It seems like our proxy generation/accessing error. Are you by any chance using "adapted home" (i.e. EJB 2.x home.create) on the client?

        I'll forward the ORB question to the ORB team. ]
        Tim Quinn made changes -
        Attachment FastReuseOfInitialContextInJWS.txt [ 49412 ]
        Tim Quinn made changes -
        Summary EJB lookup problem with webstart EJB lookup problem with webstart; multithreaded use of same client-side proxy?
        Assignee Tim Quinn [ tjquinn ] Harshad Vilekar [ hvilekar ]
        Component/s orb [ 10610 ]
        Component/s standalone_client [ 10619 ]


          • Assignee:
            Harshad Vilekar
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: