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

JIRA | Yannick Marcon | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 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
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.obiba.magma.security.SecuredValueTable 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-20140131.190032-128.jar:1.8-SNAPSHOT]
      2. org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.enterContext(JavascriptValueSource.java:179)[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT]
      3. org.obiba.magma.js.JavascriptValueSource$ValueVectorEvaluationContextAction.enterContext(JavascriptValueSource.java:283)[magma-js-1.8-20140131.190032-128.jar:1.8-SNAPSHOT]
      4. org.obiba.magma.js.JavascriptValueSource$AbstractEvaluationContextAction.run(JavascriptValueSource.java:168)[magma-js-1.8-20140131.190032-128.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-20140131.190032-128.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