Errors on fresh server installation

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Errors on fresh server installation

Postby steve1376656734 » Wed Mar 23, 2016 4:54 pm

Hi,

I have just installed a brand new server with the following configuration:

CentOS 7.2
Java 1.8.0_74-b02
Apache 2.4.6-40
Tomcat 8.0.32

I have used a WAR to deploy my solution and as soon as it is started I get the following error in the log:

Code: Select all
2016-03-23 14:33:43,612 ERROR [authenticator] com.servoy.j2db.util.Debug - cant parse variable 'NEW_LINE' [3D18E470-3A00-4779-B13A-DDBBBE1E9D6E svyAuthenticate]
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
   at java.lang.String.charAt(String.java:658)
   at org.apache.catalina.loader.WebappClassLoaderBase.filter(WebappClassLoaderBase.java:2780)
   at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1253)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at org.mozilla.javascript.Kit.classOrNull(Kit.java:89)
   at org.mozilla.javascript.NativeJavaPackage.getPkgProperty(NativeJavaPackage.java:154)
   at org.mozilla.javascript.NativeJavaPackage.get(NativeJavaPackage.java:111)
   at org.mozilla.javascript.NativeJavaTopPackage.init(NativeJavaTopPackage.java:119)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.mozilla.javascript.ScriptableObject.buildClassCtor(ScriptableObject.java:1212)
   at org.mozilla.javascript.LazilyLoadedCtor.buildValue0(LazilyLoadedCtor.java:129)
   at org.mozilla.javascript.LazilyLoadedCtor.access$0(LazilyLoadedCtor.java:125)
   at org.mozilla.javascript.LazilyLoadedCtor$1.run(LazilyLoadedCtor.java:117)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.mozilla.javascript.LazilyLoadedCtor.buildValue(LazilyLoadedCtor.java:115)
   at org.mozilla.javascript.LazilyLoadedCtor.init(LazilyLoadedCtor.java:97)
   at org.mozilla.javascript.ScriptableObject$GetterSlot.getValue(ScriptableObject.java:341)
   at org.mozilla.javascript.ScriptableObject.getImpl(ScriptableObject.java:2617)
   at org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:427)
   at org.mozilla.javascript.IdScriptableObject.get(IdScriptableObject.java:378)
   at org.mozilla.javascript.ImporterTopLevel.get(ImporterTopLevel.java:129)
   at com.servoy.j2db.scripting.ScriptEngine$ServoyTopLevelScope.get(ScriptEngine.java:828)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.topScopeName(ScriptRuntime.java:1855)
   at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1824)
   at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1758)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1865)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:171)
   at org.mozilla.javascript.Context.evaluateString(Context.java:1121)
   at com.servoy.j2db.scripting.ScriptVariableScope.evalValue(ScriptVariableScope.java:173)
   at com.servoy.j2db.scripting.ScriptVariableScope.putScriptVariable(ScriptVariableScope.java:137)
   at com.servoy.j2db.scripting.GlobalScope.put(GlobalScope.java:105)
   at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:78)
   at com.servoy.j2db.scripting.GlobalScope.createVars(GlobalScope.java:91)
   at com.servoy.j2db.scripting.ScopesScope.getGlobalScope(ScopesScope.java:106)
   at com.servoy.j2db.scripting.ScopesScope.get(ScopesScope.java:74)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:171)
   at org.mozilla.javascript.Context.evaluateString(Context.java:1121)
   at com.servoy.j2db.scripting.ScriptVariableScope.evalValue(ScriptVariableScope.java:173)
   at com.servoy.j2db.scripting.ScriptVariableScope.putScriptVariable(ScriptVariableScope.java:137)
   at com.servoy.j2db.scripting.GlobalScope.put(GlobalScope.java:105)
   at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:78)
   at com.servoy.j2db.scripting.GlobalScope.createVars(GlobalScope.java:91)
   at com.servoy.j2db.scripting.ScopesScope.getGlobalScope(ScopesScope.java:106)
   at com.servoy.j2db.scripting.ScopesScope.get(ScopesScope.java:74)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:171)
   at org.mozilla.javascript.Context.evaluateString(Context.java:1121)
   at com.servoy.j2db.scripting.ScriptVariableScope.evalValue(ScriptVariableScope.java:173)
   at com.servoy.j2db.scripting.ScriptVariableScope.putScriptVariable(ScriptVariableScope.java:137)
   at com.servoy.j2db.scripting.GlobalScope.put(GlobalScope.java:105)
   at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:78)
   at com.servoy.j2db.scripting.GlobalScope.createVars(GlobalScope.java:91)
   at com.servoy.j2db.scripting.ScopesScope.getGlobalScope(ScopesScope.java:106)
   at com.servoy.j2db.plugins.ClientPluginAccessProvider$MethodExecutor.run(ClientPluginAccessProvider.java:551)
   at com.servoy.j2db.server.headlessclient.SessionClient.invokeAndWait(SessionClient.java:1318)
   at com.servoy.j2db.plugins.ClientPluginAccessProvider.executeMethod(ClientPluginAccessProvider.java:440)
   at com.servoy.extensions.plugins.converters.GlobalMethodConverter.executeMethod(GlobalMethodConverter.java:59)
   at com.servoy.extensions.plugins.converters.GlobalMethodConverter.convertToObject(GlobalMethodConverter.java:77)
   at com.servoy.j2db.dataprocessing.SQLSheet.convertValueToObject(SQLSheet.java:491)
   at com.servoy.j2db.dataprocessing.Row.getValue(Row.java:186)
   at com.servoy.j2db.dataprocessing.Row.getValue(Row.java:132)
   at com.servoy.j2db.dataprocessing.Record.getValue(Record.java:200)
   at com.servoy.j2db.dataprocessing.Record.getValue(Record.java:169)
   at com.servoy.j2db.dataprocessing.Record.get(Record.java:459)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:171)
   at org.mozilla.javascript.Context.evaluateString(Context.java:1121)
   at com.servoy.j2db.scripting.ScriptVariableScope.evalValue(ScriptVariableScope.java:173)
   at com.servoy.j2db.scripting.ScriptVariableScope.putScriptVariable(ScriptVariableScope.java:137)
   at com.servoy.j2db.scripting.GlobalScope.put(GlobalScope.java:105)
   at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:78)
   at com.servoy.j2db.scripting.GlobalScope.createVars(GlobalScope.java:91)
   at com.servoy.j2db.scripting.ScopesScope.getGlobalScope(ScopesScope.java:106)
   at com.servoy.j2db.scripting.ScopesScope.get(ScopesScope.java:74)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:156)
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:628)
   at com.servoy.j2db.scripting.ScopesScope.executeGlobalFunction(ScopesScope.java:164)
   at com.servoy.j2db.FormManager.makeSolutionSettings(FormManager.java:412)
   at com.servoy.j2db.server.headlessclient.WebFormManager.makeSolutionSettings(WebFormManager.java:80)
   at com.servoy.j2db.FormManager$1.run(FormManager.java:168)
   at com.servoy.j2db.server.headlessclient.SessionClient.invokeAndWait(SessionClient.java:1318)
   at com.servoy.j2db.server.headlessclient.SessionClient.doInvokeLater(SessionClient.java:1308)
   at com.servoy.j2db.ClientState.invokeLater(ClientState.java:1720)
   at com.servoy.j2db.FormManager.propertyChange(FormManager.java:164)
   at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
   at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:92)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
   at com.servoy.j2db.J2DBGlobals.firePropertyChange(J2DBGlobals.java:92)
   at com.servoy.j2db.server.headlessclient.SessionClient.solutionLoaded(SessionClient.java:598)
   at com.servoy.j2db.ClientState.loadSolutionsAndModules(ClientState.java:1474)
   at com.servoy.j2db.server.headlessclient.SessionClient.loadSolution(SessionClient.java:328)
   at com.servoy.j2db.server.headlessclient.SessionClient.loadSolution(SessionClient.java:287)
   at com.servoy.j2db.server.main.Zp.run(Zp.java:25)
   at java.lang.Thread.run(Thread.java:745)
