Help with error (apache tomcat + java )

hi all ! Im having an issue with my program.
Im using jasper report to generate some reports from the program... everything seems to work except for this (making the program unstable at some point). When the report is generated and loaded as a pdf I get this error in the log.
java.lang.IllegalStateException
at org.apache.coyote.Response.reset(Response.java:296)
at org.apache.catalina.connector.Response.reset(Response.java:642)
at org.apache.catalina.connector.Response.reset(Response.java:908)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:355)
at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:211)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:736)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
The code Im using to generate the pdf is this one.
File file = new File("C:\\Reportes\\", reporte +""+ datNac +".pdf");
String contentType = getServletContext().getMimeType(reporte+ "" +datNac+ ".pdf");
System.out.println("antes BufferedOutputStream");
BufferedOutputStream output = null;
output = new BufferedOutputStream(response.getOutputStream());
BufferedInputStream inputFile = null;
inputFile = new BufferedInputStream(new FileInputStream(file));
response.reset();
response.setContentType(contentType);
response.setContentLength((int) file.length());
response.setHeader("Content-disposition",
"attachment; filename=\"" +file.getName()+ "\"");
System.out.println("BufferedOutputStream");
byte[] buffer = new byte[10240];
for (int length; (length = inputFile.read(buffer)) != -1;) {
output.write(buffer, 0, length);
inputFile.close();
output.close();Any help is appreciated.
Thanks!
Edited by: juanmanuelsanchez on Aug 4, 2009 11:17 AM
Edited by: juanmanuelsanchez on Aug 4, 2009 11:18 AM
Edited by: juanmanuelsanchez on Aug 4, 2009 11:19 AM

juanmanuelsanchez wrote:
java.lang.IllegalStateException
at org.apache.coyote.Response.reset(Response.java:296)The response is already committed and thus cannot be reset anymore.
output = new BufferedOutputStream(response.getOutputStream());
response.reset();At least you should obtain the outputstream AFTER the reset. If that doesn't fix, then check everything in the chain before this code.

Similar Messages

  • Help with Error on tomcat and java servlet

    i've just recently installed Dialect Payment client onto my server and is using Java to correspond with the server. I can run the diagnostic test run perfectly fine but when I have compiled the form and the app, I keep getting the error:
    javax.servlet.ServletException: Invoker service() exception
         org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:478)
         org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         filters.ExampleFilter.doFilter(ExampleFilter.java:149)
    root cause
    com.qsipayments.utility.AssertionError: InvalidConfigException can only be thrown on reload
         com.qsipayments.utility.Assert.shouldNotReachHere(Assert.java:246)
         PaymentClient.util.PCConfigurationService.getConfiguration(PCConfigurationService.java:72)
         com.qsipayments.utility.logging.Logging.initialise(Logging.java:198)
         PaymentClient.PaymentClientBase.initialiseLogging(PaymentClientBase.java:1179)
         PaymentClient.PaymentClientBase.<init>(PaymentClientBase.java:106)
         PaymentClient.PaymentClientImpl.<init>(PaymentClientImpl.java:26)
         Java_3DS_3P_AuthPay_DO.doPost(Java_3DS_3P_AuthPay_DO.java:116)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:420)
         org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         filters.ExampleFilter.doFilter(ExampleFilter.java:149)
    If anyone can help or advise me on this matter, it would be incredibly fantastic! I've tried asking the people who have provided me with the program but they dont seem to have anything useful that i can do to fix the error. I was told by my server admin that it was in the coding, but they claim that it has nothing to do with the coding.
    PLEASE HELP.I've been working on this for months and about to die from frustration!

    I haven't worked with this vendor product, but here are some ideas you might find useful:
    It appears is a configuration problem when using the vendor software (but they already told you that, didn't they!!!).
    I say the above because these lines in your printout are from vendor supplied objects (that you didn't create):
    com.qsipayments.utility.AssertionError: InvalidConfigException can only be thrown on reload
    com.qsipayments.utility.Assert.shouldNotReachHere(Assert.java:246)
    PaymentClient.util.PCConfigurationService.getConfiguration(PCConfigurationService.java:72)
    I suggest creating a brand new project with the simplist use of the above vendor project and get it to work.
    You can use the vendor's (on line) documentation to do this. Deploy it in production to ensure there are no deployment issues. Work closely with one of
    your fellow employees (more than one pair of eyes can pick up stuff that you miss). Next, look at what features of the vendor software the originial project uses and what features the sample project uses. Try to implement a subset of functionality of the orginial project into the sample project and get that to work. Implement the next feature, test, etc. Do small experiments at a time so you can easily isolate what doesnt work.
    If none of the above works for you, try contacting the manufacturer or thier support web site. If none of the above works, look into using a compeditors product.

  • While opening most of the website i am getting error: Apache Tomcat/5.5.25-Error report. I have upgraded OS of MacBook Air from Maverick 10.9 to Yosemite 10.10 two days before. Kindly help.

    while opening most of the website on Safari i am getting error: Apache Tomcat/5.5.25-Error report. I have upgraded OS of MacBook Air from Maverick 10.9 to Yosemite 10.10 two days before.
    HTTP Status 404 - /ssssportal.war/fup_gpon_1m_6g_512k.jspp
    type Status report
    message /ssssportal.war/fup_gpon_1m_6g_512k.jspp
    description The requested resource (/ssssportal.war/fup_gpon_1m_6g_512k.jspp) is not available.
    Kindly help. Also I am getting spinning ball most of the time. This was not with OS X Maverick 10.9.

    while opening most of the website on Safari i am getting error: Apache Tomcat/5.5.25-Error report. I have upgraded OS of MacBook Air from Maverick 10.9 to Yosemite 10.10 two days before.
    HTTP Status 404 - /ssssportal.war/fup_gpon_1m_6g_512k.jspp
    type Status report
    message /ssssportal.war/fup_gpon_1m_6g_512k.jspp
    description The requested resource (/ssssportal.war/fup_gpon_1m_6g_512k.jspp) is not available.
    Kindly help. Also I am getting spinning ball most of the time. This was not with OS X Maverick 10.9.

  • Error with JSP, Apache Tomcat and SQL

    Hi,
    I was trying to do some user suthentication script.
    This was my code..
    <html>
    <body>
    <%@ page import = "java.sql.*" %>
    <%@ page import = "java.util.*" %>
    <%
    String Username1 = "";
    String Password1 = "";
    String Username2 = "";
    String Password2 = "";
    String qry = "";
    Username2 = request.getParameter("uname");
    Password2 = request.getParameter("pass");
    qry = "select * from tbl_Users where Username="+Username2;
    ResultSet Rs;
    PreparedStatement pstmt=null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:BankDSN");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("select * from tbl_Users");
    while (rs.next())
    Username1 = rs.getString("Username");
         Password1 = rs.getString("Password");     
         if (Password1 == Password2)
         response.sendRedirect("home.jsp");
         else
         response.sendRedirect("sorry.jsp");
    rs.close();
    stmt.close();
    con.close();
    %>
    </table>
    </body>
    </html>
    When I tried to invoke the JSP page, I got the following error
    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    java.lang.IllegalStateException
         at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFacade.java:173)
         at org.apache.jsp.validate$jsp._jspService(validate$jsp.java:99)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         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 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.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:595)
    Any help would be appreciated.....
    Regards,
    Ramprasad

    Dear vraptor,
    I had seen ur jsp page , can i tell u one thing , never write a connection in the jsp page, why becoz the code can be seen.
    ok here the problem is ur getting the username and password and putting an if condition inside the while loop so this throws an error.
    anyway ur getting the values like
    while (rs.next())
    Username1 = rs.getString("Username");
    Password1 = rs.getString("Password");
    now the username and password are already retrived from server side, just do the check now outside the loop.
    if (Password1 == Password2)
    response.sendRedirect("home.jsp");
    else
    response.sendRedirect("sorry.jsp");
    one more thing is check whether the page forwarding to correct page like response.sendRedirect("home.jsp");
    see for the "/<directory Name>"/home.jsp if u keep all the jsp at one directory.
    i mean this response.sendRedirect("/jspdirectory/home.jsp");
    try this
    regards
    haribabu

  • Help with error 16820

    help with error 16820 with trying to update acrobat

    Please refer to following links, might be helpful.
    http://answers.acrobatusers.com/While-updating-acrobat-error-code-showd-16820-solve-q7115. aspx
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/acrobat-co m-will-not-update-getting-error-16820/7bbbef64-df3e-4fbd-b552-fc1c7a5983c3?msgId=dcf838d8- a198-4a3a-b034-94a07c2e8648
    If this doesn't work, we need more information here.

  • Need help with error message 213:8

    Need help with error message 213:8, this error message prompted after re-installing CS5.5 on the same machine (W7 Pro)
    Thanks.

    Hi TKA_,
    Please try the solutions mentioned on following forum thread.
    http://support.muse.adobe.com/thread/1305941?start=0&tstart=0
    Let me know if it works?
    Regards,
    Sumit Singh

  • Adobe help with error FF2F571A-6C54-31E3-B23E-2A60283B08A8

    Adobe help with error FF2F571A-6C54-31E3-B23E-2A60283B08A8

    Nobody can tell you anything without proper system info or other technical details. What you posted is merely an identifier of the error report sent to Adobe, but that is locked away safely on teh servers and nobody here has access to it.
    Mylenium

  • Error : Apache tomcat 5.5 not starting with windows server 2003 32 bits

    I can not start Tomcat 5.5 installed and deployed from the Business Objects BI Edge 3.1.
    BO installs normally, but Tomcat does not start.
    I tried to start tomcat from the control panel -> administrative tools -> services. But also not start.
    You receive the following message: Windows could start in Apache Tomcat 5.5.20 on the local computer.
    The log is:
    06/05/2011 10:22:37 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 10:22:37 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 10:22:37 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 10:28:42 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 10:28:42 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 10:28:42 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 10:30:40 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 10:30:40 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 10:30:40 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 13:43:16 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 13:43:16 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 13:43:16 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 13:43:20 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 13:43:20 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 13:43:20 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 13:53:58 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 13:53:58 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 13:53:58 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 14:00:16 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 14:00:16 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 14:00:16 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 14:00:45 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 14:00:45 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 14:00:45 http://prunsrv.c 1179 error ServiceStart returned 2
    Help me, what should I do?

    hi
    By default the BO install tomcat with:
    Initial memory pool: 0 and
    Maximum memory pool: 1024
    I changed the settings in the Tomcat to:
    Tomcat -> Tomcat configuration -> java>
    Initial memory pool: 128 and
    Maximum memory pool: 256
    Then I accessed services.msc and start the Apache Tomcat.

  • Help with Error:  PANIC: fatal region error detected; run recovery

    Here's what I'm trying to do:
    I am trying to us BDBXML in a webapp using tomcat 5.5. I have a class that is responsible for opening and closing the db. This class is accessed by a servlet for some AJAX RCP stuff and it also serves as an access point for a Web Service (Apache Axis). This class looks like this:
    public class DG implements Serializable {
    private javax.xml.datatype.DatatypeFactory datatypeFactory;
    private Environment environment;
    private EnvironmentConfig environmentConf;
    private XmlContainer xmlContainer = null;
    private XmlManager xmlManager = null;
    private XmlManagerConfig xmlManagerConfig;
    public DG() {
    try {
    File envHome = new File("C:\\bdbxml\\database");
    environmentConf = new EnvironmentConfig();
    environmentConf.setAllowCreate(true);
    environmentConf.setInitializeCache(true);
    environmentConf.setInitializeLocking(true);
    environmentConf.setInitializeLogging(true);
    environmentConf.setRunRecovery(true);
    environmentConf.setTransactional(true);
    environmentConf.setLockDetectMode(LockDetectMode.MINWRITE);
         //tried the following with default and 10000
         environmentConf.setMaxLockers(100000);
    environmentConf.setMaxLockObjects(100000);
    environmentConf.setMaxLocks(100000);
    environmentConf.setTxnMaxActive(100000);
    environment = new Environment(envHome, environmentConf);
    CheckpointConfig cpc = new CheckpointConfig();
    cpc.setKBytes(500);
    environment.checkpoint(cpc);
    xmlManagerConfig = new XmlManagerConfig();
    xmlManagerConfig.setAdoptEnvironment(true);
    xmlManager = new XmlManager(environment, xmlManagerConfig);
    XmlContainerConfig xmlContainerConfig = new XmlContainerConfig();
    xmlContainerConfig.setIndexNodes(true);
    xmlContainerConfig.setTransactional(true);
    xmlContainerConfig.setNodeContainer(true);
    xmlContainer = xmlManager.openContainer("container.dbxml", xmlContainerConfig);
    xmlContainer.sync();
    datatypeFactory = javax.xml.datatype.DatatypeFactory.newInstance();
    } catch (FileNotFoundException e) {
         e.printStackTrace();
    } catch (DatabaseException e) {
         e.printStackTrace();
    } catch (DatatypeConfigurationException e) {
         e.printStackTrace();
    public void close() {
    try {
    if (xmlContainer != null) {
    xmlContainer.close();
    if (xmlManager != null) {
    xmlManager.close();
    } catch (DatabaseException e) {
    e.printStackTrace();
    public String getDocument(String docId) {
    try {
    XmlDocument doc = xmlContainer.getDocument(docId);
    String docString = doc.getContentAsString();
    doc.delete();
    return docString;
    } catch (XmlException e) {
    e.printStackTrace();
    public Result[] search(Search search) {
    try {
         //normally I construct the query string using the Search object
    StringBuffer q = new StringBuffer("subsequence(collection('container.dbxml')/metadata[contains(./idinfo//title, 'Ecology')], 1,10)");
    XmlQueryContext xqc = xmlManager.createQueryContext();
    XmlQueryExpression xqe = xmlManager.prepare(q.toString(), xqc);
    XmlResults xr = xqe.execute(xqc);
    int i = 0;
    Vector<Result> vec = new Vector<Result>();
    while (xr.hasNext()) {
    XmlValue xv = xr.next();
    XmlDocument xd = xv.asDocument();
    Result r = new Result();
    r.setMetadata(xd.getContentAsString());
    r.setDocumentId(xd.getName());
    XmlValue groupVal = new XmlValue(XmlValue.STRING);
    xd.getMetaData("", "group", groupVal);
    r.setGroup(groupVal.asString());
    XmlValue ownerVal = new XmlValue(XmlValue.STRING);
    xd.getMetaData("", "owner", ownerVal);
    r.setOwner(ownerVal.asString());
    XmlValue createdVal = new XmlValue(XmlValue.DATE_TIME);
    xd.getMetaData("", "created", createdVal);
    r.setCreated(createdVal.asString());
    XmlValue updatedVal = new XmlValue(XmlValue.DATE_TIME);
    xd.getMetaData("", "updated", updatedVal);
    r.setModified(updatedVal.asString());
    r.setPosition(search.getStartPosition() + i);
    updatedVal.delete();
    createdVal.delete();
    ownerVal.delete();
    groupVal.delete();
    xd.delete();
    xv.delete();
    vec.add(r);
    i++;
    xr.delete();
    xqe.delete();
    xqc.delete();
    return vec.toArray(new Result[vec.size()]);
    } catch (XmlException e) {
    e.printStackTrace();
    // PLUS SOME OTHER METHODS, BUT USING ONLY THESE TO TEST
    The Servlet looks like this:
    public class DGServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
    private DG dg;
    private final XPathFactory xpf = XPathFactory.newInstance();
    private final XPath xp = xpf.newXPath();
    private final SimpleDateFormat df = new SimpleDateFormat("EEE MMM d HH:mm:ss z yyyy");
    public DGServlet() {
    super();
    @Override
    public void destroy() {
    try {
    dg.close();
    } catch (Exception e) {
    log(e.getMessage());
    e.printStackTrace();
    super.destroy();
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    String action = request.getParameter("action");
    if (action != null && !action.equals("")) {
    if (action.equals("search")) {
    response.setContentType("text/xml");
    Result[] result = null;
    try {
    result = dg.search(constructSearch(request));
    } catch (Exception e1) {
    log(e1.getMessage());
    e1.printStackTrace();
    if (result==null || result.length==0) {
    response.getWriter().print("0");
    return;
    StringBuffer sb = new StringBuffer("<results>");
    for (int i = 0; result != null && i < result.length; i++) {
    try {
    sb.append("<result"
    + " title='"
    + xp.evaluate("/metadata/idinfo//title", new InputSource(new StringReader(result[i]
    .getMetadata()))));
    sb.append("' northbc='"
    + xp.evaluate("//northbc", new InputSource(new StringReader(result.getMetadata())))
    + "' southbc='"
    + xp.evaluate("//southbc", new InputSource(new StringReader(result[i].getMetadata())))
    + "' eastbc='"
    + xp.evaluate("//eastbc", new InputSource(new StringReader(result[i].getMetadata())))
    + "' westbc='"
    + xp.evaluate("//westbc", new InputSource(new StringReader(result[i].getMetadata())))
    + "' docid='" + result[i].getDocumentId() + "' group='" + result[i].getGroup()
    + "' owner='" + result[i].getOwner() + "' position='" + result[i].getPosition()
    + "' modified='" + result[i].getModified() + "' created='" + result[i].getCreated()
    + "'>");
    NodeList nodes = (NodeList) xp.evaluate("//digform", new InputSource(new StringReader(result[i]
    .getMetadata())), XPathConstants.NODESET);
    for (int j = 0; j < nodes.getLength(); j++) {
    sb.append("<resource download='"
    + StringEscapeUtils.escapeXml(xp.evaluate("//networkr", new InputSource(
    new StringReader(XMLUtil.printDOMTree(nodes.item(j)))))));
    sb.append("' format='"
    + StringEscapeUtils.escapeXml(xp.evaluate("//formname", new InputSource(
    new StringReader(XMLUtil.printDOMTree(nodes.item(j)))))));
    sb.append("'></resource>");
    sb.append("</result>");
    } catch (XPathExpressionException e) {
    e.printStackTrace();
    log(e.getMessage());
    } catch (TransformerConfigurationException e) {
    e.printStackTrace();
    log(e.getMessage());
    } catch (TransformerFactoryConfigurationError e) {
    e.printStackTrace();
    log(e.getMessage());
    } catch (TransformerException e) {
    e.printStackTrace();
    log(e.getMessage());
    sb.append("</results>");
    response.getWriter().print(sb.toString());
    else if (action.equals("details")) {
    response.setContentType("text/html");
    String str = "";
    try {
    str = dg.getDocument(request.getParameter("docId"));
    response.getWriter().print(
    setTranslatePage(str, new java.net.URL(
    "http://localhost:8080/datastream/stylesheets/fgdc/fgdc_classic.xsl")));
    } catch (Exception e) {
    e.printStackTrace();
    log(e.getMessage());
    public void init() throws ServletException {
    super.init();
    dg = new DG();
    It seems to work fine for a while, but then I get errors like the following:
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    com.sleepycat.dbxml.XmlException: Error: DB_RUNRECOVERY: Fatal error, run database recovery, errcode = DATABASE_ERROR
    at com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_prepare__SWIG_0(Native Method)
    at com.sleepycat.dbxml.XmlManager.prepare(XmlManager.java:586)
    at edu.washington.cev.datastream.api.DG.search(DG.java:935)
    at edu.washington.cev.datastream.servlets.DGServlet.doGet(DGServlet.java:83)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:619)
    I've set this up on a Window XP machine using tomcat 5.5 and java 5 as well as a Redhat Linux machine with tomcat 5.5 and java 5. I'm using the Web Service point for other servers to access the database. Everything starts up and runs for a little while, but I can't seem to pin down what causes the errors. I've run recovery multiple times as well as started new databases. Any help is appreciated.

    There's a bug in your use of DB XML somewhere. Are you committing or aborting every transaction that you start, and calling delete() explicitly on all the DB XML objects that you use?
    Those errors mean your database has become corrupted somehow.
    John

  • Help with Error 500 running first example of NDS on PocketPc 4.20

    Hi all,
    I'm trying to run the first example of the MI getting started help from Netweaver Developer Studio. When I enter to the app from my notebook it works fine but when I try to access from my PocketPc I get the following exception:
    <b>Hello. I am a Mobile Infrastructure Client application. Here is some information about your installation:
    Error: 500
    Location: /EJEMPLO01/jsp/tableView.jspInternal Servlet Error:
    javax.servlet.ServletException: java.util.Vector: method get(I)Ljava/lang/Object; not found at org.apache.jasper.servlet.JspServlet.service() at javax.servlet.http.HttpServlet.service() at org.apache.tomcat.core.ServletWrapper.doService() at org.apache.tomcat.core.Handler.service() at org.apache.tomcat.core.ServletWrapper.service() at org.apache.tomcat.facade.RequestDispatcherImpl.doForward() at org.apache.tomcat.facade.RequestDispatcherImpl.forward() at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest() at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet() at javax.servlet.http.HttpServlet.service() at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service() at javax.servlet.http.HttpServlet.service() at org.apache.tomcat.core.ServletWrapper.doService() at org.apache.tomcat.core.Handler.service() at org.apache.tomcat.core.ServletWrapper.service() at org.apache.tomcat.core.ContextManager.internalService() at org.apache.tomcat.core.ContextManager.service() at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection() at org.apache.tomcat.service.TcpWorkerThread.runIt() at org.apache.tomcat.util.ThreadPool$ControlRunnable.run() at java.lang.Thread.run()Root cause:
    java.lang.NoSuchMethodError: java.util.Vector: method get(I)Ljava/lang/Object; not found at jsp._0002fjsp_0002ftableView_0002ejsptableView_jsp_0._jspService() at org.apache.jasper.runtime.HttpJspBase.service() at javax.servlet.http.HttpServlet.service() at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service() at javax.servlet.http.HttpServlet.service() at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service() at org.apache.jasper.servlet.JspServlet.serviceJspFile() at org.apache.jasper.servlet.JspServlet.service() at javax.servlet.http.HttpServlet.service() at org.apache.tomcat.core.ServletWrapper.doService() at org.apache.tomcat.core.Handler.service() at org.apache.tomcat.core.ServletWrapper.service() at org.apache.tomcat.facade.RequestDispatcherImpl.doForward() at org.apache.tomcat.facade.RequestDispatcherImpl.forward() at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest() at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet() at javax.servlet.http.HttpServlet.service() at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service() at javax.servlet.http.HttpServlet.service() at org.apache.tomcat.core.ServletWrapper.doService() at org.apache.tomcat.core.Handler.service() at org.apache.tomcat.core.ServletWrapper.service() at org.apache.tomcat.core.ContextManager.internalService() at org.apache.tomcat.core.ContextManager.service() at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection() at org.apache.tomcat.service.TcpWorkerThread.runIt() at org.apache.tomcat.util.ThreadPool$ControlRunnable.run() at java.lang.Thread.run()</b>
    I'm using MI 2.5 and
    CrEme326_AX_CE42_PPC_minimal.CAB as the JVM for the mobile device.
    It would seem that the JVM doesn't have the Vector class or an updated version of it. But that's the JVM that SAP recommends (). I tried downloading a new version (4.0 b) of the JVM but it won't install on my device. What JVM is everyone else using?
    Thanks

    Hi Andreas,
      Did you modify any of the code?
    Check this site to see the api that the creme supports (jdk 1.1.3)
    http://www.science.uva.nl/ict/ossdocs/java/jdk1.1.3/docs/api/java.util.Vector.html#_top_
    I had the same problem and had to double check that the only methods and classes used are from that API.
    Hope this helps,
    Wael

  • Help with JSP/Weblogic/Tomcat Discrepencies

    Hi,
              I have something very strange happening. I recently did some JSP stuff on
              WLS60SP1 and all went quite well. I then took those same JSP pages and tried
              them out on the latest release of TOMCAT. I was really impressed that
              everything seemed to be completely transparent and working just fine until
              the following situation:
              When I reference, within a JSP page, an object that has previously been
              added to the request scope that has just been created, but not messed with
              in anyway...meaning all the attributes in this bean have their default
              values set...and they are all Strings with the exception of one Integer
              using this format:
              <%= custVal.getCustomerNumber() %>
              - In WLS, what shows in the text field on the form is nothing, because
              customer number in the custVal object is null (default for a String)..this
              is what I want.
              - In Tomcat, what shows it the word "null".
              ...here is the weird part, by changing from scriptlet references to the
              <jsp:getProperty....> format such as....
              <jsp:getProperty name="custVal" property="customerNumber"/>
              -In WLS, he is still a happy camper and works just fine regardless of how I
              reference the bean
              -In Tomcat, I also get the correct results that I want.
              So, unlike most postings, I found out how to fix it but I would like to know
              why...any ideas?
              Thanks in advance,
              Paul Reed
              www.jacksonreed.com
              object training and mentoring
              Jackson-Reed, Inc. 888-598-8615
              www.jacksonreed.com
              Author of "Developing Applications with Visual Basic and UML"
              http://www.amazon.com/exec/obidos/ASIN/0201615797/jackreedinc/104-0083168-31
              95939
              Author of "Developing Applications with Java
              

              Try http://localhost:7001/HelloWorld.jsp
              "b. patel" <[email protected]> wrote:
              >
              >I need help with running a simple JSP. I created a WLS domain using the
              >WebLogic
              >Configuration Wizard. I am trying to access HelloWorld.jsp which is
              >located under
              >C:\bea\user_projects\wlsdomainex\applications\DefaultWebApp.
              >I type
              >http://localhost:7001/DefaultWebApp/HelloWorld.jsp. I get 404 - Page
              >Not Found
              >Error. The weblogic server starts Succesfully. I am trying this in Win
              >2K environment.
              >
              >I am new to WebLogic. Thanks for your Help in advance.
              >
              

  • Help with error message i JBuilder

    Hi everyone!
    Hopefully some of you can help me with a really annoying problem. Every time I compile "MyClass.java" I get the following error-message:
    "MyClass.java": Error #: 750 : initialization error: com.borland.compiler.symtab.LoadError: java.io.IOException: class not found: class java.lang.Object
    If anyone knows how to solve this problem, please let me know!
    In advance, thanks!
    JB

    looks like you don't have java installed or the paths got lost because your JBuilder has no idea where java is :)

  • Help with Errors please!

    Hi, I'm building a Flash website.
    I've used frames with names to contain the different 'pages'
    of the site. On the frame called 'SVHS1' I've built an XML mp3
    player with buttons and a volume slider.
    I'm having a couple of problems with this section of the
    site.
    Firstly: when I 'test movie' and navigate to the mp3 player
    section it all works fine, the mp3s load correctly, the playback
    controls work fine, and the volume slider does what it's supposed
    to do. But if I've used the volume slider to adjust the volume (and
    only then) and then navigate to the next frame 'SVHS2' (or any
    frames that are later in the main timeline) I get multiple
    occurrences of the following error in the output pane:
    TypeError: Error #1009: Cannot access a property or method
    of a null object reference.
    At PSPWebsite1_fla::MainTimeline/adjustVolume()
    I understand (from reading other posts/help etc.) in
    principle what is causing this, but my knowledge of AS3 is too
    limited to know exactly what is wrong with my script or how to fix
    it.
    Secondly: if I press the stop button on my mp3 player and
    then navigate to another frame (any frame before or after
    ‘SVHS1’) the site works fine, and the mp3 player works
    perfectly if I go to that frame again. But if I navigate to another
    frame without first stopping the song it continues to play even
    though I’m not on the mp3 player frame, and if I go back to
    the mp3 player before the song has finished it starts playing
    automatically from the beginning of the first song in the XML list
    again and simply doubles up the sound, which is horrible. When this
    happens the playback controls only affect the 2nd version
    (understandably).
    I think this is probably quite simple to fix, assuming that I
    have to write some script that tells the mp3 player to stop playing
    if/when the user navigates away from that frame...but I don’t
    know how to do this.
    Any help with either of the above would be much appreciated.
    The attached script is for the mp3 player frame.

    You can consider the trace function as being a "can you hear
    me now" helper (instead of an annoying tv commercial gimmick). It
    displays whatever it's told to in the same output window that you
    see that error message come up in. There are two ways I'll usually
    use it.
    I'll often end up simply using a trace("here"); as a means of
    seeing where a process is getting hung up. I gradually move that
    line of code thru what I know to be the step by step sequence of
    the code until "here" no longer shows up. It normally indicates
    that the preceding line of code is where the ball got dropped.
    In AS3, which is often a little more helpful when it trips on
    something, such as the error message you received which tells you
    there's a problem in the adjustVolume function, you can use it to
    see what element in that function is either undefined or out of
    scope.
    Place... trace(vol); ... just after the first line of code in
    that function to see if vol is a number. If it is, then you know
    that line is okay and you can move on to check the next line. If it
    isn't a number, then move the trace before that line and change it
    to... trace(volume_mc.slider_mc.x); ... and see if it is a value.
    If it isn't, then change the trace to check to see what
    trace(volume_mc); results in.... so on and so on.
    It's basically a process of working your way thru code to
    narrow down what piece is the undefined/out-of-scope (or a syntax
    error) element that is causing the problem.

  • Please help with error message while trying to update i tunes

    Errors occurred while installing the updates, if the problem persists, choose tools, download only and installing manually

    When i try and download i-tunes i get a message about URBCHN1 not being a win32 command, or something similar.
    ... that's an unusual one.
    could you possibly send us a screenshot of the error message box? for instructions, see the following user tip:
    hudgie: Taking screenshots to help with problems

  • Help with error U44M1I210(unable to extract . . . . .)  Also file location of Camera Raw in PS CC and location of compressed CC downloads

    Adobe has not been a big help with this.  If anyone knows what might be causing this error  - great, pls post.  Otherwise, in order to work the problem myself, I need to know the file locations of Camera Raw within PS CC and also the file location of where Adobe CC places the d/l'd compressed version.  Thanks much, Gerry

    U44M update error http://forums.adobe.com/thread/1289956
    --more U44.. discussion http://forums.adobe.com/thread/1275963

Maybe you are looking for

  • Upgrade - It works, then it doesn't

    I have been trying to get the new iTunes 7 to work (iTunes will not open at all) - I have followed tips given in this forum. The tip that worked was uninstalling and reinstalling Quicktime. After reinstallation, iTunes works fine. However, once I shu

  • How can I get the iTunes 1 page to stop popping up on my computer every 2 minutes?

    Ever since I set up iTunes to synch with my IPad I get the iTunes page popping up on my computer every 2 minutes.  It's very annoying.  Can anyone tell me how to stop it?

  • Did the regular 15" MBP receive the upgraded fans?

    OK, we all know that the regular 13" and 15" MBP's were upadted and are just as capable, acually other than the display they are more capable and more flexible machines than the Retina MBP.  The only thing that hasn't been talked about anywhere is th

  • Exit / badi for MIRO

    Hi SDN's, I need to insert a new Z field in the Basic Data Tab of the MIRO transaction. Can any body tell me how can i do that? Is there any exit or BADI relevant to that? Plz its very urgent. Regards Pratyu

  • Quicktime Updates and WMP11

    Every time QT does an update it usurps the WMP file association with MP3s. I have to go into WMP file types and re-establish the mp3 association. How can this be avoided when QT updates? Thanks, Marc