Solution import Servoy 8

Questions and answers for all installation-related topics for Servoy products

Solution import Servoy 8

Postby Roberto Blasco » Wed Jan 13, 2016 1:15 pm

Hi all.

This is the scenario ...

Linux Debian
Servoy 8.0.2
MySQL

When trying to install the solution, importing screen throws this error

Code: Select all
java.sql.SQLException: no transaction in progress
     at com.servoy.j2db.datasource.Zo.rollback(Zo.java:101)
     at com.servoy.j2db.util.Utils.rollback(Utils.java:1679)
     at com.servoy.j2db.server.Zc.Zo.importingDone(Zo.java:53)
     at com.servoy.j2db.server.Zc.Zhb.Za(Zhb.java:132)
     at com.servoy.j2db.server.Zc.Zhb.importFromJarFile(Zhb.java:332)
     at com.servoy.j2db.server.servlets.ConfigServlet.Zl(ConfigServlet.java:4940)
     at com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java:2606)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
     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:142)
     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:518)
     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
     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)


Code: Select all
com.servoy.j2db.persistence.RepositoryException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection_name = 'rj_pericias_central' and tablename = 't110_listado_ficheros' ' at line 1
     at com.servoy.j2db.server.Za.Zs.Za(Zs.java:284)
     at com.servoy.j2db.server.Za.Zs.Za(Zs.java:119)
     at com.servoy.j2db.server.Za.Zs.updateAllColumnInfo(Zs.java:308)
     at com.servoy.j2db.server.Za.Zo.updateAllColumnInfo(Zo.java:1400)
     at com.servoy.j2db.server.Za.Zo.Za(Zo.java:322)
     at com.servoy.j2db.server.Za.Zo.syncTableObjWithDB(Zo.java:22)
     at com.servoy.j2db.server.Zc.Zm.importDatabaseInfo(Zm.java:119)
     at com.servoy.j2db.server.Zc.Zhb.Za(Zhb.java:115)
     at com.servoy.j2db.server.Zc.Zhb.importFromJarFile(Zhb.java:332)
     at com.servoy.j2db.server.servlets.ConfigServlet.Zl(ConfigServlet.java:4940)
     at com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java:2606)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
     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:142)
     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:518)
     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
     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)
    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection_name = 'rj_pericias_central' and tablename = 't110_listado_ficheros' ' at line 1
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
     at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
     at com.mysql.jdbc.Util.getInstance(Util.java:360)
     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978)
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530)
     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907)
     at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1199)
     at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)
     at com.servoy.j2db.datasource.Zg.invoke(Zg.java:10)
     at com.sun.proxy.$Proxy4.execute(Unknown Source)
     at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
     at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
     at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
     at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
     at com.servoy.j2db.server.Za.Zs.Za(Zs.java:290)


If I try to reinstall the solution in the same machine but in a servoy 7 server, the solutions works .... :oops: :oops:

Is this an issue?

Best Regards. Roberto Blasco.
Un saludo. Roberto.

Madrid - Spain
Tfno: (+34) 625653066
E-mail: [email protected]
User avatar
Roberto Blasco
007
 
Posts: 341
Joined: Tue Apr 08, 2008 7:18 pm
Location: Madrid / Spain

Re: Solution import Servoy 8

Postby jcompagner » Tue Jan 26, 2016 5:23 pm

The weird thing is that mysql is complaining about a sql statement that we send when updating (or reading in) the column info table for a certain database table.

I don't get how that can happen because we don't see the full statement that fails.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7974
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Solution import Servoy 8

Postby Andrei Costescu » Thu Mar 10, 2016 3:20 pm

See this thread. The syntax error in that query is fixed for 8.0.3.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 902
Joined: Tue Jun 26, 2007 3:14 pm

Re: Solution import Servoy 8

Postby Roberto Blasco » Fri Mar 11, 2016 9:17 am

Thanks a lot Andrei.

BTW I am gonna follow with postgres :-)
Un saludo. Roberto.

Madrid - Spain
Tfno: (+34) 625653066
E-mail: [email protected]
User avatar
Roberto Blasco
007
 
Posts: 341
Joined: Tue Apr 08, 2008 7:18 pm
Location: Madrid / Spain

Re: Solution import Servoy 8

Postby Gordon McLean » Tue Mar 15, 2016 5:30 pm

Thanks Andrei, the fix worked and I look forward to seeing it in the next update :)

Gordon
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 191
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK


Return to Installation

Who is online

Users browsing this forum: No registered users and 4 guests