2016-03-23 14:33:43,613 ERROR [authenticator] com.servoy.j2db.util.Debug - cant parse variable 'NEW_LINE', script stacktrace:
   at log:6
   at init:581
   at init:580
   at svyAppCore/scopes/svyProperties/loadRuntimeProperties:1956 (loadRuntimeProperties)
   at runtimeProperties:8
   at svyAuthenticate/scopes/svyAuthenticate/getProperties:67 (getProperties)
[3D18E470-3A00-4779-B13A-DDBBBE1E9D6E svyAuthenticate]
2016-03-23 14:33:43,694 ERROR [pool-9-thread-2] com.servoy.j2db.util.Debug - client_stats table missing in log server, cannot save client statistics [ ]
2016-03-23 14:33:43,701 ERROR [http-nio-8080-exec-34] com.servoy.j2db.util.Debug - cant parse variable 'NEW_LINE' [F3BE8BE7-8FEA-49BB-BA64-66C26DFD4032 TMLELogin]
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
   at java.lang.String.charAt(String.java:658)
   at org.apache.catalina.loader.WebappClassLoaderBase.filter(WebappClassLoaderBase.java:2780)
   at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1253)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at org.mozilla.javascript.Kit.classOrNull(Kit.java:89)
   at org.mozilla.javascript.NativeJavaPackage.getPkgProperty(NativeJavaPackage.java:154)
   at org.mozilla.javascript.NativeJavaPackage.get(NativeJavaPackage.java:111)
   at org.mozilla.javascript.NativeJavaTopPackage.init(NativeJavaTopPackage.java:119)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.mozilla.javascript.ScriptableObject.buildClassCtor(ScriptableObject.java:1212)
   at org.mozilla.javascript.LazilyLoadedCtor.buildValue0(LazilyLoadedCtor.java:129)
   at org.mozilla.javascript.LazilyLoadedCtor.access$0(LazilyLoadedCtor.java:125)
   at org.mozilla.javascript.LazilyLoadedCtor$1.run(LazilyLoadedCtor.java:117)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.mozilla.javascript.LazilyLoadedCtor.buildValue(LazilyLoadedCtor.java:115)
   at org.mozilla.javascript.LazilyLoadedCtor.init(LazilyLoadedCtor.java:97)
   at org.mozilla.javascript.ScriptableObject$GetterSlot.getValue(ScriptableObject.java:341)
   at org.mozilla.javascript.ScriptableObject.getImpl(ScriptableObject.java:2617)
   at org.mozilla.javascript.ScriptableObject.get(ScriptableObject.java:427)
   at org.mozilla.javascript.IdScriptableObject.get(IdScriptableObject.java:378)
   at org.mozilla.javascript.ImporterTopLevel.get(ImporterTopLevel.java:129)
   at com.servoy.j2db.scripting.ScriptEngine$ServoyTopLevelScope.get(ScriptEngine.java:828)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.topScopeName(ScriptRuntime.java:1855)
   at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1824)
   at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1758)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1865)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:171)
   at org.mozilla.javascript.Context.evaluateString(Context.java:1121)
   at com.servoy.j2db.scripting.ScriptVariableScope.evalValue(ScriptVariableScope.java:173)
   at com.servoy.j2db.scripting.ScriptVariableScope.putScriptVariable(ScriptVariableScope.java:137)
   at com.servoy.j2db.scripting.GlobalScope.put(GlobalScope.java:105)
   at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:78)
   at com.servoy.j2db.scripting.GlobalScope.createVars(GlobalScope.java:91)
   at com.servoy.j2db.scripting.ScopesScope.getGlobalScope(ScopesScope.java:106)
   at com.servoy.j2db.scripting.ScopesScope.get(ScopesScope.java:74)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:171)
   at org.mozilla.javascript.Context.evaluateString(Context.java:1121)
   at com.servoy.j2db.scripting.ScriptVariableScope.evalValue(ScriptVariableScope.java:173)
   at com.servoy.j2db.scripting.ScriptVariableScope.putScriptVariable(ScriptVariableScope.java:137)
   at com.servoy.j2db.scripting.GlobalScope.put(GlobalScope.java:105)
   at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:78)
   at com.servoy.j2db.scripting.GlobalScope.createVars(GlobalScope.java:91)
   at com.servoy.j2db.scripting.ScopesScope.getGlobalScope(ScopesScope.java:106)
   at com.servoy.j2db.scripting.ScopesScope.get(ScopesScope.java:74)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:156)
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:628)
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:824)
   at com.servoy.j2db.BasicFormController.executeFormMethod(BasicFormController.java:708)
   at com.servoy.j2db.BasicFormController.executeOnShowMethod(BasicFormController.java:622)
   at com.servoy.j2db.BasicFormController.access$2(BasicFormController.java:616)
   at com.servoy.j2db.BasicFormController$1.run(BasicFormController.java:356)
   at com.servoy.j2db.server.headlessclient.EventsRunnable.run(EventsRunnable.java:58)
   at com.servoy.j2db.server.headlessclient.WebClient.executeEvents(WebClient.java:571)
   at com.servoy.j2db.server.headlessclient.EventsRunnable.run(EventsRunnable.java:70)
   at com.servoy.j2db.server.headlessclient.WebClient.executeEvents(WebClient.java:571)
   at com.servoy.j2db.server.headlessclient.WebClientsApplication$8.respond(WebClientsApplication.java:714)
   at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1287)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
   at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
   at com.servoy.j2db.server.servlets.Zt.doGet(Zt.java:7)
   at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)
