End tag unbalanced.......mah...help me..

org.apache.jasper.JasperException: /pages/Login.jsp(85,2) The end tag "</f:view" is unbalanced
     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
     org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:134)
     org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1706)
     org.apache.jasper.compiler.Parser.parseElements(Parser.java:1561)
     org.apache.jasper.compiler.Parser.parseBody(Parser.java:1789)
     org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
     org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
     org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
     org.apache.jasper.compiler.Parser.parseBody(Parser.java:1789)
     org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
     org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
     org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
     org.apache.jasper.compiler.Parser.parse(Parser.java:126)
     org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
     org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
     org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
     com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
     com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
     com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
     org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
     org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
     org.apache.jsp.index_jsp._jspService(index_jsp.java:43)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)This is my Login.jsp
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
  <f:view>
    <html>
      <head>
        <title>
          <h:outputText value="ProjectTrack"/>
        </title>
        <link rel="stylesheet" type="text/css" href="stylesheet.css"/>
        <script language="JavaScript">
           function set_image(button, img)
           button.src = img;
        </script>
      </head>
      <body>
        <h:form>
          <h:panelGrid columns="2" border="0" cellpadding="3" cellspacing="3">
            <h:graphicImage url="/images/logo.gif" alt="Welcome to ProjectTrack"
             title="Welcome to ProjectTrack" width="149" height="160"/>
            <h:panelGrid columns="3" border="0" cellpadding="5" cellspacing="3"
             headerClass="login-heading">
              <f:facet name="header">
                <h:outputText value="ProjectTrack" />
              </f:facet>
              <h:outputLabel for="userNameInput">
                <h:outputText value="Enter your user name:"/>
              </h:outputLabel>
              <h:inputText id="userNameInput" size="20" maxlength="30"
               required="true">
                <f:validateLength minimum="5" maximum="30"/>
              </h:inputText>
              <h:message for="userNameInput" styleClass="errors"/>
              <h:outputLabel for="passwordInput">
                <h:outputText value="Password:"/>
              </h:outputLabel>
              <h:inputSecret id="passwordInput" size="20" maxlength="20"
               required="true">
                <f:validateLength minimum="5" maximum="15"/>
              </h:inputSecret>
              <h:message for="passwordInput" styleClass="errors"/>
              <h:outputLabel for="groupInput">
                <h:outputText value="Enter your user group:"/>
              </h:outputLabel>
              <h:inputText id="gorupInput" size="20" maxlength="30"
               required="true">
                <f:validateLength minimum="5" maximum="30"/>
              </h:inputText>
              <h:message for="groupInput" styleClass="errors"/>
              <h:panelGroup/>
              <h:commandButton action="Ok" title="Submit"image="#{facesContext.externalContext.requestContextPath}/images/submit.gif"
               onmouseover="set_image(this,
               '#{facesContext.externalContext.requestContextPath}/images/submit_over.gif')"
               onmouseout="set_image(this,
               '#{facesContext.externalContext.requestContextPath}/images/submit.gif');"/>
              <h:panelGroup/>
            </h:panelGrid>
          </h:panelGrid>
      </body>
    </html>
  </f:view>

Another error is that
<h:inputText id="gorupInput" size="20" maxlength="30"
required="true">
Look at the id. It should be:
<h:inputText id="groupInput" size="20" maxlength="30"
required="true">
This is the Manning's example. Luck with that.

