0 Replies Latest reply on Apr 10, 2007 8:34 AM by Michael Padilla

    org.xml.sax.SAXParseException: Premature end of file on Trai

    Michael Padilla Newbie

      I executed the Trailblazer sample on console and this was showed:

      ---------------------------------------------------------------------------
      runJMSBank:
      [echo] Running JMS Based Bank
      [echo] Note that your app-server on host: localhost needs to be up and running!
      [java] Starting JMS Bank Listener...
      [java] Listening to Queue 'queue/esb-tb-bankRequestQueue'.
      [java] Responding to Queue 'queue/esb-tb-bankGatewayResponseQueue'.
      [java] 20:28:56,078 INFO [ManagerJMS] Looking up connection factory
      [java] 20:28:56,234 INFO [ManagerJMS] Creating connection
      [java] 20:28:56,265 INFO [ManagerJMS] Creating session
      [java] 20:28:56,281 INFO [ManagerJMS] Looking up queue=queue/esb-tb-bankRequestQueue
      ---------------------------------------------------------------------------

      I also opened the web application and it was successfully opened. However, when I tried to submit a request on the form, this error message was shown on the browser:

      ---------------------------------------------------------------------------
      org.apache.jasper.JasperException: Exception in JSP: /index.jsp:130

      127: org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer webCustomer = new org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer();
      128: webCustomer.setName(formValue[0]);
      129: webCustomer.setAddress(formValue[1]);
      130: webCustomer.setSsn(Integer.valueOf(formValue[2]).intValue());
      131: webCustomer.setEmail(formValue[3]);
      132: webCustomer.setSalary(Double.valueOf(formValue[4]).doubleValue());
      133: webCustomer.setEmployerName(formValue[5]);


      Stacktrace:
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      java.lang.NumberFormatException: For input string: "1234567890f"
      java.lang.NumberFormatException.forInputString(Unknown Source)
      java.lang.Integer.parseInt(Unknown Source)
      java.lang.Integer.valueOf(Unknown Source)
      org.apache.jsp.index_jsp._jspService(index_jsp.java:191)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      ---------------------------------------------------------------------------