Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

WLS 7.0 - Bean is already undeployed

瀏覽次數:16 次
跳到第一則未讀訊息

Aashish Jain

未讀,
2003年2月5日 晚上7:17:122003/2/5
收件者:

Hi,

I have not found a suitable answer to the problem I'm having, so I thought I send
this question out.

I'm using WLS 7.0 and WLI 7.0, and am trying to get the hot deploy (undeploy and
then redploy) to work for my stateless session bean. I undeploy and redeploy
successfully, because I do not get any messages in my server log that would tell
otherwise. But for completeness here's the output:

<Feb 5, 2003 2:35:41 PM PST> <Info> <Deployer> <149038> <Initiating a deployment
task with id 3 for application WebLogic Integration>
<Feb 5, 2003 2:35:42 PM PST> <Info> <Deployer> <149033> <deactivating application
WebLogic Integration on myserver>
<Feb 5, 2003 2:35:42 PM PST> <Info> <Deployer> <149033> <deactivated application
WebLogic Integration on myserver>
<Feb 5, 2003 2:35:42 PM PST> <Info> <Deployer> <149033> <unpreparing application
WebLogic Integration on myserver>
<Feb 5, 2003 2:35:42 PM PST> <Info> <Deployer> <149033> <unprepared application
WebLogic Integration on myserver>
<Feb 5, 2003 2:35:42 PM PST> <Info> <Management> <140009> <Configuration changes
for domain saved to the repository.>
<Feb 5, 2003 2:35:42 PM PST> <Info> <Deployer> <149039> <Completing a deployment
task with id 3 for application WebLogic Integration with st
atus Completed>
<Feb 5, 2003 2:36:18 PM PST> <Info> <Deployer> <149038> <Initiating a deployment
task with id 4 for application WebLogic Integration>
<Feb 5, 2003 2:36:19 PM PST> <Info> <Deployer> <149033> <preparing application
WebLogic Integration on myserver>
<Feb 5, 2003 2:36:19 PM PST> <Info> <EJB> <010008> <EJB Deploying file: jftp.jar>
<Feb 5, 2003 2:36:19 PM PST> <Info> <Deployer> <149033> <prepared application
WebLogic Integration on myserver>
<Feb 5, 2003 2:36:19 PM PST> <Info> <Deployer> <149033> <activating application
WebLogic Integration on myserver>
<Feb 5, 2003 2:36:19 PM PST> <Info> <EJB> <010009> <EJB Deployed EJB with JNDI
name net.sf.jftp.net.FtpClientHome.>
<Feb 5, 2003 2:36:19 PM PST> <Info> <Deployer> <149033> <activated application
WebLogic Integration on myserver>
<Feb 5, 2003 2:36:20 PM PST> <Info> <Management> <140009> <Configuration changes
for domain saved to the repository.>
<Feb 5, 2003 2:36:20 PM PST> <Info> <Deployer> <149039> <Completing a deployment
task with id 4 for application WebLogic Integration with st
atus Completed>

Then when I try to envoke the bean from my workflow, I get the following error
message. Does anyone know why this is happening and a possible solution?

