Error in weblogic while executing the client.

Discussions

EJB programming & troubleshooting: Error in weblogic while executing the client.

  1. Error in weblogic while executing the client. (3 messages)

    Can somebody help me out. Here is the error i'm getting when i run a client for WebLogic5.1.0. Can anybody tell me what could be the problem ?
    Before lookup.
    java.lang.NoSuchMethodError: java.lang.NoSuchMethodException
    at nextset.rfq.serviceobjects.AuctionServiceHomeImpl_WLStub.ensureInitialized(AuctionServiceHomeImpl_WLStub.java:55)
    at nextset.rfq.serviceobjects.AuctionServiceHomeImpl_WLStub.<init>(AuctionServiceHomeImpl_WLStub.java:74)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at weblogic.common.internal.ClassTableEntry.newInstance(ClassTableEntry.java:86)
    at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.java:248)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.java:202)
    at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java:949)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.java:308)
    at weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInputStreamBase.java:480)
    at weblogic.service.BasicReplicaList.readExternal(BasicReplicaList.java:360)
    at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStreamBase.java:269)
    at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.java:254)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.java:202)
    at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java:949)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.java:308)
    at weblogic.service.BasicReplicaHandler.readExternal(BasicReplicaHandler.java:409)
    at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStreamBase.java:269)
    at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.java:254)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.java:202)
    at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java:949)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.java:308)
    at weblogic.service.BasicServiceStub.readExternal(BasicServiceStub.java:172)
    at nextset.rfq.serviceobjects.AuctionServiceHomeImpl_ServiceStub.readExternal(AuctionServiceHomeImpl_ServiceStub.java:571)
    at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStreamBase.java:269)
    at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.java:254)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.java:202)
    at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java:949)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.java:308)
    at weblogic.rmi.extensions.AbstractInputStream2.readObject(AbstractInputStream2.java:25)
    at weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.java:250)
    at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java:545)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at AuctionClient.<init>(AuctionClient.java:30)
    at AuctionClient.main(AuctionClient.java:179)
    Before calling the create on home.
    Before calling the remote :
    Before printing the values :
    StartValue :50000.0
    UserID :anil
    ReservePrice :0.0
    CreatedUserId :USER001
    AuctionId :Auc108
    ProductId :Pro1

    Thanks in Advance.
    Anil.
  2. Hi Anil,
    If U wud have sent the client code where U R doinn Lookup N all.
    Any way is UR Ejb properly deployed ,first check whether UR Ejb is properly deployed ,coz it is unable 2 find the stub N skeleton implementations.
    Any way
    if properly deployed then try out this code ,it shud work

    java.util.Properties aProps = new java.util.Properties();
    aProps.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    aProps.put(Context.PROVIDER_URL, "t3://localhost:7001/");

    InitialContext anInitialContext = new InitialContext( aProps );
    EmployeeHome empHome = (EmployeeHome)(anInitialContext.lookup("jndi"));

    Try out N let me know
  3. Hi,
    I had this problem when I modify EJB and don't update (generate new) stub classes...
    -afro-
  4. I agree with everyone else. Maybe you even re-generated the stubs and skeletons, but you did not properly redeploy the updated .jar file. I do not believe "hotdeploy" was available until WebLogic6.0, in which case remember to restart the apps server after making changes.

    ---------------------------------------------------
    Steven Kolak
    Bean-test Engineering - EJB scalablity testing team
    skolak at empirix dot com
     
    Free trial Bean-test v4.0
    http://www.empirix.com/Empirix/Web+Test+Monitoring/Products/_BeanTest+Download.asp