Hola Rodrigo,
El error se da ya que hay una instruccion SELECT con un ORDER por un campo (MedicoAlias) que no esta fisicamente en la tabla, por lo tanto, da error, ya que no se puede ordenar una tabla por algo que no existe.
Ese atributo, es una formula? es redundante? Hiciste un Specify All forzado?
Saludos!
Estimado foro: Tengo un sistema andando en geneuxs 9 java web sql server
2000 y anda bien. Cambie la base de datos por mysql 5.0.5 y estoy teniendo
problemas con un atributo de tipo formula. Lo raro es que en algunas
pantallas me muestra bien el contenido del atributo y en otras pantallas
me da el siguiente error.
javax.servlet.ServletException:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
'T1.MedicoAlias' in 'order clause'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3176)
at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1153)
at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1266)
at com.genexus.db.driver.GXDBMSmysql.executeQuery(Unknown Source)
at com.genexus.db.driver.GXPreparedStatement.executeQuery(Unknown Source)
at com.genexus.db.ForEachCursor.postExecute(Unknown Source)
at com.genexus.db.DataStoreProvider.execute(Unknown Source)
at com.genexus.db.DataStoreProvider.execute(Unknown Source)
at hturno_impl.gxdlv_medicoid_data772(hturno_impl.java:791)
at hturno_impl.gxv_medicoid_html772(hturno_impl.java:777)
at hturno_impl.strup770(hturno_impl.java:1854)
at hturno_impl.start772(hturno_impl.java:332)
at hturno_impl.executeStartEvent(hturno_impl.java:107)
at hmasterpageww_impl.start352(hmasterpageww_impl.java:122)
at hmasterpageww_impl.ws352(hmasterpageww_impl.java:128)
at hmasterpageww_impl.webExecute(hmasterpageww_impl.java:53)
at hturno_impl.webExecute(hturno_impl.java:98)
at com.genexus.webpanels.GXWebObjectBase.doExecute(Unknown Source)
at hturno.doExecute(hturno.java:19)
at com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source)
at com.genexus.webpanels.GXWebObjectStub.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:420)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source)
com.genexus.webpanels.GXWebObjectStub.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:420)
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Si alguien puede darme una mamo..... Muchas Gracias.
Rodrigo
-----------------------------------------
Para Suscribirse/Desuscribirse:
http://www.gxtechnical.com/cgi-bin/hforum.exe?2,3,30,20
Por consultas owner-java-l@gxtech.com.uy
--
I get paid to support Windows, I use Linux to get work done.
--
Has recibido este mensaje porque estás suscrito al grupo "GeneXus" de Grupos de Google.
Para publicar una entrada en este grupo, envía un correo electrónico a genexus@googlegroups.com.
Para anular tu suscripción a este grupo, envía un correo electrónico a genexus+unsubscribe@googlegroups.com
Para tener acceso a más opciones, visita el grupo en http://groups.google.com/group/genexus?hl=es.
0 Response to "Re: [java-l] formulas en mysql"
Publicar un comentario