java.rmi.NoSuchObjectException: Bean is already undeployed.
at weblogic.ejb20.manager.BaseEJBManager.preInvoke(BaseEJBManager.java:95)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:132)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:127)
at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:61)
at net.sf.jftp.net.FtpClientBean_g2qnjh_EOImpl.login(FtpClientBean_g2qnjh_EOImpl.java:80)
at java.lang.reflect.Method.invoke(Native Method)
at com.bea.wlpi.common.EJBInvocationDescriptor.invokeRemoteMethod(Unknown
Source)
at com.bea.wlpi.server.workflow.action.ActionBusinessOperation.execute(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Start.activate(Unknown Source)
at com.bea.wlpi.server.workflow.Workflow.start(Unknown Source)
at com.bea.wlpi.server.workflow.Workflow.instantiate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWithErrorHandling(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantiate(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean_h7kt4j_EOImpl.instantiate(WorkflowProcessorBean_h7kt4j_EOImpl.java:69
1)
at com.bea.wlpi.server.worklist.WorklistBean.instantiateWorkflow(Unknown
Source)
at com.bea.wlpi.server.worklist.WorklistBean.instantiateWorkflow(Unknown
Source)
at com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOImpl.instantiateWorkflow(WorklistBean_1nnm8f_EOImpl.java:1015)
at com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:785)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
<Feb 5, 2003 2:36:49 PM PST> <Error> <BPM> <000000> <<wlpirequest>
<started>2003-02-05 14:36:49.690</started>
<requestor>ajain</requestor>
<templateid>6001</templateid>
<template-name>FTP_Using_Java_Session_Bean</template-name>
<templatedefinitionid>6001</templatedefinitionid>
<instanceid>117003</instanceid>
<actions>
<error time="2003-02-05 14:36:49.831">NoSuchObjectException: The server was
unable to complete your request.
Bean is already undeployed.</error>
</actions>
<completed>2003-02-05 14:36:49.831</completed>
</wlpirequest>
>
<Feb 5, 2003 2:36:49 PM PST> <Warning> <rmi> <080005> <Exception thrown by rmi
server: com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOIm
pl.instantiateWorkflow(Ljava.lang.String;Ljava.lang.String;)
com.bea.wlpi.common.WorkflowException: The server was unable to complete your
request.
Bean is already undeployed.
Workflow error: com.bea.wlpi.common.WorkflowException: The server was unable to
complete your request.
Bean is already undeployed.
at com.bea.wlpi.server.worklist.WorklistBean.instantiateWorkflow(Unknown
Source)
at com.bea.wlpi.server.worklist.WorklistBean.instantiateWorkflow(Unknown
Source)
at com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOImpl.instantiateWorkflow(WorklistBean_1nnm8f_EOImpl.java:1015)
at com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:785)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
Nested exception is: java.rmi.NoSuchObjectException: Bean is already undeployed.
at weblogic.ejb20.manager.BaseEJBManager.preInvoke(BaseEJBManager.java:95)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:132)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:127)
at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:61)
at net.sf.jftp.net.FtpClientBean_g2qnjh_EOImpl.login(FtpClientBean_g2qnjh_EOImpl.java:80)
at java.lang.reflect.Method.invoke(Native Method)
at com.bea.wlpi.common.EJBInvocationDescriptor.invokeRemoteMethod(Unknown
Source)
at com.bea.wlpi.server.workflow.action.ActionBusinessOperation.execute(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Start.activate(Unknown Source)
at com.bea.wlpi.server.workflow.Workflow.start(Unknown Source)
at com.bea.wlpi.server.workflow.Workflow.instantiate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWithErrorHandling(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantiate(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean_h7kt4j_EOImpl.instantiate(WorkflowProcessorBean_h7kt4j_EOImpl.java:69
1)
at com.bea.wlpi.server.worklist.WorklistBean.instantiateWorkflow(Unknown
Source)
at com.bea.wlpi.server.worklist.WorklistBean.instantiateWorkflow(Unknown
Source)
at com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOImpl.instantiateWorkflow(WorklistBean_1nnm8f_EOImpl.java:1015)
at com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:785)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)

Thanks
Aashish

Rob Woollen

未讀,
2003年2月5日 晚上8:05:272003/2/5
收件者:
Hmm, my guess is somehow the caller is still referring to the old copy
of the bean.

Can you try just redeploying without explicitly undeploying and tell me
if that works?

-- Rob

Aashish Jain

未讀,
2003年2月6日 中午12:46:452003/2/6
收件者:

I tried just re-deploying and I get the same error as before.

Could the problem be caused because I'm running the bean through a workflow?
However, I don't think that's it because I'm just updating the bean class and
not the interface classes (home or remote) of my stateless session bean.

Any other ideas?
Aashish

Rob Woollen

未讀,
2003年2月6日 下午3:59:502003/2/6
收件者:
My guess is the workflow is calling the old interface. (Even if you
don't change it, the classloaders have changed.)

However, I'm really not a WLI expert. You might be better off
contacting sup...@bea.com

0 則新訊息