java.lang.ClassCastException: org.obiba.magma.security.SudoValueTableReference cannot be cast to org.obiba.magma.views.View

JIRA | Cédric Thiebault | 3 years ago
  1. 0

    In CPT opal logs: {code} 2014-01-28 10:32:59,134 - ERROR - org.obiba.opal.web.magma.provider.RuntimeExceptionMapper - Unhandled exception java.lang.ClassCastException: org.obiba.magma.security.SudoValueTableReference cannot be cast to org.obiba.magma.views.View at org.obiba.magma.js.JavascriptVariableValueSource.enterContext(JavascriptVariableValueSource.java:65) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.enterContext(JavascriptValueSource.java:179) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$ValueVectorEvaluationContextAction.enterContext(JavascriptValueSource.java:283) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.run(JavascriptValueSource.java:168) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.mozilla.javascript.Context.call(Context.java:489) ~[rhino-1.7R4.jar:1.7R4] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504) ~[rhino-1.7R4.jar:1.7R4] at org.obiba.magma.js.JavascriptValueSource.getValues(JavascriptValueSource.java:114) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.obiba.opal.web.magma.ValueSetsResourceImpl.addValueSetDtosFromVectorSource(ValueSetsResourceImpl.java:138) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSetsDto(ValueSetsResourceImpl.java:128) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSets(ValueSetsResourceImpl.java:58) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) ~[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) ~[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) ~[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at com.sun.proxy.$Proxy142.getValueSets(Unknown Source) ~[na:na] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) [resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) [resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) [resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) [resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) [resteasy-jaxrs-3.0.6.Final.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet-3.0.0.v201112011016.jar:na] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.obiba.opal.server.httpd.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:66) [opal-httpd-2.0-SNAPSHOT.jar:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.obiba.opal.server.httpd.OpalVersionFilter.doFilterInternal(OpalVersionFilter.java:39) [opal-httpd-2.0-SNAPSHOT.jar:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.Server.handle(Server.java:370) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) [jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) [jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] {code}

    JIRA | 3 years ago | Cédric Thiebault
    java.lang.ClassCastException: org.obiba.magma.security.SudoValueTableReference cannot be cast to org.obiba.magma.views.View
  2. 0

    In CPT opal logs: {code} 2014-01-28 10:32:59,134 - ERROR - org.obiba.opal.web.magma.provider.RuntimeExceptionMapper - Unhandled exception java.lang.ClassCastException: org.obiba.magma.security.SudoValueTableReference cannot be cast to org.obiba.magma.views.View at org.obiba.magma.js.JavascriptVariableValueSource.enterContext(JavascriptVariableValueSource.java:65) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.enterContext(JavascriptValueSource.java:179) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$ValueVectorEvaluationContextAction.enterContext(JavascriptValueSource.java:283) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.run(JavascriptValueSource.java:168) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.mozilla.javascript.Context.call(Context.java:489) ~[rhino-1.7R4.jar:1.7R4] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504) ~[rhino-1.7R4.jar:1.7R4] at org.obiba.magma.js.JavascriptValueSource.getValues(JavascriptValueSource.java:114) ~[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT] at org.obiba.opal.web.magma.ValueSetsResourceImpl.addValueSetDtosFromVectorSource(ValueSetsResourceImpl.java:138) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSetsDto(ValueSetsResourceImpl.java:128) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSets(ValueSetsResourceImpl.java:58) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) ~[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) ~[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) ~[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) ~[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE] at com.sun.proxy.$Proxy142.getValueSets(Unknown Source) ~[na:na] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103) ~[resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) [resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) [resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) [resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) [resteasy-jaxrs-3.0.6.Final.jar:na] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) [resteasy-jaxrs-3.0.6.Final.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet-3.0.0.v201112011016.jar:na] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.obiba.opal.server.httpd.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:66) [opal-httpd-2.0-SNAPSHOT.jar:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.obiba.opal.server.httpd.OpalVersionFilter.doFilterInternal(OpalVersionFilter.java:39) [opal-httpd-2.0-SNAPSHOT.jar:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.Server.handle(Server.java:370) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) [jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) [jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] {code}

    JIRA | 3 years ago | Cédric Thiebault
    java.lang.ClassCastException: org.obiba.magma.security.SudoValueTableReference cannot be cast to org.obiba.magma.views.View
  3. 0

    * Go to a text variable without categories * Select "Categorize this variable to another..." * Select "Automatically" * Next * Select "Add a value mapping" => the form layout is broken (see screenshot): input field truncated and "Add" button not on the same line + it should be in a well ==== * Go to a text variable without categories in a VIEW * Select "Categorize this variable to another..." * Select "Automatically" * Next * Next => summary and values are empty because of the valueSets request: {"code": 400,"status": "UnhandledException","arguments": ["org.obiba.magma.security.SecuredValueTable cannot be cast to org.obiba.magma.views.View"]} {code} 2014-02-03 15:45:19,936 - ERROR - org.obiba.opal.web.magma.provider.RuntimeExceptionMapper - Unhandled exception java.lang.ClassCastException: org.obiba.magma.security.SecuredValueTable cannot be cast to org.obiba.magma.views.View at org.obiba.magma.js.JavascriptVariableValueSource.enterContext(JavascriptVariableValueSource.java:65) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.enterContext(JavascriptValueSource.java:179) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$ValueVectorEvaluationContextAction.enterContext(JavascriptValueSource.java:283) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.run(JavascriptValueSource.java:168) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.mozilla.javascript.Context.call(Context.java:489) ~[rhino-1.7R4.jar:1.7R4] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504) ~[rhino-1.7R4.jar:1.7R4] at org.obiba.magma.js.JavascriptValueSource.getValues(JavascriptValueSource.java:114) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.obiba.opal.web.magma.ValueSetsResourceImpl.addValueSetDtosFromVectorSource(ValueSetsResourceImpl.java:138) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSetsDto(ValueSetsResourceImpl.java:128) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSets(ValueSetsResourceImpl.java:58) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] {code}

    JIRA | 3 years ago | Yannick Marcon
    java.lang.ClassCastException: org.obiba.magma.security.SecuredValueTable cannot be cast to org.obiba.magma.views.View
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    * Go to a text variable without categories * Select "Categorize this variable to another..." * Select "Automatically" * Next * Select "Add a value mapping" => the form layout is broken (see screenshot): input field truncated and "Add" button not on the same line + it should be in a well ==== * Go to a text variable without categories in a VIEW * Select "Categorize this variable to another..." * Select "Automatically" * Next * Next => summary and values are empty because of the valueSets request: {"code": 400,"status": "UnhandledException","arguments": ["org.obiba.magma.security.SecuredValueTable cannot be cast to org.obiba.magma.views.View"]} {code} 2014-02-03 15:45:19,936 - ERROR - org.obiba.opal.web.magma.provider.RuntimeExceptionMapper - Unhandled exception java.lang.ClassCastException: org.obiba.magma.security.SecuredValueTable cannot be cast to org.obiba.magma.views.View at org.obiba.magma.js.JavascriptVariableValueSource.enterContext(JavascriptVariableValueSource.java:65) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.enterContext(JavascriptValueSource.java:179) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$ValueVectorEvaluationContextAction.enterContext(JavascriptValueSource.java:283) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.run(JavascriptValueSource.java:168) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.mozilla.javascript.Context.call(Context.java:489) ~[rhino-1.7R4.jar:1.7R4] at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504) ~[rhino-1.7R4.jar:1.7R4] at org.obiba.magma.js.JavascriptValueSource.getValues(JavascriptValueSource.java:114) ~[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT] at org.obiba.opal.web.magma.ValueSetsResourceImpl.addValueSetDtosFromVectorSource(ValueSetsResourceImpl.java:138) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSetsDto(ValueSetsResourceImpl.java:128) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] at org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSets(ValueSetsResourceImpl.java:58) ~[opal-core-ws-2.0-SNAPSHOT.jar:na] {code}

    JIRA | 3 years ago | Yannick Marcon
    java.lang.ClassCastException: org.obiba.magma.security.SecuredValueTable cannot be cast to org.obiba.magma.views.View
  6. 0

    Scala 2.11.5 and Squeryl?

    Google Groups | 2 years ago | Clint Gilbert
    java.lang.ClassCastException: scala.None$ cannot be cast to

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.obiba.magma.security.SudoValueTableReference cannot be cast to org.obiba.magma.views.View

      at org.obiba.magma.js.JavascriptVariableValueSource.enterContext()
    2. org.obiba.magma
      JavascriptValueSource$AbstractEvaluationContextAction.run
      1. org.obiba.magma.js.JavascriptVariableValueSource.enterContext(JavascriptVariableValueSource.java:65)[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT]
      2. org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.enterContext(JavascriptValueSource.java:179)[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT]
      3. org.obiba.magma.js.JavascriptValueSource$ValueVectorEvaluationContextAction.enterContext(JavascriptValueSource.java:283)[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT]
      4. org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.run(JavascriptValueSource.java:168)[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT]
      4 frames
    3. Rhino
      ContextFactory.call
      1. org.mozilla.javascript.Context.call(Context.java:489)[rhino-1.7R4.jar:1.7R4]
      2. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504)[rhino-1.7R4.jar:1.7R4]
      2 frames
    4. org.obiba.magma
      JavascriptValueSource.getValues
      1. org.obiba.magma.js.JavascriptValueSource.getValues(JavascriptValueSource.java:114)[magma-js-1.8-20140123.205803-124.jar:1.8-SNAPSHOT]
      1 frame
    5. org.obiba.opal
      ValueSetsResourceImpl.getValueSets
      1. org.obiba.opal.web.magma.ValueSetsResourceImpl.addValueSetDtosFromVectorSource(ValueSetsResourceImpl.java:138)[opal-core-ws-2.0-SNAPSHOT.jar:na]
      2. org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSetsDto(ValueSetsResourceImpl.java:128)[opal-core-ws-2.0-SNAPSHOT.jar:na]
      3. org.obiba.opal.web.magma.ValueSetsResourceImpl.getValueSets(ValueSetsResourceImpl.java:58)[opal-core-ws-2.0-SNAPSHOT.jar:na]
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_51]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_51]
      3 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      3 frames
    8. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)[spring-tx-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      3 frames
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      2 frames
    10. com.sun.proxy
      $Proxy142.getValueSets
      1. com.sun.proxy.$Proxy142.getValueSets(Unknown Source)[na:na]
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_51]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_51]
      3 frames
    12. RESTEasy JAX-RS Implementation
      HttpServletDispatcher.service
      1. org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)[resteasy-jaxrs-3.0.6.Final.jar:na]
      2. org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280)[resteasy-jaxrs-3.0.6.Final.jar:na]
      3. org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234)[resteasy-jaxrs-3.0.6.Final.jar:na]
      4. org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140)[resteasy-jaxrs-3.0.6.Final.jar:na]
      5. org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109)[resteasy-jaxrs-3.0.6.Final.jar:na]
      6. org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135)[resteasy-jaxrs-3.0.6.Final.jar:na]
      7. org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109)[resteasy-jaxrs-3.0.6.Final.jar:na]
      8. org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135)[resteasy-jaxrs-3.0.6.Final.jar:na]
      9. org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)[resteasy-jaxrs-3.0.6.Final.jar:na]
      10. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)[resteasy-jaxrs-3.0.6.Final.jar:na]
      11. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)[resteasy-jaxrs-3.0.6.Final.jar:na]
      12. org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)[resteasy-jaxrs-3.0.6.Final.jar:na]
      13. org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)[resteasy-jaxrs-3.0.6.Final.jar:na]
      14. org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)[resteasy-jaxrs-3.0.6.Final.jar:na]
      14 frames
    13. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:848)[javax.servlet-3.0.0.v201112011016.jar:na]
      1 frame
    14. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
      2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
      2 frames
    15. org.obiba.opal
      AuthenticationFilter.doFilterInternal
      1. org.obiba.opal.server.httpd.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:66)[opal-httpd-2.0-SNAPSHOT.jar:na]
      1 frame
    16. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      2. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      3. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      3 frames
    17. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
      1 frame
    18. org.obiba.opal
      OpalVersionFilter.doFilterInternal
      1. org.obiba.opal.server.httpd.OpalVersionFilter.doFilterInternal(OpalVersionFilter.java:39)[opal-httpd-2.0-SNAPSHOT.jar:na]
      1 frame
    19. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE]
      1 frame
    20. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
      3. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      4. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
      5. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      6. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      7. org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      8. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      9. org.eclipse.jetty.server.Server.handle(Server.java:370)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      10. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      11. org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      12. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      13. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
      14. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
      15. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
      15 frames
    21. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)[jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)[jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
      3. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
      3 frames
    22. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031]
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031]
      2 frames
    23. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)[na:1.7.0_51]
      1 frame