2016-03-23 14:33:43,703 ERROR [http-nio-8080-exec-34] com.servoy.j2db.util.Debug - cant parse variable 'NEW_LINE', script stacktrace:
   at log:6
   at TMLELogin/forms/tmle_login/onShow:17 (onShow)
[F3BE8BE7-8FEA-49BB-BA64-66C26DFD4032 TMLELogin]
2016-03-23 14:33:43,720 ERROR [http-nio-8080-exec-34] com.servoy.j2db.util.Debug - cant parse variable 'LINE_SEPARATOR' [F3BE8BE7-8FEA-49BB-BA64-66C26DFD4032 TMLELogin]
org.mozilla.javascript.EcmaError: ReferenceError: "Packages" is not defined. (LINE_SEPARATOR#15)
   at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3772)
   at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3756)
   at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3825)
   at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1827)
   at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1758)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1865)
   at script(LINE_SEPARATOR:15)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:171)
   at org.mozilla.javascript.Context.evaluateString(Context.java:1121)
   at com.servoy.j2db.scripting.ScriptVariableScope.evalValue(ScriptVariableScope.java:173)
   at com.servoy.j2db.scripting.ScriptVariableScope.putScriptVariable(ScriptVariableScope.java:137)
   at com.servoy.j2db.scripting.GlobalScope.put(GlobalScope.java:105)
   at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:78)
   at com.servoy.j2db.scripting.GlobalScope.createVars(GlobalScope.java:91)
   at com.servoy.j2db.scripting.ScopesScope.getGlobalScope(ScopesScope.java:106)
   at com.servoy.j2db.scripting.ScopesScope.get(ScopesScope.java:74)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
   at script.onShow(TMLELogin/forms/tmle_login/onShow:17)
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:156)
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:628)
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:824)
   at com.servoy.j2db.BasicFormController.executeFormMethod(BasicFormController.java:708)
   at com.servoy.j2db.BasicFormController.executeOnShowMethod(BasicFormController.java:622)
   at com.servoy.j2db.BasicFormController.access$2(BasicFormController.java:616)
   at com.servoy.j2db.BasicFormController$1.run(BasicFormController.java:356)
   at com.servoy.j2db.server.headlessclient.EventsRunnable.run(EventsRunnable.java:58)
   at com.servoy.j2db.server.headlessclient.WebClient.executeEvents(WebClient.java:571)
   at com.servoy.j2db.server.headlessclient.EventsRunnable.run(EventsRunnable.java:70)
   at com.servoy.j2db.server.headlessclient.WebClient.executeEvents(WebClient.java:571)
   at com.servoy.j2db.server.headlessclient.WebClientsApplication$8.respond(WebClientsApplication.java:714)
   at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1287)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
   at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
   at com.servoy.j2db.server.servlets.Zt.doGet(Zt.java:7)
   at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)
