[ https://issues.apache.org/jira/browse/EAGLE-269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Wu resolved EAGLE-269. ------------------------------ Resolution: Fixed waiting for merging PR #222 > Comparisons between 'LONG VARCHAR (UCS_BASIC)' and 'LONG VARCHAR (UCS_BASIC)' > are not supported > ----------------------------------------------------------------------------------------------- > > Key: EAGLE-269 > URL: https://issues.apache.org/jira/browse/EAGLE-269 > Project: Eagle > Issue Type: Bug > Affects Versions: v0.3.0 > Reporter: Zhao, Qingwen > Assignee: Michael Wu > Fix For: v0.4.0 > > > {code} > 2016-04-17 12:03:53,862 DEBUG [http-bio-9098-exec-1] > operation.CompiledQuery[267]: Output fields: all > 2016-04-17 12:03:53,886 DEBUG [http-bio-9098-exec-1] > impl.JdbcEntityReaderImpl[62]: Querying: SELECT > eagle_metadata_topologyoperation.* FROM eagle_metadata_topologyoperation > WHERE (eagle_metadata_topologyoperation.timestamp>=? AND > eagle_metadata_topologyoperation.timestamp<? AND > eagle_metadata_topologyoperation.status=?) FETCH NEXT 2147483647 ROWS ONLY > Replacements: [1458273833859,1460865833859,PENDING] > 2016-04-17 12:03:53,886 DEBUG [http-bio-9098-exec-3] > impl.JdbcEntityReaderImpl[62]: Querying: SELECT > eagle_metadata_topologyoperation.* FROM eagle_metadata_topologyoperation > WHERE (eagle_metadata_topologyoperation.timestamp>=? AND > eagle_metadata_topologyoperation.timestamp<? AND > eagle_metadata_topologyoperation.status=?) FETCH NEXT 2147483647 ROWS ONLY > Replacements: [1458273833859,1460865833859,INITIALIZED] > 2016-04-17 12:03:53,905 ERROR [http-bio-9098-exec-1] > impl.JdbcEntityReaderImpl[81]: Failed to query by: SELECT > eagle_metadata_topologyoperation.* FROM eagle_metadata_topologyoperation > WHERE (eagle_metadata_topologyoperation.timestamp>=? AND > eagle_metadata_topologyoperation.timestamp<? AND > eagle_metadata_topologyoperation.status=?) FETCH NEXT 2147483647 ROWS ONLY > Replacements: [1458273833859,1460865833859,PENDING], due to: > java.sql.SQLSyntaxErrorException: Comparisons between 'LONG VARCHAR > (UCS_BASIC)' and 'LONG VARCHAR (UCS_BASIC)' are not supported. Types must be > comparable. String types must also have matching collation. If collation does > not match, a possible solution is to cast operands to force them to the > default collation (e.g. SELECT tablename FROM sys.systables WHERE > CAST(tablename AS VARCHAR(128)) = 'T1') > org.apache.torque.TorqueException: java.sql.SQLSyntaxErrorException: > Comparisons between 'LONG VARCHAR (UCS_BASIC)' and 'LONG VARCHAR (UCS_BASIC)' > are not supported. Types must be comparable. String types must also have > matching collation. If collation does not match, a possible solution is to > cast operands to force them to the default collation (e.g. SELECT tablename > FROM sys.systables WHERE CAST(tablename AS VARCHAR(128)) = 'T1') > at > org.apache.torque.util.ExceptionMapperImpl.toTorqueException(ExceptionMapperImpl.java:59) > at org.apache.torque.util.BasePeerImpl.doSelect(BasePeerImpl.java:1608) > at org.apache.torque.util.BasePeerImpl.doSelect(BasePeerImpl.java:1152) > at > org.apache.eagle.storage.jdbc.entity.impl.JdbcEntityReaderImpl.query(JdbcEntityReaderImpl.java:75) > at org.apache.eagle.storage.jdbc.JdbcStorage.query(JdbcStorage.java:161) > at > org.apache.eagle.storage.operation.QueryStatement.execute(QueryStatement.java:47) > at > org.apache.eagle.service.generic.GenericEntityServiceResource.search(GenericEntityServiceResource.java:443) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) > at > com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) > at > com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) > at > com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) > at > com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) > at > com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) > at > com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) > at > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) > at > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) > at > com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) > at > com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) > at > com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) > at > com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) > at > com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) > at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) > at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) > at > org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) > at > org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) > at > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) > at > org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:438) > at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:179) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) > at > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) > at > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620) > at > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.sql.SQLSyntaxErrorException: Comparisons between 'LONG > VARCHAR (UCS_BASIC)' and 'LONG VARCHAR (UCS_BASIC)' are not supported. Types > must be comparable. String types must also have matching collation. If > collation does not match, a possible solution is to cast operands to force > them to the default collation (e.g. SELECT tablename FROM sys.systables WHERE > CAST(tablename AS VARCHAR(128)) = 'T1') > at > org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown > Source) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown > Source) > at > org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown > Source) > at > org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown > Source) > at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown > Source) > at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown > Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown > Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown > Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown > Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown > Source) > at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unknown > Source) > at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown > Source) > at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown > Source) > at > org.apache.commons.dbcp.cpdsadapter.PooledConnectionImpl.prepareStatement(PooledConnectionImpl.java:243) > at > org.apache.commons.dbcp.cpdsadapter.ConnectionImpl.prepareStatement(ConnectionImpl.java:95) > at org.apache.torque.util.BasePeerImpl.doSelect(BasePeerImpl.java:1519) > ... 78 more > Caused by: java.sql.SQLException: Comparisons between 'LONG VARCHAR > (UCS_BASIC)' and 'LONG VARCHAR (UCS_BASIC)' are not supported. Types must be > comparable. String types must also have matching collation. If collation does > not match, a possible solution is to cast operands to force them to the > default collation (e.g. SELECT tablename FROM sys.systables WHERE > CAST(tablename AS VARCHAR(128)) = 'T1') > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) > at > org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown > Source) > ... 94 more > Caused by: ERROR 42818: Comparisons between 'LONG VARCHAR (UCS_BASIC)' and > 'LONG VARCHAR (UCS_BASIC)' are not supported. Types must be comparable. > String types must also have matching collation. If collation does not match, > a possible solution is to cast operands to force them to the default > collation (e.g. SELECT tablename FROM sys.systables WHERE CAST(tablename AS > VARCHAR(128)) = 'T1') > at org.apache.derby.iapi.error.StandardException.newException(Unknown > Source) > at > org.apache.derby.impl.sql.compile.BinaryComparisonOperatorNode.bindComparisonOperator(Unknown > Source) > at > org.apache.derby.impl.sql.compile.BinaryComparisonOperatorNode.bindExpression(Unknown > Source) > at > org.apache.derby.impl.sql.compile.BinaryOperatorNode.bindExpression(Unknown > Source) > at > org.apache.derby.impl.sql.compile.BinaryLogicalOperatorNode.bindExpression(Unknown > Source) > at org.apache.derby.impl.sql.compile.AndNode.bindExpression(Unknown > Source) > at org.apache.derby.impl.sql.compile.SelectNode.bindExpressions(Unknown > Source) > at > org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown > Source) > at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown > Source) > at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown > Source) > at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source) > at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source) > at > org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown > Source) > ... 88 more > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)