Thank you very much for reply,

The code was not developed by me. I read through it. Although it looks awkward, I wouldn't say it is wrong. And the code works in both IBM WebSphere and Bea Weblogic.
the part of servlet is:

  String wfeProjectName = request.getParameter("wfeProjectName");
  int wfeProjectManager = Integer.parseInt(request.getParameter("wfeProjectManager"));

  if (wfeProjectName.equals("") || wfeProjectManager<1) {
   ServletUtil.returnErrorMessage("Must set all parameters to create a project, press \"Back\" to try again", response);
   return;
  }

  // Get home interface
  enHomes = new EnactmentHomes (Constants.InitContext, Constants.ProviderURL);

  // Create a new project
  proj = enHomes.getProjectPlanHome().create(wfeProjectName);

  // Create a default primary team for the new project
  teamName = wfeProjectName + " Team";
  team = enHomes.getTeamHome().create(teamName, proj.getID());

  // Find agent by agent id
  theManager = enHomes.getAgentHome().findByPrimaryKey(new AgentKey(wfeProjectManager));
  proj.setManager(theManager);   ---- where the code hangs right in this method.

  // Add the project manager to the default primary team
  team.addMember(wfeProjectManager);

  // Add technology used
  String tech = request.getParameter("projectTech");
  proj.setTechnology(tech);

The CMP ProjectPlanBean code  for setManager mehtod is:

 public void setManager(Agent anAgent) throws RemoteException {
  if (anAgent == null)
   manager = -1;
  else {
   manager = anAgent.getUniqueID();
  }
 }

The setManager method never got committed. I got [WARN, TxCapsule] Transaction XidImpl timed out. status=STATUS_ACTIVE message in Jboss server. And The server just hangs too. But, It confused me so much that this only happened when I call the same servlet for the second time. Everything was fine, if I just started the server and call this servlet for the first time. (however, in the log I have error message, although it works fine in browser:

[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI
[ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
        at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
        at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
        at java.lang.Thread.run(Thread.java:484)
 

Alex Loubyansky wrote:

  Hello.

  If you haven't done with it, could you send me a piece of the source
causes this problem?

alex

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Christine
> Sent: Saturday, March 30, 2002 3:45 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Jboss server can't be stopped
>
>
> Hi,
>
> I am using JBoss2.4.4 with embedded Tomcat 4.0.1. It works fine when I
> deployed a very small part of my project (2 EJBs). Now, I deployed a
> much more complicated project which has 20 EJBs. In the JBoss
> server cmd
> prompt, I can see all those beans are deployed successful. When I
> executed my application, it is very unstable. For example, a servlet
> calls the create method of an EJB, then it just stopped there
> instead of
> redirecting to the next program. I checked the database, a
> new record is
> added. When it happened, I can not stop JBoss server either. When I
> tried to stop JBoss server, I am getting the message like:
>
> [INFO,EmbeddedCatalinaServiceSX] WFECreateProject: destroy
> [INFO,EmbeddedCatalinaServiceSX]
> StandardWrapper[/MilosWEB:EditStoryCard]: Waiting for 1 instance(s) to
> be deallocated
> [WARN,TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=ICT524Q//96, BranchQual=] timed out. status=STATUS_ACTIVE
> [WARN,TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=ICT524Q//98, BranchQual=] timed out. status=STATUS_ACTIVE
> [WARN,TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=ICT524Q//99, BranchQual=] timed out. status=STATUS_ACTIVE
> [WARN,TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=ICT524Q//100, BranchQual=] timed out. status=STATUS_ACTIVE
>
>
> Is there anyone faced the same problem before? I do appreciate any
> suggestion!
>
> Regards
> --
> Jia (Christine) Li
>
> 524N ICT Building
> Department of Computer Science
> University of Calgary
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary
 

Reply via email to