Similar Messages

  • Please help the end tag /c:if" is unbalanced

    Mar 27, 2008 12:33:57 PM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /WEB-INF/jsp/cwjsps/proregistration.jsp(61,0) The end tag "</c:if" is unbalanced
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)
         at org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1581)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1450)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
         at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:65)
         at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:80)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:284)
         at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
         at org.apache.jasper.runtime.PageContextImpl.access$1000(PageContextImpl.java:71)
         at org.apache.jasper.runtime.PageContextImpl$11.run(PageContextImpl.java:652)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:650)
         at org.apache.jsp.WEB_002dINF.jsp.cwjsps.router_jsp._jspx_meth_c_005fif_005f3(router_jsp.java:299)
         at org.apache.jsp.WEB_002dINF.jsp.cwjsps.router_jsp._jspService(router_jsp.java:103)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:269)
         at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:81)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:619)

    boss the requirement is as such..thats why i am developing it this way..
    i am posting my debug.jsp(validation and exceptions), router.jsp(which forwards corresponding jsp pages based on success or failure), userregistration.jsp(jsp view), proregistration.jsp(process jsp )
    {code debug.jsp}
    <?xml version="1.0" encoding ="UTF-8"?>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <%-- \WEB-INF\jsp\cw\debug.jsp --%>
    <%-- debug include file --%>
    <c:if test ="${sessionScope.sessDebug == 'true'}">
    <table border="1">
    <c:forEach var="item" items="${cookie}">
    <tr>
    <td>inbound cookies</td>
    <td>${item.key}</td>
    <td>${item.value.value}</td> <%--note the .value.value--%>
    </tr>
    </c:forEach>
    <c:forEach var="item" items="${param}">
    <tr>
    <td>inbound parameter</td>
    <td>${item.key}</td>
    <td>${item.value}</td> <%--note the .value--%>
    </tr>
    </c:forEach>
    <c:forEach var="item" items="${requestScope}">
    <tr>
    <td>request scope object</td>
    <td>${item.key}</td>
    <td>${item.value.value}</td>
    </tr>
    </c:forEach>
    <c:forEach var="item" items="${sessionScope}">
    <tr>
    <td>session scope object</td>
    <td>${item.key}</td>
    <td>${item.value.value}</td>
    </tr>
    </c:forEach>
    </table>
    </c:if>
    {code router.jsp}
    <?xml version="1.0" encoding ="iso-8859-1"?>
    <%-- /WEB-INF/jsp/cwjsps/router.jsp --%>
    <%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x"   uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>
    <%--  setup session if one does not exist --%>
    <%@ page session="true" %>
    <%-- set up debug variable --%>
    <c:set var="sessDebug" scope="session" value="true"/>
    <%-- get pathinfo information  from the request --%>
    <%-- this defines which use case has been requested --%>
    <c:set var="pgePathInfo" scope="page" value="${pageContext.request.pathInfo}" />
    <%-- uc02 : Login --%>
    <c:if test="${pageScope.pgePathInfo =='/home'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/>
    </c:if>
    <c:if test="${pageScope.pgePathInfo =='/login'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/prologin.jsp"/>
    </c:if>
    <%-- uc01 : View Details Of Books For Sale --%>
    <c:if test="${pageScope.pgePathInfo =='/viewbooksforsale'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/probooksforsale.jsp"/>
    </c:if>
    <%-- uc01 : process User registration--%>
    <c:if test="${pageScope.pgePathInfo =='/userregistration'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/proregistration.jsp"/>
    </c:if>
    <%-- uc01 : debug --%>
    <c:if test="${pageScope.pgePathInfo =='/debug'}" >
    <jsp:forward page="/WEB-INF/jsp/cwjsps/debug.jsp"/>
    </c:if>
    <%-- otherwise --%>
    <jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/>{code userregistration.jsp}
    <?xml version="1.0" encoding ="UTF-8"?>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>Registeres USers Login Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <body>
    <%--debugging code--%>
    <%@ include file="debug.jsp" %>
    <table width="1049" cellpadding="5" align="center">
    <tr>
    <td width="2378"><div align="center">
    <h2 align="center"> User Registration</h2>
    <p>
         <c:url var="HmePgeURL" value="/cw/router/home" scope="page"/>
         Home  <c:url var='BSPgeURL' value='/cw/router/login' scope='page'/>
         Buy or Sell
         </p>
    </div></td>
    </tr>
    </table>
    <p align="center"> </p>
    <p>This website is only open to members of the De MontFort University.
    You will need a current @learner.dmu.ac.uk e-mail address in order to register.</p>
    <p> If you've already registered for one site you do not need to register again </p>
    <c:url value="/cw/router/userregistration" var="UregPgeURL" scope="page"/>
    <form name=frmregister method="post" action="${UregPgeURL}" >
    <div>
    <table width="726" height="285" border="0" align="left" cellpadding="2" cellspacing="0">
    <tr>
    <td width="157" align="right" >Name:</td>
    <td width="561" > <input name="txtname" type="text" value="${param.txtname}"/> </td>
    </tr>
    <c:if test="${!empty requestScope.reqInvalidUserName}">
    <c:out value="${requestScope.reqInvalidUserName}"/>
    </c:if>
    <tr>
    <td width="157" align="right" >Department</td>
    <td align="left" >
    <select name="txtdepartment" id="txtdepartment" value="${param.txtdepartment}" >
    <option></option>
    <option>Faculty of Art and Design</option>
    <option>Faculty of Business and Law</option>
    <option>Faculty of Computing Sciences and Engineering</option>
    <option>Faculty of Health and Life Sciences</option>
    <option>Faculty of Humanities</option>
    </select>
    </td>
    </tr>
    <tr>
    <td align="right" >Programme</td>
    <td ><input type="text" name="txtprogramme" value="${param.txtprogramme}" />
    (eg: BIS,SE) </td>
    </tr>
    <tr>
    <td align="right" >Telephone Number: </td>
    <td ><input name="txtphonenum" type="text" value="${param.txtphonenum}" /></td>
    </tr>
    <tr>
    <td align="right" >Date Of Birth: </td>
    <td ><input name="txtday" type="text" size="15" value="${param.txtdob}" />(of format YYYY-MM-DD)</td>
         </tr>
    <tr>
    <td align="right" >Username</td>
    <td align="left" >
    <input name="txtuserid" type="text" size="15" value="${param.txtuserid}" />
    (eg. p07269027 from [email protected])</td>
    <c:if test="${!empty requestScope.reqInvalidUserId}">
    <c:out value="${requestScope.reqInvalidUserId}"/>
    </c:if>
    </tr>
    <tr>
    <td align="right" >Password</td>
    <td align="left" >
    <input name="txtpassword" type="password" size="15" value="${param.txtpassword}" />
    </td></tr>
         <c:if test="${!empty requestScope.reqInvalidPassword}">
    <c:out value="${requestScope.reqInvalidPassword}"/>
    </c:if>
    <tr>
    <td align="right" >Confirm Password </td>
    <td align="left" >
    <input name="txtpasswordconf" type="password" size="15" />
    </td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    <input name="frmsubmit" type="submit" value="Register User" />
    <input type="reset" name="Reset" value="Reset" />
    </td>
    </tr>
    </table>
         <c:if test="${!empty requestScope.reqQueryErrorMessage}">
    <c:out value="${requestScope.reqQueryErrorMessage}"/>
    </c:if>
         <c:if test="${!empty requestScope.reqInvalidUpdate}">
    <c:out value="${requestScope.reqInvalidUpdate}"/>
    </c:if>
    </div>     
    </form>
    </body>
    </html>
    {code proregistration.jsp}
    <?xml version="1.0" encoding ="UTF-8"?>
    <%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="x"   uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>
    <%-- \WEB-INF\jsp\cwjsps\probooksforsale.jsp --%>
    <%-- Probookforsale --%>
    <%-- skip field validation and provide blankpage if first time in --%>
    <c:if test="${empty sessionScope.mc07kpkDataSource}">
    <sql:setDataSource
    var="mc07kpkdbDataSource"
    driver="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost/mc07kpkdb"
    scope="session"
    user="mc07kpk_web"
    password="beGin+35"
    />
    </c:if>
    <c:if test="${empty param.frmsubmit}">
    <c:set var="reqOutcome" scope="request" value=" "/>
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- initial request --%>
    </c:if>
    <%-- validate txtname --%>
    <c:if test="${empty param.txtname}">
    <c:set var="reqInvalidUserName" scope="request" value= "User Name Cannot Be Empty"/>
    </c:if>
    <%-- validate txtuserid --%>
    <c:if test="${empty param.txtuserid}">
    <c:set var="reqInvalidUserId" scope="request" value= "User ID Cannot Be Empty"/>
    </c:if>
    <%-- validate txtpassword--%>
    <c:if test="${empty param.txtpassword}">
    <c:set var="reqInvalidPassword" scope="request" value= "Password Cannot Be Empty"/>
    </c:if>
    <%-- if userid invalid or username invalid  --%>
    <%-- redisplay form with originl typed-in data and with errors marked --%>
    <c:if test="${empty param.txtname or empty param.txtuserid}">
    <c:set var="reqOutcome" scope="request" value= "failure" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
    </c:if>
    <c:catch var="pgeQueryError">
    <sql:update var="pgeRowCount" scope="page" >
    <%-- insert details to trader table --%>
    INSERT into trader (dbTraderName,dbTraderDepartment,dbTraderProgramme,dbTraderPhoneNum ,dbTraderDOB,dbTraderPNumber,dbTraderPwd)
    VALUES (?,?,?,?,?,?,?,?)
    <sql:param value="${param.txtname}"/>
    <sql:param value="${param.txtdepartment}"/>
    <sql:param value="${param.txtprogramme}"/>
    <sql:param value="${param.txtphonenum}"/>
    <sql:param value="${param.txtdob}"/>
    <sql:param value="${param.txtuserid}"/>
    <sql:param value="${param.txtpassword}"/>
    </sql:update>
    </c:catch>
    <%-- check For query Error --%>
    <c:if test="${not empty pgeQueryError}">
    <c:choose>
    <%-- check duplicate record --%>
    <c:when test="${pgeQueryError.rootCause.errorCode =='1062'}">
    <c:set var="reqQueryErrorMessage" scope="request" value="User already Registered - Duplicate Record" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/>
    </c:when>
    <c:otherwise>
    <%-- database error --%>
    <c:set var="reqQueryErrorMessage" scope="request" value="Database Error" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
    </c:otherwise>
    </c:choose>
    <c:set var="reqOutcome" scope="request" value="failure" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
    </c:if>
    <%-- check For no rows returned --%>
    <c:if test="${pgeRowCount !=1}">
    <c:set var="reqInvalidUpdate" scope="request" value="*** rowCount not = 1"/>
    <c:set var="reqOutcome" scope="request" value="failure"/>
    <jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
    </c:if>
    <%-- Otherwise --%>
    <%-- Outcome is success --%>
    <c:if test="${pgeRowCount ==1}">
    <c:set var="reqOutcome" scope="request" value="success" />
    <jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/> <%-- success --%>
    </c:if>

  • The end tag " /html:html" is unbalanced

    Hi All,
    I am getting an error while trying to run the jsp in sun one app server.
    org.apache.jasper.JasperException: /aswelcome.jsp(37,0) The end tag "</html:html" is unbalanced
    Please have a look at the JSP file below.
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    html:html locale="true">
    <head>
    <title>application</title>
    <html:base/>
    </head>
    <body bgcolor="white">
    <h3> The eAM Application </h3>
    <html:form action="/first" name="firstForm" type="form.Loginform">
    <tr>
    <td class="PSTEXT">
    <bean:message key="app.empid"/>
    <html:text property="name" />
    </td>
    </tr>
    <br><br>
    <tr>
    <td class="PSTEXT">
    <bean:message key="app.password"/>
    <html:password property="password" />
    </td>
    </tr>
    <tr>
    <td>
    <html:submit/>
    </td>
    </tr>
    </html:form>
    </body>
    </html:html>Please help .

    Compare with your version
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <html:html locale="true"/>I'm not sure this is the answer

  • Corrupted .docx file. Word 2007. Can't open the document. Tags mismatch. Help?

    The Office Open XML file *.docx cannot be opened because there are problems with the contents.
    Details: The name at the end tag of the element must match the element type in the start tag.
    Location: Part: /word/document.xml, Line: 2, Column: 3487212
    Hmm, I guess I should give some background info and what I've tried so far, right?
    The document is in word 2007, Windows 7. Last night, I was in a hurry, and got a lot of things open. I was opening the document to do a few quick spontaneous revisions, but it was so laggy and I was late for an appointment, so I was feeling panicky
    and frustrated. In hindsight, it probably wasn't the best option to just force shut the PC down cause word stopped responding in the middle of opening the document. Still, while I'm no Sherlock, I knew stopping it while it's in the middle of saving the document
    would bebad, I didn't think stopping it while opening the document (and not really modifying the document at all, at least that was what I thought before), could have drastic consequences! The document's quite
    large, a few hundred words, and about 500 or so pages. It's this really big project I was doing at work, for months now really, and because it's somewhat business confidential in nature, I can't exactly share it freely, or I would've uploaded a copy, sorry.
    Anyway, I woke up this morning and opened it, and the error came up. By the way, the document was saved in a 2TB external hard with a few disk errors in the past, if that helps, even if I'm pretty much sure its not a problem with the hard. The error
    came up... and yeah. I first made a copy, which I've been trying everything on, in case I do end up making things worse. I have no previous versions of it, just a relatively very old backup. Anything less than 80% recovery would set me back weeks with a wage
    cut. The good news is that I was able to open the document in WordPad, managing to recover the first 287 pages (131,543 words), with no errors or data loss, and saved it in a separate file. Apparently, according to information I obtained later, MSWord tends
    to not open at all when it encounters an error, but Wordpad tends to stop reading the rest of the code once it encounters an error. So, naturally, I assumed (so correct me if I'm wrong), that behind a few sentences I might lose due to the error, the rest could
    also be salvageable. I then looked up the problem all over the internet. Read a microsoft article on troubleshooting/recovering corrupted documents (Open & Repair, Draft Mode, Creating Link, Recover text from any file converter, etc). No dice.
    I first saw a similar question on answers.microsoft, and tried to use Tony Jollan's Rebuilder, macros enabled and all. Sadly, no luck.
    I managed to make my first breakthrough when I found out that .docx was just a .zip file, and could be renamed as such, with the document.xml extracted and manually fixed using an XML editor (not that I knew how to do that, but I was desperate and
    willing to learn). So, made another copy, changed extensions, and tried to specifically extract the document.xml. I believe that it is the main body text, right? That is the only thing really necessary for me, since everything I've done so far is entirely
    spartan, with no fancy fonts, formatting, header/footer/notes, media objects, formulas, tables, bullet points, numbered lists, etc. All pure sans-serif text, with some Japanese Kanji thrown in. 500 pages of pure text.
    I then hit a snag, when WinRAR encountered an error on extracting document.xml, stating that "CRC failed in word\document.xml. The file is corrupt". So I tried to fix this using several ZIP repair programs and stuff. Nothing worked. At
    least not so far. Managed to extract an incomplete version of document.xml using WinRAR's 'Keep Broken Files' option when extracting. The extracted
    document.xml came up to 3.31 MB while the original in archive is 7.53 MB. Viewed it in the Windows XML Editor which opened up the text in Internet Explorer, a jumble of text with no line breaks or paragraphs. Still, it actually extracted a few pages less than
    the open-using-Wordpad method tried earlier. So trying to fix the archive again...
    So I decided to give up the manual route for the meantime and focus on readymade solutions. I came across yet another microsoft article, but this one was at least more relevant than the last. It had this auto FixMe thing. I ran it, didn't
    work. Apparently, as I found out later, "This fix will work for one specific tag error where there are equations and graphics in the same paragraph AND Office 2010 SP1 has not been applied."
    Tried several (read: dozens) corrupt Word recovery software, from freeware to pro trials, to varying degrees of effect, although unsuccessful
    in goal. Some failed to read it, saying it was too corrupted for them to handle, the best managed to recover about three-pages-worth less data compared to the Wordpad method. So yeah, anybody with a similar problem, always open it with wordpad first and recover
    what you can. That doesn't mean I'm giving up though.
    So here I am, tearing my hair out in frustration. Whew, I feel like I told you guys my life story. I guess worst case scenario, I report this to my boss, so I personally or from the company, I/we'll hire a team of professionals to deal with it.
    But that's not an ideal scenario. It's gonna be out of my salary either way (the company has a firm policy of 'You reap what you sow'), along with a wage cut for making such an amateurish mistake even with continuous reminders to back it up every two sentences,
    so I'd rather avoid that.
    I'm currently looking to see whether there's a way to recover a previous version of an overwritten document somehow using a third-party software or something. (I didn't have Windows Backup enabled, so no previous version on Windows). So far, no
    autosaved documents on MSWord AutoRecover, even though I have it enabled set to every 3 mins (or maybe I'm just not seeing it since I'm trying to look for it manually?). Or are the temporary files wiped on shutdown? I don't have 'Always save backup copy' option
    enabled on word either.
    So yeah, an auto fix, or a lengthy answer detailing what exactly I should do (from the very very basics), or a link to a site with such info, would be much appreciated. Seriously :D
    Please. Thanks for at least making an effort :)

    When a Word document file is corrupted, then you can try several methods to recover it:
    1. First of all, you can try the recovery function integrated with Microsoft Word, as follows:
    1) On the File menu, click Open.
    2) In the Look in list, click the drive, folder, or Internet location that contains the file that you want to open.
    3) In the folder list, locate and open the folder that contains the file.
    4) Select the file that you want to recover.
    5) Click the arrow next to the Open button, and then click Open and Repair.
    You may find more information about this at:
    http://office.microsoft.com/en-us/word-help/recover-the-text-from-a-damaged-document-HP005189610.aspx (for Word 2003)
    http://support.microsoft.com/kb/893672/en-us (for Word 2007/2010/2013)
    2. If you have multiple corrupt Word documents, then you can use the VBA macro provided in article
    http://support.microsoft.com/kb/893672/en-us so that all the files will be opened in "Open and Repair" option automatically.
    3. There are also free tools from third-parties that can open and read Microsoft Word documents, for example,
    3.1 OpenOffice at http://www.openoffice.org. This is a very famous open source project that is designed to support Office file formats, including Word documents. The software can run under Windows.
    3.2 LibreOffice at http://www.LibreOffice.org. Another free office suite.
    3.3 AbiWord at http://www.abisource.com. This is a cross-platform tool that works under Unix and Windows.
    3.4 Google Drive at https://drive.google.com/ also support to load Word document files.
    Sometimes when Word fails to open your document, these tools may be able to open it successfully. If that is the case, then after the document is opened, you can just save it as a new document which will be error-free.
    4. For docx files, they are actually a group of files compressed in Zip file format. Therefore, sometimes, if the corruption is only caused by the Zip file, then you can use Zip repair tools such as WinRAR at
    http://www.rarlab.com to repair the file, as follows:
    4.1 Assuming the corrupt document is a.docx, then you need to rename it to a.zip
    4.2 Start WinRAR, go to "Tools > Repair Archive" to repair a.zip and generated a fixed file a_fixed.zip.
    4.3 Rename a_fixed.zip back to a_fixed.doc
    4.4 Using Word to open a_fixed.doc.
    There may still be some warnings when opening the fixed file in Word, just let ignore it and Word will try to open and repair the fixed file. If the file can be opened successfully, then you can just save the contents into another error-free file.
    5. If all above methods does not work, then you may try third-party tools such as DataNumen Word Repair at
    http://www.datanumen.com/word-repair/
    I have used it to repair some word documents successfully. It provides a free demo version so that you can try to see if the data you want can be recovered or not.
    Good luck!

  • Could not generate stub object - The element type "META" must be terminated by the matching end-tag "".

    I am getting the following error message when I try invoking
    a webservice.
    Could not generate stub objects for web service invocation.
    Name: ProgrammePrivilege. WSDL:
    https://clientaccweb.reseaudistinction.com/CardHolderInfo.asmx?WSDL.
    org.xml.sax.SAXException: Fatal Error: URI=null Line=11: The
    element type "META" must be terminated by the matching end-tag "".
    It is recommended that you use a web browser to retrieve and
    examine the requested WSDL document for correctness. If the
    requested WSDL document can't be retrieved or it is dynamically
    generated, it is likely that the target web service has programming
    errors.
    The problem is, the webservice is working fine, the
    application was working yesterday, the error message just appears
    after a couple of days and I have to refresh the service in the CF
    Administrator. Once I refresh it, everything starts working again.
    Anyone else got this problem? ANY help would be appreciated!
    If you guys need my code anyway, I can attach it but like I
    said, everything works for a couple of days, then, out of the blue,
    it stops working so I doubt that it's my CFINVOKE that's the
    problem...

    Similar kind of problems here - reported back to Adobe a
    couple of months ago, so let's wait and hope for the best. My
    problems have related to registering multiple web services and
    executing them. One problem is that, If I register two identical
    (and quite complex) web services, I can only execute either of
    them. After CF restart, either of them works, but invoking the
    other doesn't work.
    For example; CF_Restart -> Try A first, A works -> B
    doesn't. Also, CF_Restart -> Try B first, B works -> A
    doesn't.
    CFMX7.0.2, Apache 2.2, WinXP

  • Error message end tag and start tags dont match when publishing to flickr from lightroom 5.3

    I have had an ongoing problem that lightroom publishing to flickr times out frequently when uploading many photos.  However, for about the last week or two weeks i have been getting a different error message:
    Error message: “Can’t update this collection.  An internal error has occurred:  End tag ‘body’ does not match the start tag ‘hr’. 
    Windows 7 system.
    I set up a photoset in lightroom (have tried both smart and regular photosets with same results).  These photosets can contain anywhere from 16 to 3000 or more photos. The first photos are uploaded – maybe 10, maybe 100, maybe 1000.  Then it generally seems to stop working.  Sometimes I can continue publishing new photos or republishing, sometimes I cant.  For example I currently have 11 flickr publish photosets in one lightroom catalog, with the following success numbers:
    NAHCR00 total 3044, published: 1851
    NAHCR01 total 748,published: all
    NAHCR03 total: 532 published: all
    NAHCR04  total: 412 published: all
    NAHCR05 total: 340 published: 152
    NAHCR07 total: 248 published: 50
    NAHCR08 total: 524 published: 197
    NAHCR09 total: 44 published: all
    NAHCR10 total: 40 published: all
    NAHCR11 total: 32 published: all
    NAHCR12 total: 124 published: 4
    I have succeeded in uploading over 28000 pictures from flickr (mostly from three other lightroom catalogs to several flickr account, both paid and free).  The other catalogs marks the photosets as public  and generally seems to be more successful at uploading.
    All of these problem photosets are marked as private so that only I can see them.  The  photos themselves have peculiar names including many special characters including chinese characters, arabic alphabets, spaces, commas, exclamation marks etc etc.  I tried telling lightroom to rename the files to names with no special characters but it still fails.
    I emailed Flickr with the above information and this was their response:
    Thank you for contacting Yahoo Flickr.
    I would first like to apologize for any inconvenience you have experienced while attempting to upload photos to your Flickr account.
    First, Lightroom is a 3rd-party application; we can't offer any support for it. Please contact the developer of that application for help.
    With that said, please note that there's a known issue with Avast's Web Shield and AVG antivirus that causes issues with uploads. If you have either of these applications, disable the "Link Scanner", add Uploadr to the exceptions list, and then try to upload. If the issue persists, temporarily turn off the anti-virus / firewall and try to upload again.
    Please also see the following article on Flickr's upload limitations:
    Flickr upload limitations
      Lastly, here are some general troubleshooting steps that you can try: 
    Most connection issues arise due to a problem between your computer and Flickr and are often temporary. Try the following:
    Briefly power off any broadband modems and routers to reset the network connection.
    If you connect wirelessly, move your computer closer to the wireless access point, or 'plug in'.
    If you're connected through a router, try plugging directly into the broadband modem.
    See your manual for configuration options if the router is slowing or blocking uploads.
    Also, try lowering your # or matching it to your ISP's value.
      Additional troubleshooting 
    Try uploading with an alternate method:The web upload page, the Uploadr app, or upload by email.
    If you're using an older version of Uploadr, update to the latest version.
    Search our forums to see if there are any specific network hardware incompatibilities.
    I realize that this isn't a satisfying response to your request, and I am sorry for that. Please let me know if I may be of further assistance, or if you have any questions or concerns.
    Thank you again for contacting Yahoo Flickr.
    Regards,
    Elliot
      Yahoo Customer Care

    I had the same problen with Lightroom 5 - Prepares the files but won't Upload to Blurb. Tried numerours times. It is a Landscape size Book 132 Pages. There is a BUG in Lightroom and here is how I got it to work:
    Check each slide and make sure APPLY BACKGROUND GLOBALLY, GRAPHIC or BACKGROUND COLOR and not checked,. If so Uncheck them.
    Go to EDIT and SELECT ALL Slides in the Book.
    Select Apply Background Globally - turn it off and on several times, then leave it off
    Select GRAPHIC - turn it off and then turn it on and off several times
    Select BACKGROUND COLOR - turn it on then off then on then off
    I ended up with APPLY GLOBALLY unchecked for Every Page.
    GRAPHIC was turned on with a Graphic set at 12% Opacity on every Page
    Again check each page first for these Checkmarks or just fix exverything with SELECT ALL.
    Background Color was Turned off. 
    NOW UPLOAD THE BOOK - It took a couple hours but it uploaded without a hitch., I turned off all Firewalls and Plugged directly into the Router. I am using an IMac 27" with 32 GB of memory and this is the only way it would work. The Mac is about 7 days old and Lightroom 5 is also 7 days old. BUGGIEST piece of software I have ever used.
    Note - one of the above steps fixes the BUG - I am not sure which one but one will fix your book. It finally uploaded to BLURB today. It took a few hours though.

  • WS - "java.rmi.MarshalException: (1)Missing end tag for Body or Envelope"

    HI All,
    I'm new of this forum but I really hope you could help me solving the problem I have to connect Web Services and midlets.
    Somehow my configuration works with some services I've found online but when I invoke very simple services deployed on my server(s) I always have "java.rmi.MarshalException: (1)Missing end tag for Body or Envelope" exception"
    Let me add some more information to the problem:
    System Configuration:
    - JBoss (but I also tried axis) - standard installation (http/1.1)
    - WTK 2.5 (but I also tried 2.2) - standard installation
    - I tried "trusted" and "untrusted" security configuration of the servlet
    - Netbeans IDE 5.0 (to create both Midlets and WS)
    - WS uses document/literal as expected by JSR 172
    The midlet is created with no problems but at the time of invocation the server throws the above exception (which is part of rmi. remoteException)
    By monitoring the network both at client and server side I noticed that the information received is chuncked after 768 bytes. However, If the (soap) reponse is less than such value, I still have the error.
    Using Http/1.1. at the mobile side, the service does not return me anything (0kb) while if I set the mobile device to http/1.0, I get the above error.
    I really have to make the midlet running so any type of help will be really appreciated!!
    Thanks in advance

    Hi all,
    as many developers I have encountered the famous "java.rmi.MarshallException:(1)Missing end tag for Body or Envelope" during the development of my WS app for J2ME (JSR 172).
    It is correct that is the empty tag <soapenv:Header /> causing this error.
    To fix this error, it is necessary to stop the server to generate this empty header in the response stream.
    I have fixed this error for Axis2: unfortunaly it is necessary to modify a class in Axiom library. This library is used in Axis2 to produce the SOAP response, you can download the source code at http://ws.apache.org/commons/axiom/source-repository.html.
    Here the class to modify:
    axiom\modules\axiom-impl\src\main\java\org\apache\axiom\soap\impl\llom\soap11\SOAP11Factory.java
    by commenting the line 273 in the method called getDefaultEnvelope() to prevent the empty header insertion in SOAP response:
    public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
            OMNamespace ns =
                    new OMNamespaceImpl(
                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                            SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
            SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
            //createSOAPHeader(env); the line to be commented
            createSOAPBody(env);
            return env;
        }Finally you have to recompile Axiom using Maven to obtain the fixed package axiom-impl.jar and to replace this package on the lib repository of your Axis2 server.
    A little tricky to fix this bug but now my app runs perfectly ;)
    Enjoy!
    Romain Pellerin
    http://www.gasp-mobilegaming.org

  • XML Parsing with Java - Only some attributes have start and end tags

    Hello,
    I am trying to interpret the XML response from a server after a HTTP request is sent to it. I have modified an example off Wikipedia below to give an example of what it looks like.
    Example XML:
    <Asset name="bread" prep_time="5 mins" cook_time="3 hours">
    <Attribute name="Ingredient: ">Flour</Attribute>
    <Attribute name="Ingredient: ">Water</Attribute>
    <Attribute name="Used in Recipes:" />
    </recipe>
    I have been trying to display the above XML in a format such as:
    name: bread prep_time: 5 mins cook_time: 3 hours
    Ingredient: Flour
    Ingredient: Water
    Used in Recipes:
    Right now I have been trying to do it manually using indexOf and substring of the XML text, but I would like to find a better way of doing this. I have found some examples online that show had to deal with cases such as
    <person>
    <first>Kiran</first>
    <last>Pai</last>
    <age>22</age>
    </person>
    but I do not know what to do when I encounter something like the last item, when there are no "Used in Recipe" items, and it ends with a />, instead of an ending tag </Attribute>.
    Are there any suggestions as to how to handle the example XML code that I have posted?
    Any help would be appreciated. Thanks.

    jtahlborn wrote:
    Tolls wrote:
    I suppose so, but since the idea is to turn it into text in a different format, XSLT strikes me as a better fit than hand crafting it.i agree if the end goal is formatted text. however, i wasn't sure if the OP was just writing some test code to figure out how to access the data or if the formatted text was the final desired output.No, true. It is open to interpretation.
    jschell wrote:
    (Quoting the same bit)
    As long as one is mindful of the potential performance and maintenance impacts of course.Again, it depends what he's doing...true. I was making some assumptions, since (as usual) we don't really know the requirements beyond a base technical one (ie "I have this, and I need it to look like this"). In general, though, if you have XML data and you need it formatted differently then I'd say your first port of call ought to be transformation.
    As for maintenance, I'd say it's easier to maintain a stylesheet than to modify Java, which is why I say it ought to be the start point.
    Of course, YMMV.

  • End tag error in Office 2010 professional plus

    I have my research paper got corrupted some how. When I try to open it, I get the following error:
    "The name in the end tag of the element must match the element type in the start tag.
    Location: Part: /word/document.xml, Line 2, Column: 5119889"
    I am using Office 2010 Professional Plus. 
    I tried to install office service pack 1, but I get this error: "The expected version of the product is not found on the system"
    I need to restore this document as the deadline of paper submission is approach fast. I would really appreciate any kind of help.

    Seems that you've received an "end tag" error when you open a DOCX file in Word 2010. After installing Office 2010 SP1 as
    KB2528942 suggested but get the error "The expected version of the product is not found on the system".
    Office 2013 and Office 2010 Service Pack 1 resolves this issue for new files. It will also prevent the problem from recurring with any files that were recovered with the Fix it solution in this
    article. 
    Have you tried to install the hotfix in
    KB2528942 "fix for me" section?
    If you are familiar with editing XML, you can try to fix the problem yourself by correcting the mismatched oMath tags in the document. See the following example:
    Incorrect tags:
    <mc:AlternateContent>
    <mc:Choice Requires=”wps”>
    <m:oMath>
    </mc:AlternateContent>
    </m:oMath>
    Correct tags:
    <m:oMath>
    <mc:AlternateContent>
     <mc:Choice Requires=”wps”>
    </mc:AlternateContent>
    </m:oMath>
    Note: unzip the source file by unzip tool and you will also have to use an application such as Notepad to edit the XML.
    Feel free to post back.
    Tony Chen
    TechNet Community Support

  • Service call exception java.lang. missing soap end tag..

    Hi Experts,
    I did the soap to rfc sync interface and Create the java deployble client proxy application in nwds. In Nwds i maintaine the PI parameters message server host,port and exectue the application. it is working fine. but i was deploying the another j2ee engine server messager server host name and port parameters I am getting the error. that is Service call exception java.lang. mising soap end tag.
    Could you help me.
    Thanks & Regards,
    Veera

    hi,
    restarting the java stack would be enough. You can do that at SMICM. Before you should deregister all queues in SMQR so that incoming messages has to wait in the queue. Of coz all synchronous msgs would fail, as well messages going to your Java Inbound Adapters.
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • Error #1085: The element type "elements" must be terminated by the matching end-tag " /elements "." faultCode="Client.CouldNotDecode"

    Hello everyone,
    I'm using an httpservice with a php script and resultformat "e4x".
    When I call my script directly in my browser, I receive a well formatted XML file (I think so as I can even see the closing tag </elements>).
    But, in my application, the debugger gives me the error saying that the end-tag is not there...
    Can you please help me?
    Here's the script:
    <?php
    //Set no caching
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-store, no-cache, must-revalidate");
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Pragma: no-cache"); 
    header("Content-Type: text/xml");
    // Connect to MySQL database
    require_once('database/ConnectDB.php');
    mysql_select_db($database_ConnectDB, $ConnectDB);
    function DisplayElements($zone_id){
        $query = "
                SELECT
                    element.element_id, element.name, element.description, element.zone_id, actval
                    FROM element
                    LEFT JOIN elm_motor USING (element_id)
                    LEFT JOIN modregister USING (element_id)
                    LEFT JOIN module USING (module_id)
                    WHERE element.type_sw_id = 602
                    AND module.status >= 128 AND element.zone_id = $zone_id
                    GROUP BY element.element_id ORDER BY name
            $result = mysql_query($query) or die(mysql_error());
        while($data=mysql_fetch_assoc($result)){
            echo '<element id="'.$data['element_id'].'" name="'.$data['name'].'" description="'.$data['description'].'" zone_id="'.$data['zone_id'].'" actval="'.$data['actval'].'" prefval="'.$data['prefval'].'"/>';
    $zone_id = $_POST["zone_id"];
    echo '<elements>';
    DisplayElements($zone_id);
    echo '</elements>';
    ?>
    Thank you very much,
    a beginner...

    The problem is that your PHP script is only going to provide a single response, so the second echo never gets to your Flex app.
    Store the result in a variable and echo that:
    $returnVal = "<elements>";
    ... code to add elements
    $returnVal = "</elements>";
    echo $returnVal;
    If this post answers your question or helps, please mark it as such.

  • GRC: Negative ack; PI: End tag 'enviNFe' does not match the start tag 'NFe'

    Bom dia SAP Boosters!
    Como muita gente estou aqui brigando com o GRC NFe. Esse forum tem resolvido meus problemas, até agora. Por isso inicio um novo tópico pois estou tendo o seguite problema que nao encontrei resposta:
    O grc e o pi estao em servidores separados. Do lado do grc, na sxmb_moni mostra para a interface BATCH_nfeRecepcaoLote_OB erro no acknowledgement status. abrindo o item error do ack msg id aparece:
    <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">NEGATIVE_ACKNOWLEDGEMENT</SAP:Code>
      <SAP:P1></SAP:P1>
      <SAP:P2></SAP:P2>
      <SAP:P3></SAP:P3>
      <SAP:P4></SAP:P4>
      <SAP:AdditionalText></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
      <SAP:Stack>Negative acknowledgment triggered by a process</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    No lado do PI, ao consultar esta interface e abrir o payload do item Request Message Mapping, aparece a mensagem de erro: End tag 'n0:enviNFe' does not match the start tag 'NFe'. e todo o xml fica em uma linha só.
    Voltei entao no xml do sender e de fato encontrei a tag NFe, onde deveria constar os dados das notas fiscais, sendo aberta mas nao sendo fechada, e sem dados, desse jeito.
    <?xml version="1.0" encoding="utf-8" ?>
    - <n0:nfeRecepcaoLote2 xmlns:n0="http://sap.com/xi/NFE/006">
      <n0:cUF>35</n0:cUF>
      <n0:tpEmis>1</n0:tpEmis>
      <n0:tpAmb>2</n0:tpAmb>
    - <n0:nfeDadosMsg>
    - <n0:enviNFe versao="2.00" xmlns:n0="http://www.portalfiscal.inf.br/nfe">
      <n0:idLote>000000000000025</n0:idLote>
      <n0:NFe asx:root="" xmlns:asx="http://www.sap.com/abapxml"></n0:NFe>
      </n0:enviNFe>
      </n0:nfeDadosMsg>
      </n0:nfeRecepcaoLote2>
    Alguém já viu esse bug? estou com grc 10 e SP 08 e das notas que sairam depois nenhuma fala disso.
    Obrigado.

    Fiz um teste que parou de dar erro de acknowledgement e chegou a enviar o lote para a sefaz, que retornou erro de schema porque o xml continua vazio:
    Na interface determination gerada quando criei o cenário NFE_BATCH_WebAS_Outbound_Batch, a que contém a interface BATCH_nfeRecepcaoLote_OB, tirei o operation mapping BATCH_nfeRecepcaoLote2_TO_nfeRecepcaoLote2. Embora não seja mais retornada a mensagem de erro na tag, o payload continua no mesmo formato postado acima. Entao coloquei de volta.
    Bem, pesquisando vi que a função que gera o xml é a  /XNFE/006_SIGN_NFE_OUT. As notas aparecem como assinadas no monitor do grc, mas vou ter que ver entao como esta ocorrendo a geraçao do xml por esta funçao, certo?

  • Difference between IN and OUT and Media Start and Media END??  NEED HELP!!!

    As the titles states, what is the difference?
    I edited my film in preview/jpeg mode and now need to online the project to full quality. So far it hasn't gone to well. For example the media starts at 00:09:45:12. When I do a batch capture I watch the camera fly right by the time code that it should start capturing at. What am I doing wrong???
    Some files onlined easy, but there is a set from one tape that just won't sync up or capture.
    It also keeps telling me that I have time code breaks from time to time, but when I play the tapes back they look fine to me. No obvious breaks in time code from start to end.
    thanks for any help or advice

    Recapturing can be really tricky. Takes practice and it's never recommended that you try it out on a critical piece. Timecode breaks can be perceived by FCP as being caused by several things besides actual breaks in the flow of code. The most common is probably tape dropout.
    The clips that are giving you trouble, try parking the tape very close to one of the start points and recapture only that one clip.
    If your in point is too close to a timecode glitch, you will never be able to recapture it. You'll need to capture it using NOW and then recut the clip into the scene.
    bogiesan

  • Encountering error End tag does not match start tag 'group'

    Hi guys,
    am a newbee to XML Publisher.
    I am encountering the below error:
    Creating XDO Report at: Wed May 25 16:38:14 GMT+05:30 2011
         sql = select 'TEST' from dual;
         description = Learning XML Reporting
         port = 1561
         user = apps
         host = e2dscorhrmdba01.cendant.com
         sid = ABGHRDEV
         ReportParameters = {}
         path = D:\lanosrep\XML\Output\FirstXMLReport
         data_source_name = ABGHRDEV
         name = FirstXMLReport
    oracle.xml.parser.v2.XMLParseException: End tag does not match start tag 'group'.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:205)
         at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:516)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1242)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:227)
         at oracle.apps.xdo.dataengine.DataProcessor.getSQLSchema(DataProcessor.java:528)
         at oracle.apps.xdo.dataengine.DataProcessor.writeXMLSchema(DataProcessor.java:476)
         at CreateXDOReport.createXDOReport(CreateXDOReport.java:164)
         at CreateXDOReport.process(CreateXDOReport.java:108)
         at CreateXDOReport.main(CreateXDOReport.java:298)
    I have tried reinstalling the patch but of no use.
    Please guide me.

    I changed the sql query
    select 'TEST' from dual;
    to select 'TEST' from dual
    It is working fine now :)

  • "Expected end of line, etc. but found end of script." HELP!!

    When I try to run my script, it say "(null.)" When I try to compile it or save it as an application, it says "Expected end of line, etc. but found end of script." HELP!!!
    Here is my script:
    display dialog "WARNING! a virus has been detected and the system is crashing" buttons {"shut down computor to preserve contents", "burn virus file"} default button 2
    if the button returned of the result is "burn virus file" then
    say "warning the virus has reacted to its deletion and has activated itself"
    say "virus is now in control of the users computor"
    say "if you try to stop the virus it will delete all user data"
    tell application "Safari"
    activate
    open location "http://www.facebook.com"
    open location "http://www.yahoo.com"
    open location "http://www.gmail.com"
    open location "http://www.youtube.com"
    end tell
    tell application "iTunes"
    activate
    play
    end tell
    tell application "iCal"
    activate
    end tell
    tell application "Terminal"
    activate
    end tell
    tell application "Finder"
    quit
    end tell
    if the button returned of the result is "shut down computor to preserve contents" then
    say "your computor will shut to protect your files."
    say "shut down in t-3"
    say "2."
    say "1."
    say "goodbye"
    say "it appears that there is a problem"
    say "the virus is starting to take over your system"
    beep 17
    display dialog "how DARE you try to delete me. I am now going to take over your computer." buttons {"**** YOU GET OUTTA MY COMPUTER", "OK, have fun!!"} default button "OK, have fun!!"
    if the button returned of the result is "OK, have fun!!" then
    say "thank you!!"
    say "watch this!"
    Tell application "iChat"
    quit
    end tell
    Tell application "Finder"
    quit
    end tell
    if the button returned of the result is "**** YOU GET OUTTA MY COMPUTER" then
    say "That attitude will not be tollerated."
    say "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo" using "Cellos"
    display dialog "A virus has been detected going through your files. Would you like to try to stop this?" buttons {"OK"} default button "OK"
    if the button returned of the result is "OK" then
    beep 5
    display dialog "there has been an error. Do you want to try to force quit?" buttons "Yes" default button "Yes"
    if the button returned of the result is "Yes" then
    say "Well, thats just too bad!"
    beep 2
    say "Sorry about that."
    say "The virus has been purged from your system."
    say "Your computer will now restart to make sure that all traces of the virus have been removed."
    say "shut down in t-3"
    say "2"
    say "1"
    say "goodbye"
    tell application "Finder"
    restart
    end tell
    end if

    You need to complete compound if statements with an end if - see the AppleScript Language Guide for a description of the various kinds of if statements.
    Although I don't think it is going to do what you expect, your script would look something like:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    display dialog "WARNING! a virus has been detected and the system is crashing" buttons {"shut down computor to preserve contents", "burn virus file"} default button 2
    if the button returned of the result is "burn virus file" then
    say "warning the virus has reacted to its deletion and has activated itself"
    say "virus is now in control of the users computor"
    say "if you try to stop the virus it will delete all user data"
    tell application "Safari"
    activate
    open location "http://www.facebook.com"
    open location "http://www.yahoo.com"
    open location "http://www.gmail.com"
    open location "http://www.youtube.com"
    end tell
    tell application "iTunes"
    activate
    play
    end tell
    tell application "iCal"
    activate
    end tell
    tell application "Terminal"
    activate
    end tell
    tell application "Finder"
    quit
    end tell
    else if the button returned of the result is "shut down computor to preserve contents" then
    say "your computor will shut to protect your files."
    say "shut down in t-3"
    say "2."
    say "1."
    say "goodbye"
    say "it appears that there is a problem"
    say "the virus is starting to take over your system"
    beep 17
    end if
    display dialog "how DARE you try to delete me. I am now going to take over your computer." buttons {"**** YOU GET OUTTA MY COMPUTER", "OK, have fun!!"} default button "OK, have fun!!"
    if the button returned of the result is "OK, have fun!!" then
    say "thank you!!"
    say "watch this!"
    tell application "iChat"
    quit
    end tell
    tell application "Finder"
    quit
    end tell
    else if the button returned of the result is "**** YOU GET OUTTA MY COMPUTER" then
    say "That attitude will not be tollerated."
    say "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo" using "Cellos"
    end if
    display dialog "A virus has been detected going through your files. Would you like to try to stop this?" buttons {"OK"} default button "OK"
    if the button returned of the result is "OK" then
    beep 5
    display dialog "there has been an error. Do you want to try to force quit?" buttons "Yes" default button "Yes"
    else if the button returned of the result is "Yes" then
    say "Well, thats just too bad!"
    beep 2
    say "Sorry about that."
    say "The virus has been purged from your system."
    say "Your computer will now restart to make sure that all traces of the virus have been removed."
    say "shut down in t-3"
    say "2"
    say "1"
    say "goodbye"
    tell application "Finder"
    restart
    end tell
    end if
    </pre>

Maybe you are looking for

  • Enter/return key wont work

    I cant get it to work properly.It will only work with number lock on macbook pro   Mac OS X (10.4.8)  

  • CreateNewDialog of dialog manager with caching option True cause ID CS6 crash on quit in windows

    following line of code cause crash on some windows machine when i quit indesign (even without doing anything) but if last option (caching) replace with kFalse there is no crash on any machine .there is no crash on Mac in either case. IDialog* dialog

  • Trouble opening a link with Javascript

    On this particular site the Log In section calls javascript: show_login_popup[]. This has stopped working, it always used to. If it is any consolation it won't work on IE or Google Chrome either. I have reinstalled Java and have confirmed that it is

  • Ipod music is frozen

    my sons music on his ipod is frozen it will not forward

  • Scaling problem when printing

    For some strange reason, when I open any application and go to print a document, it prints at 90% scaled. Some of the documents print our landscape and others portrait. How to I reset my Mac so that when i print out a document from any application th