2016-03-23 14:33:43,722 ERROR [http-nio-8080-exec-34] com.servoy.j2db.util.Debug - cant parse variable 'LINE_SEPARATOR', script stacktrace:
   at TMLELogin/forms/tmle_login/onShow:17 (onShow)
[F3BE8BE7-8FEA-49BB-BA64-66C26DFD4032 TMLELogin]


Can anyone shed any light on what the problem may be please?

Thanks
Steve
Steve
SAN Developer
steve1376656734
 
Posts: 180
Joined: Fri Aug 16, 2013 2:38 pm
Location: Lanzarote

Re: Errors on fresh server installation

Postby steve1376656734 » Thu Mar 24, 2016 12:30 pm

After much head scratching and hair tearing out I have narrowed this down to the Tomcat server version.

If I downgrade the Tomcat server to V8.0.30 then everything works fine.
Steve
SAN Developer
steve1376656734
 
Posts: 180
Joined: Fri Aug 16, 2013 2:38 pm
Location: Lanzarote

Re: Errors on fresh server installation

Postby jcompagner » Thu Mar 24, 2016 12:48 pm

what does your "'NEW_LINE" variable that we are trying to evaluate look like?
I guess that tries to lookup so java class?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7977
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Errors on fresh server installation

Postby steve1376656734 » Thu Mar 24, 2016 4:24 pm

