Headless client demo doesn't work in Servoy 8 developer

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Headless client demo doesn't work in Servoy 8 developer

Postby j.boonstra » Mon Jan 22, 2018 12:32 pm

In Servoy developer 8.2.2 the headless client demo gives an error the JSP page http://localhost:8080/examples/headless_client_formtest.jsp.
Code: Select all
HTTP Status 500 - Unable to compile class for JSP:
type Exception report

message Unable to compile class for JSP:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [17] in the generated java file: [D:\Servoy\Servoy_8_2_2_test\application_server\server\work\Catalina\localhost\ROOT\org\apache\jsp\examples\headless_005fclient_005fformtest_jsp.java]
Only a type can be imported. com.servoy.j2db.dataprocessing.IDataSet resolves to a package

An error occurred at line: 8 in the jsp file: /examples/headless_client_formtest.jsp
ISessionBean cannot be resolved to a type
5: <%@ page import = "com.servoy.j2db.dataprocessing.IDataSet" %>
6: <%@ page errorPage="errorpage.jsp" %>
7: <%
8:    ISessionBean servoy_hc = (ISessionBean)session.getAttribute("servoy");
9:    if (servoy_hc == null)
10:    {
11:       servoy_hc = HeadlessClientFactory.createSessionBean(request,"headless_client_demo");


An error occurred at line: 8 in the jsp file: /examples/headless_client_formtest.jsp
ISessionBean cannot be resolved to a type
5: <%@ page import = "com.servoy.j2db.dataprocessing.IDataSet" %>
6: <%@ page errorPage="errorpage.jsp" %>
7: <%
8:    ISessionBean servoy_hc = (ISessionBean)session.getAttribute("servoy");
9:    if (servoy_hc == null)
10:    {
11:       servoy_hc = HeadlessClientFactory.createSessionBean(request,"headless_client_demo");


An error occurred at line: 11 in the jsp file: /examples/headless_client_formtest.jsp
HeadlessClientFactory cannot be resolved
8:    ISessionBean servoy_hc = (ISessionBean)session.getAttribute("servoy");
9:    if (servoy_hc == null)
10:    {
11:       servoy_hc = HeadlessClientFactory.createSessionBean(request,"headless_client_demo");
12:       session.setAttribute("servoy",servoy_hc);
13:    }
14:    boolean ok = servoy_hc.setMainForm("products");


An error occurred at line: 74 in the jsp file: /examples/headless_client_formtest.jsp
IDataSet cannot be resolved to a type
71: <td>categoryid</td><td>
72: <select name="categoryid">
73: <%
74:    IDataSet categories = servoy_hc.getValueListItems(null,"categories");
75:    for (int i = 0 ; i < categories.getRowCount() ; i++)
76:    {
77:       Object[] item_row = categories.getRow(i);


An error occurred at line: 79 in the jsp file: /examples/headless_client_formtest.jsp
Utils cannot be resolved
76:    {
77:       Object[] item_row = categories.getRow(i);
78:       String selected = "";
79:       if (item_row[1] != null && Utils.equalObjects(item_row[1],servoy_hc.getDataProviderValue(null,"categoryid")))
80:       {
81:          selected = "SELECTED";
82:       }


Stacktrace:
   org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
   org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:212)
   org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:377)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:600)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
   com.servoy.eclipse.designer.rfb.startup.EditorContentFilter.doFilter(EditorContentFilter.java:165)
   com.servoy.j2db.server.ngclient.startup.resourceprovider.ResourceProvider.doFilter(ResourceProvider.java:338)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   com.servoy.j2db.server.servlets.JspUploadFilter.doFilter(JspUploadFilter.java:5)
note The full stack trace of the root cause is available in the Apache Tomcat/8.5.9 logs.



Server Information
Servoy version 8.2.2 -releaseNumber 3107
Port used by RMI Registry: 1099
Repository version 49
Current time: Mon Jan 22 11:28:33 CET 2018
Uptime: 46 seconds
Server ID: 45E0B60B-188B-4FDB-AE77-B1006B407356

Settings file for this server: D:\Servoy\Servoy_8_2_2\developer\..\application_server\servoy.properties

User Information
Logged in as: jeroen

JVM Information
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.version=1.8.0_151
java.vm.info=mixed mode
java.vm.vendor=Oracle Corporation

Operating System Information
os.name=Windows 10
os.version=10.0
os.arch=amd64


It does work in the server installation of Servoy 8.2.2.
Jeroen boonstra
A10Tech
http://www.a10tech.nl
j.boonstra
 
Posts: 18
Joined: Fri Nov 14, 2014 3:25 pm

Re: Headless client demo doesn't work in Servoy 8 developer

Postby jcompagner » Wed Jan 24, 2018 12:30 pm

this is a class loading problem when in the developer (because the class loading works then really different)

Can you make a case for this in our system
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Headless client demo doesn't work in Servoy 8 developer

Postby j.boonstra » Thu Feb 01, 2018 6:15 pm

Jeroen boonstra
A10Tech
http://www.a10tech.nl
j.boonstra
 
Posts: 18
Joined: Fri Nov 14, 2014 3:25 pm


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron