Tomcat crashing

Dear friends.,
I am a novice in java and tomcat.My Java application is built using struts architechture and running on Tomcat 5.0 in Linux with MySQL as a backend.The Tomcat server is crashing often..in the sense it is abruptly shutting down.
Can any please tell me the reasons for Tomcat crash??
Should it be handled through the code or should the tomcat settings is to be changed.??
Please help me.
Thanx in advance

take the log file and send we can figure it out...
regards
shanu

Similar Messages

  • Tomcat Crashes for JNI ?

    Hello everyone,
    I am facing a serious problem. This is as follows:
    1. I have wrote some audio/video conversion fuctions using C and make the shared library (*.so files) in linux.
    2. I have wrote the JNI code (making it shared library also, *.so file) to access the library functions created in step 1.
    3. Then I use JAVA and Java Native codes to use the JNI. I load the library created by JNI code with Java.
    4. Finally, I have created a JSP page. Actuall JSP page acts as the conversion client program of audio/video conversion.
    The problem is:
    If I open the JSP page in one browser , the conversion is successfull.
    But when I open two browsers and try to convert at the same time, the tomcat crashes, so conversion fails.
    Why tomcat crashes ? Is it for JNI ? Is there any JNI drawbacks for such case ?
    It will be greate help, if someone can answer.
    Thanks in advanced.
    James

    I used the following page and was not able to reproduce the problem:
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="Mypackage1Module" definition="Project2.Mypackage1Module" releasemode="Stateful" />
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>
    Hello World
    </title>
    </head>
    <jbo:RowsetNavigate datasource="Mypackage1Module.DeptView1" action="first" />
    <body>
    <% for(int i = 0; i < 1000; i++)
    %>
    <br>Department name(<%= "" + i %>):
    <jbo:ShowHint dataitem="Dname" datasource="Mypackage1Module.DeptView1" hintname="LABEL" />
    <jbo:ShowValue datasource="Mypackage1Module.DeptView1" dataitem="Dname" ></jbo:ShowValue>
    <%
    %>
    </body>
    </html>
    <jbo:ReleasePageResources />

  • Tomcat crashes while running servlet chat in IE

    Hi all!
    I've seen similar problems posted about three years ago, but I didn't see an answer for it.
    I'd be very grateful if you could help me.
    I'm writing a chat, the code was taken from the J.Hunter "Servlet programming book" O'reilly, "absurdly simple chat", and adjusted (I only need the Http version). It's an applet-servlet chat.
    When executed in IE, Tomcat crashes after a few (usually 5) sent messages. When executed in a debugger (I use Forte, the last available version, 4 update 1) the program works just fine...
    Another question is about debugging an applet, executed in a browser - how do I do this?
    Here is the code for the servlet:
    =================================
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TryChatServlet extends HttpServlet
    // source acts as the distributor of new messages
    MessageSource source = new MessageSource();
    // doGet() returns the next message. It blocks until there is one.
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType("text/plain");
    PrintWriter out = res.getWriter();
    // Return the next message (blocking)
    out.println(getNextMessage());
    // doPost() accepts a new message and broadcasts it to all
    // the currently listening HTTP and socket clients.
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    // Accept the new message as the "message" parameter
    String message = req.getParameter("message");
    // Broadcast it to all listening clients
    if (message != null) broadcastMessage(message);
    // Set the status code to indicate there will be no response
    res.setStatus(res.SC_NO_CONTENT);
    // getNextMessage() returns the next new message.
    // It blocks until there is one.
    public String getNextMessage() {
    // Create a message sink to wait for a new message from the
    // message source.
    return new MessageSink().getNextMessage(source);
    // broadcastMessage() informs all currently listening clients that there
    // is a new message. Causes all calls to getNextMessage() to unblock.
    public void broadcastMessage(String message) {
    // Send the message to all the HTTP-connected clients by giving the
    // message to the message source
    source.sendMessage(message);
    // MessageSource acts as the source for new messages.
    // Clients interested in receiving new messages can
    // observe this object.
    class MessageSource extends Observable {
    public void sendMessage(String message) {
    setChanged();
    notifyObservers(message);
    // MessageSink acts as the receiver of new messages.
    // It listens to the source.
    class MessageSink implements Observer {
    String message = null; // set by update() and read by getNextMessage()
    // Called by the message source when it gets a new message
    synchronized public void update(Observable o, Object arg) {
    // Get the new message
    message = (String)arg;
    // Wake up our waiting thread
    notify();
    // Gets the next message sent out from the message source
    synchronized public String getNextMessage(MessageSource source) {
    // Tell source we want to be told about new messages
    source.addObserver(this);
    // Wait until our update() method receives a message
    while (message == null) {
    try { wait(); } catch (Exception ignored) { }
    // Tell source to stop telling us about new messages
    source.deleteObserver(this);
    // Now return the message we received
    // But first set the message instance variable to null
    // so update() and getNextMessage() can be called again.
    String messageCopy = message;
    message = null;
    return messageCopy;
    =============================
    The code for the applet is
    =============================
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class TryChatApplet extends Applet implements Runnable {
    TextArea text;
    Label label;
    TextField input;
    Thread thread;
    String user;
    public void init() {
    // Check if this applet was loaded directly from the filesystem.
    // If so, explain to the user that this applet needs to be loaded
    // from a server in order to communicate with that server's servlets.
    URL codebase = getCodeBase();
    if (!"http".equals(codebase.getProtocol())) {
    System.out.println();
    System.out.println("*** Whoops! ***");
    System.out.println("This applet must be loaded from a web server.");
    System.out.println("Please try again, this time fetching the HTML");
    System.out.println("file containing this servlet as");
    System.out.println("\"http://server:port/file.html\".");
    System.out.println();
    System.exit(1); // Works only from appletviewer
    // Browsers throw an exception and muddle on
    // Get this user's name from an applet parameter set by the servlet
    // We could just ask the user, but this demonstrates a
    // form of servlet->applet communication.
    user = getParameter("user");
    if (user == null) user = "anonymous";
    // Set up the user interface...
    // On top, a large TextArea showing what everyone's saying.
    // Underneath, a labeled TextField to accept this user's input.
    text = new TextArea();
    text.setEditable(false);
    label = new Label("Say something: ");
    input = new TextField();
    input.setEditable(true);
    setLayout(new BorderLayout());
    Panel panel = new Panel();
    panel.setLayout(new BorderLayout());
    add("Center", text);
    add("South", panel);
    panel.add("West", label);
    panel.add("Center", input);
    public void start() {
    thread = new Thread(this);
    thread.start();
    String getNextMessage() {
    String nextMessage = null;
    while (nextMessage == null) {
    try {
    URL url = new URL(getCodeBase(), "/servlet/TryChatServlet");
    HttpMessage msg = new HttpMessage(url);
    InputStream in = msg.sendGetMessage();
    DataInputStream data = new DataInputStream(
    new BufferedInputStream(in));
    nextMessage = data.readLine();
    catch (SocketException e) {
    // Can't connect to host, report it and wait before trying again
    System.out.println("Can't connect to host: " + e.getMessage());
    try { Thread.sleep(5000); } catch (InterruptedException ignored) { }
    catch (FileNotFoundException e) {
    // Servlet doesn't exist, report it and wait before trying again
    System.out.println("Resource not found: " + e.getMessage());
    try { Thread.sleep(5000); } catch (InterruptedException ignored) { }
    catch (Exception e) {
    // Some other problem, report it and wait before trying again
    System.out.println("General exception: " +
    e.getClass().getName() + ": " + e.getMessage());
    try { Thread.sleep(1000); } catch (InterruptedException ignored) { }
    return nextMessage + "\n";
    public void run() {
    while (true) {
    text.appendText(getNextMessage());
    public void stop() {
    thread.stop();
    thread = null;
    void broadcastMessage(String message) {
    message = user + ": " + message; // Pre-pend the speaker's name
    try {
    URL url = new URL(getCodeBase(), "/servlet/TryChatServlet");
    HttpMessage msg = new HttpMessage(url);
    Properties props = new Properties();
    props.put("message", message);
    msg.sendPostMessage(props);
    catch (SocketException e) {
    // Can't connect to host, report it and abandon the broadcast
    System.out.println("Can't connect to host: " + e.getMessage());
    catch (FileNotFoundException e) {
    // Servlet doesn't exist, report it and abandon the broadcast
    System.out.println("Resource not found: " + e.getMessage());
    catch (Exception e) {
    // Some other problem, report it and abandon the broadcast
    System.out.println("General exception: " +
    e.getClass().getName() + ": " + e.getMessage());
    public boolean handleEvent(Event event) {
    switch (event.id) {
    case Event.ACTION_EVENT:
    if (event.target == input) {
    broadcastMessage(input.getText());
    input.setText("");
    return true;
    return false;
    =====================================
    HttpMessage
    ======================================
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class HttpMessage {
    URL servlet = null;
    String args = null;
    public HttpMessage(URL servlet) {
    this.servlet = servlet;
    // Performs a GET request to the previously given servlet
    // with no query string.
    public InputStream sendGetMessage() throws IOException {
    return sendGetMessage(null);
    // Performs a GET request to the previously given servlet.
    // Builds a query string from the supplied Properties list.
    public InputStream sendGetMessage(Properties args) throws IOException {
    String argString = ""; // default
    if (args != null) {
    argString = "?" + toEncodedString(args);
    URL url = new URL(servlet.toExternalForm() + argString);
    // Turn off caching
    URLConnection con = url.openConnection();
    con.setUseCaches(false);
    return con.getInputStream();
    // Performs a POST request to the previously given servlet
    // with no query string.
    public InputStream sendPostMessage() throws IOException {
    return sendPostMessage(null);
    // Performs a POST request to the previously given servlet.
    // Builds post data from the supplied Properties list.
    public InputStream sendPostMessage(Properties args) throws IOException {
    String argString = ""; // default
    if (args != null) {
    argString = toEncodedString(args); // notice no "?"
    URLConnection con = servlet.openConnection();
    // Prepare for both input and output
    con.setDoInput(true);
    con.setDoOutput(true);
    // Turn off caching
    con.setUseCaches(false);
    // Work around a Netscape bug
    con.setRequestProperty("Content-Type",
    "application/x-www-form-urlencoded");
    // Write the arguments as post data
    DataOutputStream out = new DataOutputStream(con.getOutputStream());
    out.writeBytes(argString);
    out.flush();
    out.close();
    return con.getInputStream();
    // Converts a Properties list to a URL-encoded query string
    private String toEncodedString(Properties args) {
    StringBuffer buf = new StringBuffer();
    Enumeration names = args.propertyNames();
    while (names.hasMoreElements()) {
    String name = (String) names.nextElement();
    String value = args.getProperty(name);
    buf.append(URLEncoder.encode(name) + "=" + URLEncoder.encode(value));
    if (names.hasMoreElements()) buf.append("&");
    return buf.toString();
    Those files are the only files needed to execute the program.

    The whole Tomcat crashes, and no exception
    displayed.
    Do I have to write the log file, or it's kept by
    Tomcat itself?yes, tomcat writes a log file, you find it in the tomcat dir. but it's just very highlevel. Having a look in it could help.
    Is there a way to write a log file by myself?sure. you could get the log file from tomcat by getting it from the ServletContext:
    ServletContext = getServletContext();
    ServletContext.log("text to log");
    When I view the output window in Forte, it doesn't
    even write that Tomcat crashed.
    I use Tomcat that is installed with the last version
    of Forte(Sun 1 Studio, update 1), I guess it's the
    last version of Tomcat also.No. The lastest is 4.1.12 and i guess it's 4.0.4 with forte.
    Get Tomcat standalone from jakarta.apache.org and try to run your servlet with the standalone tomcat. this could help since i also expirenced problems sometimes with the forte-integrated tomcat.

  • TOMCAT crash

    The problem is this:
    I designed a search page. There are tree select statement required for each seacrh button action on database. When i search squentially about 20 times, my application doesn't respond. What could be reason?
    Thans for helps.

    I have used default web application of netbeans 6.1 (JSF 1.2, JSTL 1.1, JSF 1.1/1.2 Support, Web UI Components, Web UI Default Theme libraries). Not only my application but also all applications on TOMCAT stop working when tomcat crashed. i think the bug is different because when i disable one of the tree select query i can search about 30 times.
    thanks

  • Signal 11 Causing Tomcat crash

    Really hoping that someone might be able to help us with this. We are experiencing Signal 11 crashes on our tomcat server. We have tried almost every configuration that I can think of and we are still getting these crashes at least once a week, sometimes twice a day. Unfortunately we can not reproduce this anywhere except production. Here is the current setup:
    RedHat 7.3
    Kernel: 2.4.18-3smp
    Memory: 2.5GB
    JDK: SDK 1.4.2
    Tomcat 4.0.6
    We are using mod_jk to talk to the Apache server (2.0.x) and the native DB2 jdbc driver to talk to our DB2 databases. We have also tried Tomcat 4.1.29 and Sun's JDK v. 1.4.1_01 and IBM's 1.4.1 on RH AS 2.1. We are passing the following settings to the JVM: -Xms512m -Xmx1024m.
    We have also tried running this on three different boxes to try and isolate hardware failures, but all machines experience crashes in the same way.
    Thanks in advance for any help.
    Here is the beginning of the error:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x59DF83B0
    Function=(null)+0x59DF83B0
    Library=/usr/IBMdb2/V7.1/lib/libdb2.so.1
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    at COM.ibm.db2.jdbc.app.DB2Connection.SQLConnect(Native Method)
    at COM.ibm.db2.jdbc.app.DB2Connection.connect(DB2Connection.java:429)
    - locked <0x449d8140> (a COM.ibm.db2.jdbc.app.DB2Connection)
    at COM.ibm.db2.jdbc.app.DB2Connection.<init>(DB2Connection.java:338)
    at COM.ibm.db2.jdbc.app.DB2Driver.connect(DB2Driver.java:353)
    - locked <0x533e32f0> (a COM.ibm.db2.jdbc.app.DB2Driver)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    - locked <0x54e9f330> (a java.lang.Class)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    - locked <0x54e9f330> (a java.lang.Class)
    at com.bitmechanic.sql.ConnectionPool.createDriverConnection(ConnectionPool.java:468)
    at com.bitmechanic.sql.ConnectionPool.getConnection(ConnectionPool.java:407)
    - locked <0x52404a18> (a com.bitmechanic.sql.ConnectionPool)
    at com.bitmechanic.sql.ConnectionPoolManager.connect(ConnectionPoolManager.java:442)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    - locked <0x54e9f330> (a java.lang.Class)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    - locked <0x54e9f330> (a java.lang.Class)
    at com.bt.leb.provideit.common.util.StatementUtils.getCollection(Unknown Source)
    at com.bt.leb.provideit.common.util.StatementUtils.getCollection(Unknown Source)
    at com.bt.leb.provideit.firm.dal.VendorClientListModelBean.getVendorClientList(Unknown Source)
    at com.bt.leb.provideit.firm.mvc.FullVendorProfileCommonActions.getVendorClientList(Unknown Source)
    at com.bt.leb.provideit.firm.mvc.FullVendorProfileFirmIdAction.execute(Unknown Source)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at com.bt.leb.provideit.common.init.StateFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    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.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    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.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    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.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    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:174)
    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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
    at java.lang.Thread.run(Thread.java:534)

    What architecture are you running on? I /think/ by default on Linux (and Windows) on Intel is 256k? (Someone please correct me.) If you don't have that many threads, try -Xss512k ; I don't know if this will help, but it possibly could help depending on what is happening at the native level. Did you have any luck using the 100% Java JDBC driver?

  • Tomcat crashes on 10.4.4

    I have an OS X server 10.4.4 running Tomcat. Occasionally
    the Tomcat process dies and have to restart it from command line
    using ./startup.sh script. Haven't been able to figure out where to
    look in the logs to see why this happens. The server would run fine
    for many days, but then would crash. Is there a system log that will
    give any information. Any help is appreciated.
    OS X Server   Mac OS X (10.4.4)  

    Logs for Tomcat can be found in /Library/Logs/JBoss
    Depending on how you started Tomcat the log that is used can vary. The one you will most likely need to look at is catalina.out
    How are you starting Tomcat by the way. I'm having trouble with getting the Server Admin to start the Application Server in "Tomcat Only" mode. It just start JBoss even though "Tomcat Only" is selected. Just wondering if this works for you in 10.4.

  • Servlet crashes TOMCAT

    I am experimenting with buffered images in a servlet. This "Hello World" servlet crashes TOMCAT.
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Java HotSpot(TM) Client VM (build 1.4.1, mixed mode)
    JAVA_OPTS '-Xmx512m -Djava.awt.headless=true'
    ----servlet begins----
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.image.*;
    import Acme.JPM.Encoders.GifEncoder;
    public class MijnPollServlet extends HttpServlet
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    doPost(req,res);
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    BufferedImage image=
    new BufferedImage(100,100, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = image.createGraphics();
    g2.setColor(Color.blue);
    g2.fillRect(25,25,50,50);
    g2.drawString("Hello World!", 10, 10);
    ServletOutputStream out = res.getOutputStream(); // binary output!
    res.setContentType("image/gif");
    GifEncoder encoder = new GifEncoder(image, out);
    encoder.encode();
    ----servlet ends----
    If I run the servlet with the "g2.drawString("Hello World!", 10, 10);"
    commented out there is no problem.
    Is there something I am missing here?
    Thank you,
    -William

    The whole Tomcat crashes, and no exception
    displayed.
    Do I have to write the log file, or it's kept by
    Tomcat itself?yes, tomcat writes a log file, you find it in the tomcat dir. but it's just very highlevel. Having a look in it could help.
    Is there a way to write a log file by myself?sure. you could get the log file from tomcat by getting it from the ServletContext:
    ServletContext = getServletContext();
    ServletContext.log("text to log");
    When I view the output window in Forte, it doesn't
    even write that Tomcat crashed.
    I use Tomcat that is installed with the last version
    of Forte(Sun 1 Studio, update 1), I guess it's the
    last version of Tomcat also.No. The lastest is 4.1.12 and i guess it's 4.0.4 with forte.
    Get Tomcat standalone from jakarta.apache.org and try to run your servlet with the standalone tomcat. this could help since i also expirenced problems sometimes with the forte-integrated tomcat.

  • JVM crash

    Hi,
    I run tomcat 5.1.15 as a service on Windows XP. When our Web application runs, tomcat crashes sometimes with this message in its crash log:
    "java.lang.OutOfMemoryError: requested -1662770648 bytes for Chunk::new. Out of swap space?"
    I have specified max heap of 1GB (system has 2 GB memory), then a permgen space of 256 MB. Not sure what the above means. Curious to know what that negative number means (-1662770648)?
    The Current compiler task points to a function called writeMenus, which has a loop that appends lots of strings together and gives the result. Appending of string are done using String "+" operator. Any one has an idea what may be the problem?
    Note that, the above does not happen if I use the eclipse compiler (ecj) to compile my web app. Everything runs fine. Also, if I run tomcat from the console, I dont get a crash.
    regards,
    anand

    No idea what a "heap crash" is.
    If you ran out of memory then, given the memory you already have, I would expect a design problem.  That is because an application that is using that much memory should have been anticipating a memory problem as part of the design and accounted for it.
    If the VM itself is crashing then that is a different problem.  Most causes of such crashes are JNI or libraries that use JNI.   However it is possible that the memory usage itself is causing that problem simply because the VM hadn't been tested with such limits.  But if it was me I wouldn't even consider that a possibility if JNI wasn't in use at all.

  • Crashing of jboss while JNI programm execution

    Hi
    I am working on a project on JSP but our legacy application was written in proc which did the bulk of data intensive tasks.Now i have written a programm in C language which calla java Bean from JSP and Bean gives JNI call to my c programm and from c programm to my Proc programm the problem is that in between of execution of my proc code my application server JBOSS-tomcat crashes can any one help me if they have experienced this thing in past.

    I started having this exact same problem yesterday. I never had it before and nothing had changed on my system prior to the problem starting (no Windows updates, or others). Mine is also GoLive CS2. I have used it every since I purchased it direct from Adobe while it was still the "current version". And likewise, it happens when using SFTP for transfer.
    Thinking maybe a program file had become corrupted, I ran the installation over and selected "repair". It completed without issue. And I reactivated without any problem. But the issue still exists.
    Interestingly, certain files trigger it every time while it seems random otherwise. One file that will do it every time is a small gif image in one site. I recreated that image from scratch and it still does it.

  • CiscoWorks Tomcat Servlet Engine service does not start

    Hello!
    CiscoWorks  Tomcat Servlet Engine service does not start.
    Events in the Windows Event Viewer:
    The CiscoWorks Tomcat Servlet Engine service terminated unexpectedly. It has done this 1 time(s).
    output pdshow and file stderr.log,  hs_err_pid2128.log attached.
    Do  you have an idea how to resolve this?
    Thanks!

    The only things which I see are wrong are the start types for the IPM NG database engine and HUM database engine services.  They must be set to Manual, not Automatic.  However, that would not account for the Tomcat crash.  The crash points to an error in the code which processes regdaemon.xml, but I see no reason why that should be failing.  As I said before, I think it would be best to open a Service Request.  Remote access would be helpful to dig into this problem in more detail.
    Please support CSC Helps Haiti
    https://supportforums.cisco.com/docs/DOC-8895
    https://supportforums.cisco.com

  • Faulting application tomcat.exe, version 1.1.0.0, faulting module jvm.dll,

    All,
    My application is running in a Tomcat, JBoss environment. Occassionally Tomcat crashes in jvm.
    The error is:
    Faulting application tomcat.exe, version 1.1.0.0, faulting module jvm.dll, version 0.0.0.0, fault address 0x0015405e.
    The OS is Windows Server 2003.
    JRE is 1.4.2_03
    Has anyone seen this? I saw a thread where a number of people had this problem but no solution was posted.
    Is there any fix available?
    Any help would be greatly appreciated.
    Sudhir

    1.4.2_03 is very old at this point. 1.4.2_17, the latest release has many, many, many fixes. Moving to this latest release may solve this problem:
    http://java.sun.com/j2se/1.4.2/download.html
    -Rogerr

  • Not well formed sites crash parser

    Hello,
    I am trying to make a very simple proxy using a server. Right now I am having trouble parsing the html on google.com. First the unescaped ampersands was making tomcat crash. I put the html in a string and escaped all the & but found out that DocumentBuilder.parse() does not take the data as a string ( it does take a string, its supposed to be a uri, not the actual data itself). I got around this by saving the escaped html to a file and loading that into the parse method.
    Now my problem is this. The html is malformed on google's site. It has an opening <meta> but no closing </meta>. Is there a method or technique to force well formedness on the html?
    Here is the relavent code:
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              response.setContentType("text/plain");
              PrintWriter pw = response.getWriter();
              String param;
              param = request.getParameter("url"); //get the url to proxy for example localhost:8080/test/proxy?url=http://www.google.com
              URL url = new URL(param);
              HttpURLConnection u = (HttpURLConnection)url.openConnection();
              u.connect();
              StringBuffer result = new StringBuffer();
              BufferedReader in = new BufferedReader(new InputStreamReader(u.getInputStream()));
              String temp;
              while((temp = in.readLine())!= null)
                   result.append(temp);
              String somename = result.toString();
              somename = somename.replace("&", "&"); //escape the &'s
              BufferedWriter bw = new BufferedWriter(new FileWriter("xml"));
              bw.write(somename);
              bw.flush();
              bw.close();
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              DocumentBuilder db;
              Document page = null;
              try
                   db = dbf.newDocumentBuilder();
                   page = db.parse("xml"); //line it fails at
              catch(ParserConfigurationException pe)
                   System.out.println("Parser Configuration Error");
                   pe.printStackTrace();
                   System.exit(0);
              catch(SAXException sax)
                   System.out.println("SaxException");
                   sax.printStackTrace();
    }Here is the corresponding error in catalina.out
    [Fatal Error] xml:1:1973: The element type "meta" must be terminated by the matching end-tag "</meta>".
    SaxException
    org.xml.sax.SAXParseException: The element type "meta" must be terminated by the matching end-tag "</meta>".
         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)
         at proxy.doGet(proxy.java:62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:619)Thanks for any help

    bob0123 wrote:
    Now my problem is this. The html is malformed on google's site. It has an opening <meta> but no closing </meta>. Is there a method or technique to force well formedness on the html?Call up Sergey and Larry and tell them their site is causing you a problem? No, you were on the right track in the first place. By the way there are other HTML parsers available. TagSoup is one. (I don't have any experience with it, I just know it exists.)

  • BC4J: NullPointerException in Tomcat 4.1.24, but in OC4J it works fine

    Dear reader,
    I am having a weird exception in tomcat, which does not occur in the OC4J server (shipped with JDeveloper 9.0.3.1).
    I have a web-application built with BC4J/struts (struts final release) and this works fine in the OC4J server. In Tomcat it works fine until a certain row does not contain data (it looks like that). The code in the jsp where it goes wrong is the following:
    <jbo:RowsetIterate datasource="ConsultantModule.ConsultantGeneralView" changecurrentrow="true" userange="false">
    <jbo:Row id="generalRow" datasource="ConsultantModule.ConsultantGeneralView" action="current">
    <jbo:Row id="allocatiesRow" datasource="ConsultantModule.AllocatieRegistratiesView" action="current">
    The last row it goes wrong if there is no data in it (in OC4J it just works fine there). I've also looked up the generated servlet in tomcat, and the following lines are responsible (for the last jbo:Row tag):
    oracle.jbo.Row allocatiesRow = null;
    jspxallocatiesRow_1 = allocatiesRow;
    oracle.jbo.html.jsp.datatags.RowTag jspxth_jbo_Row_2 = new oracle.jbo.html.jsp.datatags.RowTag();
    jspxth_jbo_Row_2.setPageContext(pageContext); jspxth_jbo_Row_2.setParent(_jspx_th_jbo_Row_1); jspxth_jbo_Row_2.setId("allocatiesRow"); jspxth_jbo_Row_2.setDatasource("ConsultantModule.AllocatieRegistratiesView");
    jspxth_jbo_Row_2.setAction("current");
    int jspxeval_jbo_Row_2 = jspxth_jbo_Row_2.doStartTag(); // This line throws a NullPointerException in Tomcat
    Has anyone encountered a similar problem? And is it a bug in the tag libraries, or is it a bug in Tomcat? And most importantly can it be solved, so that I can still deploy to Tomcat.
    Thanks a lot for your time!
    Regards Martijn

    [UPDATE]
    I've done some more research to the problem of the NullPointerException in Tomcat.
    It seems to happen only when a certain View does not contain rows (no data, it is empty).
    Once the <jbo:Row id="anyID" ... > defines a row based on that view, this causes Tomcat to crash on the doStartTag, in the RowTag class. OC4J does not crash. The source tomcat crashes on in the RowTag class is:
       public int doStartTag() throws JspException
          initialize();
          handleAction();
          pageContext.setAttribute(id , row); // NULLPOINTER EXCEPTION
          return Tag.EVAL_BODY_INCLUDE;
       }Apparently row is null, which is the case as I know there is no row, which causes an exception (as per the setAttribute definition of pageContext).
    It seems that OC4J does never execute this tag, or it should have crashed as well, wouldn't it? As in the handleAction() method, the action 'current' is defined as follows:
    else
    if (ACTION_ROW_CURRENT.equalsIgnoreCase(sAction))
             row = rs.getCurrentRow();
             if (row == null)
                row = rs.first();
                if (row == null)
                   rs.executeQuery();
                   row = rs.first();
          } The row must always be null, as the view doesn't contain any rows (not even after executeQuery()).
    Can someone please have a look at this? I really need to know whether this is indeed a Tomcat bug, BC4J tag library bug or an OC4J bug (perhaps the code it generates is too kind to developers, and prevents errors, compared to normal specifications of jsp/servlets?).
    Using the <jbo:RowSetIterate ..> tag in front of the <jbo:Row ..> tag (empty one) prevents the crash (also in Tomcat).
    If you require the Tomcat and/or OC4J generated java-code to see what happens, please let me know. But it is rather large to paste it here.
    Thanks a lot for your time!
    Regards Martijn

  • Tomcat thread gets stuck at AccessController.getStackAccessControlContext

    We're noticing a very peculiar problem on Win 7 / 64 bit / JDK 6_30 where a servlet tries to spawn a new thread but gets stuck in the new Thread's constructor. It happens consistently on 1 machine but not on other apparently identical setups. Any help would be appreciated.
    (I hope this is the right forum for this error report)
    Thread dump below:
    "HTTP-NIO-Worker-1-2" prio=6 tid=0x000000000712c000 nid=0x1b50 runnable [0x00000000159cd000]
       java.lang.Thread.State: RUNNABLE
                    at java.security.AccessController.getStackAccessControlContext(Native Method)
                    at java.security.AccessController.getContext(AccessController.java:484)
                    at java.lang.Thread.init(Thread.java:358)
                    at java.lang.Thread.<init>(Thread.java:488)
                    ... .snip . ..
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
                    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
                    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
                    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
                    ... .snip . ..
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
                    at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:313)
                    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
                    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1544)
                    - locked <0x00000007822cfa10> (a org.apache.tomcat.util.net.NioChannel)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                    at java.lang.Thread.run(Thread.java:662)While searching on Google we found a few other recent incidents but none of them seem to have found a resolution:
    - http://scn.sap.com/thread/2071927
    - https://groups.google.com/forum/#!msg/google-appengine/js5CeRWLQZ0/6IbZMM5SrmsJ
    There are also quite a few old reports about JVMs crashing at this line but on older JDK 6 builds:
    - http://netbeans.org/bugzilla/attachment.cgi?id=109493&action=edit
    - https://issues.jboss.org/secure/attachment/12333561/hs_err_pid8616.log?_sscc=t
    - http://www.coderanch.com/t/449308/Tomcat/Tomcat-crash-when-running-native

    I used ProcessExplorer to peek into the native part of the stack of that method. It seems that the method is doing work - mostly resolving classes.
    Here are the stack dumps at various times...goes on for ever but the thread is still doing some work:
    ntdll.dll!NtWaitForSingleObject+0xa
    KERNELBASE.dll!WaitForSingleObjectEx+0x9c
    jvm.dll!JVM_FindSignal+0x29fd
    jvm.dll!JVM_ResolveClass+0x1ce3b
    jvm.dll!JVM_ResolveClass+0x1d4b7
    jvm.dll!JVM_ResolveClass+0x2ecf5
    jvm.dll!JVM_GetStackAccessControlContext+0x653
    jvm.dll!JVM_FindSignal+0x15d720
    jvm.dll!JVM_FindSignal+0x53b7f
    jvm.dll!JVM_FindSignal+0x54005
    jvm.dll!JVM_FindSignal+0x54117
    jvm.dll!JVM_GetStackAccessControlContext+0x2a1
    jvm.dll!JVM_FindSignal+0x15d720
    jvm.dll+0x5401e
    jvm.dll!JVM_FindSignal+0x53ff9
    jvm.dll!JVM_FindSignal+0x54117
    jvm.dll!JVM_GetStackAccessControlContext+0x2a1
    jvm.dll+0xdd10a
    jvm.dll+0x38546
    jvm.dll!JVM_GetStackAccessControlContext+0x2c1

  • Cannot view Rejected workitem in BBPAPPROVAL? (HTM format)

    Hi there,
    When a shopping cart is rejected it creates a workitem in HTM format and is available to the user via the SRM web interface by viewing the "messages" tab within the "approval" option.
    So the user may see something like this:
    Mail: Shopping cart 1000919418 was Rejected
    The text above is obvioulsy a LINK / URL and when the user clicks this I get another LINK at the bottom of the page saying:
    Transfer Document Contents (5K)
    Clicking on this I see the following message:
    This e-mail was generated automatically.
    Please do not reply.
    Shopping cart number 1000919418 was From Rejected by Lynton Grice.
    Information on shopping cart:
    Created on: 18.08.2009
    Changed on: 18.08.2009
    Requester: Tom Green
    You can view the document directly. Choose the following link :
    Login
    When I click on the login link above it just takes me to the normal SRM start / logon screen....
    If I look at the URL that it wants to go to it is something like:
    http://<server>:<port>/sap/bc/gui/sap/its/bbpstart/BBPSC20/!?client=400&sap-client=400&language=EN&sap-language=EN&HEADER_GUID=DE8BF7F002ED75F1A0F400215E2FDB8E&OBJECT_ID=1000919418
    If I paste that into the browser nothing happens....
    But in my logic the URL above is wrong anyway.....the "BBPSTART" should not be in the URL....it should be something like:
    http://<server>:<port>/sap/bc/gui/sap/its/BBPSC20/!?client=400&sap-client=400&language=EN&sap-language=EN&HEADER_GUID=DE8BF7F002ED75F1A0F400215E2FDB8E&OBJECT_ID=1000919418
    That then brings up the document.
    But my question is what is the standard functionality when vieiwing a workitem with HTM as the format within SRM? Should I be seeing things like Transfer Document Contents (5K) ? Surely it should just take me straight into the document?
    Perhaps I am missing something in SPRO?
    BTW: We are using SAP SRM 5.00
    Any ideas?
    Many thanks
    Lynton

    Thanks Jasmin,
    My submit buttons are set to submit XML only but when I examine the recorded data in Workbench I see a range of unwanted application data tags.  The size of the application data approximately doubles with each save of the form data until eventually Tomcat crashes because the rendered form is too huge.
    There are further details of the problem here:
    http://forums.adobe.com/thread/790107?tstart=0
    If you can help with this I'd be very grateful :-)
    Cheers,
    Kieran

Maybe you are looking for

  • Why won't my BRAND NEW iPod Nano 7th Generation recognize headphones?

    My BRAND NEW iPod Nano 7th Generation (purchased from and Apple Store less than a week ago) will not recognize any headphones.  Consequently, I can hear NO sounds.  It worked just fine right after I set it up. I turned it off, disconnected headphones

  • Itunes show we are experiencing a problem activating your iphone

    itunes show we are experiencing a problem activating your iphone after update to 4.2.1 from 4.0 iphone 3gs

  • ActionScript 3.0 Programming...Formatting Text

    I'm a beginner, college student working on an assignment,  in ActionScript coding.  I have an ActionScript (.as) Class linked to my .swf.  I've got a Text Field and I want to format the text in...color, font, etc.  No matter what I do, the text "Hell

  • Putting iCal on .Mac welcome page

    Is there any way to publish my calendar to the same .Mac welcome page where my mail, contacts are accessible? There is a calendar there. It would be great if it was mine! (I am referring to the page you get when you click .Mac in Safari, and the litt

  • Need to reset Purchase Requisition

    Dear All, I am new to Oracle EBS i just want to know the script which can reset the WorkFlow for Purchase Requisition. I am know about the Purchase Order script which can reset the WorkFlow poxrespo.sql. Thanks Rehan