Hi Johan,

The NEW_LINE variable is part of the Servoy BAP/Framework and is in the svyLogManager solution. It is line 16 of svyLogManager.js as follows:

Code: Select all
var NEW_LINE = Packages.java.lang.System.getProperty("line.separator");


Any idea why Servoy won't run with the latest Tomcat?

Thanks
Steve
Steve
SAN Developer
steve1376656734
 
Posts: 180
Joined: Fri Aug 16, 2013 2:38 pm
Location: Lanzarote

Re: Errors on fresh server installation

Postby jcompagner » Thu Mar 24, 2016 5:26 pm

that code is that is hit in tomcat is really different between 8.0.30 and 8.0.32

and rhino does this lookup only on "org" and other top pacakge names which are now failing because of it tries to look that up somehow (which is kind of weird of rhino)

I will report this issue to tomcat
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7977
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Errors on fresh server installation

Postby steve1376656734 » Thu Mar 24, 2016 5:53 pm

Thanks Johan. Do I need to monitor the Tomcat forums to see if it gets fixed or will Servoy let us know?
Steve
SAN Developer
steve1376656734
 
Posts: 180
Joined: Fri Aug 16, 2013 2:38 pm
Location: Lanzarote

Re: Errors on fresh server installation

Postby jcompagner » Thu Mar 24, 2016 6:13 pm

i will report back when i hear something more. But until now we have to keep using 8.0.30
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7977
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Errors on fresh server installation

Postby jcompagner » Fri Mar 25, 2016 12:00 pm

https://bz.apache.org/bugzilla/show_bug.cgi?id=58999

was already a bug seems to be fixed in 8.0.33
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7977
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Errors on fresh server installation

Postby steve1376656734 » Fri Mar 25, 2016 12:14 pm

That's great news - unfortunately 8.0.33 is not released yet 😔 But hopefully soon.
steve1376656734
 
Posts: 180
Joined: Fri Aug 16, 2013 2:38 pm
Location: Lanzarote


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 3 guests

cron