Erro de compilação #WebRunFunctions#



  • Eu tenho um projeto que foi criado na versão 2.6 e foi criado um relatório e uma view para ele na plataforma 2.7 e agora estou com erro de compilação que segue abaixo: [code]fr.exceptions.WFRCompileException: java.lang.Exception: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java:12260: cannot find symbol symbol : variable caseSensitive location: class wfr.database.DBConnection.DBConnectionProperties properties.caseSensitive = config.getBoolean(database, "CaseSensitive"); ^ C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java:12261: cannot find symbol symbol : variable forceLowerCase location: class wfr.database.DBConnection.DBConnectionProperties properties.forceLowerCase = config.getBoolean(database, "ForceLowerCase"); ^ Note: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors at wfr.util.Functions.compileFile(Functions.java:3475) at wfr.util.Functions.compileFile(Functions.java:3431) at wfr.util.Functions.compileFile(Functions.java:3408) at wfr.rules.FlowMethodsManager.compileJavaFunctions(FlowMethodsManager.java:412) at wfr.rules.FlowMethodsManager.compileJavaFunctions(FlowMethodsManager.java:370) at wfr.com.WFRSystem.create(WFRSystem.java:703) at wfr.com.WFRSystem.create(WFRSystem.java:626) at wfr.com.WFRDBSystem.(WFRDBSystem.java:39) at wfr.com.WFRSystem.getInstance(WFRSystem.java:245) at wfr.com.WFRSystem.getInstance(WFRSystem.java:217) at wfr.sys.WFR.(WFR.java:23) at wfr.sys.WFRLoader.createSystem(WFRLoader.java:150) at wfr.sys.WFRLoader.getWFR(WFRLoader.java:139) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:144) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:130) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:126) at wfr.web.Action.(Action.java:88) at wfr.web.Action.(Action.java:68) at wfr.web.actions.OpenAction.(OpenAction.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wfr.web.ActionFactory.getAction(ActionFactory.java:72) at wfr.web.Controller.process(Controller.java:99) at wfr.web.Controller.doGet(Controller.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at wfr.web.ContextFilter.doFilter(ContextFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.Exception: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java:12260: cannot find symbol symbol : variable caseSensitive location: class wfr.database.DBConnection.DBConnectionProperties properties.caseSensitive = config.getBoolean(database, "CaseSensitive"); ^ C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java:12261: cannot find symbol symbol : variable forceLowerCase location: class wfr.database.DBConnection.DBConnectionProperties properties.forceLowerCase = config.getBoolean(database, "ForceLowerCase"); ^ Note: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors at wfr.util.Functions.compileFile(Functions.java:3467) ... 43 more Causa: java.lang.Exception: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java:12260: cannot find symbol symbol : variable caseSensitive location: class wfr.database.DBConnection.DBConnectionProperties properties.caseSensitive = config.getBoolean(database, "CaseSensitive"); ^ C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java:12261: cannot find symbol symbol : variable forceLowerCase location: class wfr.database.DBConnection.DBConnectionProperties properties.forceLowerCase = config.getBoolean(database, "ForceLowerCase"); ^ Note: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors at wfr.util.Functions.compileFile(Functions.java:3467) at wfr.util.Functions.compileFile(Functions.java:3431) at wfr.util.Functions.compileFile(Functions.java:3408) at wfr.rules.FlowMethodsManager.compileJavaFunctions(FlowMethodsManager.java:412) at wfr.rules.FlowMethodsManager.compileJavaFunctions(FlowMethodsManager.java:370) at wfr.com.WFRSystem.create(WFRSystem.java:703) at wfr.com.WFRSystem.create(WFRSystem.java:626) at wfr.com.WFRDBSystem.(WFRDBSystem.java:39) at wfr.com.WFRSystem.getInstance(WFRSystem.java:245) at wfr.com.WFRSystem.getInstance(WFRSystem.java:217) at wfr.sys.WFR.(WFR.java:23) at wfr.sys.WFRLoader.createSystem(WFRLoader.java:150) at wfr.sys.WFRLoader.getWFR(WFRLoader.java:139) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:144) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:130) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:126) at wfr.web.Action.(Action.java:88) at wfr.web.Action.(Action.java:68) at wfr.web.actions.OpenAction.(OpenAction.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wfr.web.ActionFactory.getAction(ActionFactory.java:72) at wfr.web.Controller.process(Controller.java:99) at wfr.web.Controller.doGet(Controller.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at wfr.web.ContextFilter.doFilter(ContextFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595)[/code] Fazendo alguns selects [code]Select * From FR_Configuracao[/code] verifiquei que quando entro na plataforma 2.7 ele altera a versão assim fiz um update para a versão 2.6 e msm assim não consigo entrar no sistema, também exclui o relatório.
    O que posso fazer a razão do erro pode ser isso mesmo.
    OBrigado.


  • Realizou alguma modificação nas funções de banco de dados?

    Qual versão do webrun que está utilizando?


  • Abre este arquivo:
    C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java

    Vai na linha 12260 e cola a função que esta linha está envolvida.


  • [quote="Ronélio Oliveira"]Realizou alguma modificação nas funções de banco de dados?

    Qual versão do webrun que está utilizando?[/quote] A versão que está no cliente é publicado no webrun 2.6.
    O relatório foi criado no makker 2.7.


  • [quote="Saeger"]Abre este arquivo:
    C:\Arquivos de programas\Softwell Solutions\Maker 2.6\Webrun 2\tomcat\webapps\webrun/src/wfr/com/systems/system_lab_labcerto___servidor/rules/WebrunFunctions.java

    Vai na linha 12260 e cola a função que esta linha está envolvida.[/quote] Esse método é para conexão com o PostGree, a conexão que eu utilizo é no SqlServer.
    Eu irei comentar esse método que segue abaixo, para ver se para de dar o erro de compilação. [code] protected final Variant ebfSQLPostgresOpenConnectionPort(Variant hostNameVar, Variant databaseVar, Variant userVar, Variant passwordVar, Variant portVar) throws Exception { String database = "PostgreSQL"; String hostName = hostNameVar.getString(); String user = userVar.getString(); String password = passwordVar.getString(); String datafile = databaseVar.getString(); String port = portVar.getString(); String charset = wfr.database.DBConnection.ISO8859; validateDBConnectionData(hostName, user); wfr.database.DBConnection.DBConnectionProperties properties = new wfr.database.DBConnection.DBConnectionProperties(); Config config = WFRConfig.database(); String url = config.get(database, "URL"); if (config.get(database, "DatabaseField").length() > 0) { url = Functions.replaceParam(url, config.get(database, "DatabaseField"), datafile); } if (config.get(database, "ServerField").length() > 0) { url = Functions.replaceParam(url, config.get(database, "ServerField"), hostName); } url = Functions.replaceParam(url, "ServerCharSet", charset); if ((port != null) && (port.trim().length() > 0)) url = Functions.replaceParam(url, "Port", port); if (url.indexOf("$") != -1) { java.util.regex.Pattern pattern = java.util.regex.Pattern.compile("\\$[^:\\$]+:([^\\$]+)\\$", java.util.regex.Pattern.CASE_INSENSITIVE); java.util.regex.Matcher matcher = pattern.matcher(url); StringBuffer buffer = new StringBuffer(); while (matcher.find()) { String defaultValue = matcher.group(1); matcher.appendReplacement(buffer, defaultValue); } matcher.appendTail(buffer); url = buffer.toString(); } if (url.indexOf("$") != -1) { java.util.regex.Pattern pattern = java.util.regex.Pattern.compile("\\$.+\\$"); java.util.regex.Matcher matcher = pattern.matcher(url); url = matcher.replaceAll(""); } properties.drivername = database; properties.className = config.get(database, "Driver"); properties.url = url; properties.user = user; properties.password = password; properties.autocommit = config.getBoolean(database, "AutoCommit"); properties.commitClausule = config.get(database, "CommitClausule").trim(); properties.startTransactionClausule = config.get(database, "StartTransactionClausule").trim(); properties.rollbackTransactionClausule = config.get(database, "RollbackTransactionClausule").trim(); properties.trimstr = config.getBoolean(database, "TrimString"); properties.fetchsize = config.getInt(database, "FetchSize"); properties.caseSensitive = config.getBoolean(database, "CaseSensitive"); properties.forceLowerCase = config.getBoolean(database, "ForceLowerCase"); properties.generator = config.get(database, "Generator"); properties.append4MeataData = config.get(database, "AppendSQL4MetaData"); properties.modify4MeataData = config.get(database, "ModifySQL4MetaData"); properties.insert4MeataData = config.get(database, "InsertOnStarSQL4MetaData"); properties.addCondition4MeataData = config.get(database, "AddCondition4MetaData"); properties.removeOrderBy4MeataData = Functions.stringToBoolean(config.get(database, "RemoveOrderBy4MetaData")); properties.useCachedResultset4Metadata = Functions.stringToBoolean(config.get(database, "UseCachedResultset4Metadata")); properties.connectionFailMessage = config.get(database, "ConnectionFailMessage"); properties.timeout = config.getInt(database, "TimeOut"); properties.exceptForeignKey = config.getList(database, "ExceptionForeignKey"); properties.exceptPrimaryKey = config.getList(database, "ExceptionPrimaryKey"); properties.autoinc = config.get(database, "Autoinc"); properties.initializeCommand = config.getList(database, "InitializeCommand"); properties.insertBeforeParameter = config.get(database, "InsertBeforeParameter"); properties.appendAfterParameter = config.get(database, "AppendAfterParameter"); if (config.get(database, "SupportTransaction").trim().length() > 0) { properties.supportTransaction = config.getBoolean(database, "SupportTransaction"); if (!properties.supportTransaction) { properties.autocommit = true; } } wfr.database.DBConnection conn = new wfr.database.DBConnection(properties); String server = hostName; if (server != null && server.indexOf(":") != -1) { server = server.substring(0, server.indexOf(":")); } conn.setServer(server); conn.initialize(); conn.startTransaction(); openedResultSetList.add(conn); return VariantPool.get(conn); } [/code]


  • [quote="joserodrigues"][quote="Ronélio Oliveira"]Realizou alguma modificação nas funções de banco de dados?

    Qual versão do webrun que está utilizando?[/quote] A versão que está no cliente é publicado no webrun 2.6.
    O relatório foi criado no makker 2.7.[/quote] Você não pode fazer algo no Maker 2.7 e esperar que funcione na 2.6.


  • [quote="Saeger"][quote="joserodrigues"][quote="Ronélio Oliveira"]Realizou alguma modificação nas funções de banco de dados?

    Qual versão do webrun que está utilizando?[/quote] A versão que está no cliente é publicado no webrun 2.6.
    O relatório foi criado no makker 2.7.[/quote] Você não pode fazer algo no Maker 2.7 e esperar que funcione na 2.6.[/quote] Sim isso é certo, mas eu fazendo um teste retirei o método que estava dando erro acima, pois eu não faço nenhum conexão com o PostGre e funcionou normalmente.
    Mas no meu cliente mesmo tirando esse método do arquivo WebRunFunctions ele continua dando erro nele.


  • Então o problema não é esta funcao.. deve ser outra :) Por isso que falei para voce ir no arquivo especificado na linha especificada. Voce deve fazer isso no servidor e nao na sua maquina, pois as posicoes das linhas sao diferentes.

    Boa sorte.

Log in to reply