weblogic.utils.ParsingException: nested TokenStreamException - Weblogic

This is a discussion on weblogic.utils.ParsingException: nested TokenStreamException - Weblogic ; who know, what is the source for the next exception: ault'> weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamIOException at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java: 1115) at weblogic.servlet.jsp.JspParser.doit(JspParser.java :89) at weblogic.servlet.jsp.JspParser.parse(JspParser.jav a:193) at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.jav a:119) at weblogic.utils.compiler.CodeGenerator.generate(Cod eGenerator.java:255) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.j ava:341) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStu b.java:201) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStu b.java:154) at ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: weblogic.utils.ParsingException: nested TokenStreamException

  1. weblogic.utils.ParsingException: nested TokenStreamException

    who know, what is the source for the next exception:

    ault'> <> <> <101017> <[WebAppServletContext(8161492,SGAdmin,/SGAdmin)] Root cause of ServletException>
    weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamIOException
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java: 1115)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java :89)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.jav a:193)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.jav a:119)
    at weblogic.utils.compiler.CodeGenerator.generate(Cod eGenerator.java:255)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.j ava:341)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStu b.java:201)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStu b.java:154)
    at weblogic.servlet.internal.ServletStubImpl.getServl et(ServletStubImpl.java:370)
    at weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java:240)
    at weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java:198)
    at weblogic.servlet.internal.WebAppServletContext.inv okeServlet(WebAppServletContext.java:2678)
    at weblogic.servlet.internal.ServletRequestImpl.execu te(ServletRequestImpl.java:2412)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:140)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:121)

  2. Re: weblogic.utils.ParsingException: nested TokenStreamException

    Can you post the jsp which causes this exception?

    --Nagesh

    "Arturo Mu駉z" wrote in message
    news:19638969.1090439801994.JavaMail.root@jserv5.. .
    > who know, what is the source for the next exception:
    >
    > ault'> <> <> <101017> <[WebAppServletContext(8161492,SGAdmin,/SGAdmin)]

    Root cause of ServletException>
    > weblogic.utils.ParsingException: nested TokenStreamException:

    antlr.TokenStreamIOException
    > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java: 1115)
    > at weblogic.servlet.jsp.JspParser.doit(JspParser.java :89)
    > at weblogic.servlet.jsp.JspParser.parse(JspParser.jav a:193)
    > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.jav a:119)
    > at

    weblogic.utils.compiler.CodeGenerator.generate(Cod eGenerator.java:255)
    > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.j ava:341)
    > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStu b.java:201)
    > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStu b.java:154)
    > at

    weblogic.servlet.internal.ServletStubImpl.getServl et(ServletStubImpl.java:37
    0)
    > at

    weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java
    :240)
    > at

    weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java
    :198)
    > at

    weblogic.servlet.internal.WebAppServletContext.inv okeServlet(WebAppServletCo
    ntext.java:2678)
    > at

    weblogic.servlet.internal.ServletRequestImpl.execu te(ServletRequestImpl.java
    :2412)
    > at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:140)
    > at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:121)




  3. Re: weblogic.utils.ParsingException: nested TokenStreamException

    Hi,
    I encountered same exception.
    Here is my jsp:
    <%@ page language="java" %>
    <%--@ page import="java.util.*,com.jspsmart.upload.*" errorPage="" --%>


    文件上传处理页面




    <%--

    SmartUpload su = new SmartUpload();

    su.initialize(pageContext);

    // su.setMaxFileSize(10000);

    // su.setTotalMaxFileSize(20000);

    // su.setAllowedFilesList("doc,txt");

    // su.setDeniedFilesList("exe,bat,jsp,htm,html,,");

    su.upload();

    int count = su.save("/upload");
    out.println(count+"dddd
    ");


    out.println("TEST="+su.getRequest().getParameter("TEST")
    +"

    ");


    for (int i=0;i {
    com.jspsmart.upload.File file = su.getFiles().getFile(i);


    if (file.isMissing()) continue;


    out.println("");
    out.println("");
    out.println("");
    out.println("");
    out.println("");
    out.println("");
    out.println("
    FieldName:"
    + file.getFieldName() + "
    Size:" +
    file.getSize() + "
    FileName:"
    + file.getFileName() + "
    FileExt:"
    + file.getFileExt() + "
    FilePathName:"
    + file.getFilePathName() + "

    ");


    // file.saveAs("/upload/" + myFile.getFileName());

    // file.saveAs("/upload/" + myFile.getFileName(),
    su.SAVE_VIRTUAL);

    // file.saveAs("c:\\temp\\" + myFile.getFileName(),
    su.SAVE_PHYSICAL);

    }
    --%>



    <%--



    文件上传




     


    upload


    ENCTYPE="multipart/form-data">

















    1、

    2、

    3、

    4、







    --%>

+ Reply to Thread