Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper start of session when no test is selected #173

Closed
bermud opened this issue Jul 13, 2016 · 1 comment
Closed

Improper start of session when no test is selected #173

bermud opened this issue Jul 13, 2016 · 1 comment
Assignees
Labels

Comments

@bermud
Copy link
Contributor

bermud commented Jul 13, 2016

Version 4.7.1

The test starts even though there is no test selected.

Steps:

Using the default installation (only Example.Net and XML note)

  1. Create session: http://cite.opengeospatial.org/te3/createSession.jsp
  2. Do not select any specification
  3. Click on start session
  4. A pop up window appears 'Please select from available standards'
  5. Click on close
  6. The executing tests ... and spinning wheel page appears http://cite.opengeospatial.org/te3/test.jsp
  7. It never stops.
  8. Stop manually

And here is the error:


java.io.IOException: An exception occurred processing JSP page /viewSessionLog.jsp at line 94

91:       File userlog = new File(Conf.getUsersDir(), request.getRemoteUser());
92:       String sessionId = request.getParameter("session");
93:       TestSession ts = new TestSession();
94:       ts.load(userlog, sessionId);
95:       String suiteName = "null";
96:       String sourcesName = ts.getSourcesName();
97:       if (sourcesName == null) {


Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:467)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause

java.io.FileNotFoundException: /srv/local/teamengine-te3/TE_BASE/users/ogctest/undefined/session.xml (No such file or directory)
    java.io.FileInputStream.open0(Native Method)
    java.io.FileInputStream.open(FileInputStream.java:195)
    java.io.FileInputStream.<init>(FileInputStream.java:138)
    java.io.FileInputStream.<init>(FileInputStream.java:93)
    sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
    org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
    com.occamlab.te.web.TestSession.load(TestSession.java:89)
    org.apache.jsp.viewSessionLog_jsp._jspService(viewSessionLog_jsp.java:212)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

@keshavnangare
Copy link
Contributor

Fixed with this commit 7ff2ace.

@bermud bermud closed this as completed Jul 22, 2016
rjmartell added a commit that referenced this issue Aug 2, 2016
Fixed the issue "Improper start of session when no test is selected"  #173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants